mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
- Reset maintainership
- While I'm here: - Convert to new options framework - Support STAGEDIR PR: ports/189684 Submitted by: Larry Rosenman <ler@lerctr.org> (maintainer)
This commit is contained in:
parent
2d6332f43f
commit
94f7f165a6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=353863
@ -3,20 +3,24 @@
|
|||||||
|
|
||||||
PORTNAME= exilog
|
PORTNAME= exilog
|
||||||
PORTVERSION= 0.5
|
PORTVERSION= 0.5
|
||||||
PORTREVISION= 6
|
PORTREVISION= 7
|
||||||
CATEGORIES= mail
|
CATEGORIES= mail
|
||||||
MASTER_SITES= http://duncanthrax.net/exilog/
|
MASTER_SITES= http://duncanthrax.net/exilog/
|
||||||
|
|
||||||
MAINTAINER= ler@lerctr.org
|
MAINTAINER= ports@FreeBSD.org
|
||||||
COMMENT= Tool to centralize and visualize Exim logs with a web front end
|
COMMENT= Tool to centralize and visualize Exim logs with a web front end
|
||||||
|
|
||||||
LICENSE= GPLv2
|
LICENSE= GPLv2
|
||||||
|
|
||||||
RUN_DEPENDS= p5-Net-Netmask>=0:${PORTSDIR}/net-mgmt/p5-Net-Netmask
|
#RUN_DEPENDS= p5-Net-Netmask>=0:${PORTSDIR}/net-mgmt/p5-Net-Netmask
|
||||||
|
|
||||||
USES= perl5
|
OPTIONS_DEFINE= DOCS
|
||||||
|
|
||||||
|
USES= perl5 shebangfix
|
||||||
NO_BUILD= yes
|
NO_BUILD= yes
|
||||||
|
|
||||||
|
SHEBANG_FILES= exilog_agent.pl exilog_cleanup.pl
|
||||||
|
|
||||||
# Default sql backend
|
# Default sql backend
|
||||||
WITH_SQL_BACKEND?= mysql
|
WITH_SQL_BACKEND?= mysql
|
||||||
|
|
||||||
@ -37,8 +41,9 @@ EXILOGDIR?= ${PREFIX}/www/exilog
|
|||||||
.else
|
.else
|
||||||
EXILOGDIR?= ${PREFIX}/exilog
|
EXILOGDIR?= ${PREFIX}/exilog
|
||||||
.endif
|
.endif
|
||||||
NO_STAGE= yes
|
|
||||||
.include <bsd.port.pre.mk>
|
.include <bsd.port.pre.mk>
|
||||||
|
|
||||||
.if defined(WITHOUT_AGENT)
|
.if defined(WITHOUT_AGENT)
|
||||||
PLIST_SUB+= AGENT="@comment "
|
PLIST_SUB+= AGENT="@comment "
|
||||||
.else
|
.else
|
||||||
@ -48,12 +53,10 @@ PLIST_SUB+= AGENT=""
|
|||||||
|
|
||||||
PLIST_SUB+= EXILOGDIR="${EXILOGDIR:S,^${PREFIX}/,,}"
|
PLIST_SUB+= EXILOGDIR="${EXILOGDIR:S,^${PREFIX}/,,}"
|
||||||
|
|
||||||
.if !defined(NOPORTDOCS)
|
|
||||||
PORTDOC_FILES= doc/Changelog \
|
PORTDOC_FILES= doc/Changelog \
|
||||||
doc/exilog.txt \
|
doc/exilog.txt \
|
||||||
doc/mysql-db-script.sql \
|
doc/mysql-db-script.sql \
|
||||||
doc/pgsql-db-script.sql
|
doc/pgsql-db-script.sql
|
||||||
.endif
|
|
||||||
|
|
||||||
post-extract:
|
post-extract:
|
||||||
@${MV} ${WRKDIR}/${PORTNAME} ${WRKSRC}
|
@${MV} ${WRKDIR}/${PORTNAME} ${WRKSRC}
|
||||||
@ -64,25 +67,20 @@ pre-patch:
|
|||||||
@${REINPLACE_CMD} -e "s,\(use exilog_config\),use lib \'${EXILOGDIR}\'; \1," ${WRKSRC}/exilog_cleanup.pl
|
@${REINPLACE_CMD} -e "s,\(use exilog_config\),use lib \'${EXILOGDIR}\'; \1," ${WRKSRC}/exilog_cleanup.pl
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
@${MKDIR} ${EXILOGDIR}
|
@${MKDIR} ${STAGEDIR}${EXILOGDIR} ${STAGEDIR}${EXILOGDIR}/icons
|
||||||
@${MKDIR} ${EXILOGDIR}/icons
|
@${CP} ${WRKSRC}/*.pm ${WRKSRC}/*.css ${WRKSRC}/*.js ${STAGEDIR}${EXILOGDIR}
|
||||||
@${CP} ${WRKSRC}/*.pm ${WRKSRC}/*.css ${WRKSRC}/*.js ${EXILOGDIR}
|
@${CP} ${WRKSRC}/icons/* ${STAGEDIR}${EXILOGDIR}/icons
|
||||||
@${CP} ${WRKSRC}/icons/* ${EXILOGDIR}/icons
|
|
||||||
|
|
||||||
.if !defined(WITHOUT_AGENT)
|
.if !defined(WITHOUT_AGENT)
|
||||||
@${INSTALL_SCRIPT} ${WRKSRC}/exilog_agent.pl ${PREFIX}/sbin
|
@${INSTALL_SCRIPT} ${WRKSRC}/exilog_agent.pl ${STAGEDIR}${PREFIX}/sbin
|
||||||
.endif
|
.endif
|
||||||
@${INSTALL_SCRIPT} ${WRKSRC}/exilog_cleanup.pl ${PREFIX}/sbin
|
@${INSTALL_SCRIPT} ${WRKSRC}/exilog_cleanup.pl ${STAGEDIR}${PREFIX}/sbin
|
||||||
@${INSTALL_SCRIPT} ${WRKSRC}/exilog_cgi.pl ${EXILOGDIR}
|
@${INSTALL_SCRIPT} ${WRKSRC}/exilog_cgi.pl ${STAGEDIR}${EXILOGDIR}
|
||||||
@${CP} ${WRKSRC}/exilog.conf-example ${PREFIX}/etc/exilog.conf-dist
|
@${CP} ${WRKSRC}/exilog.conf-example ${STAGEDIR}${PREFIX}/etc/exilog.conf-dist
|
||||||
@${CHMOD} 0600 ${PREFIX}/etc/exilog.conf-dist
|
@${CHMOD} 0600 ${STAGEDIR}${PREFIX}/etc/exilog.conf-dist
|
||||||
@${CHOWN} ${WWWOWN}:${WWWGRP} ${PREFIX}/etc/exilog.conf-dist
|
@${CP} ${FILESDIR}/htaccess ${STAGEDIR}${EXILOGDIR}/.htaccess
|
||||||
@${CP} ${FILESDIR}/htaccess ${EXILOGDIR}/.htaccess
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||||
.if !defined(NOPORTDOCS)
|
|
||||||
@${MKDIR} ${DOCSDIR}
|
|
||||||
.for docfile in ${PORTDOC_FILES}
|
.for docfile in ${PORTDOC_FILES}
|
||||||
@${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR}
|
@${INSTALL_DATA} ${WRKSRC}/${docfile} ${STAGEDIR}${DOCSDIR}
|
||||||
.endfor
|
.endfor
|
||||||
.endif
|
|
||||||
|
|
||||||
.include <bsd.port.post.mk>
|
.include <bsd.port.post.mk>
|
||||||
|
@ -1,6 +1,16 @@
|
|||||||
%%AGENT%%@stopdaemon exilog
|
%%AGENT%%@stopdaemon exilog
|
||||||
|
@owner www
|
||||||
|
@group www
|
||||||
|
etc/exilog.conf-dist
|
||||||
|
@owner
|
||||||
|
@group
|
||||||
%%AGENT%%sbin/exilog_agent.pl
|
%%AGENT%%sbin/exilog_agent.pl
|
||||||
sbin/exilog_cleanup.pl
|
sbin/exilog_cleanup.pl
|
||||||
|
%%PORTDOCS%%%%DOCSDIR%%/Changelog
|
||||||
|
%%PORTDOCS%%%%DOCSDIR%%/exilog.txt
|
||||||
|
%%PORTDOCS%%%%DOCSDIR%%/mysql-db-script.sql
|
||||||
|
%%PORTDOCS%%%%DOCSDIR%%/pgsql-db-script.sql
|
||||||
|
%%EXILOGDIR%%/.htaccess
|
||||||
%%EXILOGDIR%%/exilog_cgi.pl
|
%%EXILOGDIR%%/exilog_cgi.pl
|
||||||
%%EXILOGDIR%%/exilog_cgi_html.pm
|
%%EXILOGDIR%%/exilog_cgi_html.pm
|
||||||
%%EXILOGDIR%%/exilog_cgi_messages.pm
|
%%EXILOGDIR%%/exilog_cgi_messages.pm
|
||||||
@ -8,12 +18,11 @@ sbin/exilog_cleanup.pl
|
|||||||
%%EXILOGDIR%%/exilog_cgi_queues.pm
|
%%EXILOGDIR%%/exilog_cgi_queues.pm
|
||||||
%%EXILOGDIR%%/exilog_cgi_servers.pm
|
%%EXILOGDIR%%/exilog_cgi_servers.pm
|
||||||
%%EXILOGDIR%%/exilog_config.pm
|
%%EXILOGDIR%%/exilog_config.pm
|
||||||
|
%%EXILOGDIR%%/exilog_jscript.js
|
||||||
%%EXILOGDIR%%/exilog_parse.pm
|
%%EXILOGDIR%%/exilog_parse.pm
|
||||||
%%EXILOGDIR%%/exilog_sql.pm
|
%%EXILOGDIR%%/exilog_sql.pm
|
||||||
%%EXILOGDIR%%/exilog_util.pm
|
|
||||||
%%EXILOGDIR%%/exilog_jscript.js
|
|
||||||
%%EXILOGDIR%%/exilog_stylesheet.css
|
%%EXILOGDIR%%/exilog_stylesheet.css
|
||||||
%%EXILOGDIR%%/.htaccess
|
%%EXILOGDIR%%/exilog_util.pm
|
||||||
%%EXILOGDIR%%/icons/address.png
|
%%EXILOGDIR%%/icons/address.png
|
||||||
%%EXILOGDIR%%/icons/arrival.png
|
%%EXILOGDIR%%/icons/arrival.png
|
||||||
%%EXILOGDIR%%/icons/arrival_auth.png
|
%%EXILOGDIR%%/icons/arrival_auth.png
|
||||||
@ -53,11 +62,6 @@ sbin/exilog_cleanup.pl
|
|||||||
%%EXILOGDIR%%/icons/stopwatch.png
|
%%EXILOGDIR%%/icons/stopwatch.png
|
||||||
%%EXILOGDIR%%/icons/timerange.png
|
%%EXILOGDIR%%/icons/timerange.png
|
||||||
%%EXILOGDIR%%/icons/unknown.png
|
%%EXILOGDIR%%/icons/unknown.png
|
||||||
etc/exilog.conf-dist
|
|
||||||
%%PORTDOCS%%%%DOCSDIR%%/Changelog
|
|
||||||
%%PORTDOCS%%%%DOCSDIR%%/exilog.txt
|
|
||||||
%%PORTDOCS%%%%DOCSDIR%%/mysql-db-script.sql
|
|
||||||
%%PORTDOCS%%%%DOCSDIR%%/pgsql-db-script.sql
|
|
||||||
@dirrm %%EXILOGDIR%%/icons
|
@dirrm %%EXILOGDIR%%/icons
|
||||||
@dirrm %%EXILOGDIR%%
|
@dirrm %%EXILOGDIR%%
|
||||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||||
|
Loading…
Reference in New Issue
Block a user