1 # Adapted for kernel26-pf: Christos Nouskas <nous at archlinux.us>
2 # Maintainer: Jamie Nguyen <jamie AT tomoyolinux.co.uk>
10 _kernver=${_basever}-pf
11 _ccstoolsver=1.8.1.20110401
13 pkgdesc='TOMOYO Linux 1.8.x Linux Kernel Module for kernel26-pf'
14 arch=('i686' 'x86_64')
15 url='http://akari.sourceforge.jp/'
17 depends=('kernel26-pf>=2.6.37' 'kernel26-pf<2.6.38')
18 optdepends=("ccs-tools>=${_ccstoolsver}")
20 source=("http://sourceforge.jp/frs/redir.php?f=/akari/49272/${_pkgname}-${pkgver}-${_timestamp}.tar.gz")
21 noextract=("${_pkgname}-${pkgver}-${_timestamp}.tar.gz")
22 sha256sums=('ab718cf3415c49bbf3dbe42240c6f336cd70e8f7549d3c261c02b6d14744b6b3')
26 # use kernel26-pf headers
27 cp -a /usr/src/linux-${_kernver} $srcdir/
28 cd "${srcdir}/linux-${_kernver}"
29 # extract akari into the kernel source
30 tar -xf "${srcdir}/${_pkgname}-${pkgver}-${_timestamp}.tar.gz"
32 # msg "You must select \"Enable dirrerent security models\" and \"TOMOYO Linux support\" under"
33 # msg "\"Security options\" in the main options configuration menu. Press <ENTER> to continue."
36 # dirty work around failing but necessary make prepare
37 # make prepare || make SUBDIRS=akari modules
38 make SUBDIRS=akari SYSSRC=/lib/modules/${_kernver}/build modules || return 1
43 install -D -m644 "${srcdir}/linux-${_kernver}/akari/akari.ko" \
44 "${pkgdir}/lib/modules/${_kernver}/kernel/extra/akari.ko"
45 sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" "${startdir}/akari.install"