wok-next annotate 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 |
rev | line source |
---|---|
al@19810 | 1 # SliTaz package receipt v2. |
pascal@12907 | 2 |
pascal@12907 | 3 PACKAGE="audit" |
al@20958 | 4 VERSION="2.8.4" |
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@21020 | 15 SPLIT="$PACKAGE-python $PACKAGE $PACKAGE-dev" |
pascal@12907 | 16 |
al@20534 | 17 compile_rules() { |
al@19810 | 18 ./configure \ |
al@20958 | 19 --disable-static \ |
al@19810 | 20 --sbindir=/sbin \ |
al@19810 | 21 $CONFIGURE_ARGS && |
al@20569 | 22 fix libtool && |
pascal@12907 | 23 make && |
al@20958 | 24 make install || return 1 |
al@19810 | 25 |
al@19810 | 26 # make files readable for the web interface; fix permissions later in post_install |
al@19810 | 27 chmod 755 $install/etc/audisp/plugins.d/ |
al@19810 | 28 find $install/etc/audisp/ $install/etc/libaudit.conf \ |
al@19810 | 29 $install/etc/sysconfig/auditd $install/sbin/audispd \ |
al@19810 | 30 -type f -exec chmod o+r '{}' \; |
pascal@12907 | 31 } |
pascal@12907 | 32 |
al@20534 | 33 genpkg_rules() { |
al@19810 | 34 case $PACKAGE in |
al@19810 | 35 audit-python) |
al@19810 | 36 copy *.py site-packages/*.so |
al@19810 | 37 CAT="misc|Python bindings" |
al@19810 | 38 DEPENDS="audit python" |
al@19810 | 39 ;; |
al@20534 | 40 audit) |
al@20534 | 41 copy @std @rm |
al@20958 | 42 DEPENDS="libldap" |
al@20534 | 43 ;; |
al@19810 | 44 *-dev) |
al@19810 | 45 copy @dev |
al@19810 | 46 ;; |
al@19810 | 47 esac |
pascal@12907 | 48 } |
al@19810 | 49 |
al@19810 | 50 post_install_audit() { |
al@19810 | 51 chmod 750 "$1/etc/audisp/plugins.d/" |
al@19810 | 52 find "$1/etc/audisp/" "$1/etc/libaudit.conf" "$1/etc/sysconfig/auditd" \ |
al@19810 | 53 "$1/sbin/audispd" -type f -exec chmod o-r '{}' \; |
al@19810 | 54 } |