- Update to 1.1

PR:		ports/113746
Submitted by:	Nils Vogels <nivo+kw+ports.bfa274@is-root.com>
This commit is contained in:
Pav Lucistnik 2007-06-16 16:35:34 +00:00
parent 0004d690af
commit a31348de47
4 changed files with 23 additions and 24 deletions

View file

@ -6,8 +6,7 @@
#
PORTNAME= blocksshd
PORTVERSION= 1.0.1
PORTREVISION= 2
PORTVERSION= 1.1
CATEGORIES= security sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= blocksshd
@ -26,12 +25,12 @@ USE_RC_SUBR= blocksshd
USE_DOS2UNIX= blocksshd blocksshd.conf
MAN1= blocksshd.1
MANCOMPRESSED= yes
post-extract:
@${CHMOD} 755 ${WRKSRC}/init
post-patch:
@${REINPLACE_CMD} -e 's|^MANCOMPRESS = .gz||g' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|/etc/blocksshd.conf|${PREFIX}/etc/blocksshd.conf|g' ${WRKSRC}/blocksshd
post-install:

View file

@ -1,3 +1,3 @@
MD5 (blocksshd-1.0.1.tar.gz) = 83d93de3f756f92eadf9fbc3138952b4
SHA256 (blocksshd-1.0.1.tar.gz) = 09f5377790c8c6df7afceaa2535f3a2d025f902671b9cb278b6aeacbf420a9af
SIZE (blocksshd-1.0.1.tar.gz) = 10587
MD5 (blocksshd-1.1.tar.gz) = 1cfe7447126186cf6e2b77b05fa0c3a8
SHA256 (blocksshd-1.1.tar.gz) = 9e6ca1c49fc824dbec45576064ba3f9d27509c83bfa6b6df56223fd7e0e5c08f
SIZE (blocksshd-1.1.tar.gz) = 11217

View file

@ -1,6 +1,6 @@
--- Makefile.orig Sat Dec 30 18:23:03 2006
+++ Makefile Sat Apr 7 10:38:43 2007
@@ -15,11 +15,11 @@
--- Makefile.orig Thu Apr 12 13:14:02 2007
+++ Makefile Sat Jun 16 12:25:29 2007
@@ -11,11 +11,11 @@
PREFIX = /usr
EXEC_PREFIX = $(PREFIX)
BINDIR = $(EXEC_PREFIX)/bin
@ -13,13 +13,13 @@
+INITDIR = $(PREFIX)/etc/rc.d/init.d
DESTDIR =
all: $(APPNAME).1$(MANCOMPRESS)
@@ -29,7 +29,7 @@
$(INSTALL) -m 755 -d $(DESTDIR)$(SYSCONFDIR)
$(INSTALL) -m 755 -d $(DESTDIR)$(MAN1DIR)
$(INSTALL) -m 755 $(APPNAME) $(DESTDIR)$(BINDIR)
- $(INSTALL) -m 755 $(CONF) $(DESTDIR)$(SYSCONFDIR)
+ $(INSTALL) -m 755 $(CONF) $(DESTDIR)$(SYSCONFDIR)/$(CONF).sample
$(INSTALL) -m 644 $(APPNAME).1$(MANCOMPRESS) $(DESTDIR)$(MAN1DIR)
all: $(APPNAME).1.gz
@@ -25,7 +25,7 @@
$(INSTALL) -p -m 755 -d $(DESTDIR)$(SYSCONFDIR)
$(INSTALL) -p -m 755 -d $(DESTDIR)$(MAN1DIR)
$(INSTALL) -p -m 755 $(APPNAME) $(DESTDIR)$(BINDIR)
- $(INSTALL) -p -m 644 $(CONF) $(DESTDIR)$(SYSCONFDIR)
+ $(INSTALL) -p -m 644 $(CONF) $(DESTDIR)$(SYSCONFDIR)/$(CONF).sample
$(INSTALL) -p -m 644 $(APPNAME).1.gz $(DESTDIR)$(MAN1DIR)
init:

View file

@ -1,5 +1,5 @@
--- blocksshd.conf.orig Mon Nov 20 05:36:42 2006
+++ blocksshd.conf Thu Nov 23 13:12:35 2006
--- blocksshd.conf.orig Sat Jun 16 12:26:22 2007
+++ blocksshd.conf Sat Jun 16 12:27:19 2007
@@ -1,9 +1,9 @@
# vim: syntax=perl
@ -16,8 +16,8 @@
pid_file => '/var/run/blocksshd.pid', # Location of PID file
send_email => '1', # Enable the sending of email notifications
email => 'root', # Email address to send notifications
- mail => '/bin/mail', # Location of mail binary
+ mail => '/usr/bin/mail', # Location of mail binary
iptables => '/sbin/iptables', # Location of iptables binary - only for Linux
pfctl => '/sbin/pfctl', # Location of pfctl binary - only for BSD
whitelist => [qw{
- mail => '/bin/mail', # Location of mail binary
+ mail => '/usr/bin/mail', # Location of mail binary
email_whois_lookup => '1', # enable whois lookup of the blocked ip addres in the sent email
whois => '/usr/bin/whois', # location of the whois binary
sed => '/bin/sed', # location of the sed binary