2001-10-27 09:00:52 +02:00
|
|
|
# $NetBSD: Makefile,v 1.15 2001/10/27 07:00:53 jlam Exp $
|
2000-01-21 20:15:59 +01:00
|
|
|
|
2000-08-05 09:31:15 +02:00
|
|
|
DISTNAME= apcupsd-3.6.2
|
|
|
|
CATEGORIES= sysutils
|
2001-01-04 18:42:03 +01:00
|
|
|
MASTER_SITES= ftp://ftp.oasi.gpa.it/pub/apcupsd/stable/tar/
|
2000-08-05 09:31:15 +02:00
|
|
|
|
|
|
|
MAINTAINER= bouyer@netbsd.org
|
2001-01-04 18:42:03 +01:00
|
|
|
HOMEPAGE= http://www.sibbald.com/apcupsd/
|
2001-02-17 18:42:09 +01:00
|
|
|
COMMENT= UPS power management for APCC Products
|
2000-08-05 09:31:15 +02:00
|
|
|
|
2001-08-27 16:35:04 +02:00
|
|
|
BUILD_DEPENDS+= autoconf>=2.13:../../devel/autoconf
|
2001-03-27 05:19:43 +02:00
|
|
|
BUILD_USES_MSGFMT= yes
|
2000-08-05 09:31:15 +02:00
|
|
|
|
|
|
|
USE_GMAKE= # defined
|
|
|
|
|
|
|
|
GNU_CONFIGURE= # defined
|
|
|
|
|
2001-09-27 14:55:40 +02:00
|
|
|
# Thread support is needed to for http support, and to compile powerflute,
|
|
|
|
# which has a curses interface
|
2000-08-05 09:31:15 +02:00
|
|
|
#
|
2001-09-27 14:55:40 +02:00
|
|
|
#CONFIGURE_ARGS+= --enable-http # include http support
|
2001-09-28 01:17:41 +02:00
|
|
|
#DEPENDS+= ncurses-[0-9]*:../../devel/ncurses
|
2000-08-05 09:31:15 +02:00
|
|
|
#CONFIGURE_ARGS+= --enable-threads # compile threading code
|
|
|
|
#CONFIGURE_ARGS+= --enable-powerflute # compile powerflute program
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --with-catgets # use catgets functions
|
|
|
|
CONFIGURE_ARGS+= --enable-nls # i18n support
|
|
|
|
|
|
|
|
pre-configure:
|
2001-02-06 04:16:56 +01:00
|
|
|
cd ${WRKSRC} && ${LOCALBASE}/bin/autoreconf --force
|
2000-08-05 09:31:15 +02:00
|
|
|
|
|
|
|
# we should probably allow the tty to be set in /etc/mk.conf too
|
|
|
|
#
|
|
|
|
post-build:
|
|
|
|
${SED} -e 's|@@PREFIX@@|${PREFIX}|' ${WRKSRC}/examples/apcupsd.conf > \
|
|
|
|
${WRKDIR}/apcupsd.conf
|
|
|
|
${SED} -e 's|@@PREFIX@@|${PREFIX}|' ${FILESDIR}/apcupsd > \
|
|
|
|
${WRKDIR}/apcupsd
|
|
|
|
${SED} -e 's|@@PREFIX@@|${PREFIX}|' ${WRKSRC}/doc/apcupsd.man > \
|
|
|
|
${WRKSRC}/doc/apcupsd.8
|
|
|
|
|
|
|
|
DOCS= README.BackUPS-Pro \
|
|
|
|
README.NEW \
|
|
|
|
README.NewerBackUPS-Pro \
|
|
|
|
README.Share-UPS \
|
|
|
|
README.SmartUPS-VS \
|
|
|
|
README.apcaccess \
|
|
|
|
README.autoconfig \
|
|
|
|
README.cable \
|
|
|
|
README.developers \
|
|
|
|
Statement.APCC \
|
|
|
|
minicom.apcupsd \
|
|
|
|
port.gif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/apcupsd.conf ${PREFIX}/share/examples
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/apcupsd ${PREFIX}/etc/rc.d
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/apcupsd
|
|
|
|
.for file in ${DOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${file} ${PREFIX}/share/doc/apcupsd
|
|
|
|
.endfor
|
|
|
|
|
2001-08-01 18:55:38 +02:00
|
|
|
.include "../../devel/gettext-lib/buildlink.mk"
|
2000-01-21 20:15:59 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|