diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2015-07-24 08:55:53 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2015-07-24 08:57:00 +0000 |
commit | 9ae76e8e15c68a60ffcfff487fa6963a2c851829 (patch) | |
tree | 2f00cd98a47baf3a9d38056d86abef16f8ec3aec | |
parent | 25948a450ec1e10d2d4d52b2cd50e032d0a8e732 (diff) | |
download | aports-9ae76e8e15c68a60ffcfff487fa6963a2c851829.tar.bz2 aports-9ae76e8e15c68a60ffcfff487fa6963a2c851829.tar.xz |
main/sniproxy: add logrotate support
-rw-r--r-- | main/sniproxy/APKBUILD | 14 | ||||
-rw-r--r-- | main/sniproxy/sniproxy.logrotate | 9 |
2 files changed, 19 insertions, 4 deletions
diff --git a/main/sniproxy/APKBUILD b/main/sniproxy/APKBUILD index 3cf48e7a6d..7e8ff872f4 100644 --- a/main/sniproxy/APKBUILD +++ b/main/sniproxy/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> pkgname=sniproxy pkgver=0.3.6 -pkgrel=4 +pkgrel=5 pkgdesc="Proxies incoming HTTP and TLS connections based on the hostname contained in the initial request of the TCP session." url="https://github.com/dlundquist/sniproxy" @@ -19,6 +19,7 @@ pkggroups="sniproxy" source="sniproxy-$pkgver.tar.gz::https://github.com/dlundquist/$pkgname/archive/$pkgver.tar.gz $pkgname.initd $pkgname.conf + $pkgname.logrotate " _builddir="$srcdir"/$pkgname-$pkgver @@ -45,6 +46,8 @@ package() { "$pkgdir"/etc/init.d/$pkgname || return 1 install -Dm644 "$srcdir"/$pkgname.conf \ "$pkgdir"/etc/$pkgname/$pkgname.conf || return 1 + install -Dm644 "$srcdir"/$pkgname.logrotate \ + "$pkgdir"/etc/logrotate.d/$pkgname || return 1 for dir in /var/log /etc /var/run; do mkdir -p "$pkgdir"/$dir/$pkgname chown $pkgusers:$pkggroups "$pkgdir"/$dir/$pkgname @@ -53,10 +56,13 @@ package() { md5sums="52a01eb55ac7712de2dd13f1ba6260e4 sniproxy-0.3.6.tar.gz 0b1f2078a3829df4754d99d5539b0e6c sniproxy.initd -8f21930affabea377c0443059d94f3f7 sniproxy.conf" +8f21930affabea377c0443059d94f3f7 sniproxy.conf +636f8fe717a29983b910af1d730b22c9 sniproxy.logrotate" sha256sums="90183ea5a380f1f946a9e0286334c916c2315bf005677ddc72f0afeed84a544c sniproxy-0.3.6.tar.gz 6464fecf6011541014a4974b3e83cadc55114aeecc727574034c948d3eb00e77 sniproxy.initd -23ee2894715f834f0708182e93cee30535bd0d58b5aa600a2b45b799deaf64e1 sniproxy.conf" +23ee2894715f834f0708182e93cee30535bd0d58b5aa600a2b45b799deaf64e1 sniproxy.conf +5b5bcb5f0e1639b455468755b9d6f733aa07d47fd55a35ab780700108740802e sniproxy.logrotate" sha512sums="5d2a3b181c3a710a5443c21d3c6181354e473c134e99a258b4d10dc452d449507d057ef65ad0586ecc43800b271fc03635f3d27a043855846248ca14e807781c sniproxy-0.3.6.tar.gz 57f4997f8a96516b4622105c024708bf39002a83d7f3eb76dd857ee0202598309b51d585f6b25b5e72e9710b79c36a3e4f21bc2effcead16dd2c032137c704f3 sniproxy.initd -f7423cfd48e9333d5db857b4eb61b747664221607e2d47a55167493159b7b838580f101427e98252468c0be9c42693f7f0689ac8bd1acdcd1dfb75638a8f49fb sniproxy.conf" +f7423cfd48e9333d5db857b4eb61b747664221607e2d47a55167493159b7b838580f101427e98252468c0be9c42693f7f0689ac8bd1acdcd1dfb75638a8f49fb sniproxy.conf +8c026af5ed23620776ef5a9a08f09236d30fc5152c9f95de2b95eb7ac48ad001c21010922d74dc7c78071f9e6ef8f794c2a59c11677d8e12be8d57e94bac2b5e sniproxy.logrotate" diff --git a/main/sniproxy/sniproxy.logrotate b/main/sniproxy/sniproxy.logrotate new file mode 100644 index 0000000000..f524c27a13 --- /dev/null +++ b/main/sniproxy/sniproxy.logrotate @@ -0,0 +1,9 @@ +/var/log/sniproxy/*.log { + daily + copytruncate + missingok + rotate 5 + compress + notifempty + create 660 root sniproxy +} |