blob: 79deef776bbafa4727f4971a172917c866501e2b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# Maintainer: Tomasz Cebula <tomasz.cebula@gmail.com>
pkgname=nft-blackhole
pkgver=1.3.0
pkgrel=1
pkgdesc='Script / Daemon to blocking IP in nftables by country and black lists'
arch=('any')
url='https://github.com/tomasz-c/nft-blackhole'
license=('MIT')
depends=('nftables' 'python-yaml')
backup=('etc/nft-blackhole.conf')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/tomasz-c/${pkgname}/archive/v${pkgver}.tar.gz")
sha256sums=('11f67342f0384c2f2066c339314e20e9f2a2047e76756b06005a549398631712')
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
# Script
install -Dm755 nft-blackhole.py "$pkgdir/usr/bin/nft-blackhole.py"
# Template
install -Dm644 nft-blackhole.template "$pkgdir/usr/share/nft-blackhole/nft-blackhole.template"
# Config in yaml
install -Dm644 nft-blackhole.conf "$pkgdir/etc/nft-blackhole.conf"
# Systemd unit files
install -Dm644 packaging/systemd/nft-blackhole.service "$pkgdir/usr/lib/systemd/system/nft-blackhole.service"
install -Dm644 packaging/systemd/nft-blackhole-reload.service "$pkgdir/usr/lib/systemd/system/nft-blackhole-reload.service"
install -Dm644 packaging/systemd/nft-blackhole-reload.timer "$pkgdir/usr/lib/systemd/system/nft-blackhole-reload.timer"
}
|