From 7257c26a5d2d06fa95ebfdfa650e793d52fadbfb Mon Sep 17 00:00:00 2001 From: schmonz Date: Wed, 30 Jul 2008 13:59:25 +0000 Subject: Initial import of leapsunpack, a program to convert D. J. Bernstein's compressed leapsecond table into a viable leapsecs.txt file. It is designed to augment D. J. Bernstein's libtai package. D. J. Bernstein! --- time/leapsunpack/DESCR | 3 +++ time/leapsunpack/Makefile | 30 ++++++++++++++++++++++++++++++ time/leapsunpack/PLIST | 5 +++++ time/leapsunpack/distinfo | 6 ++++++ time/leapsunpack/patches/patch-aa | 12 ++++++++++++ 5 files changed, 56 insertions(+) create mode 100644 time/leapsunpack/DESCR create mode 100644 time/leapsunpack/Makefile create mode 100644 time/leapsunpack/PLIST create mode 100644 time/leapsunpack/distinfo create mode 100644 time/leapsunpack/patches/patch-aa (limited to 'time') diff --git a/time/leapsunpack/DESCR b/time/leapsunpack/DESCR new file mode 100644 index 00000000000..ba31fa419f0 --- /dev/null +++ b/time/leapsunpack/DESCR @@ -0,0 +1,3 @@ +leapsunpack is a program to convert D. J. Bernstein's compressed +leapsecond table into a viable leapsecs.txt file. It is designed +to augment D. J. Bernstein's libtai package. diff --git a/time/leapsunpack/Makefile b/time/leapsunpack/Makefile new file mode 100644 index 00000000000..39bec4067fa --- /dev/null +++ b/time/leapsunpack/Makefile @@ -0,0 +1,30 @@ +# $NetBSD: Makefile,v 1.1.1.1 2008/07/30 13:59:25 schmonz Exp $ +# + +DISTNAME= leapsunpack-0.05 +CATEGORIES= time +MASTER_SITES= ${HOMEPAGE} + +MAINTAINER= schmonz@NetBSD.org +HOMEPAGE= http://su.bze.ro/software/ +COMMENT= Creates libtai leapsecs.dat from compressed table + +DEPENDS+= libtai-[0-9]*:../../devel/libtai + +DJB_RESTRICTED= no + +SUBST_CLASSES+= files +SUBST_STAGE.files= do-configure +SUBST_FILES.files= leapsinstall.sh +SUBST_SED.files= -e "s|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g" +SUBST_MESSAGE.files= Fixing configuration files. + +INSTALLATION_DIRS= bin share/doc/${PKGBASE} + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/leapsunpack ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/leapsinstall ${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/share/doc/${PKGBASE} + +.include "../../mk/djbware.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/time/leapsunpack/PLIST b/time/leapsunpack/PLIST new file mode 100644 index 00000000000..c82bfb93eba --- /dev/null +++ b/time/leapsunpack/PLIST @@ -0,0 +1,5 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2008/07/30 13:59:25 schmonz Exp $ +bin/leapsinstall +bin/leapsunpack +share/doc/leapsunpack/INSTALL +@dirrm share/doc/leapsunpack diff --git a/time/leapsunpack/distinfo b/time/leapsunpack/distinfo new file mode 100644 index 00000000000..184f300e1d7 --- /dev/null +++ b/time/leapsunpack/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2008/07/30 13:59:25 schmonz Exp $ + +SHA1 (leapsunpack-0.05.tar.gz) = 82b692a5d7473a1f224f931df49b77557ebe1d3f +RMD160 (leapsunpack-0.05.tar.gz) = d7d34129311c01f785b39918ebbfd9bc1d454508 +Size (leapsunpack-0.05.tar.gz) = 28320 bytes +SHA1 (patch-aa) = 09f81e14f3dd2731c48f206e5b7b0d6c756e01bb diff --git a/time/leapsunpack/patches/patch-aa b/time/leapsunpack/patches/patch-aa new file mode 100644 index 00000000000..fb539e55ae4 --- /dev/null +++ b/time/leapsunpack/patches/patch-aa @@ -0,0 +1,12 @@ +$NetBSD: patch-aa,v 1.1.1.1 2008/07/30 13:59:25 schmonz Exp $ + +--- leapsinstall.sh.orig 2003-12-30 16:18:29.000000000 -0500 ++++ leapsinstall.sh +@@ -1,4 +1,4 @@ + umask 022 +-HOME/leapsunpack -a | HOME/leapsecs > ${1-/etc/leapsecs.dat}.tmp +-mv ${1-/etc/leapsecs.dat}.tmp ${1-/etc/leapsecs.dat} +-chmod 0644 ${1-/etc/leapsecs.dat} ++HOME/leapsunpack -a | HOME/leapsecs > ${1-@PKG_SYSCONFDIR@/leapsecs.dat}.tmp ++mv ${1-@PKG_SYSCONFDIR@/leapsecs.dat}.tmp ${1-@PKG_SYSCONFDIR@/leapsecs.dat} ++chmod 0644 ${1-@PKG_SYSCONFDIR@/leapsecs.dat} -- cgit v1.2.3