svn commit: r245186 - projects/mtree/share/zoneinfo
Brooks Davis
brooks at FreeBSD.org
Tue Jan 8 22:21:18 UTC 2013
Author: brooks
Date: Tue Jan 8 22:21:17 2013
New Revision: 245186
URL: http://svnweb.freebsd.org/changeset/base/245186
Log:
Compile zoneinfo into a temporary location and use install to install it.
Modified:
projects/mtree/share/zoneinfo/Makefile
Modified: projects/mtree/share/zoneinfo/Makefile
==============================================================================
--- projects/mtree/share/zoneinfo/Makefile Tue Jan 8 22:15:13 2013 (r245185)
+++ projects/mtree/share/zoneinfo/Makefile Tue Jan 8 22:21:17 2013 (r245186)
@@ -48,13 +48,39 @@ TZFILES+= backward systemv
TZFILES:= ${TZFILES:S/^/${CONTRIBDIR}/}
-all: yearistype
+TZBUILDDIR= ${.OBJDIR}/builddir
+TZBUILDSUBDIRS= \
+ Africa \
+ America/Argentina \
+ America/Indiana \
+ America/Kentucky \
+ America/North_Dakota \
+ Antarctica \
+ Arctic \
+ Asia \
+ Atlantic \
+ Australia \
+ Etc \
+ Europe \
+ Indian \
+ Pacific \
+ SystemV
-beforeinstall:
+all: zoneinfo
+
+.PHONEY: zoneinfo
+zoneinfo: yearistype ${TDATA}
+ mkdir -p ${TZBUILDDIR}
+ cd ${TZBUILDDIR}; mkdir -p ${TZBUILDSUBDIRS}
umask 022; cd ${.CURDIR}; \
- zic -D -d ${DESTDIR}/usr/share/zoneinfo -p ${POSIXRULES} \
- -u ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
+ zic -D -d ${TZBUILDDIR} -p ${POSIXRULES} -m ${NOBINMODE} \
${LEAPFILE} -y ${.OBJDIR}/yearistype ${TZFILES}
+
+beforeinstall:
+ cd ${TZBUILDDIR} && \
+ find . -type f -print | xargs -I _FILE_ ${INSTALL} \
+ -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
+ _FILE_ ${DESTDIR}/usr/share/zoneinfo/_FILE_
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
${CONTRIBDIR}/zone.tab ${DESTDIR}/usr/share/zoneinfo/
More information about the svn-src-projects
mailing list