6e0c050321
makeinfo if no native makeinfo executable exists. Honor TEXINFO_REQD when determining whether the native makeinfo can be used. * Remove USE_MAKEINFO and replace it with USE_TOOLS+=makeinfo. * Get rid of all the "split" argument deduction for makeinfo since the PLIST module already handles varying numbers of split info files correctly. NOTE: Platforms that have "makeinfo" in the base system should check that the makeinfo entries of pkgsrc/mk/tools.${OPSYS}.mk are correct.
43 lines
1.2 KiB
Text
43 lines
1.2 KiB
Text
# $NetBSD: Makefile.common,v 1.11 2006/03/05 16:27:27 jlam Exp $
|
|
|
|
DISTNAME= mydns-1.1.0
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://mydns.bboy.net/download/
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
MAINTAINER= ghen@NetBSD.org
|
|
HOMEPAGE= http://mydns.bboy.net/
|
|
|
|
GNU_CONFIGURE= YES
|
|
USE_TOOLS+= makeinfo
|
|
USE_PKGLOCALEDIR= YES
|
|
|
|
CONFIGURE_ARGS+= --with-confdir=${PKG_SYSCONFDIR:Q}
|
|
|
|
MYDNS_USER?= mydns
|
|
MYDNS_GROUP?= mydns
|
|
MYDNS_PERMS= ${ROOT_USER} ${ROOT_GROUP} 600
|
|
|
|
BUILD_DEFS+= MYDNS_USER MYDNS_GROUP
|
|
|
|
SUBST_CLASSES+= user
|
|
SUBST_STAGE.user= pre-build
|
|
SUBST_FILES.user= src/mydns/conf.c
|
|
SUBST_SED.user= -e 's/%%MYDNS_USER%%/${MYDNS_USER}/'
|
|
SUBST_SED.user+= -e 's/%%MYDNS_GROUP%%/${MYDNS_GROUP}/'
|
|
|
|
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
|
|
CONF_FILES_PERMS= ${EGDIR}/mydns.conf ${PKG_SYSCONFDIR}/mydns.conf ${MYDNS_PERMS}
|
|
RCD_SCRIPTS= mydns
|
|
|
|
PKG_GROUPS= ${MYDNS_GROUP}
|
|
PKG_USERS= ${MYDNS_USER}:${MYDNS_GROUP}::MyDNS\ user
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${EGDIR}
|
|
${WRKSRC}/src/mydns/mydns --dump-config > ${EGDIR}/mydns.conf
|
|
${CHMOD} 0600 ${EGDIR}/mydns.conf
|
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|