[Python-apps-commits] r12325 - in packages/python-afl/trunk/debian (6 files)
danstender-guest at users.alioth.debian.org
danstender-guest at users.alioth.debian.org
Sat Sep 5 19:53:45 UTC 2015
Date: Saturday, September 5, 2015 @ 19:53:45
Author: danstender-guest
Revision: 12325
use alternatives to contribute wrapper script in both packages
Added:
packages/python-afl/trunk/debian/python-afl.postinst
packages/python-afl/trunk/debian/python-afl.prerm
packages/python-afl/trunk/debian/python3-afl.postinst
packages/python-afl/trunk/debian/python3-afl.prerm
Modified:
packages/python-afl/trunk/debian/changelog
packages/python-afl/trunk/debian/rules
Modified: packages/python-afl/trunk/debian/changelog
===================================================================
--- packages/python-afl/trunk/debian/changelog 2015-09-05 15:28:03 UTC (rev 12324)
+++ packages/python-afl/trunk/debian/changelog 2015-09-05 19:53:45 UTC (rev 12325)
@@ -9,8 +9,12 @@
dropped deb/docs.
* py-afl-showmap has been dropped in 0.3: removed manpage, added deb/NEWS with
info on this.
+ * use alternatives to contribute wrapper script in both packages:
+ + deb/rules: install wrapper privately into both binaries.
+ + deb/rules: build manpage twice with different file names.
+ + added deb/python{,3}.postinst and deb/python{,3}.prerm.
- -- Daniel Stender <debian at danielstender.com> Sat, 05 Sep 2015 17:26:35 +0200
+ -- Daniel Stender <debian at danielstender.com> Sat, 05 Sep 2015 21:51:03 +0200
python-afl (0.2.1-1) unstable; urgency=medium
Added: packages/python-afl/trunk/debian/python-afl.postinst
===================================================================
--- packages/python-afl/trunk/debian/python-afl.postinst (rev 0)
+++ packages/python-afl/trunk/debian/python-afl.postinst 2015-09-05 19:53:45 UTC (rev 12325)
@@ -0,0 +1,10 @@
+#!/bin/sh
+set -e
+if [ "$1" = configure ]
+then
+ update-alternatives \
+ --install /usr/bin/py-afl-fuzz py-afl-fuzz /usr/share/python-afl/py-afl-fuzz 20 \
+ --slave /usr/share/man/man1/py-afl-fuzz.1.gz py-afl-fuzz.1.gz /usr/share/man/man1/py-afl-fuzz.py2.1.gz
+fi
+exit 0
+#DEBHELPER#
Added: packages/python-afl/trunk/debian/python-afl.prerm
===================================================================
--- packages/python-afl/trunk/debian/python-afl.prerm (rev 0)
+++ packages/python-afl/trunk/debian/python-afl.prerm 2015-09-05 19:53:45 UTC (rev 12325)
@@ -0,0 +1,8 @@
+#!/bin/sh
+set -e
+if [ "$1" = remove ] || [ "$1" = deconfigure ]
+then
+ update-alternatives --remove py-afl-fuzz /usr/share/python-afl/py-afl-fuzz
+fi
+exit 0
+#DEBHELPER#
Added: packages/python-afl/trunk/debian/python3-afl.postinst
===================================================================
--- packages/python-afl/trunk/debian/python3-afl.postinst (rev 0)
+++ packages/python-afl/trunk/debian/python3-afl.postinst 2015-09-05 19:53:45 UTC (rev 12325)
@@ -0,0 +1,10 @@
+#!/bin/sh
+set -e
+if [ "$1" = configure ]
+then
+ update-alternatives \
+ --install /usr/bin/py-afl-fuzz py-afl-fuzz /usr/share/python3-afl/py-afl-fuzz 10 \
+ --slave /usr/share/man/man1/py-afl-fuzz.1.gz py-afl-fuzz.1.gz /usr/share/man/man1/py-afl-fuzz.py3.1.gz
+fi
+exit 0
+#DEBHELPER#
Added: packages/python-afl/trunk/debian/python3-afl.prerm
===================================================================
--- packages/python-afl/trunk/debian/python3-afl.prerm (rev 0)
+++ packages/python-afl/trunk/debian/python3-afl.prerm 2015-09-05 19:53:45 UTC (rev 12325)
@@ -0,0 +1,8 @@
+#!/bin/sh
+set -e
+if [ "$1" = remove ] || [ "$1" = deconfigure ]
+then
+ update-alternatives --remove py-afl-fuzz /usr/share/python3-afl/py-afl-fuzz
+fi
+exit 0
+#DEBHELPER#
Modified: packages/python-afl/trunk/debian/rules
===================================================================
--- packages/python-afl/trunk/debian/rules 2015-09-05 15:28:03 UTC (rev 12324)
+++ packages/python-afl/trunk/debian/rules 2015-09-05 19:53:45 UTC (rev 12325)
@@ -9,12 +9,13 @@
dh $@ --with python2,python3 --buildsystem=pybuild
override_dh_auto_install:
- dh_auto_install
- rm -rf debian/python-afl/usr/bin
+ PYBUILD_SYSTEM=custom PYBUILD_INSTALL_ARGS="{interpreter} setup.py install --root={destdir} --install-scripts=/usr/share/{package}" dh_auto_install
override_dh_installdocs:
dh_installdocs -A doc/README.rst doc/trophy-case.rst
override_dh_installman:
- txt2man -s 1 -v "python3-afl" -t "py-afl-fuzz" -r "$(VERSION)" -d "$(DEBDATE)" debian/py-afl-fuzz.txt > .pybuild/py-afl-fuzz.1
- dh_installman -ppython3-afl .pybuild/py-afl-fuzz.1
+ txt2man -s 1 -v "python{,3}-afl" -t "py-afl-fuzz" -r "$(VERSION)" -d "$(DEBDATE)" debian/py-afl-fuzz.txt > .pybuild/py-afl-fuzz.py2.1
+ dh_installman -ppython-afl .pybuild/py-afl-fuzz.py2.1
+ txt2man -s 1 -v "python{,3}-afl" -t "py-afl-fuzz" -r "$(VERSION)" -d "$(DEBDATE)" debian/py-afl-fuzz.txt > .pybuild/py-afl-fuzz.py3.1
+ dh_installman -ppython3-afl .pybuild/py-afl-fuzz.py3.1
More information about the Python-apps-commits
mailing list