svn commit: r397100 - head/sysutils/nut

Cy Schubert cy at FreeBSD.org
Thu Sep 17 06:15:42 UTC 2015


Author: cy
Date: Thu Sep 17 06:15:41 2015
New Revision: 397100
URL: https://svnweb.freebsd.org/changeset/ports/397100

Log:
  Install netxml-ups, update pkg-plist.
  
  PR:		203048
  Submitted by:	amdmi3

Modified:
  head/sysutils/nut/Makefile
  head/sysutils/nut/pkg-plist

Modified: head/sysutils/nut/Makefile
==============================================================================
--- head/sysutils/nut/Makefile	Thu Sep 17 04:47:59 2015	(r397099)
+++ head/sysutils/nut/Makefile	Thu Sep 17 06:15:41 2015	(r397100)
@@ -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/

Modified: head/sysutils/nut/pkg-plist
==============================================================================
--- head/sysutils/nut/pkg-plist	Thu Sep 17 04:47:59 2015	(r397099)
+++ head/sysutils/nut/pkg-plist	Thu Sep 17 06:15:41 2015	(r397100)
@@ -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
- at exec mkdir %%STATEDIR%%
- at exec chown %%NUT_USER%%:%%NUT_GROUP%% %%STATEDIR%%
- at exec chmod 750 %%STATEDIR%%
- at unexec test -d %%STATEDIR%% && rmdir %%STATEDIR%%
-%%NUT_CGI%%@dirrmtry %%CGIDIR%%
- at dirrmtry %%ETCDIR%%
-%%NUT_CGI%%@dirrmtry www/cgi-bin
-%%BASH%%@dirrmtry etc/bash_completion.d
- at dirrmtry libexec/nut
-%%NUT_CGI%%@dirrmtry %%WWWDIR%%
+ at dir(%%NUT_USER%%,%%NUT_GROUP%%,750) %%STATEDIR%%


More information about the svn-ports-all mailing list