pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/libtai Actually, this code is public-domain. Res...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/80cbde52d6ee
branches:  trunk
changeset: 364483:80cbde52d6ee
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Mon Jun 26 01:06:07 2017 +0000

description:
Actually, this code is public-domain. Respect PKG_SYSCONFDIR.
Ride previous PKGREVISION bump.

diffstat:

 devel/libtai/Makefile                       |   9 +++++++--
 devel/libtai/distinfo                       |   5 +++--
 devel/libtai/patches/patch-leapsecs.3       |  19 +++++++++++++++++++
 devel/libtai/patches/patch-leapsecs__read.c |  12 +++++++++++-
 4 files changed, 40 insertions(+), 5 deletions(-)

diffs (93 lines):

diff -r a8d1775fd22c -r 80cbde52d6ee devel/libtai/Makefile
--- a/devel/libtai/Makefile     Mon Jun 26 00:53:48 2017 +0000
+++ b/devel/libtai/Makefile     Mon Jun 26 01:06:07 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2017/06/26 00:45:54 schmonz Exp $
+# $NetBSD: Makefile,v 1.13 2017/06/26 01:06:07 schmonz Exp $
 #
 
 DISTNAME=              libtai-0.60
@@ -9,7 +9,7 @@
 MAINTAINER=            schmonz%NetBSD.org@localhost
 HOMEPAGE=              http://cr.yp.to/libtai.html
 COMMENT=               Library for storing and manipulating dates and times
-LICENSE=               djb-nonlicense
+LICENSE=               public-domain
 
 CONFLICTS=             libowfat-[0-9]*
 
@@ -22,6 +22,11 @@
 
 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'
+
 INSTALLATION_DIRS=     bin include lib ${EGDIR}
 INSTALLATION_DIRS+=    ${PKGMANDIR}/man3
 
diff -r a8d1775fd22c -r 80cbde52d6ee devel/libtai/distinfo
--- a/devel/libtai/distinfo     Mon Jun 26 00:53:48 2017 +0000
+++ b/devel/libtai/distinfo     Mon Jun 26 01:06:07 2017 +0000
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.6 2017/06/26 00:53:48 schmonz Exp $
+$NetBSD: distinfo,v 1.7 2017/06/26 01:06:07 schmonz Exp $
 
 SHA1 (libtai-0.60.tar.gz) = f4682fb2a98dd7d434aa0cecd9254a58a0bfd9fb
 RMD160 (libtai-0.60.tar.gz) = 706111781e5e5bd7ae888e3cdc169d1d8d29de6f
 SHA512 (libtai-0.60.tar.gz) = e3e6e3e46f3cb869bcd661b0c87aa63116fb0c795078a4e194cffa7fd5425ae322af2c17e8ef37799dad7bac93a72b2e458e9dbd80d825857403060e71ad26b7
 Size (libtai-0.60.tar.gz) = 17300 bytes
+SHA1 (patch-leapsecs.3) = 537c8c8a03a89b0f8af8d2ecc539e60c7cf15560
 SHA1 (patch-leapsecs.txt) = 957c257bf41fcc50fb8ff7f975bcdbf1d07c6fd9
-SHA1 (patch-leapsecs__read.c) = 0539f385b689c7e7e7e46d734912361c11c276e6
+SHA1 (patch-leapsecs__read.c) = 064ba81ef40d9dd4bd18f9e1064ce2737517f45b
diff -r a8d1775fd22c -r 80cbde52d6ee devel/libtai/patches/patch-leapsecs.3
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libtai/patches/patch-leapsecs.3     Mon Jun 26 01:06:07 2017 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-leapsecs.3,v 1.1 2017/06/26 01:06:08 schmonz Exp $
+
+Respect PKG_SYSCONFDIR.
+
+--- leapsecs.3.orig    1998-10-13 16:52:20.000000000 +0000
++++ leapsecs.3
+@@ -52,10 +52,10 @@ uses a leap-second table read from disk.
+ 
+ .B leapsecs_read
+ reads the leap-second table from
+-.BR /etc/leapsecs.dat .
++.BR @PKG_SYSCONFDIR@/leapsecs.dat .
+ It returns 0 on success, -1 on error.
+ If
+-.B /etc/leapsecs.dat
++.B @PKG_SYSCONFDIR@/leapsecs.dat
+ does not exist,
+ .B leapsecs_read
+ treats it as an empty file.
diff -r a8d1775fd22c -r 80cbde52d6ee devel/libtai/patches/patch-leapsecs__read.c
--- a/devel/libtai/patches/patch-leapsecs__read.c       Mon Jun 26 00:53:48 2017 +0000
+++ b/devel/libtai/patches/patch-leapsecs__read.c       Mon Jun 26 01:06:07 2017 +0000
@@ -1,6 +1,7 @@
-$NetBSD: patch-leapsecs__read.c,v 1.1 2017/06/26 00:53:48 schmonz Exp $
+$NetBSD: patch-leapsecs__read.c,v 1.2 2017/06/26 01:06:08 schmonz Exp $
 
 #include <unistd.h> in leapsecs_read.c so we can read leapsecs.dat.
+Respect PKG_SYSCONFDIR.
 
 --- leapsecs_read.c.orig       1998-10-13 16:52:20.000000000 +0000
 +++ leapsecs_read.c
@@ -12,3 +13,12 @@
  extern int errno;
  #include "tai.h"
  #include "leapsecs.h"
+@@ -18,7 +19,7 @@ int leapsecs_read()
+   int i;
+   struct tai u;
+ 
+-  fd = open("/etc/leapsecs.dat",O_RDONLY | O_NDELAY);
++  fd = open("@PKG_SYSCONFDIR@/leapsecs.dat",O_RDONLY | O_NDELAY);
+   if (fd == -1) {
+     if (errno != ENOENT) return -1;
+     if (leapsecs) free(leapsecs);



Home | Main Index | Thread Index | Old Index