wok-current view tzdata/receipt @ rev 17195

bash: apply *all* security fixes
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Oct 08 14:52:55 2014 +0200 (2014-10-08)
parents eb6dc9a5f72d
children 8c0bb1fa7d90
line source
1 # SliTaz package receipt.
3 PACKAGE="tzdata"
4 VERSION="2014h"
5 CATEGORY="base-system"
6 SHORT_DESC="Time Zone Database"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="PublicDomain"
9 WEB_SITE="http://www.iana.org/time-zones"
10 TARBALL="$PACKAGE$VERSION.tar.gz"
11 WGET_URL="ftp://ftp.iana.org/tz/releases/$TARBALL"
12 DEPENDS="glibc"
13 BUILD_DEPENDS="glibc-dev"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 ZONEINFO=$install/usr/share/zoneinfo
19 mkdir -p $ZONEINFO/posix $ZONEINFO/right
21 tzs="etcetera southamerica northamerica europe africa antarctica asia \
22 australasia backward pacificnew systemv"
23 zic -L /dev/null -d $ZONEINFO -y "sh yearistype.sh" $tzs
24 zic -L /dev/null -d $ZONEINFO/posix -y "sh yearistype.sh" $tzs
25 zic -L leapseconds -d $ZONEINFO/right -y "sh yearistype.sh" $tzs
27 cp -a $src/zone.tab $src/zone1970.tab $src/iso3166.tab $ZONEINFO
28 zic -d $ZONEINFO -p America/New_York
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 cp -a $install/* $fs
36 . $WOK/slitaz-i18n/stuff/locale-pack.conf
37 for locale in $LOCALE_PACK; do
38 echo "* Removing files provided by locale-$locale..."
39 files=$(cat $WOK/locale-$locale/taz/locale-$locale-*/files.list | \
40 grep /usr/share/zoneinfo/)
41 for file in $files; do
42 [ -e $fs/$file ] && rm -f $fs$file
43 done
44 done
45 }