blob: 2d5ad2622494247e90e72ce4d781eb02e858e11f (
plain)
1 # Description: DenyHosts is a script intended to be run by Linux system administrators to help thwart ssh server attacks.
2 # URL: http://denyhosts.sourceforge.net/
3 # Maintainer: Danny Rawlins, romster at shortcircuit dot net dot au
4 # Packager: Danny Rawlins, romster at shortcircuit dot net dot au
5 # Depends on: python
6
7 name=denyhosts
8 version=2.5
9 release=1
10 source=(http://dl.sourceforge.net/sourceforge/$name/DenyHosts-$version.tar.gz \
11 $name-$version-config.patch)
12
13 build() {
14 cd DenyHosts-$version
15 patch -p0 -i $SRC/$name-$version-config.patch
16 python setup.py install --root=$PKG
17
18 rm -fr $PKG/usr/share/denyhosts/*.txt
19
20 install -d \
21 $PKG/etc/ \
22 $PKG/etc/{denyhosts,rc.d} \
23 $PKG/var/log
24
25 mv $PKG/usr/share/denyhosts/denyhosts.cfg-dist \
26 $PKG/etc/denyhosts/denyhosts.conf
27
28 mv $PKG/usr/share/denyhosts/daemon-control-dist \
29 $PKG/usr/share/denyhosts/daemon-control
30
31 chmod 700 $PKG/usr/share/denyhosts/daemon-control
32
33 ln -sf /usr/share/denyhosts/daemon-control $PKG/etc/rc.d/denyhosts
34 rm $PKG/usr/share/denyhosts/plugins/README.contrib
35 }
|