[Pkg-privacy-commits] [obfsproxy] 348/353: 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:23 UTC 2015


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

infinity0 pushed a commit to branch master
in repository obfsproxy.

commit 7dd4fc65f21f94ca7eab3afbcc7f8e14ad71a50d
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 47f06c1..f95d718 100644
--- a/debian/control
+++ b/debian/control
@@ -5,6 +5,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