summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorshtrom2014-08-05 05:21:56 +0000
committerOlivier Mehani2015-07-01 13:20:41 +1000
commitdb9b9fbdbf9e99da48fccf7f4ec64e014bb282c3 (patch)
tree8d6aa9fd8919e1a8bfe6b88b1a26461ebf6b8722
parentcc4ba25614433ce28ff769a99c8ec6b38a566e6a (diff)
downloadaur-db9b9fbdbf9e99da48fccf7f4ec64e014bb282c3.tar.gz
[poldi] Add logrotate configuration.
git-svn-id: svn+ssh://scm.narf.ssji.net/svn/archlinux-packages@375 df209809-8e4a-0410-9a64-c169741eb0fc
-rw-r--r--.SRCINFO9
-rw-r--r--PKGBUILD13
-rw-r--r--poldi.logrotate9
3 files changed, 27 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 3a348ae584b0..edb327bba954 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = poldi
pkgdesc = PAM module for authentication using a smartcard
pkgver = 0.4.1
- pkgrel = 5
+ pkgrel = 6
url = http://www.g10code.com/p-poldi.html
install = poldi.install
arch = i686
@@ -11,12 +11,19 @@ pkgbase = poldi
depends = libgpg-error
depends = libksba
depends = pam
+ optdepends = logrotate:
+ optdepends = To
+ optdepends = avoid
+ optdepends = giant
+ optdepends = logfiles
backup = etc/poldi/poldi.conf
backup = etc/pam.d/system-auth-poldi
source = ftp://ftp.gnupg.org/gcrypt/alpha/poldi/poldi-0.4.1.tar.bz2
source = poldi-arch.patch
+ source = poldi.logrotate
md5sums = 197986f9ba6aec9a91ee4610f4c6be8b
md5sums = a4187baaacc764d20909345865668280
+ md5sums = 57009cc5211088396d2521fc1997792b
pkgname = poldi
diff --git a/PKGBUILD b/PKGBUILD
index 56a3a91c5e1d..6c05244a1f23 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,17 +4,20 @@
pkgname=poldi
pkgver=0.4.1
-pkgrel=5
+pkgrel=6
pkgdesc="PAM module for authentication using a smartcard"
arch=('i686' 'x86_64')
url="http://www.g10code.com/p-poldi.html"
license="GPL"
depends=('libgcrypt' 'libgpg-error' 'libksba' 'pam')
makedepends=()
+optdepends=(logrotate: To avoid giant logfiles)
options=()
backup=("etc/poldi/poldi.conf" "etc/pam.d/system-auth-poldi")
install=poldi.install
-source=("ftp://ftp.gnupg.org/gcrypt/alpha/poldi/$pkgname-$pkgver.tar.bz2" "poldi-arch.patch")
+source=("ftp://ftp.gnupg.org/gcrypt/alpha/poldi/$pkgname-$pkgver.tar.bz2"
+ "poldi-arch.patch"
+ "poldi.logrotate")
build() {
@@ -43,7 +46,11 @@ package() {
install -d -m 755 "$pkgdir/etc/pam.d"
echo -e "auth\tsufficient\tpam_poldi.so" > $pkgdir/etc/pam.d/system-auth-poldi
+ install -d -m 755 "$pkgdir/etc/logrotate.d"
+ install -m 755 ${srcdir}/poldi.logrotate $pkgdir/etc/logrotate.d/poldi
+
rm "$pkgdir/usr/share/info/dir"
}
md5sums=('197986f9ba6aec9a91ee4610f4c6be8b'
- 'a4187baaacc764d20909345865668280')
+ 'a4187baaacc764d20909345865668280'
+ '57009cc5211088396d2521fc1997792b')
diff --git a/poldi.logrotate b/poldi.logrotate
new file mode 100644
index 000000000000..9240a79a20c5
--- /dev/null
+++ b/poldi.logrotate
@@ -0,0 +1,9 @@
+/var/log/poldi.log {
+ weekly
+ rotate 4
+ missingok
+ notifempty
+ compress
+ copytruncate
+}
+