aboutsummaryrefslogtreecommitdiff
path: root/sysutils/apcupsd
diff options
context:
space:
mode:
authorIon-Mihai Tetcu <itetcu@FreeBSD.org>2006-08-04 14:17:31 +0000
committerIon-Mihai Tetcu <itetcu@FreeBSD.org>2006-08-04 14:17:31 +0000
commit561854175accffa9295e6af12e374a74a69f726c (patch)
treec28eed5ade1096d040db2c17bca3e05bd2605478 /sysutils/apcupsd
parent9867961518eee352e70e1c72b11e7895c390a812 (diff)
downloadports-561854175accffa9295e6af12e374a74a69f726c.tar.gz
ports-561854175accffa9295e6af12e374a74a69f726c.zip
Notes
Diffstat (limited to 'sysutils/apcupsd')
-rw-r--r--sysutils/apcupsd/Makefile21
1 files changed, 6 insertions, 15 deletions
diff --git a/sysutils/apcupsd/Makefile b/sysutils/apcupsd/Makefile
index d66fafe652eb..9eedc334da69 100644
--- a/sysutils/apcupsd/Makefile
+++ b/sysutils/apcupsd/Makefile
@@ -8,6 +8,7 @@
PORTNAME= apcupsd
PORTVERSION= 3.12.3
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:S/$/:src_sf/g} \
http://sce-tindy.tecnik93.com/FreeBSD/ports/${PORTNAME}/sources/:src_bk \
@@ -18,7 +19,7 @@ DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:src_sf,src_bk \
${PORTNAME}.pdf:doc_sf,doc_bk
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
-MAINTAINER= itetcu@people.tecnik93.com
+MAINTAINER= itetcu@FreeBSD.org
COMMENT= A daemon for controlling APC UPS
USE_GETTEXT= yes
@@ -38,11 +39,10 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -L${LOCALBASE}/lib" \
MAN8= apcupsd.8
-OPTIONS= CLIENT_ONLY "Build apcupsd client only (no network server)" off
-OPTIONS+= CGI "Compile with CGI programms to show status" off
-OPTIONS+= USB "Compile with USB Support (READ MANUAL!)" on
-OPTIONS+= SNMP "Compile with SNMP Support (READ MANUAL!)" on
-OPTIONS+= PTHREADS "Compile without pthreads support (READ MANUAL!)" off
+OPTIONS= CLIENT_ONLY "Build apcupsd client only (no network server)" off \
+ CGI "Compile with CGI programms to show status" off \
+ USB "Compile with USB Support (READ MANUAL!)" on \
+ SNMP "Compile with SNMP Support (READ MANUAL!)" on
IGNOREFILES= ${PORTNAME}.pdf
PORTDOCS= ${PORTNAME}.pdf
@@ -72,18 +72,9 @@ LIB_DEPENDS+= netsnmp.9:${PORTSDIR}/net-mgmt/net-snmp
CONFIGURE_ARGS+= --enable-snmp
.endif
-.if !defined(WITH_PTHREADS)
-CONFIGURE_ARGS+= --disable-pthreads
-.endif
-
-# Cause FreeBSD 3.X misses libmenu, libforms and libpanel (curses)
-.if ${OSVERSION} > 400000
CONFIGURE_ARGS+= --enable-powerflute --with-libwrap=yes
CONFIGURE_ENV+= LIBS="-lcurses -lmenu"
PLIST_SUB+= POWERFL=""
-.else
-PLIST_SUB+= POWERFL="@comment "
-.endif
post-configure:
@${REINPLACE_CMD} -e "s|%PREFIX%|${PREFIX}|g" ${WRKSRC}/doc/apcupsd.man