aboutsummaryrefslogblamecommitdiffstats
path: root/main/audit/APKBUILD
blob: bd9c723667bfbb980c1563431adafa475b79dba5 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                        

                                               
            
        
                                                  
                                             
          
                          

                                                     
                              
                                                                                     
                                                                   
                                          
                                             
                    

                     






                                                          


                                



                                                            


                                 
                               


                                         

                                       

                                

                        


         
                      


           
                                      

                                                                         



                                           

                                                      

 
                                                                                                                                                                
                                                                                                                                                                    
                                                                                                                                                                       
                                                                                                                                              
                                                                                                                                               
# Contributor: Dermot Bradley <dermot_bradley@yahoo.com>
# Maintainer: Tycho Andersen <tycho@docker.com>
pkgname=audit
pkgver=3.0.1
pkgrel=1
pkgdesc="User space tools for 2.6 kernel auditing"
url="https://people.redhat.com/sgrubb/audit/"
arch="all"
license="GPL-2.0-or-later"
depends_dev="linux-headers"
makedepends="$depends_dev swig libcap-ng-dev python3"
install="$pkgname.pre-install"
subpackages="$pkgname-static $pkgname-dev $pkgname-doc $pkgname-libs $pkgname-openrc"
source="https://people.redhat.com/sgrubb/audit/audit-$pkgver.tar.gz
	0003-all-get-rid-of-strndupa.patch
	0004-fix-path-in-au-remote-conf.patch
	auditd.initd
	auditd.confd"

case "$CARCH" in
mips*)
	# mips builder does not have audit support enabled
	options="$options !check"
	;;
esac

builddir="$srcdir/audit-$pkgver"

build() {
	if [ "$CARCH" = "ppc64le" ]; then
		WITHOUT="--without-python3 --without-python"
	fi

	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-zos-remote \
		--enable-shared=audit \
		--with-arm \
		--with-aarch64 \
		$WITHOUT
	make
}

check() {
	make -j1 check
}

package() {
	make DESTDIR="$pkgdir" install
	install -Dm755 "$srcdir"/auditd.initd "$pkgdir"/etc/init.d/auditd
	install -Dm644 "$srcdir"/auditd.confd "$pkgdir"/etc/conf.d/auditd
}

static() {
	pkgdesc="Static libaudit libraries"
	mkdir -p "$subpkgdir"/usr/lib/
	mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib/
}

sha512sums="ad2897c9f539681f0f65b08cd0e650c528957fd4799755c2bcc47f869e04272aad31684c46847124d7b42dde243a16ba2754936890189610814c7007c0381d8c  audit-3.0.1.tar.gz
f3f2c4ee745e99877c981d889c5cbb0379d073a9b7634c1480ae603a21a13045f9978b51f8cb53c8d0ba414d249bb859af7bca7e302c464b3fc3c6463ecca762  0003-all-get-rid-of-strndupa.patch
6a0e1fb81d7defe6ad84da447a55e1e0b90299fcbd1ca679934a1dfa1a211986ea4642a1c69abe0619120b64b16546a41fa028f55f27c79819d896178aac6df7  0004-fix-path-in-au-remote-conf.patch
b3d7ceba02b6b4406222c3b142fcfdf2b612dc52eebc490cfd121d696e4ef7c6cc5e27813d67937c464ed4c3cd283de9ccfcb75e63405a447523fa4641e79da3  auditd.initd
69d8777772ded7a8c0db2bcf84961b121bb355fa0d4ba0e14e311f8a8bfe665cbd2b7ac632d73477f9dfa9a6eec357a7ed458fe9b3e7b5ede75b166f3f092ab7  auditd.confd"