- Update to 0.6
PR: ports/104770 Submitted by: Joe Horn <joehorn_AT_leobbs dot net> Approved by: maintainer (Jui-Nan Lin)
This commit is contained in:
parent
4b90ede1a3
commit
17054745bf
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=176284
3 changed files with 5 additions and 45 deletions
|
@ -6,8 +6,7 @@
|
|||
#
|
||||
|
||||
PORTNAME= sshit
|
||||
PORTVERSION= 0.5
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 0.6
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= http://anp.ath.cx/sshit/ \
|
||||
${MASTER_SITE_LOCAL}
|
||||
|
@ -33,7 +32,7 @@ IGNORE= perl 5.6 or newer required. Install lang/perl5 or lang/perl5.8 and try
|
|||
.endif
|
||||
|
||||
do-install:
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl ${PREFIX}/sbin/${PORTNAME}
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/sbin/${PORTNAME}
|
||||
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf ${PREFIX}/etc/${PORTNAME}.conf-dist
|
||||
|
||||
post-install:
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
MD5 (sshit-0.5.tar.gz) = 1b3f40e08a10919820eb5ecbfa3bc34b
|
||||
SHA256 (sshit-0.5.tar.gz) = eb65e94820fbfbd75d8227de9cd7f42b8b497c1bfac350fbb9d4ef51d85b442d
|
||||
SIZE (sshit-0.5.tar.gz) = 4065
|
||||
MD5 (sshit-0.6.tar.gz) = 9c71b88217bcf3164ec44be85674b666
|
||||
SHA256 (sshit-0.6.tar.gz) = 894ace091abc8f39024d2473e650b496002671bd726840afbd8d1bb01fe6b4f5
|
||||
SIZE (sshit-0.6.tar.gz) = 4404
|
||||
|
|
|
@ -1,39 +0,0 @@
|
|||
--- /usr/ports/security/sshit/work/sshit-0.5/sshit.pl Sat Dec 17 19:40:24 2005
|
||||
+++ sshit.pl Sat Apr 29 08:39:06 2006
|
||||
@@ -232,7 +232,7 @@
|
||||
create => 1,
|
||||
exclusive => 0,
|
||||
mode => 0644,
|
||||
- destroy => 0,
|
||||
+ destroy => 1,
|
||||
);
|
||||
|
||||
$handle = tie %list, 'IPC::Shareable', 'sshi', { %options };
|
||||
@@ -266,7 +266,7 @@
|
||||
{
|
||||
system("$IPFW_CMD delete $list{$ip}{rulenr}");
|
||||
} elsif ($FIREWALL_TYPE =~ /^ipfw2$/i) {
|
||||
- system("$IPFW2_CMD table $IPFW_TABLE_NO delete $ip");
|
||||
+ system("$IPFW2_CMD table $IPFW2_TABLE_NO delete $ip");
|
||||
} elsif ($FIREWALL_TYPE =~ /^pf$/i) {
|
||||
system("$PFCTL_CMD -t $PF_TABLE -Tdelete $ip");
|
||||
}
|
||||
@@ -337,3 +337,18 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
+foreach $ip (keys %list) {
|
||||
+ if($FIREWALL_TYPE =~ /^ipfw$/i)
|
||||
+ {
|
||||
+ system("$IPFW_CMD delete $list{$ip}{rulenr}");
|
||||
+ } elsif ($FIREWALL_TYPE =~ /^ipfw2$/i) {
|
||||
+ system("$IPFW2_CMD table $IPFW2_TABLE_NO delete $ip");
|
||||
+ } elsif ($FIREWALL_TYPE =~ /^pf$/i) {
|
||||
+ system("$PFCTL_CMD -t $PF_TABLE -Tdelete $ip");
|
||||
+ }
|
||||
+ syslog(LOG_ERR, "main removed block rule $list{$ip}{rulenr} for $ip (reset time of $RESET_IP seconds reached)\n");
|
||||
+ delete($list{$ip});
|
||||
+}
|
||||
+
|
||||
+# clear all SHM
|
||||
+IPC::Shareable->clean_up;
|
Loading…
Reference in a new issue