mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
39 lines
1.3 KiB
Bash
39 lines
1.3 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.6
|
|
pkgrel=2
|
|
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=('e6e486be75b0d6433bac22a7de0e11f5'
|
|
'72302d899887996694586c3d479de245'
|
|
'56a4113ec89ba2e96f79ab23c914d52a'
|
|
'0329ca17267d03f06216d1fe00bd16a9'
|
|
'e56dc7359f36c3b07da6710c404d671e')
|
|
|
|
build() {
|
|
cd "$srcdir/knock-$pkgver"
|
|
patch -Np0 -i "$srcdir/limits.h.patch"
|
|
./configure --prefix=/usr --sbin=/usr/bin --sysconfdir=/etc
|
|
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"
|
|
}
|
|
|