]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/blob - misc/feisty/debian/rules
rename bin/allmydata-tahoe to bin/tahoe. Closes #155.
[tahoe-lafs/tahoe-lafs.git] / misc / feisty / debian / rules
1 #! /usr/bin/make -f
2 # Uncomment this to turn on verbose mode.
3 #export DH_VERBOSE=1
4
5 DEB_PYTHON_SYSTEM=pycentral
6
7 include /usr/share/cdbs/1/rules/debhelper.mk
8 include /usr/share/cdbs/1/class/python-distutils.mk
9
10 STAGING_DIR=$(CURDIR)/debian/allmydata-tahoe
11
12 # we overwrite the setuptools-generated /usr/bin/tahoe with our package's
13 # original version, because the setuptools form (using "entry points")
14 # insists upon .egg-info -visible forms of dependent packages to be
15 # installed. For a debian package, we rely upon the dependencies that are
16 # declared in debian/control .
17 #
18 # One disadvantage to this approach is that the #! line will not get updated
19 # to match the version of python that we're using for this build. Instead, it
20 # will retain the original '#!/usr/bin/env python', which has the potential
21 # to surprise people.
22
23 install/allmydata-tahoe::
24         mkdir -pm755 $(STAGING_DIR)
25         python setup.py install --root=$(STAGING_DIR)
26         cp bin/tahoe $(STAGING_DIR)/usr/bin/
27
28         dh_pycentral
29
30 clean::
31         -rm -rf build