Import of pkgsrc-2016Q3

This commit is contained in:
2016-10-14 07:49:11 +02:00
committed by Lionel Sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949749 additions and 377083 deletions

View File

@@ -1,13 +1,15 @@
# $NetBSD: Makefile,v 1.78 2015/08/18 07:31:17 wiz Exp $
# $NetBSD: Makefile,v 1.83 2016/08/03 10:23:21 adam Exp $
DISTNAME= apcupsd-3.14.9
PKGREVISION= 11
DISTNAME= apcupsd-3.14.13r2365
PKGREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=apcupsd/}
#MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=apcupsd/}
MASTER_SITES= ${MASTER_SITE_LOCAL}
MAINTAINER= bouyer@NetBSD.org
HOMEPAGE= http://www.apcupsd.org/
COMMENT= UPS power management for APCC Products
LICENSE= gnu-gpl-v2
USE_TOOLS+= gmake msgfmt sh makedepend
USE_LANGUAGES= c c++
@@ -15,6 +17,7 @@ USE_LANGUAGES= c c++
GNU_CONFIGURE= yes
PKG_SYSCONFSUBDIR= apcupsd
WRKSRC= ${WRKDIR}/apcupsd
.include "options.mk"
@@ -34,8 +37,6 @@ PKG_SYSCONFSUBDIR= apcupsd
CONFIGURE_ARGS+= --enable-net # enable NIS network driver
CONFIGURE_ARGS+= --enable-usb # enable USB network driver
CONFIGURE_ARGS+= --with-catgets # use catgets functions
CONFIGURE_ARGS+= --enable-nls # i18n support
CONFIGURE_ARGS+= --enable-snmp # enable SNMP driver
CONFIGURE_ARGS+= --with-lock-dir=${VARBASE}/spool/lock
# XXX is this supposed to be the full filename?
@@ -51,6 +52,8 @@ CONFIGURE_ARGS+= --sbindir=${PREFIX}/sbin
CONFIGURE_ENV+= SCRIPTSHELL=${TOOLS_SH:Q}
CONFIGURE_ENV+= ac_cv_path_MAKE=${MAKE:Q} LD=${CXX}
CONFIGURE_ARGS.NetBSD+= ac_cv_path_SHUTDOWN=/sbin/shutdown
EGDIR= ${PREFIX}/share/examples/apcupsd
CONF_FILES_PERMS+= ${EGDIR}/apcupsd.conf ${PKG_SYSCONFDIR}/apcupsd.conf ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 644
@@ -65,13 +68,12 @@ CONF_FILES_PERMS+= ${EGDIR}/onbattery ${PKG_SYSCONFDIR}/onbattery ${REAL_ROOT_US
CONF_FILES_PERMS+= ${EGDIR}/apccontrol ${PKG_SYSCONFDIR}/apccontrol ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755
RCD_SCRIPTS= apcupsd
PLATFORM_SUBDIR=${OPSYS:tl}
.if ${OPSYS} == "DragonFly"
PLATFORM_SUBDIR=netbsd
.endif
.if ${OPSYS} == "SunOS"
PLATFORM_SUBDIR=sun
.endif
OPSYSVARS+= PLATFORM_SUBDIR
PLATFORM_SUBDIR.DragonFly= netbsd
PLATFORM_SUBDIR.SunOS= sun
PLATFORM_SUBDIR.*= ${OPSYS:tl}
RCD_SCRIPT_SRC.apcupsd= ${WRKSRC}/platforms/${PLATFORM_SUBDIR}/apcupsd
EGFILES= ${PLATFORM_SUBDIR}/apccontrol etc/changeme etc/commfailure etc/commok \
@@ -91,9 +93,7 @@ SUBST_MESSAGE.strip= Fixing conflicting STRIP variable name
# XXX we should probably allow the tty to be set in /etc/mk.conf too
#
HTMLDOCS= apcupsd.gif bclogo.gif bugs.html index.html license.html \
lists.html mail16d.png support.html systems.html
HTMLMANUALS= manual.html apcupsd.png charging.png commlost.png \
HTMLDOCS= manual.html apcupsd.png charging.png commlost.png \
main_configs.png multimon.png onbatt.png online.png status.png \
thanks.png wininstall6.png
@@ -107,12 +107,8 @@ post-install:
${DESTDIR}${PREFIX}/share/examples/apcupsd
.endfor
.for file in ${HTMLDOCS}
${INSTALL_DATA} ${WRKSRC}/doc/home-page/${file} \
${DESTDIR}${PREFIX}/share/doc/html/apcupsd
.endfor
.for file in ${HTMLMANUALS}
${INSTALL_DATA} ${WRKSRC}/doc/manual/${file} \
${DESTDIR}${PREFIX}/share/doc/html/apcupsd/manual
${DESTDIR}${PREFIX}/share/doc/html/apcupsd
.endfor
.include "../../devel/gettext-lib/buildlink3.mk"