summaryrefslogtreecommitdiff
path: root/community/tomoyo-tools
diff options
context:
space:
mode:
authorNicolas Reynolds <fauno@kiwwwi.com.ar>2011-08-15 11:25:44 -0300
committerNicolas Reynolds <fauno@kiwwwi.com.ar>2011-08-15 11:25:44 -0300
commitd3a18c96784861f4671d9575d71cb96041bc4fab (patch)
tree27e73dccc79fb400f2bd2a855fd523dd8e704db8 /community/tomoyo-tools
parent1b8314826a584ddba121a6cb764efd44c784c53e (diff)
parent4784cc8068c68b6fc23c2bd0ee8158b2a924f5f4 (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: community/dopewars/PKGBUILD community/flightgear/PKGBUILD extra/bmp/PKGBUILD extra/qemu/PKGBUILD extra/sbcl/PKGBUILD
Diffstat (limited to 'community/tomoyo-tools')
-rw-r--r--community/tomoyo-tools/PKGBUILD21
-rw-r--r--community/tomoyo-tools/build-fix.patch11
2 files changed, 23 insertions, 9 deletions
diff --git a/community/tomoyo-tools/PKGBUILD b/community/tomoyo-tools/PKGBUILD
index 3f2e01124..14212e190 100644
--- a/community/tomoyo-tools/PKGBUILD
+++ b/community/tomoyo-tools/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 48297 2011-05-31 09:33:14Z spupykin $
+# $Id: PKGBUILD 53999 2011-08-11 17:49:23Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Jamie Nguyen <jamie AT tomoyolinux.co.uk>
pkgname=tomoyo-tools
-_basever=2.3.0
-_timestamp=20110511
+_basever=2.4.0
+_timestamp=20110806
pkgver=${_basever}.${_timestamp}
pkgrel=1
pkgdesc='TOMOYO Linux 2.3.x userspace tools for Linux kernel 2.6.36 and later'
@@ -15,15 +15,18 @@ depends=('ncurses')
makedepends=('help2man')
conflicts=('ccs-tools')
install=tomoyo-tools.install
-source=("http://sourceforge.jp/frs/redir.php?f=/tomoyo/48663/${pkgname}-${_basever}-${_timestamp}.tar.gz")
-md5sums=('bbbbaeb145ae12e5fe6154707807b90e')
+source=("tomoyo-tools-${_basever}-${_timestamp}.tar.gz::http://sourceforge.jp/frs/redir.php?m=iij&f=%2Ftomoyo%2F52848%2Ftomoyo-tools-${_basever}-${_timestamp}.tar.gz"
+ build-fix.patch)
+md5sums=('111109a71684f48bcac58bba07b8f49e'
+ '063c85ec6c56b90796ced9c203098f41')
build() {
- cd "${srcdir}/${pkgname}"
- make -j1
+ cd "${srcdir}/${pkgname}"
+ patch -p1 <$srcdir/build-fix.patch
+ make
}
package() {
- cd "${srcdir}/${pkgname}"
- make INSTALLDIR="${pkgdir}" install
+ cd "${srcdir}/${pkgname}"
+ make INSTALLDIR="${pkgdir}" install
}
diff --git a/community/tomoyo-tools/build-fix.patch b/community/tomoyo-tools/build-fix.patch
new file mode 100644
index 000000000..ca949072b
--- /dev/null
+++ b/community/tomoyo-tools/build-fix.patch
@@ -0,0 +1,11 @@
+diff -wbBur tomoyo-tools/usr_lib_tomoyo/tomoyo-editpolicy-agent.c tomoyo-tools.my/usr_lib_tomoyo/tomoyo-editpolicy-agent.c
+--- tomoyo-tools/usr_lib_tomoyo/tomoyo-editpolicy-agent.c 2011-08-06 04:00:00.000000000 +0400
++++ tomoyo-tools.my/usr_lib_tomoyo/tomoyo-editpolicy-agent.c 2011-08-11 21:47:05.000000000 +0400
+@@ -35,6 +35,7 @@
+ #include <dirent.h>
+ #define _GNU_SOURCE
+ #include <sched.h>
++#include <linux/sched.h>
+ #include <sys/mount.h>
+
+ static _Bool wait_data(const int fd)