o) Fix some pkg-plist errors
o) Handle new config file correctly PR: - Submitted by: Neil Darlow <neil@darlow.co.uk>
This commit is contained in:
parent
96e2245704
commit
bfb7c8bb56
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=120419
2 changed files with 13 additions and 3 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
PORTNAME= apcupsd
|
||||
PORTVERSION= 3.10.15
|
||||
PORTREVISION= 0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
|
@ -100,6 +100,16 @@ post-install:
|
|||
${INSTALL_SCRIPT} ${FILESDIR}/${STARTUP_SCRIPT} ${PREFIX}/etc/rc.d/${STARTUP_SCRIPT}
|
||||
${INSTALL_DATA} ${FILESDIR}/apcupsd.conf.net-master.sample ${PREFIX}/etc/apcupsd/
|
||||
${INSTALL_DATA} ${FILESDIR}/apcupsd.conf.net-slave.sample ${PREFIX}/etc/apcupsd/
|
||||
# If there is already an config file it is installed as ...new
|
||||
for na in apcupsd.conf apcupsd.css; do \
|
||||
if [ -f ${PREFIX}/etc/apcupsd/$$na ]; then \
|
||||
if [ -f ${PREFIX}/etc/apcupsd/$$na.new ]; then \
|
||||
${MV} ${PREFIX}/etc/apcupsd/$$na.new ${PREFIX}/etc/apcupsd/$$na.sample; \
|
||||
else \
|
||||
${CP} ${PREFIX}/etc/apcupsd/$$na ${PREFIX}/etc/apcupsd/$$na.sample; \
|
||||
fi; \
|
||||
fi; \
|
||||
done
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
|
|
|
@ -5,6 +5,7 @@ sbin/apctest
|
|||
%%POWERFL%%sbin/powerflute
|
||||
etc/apcupsd/apcupsd.conf.net-master.sample
|
||||
etc/apcupsd/apcupsd.conf.net-slave.sample
|
||||
etc/apcupsd/apcupsd.conf.sample
|
||||
etc/apcupsd/apccontrol
|
||||
etc/apcupsd/changeme
|
||||
etc/apcupsd/commfailure
|
||||
|
@ -13,8 +14,7 @@ etc/apcupsd/mainsback
|
|||
etc/apcupsd/masterconnect
|
||||
etc/apcupsd/mastertimeout
|
||||
etc/apcupsd/onbattery
|
||||
etc/apcupsd/apcupsd.conf.sample
|
||||
%%CGI%%etc/apcupsd/cgi/apcupsd.css.sample
|
||||
%%CGI%%etc/apcupsd/apcupsd.css.sample
|
||||
%%CGI%%etc/apcupsd/cgi/multimon.cgi
|
||||
%%CGI%%etc/apcupsd/cgi/upsfstats.cgi
|
||||
%%CGI%%etc/apcupsd/cgi/upsimage.cgi
|
||||
|
|
Loading…
Reference in a new issue