sysutils/uptimed: Fix config path and prevent config file overwrite

PR:		187774
Submitted by:	Lukasz Wasikowski
This commit is contained in:
John Marino 2014-07-27 00:40:29 +00:00
parent 6a68eb1b2d
commit f7750f4501
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=363001
2 changed files with 13 additions and 6 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= uptimed
PORTVERSION= 0.3.17
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= http://podgorny.cz/uptimed/releases/ \
http://www.predatorlabs.net/dl/
@ -27,13 +27,20 @@ post-patch:
's|/usr/lib/sendmail|/usr/sbin/sendmail| ; \
s|/var/run/uptimed|/var/run/uptimed.pid|' \
${WRKSRC}/etc/uptimed.conf-dist
@${REINPLACE_CMD} -e \
's|/etc/uprecords-cgi/|${PREFIX}/www/cgi-bin/|' \
${WRKSRC}/src/uprecords.c
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/www/cgi-bin
${INSTALL_PROGRAM} ${STAGEDIR}${PREFIX}/bin/uprecords \
${STAGEDIR}${PREFIX}/www/cgi-bin/uprecords.cgi
${INSTALL_DATA} ${WRKSRC}/sample-cgi/* \
${STAGEDIR}${PREFIX}/www/cgi-bin
${INSTALL_DATA} ${WRKSRC}/sample-cgi/uprecords.conf \
${STAGEDIR}${PREFIX}/www/cgi-bin/uprecords.conf.sample
${INSTALL_DATA} ${WRKSRC}/sample-cgi/uprecords.header \
${STAGEDIR}${PREFIX}/www/cgi-bin/uprecords.header.sample
${INSTALL_DATA} ${WRKSRC}/sample-cgi/uprecords.footer \
${STAGEDIR}${PREFIX}/www/cgi-bin/uprecords.footer.sample
@${MKDIR} ${STAGEDIR}/var/spool/uptimed
.include <bsd.port.mk>

View File

@ -9,8 +9,8 @@ man/man1/uprecords.1.gz
man/man8/uptimed.8.gz
sbin/uptimed
www/cgi-bin/uprecords.cgi
www/cgi-bin/uprecords.conf
www/cgi-bin/uprecords.footer
www/cgi-bin/uprecords.header
www/cgi-bin/uprecords.conf.sample
www/cgi-bin/uprecords.footer.sample
www/cgi-bin/uprecords.header.sample
@dirrmtry www/cgi-bin
@unexec rmdir /var/spool/uptimed 2>/dev/null || true