X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=debian%2Frules;h=a019ee3b074b27fb00fe0742fefe1aaf51230358;hb=d3416eb2adce5a9ab0bf2ed1e695dff2735fc808;hp=3701079017b7aec4d5299192f1335267c9e1378d;hpb=004b3242cd6b9933ea049039840f1071b0284ad8;p=quix0rs-apt-p2p.git diff --git a/debian/rules b/debian/rules index 3701079..a019ee3 100755 --- a/debian/rules +++ b/debian/rules @@ -1,6 +1,4 @@ #!/usr/bin/make -f -# Sample debian/rules that uses debhelper. -# GNU copyright 1997 to 1999 by Joey Hess. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 @@ -8,17 +6,17 @@ PYTHON_VERSION=$(shell /usr/bin/python -V 2>&1 | /usr/bin/perl -le 'print "$$1.$$2" if <> =~m/^Python\s+(\d+)\.(\d+)(\.\d+)*/') -build-stamp: apt-dht.8 apt-dht.conf.5 +build-stamp: apt-p2p.8 apt-p2p.conf.5 dh_testdir touch build-stamp -%.1: debian/%.sgml +%.5 %.8: debian/%.sgml /usr/bin/docbook-to-man $< > debian/$@ clean: dh_testdir dh_testroot - rm -rf build/ apt_dht/*.pyc apt_dht_Khashmir/*.pyc *.pyc + rm -rf build/ apt_p2p/*.pyc apt_p2p_Khashmir/*.pyc *.pyc rm -f debian/*.[58] rm -f build-stamp dh_clean @@ -31,12 +29,14 @@ install: build-stamp dh_clean -k dh_installdirs - ./setup.py install --prefix=$(CURDIR)/debian/apt-dht/usr --install-lib=$(CURDIR)/debian/apt-dht/usr/share/python-support/apt-dht + ./setup.py install --prefix=$(CURDIR)/debian/apt-p2p/usr \ + --install-lib=$(CURDIR)/debian/apt-p2p/usr/share/python-support/apt-p2p \ + --install-scripts=$(CURDIR)/debian/apt-p2p/usr/sbin # Remove the generated .pyc files - ( cd debian/apt-dht/usr/share/python-support/apt-dht/apt_dht_Khashmir && \ + ( cd debian/apt-p2p/usr/share/python-support/apt-p2p/apt_p2p_Khashmir && \ rm -f *.pyc && \ - cd ../apt_dht && \ + cd ../apt_p2p && \ rm -f *.pyc ) # Build architecture-independent files here. @@ -44,12 +44,10 @@ binary-indep: install dh_testdir dh_testroot dh_installdocs - dh_installexamples dh_installman - dh_installlogrotate # Remove the .py from the end of each of these - mv debian/apt-dht/usr/sbin/apt-dht.py debian/apt-dht/usr/sbin/apt-dht || exit 1; done + mv debian/apt-p2p/usr/sbin/apt-p2p.py debian/apt-p2p/usr/sbin/apt-p2p dh_installchangelogs dh_install