summaryrefslogtreecommitdiff
path: root/community/tomoyo-tools
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-06-06 00:08:39 -0700
committerroot <root@rshg054.dnsready.net>2013-06-06 00:08:39 -0700
commit051a089508dcb9131c5a2e15ec4cdca686e3d2c7 (patch)
tree30a6197283be3ef8ad04911fe5e8f7a80b4280c7 /community/tomoyo-tools
parent91d3f2ebc9b69c3e24bd507890afbb4bd3f4eea3 (diff)
Thu Jun 6 00:08:39 PDT 2013
Diffstat (limited to 'community/tomoyo-tools')
-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