mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 12:57:14 +08:00
42 lines
1.2 KiB
Bash
42 lines
1.2 KiB
Bash
|
|
pkgname=tomoyo-tools
|
|
_file=53357
|
|
_basever=2.5.0
|
|
_timestamp=20140601
|
|
pkgver=${_basever}.${_timestamp}
|
|
pkgrel=2
|
|
pkgdesc='TOMOYO Linux userspace tools for Linux kernels >=3.2'
|
|
arch=('x86_64')
|
|
url='http://tomoyo.sourceforge.jp'
|
|
license=('GPL')
|
|
depends=('ncurses' 'linux>=3.2')
|
|
conflicts=('ccs-tools')
|
|
install=tomoyo-tools.install
|
|
source=("http://sourceforge.jp/frs/redir.php?f=/tomoyo/${_file}/${pkgname}-${_basever}-${_timestamp}.tar.gz" 'tomoyo-tools.install' 'tomoyo-auditd.service')
|
|
sha256sums=('118ef6ba1fbf7c0b83018c3a0d4d5485dfb9b5b7f647f37ce9f63841a3133c2a'
|
|
'8236b6f3f268e3991d1f677dbf0ae5f520b900540f44f23ad547f6a1c75254f5'
|
|
'7c3c01a8ba34af9dc3601d470afdd0d3a2b01a1ca1951e3479cfd1fb4dfdafa3')
|
|
|
|
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
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}"
|
|
|
|
_unitdir="$(pkg-config --variable=systemdsystemunitdir systemd)"
|
|
|
|
make USRSBINDIR=/usr/bin SBINDIR=/usr/bin INSTALLDIR="${pkgdir}" install
|
|
install -Dm644 "${srcdir}/tomoyo-auditd.service" \
|
|
"${pkgdir}/${_unitdir}/tomoyo-auditd.service"
|
|
}
|