mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
Update to iplog 2.2.1.
PR: ports/21432 Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp> via maintainer Approved by: Udo Schweigert <ust@cert.siemens.de>
This commit is contained in:
parent
d434090bc5
commit
3276d4167c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=33040
@ -6,41 +6,39 @@
|
||||
#
|
||||
|
||||
PORTNAME= iplog
|
||||
PORTVERSION= 2.2.0
|
||||
PORTVERSION= 2.2.1
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
|
||||
ftp://ftp.karlsbakk.net/pub/ojnk/iplog/
|
||||
http://misc.ojnk.net/~odin/stuff/
|
||||
MASTER_SITE_SUBDIR= ojnk
|
||||
|
||||
PATCH_SITES= http://ojnk.sourceforge.net/stuff/ \
|
||||
ftp://ftp.karlsbakk.net/pub/ojnk/iplog/
|
||||
PATCH_DIST_STRIP=-p1
|
||||
|
||||
MAINTAINER= ust@cert.siemens.de
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
MAKE_FLAGS= CONF_ARGS="--prefix=${PREFIX}"
|
||||
USE_GMAKE= yes
|
||||
GNU_CONFIGURE= yes
|
||||
|
||||
MAN5= iplog.conf.5
|
||||
MAN8= iplog.8
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
post-patch:
|
||||
.for file in example-iplog.conf iplog.8 iplog.conf.5 src/iplog.h
|
||||
@${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/${file}
|
||||
.endfor
|
||||
|
||||
post-install:
|
||||
@strip ${PREFIX}/sbin/iplog
|
||||
${INSTALL_DATA} ${WRKSRC}/example-iplog.conf ${PREFIX}/etc
|
||||
.if !exists(${PREFIX}/etc/iplog.conf)
|
||||
@${CP} ${WRKSRC}/example-iplog.conf ${PREFIX}/etc/iplog.conf
|
||||
${INSTALL_DATA} ${WRKSRC}/example-iplog.conf ${PREFIX}/etc/iplog.conf
|
||||
.else
|
||||
@echo
|
||||
@echo "============================================================================"
|
||||
@echo "Hint: iplog changed its configuration file from ${PREFIX}/etc/iplog.rules"
|
||||
@echo " to ${PREFIX}/etc/iplog.conf"
|
||||
@echo
|
||||
@echo "See ${PREFIX}/etc/example-iplog.conf for an example"
|
||||
@echo "============================================================================"
|
||||
@echo
|
||||
@${ECHO_MSG}
|
||||
@${ECHO_MSG} "============================================================================"
|
||||
@${ECHO_MSG} "Hint: iplog changed its configuration file from ${PREFIX}/etc/iplog.rules"
|
||||
@${ECHO_MSG} " to ${PREFIX}/etc/iplog.conf"
|
||||
@${ECHO_MSG}
|
||||
@${ECHO_MSG} "See ${PREFIX}/etc/example-iplog.conf for an example"
|
||||
@${ECHO_MSG} "============================================================================"
|
||||
@${ECHO_MSG}
|
||||
.endif
|
||||
@${CP} ${WRKSRC}/example-iplog.conf ${PREFIX}/etc/example-iplog.conf
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -1 +1 @@
|
||||
MD5 (iplog-2.2.0.tar.gz) = ca906ef470c4313fe622d0a545a16cfe
|
||||
MD5 (iplog-2.2.1.tar.gz) = 5411e3a556b0635361a2aa94a6e9faae
|
||||
|
@ -5,7 +5,7 @@
|
||||
**
|
||||
** Example iplog configuration file.
|
||||
-** Edit me and copy me to /etc/iplog.conf
|
||||
+** Edit me and copy me to /usr/local/etc/iplog.conf
|
||||
+** Edit me and copy me to %%PREFIX%%/etc/iplog.conf
|
||||
**
|
||||
** See iplog.conf(5) for details on syntax and a full description
|
||||
** of available options.
|
||||
|
@ -5,7 +5,7 @@
|
||||
.SH FILES
|
||||
.TP
|
||||
-.B /etc/iplog.conf
|
||||
+.B /usr/local/etc/iplog.conf
|
||||
+.B %%PREFIX%%/etc/iplog.conf
|
||||
The
|
||||
.B iplog
|
||||
configuration file.
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
Upon execution and upon being restarted, iplog reads a list of configuration rules from its configuration file. The default location of this file is
|
||||
-.B /etc/iplog.conf.
|
||||
+.B /usr/local/etc/iplog.conf.
|
||||
+.B %%PREFIX%%/etc/iplog.conf.
|
||||
|
||||
.SH NOTATION
|
||||
Throughout this document, required parameters will be denoted by enclosing the parameter in angle brackets <like this>.
|
||||
|
@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
-#define CONFFILE "/etc/iplog.conf"
|
||||
+#define CONFFILE "/usr/local/etc/iplog.conf"
|
||||
+#define CONFFILE "%%PREFIX%%/etc/iplog.conf"
|
||||
|
||||
/*
|
||||
** Making these smaller will probably do bad things.
|
||||
|
@ -3,3 +3,5 @@ TCP, UDP and ICMP traffic, though adding support for other protocols
|
||||
should be relatively easy. iplog contains a built-in packet filter,
|
||||
allowing for logging or excluding packets that fit a given set of
|
||||
criteria.
|
||||
|
||||
WWW: http://ojnk.sourceforge.net/
|
||||
|
@ -1,2 +1,4 @@
|
||||
sbin/iplog
|
||||
@unexec if cmp -s %D/etc/iplog.conf %D/etc/example-iplog.conf; then rm -f %D/etc/iplog.conf; fi
|
||||
etc/example-iplog.conf
|
||||
@exec test -f %B/iplog.conf || cp %B/%f %B/iplog.conf
|
||||
|
Loading…
Reference in New Issue
Block a user