Date: Tue, 8 Jul 2014 19:48:34 +0000 (UTC) From: Cy Schubert <cy@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r361279 - head/sysutils/nut Message-ID: <201407081948.s68JmYR8055169@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: cy Date: Tue Jul 8 19:48:34 2014 New Revision: 361279 URL: http://svnweb.freebsd.org/changeset/ports/361279 QAT: https://qat.redports.org/buildarchive/r361279/ Log: Add avahi, ipmi, and openssl options. Modified: head/sysutils/nut/Makefile head/sysutils/nut/pkg-plist Modified: head/sysutils/nut/Makefile ============================================================================== --- head/sysutils/nut/Makefile Tue Jul 8 19:00:02 2014 (r361278) +++ head/sysutils/nut/Makefile Tue Jul 8 19:48:34 2014 (r361279) @@ -3,7 +3,7 @@ PORTNAME= nut PORTVERSION= 2.7.2 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= sysutils MASTER_SITES= http://www.networkupstools.org/source/${PORTVERSION:R}/ DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}${EXTRACT_SUFX}.sig @@ -15,7 +15,7 @@ COMMENT= Network UPS Tools USE_AUTOTOOLS= autoconf GNU_CONFIGURE= yes USE_LDCONFIG= yes -USES= gmake pkgconfig +USES= gmake pkgconfig libtool NUT_USER?= uucp NUT_GROUP?= uucp @@ -23,8 +23,10 @@ STATEDIR?= /var/db/nut PLIST_SUB+= NUT_USER=${NUT_USER} PLIST_SUB+= NUT_GROUP=${NUT_GROUP} -OPTIONS_DEFINE= SERIAL USB SNMP NEON PDU CGI BASH OPTIONS_DEFAULT=SERIAL USB SNMP NEON +OPTIONS_DEFINE= ${OPTIONS_DEFAULT} PDU CGI BASH AVAHI OPENSSL +OPTIONS_SINGLE= IPMI +OPTIONS_SINGLE_IPMI= IPMI_OFF IPMIPSU FREEIPMI SERIAL_DESC= SERIAL support USB_DESC= USB support @@ -33,6 +35,10 @@ NEON_DESC= NEON XML/HTTP support PDU_DESC= Powerman PDU support CGI_DESC= Web CGI interface BASH_DESC= Bash Completion support +AVAHI_DESC= Avahi support +IPMI_OFF_DESC= No IPMI support +FREEIPMI_DESC= freeipmi support +IPMIPSU_DESC= Use nut-ipmipsu support (experimental) USE_RC_SUBR= nut nut_upsmon nut_upslog SUB_LIST+= STATEDIR=${STATEDIR} @@ -123,6 +129,38 @@ PLIST_SUB+= BASH="" PLIST_SUB+= BASH="@comment " .endif +.if ${PORT_OPTIONS:MAVAHI} +BUILD_DEPENDS+= ${LOCALBASE}/include/avahi-ui/avahi-ui.h:${PORTSDIR}/net/avahi-header +RUN_DEPENDS+= avahi-daemon:${PORTSDIR}/net/avaha-app +CONFIGURE_ARGS+= --with-avahi +.else +CONFIGURE_ARGS+= --without-avahi +.endif + +.if ${PORT_OPTIONS:MFREEIPMI} +LIB_DEPENDS+= libfreeipmi.so:${PORTSDIR}/sysutils/freeipmi +CONFIGURE_ARGS+= --with-freeipmi +PLIST_SUB+= NUT_FREEIPMI="" +.else +CONFIGURE_ARGS+= --without-freeipmi +PLIST_SUB+= NUT_FREEIPMI="@comment " +.endif + +.if ${PORT_OPTIONS:MIPMIPSU} +CONFIGURE_ARGS+= --with-ipmi +PLIST_SUB+= NUT_IPMIPSU="" +.else +CONFIGURE_ARGS+= --without-ipmi +PLIST_SUB+= NUT_IPMIPSU="@comment " +.endif + +.if ${PORT_OPTIONS:MOPENSSL} +USE_OPENSSL= yes +CONFIGURE_ARGS+= --with-openssl +.else +CONFIGURE_ARGS+= --without-openssl --without-ssl +.endif + pre-install: @${MKDIR} ${STAGEDIR}${PREFIX}/libexec/nut Modified: head/sysutils/nut/pkg-plist ============================================================================== --- head/sysutils/nut/pkg-plist Tue Jul 8 19:00:02 2014 (r361278) +++ head/sysutils/nut/pkg-plist Tue Jul 8 19:48:34 2014 (r361279) @@ -35,13 +35,13 @@ include/nutscan-ip.h include/parseconf.h include/upsclient.h lib/libnutclient.a -lib/libnutclient.la lib/libnutclient.so lib/libnutclient.so.0 +lib/libnutclient.so.0.0.0 lib/libupsclient.a -lib/libupsclient.la lib/libupsclient.so lib/libupsclient.so.4 +lib/libupsclient.so.4.0.0 libdata/pkgconfig/libnutclient.pc libdata/pkgconfig/libnutscan.pc libdata/pkgconfig/libupsclient.pc @@ -83,6 +83,7 @@ libdata/pkgconfig/libupsclient.pc %%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/powercom %%NUT_PDU%%libexec/nut/powerman-pdu %%NUT_SERIAL%%libexec/nut/powerpanel @@ -238,6 +239,7 @@ man/man8/upssched.8.gz %%NUT_USB%%man/man8/usbhid-ups.8.gz %%NUT_SNMP%%man/man8/snmp-ups.8.gz %%NUT_NEON%%man/man8/netxml-ups.8.gz +%%NUT_IPMIPSU%%man/man8/nut-ipmipsu.8.gz %%NUT_PDU%%man/man8/powerman-pdu.8.gz sbin/upsd sbin/upsdrvctl
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407081948.s68JmYR8055169>