mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
39 lines
1.2 KiB
Bash
39 lines
1.2 KiB
Bash
# $Id: PKGBUILD 20410 2008-12-03 09:44:51Z tom $
|
|
# Maintainer: Mike Sampson <mike at sambodata dot com>
|
|
# Contriburor: Steven <steven at stebalien dot com>
|
|
# Contributor: Aaron Griffin <aaron@archlinux.org>
|
|
# Contributor: judd <jvinet@zeroflux.org>
|
|
|
|
pkgname=knockd
|
|
pkgver=0.5
|
|
pkgrel=10
|
|
pkgdesc="A simple port-knocking daemon"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.zeroflux.org/projects/knock"
|
|
license=(GPL)
|
|
depends=('libpcap>=1.0.0')
|
|
backup=('etc/knockd.conf')
|
|
source=(http://www.zeroflux.org/proj/knock/files/knock-$pkgver.tar.gz
|
|
knockd knockd.logrotate knockd.service limits.h.patch)
|
|
|
|
md5sums=('ca09d61458974cff90a700aba6120891'
|
|
'72302d899887996694586c3d479de245'
|
|
'56a4113ec89ba2e96f79ab23c914d52a'
|
|
'0329ca17267d03f06216d1fe00bd16a9'
|
|
'e56dc7359f36c3b07da6710c404d671e')
|
|
|
|
build() {
|
|
cd "$srcdir/knock-$pkgver"
|
|
patch -Np0 -i "$srcdir/limits.h.patch"
|
|
./configure --prefix=/usr
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/knock-$pkgver"
|
|
make DESTDIR="$pkgdir" MANDIR=/usr/share/man install
|
|
#install -D -m755 "$srcdir/knockd" "$pkgdir/etc/rc.d/knockd"
|
|
install -D -m755 "$srcdir/knockd.service" "$pkgdir/usr/lib/systemd/system/knockd.service"
|
|
install -D -m644 "$srcdir/knockd.logrotate" "$pkgdir/etc/logrotate.d/knockd"
|
|
}
|
|
|