[Pkg-privacy-commits] [obfsproxy] 02/06: Install the AppArmor profile into the package, have dh_apparmor do its magics.

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 13:02:26 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch bug739284-add-apparmor-profile
in repository obfsproxy.

commit dc33ca04ebf13a3cefbacb3fb435ac2f1c86fe1d
Author: intrigeri <intrigeri at debian.org>
Date:   Sun Aug 31 02:54:43 2014 +0000

    Install the AppArmor profile into the package, have dh_apparmor do its magics.
---
 debian/control        | 1 +
 debian/obfsproxy.dirs | 1 +
 debian/rules          | 5 +++++
 3 files changed, 7 insertions(+)

diff --git a/debian/control b/debian/control
index b6f3c89..4dc47d6 100644
--- a/debian/control
+++ b/debian/control
@@ -4,6 +4,7 @@ Section: net
 Priority: extra
 Build-Depends: asciidoc,
                debhelper (>= 8),
+               dh-apparmor,
                docbook-xsl,
                python-all (>= 2.6.6-3~),
                python-crypto,
diff --git a/debian/obfsproxy.dirs b/debian/obfsproxy.dirs
new file mode 100644
index 0000000..79a7ef3
--- /dev/null
+++ b/debian/obfsproxy.dirs
@@ -0,0 +1 @@
+etc/apparmor.d
diff --git a/debian/rules b/debian/rules
index 97377f8..0b7e9b4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,11 @@
 %:
 	dh $@ --buildsystem=python_distutils --with=python2
 
+override_dh_install:
+	dh_install
+	cp debian/apparmor-profile debian/obfsproxy/etc/apparmor.d/usr.bin.obfsproxy
+	dh_apparmor --profile-name=usr.bin.obfsproxy -pobfsproxy
+
 override_dh_installman:
 	a2x --no-xmllint --doctype manpage --format manpage debian/obfsproxy.1.txt
 	dh_installman -O--buildsystem=python_distutils

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/obfsproxy.git



More information about the Pkg-privacy-commits mailing list