# $NetBSD: Makefile,v 1.13 2004/11/30 11:26:59 hannken Exp $ DISTNAME= chrony-1.20 CATEGORIES= net MASTER_SITES= ftp://chrony.sunsite.dk/projects/chrony/ MAINTAINER= hannken@NetBSD.org HOMEPAGE= http://chrony.sunsite.dk/index.php COMMENT= Daemon for maintaining the accuracy of computer clocks USE_BUILDLINK3= YES USE_PKGINSTALL= YES USE_GNU_TOOLS+= make HAS_CONFIGURE= YES CONFIGURE_ARGS+= --prefix=${PREFIX} EGDIR= ${LOCALBASE}/share/examples/chrony EGFILES= chrony.conf.example chrony.keys.example RCD_SCRIPTS= chronyd MAKE_ENV+= INSTALL_PROGRAM="${INSTALL_PROGRAM}" MAKE_ENV+= INSTALL_DATA="${INSTALL_DATA}" MAKE_ENV+= INSTALL_MAN="${INSTALL_MAN}" pre-install: for file in ${EGFILES}; do \ ${SED} ${FILES_SUBST_SED} \ ${WRKSRC}/examples/$${file} > \ ${WRKDIR}/$${file}; \ done post-install: ${INSTALL_DATA_DIR} ${EGDIR} for file in ${EGFILES}; do \ ${INSTALL_DATA} ${WRKDIR}/$${file} \ ${EGDIR}/$${file}; \ done .include "../../devel/readline/buildlink3.mk" .include "../../devel/ncurses/buildlink3.mk" .include "../../mk/bsd.pkg.mk"