Date: Saturday, January 29, 2022 @ 22:06:30
  Author: jelle
Revision: 435401

archrelease: copy trunk to testing-x86_64

Added:
  audit/repos/testing-x86_64/
  audit/repos/testing-x86_64/PKGBUILD
    (from rev 435400, audit/trunk/PKGBUILD)

----------+
 PKGBUILD |   82 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 82 insertions(+)

Copied: audit/repos/testing-x86_64/PKGBUILD (from rev 435400, 
audit/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD                             (rev 0)
+++ testing-x86_64/PKGBUILD     2022-01-29 22:06:30 UTC (rev 435401)
@@ -0,0 +1,82 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Maintainer : Christian Rebischke <[email protected]>
+# Contributor: Daniel Micay <[email protected]>
+# Contributor: <[email protected]>
+# Contributor: Massimiliano Torromeo <[email protected]>
+# Contributor: Connor Behan <[email protected]>
+# Contributor: henning mueller <[email protected]>
+
+pkgbase=audit
+pkgname=('audit' 'python-audit')
+pkgver=3.0.7
+pkgrel=1
+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' 'debug')
+source=(https://people.redhat.com/sgrubb/audit/${pkgname}-${pkgver}.tar.gz)
+sha512sums=('b5662b32082fc2ac54e247aa0db5442d76afa30134ebba1d624a17004e9ccf6856bb75344af4ce9d9a0a66c03e1c6f18b7d45658d7df13ea71af0c8362e08d70')
+b2sums=('706db746fb779913619da794bab24a9e890e1655bbd0abb007cbc909b32ab1d643e93953a23ef864d5e189f3447a7ddb4dca1478144cdc226f5a5594545bd28f')
+
+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:

Reply via email to