summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Sutter <phil.sutter@viprinet.com>2011-01-19 11:46:27 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-01-20 14:00:28 +0100
commit9739631579b741dabcaf335ee3657913bb5324c2 (patch)
treee5cda99efd307b7e2b8d9ade39936d1cbd6abb6f
parent74d949cb06d5e071cd369ab89b1f09bd0e753ab9 (diff)
port tzdata/tzcode
Signed-off-by: Phil Sutter <phil.sutter@viprinet.com>
-rw-r--r--package/tzdata/Makefile48
1 files changed, 48 insertions, 0 deletions
diff --git a/package/tzdata/Makefile b/package/tzdata/Makefile
new file mode 100644
index 000000000..fd496e883
--- /dev/null
+++ b/package/tzdata/Makefile
@@ -0,0 +1,48 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= tzdata
+PKG_VERSION:= 2010o
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 5cae5c56fad81dc29f8fcd933a05768e a7a776a5713831993e814fe0c05f9fd5
+PKG_DESCR:= Timezone data (/usr/share/zoneinfo)
+PKG_SECTION:= utils
+PKG_URL:= ftp://elsie.nci.nih.gov/pub/
+PKG_SITES:= ftp://elsie.nci.nih.gov/pub/
+# Note that tzcode does NOT have the same version as tzdata does :[
+DISTFILES:= ${PKG_NAME}${PKG_VERSION}.tar.gz tzcode2010n.tar.gz
+# both archives do not extract into subdirectories
+WRKDIST= ${WRKDIR}
+
+# no use for tzselect, since that is a ksh-script
+PKG_SUBPKGS:= TZDATA ZDUMP ZIC DATE
+PKGSD_ZDUMP:= timezone file dumper
+PKGSD_ZIC:= timezone file compiler
+PKGSD_DATE:= famous date utility
+
+include $(TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,TZDATA,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,ZDUMP,zdump,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_ZDUMP},${PKG_SECTION}))
+$(eval $(call PKG_template,ZIC,zic,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_ZIC},${PKG_SECTION}))
+$(eval $(call PKG_template,DATE,date,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_DATE},${PKG_SECTION}))
+
+CONFIG_STYLE:= manual
+XAKE_FLAGS+= TOPDIR="${WRKINST}" TZDIR="${WRKINST}/usr/share/zoneinfo" cc="${TARGET_CC}"
+# the uppercase targets enable building and installation of the date utility
+ALL_TARGET:= ALL
+INSTALL_TARGET:= INSTALL
+
+post-install:
+ $(INSTALL_DIR) $(IDIR_TZDATA)/usr/share
+ $(CP) $(WRKINST)/usr/share/zoneinfo $(IDIR_TZDATA)/usr/share
+ ${INSTALL_DIR} ${IDIR_ZDUMP}/usr/sbin
+ ${INSTALL_BIN} ${WRKINST}/etc/zdump ${IDIR_ZDUMP}/usr/sbin/
+ ${INSTALL_DIR} ${IDIR_ZIC}/usr/sbin
+ ${INSTALL_BIN} ${WRKINST}/etc/zic ${IDIR_ZIC}/usr/sbin/
+ ${INSTALL_DIR} ${IDIR_DATE}/usr/bin
+ ${INSTALL_BIN} ${WRKINST}/bin/date ${IDIR_DATE}/usr/bin/
+
+include ${TOPDIR}/mk/pkg-bottom.mk