blob: 7f7d6cbfc015beb0fbf14af4b197ef2e54551625 (
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, monster dot romster at gmail dot com
4 # Packager: Danny Rawlins, monster dot romster at gmail dot com
5 # Depends on: python
6
7 name=denyhosts
8 version=2.6
9 release=1
10 source=(http://downloads.sourceforge.net/project/$name/$name/$version/DenyHosts-$version.tar.gz
11 denyhosts-$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 $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 -s /usr/share/denyhosts/daemon-control $PKG/etc/rc.d/denyhosts
34 rm $PKG/usr/share/denyhosts/plugins/README.contrib
35 mv $PKG/usr/bin/denyhosts.py $PKG/usr/bin/denyhosts
36 }
|