wok-next diff audit/receipt @ rev 20043

gdb: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Oct 22 21:23:15 2017 +0200 (2017-10-22)
parents 11b5e93cb5f2
children e6615350078d
line diff
     1.1 --- a/audit/receipt	Tue Jul 05 15:34:01 2016 +0300
     1.2 +++ b/audit/receipt	Sun Oct 22 21:23:15 2017 +0200
     1.3 @@ -1,36 +1,60 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="audit"
     1.8  VERSION="2.2.1"
     1.9  CATEGORY="misc"
    1.10 -SHORT_DESC="System call auditing."
    1.11 +SHORT_DESC="System call auditing"
    1.12  MAINTAINER="pascal.bellard@slitaz.org"
    1.13  LICENSE="GPL2"
    1.14  WEB_SITE="http://people.redhat.com/sgrubb/audit/"
    1.15 +
    1.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.17  WGET_URL="${WEB_SITE}$TARBALL"
    1.18  
    1.19 -DEPENDS=""
    1.20 -BUILD_DEPENDS="openldap-dev"
    1.21 +BUILD_DEPENDS="python-dev openldap-dev coreutils-file-format swig"
    1.22 +SPLIT="audit-python audit-dev"
    1.23  
    1.24  # Rules to configure and make the package.
    1.25  compile_rules()
    1.26  {
    1.27 -	./configure --prefix=/usr --sysconfdir=/etc \
    1.28 -		--mandir=/usr/share/man \
    1.29 -		--localstatedir=/var --sbindir=/sbin \
    1.30 -	$CONFIGURE_ARGS &&
    1.31 +	./configure \
    1.32 +		--prefix=/usr \
    1.33 +		--sysconfdir=/etc \
    1.34 +		--localstatedir=/var \
    1.35 +		--sbindir=/sbin \
    1.36 +		$CONFIGURE_ARGS &&
    1.37  	make &&
    1.38 -	make DESTDIR=$DESTDIR install
    1.39 +	make DESTDIR=$DESTDIR install &&
    1.40 +
    1.41 +	# make files readable for the web interface; fix permissions later in post_install
    1.42 +	chmod 755 $install/etc/audisp/plugins.d/
    1.43 +	find $install/etc/audisp/ $install/etc/libaudit.conf \
    1.44 +	$install/etc/sysconfig/auditd $install/sbin/audispd \
    1.45 +	-type f -exec chmod o+r '{}' \;
    1.46  }
    1.47  
    1.48  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.49  genpkg_rules()
    1.50  {
    1.51 -	mkdir -p $fs/usr/lib
    1.52 -	cp -a $install/sbin $fs/
    1.53 -	cp -a $install/usr/bin $fs/usr
    1.54 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.55 -	cp -a $install/etc $fs/
    1.56 -	chown -R root.root $fs/etc
    1.57 +	case $PACKAGE in
    1.58 +		audit)
    1.59 +			copy @std
    1.60 +			rm -r $fs/usr/lib/python*
    1.61 +			DEPENDS="libcrypto libldap libssl"
    1.62 +			;;
    1.63 +		audit-python)
    1.64 +			copy *.py site-packages/*.so
    1.65 +			CAT="misc|Python bindings"
    1.66 +			DEPENDS="audit python"
    1.67 +			;;
    1.68 +		*-dev)
    1.69 +			copy @dev
    1.70 +			;;
    1.71 +	esac
    1.72  }
    1.73 +
    1.74 +post_install_audit() {
    1.75 +	chmod 750 "$1/etc/audisp/plugins.d/"
    1.76 +	find "$1/etc/audisp/" "$1/etc/libaudit.conf" "$1/etc/sysconfig/auditd" \
    1.77 +	"$1/sbin/audispd" -type f -exec chmod o-r '{}' \;
    1.78 +}