[BACK]Return to Makefile.common CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / net / mydns-pgsql

File: [cvs.NetBSD.org] / pkgsrc / net / mydns-pgsql / Makefile.common (download)

Revision 1.4, Mon Dec 5 23:55:14 2005 UTC (17 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.3: +2 -2 lines

Ran "pkglint --autofix", which corrected some of the quoting issues in
CONFIGURE_ARGS.

# $NetBSD: Makefile.common,v 1.4 2005/12/05 23:55:14 rillig Exp $

DISTNAME=	mydns-1.0.0
CATEGORIES=	net
MASTER_SITES=	http://mydns.bboy.net/download/
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	geert.hendrickx@ua.ac.be
HOMEPAGE=	http://mydns.bboy.net/

GNU_CONFIGURE=	YES
USE_PKGLOCALEDIR=	YES
USE_PKGINSTALL=	YES

CONFIGURE_ARGS+=	--with-confdir=${PKG_SYSCONFDIR:Q}

MYDNS_USER?=	mydns
MYDNS_GROUP?=	mydns
MYDNS_PERMS=	${ROOT_USER} ${ROOT_GROUP} 600

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"