Commit feda537e authored by Francesco Colista's avatar Francesco Colista

main/audit: upgrade to 2.8.2, improved APKBUILD

parent 84116e5f
# Maintainer: Tycho Andersen <tycho@docker.com> # Maintainer: Tycho Andersen <tycho@docker.com>
pkgname=audit pkgname=audit
pkgver=2.7.7 pkgver=2.8.2
pkgrel=1 pkgrel=0
pkgdesc="User space tools for 2.6 kernel auditing" pkgdesc="User space tools for 2.6 kernel auditing"
url="http://people.redhat.com/sgrubb/audit/" url="http://people.redhat.com/sgrubb/audit/"
arch="all" arch="all"
license="GPL-2.0-or-later" license="GPL-2.0-or-later"
depends="" makedepends="linux-headers swig libcap-ng-dev python3"
depends_dev="linux-headers"
makedepends="$depends_dev swig libcap-ng-dev python3"
install=""
subpackages="$pkgname-static $pkgname-dev $pkgname-doc $pkgname-libs" subpackages="$pkgname-static $pkgname-dev $pkgname-doc $pkgname-libs"
source="http://people.redhat.com/sgrubb/audit/audit-$pkgver.tar.gz source="http://people.redhat.com/sgrubb/audit/audit-$pkgver.tar.gz
0001-auditctl-include-headers-to-make-build-work-with-mus.patch
0002-auparse-remove-use-of-rawmemchr.patch 0002-auparse-remove-use-of-rawmemchr.patch
0003-all-get-rid-of-strndupa.patch 0003-all-get-rid-of-strndupa.patch
0004-audisp-audispd.c-Include-limits.h-for-PATH_MAX.patch
auditd.initd auditd.initd
auditd.confd auditd.confd"
"
builddir="$srcdir/audit-$pkgver" builddir="$srcdir/audit-$pkgver"
# FIXME: check on s390x # FIXME: check on s390x
...@@ -41,23 +36,22 @@ build() { ...@@ -41,23 +36,22 @@ build() {
--localstatedir=/var \ --localstatedir=/var \
--disable-zos-remote \ --disable-zos-remote \
--enable-shared=audit \ --enable-shared=audit \
$WITHOUT \ $WITHOUT
|| return 1 make
make || return 1
} }
check() { check() {
cd "$builddir" cd "$builddir"
make -j1 check || return 1 make -j1 check
} }
package() { package() {
cd "$builddir" cd "$builddir"
make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install
install -D -m755 "$srcdir"/auditd.initd \ install -D -m755 "$srcdir"/auditd.initd \
"$pkgdir"/etc/init.d/auditd || return 1 "$pkgdir"/etc/init.d/auditd
install -D -m644 "$srcdir"/auditd.confd \ install -D -m644 "$srcdir"/auditd.confd \
"$pkgdir"/etc/conf.d/auditd || return 1 "$pkgdir"/etc/conf.d/auditd
} }
static() { static() {
...@@ -66,10 +60,8 @@ static() { ...@@ -66,10 +60,8 @@ static() {
mv "$pkgdir"/lib/*.a "$subpkgdir"/lib/ mv "$pkgdir"/lib/*.a "$subpkgdir"/lib/
} }
sha512sums="a465a0526acd647f21cc3625c12107a719abf31c6e76b5d3c7bf17796bfd970af51b892d878162dbd5e6be283f156927daeb24427d1a628125a579965423ff2e audit-2.7.7.tar.gz sha512sums="888ebf5e8e9d285b82d87377fc8836886d7a8b089c1be4091420a77a0250c9baf09aebb7a6330ff5043fb35f51eb6baf8d4491e26da7ad0811f0087e395b5012 audit-2.8.2.tar.gz
119c57eb6aee67b30dcd2252513e2595dc0686b7135529928fed68ab64d0e7a46901ed6a242c90b183a1e02099668ba1c7ef05a17e5dfaa6ca74c01a36e560bf 0001-auditctl-include-headers-to-make-build-work-with-mus.patch
b7851d4c3c6d7d35f2e822273c17ab530ac24301c414da7f0c7578b7a182692ecd01b51cb50ea04adba4b43987f27020f8f411aec23b3bda0af4d4b6e9fbae5d 0002-auparse-remove-use-of-rawmemchr.patch b7851d4c3c6d7d35f2e822273c17ab530ac24301c414da7f0c7578b7a182692ecd01b51cb50ea04adba4b43987f27020f8f411aec23b3bda0af4d4b6e9fbae5d 0002-auparse-remove-use-of-rawmemchr.patch
c380c04fc1939903eea9919d5a918f58725177adee1fe7dbe81e33905bad2f561dc35cae9f3d79aa6f00245cf33cdd50cef5e2b58f4fa5b8cd0cfad59af7137a 0003-all-get-rid-of-strndupa.patch c380c04fc1939903eea9919d5a918f58725177adee1fe7dbe81e33905bad2f561dc35cae9f3d79aa6f00245cf33cdd50cef5e2b58f4fa5b8cd0cfad59af7137a 0003-all-get-rid-of-strndupa.patch
ca1d38b8af822f6506cead858070a7f90ae8cf851556cb9288e31614d288e723efe684777c5f64b61f3988a427a714eb306e53fff93e670342b7a618c6196d69 0004-audisp-audispd.c-Include-limits.h-for-PATH_MAX.patch
1b48c248db5d34f148f9c79f8b2a6acbf61c729230341b861f5e331bbfb0c8356305a09eb2cc5c82c14c4fd9a13c7c13957e1ed493834b8b3b9ee38978e4c31f auditd.initd 1b48c248db5d34f148f9c79f8b2a6acbf61c729230341b861f5e331bbfb0c8356305a09eb2cc5c82c14c4fd9a13c7c13957e1ed493834b8b3b9ee38978e4c31f auditd.initd
69d8777772ded7a8c0db2bcf84961b121bb355fa0d4ba0e14e311f8a8bfe665cbd2b7ac632d73477f9dfa9a6eec357a7ed458fe9b3e7b5ede75b166f3f092ab7 auditd.confd" 69d8777772ded7a8c0db2bcf84961b121bb355fa0d4ba0e14e311f8a8bfe665cbd2b7ac632d73477f9dfa9a6eec357a7ed458fe9b3e7b5ede75b166f3f092ab7 auditd.confd"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment