wok-next view audit/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents ac33744dc2c2
children 4c513ebef639
line source
1 # SliTaz package receipt v2.
3 PACKAGE="audit"
4 VERSION="2.8.4"
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="$PACKAGE-python $PACKAGE $PACKAGE-dev"
17 compile_rules() {
18 ./configure \
19 --disable-static \
20 --sbindir=/sbin \
21 $CONFIGURE_ARGS &&
22 fix libtool &&
23 make &&
24 make install || return 1
26 # make files readable for the web interface; fix permissions later in post_install
27 chmod 755 $install/etc/audisp/plugins.d/
28 find $install/etc/audisp/ $install/etc/libaudit.conf \
29 $install/etc/sysconfig/auditd $install/sbin/audispd \
30 -type f -exec chmod o+r '{}' \;
31 }
33 genpkg_rules() {
34 case $PACKAGE in
35 audit-python)
36 copy *.py site-packages/*.so
37 CAT="misc|Python bindings"
38 DEPENDS="audit python"
39 ;;
40 audit)
41 copy @std @rm
42 DEPENDS="libldap"
43 ;;
44 *-dev)
45 copy @dev
46 ;;
47 esac
48 }
50 post_install_audit() {
51 chmod 750 "$1/etc/audisp/plugins.d/"
52 find "$1/etc/audisp/" "$1/etc/libaudit.conf" "$1/etc/sysconfig/auditd" \
53 "$1/sbin/audispd" -type f -exec chmod o-r '{}' \;
54 }