[arch-commits] Commit in audit/repos (staging-x86_64 staging-x86_64/PKGBUILD)
Felix Yan
felixonmars at gemini.archlinux.org
Mon Nov 29 22:17:56 UTC 2021
Date: Monday, November 29, 2021 @ 22:17:56
Author: felixonmars
Revision: 429503
archrelease: copy trunk to staging-x86_64
Added:
audit/repos/staging-x86_64/
audit/repos/staging-x86_64/PKGBUILD
(from rev 429502, audit/trunk/PKGBUILD)
----------+
PKGBUILD | 82 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 82 insertions(+)
Copied: audit/repos/staging-x86_64/PKGBUILD (from rev 429502, audit/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2021-11-29 22:17:56 UTC (rev 429503)
@@ -0,0 +1,82 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Maintainer : Christian Rebischke <Chris.Rebischke at archlinux.org>
+# Contributor: Daniel Micay <danielmicay at gmail.com>
+# Contributor: <kang at insecure.ws>
+# Contributor: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+# Contributor: Connor Behan <connor.behan at gmail.com>
+# Contributor: henning mueller <henning at orgizm.net>
+
+pkgbase=audit
+pkgname=('audit' 'python-audit')
+pkgver=3.0.6
+pkgrel=3
+pkgdesc='Userspace components of the audit framework'
+url='https://people.redhat.com/sgrubb/audit'
+arch=('x86_64')
+makedepends=('glibc' 'krb5' 'libcap-ng' 'libldap' 'swig' 'linux-headers' 'python')
+license=('GPL')
+options=('emptydirs')
+source=(https://people.redhat.com/sgrubb/audit/${pkgname}-${pkgver}.tar.gz)
+sha512sums=('74734e1b1fddea086db9c5dc8c4b7817917fdf17bc7ca4e5b440aae975484d020a17c3f485f6a37b6b150a307d809e50d559d31a8cbd6f1e554933719551bcd1')
+b2sums=('93a7efad1cbea6771a73222b05aacbabc4ac61d1efb9fc2532607a94804bcac6512d0be2f4d89aa62d94fb85ba5818ffae4bf0a72676e8d549ddbec766e83e9c')
+
+prepare() {
+ cd ${pkgbase}-${pkgver}
+ sed 's|/var/run/auditd.pid|/run/auditd.pid|' -i init.d/auditd.service
+}
+
+build() {
+ cd ${pkgbase}-${pkgver}
+ ./configure \
+ --prefix=/usr \
+ --sbindir=/usr/bin \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/lib/audit \
+ --enable-gssapi-krb5=yes \
+ --enable-systemd=yes \
+ --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 \
+ usr/lib/systemd/system/auditd.service
+
+ chmod 644 usr/lib/systemd/system/auditd.service
+}
+
+package_python-audit() {
+ depends=('python' 'audit')
+ pkgdesc+=' (python bindings)'
+ cd ${pkgbase}-${pkgver}
+ make -C bindings DESTDIR="${pkgdir}" INSTALL='install -p' install
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list