wok-next view audit/receipt @ rev 19925

libftdi: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 14 23:27:36 2017 +0200 (2017-10-14)
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 }