sysutils/uptimed: Fix config path and prevent config file overwrite
PR: 187774 Submitted by: Lukasz Wasikowski
This commit is contained in:
parent
6a68eb1b2d
commit
f7750f4501
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=363001
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
PORTNAME= uptimed
|
PORTNAME= uptimed
|
||||||
PORTVERSION= 0.3.17
|
PORTVERSION= 0.3.17
|
||||||
PORTREVISION= 1
|
PORTREVISION= 2
|
||||||
CATEGORIES= sysutils
|
CATEGORIES= sysutils
|
||||||
MASTER_SITES= http://podgorny.cz/uptimed/releases/ \
|
MASTER_SITES= http://podgorny.cz/uptimed/releases/ \
|
||||||
http://www.predatorlabs.net/dl/
|
http://www.predatorlabs.net/dl/
|
||||||
@ -27,13 +27,20 @@ post-patch:
|
|||||||
's|/usr/lib/sendmail|/usr/sbin/sendmail| ; \
|
's|/usr/lib/sendmail|/usr/sbin/sendmail| ; \
|
||||||
s|/var/run/uptimed|/var/run/uptimed.pid|' \
|
s|/var/run/uptimed|/var/run/uptimed.pid|' \
|
||||||
${WRKSRC}/etc/uptimed.conf-dist
|
${WRKSRC}/etc/uptimed.conf-dist
|
||||||
|
@${REINPLACE_CMD} -e \
|
||||||
|
's|/etc/uprecords-cgi/|${PREFIX}/www/cgi-bin/|' \
|
||||||
|
${WRKSRC}/src/uprecords.c
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
@${MKDIR} ${STAGEDIR}${PREFIX}/www/cgi-bin
|
@${MKDIR} ${STAGEDIR}${PREFIX}/www/cgi-bin
|
||||||
${INSTALL_PROGRAM} ${STAGEDIR}${PREFIX}/bin/uprecords \
|
${INSTALL_PROGRAM} ${STAGEDIR}${PREFIX}/bin/uprecords \
|
||||||
${STAGEDIR}${PREFIX}/www/cgi-bin/uprecords.cgi
|
${STAGEDIR}${PREFIX}/www/cgi-bin/uprecords.cgi
|
||||||
${INSTALL_DATA} ${WRKSRC}/sample-cgi/* \
|
${INSTALL_DATA} ${WRKSRC}/sample-cgi/uprecords.conf \
|
||||||
${STAGEDIR}${PREFIX}/www/cgi-bin
|
${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
|
@${MKDIR} ${STAGEDIR}/var/spool/uptimed
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
@ -9,8 +9,8 @@ man/man1/uprecords.1.gz
|
|||||||
man/man8/uptimed.8.gz
|
man/man8/uptimed.8.gz
|
||||||
sbin/uptimed
|
sbin/uptimed
|
||||||
www/cgi-bin/uprecords.cgi
|
www/cgi-bin/uprecords.cgi
|
||||||
www/cgi-bin/uprecords.conf
|
www/cgi-bin/uprecords.conf.sample
|
||||||
www/cgi-bin/uprecords.footer
|
www/cgi-bin/uprecords.footer.sample
|
||||||
www/cgi-bin/uprecords.header
|
www/cgi-bin/uprecords.header.sample
|
||||||
@dirrmtry www/cgi-bin
|
@dirrmtry www/cgi-bin
|
||||||
@unexec rmdir /var/spool/uptimed 2>/dev/null || true
|
@unexec rmdir /var/spool/uptimed 2>/dev/null || true
|
||||||
|
Loading…
Reference in New Issue
Block a user