Browse Source

Version 0+git20121218

ppa
Timo Röhling 12 years ago
parent
commit
56d651d9aa
6 changed files with 58 additions and 3 deletions
  1. 7
    0
      debian/changelog
  2. 1
    0
      debian/dirs
  3. 9
    1
      debian/postinst
  4. 33
    0
      debian/prerm
  5. 7
    1
      debian/rules
  6. 1
    1
      debian/source/format

+ 7
- 0
debian/changelog View File

@@ -1,3 +1,10 @@
1
+postsrsd (0+git20121218-0~precise) precise; urgency=low
2
+
3
+  * Added chroot capability.
4
+  * Added AppArmor support.
5
+
6
+ -- Timo Röhling <timo.roehling@gmx.de>  Tue, 18 Dec 2012 17:51:44 +0100
7
+
1 8
 postsrsd (0+git20121217) precise; urgency=low
2 9
 
3 10
   * Initial release.

+ 1
- 0
debian/dirs View File

@@ -0,0 +1 @@
1
+var/lib/postsrsd

+ 9
- 1
debian/postinst View File

@@ -21,7 +21,15 @@ set -e
21 21
 if [ "$1" = "configure" -a ! -f /etc/postsrsd.secret ]
22 22
 then
23 23
 	echo "postsrsd: Generating initial /etc/postsrsd.secret" >&2
24
-	( umask 0077 ; dd if=/dev/urandom bs=18 count=1 | base64 -w0 > /etc/postsrsd.secret )
24
+	( umask 0077 ; dd if=/dev/urandom bs=18 count=1 2>/dev/null | base64 -w0 > /etc/postsrsd.secret )
25
+fi
26
+
27
+if [ "$1" = "configure" -o "$1" = "abort-deconfigure" -o "$1" = "abort-remove" ]
28
+then
29
+	if [ -x /sbin/apparmor_parser ]
30
+	then
31
+		apparmor_parser -r -W -T /etc/apparmor.d/usr.sbin.postsrsd
32
+	fi
25 33
 fi
26 34
 
27 35
 # dh_installdeb will replace this with shell code automatically

+ 33
- 0
debian/prerm View File

@@ -0,0 +1,33 @@
1
+#!/bin/sh
2
+# prerm script for postsrsd
3
+#
4
+# see: dh_installdeb(1)
5
+
6
+set -e
7
+
8
+# summary of how this script can be called:
9
+#        * <prerm> `remove'
10
+#        * <old-prerm> `upgrade' <new-version>
11
+#        * <new-prerm> `failed-upgrade' <old-version>
12
+#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
13
+#        * <deconfigured's-prerm> `deconfigure' `in-favour'
14
+#          <package-being-installed> <version> `removing'
15
+#          <conflicting-package> <version>
16
+# for details, see http://www.debian.org/doc/debian-policy/ or
17
+# the debian-policy package
18
+
19
+
20
+if [ "$1" = "remove" -o "$1" = "deconfigure" ]
21
+then
22
+	if [ -x /sbin/apparmor_parser ]
23
+	then
24
+		apparmor_parser -R /etc/apparmor.d/usr.sbin.postsrsd || true
25
+	fi
26
+fi
27
+
28
+# dh_installdeb will replace this with shell code automatically
29
+# generated by other debhelper scripts.
30
+
31
+#DEBHELPER#
32
+
33
+exit 0

+ 7
- 1
debian/rules View File

@@ -13,8 +13,14 @@
13 13
 	dh $@ --buildsystem=cmake
14 14
 	
15 15
 override_dh_auto_configure:
16
-	dh_auto_configure -O--buildsystem=cmake -- -DCMAKE_BUILD_TYPE=Release -DGENERATE_SRS_SECRET=OFF
16
+	dh_auto_configure -O--buildsystem=cmake -- -DCMAKE_BUILD_TYPE=Release -DGENERATE_SRS_SECRET=OFF -DCHROOT_DIR=/var/lib/postsrsd -DUSE_APPARMOR=ON
17 17
 
18 18
 override_dh_installinit:
19 19
 	dh_installinit -o
20 20
 
21
+UPSTREAM_VERSION=$(shell dpkg-parsechangelog | grep Version: | cut -d' ' -f2 | cut -d- -f1 )
22
+BASE_REVISION=$(shell git merge-base ppa master )
23
+
24
+create-orig-tar:
25
+	git archive --prefix=postsrsd/ -o ../postsrsd_$(UPSTREAM_VERSION).orig.tar.gz $(BASE_REVISION)
26
+

+ 1
- 1
debian/source/format View File

@@ -1 +1 @@
1
-3.0 (native)
1
+3.0 (quilt)

Loading…
Cancel
Save