diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2014-04-09 14:32:59 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2014-04-09 14:32:59 +0000 |
commit | 80a42c0c7da3d3978b5fccf0236cdfc2a6188789 (patch) | |
tree | aefa69c887ab6a3e1529806b58ba8bd6df658b2b | |
parent | ffb07fe039a3036b257ef49628bdc26bdbcc2615 (diff) | |
download | aports-80a42c0c7da3d3978b5fccf0236cdfc2a6188789.tar.bz2 aports-80a42c0c7da3d3978b5fccf0236cdfc2a6188789.tar.xz |
main/snmptt: fix ownership of spool and log dirs
-rw-r--r-- | main/snmptt/APKBUILD | 8 | ||||
-rw-r--r-- | main/snmptt/snmptt.pre-install | 1 |
2 files changed, 6 insertions, 3 deletions
diff --git a/main/snmptt/APKBUILD b/main/snmptt/APKBUILD index 264fa5e3f7..4b6265c89e 100644 --- a/main/snmptt/APKBUILD +++ b/main/snmptt/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=snmptt pkgver=1.3 -pkgrel=4 +pkgrel=5 pkgdesc="Translates traps received from snmptrapd into easy to understand messages" url="http://www.snmptt.org" arch="noarch" @@ -10,6 +10,7 @@ license="GPL" depends="perl perl-config-inifiles perl-list-moreutils" makedepends= install="$pkgname.pre-install" +pkgusers="snmptt" source="http://downloads.sourceforge.net/$pkgname/${pkgname}_$pkgver.tgz snmptt.initd snmptt.confd @@ -21,8 +22,9 @@ build() { package() { cd "$srcdir"/snmptt_${pkgver} - mkdir -p "$pkgdir"/var/log/snmptt - mkdir -p "$pkgdir"/var/spool/snmptt + for dir in /var/log/snmptt /var/spool/snmptt; do + mkdir -p "$pkgdir"${dir} && chown snmptt "$pkgdir"${dir} + done install -D -m755 snmptt "$pkgdir"/usr/bin/snmptt install -D -m755 snmptthandler "$pkgdir"/usr/bin/snmptthandler install -D -m755 snmpttconvert "$pkgdir"/usr/bin/snmpttconvert diff --git a/main/snmptt/snmptt.pre-install b/main/snmptt/snmptt.pre-install index 4815b49db1..873986f5cb 100644 --- a/main/snmptt/snmptt.pre-install +++ b/main/snmptt/snmptt.pre-install @@ -1,2 +1,3 @@ #!/bin/sh adduser -h /var/spool/snmptt -s /sbin/nologin -S -D snmptt &>/dev/null +exit 0 |