blob: 12405c9b03e7bc41fc8f20d0b40f710bf6c77bad (
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
28
29
30
31
|
# Contributor: Echizen Ryoma <echizenryoma.zhang@gmail.com>
# Maintainer: Echizen Ryoma <echizenryoma.zhang@gmail.com>
pkgname=nftwatch-git
pkgver=20220722.66aa429
pkgrel=1
pkgdesc='Shows nftables policy in a more readable format'
url='https://github.com/flyingrhinonz/nftwatch'
arch=('any')
license=('GPL3')
makedepends=('git')
depends=('nftables' 'python-yaml')
backup=("etc/nftwatch.yml")
source=('git+https://github.com/flyingrhinonz/nftwatch.git')
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/nftwatch"
git log -1 --format='%cd.%h' --date=short | tr -d -
}
package() {
cd "${srcdir}/nftwatch"
# systemd service
install -vDm 755 "nftwatch" -t "${pkgdir}/usr/bin/"
# license
install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
# config
install -vDm 644 "nftwatch.yml" -t "${pkgdir}/etc/"
}
|