[arch-commits] Commit in audit/trunk (PKGBUILD)

Jelle van der Waa jelle at archlinux.org
Sat Feb 2 17:33:05 UTC 2019


    Date: Saturday, February 2, 2019 @ 17:33:04
  Author: jelle
Revision: 345120

upgpkg: audit 2.8.4-3

Fix python-audit/python2-audit dependency issues and fix the auditd rundir.

Modified:
  audit/trunk/PKGBUILD

----------+
 PKGBUILD |   11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-02-02 15:18:20 UTC (rev 345119)
+++ PKGBUILD	2019-02-02 17:33:04 UTC (rev 345120)
@@ -9,7 +9,7 @@
 pkgbase=audit
 pkgname=('audit' 'python2-audit' 'python-audit')
 pkgver=2.8.4
-pkgrel=2
+pkgrel=3
 pkgdesc='Userspace components of the audit framework'
 url='https://people.redhat.com/sgrubb/audit'
 arch=('x86_64')
@@ -19,6 +19,11 @@
 source=(${pkgbase}-${pkgver}.tar.gz::https://people.redhat.com/sgrubb/audit/${pkgbase}-${pkgver}.tar.gz)
 sha512sums=('5795c565effab995cee447a2dc457ef6a6f15201fb185d7104992ac373a3cb5cfc865dd661c0896a895c96f452eff392d455064d0eead55cd7364d96e0d15c4a')
 
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  sed 's|/var/run/auditd.pid|/run/auditd.pid|' -i init.d/auditd.service
+}
+
 build() {
   cd ${pkgbase}-${pkgver}
   export PYTHON=/usr/bin/python2
@@ -69,7 +74,7 @@
 }
 
 package_python2-audit() {
-  depends=('python' 'audit')
+  depends=('python2' 'audit')
   pkgdesc+=' (python2 bindings)'
   cd ${pkgbase}-${pkgver}
   make -C bindings DESTDIR="${pkgdir}" INSTALL='install -p' install
@@ -77,7 +82,7 @@
 }
 
 package_python-audit() {
-  depends=('python2' 'audit')
+  depends=('python' 'audit')
   pkgdesc+=' (python bindings)'
   cd ${pkgbase}-${pkgver}
   make -C bindings DESTDIR="${pkgdir}" INSTALL='install -p' install



More information about the arch-commits mailing list