pkgsrc/net/ddclient/Makefile
jlam d7f69e47ce Instead of including bsd.pkg.install.mk directly in a package Makefile,
have it be automatically included by bsd.pkg.mk if USE_PKGINSTALL is set
to "YES".  This enforces the requirement that bsd.pkg.install.mk be
included at the end of a package Makefile.  Idea suggested by Julio M.
Merino Vidal <jmmv at menta.net>.
2003-01-28 22:03:00 +00:00

44 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.11 2003/01/28 22:03:50 jlam Exp $
DISTNAME= ddclient-3.6.2
CATEGORIES= net
MASTER_SITES= ${HOMEPAGE}
MAINTAINER= hubertf@netbsd.org
HOMEPAGE= http://burry.ca:4141/ddclient/
COMMENT= Client to update dynamic DNS entries
USE_BUILDLINK2= YES
USE_PKGINSTALL= YES
DOCDIR= ${PREFIX}/share/doc/ddclient
EGDIR= ${PREFIX}/share/examples/ddclient
RCD_SCRIPTS= ddclient
CONF_FILES_PERMS= ${EGDIR}/sample-etc_ddclient.conf \
${PKG_SYSCONFDIR}/ddclient.conf \
${ROOT_USER} ${ROOT_GROUP} 0600
do-configure:
cd ${WRKSRC}; for file in ddclient; do \
${SED} -e "s|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g" \
-e "s|@PERL5@|${PERL5}|g" \
$${file} > $${file}.fixed; \
if [ -x $${file} ]; then \
${CHMOD} +x $${file}.fixed; \
fi; \
${MV} -f $${file}.fixed $${file}; \
done
do-build: # empty
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/ddclient ${PREFIX}/sbin
${INSTALL_DATA_DIR} ${DOCDIR} ${EGDIR}
${INSTALL_DATA} ${WRKSRC}/COPYING ${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/COPYRIGHT ${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/README.cisco ${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/sample-* ${EGDIR}
.include "../../lang/perl5/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"