diff --git a/srcpkgs/cgminer/files/cgminer/run b/srcpkgs/cgminer/files/cgminer/run new file mode 100644 index 0000000000..b9f9b29ae3 --- /dev/null +++ b/srcpkgs/cgminer/files/cgminer/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec cgminer -T --config /etc/cgminer.conf --syslog diff --git a/srcpkgs/cgminer/template b/srcpkgs/cgminer/template index 49941ebe8f..574416a462 100644 --- a/srcpkgs/cgminer/template +++ b/srcpkgs/cgminer/template @@ -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 " 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 }