Browse Source

Update Debian/Ubuntu packaging

Luke Dashjr 8 years ago
parent
commit
1b3d4692f7
6 changed files with 34 additions and 33 deletions
  1. 0 17
      README.Debian
  2. 0 1
      debian/bfgminer.install
  3. 30 6
      debian/control
  4. 0 4
      debian/patches/bfgminer-bitforce.diff
  5. 0 1
      debian/patches/series
  6. 4 4
      debian/rules

+ 0 - 17
README.Debian

@@ -1,17 +0,0 @@
-Debian packaging notes by Graeme Humphries <graeme@sudo.ca>:
-
-Here's the short list on how to build your own Debian/Ubuntu package:
-
-* Install and configure pbuilder (https://wiki.ubuntu.com/PbuilderHowto)
-* Create the Debian specific bitforce module config from its patch:
-	patch -p1 < debian/patches/bfgminer-bitforce.diff
-* Build the package using pbuilder:
-	pdebuild
-* The built package should end up in /var/cache/pbuilder/result
-
-Debian packaging depends on new release versions being entered into debian/changelog. The versions in that file need
-the Debian/Ubuntu release specific suffix (0precise1) as all packages go into a shared pool, and so they need to have distinct
-names for different releases.
-
-When a new release happens, just add it with some brief changelog notes to that file, and it should be ready
-to generate a new source package and upload to the Launchpad PPA.

+ 0 - 1
debian/bfgminer.install

@@ -1 +0,0 @@
-bfgminer-bitforce.conf etc/modprobe.d/

+ 30 - 6
debian/control

@@ -1,13 +1,37 @@
 Source: bfgminer
 Priority: optional
-Section: misc
+Section: net
 Maintainer: Luke Dashjr <luke_bfgminer@dashjr.org>
 Standards-Version: 5.5.0
-Build-Depends: build-essential, debhelper, autoconf, automake, libtool, libssl-dev, yasm, pkg-config, libudev-dev, libcurl4-openssl-dev, wget, unzip, libjansson-dev, libncurses5-dev, libudev-dev, libusb-1.0-0-dev, git, quilt, uthash-dev, libsensors4-dev
+Build-Depends: build-essential, debhelper, autoconf, automake, libtool
+ ,libbase58-dev
+ ,libblkmaker-0.1-dev
+ ,libcurl4-gnutls-dev | libcurl-ssl-dev
+ ,libevent-dev
+ ,libjansson-dev
+ ,libmicrohttpd-dev
+ ,libncursesw5-dev
+ ,libsensors4-dev [!hurd-any]
+ ,libudev-dev [!kfreebsd-any]
+ ,libusb-1.0-0-dev
+ ,pkgconf | pkg-config
+ ,uthash-dev
+ ,yasm
+ ,wget
+ ,unzip
+ ,git
+ ,quilt
+ ,libhidapi-dev
+Homepage: https://github.com/luke-jr/bfgminer
 
 Package: bfgminer
 Architecture: any
-Depends: libjansson4, libudev0 | libudev1, libcurl3, libncurses5, libusb-1.0-0, libsensors4
-Description: This is a multi-threaded multi-pool GPU, FPGA and CPU miner with ATI GPU
- monitoring, (over)clocking and fanspeed support for bitcoin and derivative
- coins.
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Suggests: ocl-icd-libopencl1, opencl-icd
+ ,libhidapi-libusb0 | libhidapi-hidraw0
+Description: multi-threaded, multi-blockchain, multi-pool ASIC, FPGA, GPU and CPU
+ miner with dynamic clocking, monitoring, and fanspeed support for bitcoin.
+ .
+ Bitcoin uses peer-to-peer technology to operate with no central authority or
+ banks; managing transactions and the issuing of bitcoins is carried out
+ collectively by the network.

+ 0 - 4
debian/patches/bfgminer-bitforce.diff

@@ -1,4 +0,0 @@
---- /dev/null
-+++ b/bfgminer-bitforce.conf
-@@ -0,0 +1 @@
-+options ftdi_sio vendor=0x0403 product=0x6014

+ 0 - 1
debian/patches/series

@@ -1 +0,0 @@
-bfgminer-bitforce.diff

+ 4 - 4
debian/rules

@@ -1,14 +1,14 @@
 #!/usr/bin/make -f
+
+export DH_VERBOSE=1
+
 %:
 	dh $@
 
 
 override_dh_auto_configure:
 	NOSUBMODULES=1 ./autogen.sh
-	dh_auto_configure -- --enable-ztex --enable-bitforce --enable-icarus --enable-cpumining --enable-keccak --enable-scrypt --enable-opencl
+	dh_auto_configure -- --enable-other-drivers --enable-keccak --enable-scrypt --with-system-libblkmaker --disable-knc
 
 override_dh_auto_install:
 	$(MAKE) DESTDIR=$(CURDIR)/debian/bfgminer install
-
-override_dh_shlibdeps:
-	dh_shlibdeps -Xbfgminer