76 lines
2.1 KiB
Bash
76 lines
2.1 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgbase=audit
|
|
pkgname=('audit' 'python-audit')
|
|
pkgver=3.0.7
|
|
pkgrel=01
|
|
pkgdesc='Userspace components of the audit framework w/o systemd'
|
|
url='https://people.redhat.com/sgrubb/audit'
|
|
arch=('x86_64')
|
|
makedepends=('glibc' 'krb5' 'libcap-ng' 'libldap' 'swig' 'linux-lts-headers' 'python')
|
|
options=(emptydirs)
|
|
#options=('emptydirs' 'debug')
|
|
source=(${url}/${pkgname}-${pkgver}.tar.gz)
|
|
|
|
build() {
|
|
cd ${pkgbase}-${pkgver}
|
|
./configure \
|
|
--prefix=/usr \
|
|
--sbindir=/usr/bin \
|
|
--sysconfdir=/etc \
|
|
--libexecdir=/usr/lib/audit \
|
|
--enable-gssapi-krb5=yes \
|
|
--enable-systemd=no \
|
|
--with-libcap-ng=yes
|
|
make
|
|
[ -n "${SOURCE_DATE_EPOCH}" ] && touch -h -d @$SOURCE_DATE_EPOCH bindings/swig/python/audit.py
|
|
}
|
|
|
|
package_audit() {
|
|
depends=('glibc' 'krb5' libkrb5.so libgssapi_krb5.so 'libcap-ng' libcap-ng.so)
|
|
provides=('libaudit.so' 'libauparse.so')
|
|
backup=(
|
|
etc/libaudit.conf
|
|
etc/audit/audit-stop.rules
|
|
etc/audit/auditd.conf
|
|
etc/audit/audisp-remote.conf
|
|
etc/audit/zos-remote.conf
|
|
etc/audit/plugins.d/af_unix.conf
|
|
etc/audit/plugins.d/au-remote.conf
|
|
etc/audit/plugins.d/audispd-zos-remote.conf
|
|
etc/audit/plugins.d/syslog.conf
|
|
)
|
|
|
|
cd ${pkgbase}-${pkgver}
|
|
make DESTDIR="${pkgdir}" INSTALL='install -p' install
|
|
|
|
cd "${pkgdir}"
|
|
install -d -m 0700 var/log/audit
|
|
rm -rf etc/rc.d \
|
|
etc/sysconfig \
|
|
usr/lib/audit \
|
|
usr/lib/python*
|
|
|
|
sed -ri 's|/sbin|/usr/bin|' \
|
|
etc/audit/*.conf \
|
|
etc/audit/plugins.d/*.conf
|
|
}
|
|
|
|
package_python-audit() {
|
|
depends=('python' 'audit')
|
|
pkgdesc+=' (python bindings)'
|
|
cd ${pkgbase}-${pkgver}
|
|
make -C bindings DESTDIR="${pkgdir}" INSTALL='install -p' install
|
|
}
|
|
|
|
#---- license gpg-key sha512sums ----
|
|
|
|
license=('GPL')
|
|
|
|
sha256sums=(8b4c78632a9301a1c7f859b0e38fc0b9c260b8214d6b7c771bf28b3d73a62597) # audit-3.0.7.tar.gz
|