2007-03-29 21:36:15 +00:00
|
|
|
#! /usr/bin/make -f
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
|
|
#export DH_VERBOSE=1
|
|
|
|
|
|
|
|
DEB_PYTHON_SYSTEM=pycentral
|
|
|
|
|
|
|
|
include /usr/share/cdbs/1/rules/debhelper.mk
|
|
|
|
include /usr/share/cdbs/1/class/python-distutils.mk
|
|
|
|
|
|
|
|
STAGING_DIR=$(CURDIR)/debian/allmydata-tahoe
|
|
|
|
|
2007-10-11 10:38:24 +00:00
|
|
|
# we overwrite the setuptools-generated /usr/bin/tahoe with our package's
|
|
|
|
# original version, because the setuptools form (using "entry points")
|
|
|
|
# insists upon .egg-info -visible forms of dependent packages to be
|
2007-09-27 00:52:30 +00:00
|
|
|
# installed. For a debian package, we rely upon the dependencies that are
|
|
|
|
# declared in debian/control .
|
|
|
|
#
|
|
|
|
# One disadvantage to this approach is that the #! line will not get updated
|
|
|
|
# to match the version of python that we're using for this build. Instead, it
|
|
|
|
# will retain the original '#!/usr/bin/env python', which has the potential
|
|
|
|
# to surprise people.
|
|
|
|
|
2007-03-29 21:36:15 +00:00
|
|
|
install/allmydata-tahoe::
|
|
|
|
mkdir -pm755 $(STAGING_DIR)
|
|
|
|
python setup.py install --root=$(STAGING_DIR)
|
2007-10-11 10:38:24 +00:00
|
|
|
cp bin/tahoe $(STAGING_DIR)/usr/bin/
|
2007-03-29 21:36:15 +00:00
|
|
|
|
|
|
|
dh_pycentral
|
|
|
|
|
|
|
|
clean::
|
|
|
|
-rm -rf build
|