aboutsummaryrefslogblamecommitdiffstats
path: root/main/sshguard/APKBUILD
blob: 048e82498ff52ef47a588390540155533e0e3c09 (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                                                    
            
        
                                                                
                               


                  
                                                               
                          
                                                                                                   
                      
                      
         
                                   

         
                      



                                 

                                 

 




                      
           
                      


                                                                             

 
                                                                                                                                                                   
                                                                                                                                                
                                                                                                                                                 
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=sshguard
pkgver=2.4.0
pkgrel=0
pkgdesc="Log monitor that blocks with iptables on bad behaviour"
url="https://www.sshguard.net/"
arch="all"
license="BSD"
depends="iptables"
makedepends="$depends_dev flex bison autoconf automake libtool"
subpackages="$pkgname-doc"
source="https://downloads.sourceforge.net/project/sshguard/sshguard/$pkgver/sshguard-$pkgver.tar.gz
	sshguard.initd
	sshguard.confd
	"
builddir="$srcdir"/sshguard-$pkgver

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	install -Dm755 "$srcdir"/sshguard.initd "$pkgdir"/etc/init.d/sshguard
	install -Dm755 "$srcdir"/sshguard.confd "$pkgdir"/etc/conf.d/sshguard
}

sha512sums="64293700ef85f0843c333c3a27b04c5b2f69bf8dddf46353a371d4178915deb931362b3641ded0eeb5365f30cb63ce6ce17256d8d094383d1cfe661065b9c1c6  sshguard-2.4.0.tar.gz
3827bc437cf9e8281e12ce9a7e74e1186fd509aa971934d0f190215889a1eff83455e87f87812abfa3209b3d4fcf8b184e6aa778d753b9da5e778ac79d39c729  sshguard.initd
fc59e273e481dc7256a33114fc3b113f8b85406401a7d7113d0daba012dfd413c7bf85a0106539b859d90442976fe265355ccdf943a455f37c8ad7e5891e4b26  sshguard.confd"