dc9594e09d
automatically detects whether we want the pkginstall machinery to be used by the package Makefile.
38 lines
977 B
Makefile
38 lines
977 B
Makefile
# $NetBSD: Makefile,v 1.19 2005/12/29 06:22:16 jlam Exp $
|
|
#
|
|
|
|
DISTNAME= bkpupsd-2.1.2
|
|
PKGREVISION= 4
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= ftp://ftp.jone-system.com/pub/misc/ \
|
|
ftp://ftp.back-street.net/pub/misc/
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
MAINTAINER= taca@NetBSD.org
|
|
HOMEPAGE= # not exist
|
|
COMMENT= Simple UPS daemon for BK-Pro, BK series and FREQUPS F series
|
|
|
|
# Original program assumes BSD code base.
|
|
ONLY_FOR_PLATFORM= NetBSD-*-*
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
DOCDIR= ${PREFIX}/share/doc/bkpupsd
|
|
MAKE_ENV+= DEFAULT_DEVICE=${DEFAULT_SERIAL_DEVICE:Q} DOCDIR=${DOCDIR:Q} \
|
|
RCD_SCRIPTS_EXAMPLEDIR=${RCD_SCRIPTS_EXAMPLEDIR:Q}
|
|
|
|
MESSAGE_SUBST+= DOCDIR=${DOCDIR}
|
|
|
|
EGDIR= ${PREFIX}/share/examples/bkpupsd
|
|
CONF_FILES= ${EGDIR}/upstab ${PKG_SYSCONFDIR}/upstab
|
|
|
|
RCD_SCRIPTS= bkpupsd
|
|
|
|
pre-install:
|
|
${INSTALL_DATA_DIR} ${DOCDIR}
|
|
${INSTALL_DATA_DIR} ${EGDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/README.ja ${DOCDIR}
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|