blob: ba21517a50aa2aac0b442b136a30a13eeb53aef9 (
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.11.1236
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="9e4effdb6eaa58903e485b220ee3ed1ca10a7310cfcbff059b67f271fd013ba4b05075aab828d1756ad7214f4c7ea52c3aec9820a8ff481eb31d3dad105d3840 nginx-ubbb-3.2018.11.1236.tar.gz"
|