pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/libtai Having leapsecs.dat is helpful for accura...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c1b38aa4f134
branches:  trunk
changeset: 327844:c1b38aa4f134
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Thu Jan 10 03:12:46 2019 +0000

description:
Having leapsecs.dat is helpful for accuracy iff /etc/localtime is TAI,
which is not true of most systems. Add 'tai-system-clock' option, off by
default, that installs leapsecs.dat in ${PKG_SYSCONFDIR} and also
depends on leapsunpack for easy updating by the sysadmin.

Bump PKGREVISION.

diffstat:

 devel/libtai/Makefile   |   7 +++----
 devel/libtai/options.mk |  11 +++++++++++
 2 files changed, 14 insertions(+), 4 deletions(-)

diffs (45 lines):

diff -r 3728b7f21e02 -r c1b38aa4f134 devel/libtai/Makefile
--- a/devel/libtai/Makefile     Thu Jan 10 02:50:15 2019 +0000
+++ b/devel/libtai/Makefile     Thu Jan 10 03:12:46 2019 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.15 2019/01/08 03:57:11 schmonz Exp $
+# $NetBSD: Makefile,v 1.16 2019/01/10 03:12:46 schmonz Exp $
 #
 
 DISTNAME=              libtai-0.60
-PKGREVISION=           6
+PKGREVISION=           7
 CATEGORIES=            devel
 MASTER_SITES=          http://cr.yp.to/libtai/
 
@@ -16,14 +16,13 @@
 DJB_RESTRICTED=                NO
 
 EGDIR=                 share/examples/${PKGBASE}
-CONF_FILES+=           ${EGDIR}/leapsecs.dat ${PKG_SYSCONFDIR}/leapsecs.dat
 
 SUBST_FILES.djbware+=  leapsecs_read.c
 
 SUBST_CLASSES+=                paths
 SUBST_STAGE.paths=     do-configure
 SUBST_FILES.paths=     leapsecs.3 leapsecs_read.c
-SUBST_SED.paths=       -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR:Q},g'
+SUBST_VARS.paths=      PKG_SYSCONFDIR
 
 INSTALLATION_DIRS=     bin include lib ${EGDIR}
 INSTALLATION_DIRS+=    ${PKGMANDIR}/man3
diff -r 3728b7f21e02 -r c1b38aa4f134 devel/libtai/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libtai/options.mk   Thu Jan 10 03:12:46 2019 +0000
@@ -0,0 +1,11 @@
+# $NetBSD: options.mk,v 1.1 2019/01/10 03:12:46 schmonz Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.libtai
+PKG_SUPPORTED_OPTIONS+=        tai-system-clock
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mtai-system-clock)
+CONF_FILES+=           ${EGDIR}/leapsecs.dat ${PKG_SYSCONFDIR}/leapsecs.dat
+DEPENDS+=              leapsunpack-[0-9]*:../../time/leapsunpack
+.endif



Home | Main Index | Thread Index | Old Index