- remove w/o PTHREADS OPTION since it's not supported upstream anymore. [1]

- remove pre-4.x support
- change MAINIANER addres to my @FreeBSD.org one
- bump PORTREVISION

PR:		ports/101342 [1]
Submitted by:	Shane Bell [1]
This commit is contained in:
Ion-Mihai Tetcu 2006-08-04 14:17:31 +00:00
parent 9867961518
commit 561854175a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=169658

View file

@ -8,6 +8,7 @@
PORTNAME= apcupsd PORTNAME= apcupsd
PORTVERSION= 3.12.3 PORTVERSION= 3.12.3
PORTREVISION= 1
CATEGORIES= sysutils CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:S/$/:src_sf/g} \ MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:S/$/:src_sf/g} \
http://sce-tindy.tecnik93.com/FreeBSD/ports/${PORTNAME}/sources/:src_bk \ 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 ${PORTNAME}.pdf:doc_sf,doc_bk
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= itetcu@people.tecnik93.com MAINTAINER= itetcu@FreeBSD.org
COMMENT= A daemon for controlling APC UPS COMMENT= A daemon for controlling APC UPS
USE_GETTEXT= yes USE_GETTEXT= yes
@ -38,11 +39,10 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -L${LOCALBASE}/lib" \
MAN8= apcupsd.8 MAN8= apcupsd.8
OPTIONS= CLIENT_ONLY "Build apcupsd client only (no network server)" off OPTIONS= CLIENT_ONLY "Build apcupsd client only (no network server)" off \
OPTIONS+= CGI "Compile with CGI programms to show status" off CGI "Compile with CGI programms to show status" off \
OPTIONS+= USB "Compile with USB Support (READ MANUAL!)" on USB "Compile with USB Support (READ MANUAL!)" on \
OPTIONS+= SNMP "Compile with SNMP Support (READ MANUAL!)" on SNMP "Compile with SNMP Support (READ MANUAL!)" on
OPTIONS+= PTHREADS "Compile without pthreads support (READ MANUAL!)" off
IGNOREFILES= ${PORTNAME}.pdf IGNOREFILES= ${PORTNAME}.pdf
PORTDOCS= ${PORTNAME}.pdf PORTDOCS= ${PORTNAME}.pdf
@ -72,18 +72,9 @@ LIB_DEPENDS+= netsnmp.9:${PORTSDIR}/net-mgmt/net-snmp
CONFIGURE_ARGS+= --enable-snmp CONFIGURE_ARGS+= --enable-snmp
.endif .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_ARGS+= --enable-powerflute --with-libwrap=yes
CONFIGURE_ENV+= LIBS="-lcurses -lmenu" CONFIGURE_ENV+= LIBS="-lcurses -lmenu"
PLIST_SUB+= POWERFL="" PLIST_SUB+= POWERFL=""
.else
PLIST_SUB+= POWERFL="@comment "
.endif
post-configure: post-configure:
@${REINPLACE_CMD} -e "s|%PREFIX%|${PREFIX}|g" ${WRKSRC}/doc/apcupsd.man @${REINPLACE_CMD} -e "s|%PREFIX%|${PREFIX}|g" ${WRKSRC}/doc/apcupsd.man