updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / knockd / PKGBUILD
blob4464a00a37dafec534529ea083f5a407cb02e045
1 # $Id: PKGBUILD 20410 2008-12-03 09:44:51Z tom $
2 # Maintainer: Mike Sampson <mike at sambodata dot com>
3 # Contriburor: Steven <steven at stebalien dot com>
4 # Contributor: Aaron Griffin <aaron@archlinux.org>
5 # Contributor: judd <jvinet@zeroflux.org>
7 pkgname=knockd
8 pkgver=0.5
9 pkgrel=9
10 pkgdesc="A simple port-knocking daemon"
11 arch=(i686 x86_64)
12 url="http://www.zeroflux.org/projects/knock"
13 license=(GPL)
14 depends=('libpcap>=1.0.0')
15 backup=('etc/knockd.conf')
16 source=(http://www.zeroflux.org/proj/knock/files/knock-$pkgver.tar.gz
17         knockd knockd.logrotate limits.h.patch)
19 build() {
20   cd "$srcdir/knock-$pkgver"
21   patch -Np0 -i "$srcdir/limits.h.patch"
22   ./configure --prefix=/usr
23   make
25 package() {
26   cd "$srcdir/knock-$pkgver"
27   make DESTDIR="$pkgdir" MANDIR=/usr/share/man install
28   install -D -m755 "$srcdir/knockd" "$pkgdir/etc/rc.d/knockd"
29   install -D -m644 "$srcdir/knockd.logrotate" "$pkgdir/etc/logrotate.d/knockd"
31 md5sums=('ca09d61458974cff90a700aba6120891'
32          '72302d899887996694586c3d479de245'
33          '56a4113ec89ba2e96f79ab23c914d52a'
34          'e56dc7359f36c3b07da6710c404d671e')