diff options
author | Cy Schubert <cy@FreeBSD.org> | 2014-07-08 19:48:34 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2014-07-08 19:48:34 +0000 |
commit | 5d4b179e7841529a6a7d143d74f2bdc452063ddb (patch) | |
tree | df12a507ca1e33c2f1baded9f6ac5be8b4552a30 /sysutils/nut | |
parent | - USES=libtool pathfix tar:bzip2 (diff) |
Add avahi, ipmi, and openssl options.
Notes
Notes:
svn path=/head/; revision=361279
Diffstat (limited to 'sysutils/nut')
-rw-r--r-- | sysutils/nut/Makefile | 44 | ||||
-rw-r--r-- | sysutils/nut/pkg-plist | 6 |
2 files changed, 45 insertions, 5 deletions
diff --git a/sysutils/nut/Makefile b/sysutils/nut/Makefile index 83085cfc2f04..7aa837909e22 100644 --- a/sysutils/nut/Makefile +++ b/sysutils/nut/Makefile @@ -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 diff --git a/sysutils/nut/pkg-plist b/sysutils/nut/pkg-plist index 0bfc3e6174bf..c3efc756410a 100644 --- a/sysutils/nut/pkg-plist +++ b/sysutils/nut/pkg-plist @@ -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 |