mirror of
				https://gitlab.alpinelinux.org/alpine/aports.git
				synced 2025-10-31 00:12:05 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			41 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # Contributor: Stuart Cardall <developer@it-offshore.co.uk>
 | |
| # Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
 | |
| pkgname=nginx-ultimate-bad-bot-blocker
 | |
| pkgver=4.2023.10.4046
 | |
| pkgrel=0
 | |
| pkgdesc="Nginx Bad Bot and User-Agent Blocker"
 | |
| url="https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker"
 | |
| arch="noarch"
 | |
| license="MIT"
 | |
| options="!check"
 | |
| subpackages="$pkgname-doc"
 | |
| source="nginx-ubbb-$pkgver.tar.gz::https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/archive/V$pkgver.tar.gz"
 | |
| 
 | |
| build() {
 | |
| 	return 0
 | |
| }
 | |
| 
 | |
| package() {
 | |
| 	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="
 | |
| b51f8cad242aec6c4979f046918f6c8ffc6e7be374bb3357b18fc6eecfd45baaf5f03f825ba115907e55a9b6c8faa1a295d6f73d48c283ab1a97b9605ec55f2e  nginx-ubbb-4.2023.10.4046.tar.gz
 | |
| "
 |