summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/libtai/Makefile9
-rw-r--r--devel/libtai/files/leapsecs-update.txt3
2 files changed, 11 insertions, 1 deletions
diff --git a/devel/libtai/Makefile b/devel/libtai/Makefile
index a996d3eb8b57..adcbabb90204 100644
--- a/devel/libtai/Makefile
+++ b/devel/libtai/Makefile
@@ -7,7 +7,7 @@
PORTNAME= libtai
PORTVERSION= 0.60
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= http://cr.yp.to/libtai/ \
ftp://ftp.sunsite.auc.dk/disk1/qmail/ \
@@ -40,6 +40,8 @@ do-configure:
@${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc
@${ECHO_CMD} "${CC} -s" > ${WRKSRC}/conf-ld
@${ECHO_CMD} -fPIC -DPIC > ${WRKSRC}/conf-ccso
+# update leap seconds table
+ @${CAT} ${FILESDIR}/leapsecs-update.txt >> ${WRKSRC}/leapsecs.txt
pre-install:
# correct header locations inside files
@@ -48,6 +50,11 @@ pre-install:
${WRKSRC}/${file}
.endfor
+post-build:
+ @${ENV} LD_LIBRARY_PATH=${WRKSRC} \
+ ${WRKSRC}/leapsecs < ${WRKSRC}/leapsecs.txt > \
+ ${WRKSRC}/leapsecs.dat
+
do-install:
${INSTALL} ${COPY} -o ${SHAREOWN} -g ${BINGRP} -m 644 \
${WRKSRC}/leapsecs.dat ${PREFIX}/etc
diff --git a/devel/libtai/files/leapsecs-update.txt b/devel/libtai/files/leapsecs-update.txt
new file mode 100644
index 000000000000..98b4edbbe934
--- /dev/null
+++ b/devel/libtai/files/leapsecs-update.txt
@@ -0,0 +1,3 @@
+# Under a BSDL license. Copyright by Mario S F Ferreira <lioux@FreeBSD.org>
+# $FreeBSD$
++2005-12-31