# $Id: PKGBUILD 31063 2009-03-24 08:53:30Z douglas $ # Contributor : phrakture < aaron m griffin :: gmail-com > # Maintainer: simo pkgname=denyhosts pkgver=2.6 pkgrel=4 pkgdesc="DenyHosts is a script to help thwart ssh server attacks" arch=('i686' 'x86_64') url="http://denyhosts.sourceforge.net/" license=('GPL') depends=('python') backup=('etc/denyhosts/denyhosts.cfg') source=(http://downloads.sourceforge.net/sourceforge/$pkgname/DenyHosts-$pkgver.tar.gz \ denyhosts.cfg \ denyhosts \ archify.diff regex-fixes.diff) md5sums=('fc2365305a9402886a2b0173d1beb7df' '5352744bf34b29bfc95c54bfb14eb3e3' '0f186257e2473b8710c9b9e9f601ff19' 'ab8b175618f76b53c9cc81355cad0f86' '3171c2fd783321af724a8539151bbd8d') build() { cd $startdir/src/DenyHosts-$pkgver patch -p1 < $startdir/src/archify.diff patch -p1 < $startdir/src/regex-fixes.diff python setup.py install --root=$startdir/pkg install -D -m644 $startdir/src/denyhosts.cfg $startdir/pkg/etc/denyhosts/denyhosts.cfg install -D -m755 $startdir/src/denyhosts $startdir/pkg/etc/rc.d/denyhosts mkdir -p $startdir/pkg/var/lib/denyhosts }