diff options
Diffstat (limited to 'sysutils/nut22/Makefile')
-rw-r--r-- | sysutils/nut22/Makefile | 138 |
1 files changed, 0 insertions, 138 deletions
diff --git a/sysutils/nut22/Makefile b/sysutils/nut22/Makefile deleted file mode 100644 index 79fb7590a05f..000000000000 --- a/sysutils/nut22/Makefile +++ /dev/null @@ -1,138 +0,0 @@ -# New ports collection makefile for: nut -# Date created: 08 Jan 2000 -# Whom: Boris Popov <bp@freebsd.org> -# -# $FreeBSD$ -# - -PORTNAME= nut -PORTVERSION= 2.0.5 -PORTREVISION= 1 -CATEGORIES= sysutils -MASTER_SITES= http://eu1.networkupstools.org/source/${PORTVERSION:R}/ \ - http://us1.networkupstools.org/source/${PORTVERSION:R}/ -DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}${EXTRACT_SUFX}.sig -EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} - -MAINTAINER= Joerg.Pulz@frm2.tum.de -COMMENT?= Network UPS Tools - -SUBSYS?= base -.if ${SUBSYS} != base -PKGNAMESUFFIX= -${SUBSYS} -.endif - -GNU_CONFIGURE= yes -CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc/nut \ - --localstatedir=${STATEDIR} \ - --datadir=${PREFIX}/etc/nut \ - --mandir=${PREFIX}/man \ - --with-drvpath=${PREFIX}/libexec/nut \ - --with-statepath=${STATEDIR} \ - --with-altpidpath=${STATEDIR} \ - --with-pidpath=${STATEDIR} \ - --with-linux-hiddev=no \ - --with-user=${NUT_USER} - -NUT_USER?= uucp -STATEDIR= ${DESTDIR}/var/db/nut - -.include <bsd.port.pre.mk> - -.if ${SUBSYS} == base -USE_RC_SUBR= nut.sh nut_upsmon.sh nut_upslog.sh -SUB_LIST+= STATEDIR=${STATEDIR} -PLIST_SUB+= STATEDIR=${STATEDIR} - -MAN5= ups.conf.5 upsd.conf.5 upsd.users.5 upsmon.conf.5 \ - upssched.conf.5 -MAN8= al175.8 apcsmart.8 bcmxcp.8 belkin.8 belkinunv.8 \ - bestuferrups.8 bestups.8 bestfcom.8 cpsups.8 cyberpower.8 \ - dummy-ups.8 etapro.8 everups.8 fentonups.8 genericups.8 \ - ippon.8 isbmex.8 liebert.8 masterguard.8 megatec.8 metasys.8 \ - mge-shut.8 mge-utalk.8 mustek.8 nitram.8 nutupsdrv.8 oneac.8 \ - optiups.8 powercom.8 powerpanel.8 safenet.8 sms.8 solis.8 \ - tripplite.8 tripplitesu.8 upsc.8 upscmd.8 upscode2.8 upsd.8 \ - upsdrvctl.8 upslog.8 upsmon.8 upsrw.8 upssched.8 victronups.8 - -ALL_TARGET= all -INSTALL_TARGET= install install-conf - -.if defined(WITH_NUT_CGI) -LIB_DEPENDS+= gd.4:${PORTSDIR}/graphics/gd -ALL_TARGET+= cgi -INSTALL_TARGET+=install-cgi install-cgi-conf -MAN5+= hosts.conf.5 upsset.conf.5 upsstats.html.5 -MAN8+= upsset.cgi.8 upsstats.cgi.8 upsimage.cgi.8 -.if !exists(${PREFIX}/www) && exists(${PREFIX}/share/apache) -CGIDIR?= share/apache/cgi-bin -.else -CGIDIR?= www/cgi-bin -.endif -CONFIGURE_ARGS+= --with-cgi --with-cgipath=${PREFIX}/${CGIDIR}/nut \ - --with-gd-includes=-I${PREFIX}/include \ - --with-gd-libs="-L${PREFIX}/lib -lgd" -PLIST_SUB+= CGIFILES="${CGIDIR}/nut/" -PLIST_SUB+= CGIDIRRM="@dirrm ${CGIDIR}/nut" -PLIST_SUB+= CGIETC="etc/nut/" -.else -PLIST_SUB+= CGIFILES="@comment " -PLIST_SUB+= CGIDIRRM="@comment " -PLIST_SUB+= CGIETC="@comment " -.endif -.endif - -.if ${SUBSYS} == usb -LIB_DEPENDS+= usb-0.1.8:${PORTSDIR}/devel/libusb -ALL_TARGET= usb -INSTALL_TARGET= install-usb - -MAN8= bcmxcp_usb.8 newhidups.8 tripplite_usb.8 -.endif - -.if ${SUBSYS} == snmp -LIB_DEPENDS+= netsnmp.10:${PORTSDIR}/net-mgmt/net-snmp -ALL_TARGET= snmp -INSTALL_TARGET= install-snmp - -MAN8= snmp-ups.8 -.endif - -.if ${SUBSYS} == libupsclient -CONFIGURE_ARGS+= --enable-pkg-config \ - --with-pkgconfig-dir=${PREFIX}/libdata/pkgconfig -ALL_TARGET= lib -INSTALL_TARGET= install-lib - -MAN3= upscli_connect.3 upscli_disconnect.3 upscli_readline.3 \ - upscli_sendline.3 upscli_splitname.3 upscli_strerror.3 - -post-patch: - @${REINPLACE_CMD} -e "s#@PKG_CFG_DIR@#${PREFIX}/libdata/pkgconfig#g" \ - ${WRKSRC}/lib/Makefile.in -.endif - -.if ${SUBSYS} == base -pre-install: -.if !defined(WITH_NUT_CGI) && !defined(BATCH) && !defined(PACKAGE_BUILDING) - @${ECHO_MSG} "Type \"make -DWITH_NUT_CGI\" if you want to build CGI scripts." -.endif - @${MKDIR} ${PREFIX}/libexec/nut - @${MKDIR} ${STATEDIR} - @${CHOWN} ${NUT_USER}:wheel ${STATEDIR} - @${CHMOD} 0750 ${STATEDIR} - -.if !defined(NOPORTDOCS) -post-install: - @${MKDIR} ${DOCSDIR}/cables - ${INSTALL_DATA} ${WRKSRC}/docs/cables/*.txt ${DOCSDIR}/cables - ${INSTALL_DATA} ${WRKSRC}/docs/*.txt ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/docs/FAQ ${DOCSDIR} -.for file in ChangeLog CREDITS INSTALL NEWS README UPGRADING - ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} -.endfor -.endif - -.endif - -.include <bsd.port.post.mk> |