[csw-devel] SF.net SVN: gar:[6802] csw/mgar/pkg
skayser at users.sourceforge.net
skayser at users.sourceforge.net
Fri Oct 9 11:20:19 CEST 2009
Revision: 6802
http://gar.svn.sourceforge.net/gar/?rev=6802&view=rev
Author: skayser
Date: 2009-10-09 09:20:19 +0000 (Fri, 09 Oct 2009)
Log Message:
-----------
denyhosts: initial commit
Added Paths:
-----------
csw/mgar/pkg/denyhosts/
csw/mgar/pkg/denyhosts/branches/
csw/mgar/pkg/denyhosts/tags/
csw/mgar/pkg/denyhosts/trunk/
csw/mgar/pkg/denyhosts/trunk/Makefile
csw/mgar/pkg/denyhosts/trunk/checksums
csw/mgar/pkg/denyhosts/trunk/files/
Property changes on: csw/mgar/pkg/denyhosts/trunk
___________________________________________________________________
Added: svn:ignore
+ cookies
download
work
Added: svn:externals
+ gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2
Added: csw/mgar/pkg/denyhosts/trunk/Makefile
===================================================================
--- csw/mgar/pkg/denyhosts/trunk/Makefile (rev 0)
+++ csw/mgar/pkg/denyhosts/trunk/Makefile 2009-10-09 09:20:19 UTC (rev 6802)
@@ -0,0 +1,80 @@
+# TODO
+# - Integrate into SMF, do we need daemon-control-dist at all?
+# - Test the package
+GARNAME = denyhosts
+GARVERSION = 2.6
+CATEGORIES = python
+
+DESCRIPTION = A tool to limit SSH brute force attacks
+define BLURB
+ DenyHosts is a script intended to be run by system administrators
+ to help thwart SSH server attacks (also known as dictionary based
+ attacks and brute force attacks).
+
+ If you've ever looked at your ssh log you may be alarmed to see how
+ many hackers attempted to gain access to your server. Hopefully, none of
+ them were successful (but then again, how would you know?). Wouldn't it
+ be better to automatically prevent that attacker from continuing to gain
+ entry into your system?
+
+ DenyHosts attempts to address the above.
+endef
+
+SPKG_SOURCEURL = http://denyhosts.sf.net/
+MASTER_SITES = $(SF_MIRRORS)
+DISTNAME = DenyHosts-$(GARVERSION)
+DISTFILES = $(DISTNAME).tar.gz
+LICENSE = LICENSE.txt
+ARCHALL = 1
+
+# We define upstream file regex so we can be notifed of new upstream software release
+UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tar.gz
+
+# No test target
+TEST_SCRIPTS =
+EXTRA_INSTALL_ARGS += --no-compile
+
+sysconfdir = /etc/opt/csw/
+localstatedir = /var/opt/csw/
+SAMPLECONF = $(sysconfdir)/denyhosts.cfg
+
+include gar/category.mk
+
+# setup.py puts everything in /usr/share by default, adjust this to $(datadir)
+pre-install-modulated:
+ gsed -ie 's,/usr/share/denyhosts,$(datadir)/$(GARNAME),' $(WORKSRC)/setup.py
+ @$(MAKECOOKIE)
+
+post-install-modulated: DOCDEST = $(DESTDIR)$(docdir)/$(GARNAME)
+post-install-modulated:
+ ginstall -d $(DOCDEST)
+ ginstall -d $(DESTDIR)$(sysconfdir)
+ ginstall -d $(DESTDIR)$(localstatedir)/$(GARNAME)
+ mv $(DESTDIR)$(bindir)/denyhosts.py $(DESTDIR)$(bindir)/denyhosts
+ rm $(DESTDIR)$(datadir)/$(GARNAME)/README.txt
+ rm $(DESTDIR)$(datadir)/$(GARNAME)/LICENSE.txt
+ rm $(DESTDIR)$(datadir)/$(GARNAME)/setup.py
+ mv $(DESTDIR)$(datadir)/$(GARNAME)/CHANGELOG.txt $(DOCDEST)/changelog
+ mv $(DESTDIR)$(datadir)/$(GARNAME)/denyhosts.cfg-dist \
+ $(DESTDIR)$(sysconfdir)/denyhosts.cfg
+
+ #Adjust config to match Solaris paths + our package paths
+ gsed -i \
+ -e 's,/var/log/secure,path to ssh log,' \
+ -e 's,/usr/share/denyhosts/data,$(localstatedir)/$(GARNAME),' \
+ -e 's,/var/lock/subsys/denyhosts,/var/run/denyhosts.pid,' \
+ -e 's,/var/log/denyhosts,$(localestatedir)/$(GARNAME)/$(GARNAME).log,' \
+ $(DESTDIR)$(sysconfdir)/denyhosts.cfg
+
+ gsed -i \
+ -e 's,denyhosts.cfg,$(sysconfdir)/denyhosts.cfg' \
+ $(DESTDIR)/opt/csw/lib/python/site-packages/DenyHosts/constants.py
+
+ #Adjust daemon-control-dist wrapper script to match our package paths
+ gsed -i \
+ -e 's,/usr/bin/denyhosts.py,$(bindir)/denyhosts,' \
+ -e 's,/usr/share/denyhosts/denyhosts.cfg,$(sysconfdir)/denyhosts.cfg,' \
+ -e 's,/usr/bin/env python,$(bindir)/python,' \
+ -e 's,/var/lock/subsys/denyhosts,/var/run/denyhosts.pid,' \
+ $(DESTDIR)$(datadir)/$(GARNAME)/daemon-control-dist
+ @$(MAKECOOKIE)
Added: csw/mgar/pkg/denyhosts/trunk/checksums
===================================================================
--- csw/mgar/pkg/denyhosts/trunk/checksums (rev 0)
+++ csw/mgar/pkg/denyhosts/trunk/checksums 2009-10-09 09:20:19 UTC (rev 6802)
@@ -0,0 +1 @@
+fc2365305a9402886a2b0173d1beb7df download/DenyHosts-2.6.tar.gz
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list