From b4ce65b0b97cdf25c0b5682d2a62855d2076d1e0 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 16 Oct 2014 17:10:54 +0200 Subject: [PATCH] cgminer: update to 4.7.0; added runit service. --- srcpkgs/cgminer/files/cgminer/run | 2 ++ srcpkgs/cgminer/template | 24 +++++++++++++----------- 2 files changed, 15 insertions(+), 11 deletions(-) create mode 100644 srcpkgs/cgminer/files/cgminer/run 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 }