1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Contributor: Florian Pritz <f-p@gmx.at>
3 # Contributor: Xyne <xyne at archlinux dot us>
5 # Contributor: Chris <chris at christopherjones dot us>
6 # Contributor: henning mueller <henning@orgizm.net>
7 # Contributor: Fabiano Furtado <fusca14 at gmail dot com>
12 pkgdesc='FireWall KNock OPerator: Single Packet Authorization and Port Knocking'
13 url='https://www.cipherdyne.org/fwknop'
16 backup=(etc/${pkgname}/access.conf
17 etc/${pkgname}/fwknopd.conf)
18 depends=('gpgme' 'iptables' 'libpcap' 'wget')
19 source=(https://cipherdyne.org/fwknop/download/fwknop-${pkgver}.tar.bz2{,.asc}
21 sha512sums=('3fe0a7c673ebe3d417da9bf8e3c9a882181391ecc64d9f67e77e00a56f9f7bcec2c6d94dc51a5ee77a6c64a89f032a865dd304f1cb8ebb359580c70dc0cd374f'
23 'a171682a054495bb10315e98a300ddbe4adf1f653b719d3344ecb6cfb8ccd15043cffbbd28304c4f15569a12ddcd9733409448d596f0c706e48d4fda2c877a6a')
24 validpgpkeys=('4D6644A9DA036904BDA2CB90E6C9E3350D3E7410') # Michael Rash (Signing key for cipherdyne.org projects) <mbr@cipherdyne.org>
27 cd ${pkgname}-${pkgver}
28 CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
33 --localstatedir=/var \
39 cd ${pkgname}-${pkgver}
40 make DESTDIR="${pkgdir}" install
41 install -Dm 644 "${srcdir}/fwknopd.service" "${pkgdir}/usr/lib/systemd/system/fwknopd.service"