mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
upsd (/usr/ports/sysutils/upsd) does not have a startup/shutdown
script for placement into /usr/local/etc/rc.d PR: 21517 Submitted by: Stephen Beitzel <sbeitzel@mumble.foobie.net>
This commit is contained in:
parent
7e823ca9cb
commit
8e8a1c8bfc
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=37158
2 changed files with 6 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= upsd
|
PORTNAME= upsd
|
||||||
PORTVERSION= 2.0.1.6
|
PORTVERSION= 2.0.1.6
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= sysutils
|
CATEGORIES= sysutils
|
||||||
MASTER_SITES= ftp://ftp.rge.com/pub/admin/upsd/
|
MASTER_SITES= ftp://ftp.rge.com/pub/admin/upsd/
|
||||||
|
|
||||||
|
@ -19,6 +20,10 @@ pre-build:
|
||||||
@${SED} -e "s!@prefix@!${PREFIX}!g" ${WRKSRC}/conf.h.orig > ${WRKSRC}/conf.h
|
@${SED} -e "s!@prefix@!${PREFIX}!g" ${WRKSRC}/conf.h.orig > ${WRKSRC}/conf.h
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
|
@if [ ! -f ${PREFIX}/etc/rc.d/upsd.sh ]; then \
|
||||||
|
${ECHO} "Installing ${PREFIX}/etc/rc.d/upsd.sh startup file."; \
|
||||||
|
${INSTALL_SCRIPT} -m 751 ${FILESDIR}/upsd.sh ${PREFIX}/etc/rc.d/upsd.sh; \
|
||||||
|
fi
|
||||||
if [ ! -f ${PREFIX}/etc/upsd.conf ] ; then \
|
if [ ! -f ${PREFIX}/etc/upsd.conf ] ; then \
|
||||||
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
|
||||||
${FILESDIR}/upsd.conf ${PREFIX}/etc/upsd.conf; \
|
${FILESDIR}/upsd.conf ${PREFIX}/etc/upsd.conf; \
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
etc/upsd.conf
|
etc/upsd.conf
|
||||||
|
etc/rc.d/upsd.sh
|
||||||
sbin/upsd
|
sbin/upsd
|
||||||
|
|
Loading…
Add table
Reference in a new issue