summaryrefslogtreecommitdiff
path: root/libre/paxd-libre
diff options
context:
space:
mode:
Diffstat (limited to 'libre/paxd-libre')
-rw-r--r--libre/paxd-libre/PKGBUILD17
-rw-r--r--libre/paxd-libre/fix_issues.patch25
2 files changed, 37 insertions, 5 deletions
diff --git a/libre/paxd-libre/PKGBUILD b/libre/paxd-libre/PKGBUILD
index 791a3ab77..5b7954a39 100644
--- a/libre/paxd-libre/PKGBUILD
+++ b/libre/paxd-libre/PKGBUILD
@@ -4,8 +4,8 @@
_pkgname=paxd
pkgname=paxd-libre
-pkgver=1.2
-pkgrel=1
+pkgver=1.3
+pkgrel=2
pkgdesc='PaX exception daemon (a libre fork of paxd)'
arch=(i686 x86_64)
url='https://github.com/g4jc/paxd-libre/'
@@ -14,11 +14,18 @@ replaces=($_pkgname linux-pax-flags)
conflicts=($_pkgname linux-pax-flags)
provides=($_pkgname linux-pax-flags)
depends=(glibc)
-source=(https://github.com/g4jc/paxd-libre/archive/$pkgver.tar.gz 10-enable-pax.conf)
-md5sums=('20793d7b60d3d8894a4933b8bca5612d'
- 'a40677d2cd39ada4c2560927c67e0ea2')
+source=(https://github.com/g4jc/paxd-libre/archive/$pkgver.tar.gz 10-enable-pax.conf
+ fix_issues.patch)
+md5sums=('0eb1c2271cd3e893d4ed1bdf4772d714'
+ 'a40677d2cd39ada4c2560927c67e0ea2'
+ 'b4c7f8929ddcf94e19155d27c11d0231')
backup=(etc/paxd-libre.conf)
+prepare() {
+ cd $pkgname-$pkgver
+ patch -Np1 -i "$srcdir/fix_issues.patch"
+}
+
build() {
cd $pkgname-$pkgver
make CC=gcc
diff --git a/libre/paxd-libre/fix_issues.patch b/libre/paxd-libre/fix_issues.patch
new file mode 100644
index 000000000..07120cd51
--- /dev/null
+++ b/libre/paxd-libre/fix_issues.patch
@@ -0,0 +1,25 @@
+diff -Nur paxd-libre-1.3.orig/paxd-libre.c paxd-libre-1.3/paxd-libre.c
+--- paxd-libre-1.3.orig/paxd-libre.c 2014-11-08 19:40:27.000000000 -0200
++++ paxd-libre-1.3/paxd-libre.c 2014-11-28 15:30:42.304537269 -0200
+@@ -28,7 +28,7 @@
+ perror("inotify");
+ return EXIT_FAILURE;
+ }
+- int watch_conf = inotify_add_watch_x(inotify, "/etc/paxd.conf", IN_MODIFY);
++ int watch_conf = inotify_add_watch_x(inotify, "/etc/paxd-libre.conf", IN_MODIFY);
+ int watch_conf_dir = inotify_add_watch_x(inotify, "/etc/", IN_CREATE | IN_MOVED_TO);
+ int watch_pacman = inotify_add_watch_x(inotify, "/var/lib/pacman/", IN_DELETE);
+
+@@ -45,10 +45,10 @@
+
+ if (event->wd == watch_conf) {
+ fprintf(stderr, "configuration modified, updating attributes\n");
+- } else if (event->wd == watch_conf_dir && !strcmp(event->name, "paxd.conf")) {
++ } else if (event->wd == watch_conf_dir && !strcmp(event->name, "paxd-libre.conf")) {
+ fprintf(stderr, "configuration created or moved to, updating attributes\n");
+ close(watch_conf);
+- watch_conf = inotify_add_watch_x(inotify, "/etc/paxd.conf", IN_MODIFY);
++ watch_conf = inotify_add_watch_x(inotify, "/etc/paxd-libre.conf", IN_MODIFY);
+ } else if (event->wd == watch_pacman && !strcmp(event->name, "db.lck")) {
+ fprintf(stderr, "pacman finished a transaction, updating attributes\n");
+ } else {