2021-03-28 15:47:27 +02:00
|
|
|
pkgname=ipset-blacklist
|
2022-11-16 22:27:39 +01:00
|
|
|
pkgver=r139.3410b3d
|
2021-03-28 15:47:27 +02:00
|
|
|
pkgrel=1
|
|
|
|
arch=(any)
|
|
|
|
url="https://github.com/trick77/ipset-blacklist"
|
|
|
|
makedepends=('git')
|
|
|
|
depends=('ipset' 'iptables' 'curl')
|
2021-03-28 16:32:29 +02:00
|
|
|
optdepends=('iprange: CIDR optimization')
|
2021-05-19 09:31:28 +02:00
|
|
|
backup=('etc/ipset-blacklist/ipset-blacklist.conf')
|
2021-03-28 15:47:27 +02:00
|
|
|
source=(
|
|
|
|
git+https://github.com/trick77/ipset-blacklist.git
|
|
|
|
'ipset-blacklist.service'
|
|
|
|
'ipset-blacklist.timer'
|
|
|
|
)
|
|
|
|
sha256sums=('SKIP'
|
2021-03-28 20:54:38 +02:00
|
|
|
'a950d286a885b62a52ff16cc5714808825a8519ed874e5427519816876a603ea'
|
2021-03-28 15:47:27 +02:00
|
|
|
'ebd5dc1a38b650beaeeb70451c7315be1286ae10b945f5a2baa593502af32609')
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd "${srcdir}/${pkgname}"
|
|
|
|
|
|
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}"
|
|
|
|
install -Dm644 ipset-blacklist.service "$pkgdir/usr/lib/systemd/system/ipset-blacklist.service"
|
|
|
|
install -Dm644 ipset-blacklist.timer "$pkgdir/usr/lib/systemd/system/ipset-blacklist.timer"
|
|
|
|
|
|
|
|
cd "${srcdir}/${pkgname}"
|
|
|
|
install -Dm644 ipset-blacklist.conf "$pkgdir/etc/ipset-blacklist/ipset-blacklist.conf"
|
|
|
|
install -Dm755 update-blacklist.sh "$pkgdir/usr/bin/update-blacklist.sh"
|
|
|
|
}
|