cgminer: update to 4.7.0; added runit service.

This commit is contained in:
Juan RP 2014-10-16 17:10:54 +02:00
parent d352b4e336
commit b4ce65b0b9
2 changed files with 15 additions and 11 deletions

View file

@ -0,0 +1,2 @@
#!/bin/sh
exec cgminer -T --config /etc/cgminer.conf --syslog

View file

@ -1,12 +1,12 @@
# Template file for 'cgminer' # Template file for 'cgminer'
pkgname=cgminer pkgname=cgminer
version=4.3.3 version=4.7.0
revision=1 revision=1
build_style=gnu-configure build_style=gnu-configure
configure_args=" configure_args="
--enable-bflsc --enable-bitforce --enable-icarus --enable-modminer --enable-avalon --enable-avalon2 --enable-bflsc --enable-bitfury \
--enable-avalon --enable-klondike --enable-bitfury --enable-hashfast --enable-cointerra --enable-drillbit --enable-hashfast --enable-hashratio \
--enable-bab --with-system-libusb --enable-minion" --enable-icarus --enable-klondike --with-system-libusb"
hostmakedepends="pkg-config automake libtool yasm" hostmakedepends="pkg-config automake libtool yasm"
makedepends="libcurl-devel libusb-devel jansson-devel libudev-devel ncurses-devel" makedepends="libcurl-devel libusb-devel jansson-devel libudev-devel ncurses-devel"
conf_files="/etc/cgminer.conf" conf_files="/etc/cgminer.conf"
@ -15,12 +15,12 @@ maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-3" license="GPL-3"
homepage="https://github.com/ckolivas/cgminer" homepage="https://github.com/ckolivas/cgminer"
distfiles="http://ck.kolivas.org/apps/cgminer/cgminer-${version}.tar.bz2" distfiles="http://ck.kolivas.org/apps/cgminer/cgminer-${version}.tar.bz2"
checksum=9252f0d4302a3473357823078221e94de21b661ccd327add178277caceed2aac checksum=604c5e1998e8c7319b3d7b69297ce5d45d47eb0eba9be0c037138ef73cd3749b
pre_configure() { pre_configure() {
# We have latest jansson and libusb - just use them # We have latest jansson and libusb - just use them
sed -e 's|^AC_CONFIG_SUBDIRS.*compat/jansson-2\.5.*||' \ sed -e 's|^AC_CONFIG_SUBDIRS.*compat/jansson.*||' \
-e 's|JANSSON_LIBS="compat/jansson-2\.5/src/\.libs/libjansson\.a"|JANSSON_LIBS=-ljansson|' \ -e 's|JANSSON_LIBS=\".*\"|JANSSON_LIBS=-ljansson|' \
-e 's|compat/Makefile||' \ -e 's|compat/Makefile||' \
-i configure.ac -i configure.ac
@ -32,9 +32,11 @@ pre_configure() {
rm -r compat rm -r compat
autoreconf -fi autoreconf -fi
} }
post_install() { post_install() {
vinstall example.conf 644 etc cgminer.conf vsv cgminer
sed -i -e 's#/usr/local/bin#/usr/bin#g' ${DESTDIR}/etc/cgminer.conf vconf example.conf cgminer.conf
vinstall ${FILESDIR}/cgminer.service 644 usr/lib/systemd/system sed -i 's#/usr/local/bin#/usr/bin#g' ${DESTDIR}/etc/cgminer.conf
if [ "$build_option_systemd" ]; then
vinstall ${FILESDIR}/cgminer.service 644 usr/lib/systemd/system
fi
} }