]> git.webhop.me Git - bs-cst-neutrino-hd.git/commitdiff
neutrino: activate timezone menu
authorMarkham <markham001@gmx.de>
Sat, 20 Feb 2016 01:14:08 +0000 (02:14 +0100)
committerMarkham <markham001@gmx.de>
Sat, 20 Feb 2016 01:14:08 +0000 (02:14 +0100)
Makefile
make/archives.mk
make/libraries.mk
make/prerequisites.mk
make/versions.mk

index 09e4b7a244589bb37973315fa20239640ab52c02..bd472cc2994a190bda7932887a95432357c4e90a 100755 (executable)
--- a/Makefile
+++ b/Makefile
@@ -176,7 +176,7 @@ neutrino-libs:
 
 # applications.mk
 applications:
-       $(MAKE) $(D)/procps $(D)/busybox $(D)/e2fsprogs $(D)/fbshot $(D)/vsftpd $(D)/mtd-utils $(D)/ntp
+       $(MAKE) $(D)/procps $(D)/busybox $(D)/e2fsprogs $(D)/fbshot $(D)/vsftpd $(D)/mtd-utils $(D)/ntp $(D)/timezone
        if [ $(WIFI) = "yes" ]; then \
                $(MAKE) $(D)/wpa_supplicant; \
        else \
index 7e0dea92fc5d3fbe2ecb60359b00f9859a5cc4a0..7ff466208553992a186aa8512b2b555df4fb40b3 100755 (executable)
@@ -220,6 +220,9 @@ $(ARCHIVE)/unfs3-$(UNFS3_VER).tar.gz:
 $(ARCHIVE)/hd-idle-$(HD_IDLE_VER).tgz:
        $(WGET) http://sources.openelec.tv/mirror/hd-idle/hd-idle-$(HD_IDLE_VER).tgz
 
+$(ARCHIVE)/tzdata$(TZ_VER).tar.gz:
+       $(WGET) ftp://ftp.iana.org/tz/releases/tzdata$(TZ_VER).tar.gz
+
 $(ARCHIVE)/crosstool-1.16.0-downloads.tar.bz2:
        $(WGET) http://www.fhloston-paradise.de/crosstool-ng-1.16.0.tar.bz2
        $(WGET) http://www.fhloston-paradise.de/eglibc-2_13.tar.bz2
index 2c9b86027659047564435f27381a8692885a6108..8f65681d970d3a1e2dd3f5f96097b432bb461d3e 100755 (executable)
@@ -770,3 +770,25 @@ $(D)/libflex: $(ARCHIVE)/flex-$(FLEX_VER).tar.gz
        rm -fr $(TARGETPREFIX)/.remove
        $(REMOVE)/flex-$(FLEX_VER)
        touch $@
+
+$(D)/timezone: find-zic $(ARCHIVE)/tzdata$(TZ_VER).tar.gz
+       $(REMOVE)/timezone $(PKGPREFIX)
+       mkdir $(BUILD_TMP)/timezone $(BUILD_TMP)/timezone/zoneinfo
+       tar -C $(BUILD_TMP)/timezone -xf $(ARCHIVE)/tzdata$(TZ_VER).tar.gz
+       set -e; cd $(BUILD_TMP)/timezone; \
+               unset ${!LC_*}; LANG=POSIX; LC_ALL=POSIX; export LANG LC_ALL; \
+               zic -d zoneinfo.tmp \
+                       europe; \
+               sed -n '/zone=/{s/.*zone="\(.*\)".*$$/\1/; p}' $(PATCHES)/timezone.xml | sort -u | \
+               while read x; do \
+                       find zoneinfo.tmp -type f -name $$x | sort | \
+                       while read y; do \
+                               cp -a $$y zoneinfo/$$x; \
+                       done; \
+                       test -e zoneinfo/$$x || echo "WARNING: timezone $$x not found."; \
+               done; \
+               mv zoneinfo $(TARGETPREFIX)/share/
+       install -m 0644 $(PATCHES)/timezone.xml $(TARGETPREFIX)/etc/
+       $(REMOVE)/timezone
+       touch $@
+
index db023e05308ad1d1725d5e4481cd7ca6ca4f4b66..77ab601f23f286a3d0107ba4b117c04db94554d5 100755 (executable)
@@ -1,5 +1,10 @@
 # makefile for basic prerequisites
 
+find-%:
+       @TOOL=$(patsubst find-%,%,$@); \
+               type -p $$TOOL >/dev/null || \
+               { echo "required tool $$TOOL missing."; false; }
+
 $(SOURCE_DIR)/neutrino-hd:
        mkdir -p $(SOURCE_DIR)
        cd $(SOURCE_DIR) && \
index 4e3377eda7b476bb39eb0cb922d04d229d60a9c0..95c13c0a82e6f9fa5640bee415f8a6711ed244eb 100644 (file)
@@ -78,6 +78,9 @@ PORTMAP_VER=6.0
 SAMBA2_VER = 2.2.12
 SAMBA3_VER = 3.3.9
 
+# timezone files
+TZ_VER=2012b
+
 UNFS3_VER=0.9.22
 
 # ushare; uShare is a UPnP (TM) A/V Media Server.