summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 26d64ba9f7abed8f9eeeddf4d999b08e0336053a (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
32
33
34
35
36
37
38
39
pkgbase=blacklist-script
pkgname=('blacklist-script' 'blacklist-script-f2b')
pkgver=2.3.0
pkgrel=1
_tag="${pkgver}"
pkgdesc="Managing black and white lists of IP addresses."
arch=('any')
url="https://github.com/maximalisimus/blacklist-scripts.git"
license=('GPL3')
depends=(python fail2ban)
makedepends=()
replaces=("${pkgbase}")

source=("$pkgname::git+https://github.com/maximalisimus/blacklist-scripts.git#tag=${_tag}"
	)

sha256sums=('SKIP'
			)

prepare() {
	cd ${srcdir}/${pkgbase}
	mkdir -p ./post/ ./fail2ban
	make DESTDIR=./post/ TARGET=${pkgbase} install
	make DESTDIR=./fail2ban/ TARGET=${pkgbase} install-all
}

package_blacklist-script() {
	replaces=("${pkgname[0]}")
	
	mkdir -p $pkgdir/
	cp -a ${srcdir}/${pkgbase}/post/* $pkgdir/
}

package_blacklist-script-f2b() {
	replaces=("${pkgname[1]}")
	
	mkdir -p $pkgdir/
	cp -a ${srcdir}/${pkgbase}/fail2ban/* $pkgdir/
}