[arch-commits] Commit in cgminer/repos (8 files)
Evangelos Foutras
foutrelis at archlinux.org
Mon Sep 7 19:57:45 UTC 2015
Date: Monday, September 7, 2015 @ 21:57:43
Author: foutrelis
Revision: 139538
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
cgminer/repos/community-staging-i686/
cgminer/repos/community-staging-i686/PKGBUILD
(from rev 139537, cgminer/trunk/PKGBUILD)
cgminer/repos/community-staging-i686/cgminer.conf.d
(from rev 139537, cgminer/trunk/cgminer.conf.d)
cgminer/repos/community-staging-i686/cgminer.service
(from rev 139537, cgminer/trunk/cgminer.service)
cgminer/repos/community-staging-x86_64/
cgminer/repos/community-staging-x86_64/PKGBUILD
(from rev 139537, cgminer/trunk/PKGBUILD)
cgminer/repos/community-staging-x86_64/cgminer.conf.d
(from rev 139537, cgminer/trunk/cgminer.conf.d)
cgminer/repos/community-staging-x86_64/cgminer.service
(from rev 139537, cgminer/trunk/cgminer.service)
------------------------------------------+
community-staging-i686/PKGBUILD | 94 +++++++++++++++++++++++++++++
community-staging-i686/cgminer.conf.d | 11 +++
community-staging-i686/cgminer.service | 8 ++
community-staging-x86_64/PKGBUILD | 94 +++++++++++++++++++++++++++++
community-staging-x86_64/cgminer.conf.d | 11 +++
community-staging-x86_64/cgminer.service | 8 ++
6 files changed, 226 insertions(+)
Copied: cgminer/repos/community-staging-i686/PKGBUILD (from rev 139537, cgminer/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2015-09-07 19:57:43 UTC (rev 139538)
@@ -0,0 +1,94 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: monson <holymonson at gmail.com>
+# Contributor: Thomas Dziedzic < gostrc at gmail >
+# Contributor: David Manouchehri <david at davidmanouchehri.com>
+
+pkgname=cgminer
+pkgver=4.9.2
+_pkgver=$pkgver
+pkgrel=2
+pkgdesc="Multi-threaded multi-pool GPU, FPGA and ASIC miner for bitcoin"
+url='http://forum.bitcoin.org/index.php?topic=28402.0'
+license=('GPL3')
+arch=('i686' 'x86_64')
+depends=('curl' 'libusb' 'jansson')
+makedepends=('git')
+source=("git+https://github.com/ckolivas/${pkgname}.git#tag=v$_pkgver"
+ "$pkgname.conf.d"
+ "$pkgname.service")
+backup=("etc/conf.d/$pkgname" "etc/$pkgname.conf")
+
+prepare() {
+ cd $pkgname
+ # We have latest jansson and libusb - just use them
+
+ sed -e 's|^AC_CONFIG_SUBDIRS.*compat/jansson-2\.6.*||' \
+ -e 's|JANSSON_LIBS="compat/jansson-2\.6/src/\.libs/libjansson\.a"|JANSSON_LIBS=-ljansson|' \
+ -e 's|compat/Makefile||' \
+ -i ./configure.ac
+
+ sed -e 's|^JANSSON_CPPFLAGS= .*||' \
+ -e 's|^USBUTILS_CPPFLAGS = .*|USBUTILS_CPPFLAGS = -I/usr/include/libusb-1.0|' \
+ -e 's|^SUBDIRS.*|SUBDIRS = lib ccan|' \
+ -i ./Makefile.am
+
+ #sed "s|ac_subdirs_all='compat/libusb\-1.0\ncompat/jansson-2.5'||" -i ./configure
+ #sed 's|subdirs="$subdirs compat/libusb\-1.0"||' -i ./configure
+ #sed 's|subdirs="$subdirs compat/jansson\-2.5"||' -i ./configure
+ #sed 's|LIBUSB_LIBS="compat/libusb-1.0/libusb/.libs/libusb-1.0.a"|LIBUSB_LIBS=-lusb-1.0|' -i ./configure
+ #sed 's|JANSSON_LIBS="compat/jansson-2.5/src/.libs/libjansson.a"|JANSSON_LIBS=-ljansson|' -i ./configure
+ #sed 's|compat/Makefile ||' -i ./configure
+
+ #sed 's|JANSSON_INCLUDES = .*||' -i ./Makefile.in
+ #sed 's|USBUTILS_INCLUDES = .*|USBUTILS_INCLUDES = -I/usr/include/libusb-1.0|' -i ./Makefile.in
+ #sed 's|SUBDIRS = lib compat ccan|SUBDIRS = lib ccan|' -i ./Makefile.in
+
+ rm -r compat
+}
+
+build() {
+ cd $pkgname
+
+ # Here you may want to use custom CFLAGS
+ #export CFLAGS="-O2 -march=native -mtune=native -msse2"
+
+ # ./configure \
+
+ # Taken from README - Q: What should I build in for a generic distribution binary?
+ ./autogen.sh \
+ --prefix=/usr \
+ --enable-avalon \
+ --enable-avalon2 \
+ --enable-avalon4 \
+ --enable-bflsc \
+ --enable-bitfury \
+ --enable-blockerupter \
+ --enable-cointerra \
+ --enable-drillbit \
+ --enable-hashfast \
+ --enable-hashratio \
+ --enable-icarus \
+ --enable-klondike \
+ --with-system-libusb
+
+ make
+}
+
+package() {
+ cd $pkgname
+
+ make DESTDIR="$pkgdir" install
+
+ install -d "$pkgdir/usr/share/$pkgname"
+ install -m755 miner.php api-example.* "$pkgdir/usr/share/$pkgname"
+
+ install -Dm644 "$srcdir"/$pkgname.service "$pkgdir"/usr/lib/systemd/system/$pkgname.service
+ install -Dm644 "$srcdir"/$pkgname.conf.d "$pkgdir"/etc/conf.d/$pkgname
+ sed 's#/usr/local/bin#/usr/bin#g' example.conf > $pkgname.conf
+ install -Dm644 $pkgname.conf "$pkgdir"/etc/$pkgname.conf
+}
+
+sha512sums=('SKIP'
+ '99c38bc395848f9712ce172343d31f5c60f5d8ac1cfe2f48df8f3ec6c488fc275763a79c5ef36b99f32faa465b5a65284b38e8a63ef9b144075ee13971313b41'
+ '3317b60c6b1f14c47d8ee636113ef40a4023ab14054129de80a37947b381fd2b647a7053f4e1bb639efa225a514e862fa531908714c34040dda2d6221dde7f5f')
Copied: cgminer/repos/community-staging-i686/cgminer.conf.d (from rev 139537, cgminer/trunk/cgminer.conf.d)
===================================================================
--- community-staging-i686/cgminer.conf.d (rev 0)
+++ community-staging-i686/cgminer.conf.d 2015-09-07 19:57:43 UTC (rev 139538)
@@ -0,0 +1,11 @@
+# Use JSON-format configuration. (recommended)
+CGMINER_CONF="/etc/cgminer.conf"
+
+# Uncommend this if you prefer simple command-line arguments.
+#CGMINER_CONF=""
+#CGMINER_PROTOCOL="http"
+#CGMINER_IP="127.0.0.1"
+#CGMINER_PORT="8332"
+#CGMINER_USER="username"
+#CGMINER_PASS="password"
+CGMINER_ARGS="--syslog"
Copied: cgminer/repos/community-staging-i686/cgminer.service (from rev 139537, cgminer/trunk/cgminer.service)
===================================================================
--- community-staging-i686/cgminer.service (rev 0)
+++ community-staging-i686/cgminer.service 2015-09-07 19:57:43 UTC (rev 139538)
@@ -0,0 +1,8 @@
+[Unit]
+Description=Multi-threaded multi-pool CPU and GPU miner for bitcoin
+
+[Service]
+ExecStart=/usr/bin/cgminer -T --config /etc/cgminer.conf --syslog
+
+[Install]
+WantedBy=multi-user.target
Copied: cgminer/repos/community-staging-x86_64/PKGBUILD (from rev 139537, cgminer/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2015-09-07 19:57:43 UTC (rev 139538)
@@ -0,0 +1,94 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: monson <holymonson at gmail.com>
+# Contributor: Thomas Dziedzic < gostrc at gmail >
+# Contributor: David Manouchehri <david at davidmanouchehri.com>
+
+pkgname=cgminer
+pkgver=4.9.2
+_pkgver=$pkgver
+pkgrel=2
+pkgdesc="Multi-threaded multi-pool GPU, FPGA and ASIC miner for bitcoin"
+url='http://forum.bitcoin.org/index.php?topic=28402.0'
+license=('GPL3')
+arch=('i686' 'x86_64')
+depends=('curl' 'libusb' 'jansson')
+makedepends=('git')
+source=("git+https://github.com/ckolivas/${pkgname}.git#tag=v$_pkgver"
+ "$pkgname.conf.d"
+ "$pkgname.service")
+backup=("etc/conf.d/$pkgname" "etc/$pkgname.conf")
+
+prepare() {
+ cd $pkgname
+ # We have latest jansson and libusb - just use them
+
+ sed -e 's|^AC_CONFIG_SUBDIRS.*compat/jansson-2\.6.*||' \
+ -e 's|JANSSON_LIBS="compat/jansson-2\.6/src/\.libs/libjansson\.a"|JANSSON_LIBS=-ljansson|' \
+ -e 's|compat/Makefile||' \
+ -i ./configure.ac
+
+ sed -e 's|^JANSSON_CPPFLAGS= .*||' \
+ -e 's|^USBUTILS_CPPFLAGS = .*|USBUTILS_CPPFLAGS = -I/usr/include/libusb-1.0|' \
+ -e 's|^SUBDIRS.*|SUBDIRS = lib ccan|' \
+ -i ./Makefile.am
+
+ #sed "s|ac_subdirs_all='compat/libusb\-1.0\ncompat/jansson-2.5'||" -i ./configure
+ #sed 's|subdirs="$subdirs compat/libusb\-1.0"||' -i ./configure
+ #sed 's|subdirs="$subdirs compat/jansson\-2.5"||' -i ./configure
+ #sed 's|LIBUSB_LIBS="compat/libusb-1.0/libusb/.libs/libusb-1.0.a"|LIBUSB_LIBS=-lusb-1.0|' -i ./configure
+ #sed 's|JANSSON_LIBS="compat/jansson-2.5/src/.libs/libjansson.a"|JANSSON_LIBS=-ljansson|' -i ./configure
+ #sed 's|compat/Makefile ||' -i ./configure
+
+ #sed 's|JANSSON_INCLUDES = .*||' -i ./Makefile.in
+ #sed 's|USBUTILS_INCLUDES = .*|USBUTILS_INCLUDES = -I/usr/include/libusb-1.0|' -i ./Makefile.in
+ #sed 's|SUBDIRS = lib compat ccan|SUBDIRS = lib ccan|' -i ./Makefile.in
+
+ rm -r compat
+}
+
+build() {
+ cd $pkgname
+
+ # Here you may want to use custom CFLAGS
+ #export CFLAGS="-O2 -march=native -mtune=native -msse2"
+
+ # ./configure \
+
+ # Taken from README - Q: What should I build in for a generic distribution binary?
+ ./autogen.sh \
+ --prefix=/usr \
+ --enable-avalon \
+ --enable-avalon2 \
+ --enable-avalon4 \
+ --enable-bflsc \
+ --enable-bitfury \
+ --enable-blockerupter \
+ --enable-cointerra \
+ --enable-drillbit \
+ --enable-hashfast \
+ --enable-hashratio \
+ --enable-icarus \
+ --enable-klondike \
+ --with-system-libusb
+
+ make
+}
+
+package() {
+ cd $pkgname
+
+ make DESTDIR="$pkgdir" install
+
+ install -d "$pkgdir/usr/share/$pkgname"
+ install -m755 miner.php api-example.* "$pkgdir/usr/share/$pkgname"
+
+ install -Dm644 "$srcdir"/$pkgname.service "$pkgdir"/usr/lib/systemd/system/$pkgname.service
+ install -Dm644 "$srcdir"/$pkgname.conf.d "$pkgdir"/etc/conf.d/$pkgname
+ sed 's#/usr/local/bin#/usr/bin#g' example.conf > $pkgname.conf
+ install -Dm644 $pkgname.conf "$pkgdir"/etc/$pkgname.conf
+}
+
+sha512sums=('SKIP'
+ '99c38bc395848f9712ce172343d31f5c60f5d8ac1cfe2f48df8f3ec6c488fc275763a79c5ef36b99f32faa465b5a65284b38e8a63ef9b144075ee13971313b41'
+ '3317b60c6b1f14c47d8ee636113ef40a4023ab14054129de80a37947b381fd2b647a7053f4e1bb639efa225a514e862fa531908714c34040dda2d6221dde7f5f')
Copied: cgminer/repos/community-staging-x86_64/cgminer.conf.d (from rev 139537, cgminer/trunk/cgminer.conf.d)
===================================================================
--- community-staging-x86_64/cgminer.conf.d (rev 0)
+++ community-staging-x86_64/cgminer.conf.d 2015-09-07 19:57:43 UTC (rev 139538)
@@ -0,0 +1,11 @@
+# Use JSON-format configuration. (recommended)
+CGMINER_CONF="/etc/cgminer.conf"
+
+# Uncommend this if you prefer simple command-line arguments.
+#CGMINER_CONF=""
+#CGMINER_PROTOCOL="http"
+#CGMINER_IP="127.0.0.1"
+#CGMINER_PORT="8332"
+#CGMINER_USER="username"
+#CGMINER_PASS="password"
+CGMINER_ARGS="--syslog"
Copied: cgminer/repos/community-staging-x86_64/cgminer.service (from rev 139537, cgminer/trunk/cgminer.service)
===================================================================
--- community-staging-x86_64/cgminer.service (rev 0)
+++ community-staging-x86_64/cgminer.service 2015-09-07 19:57:43 UTC (rev 139538)
@@ -0,0 +1,8 @@
+[Unit]
+Description=Multi-threaded multi-pool CPU and GPU miner for bitcoin
+
+[Service]
+ExecStart=/usr/bin/cgminer -T --config /etc/cgminer.conf --syslog
+
+[Install]
+WantedBy=multi-user.target
More information about the arch-commits
mailing list