2006-02-06 00:08:03 +01:00
|
|
|
# $NetBSD: Makefile,v 1.22 2006/02/05 23:10:23 joerg Exp $
|
2002-03-23 00:01:52 +01:00
|
|
|
|
2004-11-30 12:26:59 +01:00
|
|
|
DISTNAME= chrony-1.20
|
2006-02-06 00:08:03 +01:00
|
|
|
PKGREVISION= 3
|
2002-03-23 00:01:52 +01:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= ftp://chrony.sunsite.dk/projects/chrony/
|
|
|
|
|
2003-07-18 00:50:55 +02:00
|
|
|
MAINTAINER= hannken@NetBSD.org
|
2002-10-23 04:15:11 +02:00
|
|
|
HOMEPAGE= http://chrony.sunsite.dk/index.php
|
2002-03-23 00:01:52 +01:00
|
|
|
COMMENT= Daemon for maintaining the accuracy of computer clocks
|
|
|
|
|
2005-05-22 22:07:36 +02:00
|
|
|
USE_TOOLS+= gmake
|
2002-03-23 00:01:52 +01:00
|
|
|
HAS_CONFIGURE= YES
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX:Q}
|
2002-03-23 00:01:52 +01:00
|
|
|
|
2005-06-17 06:49:45 +02:00
|
|
|
EGDIR= ${PREFIX}/share/examples/chrony
|
2002-03-23 00:01:52 +01:00
|
|
|
EGFILES= chrony.conf.example chrony.keys.example
|
|
|
|
RCD_SCRIPTS= chronyd
|
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
MAKE_ENV+= INSTALL_PROGRAM=${INSTALL_PROGRAM:Q}
|
|
|
|
MAKE_ENV+= INSTALL_DATA=${INSTALL_DATA:Q}
|
|
|
|
MAKE_ENV+= INSTALL_MAN=${INSTALL_MAN:Q}
|
2004-11-30 12:26:59 +01:00
|
|
|
|
2006-01-08 14:27:53 +01:00
|
|
|
SUBST_CLASSES+= paths
|
|
|
|
SUBST_FILES.paths= ${EGFILES:S/^/examples\//} chrony.conf.5 chronyd.8
|
|
|
|
SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g'
|
|
|
|
SUBST_SED.paths+= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g'
|
|
|
|
SUBST_STAGE.paths= post-patch
|
2002-03-23 00:01:52 +01:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${EGDIR}
|
|
|
|
for file in ${EGFILES}; do \
|
2006-01-08 14:27:53 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/$${file} \
|
2002-03-23 00:01:52 +01:00
|
|
|
${EGDIR}/$${file}; \
|
|
|
|
done
|
|
|
|
|
2004-04-25 10:11:38 +02:00
|
|
|
.include "../../devel/readline/buildlink3.mk"
|
|
|
|
.include "../../devel/ncurses/buildlink3.mk"
|
2002-03-23 00:01:52 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|