aboutsummaryrefslogtreecommitdiffstats
path: root/testing/nginx-ultimate-bad-bot-blocker/APKBUILD
blob: 9c19b66d760c59273307ccf63e41f455d760da71 (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
40
41
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=nginx-ultimate-bad-bot-blocker
pkgver=3.2018.03.1073
pkgrel=0
pkgdesc="Nginx Bad Bot and User-Agent Blocker"
url="https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker"
arch="noarch"
license="MIT"
install=""
options="!check"
subpackages="$pkgname-doc"
source="nginx-ubbb-$pkgver.tar.gz::https://github.com/mitchellkrogza/$pkgname/archive/V$pkgver.tar.gz"
builddir="$srcdir/"$pkgname-$pkgver

build() {
	return 0
}

package() {
	cd "$builddir"
	mkdir -p "$pkgdir"/etc/nginx
	mkdir -p "$pkgdir"/usr/share/nginx-ultimate-bad-bot-blocker/google
	mkdir -p "$pkgdir"/usr/share/nginx-ultimate-bad-bot-blocker/fail2ban
	mkdir -p "$pkgdir"/usr/share/nginx-ultimate-bad-bot-blocker/examples
	mkdir -p "$pkgdir"/usr/share/nginx-ultimate-bad-bot-blocker/generator-lists
	cp -rf conf.d "$pkgdir"/etc/nginx
	cp -rf bots.d "$pkgdir"/etc/nginx
	cp -rf man "$pkgdir"/usr/share
	cp -rf _fail2ban_addon "$pkgdir"/usr/share/nginx-ultimate-bad-bot-blocker/fail2ban
	cp -rf _sample_config_files "$pkgdir"/usr/share/nginx-ultimate-bad-bot-blocker/examples
	install -Dm700 update-ngxblocker "$pkgdir"/usr/sbin/update-ngxblocker
	install -Dm700 install-ngxblocker "$pkgdir"/usr/sbin/install-ngxblocker
	install -Dm700 setup-ngxblocker "$pkgdir"/sbin/setup-ngxblocker
	install -m644 _google_analytics_ghost_spam/* "$pkgdir"/usr/share/nginx-ultimate-bad-bot-blocker/google/
	install -m644 _google_webmaster_disavow_links/*.txt "$pkgdir"/usr/share/nginx-ultimate-bad-bot-blocker/google/
	install -m644 _generator_lists/* "$pkgdir"/usr/share/nginx-ultimate-bad-bot-blocker/generator-lists/
	install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/nginx-ultimate-bad-bot-blocker/LICENSE
}

sha512sums="3fe1d037ae3e57adc738ebad0638bc5dcdbad02dbaada08cea0b455e847d971437e9b8ef41cbbab869af7bb1c31d93329df1562e997a28d6a8f7404cdbfd564b  nginx-ubbb-3.2018.03.1073.tar.gz"