2012-10-23 19:18:07 +02:00
|
|
|
# $NetBSD: Makefile,v 1.27 2012/10/23 17:18:14 asau Exp $
|
2002-03-23 00:01:52 +01:00
|
|
|
|
2010-02-26 10:27:43 +01:00
|
|
|
DISTNAME= chrony-1.24
|
2002-03-23 00:01:52 +01:00
|
|
|
CATEGORIES= net
|
2010-02-26 10:27:43 +01:00
|
|
|
MASTER_SITES= http://download.tuxfamily.org/chrony/
|
2002-03-23 00:01:52 +01:00
|
|
|
|
2003-07-18 00:50:55 +02:00
|
|
|
MAINTAINER= hannken@NetBSD.org
|
2010-02-26 10:27:43 +01:00
|
|
|
HOMEPAGE= http://chrony.tuxfamily.org/
|
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
|
2010-02-26 10:27:43 +01:00
|
|
|
BUILD_DEFS+= VARBASE
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX:Q}
|
2010-02-26 10:27:43 +01:00
|
|
|
CONFIGURE_ARGS+= --mandir=${PREFIX:Q}/${PKGMANDIR:Q}
|
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
|
2008-01-05 16:04:57 +01:00
|
|
|
AUTO_MKDIRS= yes
|
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
|
|
|
|
|
2006-01-08 14:27:53 +01:00
|
|
|
SUBST_CLASSES+= paths
|
2010-02-26 10:27:43 +01:00
|
|
|
SUBST_FILES.paths= ${EGFILES:S/^/examples\//} conf.c chrony.conf.5 \
|
|
|
|
chronyd.8
|
2006-01-08 14:27:53 +01:00
|
|
|
SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g'
|
|
|
|
SUBST_SED.paths+= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g'
|
2010-02-26 10:27:43 +01:00
|
|
|
SUBST_SED.paths+= -e 's,@VARBASE@,${VARBASE},g'
|
2006-01-08 14:27:53 +01:00
|
|
|
SUBST_STAGE.paths= post-patch
|
2002-03-23 00:01:52 +01:00
|
|
|
|
|
|
|
post-install:
|
2010-02-26 10:27:43 +01:00
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
|
2002-03-23 00:01:52 +01:00
|
|
|
for file in ${EGFILES}; do \
|
2006-01-08 14:27:53 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/$${file} \
|
2010-02-26 10:27:43 +01:00
|
|
|
${DESTDIR}${EGDIR}/$${file}; \
|
2002-03-23 00:01:52 +01:00
|
|
|
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"
|