[1]:
- s|/var/log/secure|/var/log/auth.log| - move epylog.cron to configuration directory Moreover: - Preserve user-modified configuration files across updates - Use GNU_CONFIGURE - Depend on lynx and pass the lynx path to the configure script [1]: PR: ports/83136 Submitted by: maintainer
This commit is contained in:
parent
dd665c5eb8
commit
406081a6ca
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=139640
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= epylog
|
||||
PORTVERSION= 1.0.3
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= http://linux.duke.edu/projects/epylog/download/
|
||||
|
||||
@ -14,15 +15,42 @@ MAINTAINER= alan@wave2.co.uk
|
||||
COMMENT= Epylog is a syslog parser which mails you the output
|
||||
|
||||
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/libxml2.py:${PORTSDIR}/textproc/py-libxml2
|
||||
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/libxml2.py:${PORTSDIR}/textproc/py-libxml2
|
||||
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/libxml2.py:${PORTSDIR}/textproc/py-libxml2 \
|
||||
lynx:${PORTSDIR}/www/lynx
|
||||
|
||||
MAN3= epylog.3
|
||||
MAN5= epylog-modules.5 epylog.conf.5
|
||||
MAN8= epylog.8
|
||||
|
||||
HAS_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --with-lynx --prefix=${PREFIX}
|
||||
USE_REINPLACE= yes
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --with-lynx=${LOCALBASE}/bin/lynx
|
||||
USE_PERL5= yes
|
||||
USE_PYTHON= yes
|
||||
|
||||
CONF_FILES= epylog.conf \
|
||||
modules.d/logins.conf \
|
||||
modules.d/mail.conf \
|
||||
modules.d/notices.conf \
|
||||
modules.d/packets.conf \
|
||||
modules.d/spamd.conf \
|
||||
modules.d/weeder.conf \
|
||||
notice_local.xml \
|
||||
report_template.html \
|
||||
weed_local.cf
|
||||
|
||||
SUB_FILES= pkg-install pkg-deinstall
|
||||
SUB_LIST= CONF_FILES="${CONF_FILES}"
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|$$sysconfdir/cron\.daily|$$sysconfdir/epylog|' \
|
||||
${WRKSRC}/configure
|
||||
@${REINPLACE_CMD} -e 's|/var/log/secure|/var/log/auth.log|' \
|
||||
${WRKSRC}/etc/modules.d/logins.conf.in \
|
||||
${WRKSRC}/etc/modules.d/notices.conf.in \
|
||||
${WRKSRC}/etc/modules.d/weeder.conf.in
|
||||
|
||||
post-install:
|
||||
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
25
sysutils/epylog/files/patch-etc_Makefile.in
Normal file
25
sysutils/epylog/files/patch-etc_Makefile.in
Normal file
@ -0,0 +1,25 @@
|
||||
--- etc/Makefile.in.orig Wed Jul 20 05:29:47 2005
|
||||
+++ etc/Makefile.in Wed Jul 20 05:32:37 2005
|
||||
@@ -32,8 +32,8 @@
|
||||
|
||||
SUBDIRS = modules.d
|
||||
INSTALLDIRS = $(pkgconfdir)
|
||||
-CFGFILES = epylog.conf notice_dist.xml notice_local.xml report_template.html \
|
||||
- trojans.list weed_dist.cf weed_local.cf
|
||||
+CFGFILES = epylog.conf notice_local.xml report_template.html weed_local.cf
|
||||
+FILES = notice_dist.xml trojans.list weed_dist.cf
|
||||
|
||||
all: all-stamp
|
||||
|
||||
@@ -47,7 +47,10 @@
|
||||
|
||||
install: all installdirs
|
||||
for CFGFILE in $(CFGFILES); do \
|
||||
- $(INSTALL_DATA) $$CFGFILE $(DESTDIR)$(pkgconfdir)/$$CFGFILE; \
|
||||
+ $(INSTALL_DATA) $$CFGFILE $(DESTDIR)$(pkgconfdir)/$$CFGFILE.default; \
|
||||
+ done
|
||||
+ for FILE in $(FILES); do \
|
||||
+ $(INSTALL_DATA) $$FILE $(DESTDIR)$(pkgconfdir); \
|
||||
done
|
||||
for subdir in $(SUBDIRS) ; do \
|
||||
$(MAKE) -C $$subdir install ; \
|
11
sysutils/epylog/files/patch-etc_modules_Makefile.in
Normal file
11
sysutils/epylog/files/patch-etc_modules_Makefile.in
Normal file
@ -0,0 +1,11 @@
|
||||
--- etc/modules.d/Makefile.in.orig Wed Jul 20 05:33:26 2005
|
||||
+++ etc/modules.d/Makefile.in Wed Jul 20 05:33:26 2005
|
||||
@@ -43,7 +43,7 @@
|
||||
|
||||
install: all installdirs
|
||||
for MCONF in $(MCONFS); do \
|
||||
- $(INSTALL_DATA) $$MCONF.conf $(DESTDIR)$(pkgconfdir)/modules.d/; \
|
||||
+ $(INSTALL_DATA) $$MCONF.conf $(DESTDIR)$(pkgconfdir)/modules.d/$$MCONF.conf.default; \
|
||||
done
|
||||
|
||||
uninstall:
|
9
sysutils/epylog/files/pkg-deinstall.in
Normal file
9
sysutils/epylog/files/pkg-deinstall.in
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
[ "$2" != "DEINSTALL" ] && exit 0
|
||||
|
||||
for f in %%CONF_FILES%%; do
|
||||
if cmp -s "${PKG_PREFIX}/etc/epylog/$f" "${PKG_PREFIX}/etc/epylog/$f.default"; then
|
||||
rm -f "${PKG_PREFIX}/etc/epylog/$f"
|
||||
fi
|
||||
done
|
9
sysutils/epylog/files/pkg-install.in
Normal file
9
sysutils/epylog/files/pkg-install.in
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
[ "$2" != "POST-INSTALL" ] && exit 0
|
||||
|
||||
for f in %%CONF_FILES%%; do
|
||||
if ! [ -f "${PKG_PREFIX}/etc/epylog/$f" ]; then
|
||||
cp -p "${PKG_PREFIX}/etc/epylog/$f.default" "${PKG_PREFIX}/etc/epylog/$f"
|
||||
fi
|
||||
done
|
@ -1,17 +1,17 @@
|
||||
etc/cron.daily/epylog.cron
|
||||
etc/epylog/epylog.conf
|
||||
etc/epylog/modules.d/logins.conf
|
||||
etc/epylog/modules.d/mail.conf
|
||||
etc/epylog/modules.d/notices.conf
|
||||
etc/epylog/modules.d/packets.conf
|
||||
etc/epylog/modules.d/spamd.conf
|
||||
etc/epylog/modules.d/weeder.conf
|
||||
etc/epylog/epylog.conf.default
|
||||
etc/epylog/epylog.cron
|
||||
etc/epylog/modules.d/logins.conf.default
|
||||
etc/epylog/modules.d/mail.conf.default
|
||||
etc/epylog/modules.d/notices.conf.default
|
||||
etc/epylog/modules.d/packets.conf.default
|
||||
etc/epylog/modules.d/spamd.conf.default
|
||||
etc/epylog/modules.d/weeder.conf.default
|
||||
etc/epylog/notice_dist.xml
|
||||
etc/epylog/notice_local.xml
|
||||
etc/epylog/report_template.html
|
||||
etc/epylog/notice_local.xml.default
|
||||
etc/epylog/report_template.html.default
|
||||
etc/epylog/trojans.list
|
||||
etc/epylog/weed_dist.cf
|
||||
etc/epylog/weed_local.cf
|
||||
etc/epylog/weed_local.cf.default
|
||||
lib/perl5/site_perl/epylog.pm
|
||||
%%PYTHON_SITELIBDIR%%/epylog/__init__.py
|
||||
%%PYTHON_SITELIBDIR%%/epylog/__init__.pyc
|
||||
@ -62,6 +62,5 @@ share/epylog/modules/weeder_mod.pyc
|
||||
@dirrm share/doc/epylog-1.0.3/doc
|
||||
@dirrm share/doc/epylog-1.0.3
|
||||
@dirrm %%PYTHON_SITELIBDIR%%/epylog
|
||||
@dirrm etc/epylog/modules.d
|
||||
@dirrm etc/epylog
|
||||
@unexec rmdir %D/etc/cron.daily 2>/dev/null || true
|
||||
@unexec rmdir %D/etc/epylog/modules.d 2>/dev/null || true
|
||||
@unexec rmdir %D/etc/epylog 2>/dev/null || true
|
||||
|
Loading…
Reference in New Issue
Block a user