Skip to content

Commit

Permalink
sysutils/nut: Update 2.7.4 --> 2.8.0
Browse files Browse the repository at this point in the history
Welcome to the long awaited nut 2.8.0
  • Loading branch information
cschuber committed Apr 27, 2022
1 parent 1d7a588 commit 3141891
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 27 deletions.
15 changes: 11 additions & 4 deletions sysutils/nut/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Created by: Boris Popov <bp@FreeBSD.org>

PORTNAME= nut
PORTVERSION= 2.7.4
PORTREVISION= 21
PORTVERSION= 2.8.0
CATEGORIES= sysutils
MASTER_SITES= http://www.networkupstools.org/source/${PORTVERSION:R}/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
Expand All @@ -13,7 +12,7 @@ COMMENT= Network UPS Tools

GNU_CONFIGURE= yes
USE_LDCONFIG= yes
USES= autoreconf gmake pkgconfig libtool
USES= autoreconf:build compiler:c11 gmake libtool pkgconfig python:build

NUT_USER?= uucp
NUT_GROUP?= uucp
Expand Down Expand Up @@ -44,10 +43,12 @@ USE_RC_SUBR= nut nut_upsmon nut_upslog
SUB_LIST+= STATEDIR=${STATEDIR}
PLIST_SUB+= STATEDIR=${STATEDIR}

INSTALL_TARGET= install-strip
PORTDOCS= *

.include <bsd.port.options.mk>

TMPDIR?= /tmp
INSTALL_TARGET= install-strip
CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc/nut \
--program-transform-name="" \
Expand All @@ -66,6 +67,8 @@ CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc/nut \
CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib
LIB_DEPENDS+= libltdl.so:devel/libltdl

BUILD_DEPENDS= asciidoc:textproc/asciidoc

.if ${PORT_OPTIONS:MCGI}
LIB_DEPENDS+= libgd.so:graphics/gd
CGIDIR?= ${PREFIX}/www/cgi-bin/${PORTNAME}
Expand Down Expand Up @@ -172,9 +175,11 @@ CONFIGURE_ARGS+= --with-nss
CONFIGURE_ARGS+= --without-openssl --without-ssl
.endif

post-patch:
@${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -i '' -e 's|/usr/bin/env python|${PYTHON_CMD}|'

pre-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/libexec/nut
@${REINPLACE_CMD} -e 's/device-name\*/cdev/g' ${WRKSRC}/scripts/devd/nut-usb.conf

post-install:
@${MKDIR} ${STAGEDIR}${STATEDIR}
Expand All @@ -196,5 +201,7 @@ post-install:
${INSTALL_DATA} ${PATCHDIR}/nut.syslog ${STAGEDIR}${EXAMPLESDIR}/syslog.sample
${INSTALL_DATA} ${PATCHDIR}/nut.newsyslog ${STAGEDIR}${EXAMPLESDIR}/newsyslog.sample
${MKDIR} ${STAGEDIR}/var/log/nut
@${RM} ${STAGEDIR}${PREFIX}/etc/nut/solaris-init/nut
@${RMDIR} ${STAGEDIR}${PREFIX}/etc/nut/solaris-init

.include <bsd.port.mk>
6 changes: 3 additions & 3 deletions sysutils/nut/distinfo
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
TIMESTAMP = 1540365195
SHA256 (nut-2.7.4.tar.gz) = 980e82918c52d364605c0703a5dcf01f74ad2ef06e3d365949e43b7d406d25a7
SIZE (nut-2.7.4.tar.gz) = 2509831
TIMESTAMP = 1651085820
SHA256 (nut-2.8.0.tar.gz) = c3e5a708da797b7c70b653d37b1206a000fcb503b85519fe4cdf6353f792bfe5
SIZE (nut-2.8.0.tar.gz) = 3287640
10 changes: 0 additions & 10 deletions sysutils/nut/files/patch-m4_nut__check__libopenssl.m4

This file was deleted.

8 changes: 8 additions & 0 deletions sysutils/nut/patch-scripts_Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
--- scripts/Makefile.am.orig 2020-02-09 10:44:01.000000000 -0800
+++ scripts/Makefile.am 2020-03-24 19:40:01.084978000 -0700
@@ -25,4 +25,4 @@
Windows/halt.c \
Windows/Makefile

-SUBDIRS = augeas devd hotplug python systemd udev Solaris upsdrvsvcctl
+SUBDIRS = augeas devd hotplug python udev upsdrvsvcctl
34 changes: 24 additions & 10 deletions sysutils/nut/pkg-plist
Original file line number Diff line number Diff line change
Expand Up @@ -29,26 +29,33 @@ bin/upssched-cmd
%%BASH%%etc/bash_completion.d/nut.bash_completion
include/nut-scan.h
include/nutclient.h
include/nutclientmem.h
include/nutscan-device.h
include/nutscan-init.h
include/nutscan-ip.h
include/nutscan-serial.h
include/parseconf.h
include/upsclient.h
lib/libnutclient.a
lib/libnutclient.so
lib/libnutclient.so.0
lib/libnutclient.so.0.0.0
lib/libnutscan.a
lib/libnutscan.so
lib/libnutscan.so.1
lib/libnutscan.so.1.0.0
lib/libnutclient.so.2
lib/libnutclient.so.2.0.0
lib/libupsclient.a
lib/libupsclient.so
lib/libupsclient.so.4
lib/libupsclient.so.4.0.0
lib/libupsclient.so.6
lib/libupsclient.so.6.0.0
lib/libnutclientstub.a
lib/libnutclientstub.so
lib/libnutclientstub.so.1
lib/libnutclientstub.so.1.0.0
lib/libnutscan.a
lib/libnutscan.so
lib/libnutscan.so.2
lib/libnutscan.so.2.0.0
libdata/pkgconfig/libnutclient.pc
libdata/pkgconfig/libnutscan.pc
libdata/pkgconfig/libupsclient.pc
libdata/pkgconfig/libnutclientstub.pc
%%NUT_SERIAL%%libexec/nut/al175
%%NUT_SERIAL%%libexec/nut/apcupsd-ups
%%NUT_USB%%libexec/nut/nutdrv_atcl_usb
Expand Down Expand Up @@ -82,12 +89,13 @@ libdata/pkgconfig/libupsclient.pc
%%NUT_SERIAL%%libexec/nut/metasys
%%NUT_SERIAL%%libexec/nut/mge-utalk
%%NUT_SERIAL%%libexec/nut/microdowell
%%NUT_SERIAL%%libexec/nut/microsol-apc
%%NUT_SERIAL%%libexec/nut/mge-shut
%%NUT_NEON%%libexec/nut/netxml-ups
%%NUT_SERIAL%%libexec/nut/oldmge-shut
%%NUT_SERIAL%%libexec/nut/oneac
%%NUT_SERIAL%%libexec/nut/optiups
%%NUT_IPMIPSU%%libexec/nut/nut-ipmipsu
%%NUT_SERIAL%%libexec/nut/nutdrv_siemens-sitop
%%NUT_SERIAL%%libexec/nut/powercom
%%NUT_PDU%%libexec/nut/powerman-pdu
%%NUT_SERIAL%%libexec/nut/powerpanel
Expand Down Expand Up @@ -153,7 +161,7 @@ man/man3/nutscan_scan_ipmi.3.gz
man/man3/nutscan_scan_nut.3.gz
man/man3/nutscan_scan_snmp.3.gz
man/man3/nutscan_scan_usb.3.gz
man/man3/nutscan_scan_xml_http.3.gz
man/man3/nutscan_scan_xml_http_range.3.gz
man/man3/upscli_add_host_cert.3.gz
man/man3/upscli_cleanup.3.gz
man/man3/upscli_connect.3.gz
Expand All @@ -164,7 +172,9 @@ man/man3/upscli_init.3.gz
man/man3/upscli_list_next.3.gz
man/man3/upscli_list_start.3.gz
man/man3/upscli_readline.3.gz
man/man3/upscli_readline_timeout.3.gz
man/man3/upscli_sendline.3.gz
man/man3/upscli_sendline_timeout.3.gz
man/man3/upscli_splitaddr.3.gz
man/man3/upscli_splitname.3.gz
man/man3/upscli_ssl.3.gz
Expand All @@ -182,17 +192,20 @@ man/man5/upssched.conf.5.gz
%%NUT_SERIAL%%man/man8/blazer_ser.8.gz
%%NUT_USB%%man/man8/blazer_usb.8.gz
%%NUT_NEON%%man/man8/netxml-ups.8.gz
man/man8/nut-driver-enumerator.8.gz
man/man8/nut-recorder.8.gz
man/man8/nut-scanner.8.gz
%%NUT_USB%%man/man8/nutdrv_atcl_usb.8.gz
%%NUT_USB%%man/man8/nutdrv_qx.8.gz
%%NUT_SERIAL%%man/man8/nutdrv_siemens_sitop.8.gz
man/man8/nutupsdrv.8.gz
%%NUT_SERIAL%%man/man8/riello_ser.8.gz
%%NUT_USB%%man/man8/riello_usb.8.gz
man/man8/upsc.8.gz
man/man8/upscmd.8.gz
man/man8/upsd.8.gz
man/man8/upsdrvctl.8.gz
man/man8/upsdrvsvcctl.8.gz
man/man8/upslog.8.gz
man/man8/upsmon.8.gz
man/man8/upsrw.8.gz
Expand Down Expand Up @@ -227,6 +240,7 @@ man/man8/upssched.8.gz
%%NUT_SERIAL%%man/man8/mge-shut.8.gz
%%NUT_SERIAL%%man/man8/mge-utalk.8.gz
%%NUT_SERIAL%%man/man8/microdowell.8.gz
%%NUT_SERIAL%%man/man8/microsol-apc.8.gz
%%NUT_SERIAL%%man/man8/oneac.8.gz
%%NUT_SERIAL%%man/man8/optiups.8.gz
%%NUT_SERIAL%%man/man8/powercom.8.gz
Expand Down

0 comments on commit 3141891

Please sign in to comment.