cgminer: update to 4.7.0; added runit service.
This commit is contained in:
parent
d352b4e336
commit
b4ce65b0b9
2 changed files with 15 additions and 11 deletions
2
srcpkgs/cgminer/files/cgminer/run
Normal file
2
srcpkgs/cgminer/files/cgminer/run
Normal file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec cgminer -T --config /etc/cgminer.conf --syslog
|
|
@ -1,12 +1,12 @@
|
|||
# Template file for 'cgminer'
|
||||
pkgname=cgminer
|
||||
version=4.3.3
|
||||
version=4.7.0
|
||||
revision=1
|
||||
build_style=gnu-configure
|
||||
configure_args="
|
||||
--enable-bflsc --enable-bitforce --enable-icarus --enable-modminer
|
||||
--enable-avalon --enable-klondike --enable-bitfury --enable-hashfast
|
||||
--enable-bab --with-system-libusb --enable-minion"
|
||||
--enable-avalon --enable-avalon2 --enable-bflsc --enable-bitfury \
|
||||
--enable-cointerra --enable-drillbit --enable-hashfast --enable-hashratio \
|
||||
--enable-icarus --enable-klondike --with-system-libusb"
|
||||
hostmakedepends="pkg-config automake libtool yasm"
|
||||
makedepends="libcurl-devel libusb-devel jansson-devel libudev-devel ncurses-devel"
|
||||
conf_files="/etc/cgminer.conf"
|
||||
|
@ -15,12 +15,12 @@ maintainer="Juan RP <xtraeme@gmail.com>"
|
|||
license="GPL-3"
|
||||
homepage="https://github.com/ckolivas/cgminer"
|
||||
distfiles="http://ck.kolivas.org/apps/cgminer/cgminer-${version}.tar.bz2"
|
||||
checksum=9252f0d4302a3473357823078221e94de21b661ccd327add178277caceed2aac
|
||||
checksum=604c5e1998e8c7319b3d7b69297ce5d45d47eb0eba9be0c037138ef73cd3749b
|
||||
|
||||
pre_configure() {
|
||||
# We have latest jansson and libusb - just use them
|
||||
sed -e 's|^AC_CONFIG_SUBDIRS.*compat/jansson-2\.5.*||' \
|
||||
-e 's|JANSSON_LIBS="compat/jansson-2\.5/src/\.libs/libjansson\.a"|JANSSON_LIBS=-ljansson|' \
|
||||
sed -e 's|^AC_CONFIG_SUBDIRS.*compat/jansson.*||' \
|
||||
-e 's|JANSSON_LIBS=\".*\"|JANSSON_LIBS=-ljansson|' \
|
||||
-e 's|compat/Makefile||' \
|
||||
-i configure.ac
|
||||
|
||||
|
@ -32,9 +32,11 @@ pre_configure() {
|
|||
rm -r compat
|
||||
autoreconf -fi
|
||||
}
|
||||
|
||||
post_install() {
|
||||
vinstall example.conf 644 etc cgminer.conf
|
||||
sed -i -e 's#/usr/local/bin#/usr/bin#g' ${DESTDIR}/etc/cgminer.conf
|
||||
vinstall ${FILESDIR}/cgminer.service 644 usr/lib/systemd/system
|
||||
vsv cgminer
|
||||
vconf example.conf cgminer.conf
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue