summaryrefslogtreecommitdiff
path: root/res/debian/pkg__rhizi-common/rules
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2015-05-03 16:51:39 +0300
committerLV-426 <lv-426@taproot.org.il>2015-05-05 19:04:31 +0300
commitdc05441b446aa4cf7e6eaa941c6dd623131bdcff (patch)
tree09c541f73bf6161feb33922ff04e477f29653c84 /res/debian/pkg__rhizi-common/rules
parent60f8d3d0589cc7fda88d933dc132bd85df35203c (diff)
deb-pkg, build.ant: introducing 'single' and 'mux' debian package variants
Currently both share the same control script, generating a 'rhizi' named package
Diffstat (limited to 'res/debian/pkg__rhizi-common/rules')
-rwxr-xr-xres/debian/pkg__rhizi-common/rules25
1 files changed, 25 insertions, 0 deletions
diff --git a/res/debian/pkg__rhizi-common/rules b/res/debian/pkg__rhizi-common/rules
new file mode 100755
index 00000000..e2a59841
--- /dev/null
+++ b/res/debian/pkg__rhizi-common/rules
@@ -0,0 +1,25 @@
+#!/usr/bin/make -f
+
+export DH_VERBOSE=1
+
+DEB_CONFIGURE_EXTRA_FLAGS := \
+ --prefix=/usr \
+ --libdir=/usr/lib \
+ --enable-python
+
+%:
+ dh $@ --with python2
+
+override_dh_auto_configure:
+ dh_auto_configure -- $(DEB_CONFIGURE_EXTRA_FLAGS)
+
+override_dh_auto_install:
+ dh_auto_install
+
+ # TODO: support python setup.py install:
+ # python setup.py install --root=$(CURDIR)/debian/supybot --prefix=/usr $(py_setup_install_args)
+
+override_dh_python2:
+ dh_python2 \
+ -p rhizi \
+ --exclude=rhizi-server.py