summaryrefslogtreecommitdiff
path: root/community/tomoyo-tools/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/tomoyo-tools/PKGBUILD')
-rw-r--r--community/tomoyo-tools/PKGBUILD12
1 files changed, 10 insertions, 2 deletions
diff --git a/community/tomoyo-tools/PKGBUILD b/community/tomoyo-tools/PKGBUILD
index 9fd6ccc30..c046d9d44 100644
--- a/community/tomoyo-tools/PKGBUILD
+++ b/community/tomoyo-tools/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 91910 2013-05-29 10:07:22Z spupykin $
+# $Id: PKGBUILD 92435 2013-06-05 10:32:39Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Jamie Nguyen <jamie AT tomoyolinux.co.uk>
@@ -7,7 +7,7 @@ _basever=2.5.0
_timestamp=20130214
_file=53357
pkgver=${_basever}.${_timestamp}
-pkgrel=3
+pkgrel=4
pkgdesc='TOMOYO Linux userspace tools for Linux kernels >=3.2'
arch=('i686' 'x86_64')
url='http://tomoyo.sourceforge.jp'
@@ -19,6 +19,14 @@ install=tomoyo-tools.install
source=("http://sourceforge.jp/frs/redir.php?f=/tomoyo/${_file}/${pkgname}-${_basever}-${_timestamp}.tar.gz")
md5sums=('ffff6b531ed9ac32b01722a9cd749a2f')
+prepare() {
+ cd "${srcdir}/${pkgname}"
+ sed -i \
+ -e 's|usr/sbin|usr/bin|g' \
+ -e 's|sbin|usr/bin|g' \
+ usr_lib_tomoyo/init_policy.c
+}
+
build() {
cd "${srcdir}/${pkgname}"
make USRSBINDIR=/usr/bin SBINDIR=/usr/bin