Install netxml-ups, update pkg-plist.
PR: 203048 Submitted by: amdmi3
This commit is contained in:
parent
5051f42c75
commit
ec66c5a291
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=397100
2 changed files with 6 additions and 11 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
PORTNAME= nut
|
||||
PORTVERSION= 2.7.3
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= http://www.networkupstools.org/source/${PORTVERSION:R}/
|
||||
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}${EXTRACT_SUFX}.sig
|
||||
|
@ -165,8 +166,9 @@ pre-install:
|
|||
@${MKDIR} ${STAGEDIR}${PREFIX}/libexec/nut
|
||||
@${REINPLACE_CMD} -e 's/device-name\*/cdev/g' ${WRKSRC}/scripts/devd/nut-usb.conf
|
||||
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
post-install:
|
||||
@${MKDIR} ${STAGEDIR}${STATEDIR}
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
.if ${PORT_OPTIONS:MBASH}
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d/
|
||||
${INSTALL_DATA} ${WRKSRC}/scripts/misc/nut.bash_completion ${STAGEDIR}${PREFIX}/etc/bash_completion.d/
|
||||
|
|
|
@ -79,6 +79,7 @@ libdata/pkgconfig/libupsclient.pc
|
|||
%%NUT_SERIAL%%libexec/nut/mge-utalk
|
||||
%%NUT_SERIAL%%libexec/nut/microdowell
|
||||
%%NUT_SERIAL%%libexec/nut/mge-shut
|
||||
libexec/nut/netxml-ups
|
||||
%%NUT_SERIAL%%libexec/nut/oldmge-shut
|
||||
%%NUT_SERIAL%%libexec/nut/oneac
|
||||
%%NUT_SERIAL%%libexec/nut/optiups
|
||||
|
@ -176,6 +177,7 @@ man/man5/upssched.conf.5.gz
|
|||
%%NUT_SERIAL%%man/man8/apcupsd-ups.8.gz
|
||||
%%NUT_SERIAL%%man/man8/blazer_ser.8.gz
|
||||
%%NUT_USB%%man/man8/blazer_usb.8.gz
|
||||
man/man8/netxml-ups.8.gz
|
||||
man/man8/nut-recorder.8.gz
|
||||
man/man8/nut-scanner.8.gz
|
||||
%%NUT_USB%%man/man8/nutdrv_atcl_usb.8.gz
|
||||
|
@ -243,13 +245,4 @@ sbin/upsd
|
|||
sbin/upsdrvctl
|
||||
sbin/upsmon
|
||||
sbin/upssched
|
||||
@exec mkdir %%STATEDIR%%
|
||||
@exec chown %%NUT_USER%%:%%NUT_GROUP%% %%STATEDIR%%
|
||||
@exec chmod 750 %%STATEDIR%%
|
||||
@unexec test -d %%STATEDIR%% && rmdir %%STATEDIR%%
|
||||
%%NUT_CGI%%@dirrmtry %%CGIDIR%%
|
||||
@dirrmtry %%ETCDIR%%
|
||||
%%NUT_CGI%%@dirrmtry www/cgi-bin
|
||||
%%BASH%%@dirrmtry etc/bash_completion.d
|
||||
@dirrmtry libexec/nut
|
||||
%%NUT_CGI%%@dirrmtry %%WWWDIR%%
|
||||
@dir(%%NUT_USER%%,%%NUT_GROUP%%,750) %%STATEDIR%%
|
||||
|
|
Loading…
Reference in a new issue