wok-next view audit/receipt @ rev 20441

linux, linux-dev: fix mess with i386|i486, update 32bit config
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Feb 24 05:41:11 2018 +0200 (2018-02-24)
parents 11b5e93cb5f2
children e6615350078d
line source
1 # SliTaz package receipt v2.
3 PACKAGE="audit"
4 VERSION="2.2.1"
5 CATEGORY="misc"
6 SHORT_DESC="System call auditing"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://people.redhat.com/sgrubb/audit/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="${WEB_SITE}$TARBALL"
14 BUILD_DEPENDS="python-dev openldap-dev coreutils-file-format swig"
15 SPLIT="audit-python audit-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 ./configure \
21 --prefix=/usr \
22 --sysconfdir=/etc \
23 --localstatedir=/var \
24 --sbindir=/sbin \
25 $CONFIGURE_ARGS &&
26 make &&
27 make DESTDIR=$DESTDIR install &&
29 # make files readable for the web interface; fix permissions later in post_install
30 chmod 755 $install/etc/audisp/plugins.d/
31 find $install/etc/audisp/ $install/etc/libaudit.conf \
32 $install/etc/sysconfig/auditd $install/sbin/audispd \
33 -type f -exec chmod o+r '{}' \;
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 case $PACKAGE in
40 audit)
41 copy @std
42 rm -r $fs/usr/lib/python*
43 DEPENDS="libcrypto libldap libssl"
44 ;;
45 audit-python)
46 copy *.py site-packages/*.so
47 CAT="misc|Python bindings"
48 DEPENDS="audit python"
49 ;;
50 *-dev)
51 copy @dev
52 ;;
53 esac
54 }
56 post_install_audit() {
57 chmod 750 "$1/etc/audisp/plugins.d/"
58 find "$1/etc/audisp/" "$1/etc/libaudit.conf" "$1/etc/sysconfig/auditd" \
59 "$1/sbin/audispd" -type f -exec chmod o-r '{}' \;
60 }