diff options
author | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2014-05-12 16:25:21 +0000 |
---|---|---|
committer | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2014-05-12 16:25:21 +0000 |
commit | 94f7f165a63af5e3b56c5797917b559a06aa5987 (patch) | |
tree | e7d6cd7d328d3dbd9d7002b439ab6900e27c5137 /mail | |
parent | 2d6332f43f21722a8bf064998a7bb2e1f100e28f (diff) | |
download | ports-94f7f165a63af5e3b56c5797917b559a06aa5987.tar.gz ports-94f7f165a63af5e3b56c5797917b559a06aa5987.zip |
Notes
Diffstat (limited to 'mail')
-rw-r--r-- | mail/exilog/Makefile | 44 | ||||
-rw-r--r-- | mail/exilog/pkg-plist | 20 |
2 files changed, 33 insertions, 31 deletions
diff --git a/mail/exilog/Makefile b/mail/exilog/Makefile index 5d77604384c9..dc2e5fba4cfe 100644 --- a/mail/exilog/Makefile +++ b/mail/exilog/Makefile @@ -3,20 +3,24 @@ PORTNAME= exilog PORTVERSION= 0.5 -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= mail 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 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 +SHEBANG_FILES= exilog_agent.pl exilog_cleanup.pl + # Default sql backend WITH_SQL_BACKEND?= mysql @@ -37,8 +41,9 @@ EXILOGDIR?= ${PREFIX}/www/exilog .else EXILOGDIR?= ${PREFIX}/exilog .endif -NO_STAGE= yes + .include <bsd.port.pre.mk> + .if defined(WITHOUT_AGENT) PLIST_SUB+= AGENT="@comment " .else @@ -48,12 +53,10 @@ PLIST_SUB+= AGENT="" PLIST_SUB+= EXILOGDIR="${EXILOGDIR:S,^${PREFIX}/,,}" -.if !defined(NOPORTDOCS) PORTDOC_FILES= doc/Changelog \ doc/exilog.txt \ doc/mysql-db-script.sql \ doc/pgsql-db-script.sql -.endif post-extract: @${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 do-install: - @${MKDIR} ${EXILOGDIR} - @${MKDIR} ${EXILOGDIR}/icons - @${CP} ${WRKSRC}/*.pm ${WRKSRC}/*.css ${WRKSRC}/*.js ${EXILOGDIR} - @${CP} ${WRKSRC}/icons/* ${EXILOGDIR}/icons - + @${MKDIR} ${STAGEDIR}${EXILOGDIR} ${STAGEDIR}${EXILOGDIR}/icons + @${CP} ${WRKSRC}/*.pm ${WRKSRC}/*.css ${WRKSRC}/*.js ${STAGEDIR}${EXILOGDIR} + @${CP} ${WRKSRC}/icons/* ${STAGEDIR}${EXILOGDIR}/icons .if !defined(WITHOUT_AGENT) - @${INSTALL_SCRIPT} ${WRKSRC}/exilog_agent.pl ${PREFIX}/sbin + @${INSTALL_SCRIPT} ${WRKSRC}/exilog_agent.pl ${STAGEDIR}${PREFIX}/sbin .endif - @${INSTALL_SCRIPT} ${WRKSRC}/exilog_cleanup.pl ${PREFIX}/sbin - @${INSTALL_SCRIPT} ${WRKSRC}/exilog_cgi.pl ${EXILOGDIR} - @${CP} ${WRKSRC}/exilog.conf-example ${PREFIX}/etc/exilog.conf-dist - @${CHMOD} 0600 ${PREFIX}/etc/exilog.conf-dist - @${CHOWN} ${WWWOWN}:${WWWGRP} ${PREFIX}/etc/exilog.conf-dist - @${CP} ${FILESDIR}/htaccess ${EXILOGDIR}/.htaccess -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} + @${INSTALL_SCRIPT} ${WRKSRC}/exilog_cleanup.pl ${STAGEDIR}${PREFIX}/sbin + @${INSTALL_SCRIPT} ${WRKSRC}/exilog_cgi.pl ${STAGEDIR}${EXILOGDIR} + @${CP} ${WRKSRC}/exilog.conf-example ${STAGEDIR}${PREFIX}/etc/exilog.conf-dist + @${CHMOD} 0600 ${STAGEDIR}${PREFIX}/etc/exilog.conf-dist + @${CP} ${FILESDIR}/htaccess ${STAGEDIR}${EXILOGDIR}/.htaccess + @${MKDIR} ${STAGEDIR}${DOCSDIR} .for docfile in ${PORTDOC_FILES} - @${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/${docfile} ${STAGEDIR}${DOCSDIR} .endfor -.endif .include <bsd.port.post.mk> diff --git a/mail/exilog/pkg-plist b/mail/exilog/pkg-plist index a861a22fcb2f..462d4310ff24 100644 --- a/mail/exilog/pkg-plist +++ b/mail/exilog/pkg-plist @@ -1,6 +1,16 @@ %%AGENT%%@stopdaemon exilog +@owner www +@group www +etc/exilog.conf-dist +@owner +@group %%AGENT%%sbin/exilog_agent.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_html.pm %%EXILOGDIR%%/exilog_cgi_messages.pm @@ -8,12 +18,11 @@ sbin/exilog_cleanup.pl %%EXILOGDIR%%/exilog_cgi_queues.pm %%EXILOGDIR%%/exilog_cgi_servers.pm %%EXILOGDIR%%/exilog_config.pm +%%EXILOGDIR%%/exilog_jscript.js %%EXILOGDIR%%/exilog_parse.pm %%EXILOGDIR%%/exilog_sql.pm -%%EXILOGDIR%%/exilog_util.pm -%%EXILOGDIR%%/exilog_jscript.js %%EXILOGDIR%%/exilog_stylesheet.css -%%EXILOGDIR%%/.htaccess +%%EXILOGDIR%%/exilog_util.pm %%EXILOGDIR%%/icons/address.png %%EXILOGDIR%%/icons/arrival.png %%EXILOGDIR%%/icons/arrival_auth.png @@ -53,11 +62,6 @@ sbin/exilog_cleanup.pl %%EXILOGDIR%%/icons/stopwatch.png %%EXILOGDIR%%/icons/timerange.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%% %%PORTDOCS%%@dirrm %%DOCSDIR%% |