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