mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-23 15:31:05 +02:00
Merge pull request #193 from mischief/timezone-data
bump(sys-libs/timezone-data): sync with upstream
This commit is contained in:
commit
71e6fc6679
11
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-libs/timezone-data-2012j
vendored
Normal file
11
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-libs/timezone-data-2012j
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
DEFINED_PHASES=compile config install postinst unpack
|
||||||
|
DESCRIPTION=Timezone data (/usr/share/zoneinfo) and utilities (tzselect/zic/zdump)
|
||||||
|
HOMEPAGE=http://www.iana.org/time-zones http://www.twinsun.com/tz/tz-link.htm
|
||||||
|
IUSE=nls elibc_FreeBSD elibc_glibc
|
||||||
|
KEYWORDS=alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd
|
||||||
|
LICENSE=BSD public-domain
|
||||||
|
RDEPEND=!<sys-libs/glibc-2.3.5
|
||||||
|
SLOT=0
|
||||||
|
SRC_URI=http://www.iana.org/time-zones/repository/releases/tzdata2012j.tar.gz http://www.iana.org/time-zones/repository/releases/tzcode2012j.tar.gz ftp://munnari.oz.au/pub/tzdata2012j.tar.gz ftp://munnari.oz.au/pub/tzcode2012j.tar.gz
|
||||||
|
_eclasses_=eutils 9fb270e417e0e83d64ca52586c4a79de flag-o-matic c263990f1b677b0f0be0a3299f179762 multilib 3bf24e6abb9b76d9f6c20600f0b716bf toolchain-funcs c961250d50160cd37d6b7fd9e8429c92
|
||||||
|
_md5_=2c962d7f2defa9bd787ebc15c47247d0
|
12
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-libs/timezone-data-2013i
vendored
Normal file
12
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-libs/timezone-data-2013i
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
DEFINED_PHASES=compile config install postinst prepare setup
|
||||||
|
DESCRIPTION=Timezone data (/usr/share/zoneinfo) and utilities (tzselect/zic/zdump)
|
||||||
|
EAPI=3
|
||||||
|
HOMEPAGE=http://www.iana.org/time-zones http://www.twinsun.com/tz/tz-link.htm
|
||||||
|
IUSE=nls elibc_FreeBSD elibc_glibc
|
||||||
|
KEYWORDS=~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos
|
||||||
|
LICENSE=BSD public-domain
|
||||||
|
RDEPEND=!<sys-libs/glibc-2.3.5
|
||||||
|
SLOT=0
|
||||||
|
SRC_URI=http://www.iana.org/time-zones/repository/releases/tzdata2013i.tar.gz http://www.iana.org/time-zones/repository/releases/tzcode2013i.tar.gz ftp://munnari.oz.au/pub/oldtz/tzdata2013i.tar.gz ftp://munnari.oz.au/pub/oldtz/tzcode2013i.tar.gz
|
||||||
|
_eclasses_=eutils 9fb270e417e0e83d64ca52586c4a79de flag-o-matic c263990f1b677b0f0be0a3299f179762 multilib 3bf24e6abb9b76d9f6c20600f0b716bf toolchain-funcs c961250d50160cd37d6b7fd9e8429c92
|
||||||
|
_md5_=1c18988c129f749e5a3d8f7e1fe6d1df
|
12
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-libs/timezone-data-2014i-r1
vendored
Normal file
12
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-libs/timezone-data-2014i-r1
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
DEFINED_PHASES=compile config install postinst preinst prepare setup
|
||||||
|
DESCRIPTION=Timezone data (/usr/share/zoneinfo) and utilities (tzselect/zic/zdump)
|
||||||
|
EAPI=4
|
||||||
|
HOMEPAGE=http://www.iana.org/time-zones http://www.twinsun.com/tz/tz-link.htm
|
||||||
|
IUSE=nls right_timezone elibc_FreeBSD elibc_glibc
|
||||||
|
KEYWORDS=alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos
|
||||||
|
LICENSE=BSD public-domain
|
||||||
|
RDEPEND=!sys-libs/glibc[vanilla(+)]
|
||||||
|
SLOT=0
|
||||||
|
SRC_URI=http://www.iana.org/time-zones/repository/releases/tzdata2014i.tar.gz http://www.iana.org/time-zones/repository/releases/tzcode2014i.tar.gz
|
||||||
|
_eclasses_=eutils 9fb270e417e0e83d64ca52586c4a79de flag-o-matic c263990f1b677b0f0be0a3299f179762 multilib 3bf24e6abb9b76d9f6c20600f0b716bf toolchain-funcs c961250d50160cd37d6b7fd9e8429c92
|
||||||
|
_md5_=a064cf794a402a4a28d41203834082e8
|
12
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-libs/timezone-data-2014j
vendored
Normal file
12
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-libs/timezone-data-2014j
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
DEFINED_PHASES=compile config install postinst preinst prepare setup
|
||||||
|
DESCRIPTION=Timezone data (/usr/share/zoneinfo) and utilities (tzselect/zic/zdump)
|
||||||
|
EAPI=4
|
||||||
|
HOMEPAGE=http://www.iana.org/time-zones http://www.twinsun.com/tz/tz-link.htm
|
||||||
|
IUSE=nls right_timezone elibc_FreeBSD elibc_glibc
|
||||||
|
KEYWORDS=alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos
|
||||||
|
LICENSE=BSD public-domain
|
||||||
|
RDEPEND=!sys-libs/glibc[vanilla(+)]
|
||||||
|
SLOT=0
|
||||||
|
SRC_URI=http://www.iana.org/time-zones/repository/releases/tzdata2014j.tar.gz http://www.iana.org/time-zones/repository/releases/tzcode2014j.tar.gz
|
||||||
|
_eclasses_=eutils 9fb270e417e0e83d64ca52586c4a79de flag-o-matic c263990f1b677b0f0be0a3299f179762 multilib 3bf24e6abb9b76d9f6c20600f0b716bf toolchain-funcs c961250d50160cd37d6b7fd9e8429c92
|
||||||
|
_md5_=16ec88961bee8f826b614774bd20ba56
|
12
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-libs/timezone-data-2015a
vendored
Normal file
12
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-libs/timezone-data-2015a
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
DEFINED_PHASES=compile config install postinst preinst prepare setup
|
||||||
|
DESCRIPTION=Timezone data (/usr/share/zoneinfo) and utilities (tzselect/zic/zdump)
|
||||||
|
EAPI=4
|
||||||
|
HOMEPAGE=http://www.iana.org/time-zones http://www.twinsun.com/tz/tz-link.htm
|
||||||
|
IUSE=nls right_timezone elibc_FreeBSD elibc_glibc
|
||||||
|
KEYWORDS=alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos
|
||||||
|
LICENSE=BSD public-domain
|
||||||
|
RDEPEND=!sys-libs/glibc[vanilla(+)]
|
||||||
|
SLOT=0
|
||||||
|
SRC_URI=http://www.iana.org/time-zones/repository/releases/tzdata2015a.tar.gz http://www.iana.org/time-zones/repository/releases/tzcode2015a.tar.gz
|
||||||
|
_eclasses_=eutils 9fb270e417e0e83d64ca52586c4a79de flag-o-matic c263990f1b677b0f0be0a3299f179762 multilib 3bf24e6abb9b76d9f6c20600f0b716bf toolchain-funcs c961250d50160cd37d6b7fd9e8429c92
|
||||||
|
_md5_=7b5848d19589659f6c7eacda05755be2
|
12
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-libs/timezone-data-2015b
vendored
Normal file
12
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-libs/timezone-data-2015b
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
DEFINED_PHASES=compile config install postinst preinst prepare setup
|
||||||
|
DESCRIPTION=Timezone data (/usr/share/zoneinfo) and utilities (tzselect/zic/zdump)
|
||||||
|
EAPI=4
|
||||||
|
HOMEPAGE=http://www.iana.org/time-zones http://www.twinsun.com/tz/tz-link.htm
|
||||||
|
IUSE=nls right_timezone elibc_FreeBSD elibc_glibc
|
||||||
|
KEYWORDS=alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos
|
||||||
|
LICENSE=BSD public-domain
|
||||||
|
RDEPEND=!sys-libs/glibc[vanilla(+)]
|
||||||
|
SLOT=0
|
||||||
|
SRC_URI=http://www.iana.org/time-zones/repository/releases/tzdata2015b.tar.gz http://www.iana.org/time-zones/repository/releases/tzcode2015b.tar.gz
|
||||||
|
_eclasses_=eutils 9fb270e417e0e83d64ca52586c4a79de flag-o-matic c263990f1b677b0f0be0a3299f179762 multilib 3bf24e6abb9b76d9f6c20600f0b716bf toolchain-funcs c961250d50160cd37d6b7fd9e8429c92
|
||||||
|
_md5_=40b5bf568e371825f054499453ffb5ec
|
12
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-libs/timezone-data-2015c
vendored
Normal file
12
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-libs/timezone-data-2015c
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
DEFINED_PHASES=compile config install postinst preinst prepare setup
|
||||||
|
DESCRIPTION=Timezone data (/usr/share/zoneinfo) and utilities (tzselect/zic/zdump)
|
||||||
|
EAPI=4
|
||||||
|
HOMEPAGE=http://www.iana.org/time-zones http://www.twinsun.com/tz/tz-link.htm
|
||||||
|
IUSE=nls right_timezone elibc_FreeBSD elibc_glibc
|
||||||
|
KEYWORDS=~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos
|
||||||
|
LICENSE=BSD public-domain
|
||||||
|
RDEPEND=!sys-libs/glibc[vanilla(+)]
|
||||||
|
SLOT=0
|
||||||
|
SRC_URI=http://www.iana.org/time-zones/repository/releases/tzdata2015c.tar.gz http://www.iana.org/time-zones/repository/releases/tzcode2015c.tar.gz
|
||||||
|
_eclasses_=eutils 9fb270e417e0e83d64ca52586c4a79de flag-o-matic c263990f1b677b0f0be0a3299f179762 multilib 3bf24e6abb9b76d9f6c20600f0b716bf toolchain-funcs c961250d50160cd37d6b7fd9e8429c92
|
||||||
|
_md5_=3668e41906905ef1b9aa4111fd67a2fb
|
12
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-libs/timezone-data-2015c-r1
vendored
Normal file
12
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-libs/timezone-data-2015c-r1
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
DEFINED_PHASES=compile config install postinst preinst prepare
|
||||||
|
DESCRIPTION=Timezone data (/usr/share/zoneinfo) and utilities (tzselect/zic/zdump)
|
||||||
|
EAPI=4
|
||||||
|
HOMEPAGE=http://www.iana.org/time-zones http://www.twinsun.com/tz/tz-link.htm
|
||||||
|
IUSE=nls leaps_timezone elibc_FreeBSD elibc_glibc
|
||||||
|
KEYWORDS=~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos
|
||||||
|
LICENSE=BSD public-domain
|
||||||
|
RDEPEND=!sys-libs/glibc[vanilla(+)]
|
||||||
|
SLOT=0
|
||||||
|
SRC_URI=http://www.iana.org/time-zones/repository/releases/tzdata2015c.tar.gz http://www.iana.org/time-zones/repository/releases/tzcode2015c.tar.gz
|
||||||
|
_eclasses_=eutils 9fb270e417e0e83d64ca52586c4a79de flag-o-matic c263990f1b677b0f0be0a3299f179762 multilib 3bf24e6abb9b76d9f6c20600f0b716bf toolchain-funcs c961250d50160cd37d6b7fd9e8429c92
|
||||||
|
_md5_=012760e26243814da55bfafd8d256c36
|
12
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-libs/timezone-data-2015d
vendored
Normal file
12
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-libs/timezone-data-2015d
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
DEFINED_PHASES=compile config install postinst preinst prepare
|
||||||
|
DESCRIPTION=Timezone data (/usr/share/zoneinfo) and utilities (tzselect/zic/zdump)
|
||||||
|
EAPI=4
|
||||||
|
HOMEPAGE=http://www.iana.org/time-zones http://www.twinsun.com/tz/tz-link.htm
|
||||||
|
IUSE=nls leaps_timezone elibc_FreeBSD elibc_glibc
|
||||||
|
KEYWORDS=~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos
|
||||||
|
LICENSE=BSD public-domain
|
||||||
|
RDEPEND=!sys-libs/glibc[vanilla(+)]
|
||||||
|
SLOT=0
|
||||||
|
SRC_URI=http://www.iana.org/time-zones/repository/releases/tzdata2015d.tar.gz http://www.iana.org/time-zones/repository/releases/tzcode2015d.tar.gz
|
||||||
|
_eclasses_=eutils 9fb270e417e0e83d64ca52586c4a79de flag-o-matic c263990f1b677b0f0be0a3299f179762 multilib 3bf24e6abb9b76d9f6c20600f0b716bf toolchain-funcs c961250d50160cd37d6b7fd9e8429c92
|
||||||
|
_md5_=99d152a7fc64eb273ac2bde563cfee58
|
1396
sdk_container/src/third_party/portage-stable/sys-libs/timezone-data/ChangeLog
vendored
Normal file
1396
sdk_container/src/third_party/portage-stable/sys-libs/timezone-data/ChangeLog
vendored
Normal file
File diff suppressed because it is too large
Load Diff
59
sdk_container/src/third_party/portage-stable/sys-libs/timezone-data/Manifest
vendored
Normal file
59
sdk_container/src/third_party/portage-stable/sys-libs/timezone-data/Manifest
vendored
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
-----BEGIN PGP SIGNED MESSAGE-----
|
||||||
|
Hash: SHA256
|
||||||
|
|
||||||
|
AUX timezone-data-2008h-makefile.patch 4037 SHA256 fc496b869ed6b70c60b0fcdea0a176e31c9405c96e6bf73b5edc26339de66c39 SHA512 85871ce688d529660ad8948ebf73918fdada5d950abbd9f33241d2d89e6df521223f7a1a24369c00b3f7258ce41bf296ee6f04cf2b91d0591d08640d06a6e4d6 WHIRLPOOL ade3e7e17318abf2e4989c4d673f643ebcbd787f26719c22ca0f90ba8b70d293c9f99334f6594fc1eaa2ef233539bed3ff0b5f20d9042b990f5ec4671432a8ee
|
||||||
|
AUX timezone-data-2012a-makefile.patch 4022 SHA256 4bbcd3fa36ee6b2506df766b0f283826fd5bd2402b24aa25845971e8f38b51e2 SHA512 cddf38b690d1631d26f9d338bdf55e48692e240437d999fb494043ae24dd2b3167de9244f94e10605dba990777e20e886ba6f30429a6855286996004551dcc23 WHIRLPOOL dc92fd0dadd20e0f6504c7ce4dd736854e683336e08168f62badcdf6d1730ce830791f10ad71aee614760df4c89f6bf826101df7291994c736022d2d3d9c1d1b
|
||||||
|
AUX timezone-data-2012i-makefile.patch 2977 SHA256 c2ad2ff248962d12a7fdc2689172b7220bbaee52bc846e8f10f5a57a8b6d345e SHA512 2b61ba4791ba9bde7605fadbfed0104a7f862e2907bd067239c7cd1a731b4a85f7597a547290f7c604b6f37972913b9167eb72033f458af047bd0d5a127d463c WHIRLPOOL c60158a1c849ee78bc37ee25bf723688ee107dfc3a8032e42947582be036d8be3eac70abf7fdd8a052dfa284819082019d583c344943220f569ef996bc6507be
|
||||||
|
AUX timezone-data-2013a-makefile.patch 3017 SHA256 33278b69ebeb41523befd2627d4fc3cf0ac84da34b6d49299eb9437722ccc457 SHA512 8d7716ea8bc2e5599220f8aad3cb98efa3c5ede692ea4e32f4ca8dd1310ce7c33f36683916cbc80a440c3b77aeed9286a65ca3cfc4ab965723d40aacdef7fd21 WHIRLPOOL 3ca63c5dcba24f7867d0ff95bae59c0ea5b999f0ac7462fcb35e68c2452e9ab2bae57278c84c85062fa6b262e3ba061af86636f25783a7fdae9ffa93f975a1bc
|
||||||
|
AUX timezone-data-2013d-makefile.patch 3042 SHA256 b138d8ff362fed49af4487de98ebbb0e61dc73612643a800bf1df7a3f443ead4 SHA512 ad09fba6facd4e5fd49b9176f5087669f880e96e904bad23458d280b9846bb9e75c8cb0738d64d886f07047b66b23aa9f3da489f67df1f27dbfe9b6b1e1a1ea3 WHIRLPOOL 503673dabb24e233f554805ceb2cb871870a357e3ff378460f8f72fdae1c46a306703f255de6cfc78e91099f3e275b0108c8c3c6607cc302658c5236750a48bb
|
||||||
|
AUX timezone-data-2013f-makefile.patch 3898 SHA256 7437b00386ee673467e0fa01a0dbae1a3a32d709e444443c1eefd00b890ed725 SHA512 5ab04af020cca764179885f7c7b93402bc16a625a92acdde0e52ba56552aaa04c50723d2e0f98e13d7090a1a34b450818a86119d20301e2b8518bccc0cbdd10f WHIRLPOOL b622f3581078e4c4f2fd908b89eb204056d43aa786f581fedaf299ac498c4b0a8214c7da4534b80d61dc6dd7f8ddb9a7429580c71055c4cee015cba4c72a2d4b
|
||||||
|
AUX timezone-data-2013h-makefile.patch 3745 SHA256 c6ff4692c63998a85fd7639aa6770a0650eedd5646e2f56835dac263426a4368 SHA512 27708eba2dfa0959d178c1a31d3dd5458f3ddcc929723f3516897a2d1418ff2a058270f38322523c52b610659258abe588ab161d6e3e9ccf738e787be4b697f7 WHIRLPOOL 3795a2b6b0752cec93c1277012e2d8b6856ff3b45c18574e89d0e29ab6350921dd134f27a3c0a1de968b71aedddb759a6ccea560c58d0f249b0bf6500864d187
|
||||||
|
AUX timezone-data-2014f-makefile.patch 3750 SHA256 a8d2438e4cd132052acdb4fd17f99e45981f7f278777485cc20eb1b6e78742c9 SHA512 b748790745fca23b34d8c4ad1be453b8111591925f542cae219af37ce1eaf174dfc918d1b4c8cd8d3dd95657a22be7120ebf2f2e7b442f89f59ffb2f80724f07 WHIRLPOOL 5f580beb195124c4e5d9db10336c4c864a24f9abd95447e2f76de2db74909d3b7bd50aaa20341f2741cb7b9665e668fb513a8de9d83138d513ea6972376dfa3c
|
||||||
|
AUX timezone-data-2014g-makefile.patch 3833 SHA256 71eb5fb7a78c6f08d72bd8c69ae06701c064c411708e05101b1fe324f1fafa05 SHA512 fa2edfc02fa0a482709edbcbe255a438973fd38c5ce12873ae366366b4e5d2eab2b79c6881ebaad018a4e1ff553eadbe3df226764e6cf8db128b864a51d32ecd WHIRLPOOL a16c58b755c490ca3c9df3052e4f7291aa91d04fe170f2b14f18d53217eea8adef92222b745682d00d40f59dfbfd08d7fc10d961953149861e96eb419f70f3cd
|
||||||
|
AUX timezone-data-2014h-makefile.patch 3811 SHA256 815932985476d2ff349e7dbbe8f22d136ec753575eca65b676ab6425b0fde0c7 SHA512 0cd2312d526015420a3195658471d1e94da3b7743f8fd7725c968bbff1486f0178314a63eadab8b54fbafea8e149fcd5230efbc837258b6786423134d6a2ee31 WHIRLPOOL e3b34dddbd5cfd055bbf16ecd746c0512c5e210581025c32d0a6db2600d465f3a01cfb05c8183fb8dfa3438c73f2b3acc4d64ca35c327480e64a226ab754be27
|
||||||
|
AUX timezone-data-2015a-makefile.patch 3823 SHA256 bfa72cc46dd00524e2a0f3f89395838b6c0085725d4b0d72799aa0cfe30a01f5 SHA512 b03a3afcfb0ede401aca62ad9fad0bf1fbc61a1d73dc32b1e468ce2e35b96a681a14e22564bafe43301fdf651555357488bafd890aeb9d1eac7713d8da2be839 WHIRLPOOL 950778014c82f9ffc2b576043863a9a3179fa8b6e687524799c78e04b2e098b7171f330142e580867754842c9f53279fbba8f4c7180e1607d7450e9b1f23bf5d
|
||||||
|
AUX timezone-data-2015c-makefile.patch 2638 SHA256 1404c450d67ee867bc551973427f95383b47c7c40098be5c7a99b2f052dba446 SHA512 b0d290045aec46db288be1d0a1edbe8fa55086d401c430dd0c6117901a3b57cab6958e9a548d1a4905ac3489e49c788a39ff80e3dcc0fd087c9a2b627e5696ad WHIRLPOOL 296b0bd1f3e71e56c6862ed3cbfc55a7888f4ae14d584a38236e6a32a6af57189796dd63ffebf048cf79077be80b9d4482085029192891736ef085580bd63d5f
|
||||||
|
DIST tzcode2012j.tar.gz 134654 SHA256 ee4361b3b4ae201a270857c84d0f063c2a2191b3e4cd7414ea4622bb8bae9a82 SHA512 a0182438fedb1d855b52c0734f52bfd4dd3707d65c6f347833d5a68aab132a68f2b77a0e182d7ecfe7c58185245d7181ab01da909c2fdc84b71150c3090382c2 WHIRLPOOL 430e7320976e184753364d034f16109713a350ec0828d864be2f30ce6d29dd403d8f9c25866f828c664f0324f57ad72197fd752ba343f316d80d7c11a1ebdee6
|
||||||
|
DIST tzcode2013i.tar.gz 173169 SHA256 63bba6790afc1cb2ea0af2b998a35fc237e247608140dbe4e08b4216a8c31358 SHA512 863d181339d8b44ae9876a02e436da33b723f81e592a0e0f51f1300a2dac277bc18ed422b8631e27032769620323c94c848f3abc926d8bc28074d3d4b4bb8a28 WHIRLPOOL 9de16a388ac7a1e7965b1aaed4461657a2f822a08fe6c8c5f025bdad6512b53ef0ea6960ef03bc372df3541f9c8588797cd1e2b2dcecb10afb9041965b3684a1
|
||||||
|
DIST tzcode2014i.tar.gz 181815 SHA256 62591075fb0d47459889b71bac3c8487f09b7417b81dfa541d750b4889e84783 SHA512 ed780815a1e209616c791997f14da56cb9311c6585b70c503b32a11e8ec15e0dc04c37bdeaa5a1a1378ada714935a2d931679d0aa4ab42808d185b600e5d0582 WHIRLPOOL ba5bdf8117b64eda76dc559dd211fa83ee0662792a93004fd696b3d8463da2046d91a0cb45b88656230ac935b528b5cd3e8ce9a460c5e27fdb0b4a19ddadb666
|
||||||
|
DIST tzcode2014j.tar.gz 182416 SHA256 7fd46125464856309fc81fe85a67a61de862b8ab884ce8ca82051f5fa308ede2 SHA512 1207670c168a80fe9db86307028efa3af8ca304817ebe36df5b5c2d2b67deba4294f05f4d6afa04220c3b255ad1903e2850bfb0649b2edfb2d754345a4b2490a WHIRLPOOL 87275670bc5eeaa634ea7cc858e0c52e61e69640d89a98119d42bf087f26b65216146749648c1347dca0924776e9f6f914ba85aac19c5a3e581ad329fb85de84
|
||||||
|
DIST tzcode2015a.tar.gz 182993 SHA256 885bab11f286852f34030d7a86ede7d4126319ca74b8ee22be8ca7c17d72dd19 SHA512 80d3bd3aeb70e21552a599c6203670fe742ca8d270c3fc430a3045d8e8a6610ebfe74941532c0791d5a99d6e4bf5fbdf62918de57d377d3fd26e7f7f786c66a4 WHIRLPOOL de4d9ea9611cc47e71f6e64fc4b0f6c45e5b3c995268d6244ed58fdc9b5e6d896c0e3ce1299e04ae018681523dc1e57f2dfcd0fb7f03423a93282123eb8a0376
|
||||||
|
DIST tzcode2015b.tar.gz 183630 SHA256 e668f1235b998c90e43ecc93c8535728c65bb01d6bb93d22467e04b5ffa35d76 SHA512 d9b56c8ec98d9158d10cf80df0181864c467a4387b8ced5701f466c40885ea524bc1d49b0e17c0a18d8006a423da1c1b9a7e74626c4a916dd37cbb85e04b2b0a WHIRLPOOL 9e57737318d00470a6315cda75ed0cc3b4bb7f57de4c60b0d3b527be12164ec7c390f285dde23102c764e2ff6b9473d2e4762642f7a3e716e746bcacb931eaad
|
||||||
|
DIST tzcode2015c.tar.gz 184278 SHA256 7feeb1a60dff8b179c884f6e3aa7684606f4eaeb7f7ecc61a6bb81e3e38af42e SHA512 01f57e27c1031434e7da8876f30084dfef9dbe36988539c857f71f86c0ab1995f82c9fe5dad32ded12185c53433b7f1a0553d8848a2d97529981021ffd70dfb1 WHIRLPOOL b2dff9985ad6845ad368a35e471890e99c69f03cf6d92da9d0da362af1d0545e30485a7be1ca159444d49c148c2f1588b8fa3fd1161859cfa566365fb45ba341
|
||||||
|
DIST tzcode2015d.tar.gz 184178 SHA256 221af54ec5c42eaf0101159ffe1256a883d1c14c46228d42774c656a56317128 SHA512 2cb4faced839d02e6313a7aacca4d2dfe6454186d9864ee4aa034f7280442e6a751cec2285bde2d5712962b733e107a46f2282469f6510b42d93972d6c34424a WHIRLPOOL d5760e6530f65a4aac86258cbec62b27c86952d0f5896fbc1f567af6aef025e453f455ba94805069706981ecd4806a22e09581dd38cfba18f892343eb2038e3d
|
||||||
|
DIST tzdata2012j.tar.gz 214075 SHA256 4b6a3c2831bdbb68ab1a1bf906bcf11d18ab78009713a0339da6fe96b6afceaa SHA512 98515b92268a2ee49386f6955211c14b9fe47460ba1c3ec5d60681b1a934688c3de4452f8f757ca3a6924e15784585967c768e7c86be730378d0332c249584fe WHIRLPOOL 17af29d05587bea2b05762751d146101a8bcc647346aa22a33e06a095805ecf4feab62693b3216ba5d75cf87f8a63d8cbcee9167be4b6dfe7936e1828bbc4b8a
|
||||||
|
DIST tzdata2013i.tar.gz 218866 SHA256 1cd56a6ee964143ef0c65229968a5093988335b95e9115235b5e7b7e45e67dda SHA512 679645837b940c0d4c63cb070e26c042461a520caa5fbe1ed12897a6bfb5c440352d54a9e1ffb8b7098a10dd9e2f33cf4c6f9cb0b6fc84c0dfc3898501ce4082 WHIRLPOOL f5c559b8bd3869e2f90792079329582d26d3e95f744543c40b5c3aa6429390a39e04697d68151730019e60cfa3c6fe6b4f8d3d3e79b6b4bed28dc4e81cffa9ce
|
||||||
|
DIST tzdata2014i.tar.gz 289312 SHA256 2af331bdd2b794ec59b8ded7300fb29dc3573a009ec14183f5c9ad38e3886153 SHA512 d8893703cebfa337254a6cfb26b0c0083533922016d51dcb56c0cbc46ff7fb76d83e4e1359eec3a7728b4ebffd24e912117ac1f7425a150cad4d33e20033c40e WHIRLPOOL ca2fb6f470ff975168124ee30c2f4638ce9f0a68b0d999e451c19d328c0df438f6934b458b48e7d05a724445e7fc5c3e1ca5adbcc97e1998f88983630f132e43
|
||||||
|
DIST tzdata2014j.tar.gz 290688 SHA256 a2d870320694d40535df822ac8074dc629a90e92abafa5d3373314f78ddc0e0d SHA512 4c2979be3a96f91f8576304ec905d571b73df0842c8300c1d7317819b45ab3e29948ed911aa265b12a4ad587d5cba44f646dd02e40e4fbf9e68556a2d327142e WHIRLPOOL adf3fc77aae18dccf05e3c990052fc2cb735a2c91bf9e93136cb45862e6f283e706beaa79373354817662a8b17449000a58760cb8f95fa78de88690207014a3e
|
||||||
|
DIST tzdata2015a.tar.gz 292131 SHA256 c52490917d00a8e7fc9b5f0b1b65ef6ec76d612b5b20c81bf86a04147af18e4c SHA512 ff36feb437238ba42fe67257e81ade0a2179d11f6c6449146e28e4b6553c62348b4131af75e440b4467109c9edba13e25ddaf701f2fcebb2a258b4ac9b57293c WHIRLPOOL 22d42c60e87948c691255282aea9e4c9d69b46db8c19ef1c06a262b5e6054e45fec39c5fa8d1dc24ad121ed70bd3dfa24ea61fe97961938b733262238d74b5bb
|
||||||
|
DIST tzdata2015b.tar.gz 293482 SHA256 556ac1a5b3a371adc1ad4e77138f78ddd7f8ddd7bc2b52545924598c7dc8ad62 SHA512 767782b87e62a8f7a4dbcae595d16a54197c9e04ca974d7016d11f90ebaf2537b804d111f204af9052c68d4670afe0af0af9e5b150867a357fc199bb541368d0 WHIRLPOOL e6d7bd671dd17c44b9d51744bda2283b42d5e4b9b673e693976af2f52f2a03a9571d6604a30b88701ed11f69a3a797429c72274126c0f45e5a4b9637b589a632
|
||||||
|
DIST tzdata2015c.tar.gz 294353 SHA256 860fac5f5f57f7a2dfc1ba682dbd1f5c0f0b597f761571277b6ed6561e22365a SHA512 ca89c2041c8420e7b154660e227211b60ba20e8d70b6870b5c0a149838c588d13065202b1266c59caf22a99df2387da95ac04049b9ecb7939cd406c7f007a73e WHIRLPOOL e5806b47d3082b260837c675ac267a99ec45549070c66b5cbd6a51b7fe57802a555bfd54918093e83447089d965fe2459c5e9c6ea12c333080add280b012182f
|
||||||
|
DIST tzdata2015d.tar.gz 296131 SHA256 8b9f5008277f09e251e97dba7813f56168d691115bda90ade4638d72f296d531 SHA512 37b5aa3c5e0d601c8b20fac08d7267c398a836e4190ef85625d5e86a806ba1baceb2315ba81a9a6c854eae4fce40e9c8f90cf5adade3f48ad443f77c221d8983 WHIRLPOOL c42972f20c8815557a9545f73bf3ff3b10a0148168a229641cb8e436da8ec337c5fc968acacfbd4d5beeae0fb183c5b6d54fe4240539352a9c3ce2b2f2318824
|
||||||
|
EBUILD timezone-data-2012j.ebuild 3226 SHA256 189e893f9a2de810a15d4c36dc060bd488486238eb0b62e3e34b0f94f4580887 SHA512 b421e8f2ac49de3e5c35a429821c3b10a4545c11b03974d9091f088543bfdbb3276893ca08829d1bfc7d8c7eb9bf958c8de9543fece5b511e315bc031d4a5a9a WHIRLPOOL 8972b6e607f11ea8f4564d10213449afdb1c3961a18514f5a4881dd56a80fe24c59ad326899c302ee55f99823445810b18b7e85c2512384dad5bfaba44a30e2f
|
||||||
|
EBUILD timezone-data-2013i.ebuild 3845 SHA256 92a0ec88188d6b037a8b44f4ecfa02a39cd2c6789600291c758c7b71f7b08b3c SHA512 0945048dbb8372333a278c383ed742cdd2795717114e30850daa3a77ff277c3871b09797e9adc5ffecc44e7ac0b0d1d5211945e924a4efc06a6e52aef4980349 WHIRLPOOL 6ae79b2d8acd8858a5ad10c32f4eea08c379f528b33ef72d0b1a9a764fcf5b6c9c29bc416404b1a4882c70468805610d43bb5f790e402b87b7303cbc891af5f8
|
||||||
|
EBUILD timezone-data-2014i-r1.ebuild 4387 SHA256 9bd6c81988e70db63fa78b58bec3c78f57cbb647009333ba30989948277a133a SHA512 8a2f304411208a5417940fb6d2bd2a83450e6e6f309d9993b5ac352b26ba28c2e878f556bcd52b441978025173013fe6fc6eb58b2e9059d31b0ee49e9d838a25 WHIRLPOOL 695585b9f51f74649e12b20185e0b54a8d4706ac4ddb5fc4f198ef697f5ff5de81758c85c1e6cf9682f5e6e9c050bbc336b031e1199253df88dae7a0eec3fdb9
|
||||||
|
EBUILD timezone-data-2014j.ebuild 4384 SHA256 a7a460664a6e03e31f90a591a9179603fa006bf1b1378756aca01552051b1969 SHA512 7f647e11b2d307f384192dd0fb0d372bf887c25dc62c615c05539fd8e9a9c95d6be944972f43e2d54c32015ad6a38c35c72758996c5e72d61af29d07cb03d6a9 WHIRLPOOL 991a16c94ec780eca86a8caf2786e811ac45a0aa2bab6aced341a9741f0d025f9892a4ea7cd5d392b823ead1e33ef79dd6d6a3613f894dfe82609a34e0c8329e
|
||||||
|
EBUILD timezone-data-2015a.ebuild 4423 SHA256 729504430de5ebe2acb3fa2f2f0eb154a79692c66608d9b32b599278ef7396b0 SHA512 5821c227466c450148e6b8ab5f8736a906fc3861652a04fe22050f21c5db21578490e4e80614e0e228c861d350484e4eaed1d978fdfa94ef6ed4b709aa7fa39c WHIRLPOOL 40e758e98bd45cbfe82ba961fefecfde0e58f0de50d9f6f34ca14740b36ffe9d80f42fb961f435ac9085a3388ef32f1e9a9a167ec9211cfd64f98606935a8896
|
||||||
|
EBUILD timezone-data-2015b.ebuild 4423 SHA256 6567e8315d3df40f5de232ccc2ef0e6b368e42e171573d8f4d897269a5b91d30 SHA512 56406ab11a7cdba7097752d7ce6ade4e4ab8184259ca3a1a7151ad9b953033c9de9d95e54c46407277407fd0c3e5c29f6b6f7753c1fd4bb1f0dcf0a030f06508 WHIRLPOOL d10a32c66ac571592967202452efa749410b9349215bcbb148c2bb3f1c01ed4a302f2e1c2d5e0dd500ecff3bb64102e9226668a4e8a7ffb1edfa4f9dab08b990
|
||||||
|
EBUILD timezone-data-2015c-r1.ebuild 4460 SHA256 5e406a42add9f6f9810defab78cc4bdbbe8692f32dd9823fde7cad6468b9a653 SHA512 a9d0c8f06a3302fb9311dc8bdc7f231d53e63b4d43540fc1d3b7e2409a5124651bbaf2952dcea09924cc081bc4a5dd9201dc0adf5e7ef903254b7d9ca77ee8b3 WHIRLPOOL e45299e857a65dbe2052c55341539a0872adfcb13b297cf27efbe747ff75c13665bec99ce1c853997763de6c6a882bd63c04aecf4934b92f6f5e1d631ee991e5
|
||||||
|
EBUILD timezone-data-2015c.ebuild 4436 SHA256 a4341d9980cc1646b19911b7aaf1c54081644b215fa1c39ff91825f60e2fd8ec SHA512 1e6b5a4f1ead5c80afe4d5d40e395c32c23ab2851b2e15bc4feddf2633d701026bdc4665d52a9ebee05116316cfc3898cc176d32867ac82b74893d3a07ef5469 WHIRLPOOL 4f1efc7073399ff9179a8b8d9771b52d22f17cc8410badd6cb390c9c685ded3f6a565db26f82d26c45f198398b973bb11ae4599f49dda786ccc7eeb954c82ea6
|
||||||
|
EBUILD timezone-data-2015d.ebuild 4457 SHA256 763512054ff3bfc7b892f45f1772dd2d3a6197a54ef79a0d3bdadab7e0e14e80 SHA512 c4143d2af548378dbc6f92f547daa7a24cf0082fc9339f5494938435f3383963e4f06802e4da3d0e6f4a6455c8b0930b210f1b1561433417191e2e3942822205 WHIRLPOOL 260153521756a89b34b216a32a11fa96334d2ac4b773cba6bffc64f2898b6e30282cb36a270b38b8c88f186d7eb067e181fd6a7f99bdc9c90f060ba8a7d7c6b8
|
||||||
|
MISC ChangeLog 44823 SHA256 565a38ae243f2a01d92791681c04b3f51f364c4553905bd6e74df2f31ff8d37d SHA512 9147545e3120ace78b27846cff3dbd881a6b100032755de70561d04c72f18304846afc7dc65a4f6e371940ce4b3f5e5886723f7fcdcb32c4f01a2fc284fbf75f WHIRLPOOL 8d25f725b2f74cfa38c6a180af4243341f859487dd1cedfa59b0902143228a1003062c7cc3336aa93eb264d925ecd65fc7d4e8dbb1bf9d9653504b34b593034d
|
||||||
|
MISC metadata.xml 734 SHA256 cef69f37f5b75d5251a18306ade42e9b6f3cb69f0bdb6c516daea613708c997e SHA512 6f3471d8ecf69c73a324bdc1c3fc4b7b71f75b3d539cfc1ca160f3a9950e7ed3d285027a6a21bb34bb3cb36ce48e396473d6d78bbc50ac841afd7314271aeaf1 WHIRLPOOL b2d600cb1a6539abac53c239fd122532c8790c8d6312efcb392abc0b53e227bc467936766aa7075909f61be1ab6acc78d5c277ad50dc0cfd68474d9b97ee4307
|
||||||
|
-----BEGIN PGP SIGNATURE-----
|
||||||
|
Version: GnuPG v2
|
||||||
|
|
||||||
|
iQIcBAEBCAAGBQJVOokXAAoJEPGu1DbS6WIAWxAP/0OqYP+P7wD5nVUWHNXrPtjg
|
||||||
|
s6vot/QxshFdd5LHuFW7Qfcq5dbpzcYs9vTOsrYJWJSa64I0Ncx7u/z+GyRMOa8b
|
||||||
|
0zOnlg5fIXvJdP1qlQOoBep/Jk56sCRG50SGrMvCoSlFzve/EfOU6Z/o+Vlzz0Qo
|
||||||
|
6eelg/kYfMEHrs1T0UlhkTcO8I6LYvPkk0EM8qGQyE6Ewbxx5tmlG6wnqEBP1QQW
|
||||||
|
c48YgHcZH6ibfUbfEzt8UVDUoGZwzXw4NUwNZXYFINlpPjMfgy0I3uwGNEgWo4DT
|
||||||
|
e27/5XbOZ/7j9WDXDuxlwmlm0yl3sWTN4AsVUdQZ+qdVh8Yfbj6GOZH3i01yL7cZ
|
||||||
|
q/0y5Q1LFYWVZbmpNVEgaRfWy1K5L0HfLLT3kg30TOeiYid5HDEmNJLlT9EXZDcl
|
||||||
|
xWV6rK2ZlK7F3nvTjj2j+/w6vGRosc8DoY3zOyTnF8wG8qC/u5oeBuzCI/odmovN
|
||||||
|
1BsFLtNTBvYJhr14cIbGI4KtupO6fLVInrLYrDPSk0cdJHMNjuWPfW5rdZeZOBtF
|
||||||
|
DG7XCC64Echd/X+1k1PT5k+DYs3HwztdFgWnoOhVsLfodN52R5m131EYkxqCpIhA
|
||||||
|
JXmwY6ePk223wP7DonKcxTv8Lkb4x3ixYZJrhfJX2Caw4yiPESEhePZ6pv35ccMu
|
||||||
|
jngJiJodhZ0Nw8BNouON
|
||||||
|
=SpRy
|
||||||
|
-----END PGP SIGNATURE-----
|
@ -0,0 +1,138 @@
|
|||||||
|
- Fix up default paths
|
||||||
|
- Support env DESTDIR / LDFLAGS / CFLAGS / CC
|
||||||
|
- Use awk instead of nawk
|
||||||
|
- Don't build/install libtz.a
|
||||||
|
- Don't install man-pages provided by sys-apps/man-pages
|
||||||
|
- Move zic zdump to sbin and tzselect to bin ala glibc
|
||||||
|
- Install posix zoneinfo into zoneinfo/posix/ instead of zoneinfo-posix/ ala glibc
|
||||||
|
- Install leaps zoneinfo into zoneinfo/right/ ala glibc
|
||||||
|
- Disable broken web test
|
||||||
|
- Make sure tzselect uses #!/bin/bash and not #!/bin/ksh
|
||||||
|
- Flags to the linking are passed as LDFLAGS, not LFLAGS
|
||||||
|
- LDFLAGS was missed for the 'date' target
|
||||||
|
|
||||||
|
--- Makefile
|
||||||
|
+++ Makefile
|
||||||
|
@@ -35,5 +35,5 @@
|
||||||
|
# Everything gets put in subdirectories of. . .
|
||||||
|
|
||||||
|
-TOPDIR= /usr/local
|
||||||
|
+TOPDIR= $(DESTDIR)/usr
|
||||||
|
|
||||||
|
# "Compiled" time zone information is placed in the "TZDIR" directory
|
||||||
|
@@ -41,9 +41,9 @@
|
||||||
|
# Use an absolute path name for TZDIR unless you're just testing the software.
|
||||||
|
|
||||||
|
-TZDIR= $(TOPDIR)/etc/zoneinfo
|
||||||
|
+TZDIR= $(TOPDIR)/share/zoneinfo
|
||||||
|
|
||||||
|
# The "tzselect", "zic", and "zdump" commands get installed in. . .
|
||||||
|
|
||||||
|
-ETCDIR= $(TOPDIR)/etc
|
||||||
|
+SBINDIR= $(TOPDIR)/sbin
|
||||||
|
|
||||||
|
# If you "make INSTALL", the "date" command gets installed in. . .
|
||||||
|
@@ -53,5 +53,5 @@
|
||||||
|
# Manual pages go in subdirectories of. . .
|
||||||
|
|
||||||
|
-MANDIR= $(TOPDIR)/man
|
||||||
|
+MANDIR= $(TOPDIR)/share/man
|
||||||
|
|
||||||
|
# Library functions are put in an archive in LIBDIR.
|
||||||
|
@@ -211,5 +211,5 @@
|
||||||
|
# falls on a Friday, Saturday, or Sunday.
|
||||||
|
|
||||||
|
-CFLAGS=
|
||||||
|
+CFLAGS += -std=gnu99
|
||||||
|
|
||||||
|
# If you want zic's -s option used when installing, uncomment the next line
|
||||||
|
@@ -220,5 +220,5 @@
|
||||||
|
|
||||||
|
# The name of a Posix-compliant `awk' on your system.
|
||||||
|
-AWK= nawk
|
||||||
|
+AWK= awk
|
||||||
|
|
||||||
|
# The path where SGML DTDs are kept.
|
||||||
|
@@ -241,8 +241,10 @@
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
-cc= cc
|
||||||
|
-CC= $(cc) -DTZDIR=\"$(TZDIR)\"
|
||||||
|
+CC+= -DTZDIR=\"$(TZDIR)\"
|
||||||
|
+ifeq ($(NLS),1)
|
||||||
|
+CC += -DHAVE_GETTEXT=1 -DTZ_DOMAIN=\"libc\"
|
||||||
|
+endif
|
||||||
|
|
||||||
|
TZCSRCS= zic.c localtime.c asctime.c scheck.c ialloc.c
|
||||||
|
TZCOBJS= zic.o localtime.o asctime.o scheck.o ialloc.o
|
||||||
|
@@ -281,11 +281,13 @@
|
||||||
|
ALL: all date
|
||||||
|
|
||||||
|
-install: all $(DATA) $(REDO) $(TZLIB) $(MANS) $(TABDATA)
|
||||||
|
+install: all $(DATA) $(REDO) $(MANS) $(TABDATA)
|
||||||
|
$(ZIC) -y $(YEARISTYPE) \
|
||||||
|
-d $(TZDIR) -l $(LOCALTIME) -p $(POSIXRULES)
|
||||||
|
-rm -f $(TZDIR)/iso3166.tab $(TZDIR)/zone.tab
|
||||||
|
cp iso3166.tab zone.tab $(TZDIR)/.
|
||||||
|
- -mkdir $(TOPDIR) $(ETCDIR)
|
||||||
|
- cp tzselect zic zdump $(ETCDIR)/.
|
||||||
|
+ -mkdir $(TOPDIR) $(SBINDIR)
|
||||||
|
+ cp zic zdump $(SBINDIR)/.
|
||||||
|
+ -mkdir $(TOPDIR) $(BINDIR)
|
||||||
|
+ cp tzselect $(BINDIR)/.
|
||||||
|
-mkdir $(TOPDIR) $(MANDIR) \
|
||||||
|
$(MANDIR)/man3 $(MANDIR)/man5 $(MANDIR)/man8
|
||||||
|
@@ -297,6 +299,4 @@
|
||||||
|
$(MANDIR)/man8/zic.8
|
||||||
|
cp newctime.3 newtzset.3 $(MANDIR)/man3/.
|
||||||
|
- cp tzfile.5 $(MANDIR)/man5/.
|
||||||
|
- cp tzselect.8 zdump.8 zic.8 $(MANDIR)/man8/.
|
||||||
|
|
||||||
|
INSTALL: ALL install date.1
|
||||||
|
@@ -309,10 +309,10 @@
|
||||||
|
cp date.1 $(MANDIR)/man1/.
|
||||||
|
|
||||||
|
zdump: $(TZDOBJS)
|
||||||
|
- $(CC) $(CFLAGS) $(LFLAGS) $(TZDOBJS) $(LDLIBS) -o $@
|
||||||
|
+ $(CC) $(CFLAGS) $(LDFLAGS) $(TZDOBJS) $(LDLIBS) -o $@
|
||||||
|
|
||||||
|
zic: $(TZCOBJS) yearistype
|
||||||
|
- $(CC) $(CFLAGS) $(LFLAGS) $(TZCOBJS) $(LDLIBS) -o $@
|
||||||
|
+ $(CC) $(CFLAGS) $(LDFLAGS) $(TZCOBJS) $(LDLIBS) -o $@
|
||||||
|
|
||||||
|
yearistype: yearistype.sh
|
||||||
|
cp yearistype.sh yearistype
|
||||||
|
@@ -333,7 +333,7 @@
|
||||||
|
# to using them, or vice versa.
|
||||||
|
other_two: zic leapseconds $(TDATA)
|
||||||
|
- $(ZIC) -y $(YEARISTYPE) -d $(TZDIR)-posix -L /dev/null $(TDATA)
|
||||||
|
+ $(ZIC) -y $(YEARISTYPE) -d $(TZDIR)/posix -L /dev/null $(TDATA)
|
||||||
|
$(ZIC) -y $(YEARISTYPE) \
|
||||||
|
- -d $(TZDIR)-leaps -L leapseconds $(TDATA)
|
||||||
|
+ -d $(TZDIR)/right -L leapseconds $(TDATA)
|
||||||
|
|
||||||
|
posix_right: posix_only other_two
|
||||||
|
@@ -351,7 +351,7 @@
|
||||||
|
then ranlib $@ ; fi
|
||||||
|
|
||||||
|
date: $(DATEOBJS)
|
||||||
|
- $(CC) $(CFLAGS) date.o localtime.o asctime.o strftime.o \
|
||||||
|
+ $(CC) $(CFLAGS) $(LDFLAGS) date.o localtime.o asctime.o strftime.o \
|
||||||
|
$(LDLIBS) -lc -o $@
|
||||||
|
|
||||||
|
tzselect: tzselect.ksh
|
||||||
|
@@ -366,5 +366,5 @@
|
||||||
|
chmod +x $@
|
||||||
|
|
||||||
|
-check: check_tables check_web
|
||||||
|
+check: check_tables
|
||||||
|
|
||||||
|
check_tables: checktab.awk $(PRIMARY_YDATA)
|
||||||
|
--- tzselect.ksh
|
||||||
|
+++ tzselect.ksh
|
||||||
|
@@ -1,3 +1,3 @@
|
||||||
|
-#! /bin/ksh
|
||||||
|
+#! /bin/bash
|
||||||
|
|
||||||
|
# '@(#)tzselect.ksh 1.8'
|
@ -0,0 +1,138 @@
|
|||||||
|
- Fix up default paths
|
||||||
|
- Support env DESTDIR / LDFLAGS / CFLAGS / CC
|
||||||
|
- Use awk instead of nawk
|
||||||
|
- Don't build/install libtz.a
|
||||||
|
- Don't install man-pages provided by sys-apps/man-pages
|
||||||
|
- Move zic zdump to sbin and tzselect to bin ala glibc
|
||||||
|
- Install posix zoneinfo into zoneinfo/posix/ instead of zoneinfo-posix/ ala glibc
|
||||||
|
- Install leaps zoneinfo into zoneinfo/right/ ala glibc
|
||||||
|
- Disable broken web test
|
||||||
|
- Make sure tzselect uses #!/bin/bash and not #!/bin/ksh
|
||||||
|
- Flags to the linking are passed as LDFLAGS, not LFLAGS
|
||||||
|
- LDFLAGS was missed for the 'date' target
|
||||||
|
|
||||||
|
--- Makefile
|
||||||
|
+++ Makefile
|
||||||
|
@@ -35,5 +35,5 @@
|
||||||
|
# Everything gets put in subdirectories of. . .
|
||||||
|
|
||||||
|
-TOPDIR= /usr/local
|
||||||
|
+TOPDIR= $(DESTDIR)/usr
|
||||||
|
|
||||||
|
# "Compiled" time zone information is placed in the "TZDIR" directory
|
||||||
|
@@ -41,9 +41,8 @@
|
||||||
|
|
||||||
|
-# TZDIR= $(TOPDIR)/etc/zoneinfo
|
||||||
|
-TZDIR= /home/kre/src/tz/data/TZ
|
||||||
|
+TZDIR= $(TOPDIR)/share/zoneinfo
|
||||||
|
|
||||||
|
# The "tzselect", "zic", and "zdump" commands get installed in. . .
|
||||||
|
|
||||||
|
-ETCDIR= $(TOPDIR)/etc
|
||||||
|
+SBINDIR= $(TOPDIR)/sbin
|
||||||
|
|
||||||
|
# If you "make INSTALL", the "date" command gets installed in. . .
|
||||||
|
@@ -53,5 +53,5 @@
|
||||||
|
# Manual pages go in subdirectories of. . .
|
||||||
|
|
||||||
|
-MANDIR= $(TOPDIR)/man
|
||||||
|
+MANDIR= $(TOPDIR)/share/man
|
||||||
|
|
||||||
|
# Library functions are put in an archive in LIBDIR.
|
||||||
|
@@ -211,5 +211,5 @@
|
||||||
|
# falls on a Friday, Saturday, or Sunday.
|
||||||
|
|
||||||
|
-CFLAGS= -DSTD_INSPIRED
|
||||||
|
+CFLAGS += -DSTD_INSPIRED -std=gnu99
|
||||||
|
|
||||||
|
# If you want zic's -s option used when installing, uncomment the next line
|
||||||
|
@@ -220,5 +220,5 @@
|
||||||
|
|
||||||
|
# The name of a Posix-compliant `awk' on your system.
|
||||||
|
-AWK= nawk
|
||||||
|
+AWK= awk
|
||||||
|
|
||||||
|
# The path where SGML DTDs are kept.
|
||||||
|
@@ -241,8 +241,10 @@
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
-cc= cc
|
||||||
|
-CC= $(cc) -DTZDIR=\"$(TZDIR)\"
|
||||||
|
+CC+= -DTZDIR=\"$(TZDIR)\"
|
||||||
|
+ifeq ($(NLS),1)
|
||||||
|
+CC += -DHAVE_GETTEXT=1 -DTZ_DOMAIN=\"libc\"
|
||||||
|
+endif
|
||||||
|
|
||||||
|
TZCSRCS= zic.c localtime.c asctime.c scheck.c ialloc.c
|
||||||
|
TZCOBJS= zic.o localtime.o asctime.o scheck.o ialloc.o
|
||||||
|
@@ -281,11 +281,13 @@
|
||||||
|
ALL: all date
|
||||||
|
|
||||||
|
-install: all $(DATA) $(REDO) $(TZLIB) $(MANS) $(TABDATA)
|
||||||
|
+install: all $(DATA) $(REDO) $(MANS) $(TABDATA)
|
||||||
|
$(ZIC) -y $(YEARISTYPE) \
|
||||||
|
-d $(TZDIR) -l $(LOCALTIME) -p $(POSIXRULES)
|
||||||
|
-rm -f $(TZDIR)/iso3166.tab $(TZDIR)/zone.tab
|
||||||
|
cp iso3166.tab zone.tab $(TZDIR)/.
|
||||||
|
- -mkdir $(TOPDIR) $(ETCDIR)
|
||||||
|
- cp tzselect zic zdump $(ETCDIR)/.
|
||||||
|
+ -mkdir $(TOPDIR) $(SBINDIR)
|
||||||
|
+ cp zic zdump $(SBINDIR)/.
|
||||||
|
+ -mkdir $(TOPDIR) $(BINDIR)
|
||||||
|
+ cp tzselect $(BINDIR)/.
|
||||||
|
-mkdir $(TOPDIR) $(MANDIR) \
|
||||||
|
$(MANDIR)/man3 $(MANDIR)/man5 $(MANDIR)/man8
|
||||||
|
@@ -297,6 +299,4 @@
|
||||||
|
$(MANDIR)/man8/zic.8
|
||||||
|
cp newctime.3 newtzset.3 $(MANDIR)/man3/.
|
||||||
|
- cp tzfile.5 $(MANDIR)/man5/.
|
||||||
|
- cp tzselect.8 zdump.8 zic.8 $(MANDIR)/man8/.
|
||||||
|
|
||||||
|
INSTALL: ALL install date.1
|
||||||
|
@@ -309,10 +309,10 @@
|
||||||
|
cp date.1 $(MANDIR)/man1/.
|
||||||
|
|
||||||
|
zdump: $(TZDOBJS)
|
||||||
|
- $(CC) $(CFLAGS) $(LFLAGS) $(TZDOBJS) $(LDLIBS) -o $@
|
||||||
|
+ $(CC) $(CFLAGS) $(LDFLAGS) $(TZDOBJS) $(LDLIBS) -o $@
|
||||||
|
|
||||||
|
zic: $(TZCOBJS) yearistype
|
||||||
|
- $(CC) $(CFLAGS) $(LFLAGS) $(TZCOBJS) $(LDLIBS) -o $@
|
||||||
|
+ $(CC) $(CFLAGS) $(LDFLAGS) $(TZCOBJS) $(LDLIBS) -o $@
|
||||||
|
|
||||||
|
yearistype: yearistype.sh
|
||||||
|
cp yearistype.sh yearistype
|
||||||
|
@@ -333,7 +333,7 @@
|
||||||
|
# to using them, or vice versa.
|
||||||
|
other_two: zic leapseconds $(TDATA)
|
||||||
|
- $(ZIC) -y $(YEARISTYPE) -d $(TZDIR)-posix -L /dev/null $(TDATA)
|
||||||
|
+ $(ZIC) -y $(YEARISTYPE) -d $(TZDIR)/posix -L /dev/null $(TDATA)
|
||||||
|
$(ZIC) -y $(YEARISTYPE) \
|
||||||
|
- -d $(TZDIR)-leaps -L leapseconds $(TDATA)
|
||||||
|
+ -d $(TZDIR)/right -L leapseconds $(TDATA)
|
||||||
|
|
||||||
|
posix_right: posix_only other_two
|
||||||
|
@@ -351,7 +351,7 @@
|
||||||
|
then ranlib $@ ; fi
|
||||||
|
|
||||||
|
date: $(DATEOBJS)
|
||||||
|
- $(CC) $(CFLAGS) date.o localtime.o asctime.o strftime.o \
|
||||||
|
+ $(CC) $(CFLAGS) $(LDFLAGS) date.o localtime.o asctime.o strftime.o \
|
||||||
|
$(LDLIBS) -lc -o $@
|
||||||
|
|
||||||
|
tzselect: tzselect.ksh
|
||||||
|
@@ -366,5 +366,5 @@
|
||||||
|
chmod +x $@
|
||||||
|
|
||||||
|
-check: check_tables check_web
|
||||||
|
+check: check_tables
|
||||||
|
|
||||||
|
check_tables: checktab.awk $(PRIMARY_YDATA)
|
||||||
|
--- tzselect.ksh
|
||||||
|
+++ tzselect.ksh
|
||||||
|
@@ -1,3 +1,3 @@
|
||||||
|
-#! /bin/ksh
|
||||||
|
+#! /bin/bash
|
||||||
|
|
||||||
|
# '@(#)tzselect.ksh 1.8'
|
@ -0,0 +1,95 @@
|
|||||||
|
- Fix up default paths
|
||||||
|
- Support env DESTDIR / LDFLAGS / CFLAGS / CC
|
||||||
|
- Use awk instead of nawk
|
||||||
|
- Don't build/install libtz.a
|
||||||
|
- Don't install man-pages provided by sys-apps/man-pages
|
||||||
|
- Move zic zdump to sbin and tzselect to bin ala glibc
|
||||||
|
- Install posix zoneinfo into zoneinfo/posix/ instead of zoneinfo-posix/ ala glibc
|
||||||
|
- Install leaps zoneinfo into zoneinfo/right/ ala glibc
|
||||||
|
- Disable broken web test
|
||||||
|
- Make sure tzselect uses #!/bin/bash and not #!/bin/ksh
|
||||||
|
- Flags to the linking are passed as LDFLAGS, not LFLAGS
|
||||||
|
- LDFLAGS was missed for the 'date' target
|
||||||
|
|
||||||
|
--- Makefile
|
||||||
|
+++ Makefile
|
||||||
|
@@ -35,5 +35,5 @@
|
||||||
|
# Everything gets put in subdirectories of. . .
|
||||||
|
|
||||||
|
-TOPDIR= /usr/local
|
||||||
|
+TOPDIR= $(DESTDIR)/usr
|
||||||
|
|
||||||
|
# "Compiled" time zone information is placed in the "TZDIR" directory
|
||||||
|
@@ -41,9 +41,9 @@
|
||||||
|
# Use an absolute path name for TZDIR unless you're just testing the software.
|
||||||
|
|
||||||
|
-TZDIR= $(TOPDIR)/etc/zoneinfo
|
||||||
|
+TZDIR= $(TOPDIR)/share/zoneinfo
|
||||||
|
|
||||||
|
# The "tzselect", "zic", and "zdump" commands get installed in. . .
|
||||||
|
|
||||||
|
-ETCDIR= $(TOPDIR)/etc
|
||||||
|
+SBINDIR= $(TOPDIR)/sbin
|
||||||
|
|
||||||
|
# If you "make INSTALL", the "date" command gets installed in. . .
|
||||||
|
@@ -53,5 +53,5 @@
|
||||||
|
# Manual pages go in subdirectories of. . .
|
||||||
|
|
||||||
|
-MANDIR= $(TOPDIR)/man
|
||||||
|
+MANDIR= $(TOPDIR)/share/man
|
||||||
|
|
||||||
|
# Library functions are put in an archive in LIBDIR.
|
||||||
|
@@ -241,8 +241,10 @@
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
-cc= cc
|
||||||
|
-CC= $(cc) -DTZDIR=\"$(TZDIR)\"
|
||||||
|
+CC+= -DTZDIR=\"$(TZDIR)\"
|
||||||
|
+ifeq ($(NLS),1)
|
||||||
|
+CC += -DHAVE_GETTEXT=1 -DTZ_DOMAIN=\"libc\"
|
||||||
|
+endif
|
||||||
|
|
||||||
|
TZCSRCS= zic.c localtime.c asctime.c scheck.c ialloc.c
|
||||||
|
TZCOBJS= zic.o localtime.o asctime.o scheck.o ialloc.o
|
||||||
|
@@ -281,11 +281,13 @@
|
||||||
|
ALL: all date
|
||||||
|
|
||||||
|
-install: all $(DATA) $(REDO) $(TZLIB) $(MANS) $(TABDATA)
|
||||||
|
+install: all $(DATA) $(REDO) $(MANS) $(TABDATA)
|
||||||
|
$(ZIC) -y $(YEARISTYPE) \
|
||||||
|
-d $(TZDIR) -l $(LOCALTIME) -p $(POSIXRULES)
|
||||||
|
-rm -f $(TZDIR)/iso3166.tab $(TZDIR)/zone.tab
|
||||||
|
cp iso3166.tab zone.tab $(TZDIR)/.
|
||||||
|
- -mkdir $(TOPDIR) $(ETCDIR)
|
||||||
|
- cp tzselect zic zdump $(ETCDIR)/.
|
||||||
|
+ -mkdir $(TOPDIR) $(SBINDIR)
|
||||||
|
+ cp zic zdump $(SBINDIR)/.
|
||||||
|
+ -mkdir $(TOPDIR) $(BINDIR)
|
||||||
|
+ cp tzselect $(BINDIR)/.
|
||||||
|
-mkdir $(TOPDIR) $(MANDIR) \
|
||||||
|
$(MANDIR)/man3 $(MANDIR)/man5 $(MANDIR)/man8
|
||||||
|
@@ -297,6 +299,4 @@
|
||||||
|
$(MANDIR)/man8/zic.8
|
||||||
|
cp newctime.3 newtzset.3 $(MANDIR)/man3/.
|
||||||
|
- cp tzfile.5 $(MANDIR)/man5/.
|
||||||
|
- cp tzselect.8 zdump.8 zic.8 $(MANDIR)/man8/.
|
||||||
|
|
||||||
|
INSTALL: ALL install date.1
|
||||||
|
@@ -333,7 +333,7 @@
|
||||||
|
# to using them, or vice versa.
|
||||||
|
other_two: zic leapseconds $(TDATA)
|
||||||
|
- $(ZIC) -y $(YEARISTYPE) -d $(TZDIR)-posix -L /dev/null $(TDATA)
|
||||||
|
+ $(ZIC) -y $(YEARISTYPE) -d $(TZDIR)/posix -L /dev/null $(TDATA)
|
||||||
|
$(ZIC) -y $(YEARISTYPE) \
|
||||||
|
- -d $(TZDIR)-leaps -L leapseconds $(TDATA)
|
||||||
|
+ -d $(TZDIR)/right -L leapseconds $(TDATA)
|
||||||
|
|
||||||
|
posix_right: posix_only other_two
|
||||||
|
@@ -366,5 +366,5 @@
|
||||||
|
chmod +x $@
|
||||||
|
|
||||||
|
-check: check_tables check_web
|
||||||
|
+check: check_tables
|
||||||
|
|
||||||
|
check_tables: checktab.awk $(PRIMARY_YDATA)
|
@ -0,0 +1,95 @@
|
|||||||
|
- Fix up default paths
|
||||||
|
- Support env DESTDIR / LDFLAGS / CFLAGS / CC
|
||||||
|
- Use awk instead of nawk
|
||||||
|
- Don't build/install libtz.a
|
||||||
|
- Don't install man-pages provided by sys-apps/man-pages
|
||||||
|
- Move zic zdump to sbin and tzselect to bin ala glibc
|
||||||
|
- Install posix zoneinfo into zoneinfo/posix/ instead of zoneinfo-posix/ ala glibc
|
||||||
|
- Install leaps zoneinfo into zoneinfo/right/ ala glibc
|
||||||
|
- Disable broken web test
|
||||||
|
- Make sure tzselect uses #!/bin/bash and not #!/bin/ksh
|
||||||
|
- Flags to the linking are passed as LDFLAGS, not LFLAGS
|
||||||
|
- LDFLAGS was missed for the 'date' target
|
||||||
|
|
||||||
|
--- Makefile
|
||||||
|
+++ Makefile
|
||||||
|
@@ -35,5 +35,5 @@
|
||||||
|
# Everything gets put in subdirectories of. . .
|
||||||
|
|
||||||
|
-TOPDIR= /usr/local
|
||||||
|
+TOPDIR= $(DESTDIR)/usr
|
||||||
|
|
||||||
|
# "Compiled" time zone information is placed in the "TZDIR" directory
|
||||||
|
@@ -41,9 +41,9 @@
|
||||||
|
# Use an absolute path name for TZDIR unless you're just testing the software.
|
||||||
|
|
||||||
|
-TZDIR= $(TOPDIR)/etc/zoneinfo
|
||||||
|
+TZDIR= $(TOPDIR)/share/zoneinfo
|
||||||
|
|
||||||
|
# The "tzselect", "zic", and "zdump" commands get installed in. . .
|
||||||
|
|
||||||
|
-ETCDIR= $(TOPDIR)/etc
|
||||||
|
+SBINDIR= $(TOPDIR)/sbin
|
||||||
|
|
||||||
|
# If you "make INSTALL", the "date" command gets installed in. . .
|
||||||
|
@@ -53,5 +53,5 @@
|
||||||
|
# Manual pages go in subdirectories of. . .
|
||||||
|
|
||||||
|
-MANDIR= $(TOPDIR)/man
|
||||||
|
+MANDIR= $(TOPDIR)/share/man
|
||||||
|
|
||||||
|
# Library functions are put in an archive in LIBDIR.
|
||||||
|
@@ -241,8 +241,10 @@
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
-cc= cc
|
||||||
|
-CC= $(cc) -DTZDIR=\"$(TZDIR)\"
|
||||||
|
+CC+= -DTZDIR=\"$(TZDIR)\"
|
||||||
|
+ifeq ($(NLS),1)
|
||||||
|
+CC += -DHAVE_GETTEXT=1 -DTZ_DOMAIN=\"libc\"
|
||||||
|
+endif
|
||||||
|
|
||||||
|
TZCSRCS= zic.c localtime.c asctime.c scheck.c ialloc.c
|
||||||
|
TZCOBJS= zic.o localtime.o asctime.o scheck.o ialloc.o
|
||||||
|
@@ -281,11 +281,13 @@
|
||||||
|
ALL: all date
|
||||||
|
|
||||||
|
-install: all $(DATA) $(REDO) $(TZLIB) $(MANS) $(TABDATA)
|
||||||
|
+install: all $(DATA) $(REDO) $(MANS) $(TABDATA)
|
||||||
|
$(ZIC) -y $(YEARISTYPE) \
|
||||||
|
-d $(TZDIR) -l $(LOCALTIME) -p $(POSIXRULES)
|
||||||
|
-rm -f $(TZDIR)/iso3166.tab $(TZDIR)/zone.tab
|
||||||
|
cp iso3166.tab zone.tab $(TZDIR)/.
|
||||||
|
- -mkdir $(TOPDIR) $(ETCDIR)
|
||||||
|
- cp tzselect zic zdump $(ETCDIR)/.
|
||||||
|
+ -mkdir $(TOPDIR) $(SBINDIR)
|
||||||
|
+ cp zic zdump $(SBINDIR)/.
|
||||||
|
+ -mkdir $(TOPDIR) $(BINDIR)
|
||||||
|
+ cp tzselect $(BINDIR)/.
|
||||||
|
-mkdir $(TOPDIR) $(MANDIR) \
|
||||||
|
$(MANDIR)/man3 $(MANDIR)/man5 $(MANDIR)/man8
|
||||||
|
@@ -297,6 +299,4 @@
|
||||||
|
$(MANDIR)/man8/zic.8
|
||||||
|
cp newctime.3 newtzset.3 $(MANDIR)/man3/.
|
||||||
|
- cp tzfile.5 $(MANDIR)/man5/.
|
||||||
|
- cp tzselect.8 zdump.8 zic.8 $(MANDIR)/man8/.
|
||||||
|
|
||||||
|
INSTALL: ALL install date.1
|
||||||
|
@@ -333,7 +333,7 @@
|
||||||
|
# to using them, or vice versa.
|
||||||
|
other_two: zic leapseconds $(TDATA)
|
||||||
|
- $(ZIC) -y $(YEARISTYPE) -d $(TZDIR)-posix -L /dev/null $(TDATA)
|
||||||
|
+ $(ZIC) -y $(YEARISTYPE) -d $(TZDIR)/posix -L /dev/null $(TDATA)
|
||||||
|
$(ZIC) -y $(YEARISTYPE) \
|
||||||
|
- -d $(TZDIR)-leaps -L leapseconds $(TDATA)
|
||||||
|
+ -d $(TZDIR)/right -L leapseconds $(TDATA)
|
||||||
|
|
||||||
|
posix_right: posix_only other_two
|
||||||
|
@@ -366,5 +366,5 @@
|
||||||
|
chmod +x $@
|
||||||
|
|
||||||
|
-check: check_character_set check_tables check_web
|
||||||
|
+check: check_character_set check_tables
|
||||||
|
|
||||||
|
check_tables: checktab.awk $(PRIMARY_YDATA)
|
@ -0,0 +1,95 @@
|
|||||||
|
- Fix up default paths
|
||||||
|
- Support env DESTDIR / LDFLAGS / CFLAGS / CC
|
||||||
|
- Use awk instead of nawk
|
||||||
|
- Don't build/install libtz.a
|
||||||
|
- Don't install man-pages provided by sys-apps/man-pages
|
||||||
|
- Move zic zdump to sbin and tzselect to bin ala glibc
|
||||||
|
- Install posix zoneinfo into zoneinfo/posix/ instead of zoneinfo-posix/ ala glibc
|
||||||
|
- Install leaps zoneinfo into zoneinfo/right/ ala glibc
|
||||||
|
- Disable broken web test
|
||||||
|
- Make sure tzselect uses #!/bin/bash and not #!/bin/ksh
|
||||||
|
- Flags to the linking are passed as LDFLAGS, not LFLAGS
|
||||||
|
- LDFLAGS was missed for the 'date' target
|
||||||
|
|
||||||
|
--- a/Makefile
|
||||||
|
+++ b/Makefile
|
||||||
|
@@ -46,5 +46,5 @@
|
||||||
|
# Everything gets put in subdirectories of. . .
|
||||||
|
|
||||||
|
-TOPDIR= /usr/local
|
||||||
|
+TOPDIR= $(DESTDIR)/usr
|
||||||
|
|
||||||
|
# "Compiled" time zone information is placed in the "TZDIR" directory
|
||||||
|
@@ -52,5 +52,5 @@
|
||||||
|
# Use an absolute path name for TZDIR unless you're just testing the software.
|
||||||
|
|
||||||
|
-TZDIR= $(TOPDIR)/etc/zoneinfo
|
||||||
|
+TZDIR= $(TOPDIR)/share/zoneinfo
|
||||||
|
|
||||||
|
# Types to try, as an alternative to time_t. int64_t should be first.
|
||||||
|
@@ -59,5 +59,5 @@
|
||||||
|
# The "tzselect", "zic", and "zdump" commands get installed in. . .
|
||||||
|
|
||||||
|
-ETCDIR= $(TOPDIR)/etc
|
||||||
|
+SBINDIR= $(TOPDIR)/sbin
|
||||||
|
|
||||||
|
# If you "make INSTALL", the "date" command gets installed in. . .
|
||||||
|
@@ -67,5 +67,5 @@
|
||||||
|
# Manual pages go in subdirectories of. . .
|
||||||
|
|
||||||
|
-MANDIR= $(TOPDIR)/man
|
||||||
|
+MANDIR= $(TOPDIR)/share/man
|
||||||
|
|
||||||
|
# Library functions are put in an archive in LIBDIR.
|
||||||
|
@@ -293,6 +293,8 @@
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
-cc= cc
|
||||||
|
-CC= $(cc) -DTZDIR=\"$(TZDIR)\"
|
||||||
|
+CC+= -DTZDIR=\"$(TZDIR)\"
|
||||||
|
+ifeq ($(NLS),1)
|
||||||
|
+CC += -DHAVE_GETTEXT=1 -DTZ_DOMAIN=\"libc\"
|
||||||
|
+endif
|
||||||
|
|
||||||
|
TZCSRCS= zic.c localtime.c asctime.c scheck.c ialloc.c
|
||||||
|
@@ -335,11 +337,13 @@
|
||||||
|
ALL: all date
|
||||||
|
|
||||||
|
-install: all $(DATA) $(REDO) $(TZLIB) $(MANS) $(TABDATA)
|
||||||
|
+install: all $(DATA) $(REDO) $(MANS) $(TABDATA)
|
||||||
|
$(ZIC) -y $(YEARISTYPE) \
|
||||||
|
-d $(TZDIR) -l $(LOCALTIME) -p $(POSIXRULES)
|
||||||
|
-rm -f $(TZDIR)/iso3166.tab $(TZDIR)/zone.tab
|
||||||
|
cp iso3166.tab zone.tab $(TZDIR)/.
|
||||||
|
- -mkdir $(TOPDIR) $(ETCDIR)
|
||||||
|
- cp tzselect zic zdump $(ETCDIR)/.
|
||||||
|
+ -mkdir $(TOPDIR) $(SBINDIR)
|
||||||
|
+ cp zic zdump $(SBINDIR)/.
|
||||||
|
+ -mkdir $(TOPDIR) $(BINDIR)
|
||||||
|
+ cp tzselect $(BINDIR)/.
|
||||||
|
-mkdir $(TOPDIR) $(MANDIR) \
|
||||||
|
$(MANDIR)/man3 $(MANDIR)/man5 $(MANDIR)/man8
|
||||||
|
@@ -351,6 +355,4 @@
|
||||||
|
$(MANDIR)/man8/zic.8
|
||||||
|
cp newctime.3 newtzset.3 $(MANDIR)/man3/.
|
||||||
|
- cp tzfile.5 $(MANDIR)/man5/.
|
||||||
|
- cp tzselect.8 zdump.8 zic.8 $(MANDIR)/man8/.
|
||||||
|
|
||||||
|
INSTALL: ALL install date.1
|
||||||
|
@@ -392,7 +394,7 @@
|
||||||
|
# to using them, or vice versa.
|
||||||
|
other_two: zic leapseconds $(TDATA)
|
||||||
|
- $(ZIC) -y $(YEARISTYPE) -d $(TZDIR)-posix -L /dev/null $(TDATA)
|
||||||
|
+ $(ZIC) -y $(YEARISTYPE) -d $(TZDIR)/posix -L /dev/null $(TDATA)
|
||||||
|
$(ZIC) -y $(YEARISTYPE) \
|
||||||
|
- -d $(TZDIR)-leaps -L leapseconds $(TDATA)
|
||||||
|
+ -d $(TZDIR)/right -L leapseconds $(TDATA)
|
||||||
|
|
||||||
|
posix_right: posix_only other_two
|
||||||
|
@@ -422,5 +424,5 @@
|
||||||
|
chmod +x $@
|
||||||
|
|
||||||
|
-check: check_character_set check_tables check_web
|
||||||
|
+check: check_character_set check_tables
|
||||||
|
|
||||||
|
check_character_set: $(ENCHILADA)
|
@ -0,0 +1,119 @@
|
|||||||
|
- Fix up default paths
|
||||||
|
- Support env CC
|
||||||
|
- Don't build/install libtz.a
|
||||||
|
- Don't install man-pages provided by sys-apps/man-pages
|
||||||
|
- Move zic, zdump to sbin and tzselect to bin ala glibc
|
||||||
|
- Install posix zoneinfo into zoneinfo/posix/ instead of zoneinfo-posix/ ala glibc
|
||||||
|
- Install leaps zoneinfo into zoneinfo/right/ ala glibc
|
||||||
|
|
||||||
|
--- a/Makefile
|
||||||
|
+++ b/Makefile
|
||||||
|
@@ -45,21 +45,21 @@
|
||||||
|
|
||||||
|
# Everything gets put in subdirectories of. . .
|
||||||
|
|
||||||
|
-TOPDIR= /usr/local
|
||||||
|
+TOPDIR= /usr
|
||||||
|
|
||||||
|
# "Compiled" time zone information is placed in the "TZDIR" directory
|
||||||
|
# (and subdirectories).
|
||||||
|
# Use an absolute path name for TZDIR unless you're just testing the software.
|
||||||
|
|
||||||
|
TZDIR_BASENAME= zoneinfo
|
||||||
|
-TZDIR= $(TOPDIR)/etc/$(TZDIR_BASENAME)
|
||||||
|
+TZDIR= $(TOPDIR)/share/$(TZDIR_BASENAME)
|
||||||
|
|
||||||
|
# Types to try, as an alternative to time_t. int64_t should be first.
|
||||||
|
TIME_T_ALTERNATIVES= int64_t int32_t uint32_t uint64_t
|
||||||
|
|
||||||
|
# The "tzselect", "zic", and "zdump" commands get installed in. . .
|
||||||
|
|
||||||
|
-ETCDIR= $(TOPDIR)/etc
|
||||||
|
+SBINDIR= $(TOPDIR)/sbin
|
||||||
|
|
||||||
|
# If you "make INSTALL", the "date" command gets installed in. . .
|
||||||
|
|
||||||
|
@@ -67,7 +67,7 @@
|
||||||
|
|
||||||
|
# Manual pages go in subdirectories of. . .
|
||||||
|
|
||||||
|
-MANDIR= $(TOPDIR)/man
|
||||||
|
+MANDIR= $(TOPDIR)/share/man
|
||||||
|
|
||||||
|
# Library functions are put in an archive in LIBDIR.
|
||||||
|
|
||||||
|
@@ -294,8 +294,10 @@
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
-cc= cc
|
||||||
|
-CC= $(cc) -DTZDIR=\"$(TZDIR)\"
|
||||||
|
+CC+= -DTZDIR=\"$(TZDIR)\"
|
||||||
|
+ifeq ($(NLS),1)
|
||||||
|
+CC+= -DHAVE_GETTEXT=1 -DTZ_DOMAIN=\"libc\"
|
||||||
|
+endif
|
||||||
|
|
||||||
|
TZCSRCS= zic.c localtime.c asctime.c scheck.c ialloc.c
|
||||||
|
TZCOBJS= zic.o localtime.o asctime.o scheck.o ialloc.o
|
||||||
|
@@ -338,14 +340,16 @@
|
||||||
|
|
||||||
|
ALL: all date
|
||||||
|
|
||||||
|
-install: all $(DATA) $(REDO) $(DESTDIR)$(TZLIB) $(MANS)
|
||||||
|
+install: all $(DATA) $(REDO) $(MANS)
|
||||||
|
$(ZIC) -y $(YEARISTYPE) \
|
||||||
|
-d $(DESTDIR)$(TZDIR) -l $(LOCALTIME) -p $(POSIXRULES)
|
||||||
|
-rm -f $(DESTDIR)$(TZDIR)/iso3166.tab \
|
||||||
|
$(DESTDIR)$(TZDIR)/zone.tab
|
||||||
|
cp iso3166.tab zone.tab $(DESTDIR)$(TZDIR)/.
|
||||||
|
- -mkdir $(DESTDIR)$(TOPDIR) $(DESTDIR)$(ETCDIR)
|
||||||
|
- cp tzselect zic zdump $(DESTDIR)$(ETCDIR)/.
|
||||||
|
+ -mkdir $(DESTDIR)$(TOPDIR) $(DESTDIR)$(SBINDIR)
|
||||||
|
+ cp zic zdump $(DESTDIR)$(SBINDIR)/.
|
||||||
|
+ -mkdir $(DESTDIR)$(TOPDIR) $(DESTDIR)$(BINDIR)
|
||||||
|
+ cp tzselect $(DESTDIR)$(BINDIR)/.
|
||||||
|
-mkdir $(DESTDIR)$(TOPDIR) $(DESTDIR)$(MANDIR) \
|
||||||
|
$(DESTDIR)$(MANDIR)/man3 $(DESTDIR)$(MANDIR)/man5 \
|
||||||
|
$(DESTDIR)$(MANDIR)/man8
|
||||||
|
@@ -356,8 +360,6 @@
|
||||||
|
$(DESTDIR)$(MANDIR)/man8/zdump.8 \
|
||||||
|
$(DESTDIR)$(MANDIR)/man8/zic.8
|
||||||
|
cp newctime.3 newtzset.3 $(DESTDIR)$(MANDIR)/man3/.
|
||||||
|
- cp tzfile.5 $(DESTDIR)$(MANDIR)/man5/.
|
||||||
|
- cp tzselect.8 zdump.8 zic.8 $(DESTDIR)$(MANDIR)/man8/.
|
||||||
|
|
||||||
|
INSTALL: ALL install date.1
|
||||||
|
-mkdir $(DESTDIR)$(TOPDIR) $(DESTDIR)$(BINDIR)
|
||||||
|
@@ -405,17 +407,17 @@
|
||||||
|
right_posix: right_only leapseconds
|
||||||
|
rm -fr $(DESTDIR)$(TZDIR)-leaps
|
||||||
|
- ln -s $(TZDIR_BASENAME) $(DESTDIR)$(TZDIR)-leaps || \
|
||||||
|
+ ln -s . $(DESTDIR)$(TZDIR)/right || \
|
||||||
|
- $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)-leaps \
|
||||||
|
+ $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/right \
|
||||||
|
-L leapseconds $(TDATA)
|
||||||
|
- $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)-posix \
|
||||||
|
+ $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/posix \
|
||||||
|
-L /dev/null $(TDATA)
|
||||||
|
|
||||||
|
posix_right: posix_only leapseconds
|
||||||
|
rm -fr $(DESTDIR)$(TZDIR)-posix
|
||||||
|
- ln -s $(TZDIR_BASENAME) $(DESTDIR)$(TZDIR)-posix || \
|
||||||
|
+ ln -s . $(DESTDIR)$(TZDIR)/posix || \
|
||||||
|
- $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)-posix \
|
||||||
|
+ $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/posix \
|
||||||
|
-L /dev/null $(TDATA)
|
||||||
|
- $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)-leaps \
|
||||||
|
+ $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/right \
|
||||||
|
-L leapseconds $(TDATA)
|
||||||
|
|
||||||
|
zones: $(REDO)
|
||||||
|
@@ -442,7 +442,7 @@
|
||||||
|
<$? >$@
|
||||||
|
chmod +x $@
|
||||||
|
|
||||||
|
-check: check_character_set check_tables check_web
|
||||||
|
+check: check_character_set check_tables
|
||||||
|
|
||||||
|
check_character_set: $(ENCHILADA)
|
||||||
|
sharp='#'; ! grep -n $(INVALID_CHAR) $(ENCHILADA)
|
@ -0,0 +1,112 @@
|
|||||||
|
- Fix up default paths
|
||||||
|
- Support env CC
|
||||||
|
- Don't build/install libtz.a
|
||||||
|
- Don't install man-pages provided by sys-apps/man-pages
|
||||||
|
- Move zic, zdump to sbin and tzselect to bin ala glibc
|
||||||
|
- Install posix zoneinfo into zoneinfo/posix/ instead of zoneinfo-posix/ ala glibc
|
||||||
|
- Install leaps zoneinfo into zoneinfo/right/ ala glibc
|
||||||
|
|
||||||
|
--- a/Makefile
|
||||||
|
+++ b/Makefile
|
||||||
|
@@ -45,21 +45,21 @@ POSIXRULES= America/New_York
|
||||||
|
|
||||||
|
# Everything gets put in subdirectories of. . .
|
||||||
|
|
||||||
|
-TOPDIR= /usr/local
|
||||||
|
+TOPDIR= /usr
|
||||||
|
|
||||||
|
# "Compiled" time zone information is placed in the "TZDIR" directory
|
||||||
|
# (and subdirectories).
|
||||||
|
# Use an absolute path name for TZDIR unless you're just testing the software.
|
||||||
|
|
||||||
|
TZDIR_BASENAME= zoneinfo
|
||||||
|
-TZDIR= $(TOPDIR)/etc/$(TZDIR_BASENAME)
|
||||||
|
+TZDIR= $(TOPDIR)/share/$(TZDIR_BASENAME)
|
||||||
|
|
||||||
|
# Types to try, as an alternative to time_t. int64_t should be first.
|
||||||
|
TIME_T_ALTERNATIVES= int64_t int32_t uint32_t uint64_t
|
||||||
|
|
||||||
|
# The "tzselect", "zic", and "zdump" commands get installed in. . .
|
||||||
|
|
||||||
|
-ETCDIR= $(TOPDIR)/etc
|
||||||
|
+SBINDIR= $(TOPDIR)/sbin
|
||||||
|
|
||||||
|
# If you "make INSTALL", the "date" command gets installed in. . .
|
||||||
|
|
||||||
|
@@ -67,7 +67,7 @@ BINDIR= $(TOPDIR)/bin
|
||||||
|
|
||||||
|
# Manual pages go in subdirectories of. . .
|
||||||
|
|
||||||
|
-MANDIR= $(TOPDIR)/man
|
||||||
|
+MANDIR= $(TOPDIR)/share/man
|
||||||
|
|
||||||
|
# Library functions are put in an archive in LIBDIR.
|
||||||
|
|
||||||
|
@@ -298,8 +298,10 @@ GZIPFLAGS= -9n
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
-cc= cc
|
||||||
|
-CC= $(cc) -DTZDIR=\"$(TZDIR)\"
|
||||||
|
+CC+= -DTZDIR=\"$(TZDIR)\"
|
||||||
|
+ifeq ($(NLS),1)
|
||||||
|
+CC+= -DHAVE_GETTEXT=1 -DTZ_DOMAIN=\"libc\"
|
||||||
|
+endif
|
||||||
|
|
||||||
|
AR= ar
|
||||||
|
|
||||||
|
@@ -352,17 +354,14 @@ ALL: all date
|
||||||
|
install: all $(DATA) $(REDO) $(MANS)
|
||||||
|
mkdir -p $(DESTDIR)$(ETCDIR) $(DESTDIR)$(TZDIR) \
|
||||||
|
- $(DESTDIR)$(LIBDIR) \
|
||||||
|
+ $(DESTDIR)$(SBINDIR) $(DESTDIR)$(BINDIR) \
|
||||||
|
$(DESTDIR)$(MANDIR)/man3 $(DESTDIR)$(MANDIR)/man5 \
|
||||||
|
$(DESTDIR)$(MANDIR)/man8
|
||||||
|
$(ZIC) -y $(YEARISTYPE) \
|
||||||
|
-d $(DESTDIR)$(TZDIR) -l $(LOCALTIME) -p $(POSIXRULES)
|
||||||
|
cp -f iso3166.tab zone.tab $(DESTDIR)$(TZDIR)/.
|
||||||
|
- cp tzselect zic zdump $(DESTDIR)$(ETCDIR)/.
|
||||||
|
+ cp zic zdump $(DESTDIR)$(SBINDIR)/.
|
||||||
|
+ cp tzselect $(DESTDIR)$(BINDIR)/.
|
||||||
|
- cp libtz.a $(DESTDIR)$(LIBDIR)/.
|
||||||
|
- $(RANLIB) $(DESTDIR)$(LIBDIR)/libtz.a
|
||||||
|
cp -f newctime.3 newtzset.3 $(DESTDIR)$(MANDIR)/man3/.
|
||||||
|
- cp -f tzfile.5 $(DESTDIR)$(MANDIR)/man5/.
|
||||||
|
- cp -f tzselect.8 zdump.8 zic.8 $(DESTDIR)$(MANDIR)/man8/.
|
||||||
|
|
||||||
|
INSTALL: ALL install date.1
|
||||||
|
mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
|
||||||
|
@@ -406,18 +408,18 @@ right_only: zic leapseconds $(TDATA)
|
||||||
|
# to using them, or vice versa.
|
||||||
|
right_posix: right_only leapseconds
|
||||||
|
rm -fr $(DESTDIR)$(TZDIR)-leaps
|
||||||
|
- ln -s $(TZDIR_BASENAME) $(DESTDIR)$(TZDIR)-leaps || \
|
||||||
|
- $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)-leaps \
|
||||||
|
+ ln -s . $(DESTDIR)$(TZDIR)/right || \
|
||||||
|
+ $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/right \
|
||||||
|
-L leapseconds $(TDATA)
|
||||||
|
- $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)-posix \
|
||||||
|
+ $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/posix \
|
||||||
|
-L /dev/null $(TDATA)
|
||||||
|
|
||||||
|
posix_right: posix_only leapseconds
|
||||||
|
rm -fr $(DESTDIR)$(TZDIR)-posix
|
||||||
|
- ln -s $(TZDIR_BASENAME) $(DESTDIR)$(TZDIR)-posix || \
|
||||||
|
- $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)-posix \
|
||||||
|
+ ln -s . $(DESTDIR)$(TZDIR)/posix || \
|
||||||
|
+ $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/posix \
|
||||||
|
-L /dev/null $(TDATA)
|
||||||
|
- $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)-leaps \
|
||||||
|
+ $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/right \
|
||||||
|
-L leapseconds $(TDATA)
|
||||||
|
|
||||||
|
zones: $(REDO)
|
||||||
|
@@ -440,7 +442,7 @@ tzselect: tzselect.ksh
|
||||||
|
<$? >$@
|
||||||
|
chmod +x $@
|
||||||
|
|
||||||
|
-check: check_character_set check_tables check_web
|
||||||
|
+check: check_character_set check_tables
|
||||||
|
|
||||||
|
check_character_set: $(ENCHILADA)
|
||||||
|
sharp='#'; ! grep -n $(INVALID_CHAR) $(ENCHILADA)
|
@ -0,0 +1,112 @@
|
|||||||
|
- Fix up default paths
|
||||||
|
- Support env CC
|
||||||
|
- Don't build/install libtz.a
|
||||||
|
- Don't install man-pages provided by sys-apps/man-pages
|
||||||
|
- Move zic, zdump to sbin and tzselect to bin ala glibc
|
||||||
|
- Install posix zoneinfo into zoneinfo/posix/ instead of zoneinfo-posix/ ala glibc
|
||||||
|
- Install leaps zoneinfo into zoneinfo/right/ ala glibc
|
||||||
|
|
||||||
|
--- a/Makefile
|
||||||
|
+++ b/Makefile
|
||||||
|
@@ -45,21 +45,21 @@ POSIXRULES= America/New_York
|
||||||
|
|
||||||
|
# Everything gets put in subdirectories of. . .
|
||||||
|
|
||||||
|
-TOPDIR= /usr/local
|
||||||
|
+TOPDIR= /usr
|
||||||
|
|
||||||
|
# "Compiled" time zone information is placed in the "TZDIR" directory
|
||||||
|
# (and subdirectories).
|
||||||
|
# Use an absolute path name for TZDIR unless you're just testing the software.
|
||||||
|
|
||||||
|
TZDIR_BASENAME= zoneinfo
|
||||||
|
-TZDIR= $(TOPDIR)/etc/$(TZDIR_BASENAME)
|
||||||
|
+TZDIR= $(TOPDIR)/share/$(TZDIR_BASENAME)
|
||||||
|
|
||||||
|
# Types to try, as an alternative to time_t. int64_t should be first.
|
||||||
|
TIME_T_ALTERNATIVES= int64_t int32_t uint32_t uint64_t
|
||||||
|
|
||||||
|
# The "tzselect", "zic", and "zdump" commands get installed in. . .
|
||||||
|
|
||||||
|
-ETCDIR= $(TOPDIR)/etc
|
||||||
|
+SBINDIR= $(TOPDIR)/sbin
|
||||||
|
|
||||||
|
# If you "make INSTALL", the "date" command gets installed in. . .
|
||||||
|
|
||||||
|
@@ -67,7 +67,7 @@ BINDIR= $(TOPDIR)/bin
|
||||||
|
|
||||||
|
# Manual pages go in subdirectories of. . .
|
||||||
|
|
||||||
|
-MANDIR= $(TOPDIR)/man
|
||||||
|
+MANDIR= $(TOPDIR)/share/man
|
||||||
|
|
||||||
|
# Library functions are put in an archive in LIBDIR.
|
||||||
|
|
||||||
|
@@ -298,8 +298,10 @@ GZIPFLAGS= -9n
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
-cc= cc
|
||||||
|
-CC= $(cc) -DTZDIR=\"$(TZDIR)\"
|
||||||
|
+CC+= -DTZDIR=\"$(TZDIR)\"
|
||||||
|
+ifeq ($(NLS),1)
|
||||||
|
+CC+= -DHAVE_GETTEXT=1 -DTZ_DOMAIN=\"libc\"
|
||||||
|
+endif
|
||||||
|
|
||||||
|
AR= ar
|
||||||
|
|
||||||
|
@@ -352,17 +354,14 @@ ALL: all date
|
||||||
|
install: all $(DATA) $(REDO) $(MANS)
|
||||||
|
mkdir -p $(DESTDIR)$(ETCDIR) $(DESTDIR)$(TZDIR) \
|
||||||
|
- $(DESTDIR)$(LIBDIR) \
|
||||||
|
+ $(DESTDIR)$(SBINDIR) $(DESTDIR)$(BINDIR) \
|
||||||
|
$(DESTDIR)$(MANDIR)/man3 $(DESTDIR)$(MANDIR)/man5 \
|
||||||
|
$(DESTDIR)$(MANDIR)/man8
|
||||||
|
$(ZIC) -y $(YEARISTYPE) \
|
||||||
|
-d $(DESTDIR)$(TZDIR) -l $(LOCALTIME) -p $(POSIXRULES)
|
||||||
|
cp -f iso3166.tab $(ZONETABLES) $(DESTDIR)$(TZDIR)/.
|
||||||
|
- cp tzselect zic zdump $(DESTDIR)$(ETCDIR)/.
|
||||||
|
+ cp zic zdump $(DESTDIR)$(SBINDIR)/.
|
||||||
|
+ cp tzselect $(DESTDIR)$(BINDIR)/.
|
||||||
|
- cp libtz.a $(DESTDIR)$(LIBDIR)/.
|
||||||
|
- $(RANLIB) $(DESTDIR)$(LIBDIR)/libtz.a
|
||||||
|
cp -f newctime.3 newtzset.3 $(DESTDIR)$(MANDIR)/man3/.
|
||||||
|
- cp -f tzfile.5 $(DESTDIR)$(MANDIR)/man5/.
|
||||||
|
- cp -f tzselect.8 zdump.8 zic.8 $(DESTDIR)$(MANDIR)/man8/.
|
||||||
|
|
||||||
|
INSTALL: ALL install date.1
|
||||||
|
mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
|
||||||
|
@@ -406,18 +408,18 @@ right_only: zic leapseconds $(TDATA)
|
||||||
|
# to using them, or vice versa.
|
||||||
|
right_posix: right_only leapseconds
|
||||||
|
rm -fr $(DESTDIR)$(TZDIR)-leaps
|
||||||
|
- ln -s $(TZDIR_BASENAME) $(DESTDIR)$(TZDIR)-leaps || \
|
||||||
|
- $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)-leaps \
|
||||||
|
+ ln -s . $(DESTDIR)$(TZDIR)/right || \
|
||||||
|
+ $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/right \
|
||||||
|
-L leapseconds $(TDATA)
|
||||||
|
- $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)-posix \
|
||||||
|
+ $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/posix \
|
||||||
|
-L /dev/null $(TDATA)
|
||||||
|
|
||||||
|
posix_right: posix_only leapseconds
|
||||||
|
rm -fr $(DESTDIR)$(TZDIR)-posix
|
||||||
|
- ln -s $(TZDIR_BASENAME) $(DESTDIR)$(TZDIR)-posix || \
|
||||||
|
- $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)-posix \
|
||||||
|
+ ln -s . $(DESTDIR)$(TZDIR)/posix || \
|
||||||
|
+ $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/posix \
|
||||||
|
-L /dev/null $(TDATA)
|
||||||
|
- $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)-leaps \
|
||||||
|
+ $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/right \
|
||||||
|
-L leapseconds $(TDATA)
|
||||||
|
|
||||||
|
zones: $(REDO)
|
||||||
|
@@ -440,7 +442,7 @@ tzselect: tzselect.ksh
|
||||||
|
<$? >$@
|
||||||
|
chmod +x $@
|
||||||
|
|
||||||
|
-check: check_character_set check_tables check_web
|
||||||
|
+check: check_character_set check_tables
|
||||||
|
|
||||||
|
check_character_set: $(ENCHILADA)
|
||||||
|
sharp='#'; ! grep -n $(INVALID_CHAR) $(ENCHILADA)
|
@ -0,0 +1,113 @@
|
|||||||
|
- Fix up default paths
|
||||||
|
- Support env CC
|
||||||
|
- Don't build/install libtz.a
|
||||||
|
- Don't install man-pages provided by sys-apps/man-pages
|
||||||
|
- Move zic, zdump to sbin and tzselect to bin ala glibc
|
||||||
|
- Install posix zoneinfo into zoneinfo/posix/ instead of zoneinfo-posix/ ala glibc
|
||||||
|
- Install leaps zoneinfo into zoneinfo/right/ ala glibc
|
||||||
|
- Do not run network based unittests
|
||||||
|
|
||||||
|
--- a/Makefile
|
||||||
|
+++ b/Makefile
|
||||||
|
@@ -45,21 +45,21 @@ POSIXRULES= America/New_York
|
||||||
|
|
||||||
|
# Everything gets put in subdirectories of. . .
|
||||||
|
|
||||||
|
-TOPDIR= /usr/local
|
||||||
|
+TOPDIR= /usr
|
||||||
|
|
||||||
|
# "Compiled" time zone information is placed in the "TZDIR" directory
|
||||||
|
# (and subdirectories).
|
||||||
|
# Use an absolute path name for TZDIR unless you're just testing the software.
|
||||||
|
|
||||||
|
TZDIR_BASENAME= zoneinfo
|
||||||
|
-TZDIR= $(TOPDIR)/etc/$(TZDIR_BASENAME)
|
||||||
|
+TZDIR= $(TOPDIR)/share/$(TZDIR_BASENAME)
|
||||||
|
|
||||||
|
# Types to try, as an alternative to time_t. int64_t should be first.
|
||||||
|
TIME_T_ALTERNATIVES= int64_t int32_t uint32_t uint64_t
|
||||||
|
|
||||||
|
# The "tzselect", "zic", and "zdump" commands get installed in. . .
|
||||||
|
|
||||||
|
-ETCDIR= $(TOPDIR)/etc
|
||||||
|
+SBINDIR= $(TOPDIR)/sbin
|
||||||
|
|
||||||
|
# If you "make INSTALL", the "date" command gets installed in. . .
|
||||||
|
|
||||||
|
@@ -67,7 +67,7 @@ BINDIR= $(TOPDIR)/bin
|
||||||
|
|
||||||
|
# Manual pages go in subdirectories of. . .
|
||||||
|
|
||||||
|
-MANDIR= $(TOPDIR)/man
|
||||||
|
+MANDIR= $(TOPDIR)/share/man
|
||||||
|
|
||||||
|
# Library functions are put in an archive in LIBDIR.
|
||||||
|
|
||||||
|
@@ -298,8 +298,10 @@ GZIPFLAGS= -9n
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
-cc= cc
|
||||||
|
-CC= $(cc) -DTZDIR=\"$(TZDIR)\"
|
||||||
|
+CC+= -DTZDIR=\"$(TZDIR)\"
|
||||||
|
+ifeq ($(NLS),1)
|
||||||
|
+CC+= -DHAVE_GETTEXT=1 -DTZ_DOMAIN=\"libc\"
|
||||||
|
+endif
|
||||||
|
|
||||||
|
AR= ar
|
||||||
|
|
||||||
|
@@ -352,17 +354,14 @@ ALL: all date
|
||||||
|
install: all $(DATA) $(REDO) $(MANS)
|
||||||
|
mkdir -p $(DESTDIR)$(ETCDIR) $(DESTDIR)$(TZDIR) \
|
||||||
|
- $(DESTDIR)$(LIBDIR) \
|
||||||
|
+ $(DESTDIR)$(SBINDIR) $(DESTDIR)$(BINDIR) \
|
||||||
|
$(DESTDIR)$(MANDIR)/man3 $(DESTDIR)$(MANDIR)/man5 \
|
||||||
|
$(DESTDIR)$(MANDIR)/man8
|
||||||
|
$(ZIC) -y $(YEARISTYPE) \
|
||||||
|
-d $(DESTDIR)$(TZDIR) -l $(LOCALTIME) -p $(POSIXRULES)
|
||||||
|
cp -f iso3166.tab $(ZONETABLES) $(DESTDIR)$(TZDIR)/.
|
||||||
|
- cp tzselect zic zdump $(DESTDIR)$(ETCDIR)/.
|
||||||
|
+ cp zic zdump $(DESTDIR)$(SBINDIR)/.
|
||||||
|
+ cp tzselect $(DESTDIR)$(BINDIR)/.
|
||||||
|
- cp libtz.a $(DESTDIR)$(LIBDIR)/.
|
||||||
|
- $(RANLIB) $(DESTDIR)$(LIBDIR)/libtz.a
|
||||||
|
cp -f newctime.3 newtzset.3 $(DESTDIR)$(MANDIR)/man3/.
|
||||||
|
- cp -f tzfile.5 $(DESTDIR)$(MANDIR)/man5/.
|
||||||
|
- cp -f tzselect.8 zdump.8 zic.8 $(DESTDIR)$(MANDIR)/man8/.
|
||||||
|
|
||||||
|
INSTALL: ALL install date.1
|
||||||
|
mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
|
||||||
|
@@ -406,18 +408,18 @@ right_only: zic leapseconds $(TDATA)
|
||||||
|
# to using them, or vice versa.
|
||||||
|
right_posix: right_only leapseconds
|
||||||
|
rm -fr $(DESTDIR)$(TZDIR)-leaps
|
||||||
|
- ln -s $(TZDIR_BASENAME) $(DESTDIR)$(TZDIR)-leaps || \
|
||||||
|
- $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)-leaps \
|
||||||
|
+ ln -s . $(DESTDIR)$(TZDIR)/right || \
|
||||||
|
+ $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/right \
|
||||||
|
-L leapseconds $(TDATA)
|
||||||
|
- $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)-posix \
|
||||||
|
+ $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/posix \
|
||||||
|
-L /dev/null $(TDATA)
|
||||||
|
|
||||||
|
posix_right: posix_only leapseconds
|
||||||
|
rm -fr $(DESTDIR)$(TZDIR)-posix
|
||||||
|
- ln -s $(TZDIR_BASENAME) $(DESTDIR)$(TZDIR)-posix || \
|
||||||
|
- $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)-posix \
|
||||||
|
+ ln -s . $(DESTDIR)$(TZDIR)/posix || \
|
||||||
|
+ $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/posix \
|
||||||
|
-L /dev/null $(TDATA)
|
||||||
|
- $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)-leaps \
|
||||||
|
+ $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/right \
|
||||||
|
-L leapseconds $(TDATA)
|
||||||
|
|
||||||
|
posix_packrat: posix_only backzone
|
||||||
|
@@ -440,7 +442,7 @@ tzselect: tzselect.ksh
|
||||||
|
<$? >$@
|
||||||
|
chmod +x $@
|
||||||
|
|
||||||
|
-check: check_character_set check_white_space check_tables check_web
|
||||||
|
+check: check_character_set check_white_space check_tables
|
||||||
|
|
||||||
|
check_character_set: $(ENCHILADA)
|
||||||
|
LC_ALL=en_US.utf8 && export LC_ALL && \
|
@ -0,0 +1,113 @@
|
|||||||
|
- Fix up default paths
|
||||||
|
- Support env CC
|
||||||
|
- Don't build/install libtz.a
|
||||||
|
- Don't install man-pages provided by sys-apps/man-pages
|
||||||
|
- Move zic, zdump to sbin and tzselect to bin ala glibc
|
||||||
|
- Install posix zoneinfo into zoneinfo/posix/ instead of zoneinfo-posix/ ala glibc
|
||||||
|
- Install leaps zoneinfo into zoneinfo/right/ ala glibc
|
||||||
|
- Do not run network based unittests
|
||||||
|
|
||||||
|
--- a/Makefile
|
||||||
|
+++ b/Makefile
|
||||||
|
@@ -45,21 +45,21 @@ POSIXRULES= America/New_York
|
||||||
|
|
||||||
|
# Everything gets put in subdirectories of. . .
|
||||||
|
|
||||||
|
-TOPDIR= /usr/local
|
||||||
|
+TOPDIR= /usr
|
||||||
|
|
||||||
|
# "Compiled" time zone information is placed in the "TZDIR" directory
|
||||||
|
# (and subdirectories).
|
||||||
|
# Use an absolute path name for TZDIR unless you're just testing the software.
|
||||||
|
|
||||||
|
TZDIR_BASENAME= zoneinfo
|
||||||
|
-TZDIR= $(TOPDIR)/etc/$(TZDIR_BASENAME)
|
||||||
|
+TZDIR= $(TOPDIR)/share/$(TZDIR_BASENAME)
|
||||||
|
|
||||||
|
# Types to try, as an alternative to time_t. int64_t should be first.
|
||||||
|
TIME_T_ALTERNATIVES= int64_t int32_t uint32_t uint64_t
|
||||||
|
|
||||||
|
# The "tzselect", "zic", and "zdump" commands get installed in. . .
|
||||||
|
|
||||||
|
-ETCDIR= $(TOPDIR)/etc
|
||||||
|
+SBINDIR= $(TOPDIR)/sbin
|
||||||
|
|
||||||
|
# If you "make INSTALL", the "date" command gets installed in. . .
|
||||||
|
|
||||||
|
@@ -67,7 +67,7 @@ BINDIR= $(TOPDIR)/bin
|
||||||
|
|
||||||
|
# Manual pages go in subdirectories of. . .
|
||||||
|
|
||||||
|
-MANDIR= $(TOPDIR)/man
|
||||||
|
+MANDIR= $(TOPDIR)/share/man
|
||||||
|
|
||||||
|
# Library functions are put in an archive in LIBDIR.
|
||||||
|
|
||||||
|
@@ -298,8 +298,10 @@ GZIPFLAGS= -9n
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
-cc= cc
|
||||||
|
-CC= $(cc) -DTZDIR=\"$(TZDIR)\"
|
||||||
|
+CPPFLAGS+= -DTZDIR=\"$(TZDIR)\"
|
||||||
|
+ifeq ($(NLS),1)
|
||||||
|
+CPPFLAGS+= -DHAVE_GETTEXT=1 -DTZ_DOMAIN=\"libc\"
|
||||||
|
+endif
|
||||||
|
|
||||||
|
AR= ar
|
||||||
|
|
||||||
|
@@ -352,17 +354,14 @@ ALL: all date
|
||||||
|
install: all $(DATA) $(REDO) $(MANS)
|
||||||
|
mkdir -p $(DESTDIR)$(ETCDIR) $(DESTDIR)$(TZDIR) \
|
||||||
|
- $(DESTDIR)$(LIBDIR) \
|
||||||
|
+ $(DESTDIR)$(SBINDIR) $(DESTDIR)$(BINDIR) \
|
||||||
|
$(DESTDIR)$(MANDIR)/man3 $(DESTDIR)$(MANDIR)/man5 \
|
||||||
|
$(DESTDIR)$(MANDIR)/man8
|
||||||
|
$(ZIC) -y $(YEARISTYPE) \
|
||||||
|
-d $(DESTDIR)$(TZDIR) -l $(LOCALTIME) -p $(POSIXRULES)
|
||||||
|
cp -f iso3166.tab $(ZONETABLES) $(DESTDIR)$(TZDIR)/.
|
||||||
|
- cp tzselect zic zdump $(DESTDIR)$(ETCDIR)/.
|
||||||
|
+ cp zic zdump $(DESTDIR)$(SBINDIR)/.
|
||||||
|
+ cp tzselect $(DESTDIR)$(BINDIR)/.
|
||||||
|
- cp libtz.a $(DESTDIR)$(LIBDIR)/.
|
||||||
|
- $(RANLIB) $(DESTDIR)$(LIBDIR)/libtz.a
|
||||||
|
cp -f newctime.3 newtzset.3 $(DESTDIR)$(MANDIR)/man3/.
|
||||||
|
- cp -f tzfile.5 $(DESTDIR)$(MANDIR)/man5/.
|
||||||
|
- cp -f tzselect.8 zdump.8 zic.8 $(DESTDIR)$(MANDIR)/man8/.
|
||||||
|
|
||||||
|
INSTALL: ALL install date.1
|
||||||
|
mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
|
||||||
|
@@ -406,18 +408,18 @@ right_only: zic leapseconds $(TDATA)
|
||||||
|
# to using them, or vice versa.
|
||||||
|
right_posix: right_only leapseconds
|
||||||
|
rm -fr $(DESTDIR)$(TZDIR)-leaps
|
||||||
|
- ln -s $(TZDIR_BASENAME) $(DESTDIR)$(TZDIR)-leaps || \
|
||||||
|
- $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)-leaps \
|
||||||
|
+ ln -s . $(DESTDIR)$(TZDIR)/right || \
|
||||||
|
+ $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/right \
|
||||||
|
-L leapseconds $(TDATA)
|
||||||
|
- $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)-posix \
|
||||||
|
+ $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/posix \
|
||||||
|
-L /dev/null $(TDATA)
|
||||||
|
|
||||||
|
posix_right: posix_only leapseconds
|
||||||
|
rm -fr $(DESTDIR)$(TZDIR)-posix
|
||||||
|
- ln -s $(TZDIR_BASENAME) $(DESTDIR)$(TZDIR)-posix || \
|
||||||
|
- $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)-posix \
|
||||||
|
+ ln -s . $(DESTDIR)$(TZDIR)/posix || \
|
||||||
|
+ $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/posix \
|
||||||
|
-L /dev/null $(TDATA)
|
||||||
|
- $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)-leaps \
|
||||||
|
+ $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/right \
|
||||||
|
-L leapseconds $(TDATA)
|
||||||
|
|
||||||
|
posix_packrat: posix_only backzone
|
||||||
|
@@ -440,7 +442,7 @@ tzselect: tzselect.ksh
|
||||||
|
chmod +x $@
|
||||||
|
|
||||||
|
check: check_character_set check_white_space check_sorted \
|
||||||
|
- check_tables check_web
|
||||||
|
+ check_tables
|
||||||
|
|
||||||
|
check_character_set: $(ENCHILADA)
|
||||||
|
LC_ALL=en_US.utf8 && export LC_ALL && \
|
@ -0,0 +1,113 @@
|
|||||||
|
- Fix up default paths
|
||||||
|
- Support env CC
|
||||||
|
- Don't build/install libtz.a
|
||||||
|
- Don't install man-pages provided by sys-apps/man-pages
|
||||||
|
- Move zic, zdump to sbin and tzselect to bin ala glibc
|
||||||
|
- Install posix zoneinfo into zoneinfo/posix/ instead of zoneinfo-posix/ ala glibc
|
||||||
|
- Install leaps zoneinfo into zoneinfo/right/ ala glibc
|
||||||
|
- Do not run network based unittests
|
||||||
|
|
||||||
|
--- a/Makefile
|
||||||
|
+++ b/Makefile
|
||||||
|
@@ -45,21 +45,21 @@ POSIXRULES= America/New_York
|
||||||
|
|
||||||
|
# Everything gets put in subdirectories of. . .
|
||||||
|
|
||||||
|
-TOPDIR= /usr/local
|
||||||
|
+TOPDIR= /usr
|
||||||
|
|
||||||
|
# "Compiled" time zone information is placed in the "TZDIR" directory
|
||||||
|
# (and subdirectories).
|
||||||
|
# Use an absolute path name for TZDIR unless you're just testing the software.
|
||||||
|
|
||||||
|
TZDIR_BASENAME= zoneinfo
|
||||||
|
-TZDIR= $(TOPDIR)/etc/$(TZDIR_BASENAME)
|
||||||
|
+TZDIR= $(TOPDIR)/share/$(TZDIR_BASENAME)
|
||||||
|
|
||||||
|
# Types to try, as an alternative to time_t. int64_t should be first.
|
||||||
|
TIME_T_ALTERNATIVES= int64_t int32_t uint32_t uint64_t
|
||||||
|
|
||||||
|
# The "tzselect", "zic", and "zdump" commands get installed in. . .
|
||||||
|
|
||||||
|
-ETCDIR= $(TOPDIR)/etc
|
||||||
|
+SBINDIR= $(TOPDIR)/sbin
|
||||||
|
|
||||||
|
# If you "make INSTALL", the "date" command gets installed in. . .
|
||||||
|
|
||||||
|
@@ -67,7 +67,7 @@ BINDIR= $(TOPDIR)/bin
|
||||||
|
|
||||||
|
# Manual pages go in subdirectories of. . .
|
||||||
|
|
||||||
|
-MANDIR= $(TOPDIR)/man
|
||||||
|
+MANDIR= $(TOPDIR)/share/man
|
||||||
|
|
||||||
|
# Library functions are put in an archive in LIBDIR.
|
||||||
|
|
||||||
|
@@ -298,8 +298,10 @@ GZIPFLAGS= -9n
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
-cc= cc
|
||||||
|
-CC= $(cc) -DTZDIR=\"$(TZDIR)\"
|
||||||
|
+CPPFLAGS+= -DTZDIR=\"$(TZDIR)\"
|
||||||
|
+ifeq ($(NLS),1)
|
||||||
|
+CPPFLAGS+= -DHAVE_GETTEXT=1 -DTZ_DOMAIN=\"libc\"
|
||||||
|
+endif
|
||||||
|
|
||||||
|
AR= ar
|
||||||
|
|
||||||
|
@@ -352,17 +354,14 @@ ALL: all date
|
||||||
|
install: all $(DATA) $(REDO) $(MANS)
|
||||||
|
mkdir -p $(DESTDIR)$(ETCDIR) $(DESTDIR)$(TZDIR) \
|
||||||
|
- $(DESTDIR)$(LIBDIR) \
|
||||||
|
+ $(DESTDIR)$(SBINDIR) $(DESTDIR)$(BINDIR) \
|
||||||
|
$(DESTDIR)$(MANDIR)/man3 $(DESTDIR)$(MANDIR)/man5 \
|
||||||
|
$(DESTDIR)$(MANDIR)/man8
|
||||||
|
$(ZIC) -y $(YEARISTYPE) \
|
||||||
|
-d $(DESTDIR)$(TZDIR) -l $(LOCALTIME) -p $(POSIXRULES)
|
||||||
|
cp -f iso3166.tab $(ZONETABLES) $(DESTDIR)$(TZDIR)/.
|
||||||
|
- cp tzselect zic zdump $(DESTDIR)$(ETCDIR)/.
|
||||||
|
+ cp zic zdump $(DESTDIR)$(SBINDIR)/.
|
||||||
|
+ cp tzselect $(DESTDIR)$(BINDIR)/.
|
||||||
|
- cp libtz.a $(DESTDIR)$(LIBDIR)/.
|
||||||
|
- $(RANLIB) $(DESTDIR)$(LIBDIR)/libtz.a
|
||||||
|
cp -f newctime.3 newtzset.3 $(DESTDIR)$(MANDIR)/man3/.
|
||||||
|
- cp -f tzfile.5 $(DESTDIR)$(MANDIR)/man5/.
|
||||||
|
- cp -f tzselect.8 zdump.8 zic.8 $(DESTDIR)$(MANDIR)/man8/.
|
||||||
|
|
||||||
|
INSTALL: ALL install date.1
|
||||||
|
mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
|
||||||
|
@@ -406,18 +408,18 @@ right_only: zic leapseconds $(TDATA)
|
||||||
|
# to using them, or vice versa.
|
||||||
|
right_posix: right_only leapseconds
|
||||||
|
rm -fr $(DESTDIR)$(TZDIR)-leaps
|
||||||
|
- ln -s $(TZDIR_BASENAME) $(DESTDIR)$(TZDIR)-leaps || \
|
||||||
|
- $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)-leaps \
|
||||||
|
+ ln -s . $(DESTDIR)$(TZDIR)/right || \
|
||||||
|
+ $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/right \
|
||||||
|
-L leapseconds $(TDATA)
|
||||||
|
- $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)-posix \
|
||||||
|
+ $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/posix \
|
||||||
|
-L /dev/null $(TDATA)
|
||||||
|
|
||||||
|
posix_right: posix_only leapseconds
|
||||||
|
rm -fr $(DESTDIR)$(TZDIR)-posix
|
||||||
|
- ln -s $(TZDIR_BASENAME) $(DESTDIR)$(TZDIR)-posix || \
|
||||||
|
- $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)-posix \
|
||||||
|
+ ln -s . $(DESTDIR)$(TZDIR)/posix || \
|
||||||
|
+ $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/posix \
|
||||||
|
-L /dev/null $(TDATA)
|
||||||
|
- $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)-leaps \
|
||||||
|
+ $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/right \
|
||||||
|
-L leapseconds $(TDATA)
|
||||||
|
|
||||||
|
posix_packrat: posix_only backzone
|
||||||
|
@@ -440,7 +442,7 @@ tzselect: tzselect.ksh
|
||||||
|
chmod +x $@
|
||||||
|
|
||||||
|
check: check_character_set check_white_space check_links check_sorted \
|
||||||
|
- check_tables check_web
|
||||||
|
+ check_tables
|
||||||
|
|
||||||
|
check_character_set: $(ENCHILADA)
|
||||||
|
LC_ALL=en_US.utf8 && export LC_ALL && \
|
@ -0,0 +1,86 @@
|
|||||||
|
- Fix up default paths
|
||||||
|
- Support env CC
|
||||||
|
- Don't build/install libtz.a
|
||||||
|
- Don't install man-pages provided by sys-apps/man-pages
|
||||||
|
- Move zic, zdump to sbin and tzselect to bin ala glibc
|
||||||
|
- Do not run network based unittests
|
||||||
|
|
||||||
|
--- a/Makefile
|
||||||
|
+++ b/Makefile
|
||||||
|
@@ -45,21 +45,21 @@ POSIXRULES= America/New_York
|
||||||
|
|
||||||
|
# Everything gets put in subdirectories of. . .
|
||||||
|
|
||||||
|
-TOPDIR= /usr/local
|
||||||
|
+TOPDIR= /usr
|
||||||
|
|
||||||
|
# "Compiled" time zone information is placed in the "TZDIR" directory
|
||||||
|
# (and subdirectories).
|
||||||
|
# Use an absolute path name for TZDIR unless you're just testing the software.
|
||||||
|
|
||||||
|
TZDIR_BASENAME= zoneinfo
|
||||||
|
-TZDIR= $(TOPDIR)/etc/$(TZDIR_BASENAME)
|
||||||
|
+TZDIR= $(TOPDIR)/share/$(TZDIR_BASENAME)
|
||||||
|
|
||||||
|
# Types to try, as an alternative to time_t. int64_t should be first.
|
||||||
|
TIME_T_ALTERNATIVES= int64_t int32_t uint32_t uint64_t
|
||||||
|
|
||||||
|
# The "tzselect", "zic", and "zdump" commands get installed in. . .
|
||||||
|
|
||||||
|
-ETCDIR= $(TOPDIR)/etc
|
||||||
|
+SBINDIR= $(TOPDIR)/sbin
|
||||||
|
|
||||||
|
# If you "make INSTALL", the "date" command gets installed in. . .
|
||||||
|
|
||||||
|
@@ -67,7 +67,7 @@ BINDIR= $(TOPDIR)/bin
|
||||||
|
|
||||||
|
# Manual pages go in subdirectories of. . .
|
||||||
|
|
||||||
|
-MANDIR= $(TOPDIR)/man
|
||||||
|
+MANDIR= $(TOPDIR)/share/man
|
||||||
|
|
||||||
|
# Library functions are put in an archive in LIBDIR.
|
||||||
|
|
||||||
|
@@ -298,8 +298,10 @@ GZIPFLAGS= -9n
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
-cc= cc
|
||||||
|
-CC= $(cc) -DTZDIR=\"$(TZDIR)\"
|
||||||
|
+CPPFLAGS+= -DTZDIR=\"$(TZDIR)\"
|
||||||
|
+ifeq ($(NLS),1)
|
||||||
|
+CPPFLAGS+= -DHAVE_GETTEXT=1 -DTZ_DOMAIN=\"libc\"
|
||||||
|
+endif
|
||||||
|
|
||||||
|
AR= ar
|
||||||
|
|
||||||
|
@@ -352,17 +354,14 @@ ALL: all date
|
||||||
|
install: all $(DATA) $(REDO) $(MANS)
|
||||||
|
mkdir -p $(DESTDIR)$(ETCDIR) $(DESTDIR)$(TZDIR) \
|
||||||
|
- $(DESTDIR)$(LIBDIR) \
|
||||||
|
+ $(DESTDIR)$(SBINDIR) $(DESTDIR)$(BINDIR) \
|
||||||
|
$(DESTDIR)$(MANDIR)/man3 $(DESTDIR)$(MANDIR)/man5 \
|
||||||
|
$(DESTDIR)$(MANDIR)/man8
|
||||||
|
$(ZIC) -y $(YEARISTYPE) \
|
||||||
|
-d $(DESTDIR)$(TZDIR) -l $(LOCALTIME) -p $(POSIXRULES)
|
||||||
|
cp -f iso3166.tab $(ZONETABLES) $(DESTDIR)$(TZDIR)/.
|
||||||
|
- cp tzselect zic zdump $(DESTDIR)$(ETCDIR)/.
|
||||||
|
+ cp zic zdump $(DESTDIR)$(SBINDIR)/.
|
||||||
|
+ cp tzselect $(DESTDIR)$(BINDIR)/.
|
||||||
|
- cp libtz.a $(DESTDIR)$(LIBDIR)/.
|
||||||
|
- $(RANLIB) $(DESTDIR)$(LIBDIR)/libtz.a
|
||||||
|
cp -f newctime.3 newtzset.3 $(DESTDIR)$(MANDIR)/man3/.
|
||||||
|
- cp -f tzfile.5 $(DESTDIR)$(MANDIR)/man5/.
|
||||||
|
- cp -f tzselect.8 zdump.8 zic.8 $(DESTDIR)$(MANDIR)/man8/.
|
||||||
|
|
||||||
|
INSTALL: ALL install date.1
|
||||||
|
mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
|
||||||
|
@@ -440,7 +442,7 @@ tzselect: tzselect.ksh
|
||||||
|
chmod +x $@
|
||||||
|
|
||||||
|
check: check_character_set check_white_space check_links check_sorted \
|
||||||
|
- check_tables check_web
|
||||||
|
+ check_tables
|
||||||
|
|
||||||
|
check_character_set: $(ENCHILADA)
|
||||||
|
LC_ALL=en_US.utf8 && export LC_ALL && \
|
20
sdk_container/src/third_party/portage-stable/sys-libs/timezone-data/metadata.xml
vendored
Normal file
20
sdk_container/src/third_party/portage-stable/sys-libs/timezone-data/metadata.xml
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<herd>toolchain</herd>
|
||||||
|
<maintainer>
|
||||||
|
<email>djc@gentoo.org</email>
|
||||||
|
<name>Dirkjan Ochtman</name>
|
||||||
|
</maintainer>
|
||||||
|
<use>
|
||||||
|
<flag name='leaps_timezone'>
|
||||||
|
Install the set of "right" timezones; these timezones include leap seconds
|
||||||
|
when counting seconds since the epoch (while POSIX does not) as they are
|
||||||
|
based on the TAI (International Atomic Time) clock
|
||||||
|
</flag>
|
||||||
|
<flag name='right_timezone'>
|
||||||
|
Install the set of "right" timezones; these timezones include leap seconds
|
||||||
|
when counting seconds since the epoch (while posix does not)
|
||||||
|
</flag>
|
||||||
|
</use>
|
||||||
|
</pkgmetadata>
|
110
sdk_container/src/third_party/portage-stable/sys-libs/timezone-data/timezone-data-2012j.ebuild
vendored
Normal file
110
sdk_container/src/third_party/portage-stable/sys-libs/timezone-data/timezone-data-2012j.ebuild
vendored
Normal file
@ -0,0 +1,110 @@
|
|||||||
|
# Copyright 1999-2013 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/timezone-data-2012j.ebuild,v 1.3 2013/11/26 20:20:15 hwoarang Exp $
|
||||||
|
|
||||||
|
inherit eutils toolchain-funcs flag-o-matic
|
||||||
|
|
||||||
|
code_ver=${PV}
|
||||||
|
data_ver=${PV}
|
||||||
|
DESCRIPTION="Timezone data (/usr/share/zoneinfo) and utilities (tzselect/zic/zdump)"
|
||||||
|
HOMEPAGE="http://www.iana.org/time-zones http://www.twinsun.com/tz/tz-link.htm"
|
||||||
|
SRC_URI="http://www.iana.org/time-zones/repository/releases/tzdata${data_ver}.tar.gz
|
||||||
|
http://www.iana.org/time-zones/repository/releases/tzcode${code_ver}.tar.gz
|
||||||
|
ftp://munnari.oz.au/pub/tzdata${data_ver}.tar.gz
|
||||||
|
ftp://munnari.oz.au/pub/tzcode${code_ver}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD public-domain"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
||||||
|
IUSE="nls elibc_FreeBSD elibc_glibc"
|
||||||
|
|
||||||
|
RDEPEND="!<sys-libs/glibc-2.3.5"
|
||||||
|
|
||||||
|
S=${WORKDIR}
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
unpack ${A}
|
||||||
|
epatch "${FILESDIR}"/${PN}-2012i-makefile.patch
|
||||||
|
tc-is-cross-compiler && cp -pR "${S}" "${S}"-native
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
local LDLIBS
|
||||||
|
tc-export CC
|
||||||
|
use elibc_FreeBSD && append-flags -DSTD_INSPIRED #138251
|
||||||
|
export NLS=$(usex nls 1 0)
|
||||||
|
if use nls && ! use elibc_glibc ; then
|
||||||
|
LDLIBS+=" -lintl" #154181
|
||||||
|
fi
|
||||||
|
emake \
|
||||||
|
CFLAGS="${CPPFLAGS} ${CFLAGS} -std=gnu99" \
|
||||||
|
LDFLAGS="${LDFLAGS}" \
|
||||||
|
LDLIBS="${LDLIBS}" \
|
||||||
|
|| die "emake failed"
|
||||||
|
if tc-is-cross-compiler ; then
|
||||||
|
emake -C "${S}"-native \
|
||||||
|
CC=$(tc-getBUILD_CC) \
|
||||||
|
CFLAGS="${BUILD_CFLAGS}" \
|
||||||
|
LDFLAGS="${BUILD_LDFLAGS}" \
|
||||||
|
LDLIBS="${LDLIBS}" \
|
||||||
|
zic || die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
local zic=""
|
||||||
|
tc-is-cross-compiler && zic="zic=${S}-native/zic"
|
||||||
|
emake install ${zic} DESTDIR="${D}" || die
|
||||||
|
rm -rf "${D}"/usr/share/zoneinfo-leaps
|
||||||
|
dodoc README Theory
|
||||||
|
dohtml *.htm
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_config() {
|
||||||
|
# make sure the /etc/localtime file does not get stale #127899
|
||||||
|
local tz src etc_lt="${ROOT}etc/localtime"
|
||||||
|
|
||||||
|
if has_version '<sys-apps/baselayout-2' ; then
|
||||||
|
src="${ROOT}etc/conf.d/clock"
|
||||||
|
tz=$(unset TIMEZONE ; source "${src}" ; echo ${TIMEZONE-FOOKABLOIE})
|
||||||
|
else
|
||||||
|
src="${ROOT}etc/timezone"
|
||||||
|
if [[ -e ${src} ]] ; then
|
||||||
|
tz=$(sed -e 's:#.*::' -e 's:[[:space:]]*::g' -e '/^$/d' "${src}")
|
||||||
|
else
|
||||||
|
tz="FOOKABLOIE"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
[[ -z ${tz} ]] && return 0
|
||||||
|
|
||||||
|
if [[ ${tz} == "FOOKABLOIE" ]] ; then
|
||||||
|
elog "You do not have TIMEZONE set in ${src}."
|
||||||
|
|
||||||
|
if [[ ! -e ${etc_lt} ]] ; then
|
||||||
|
# if /etc/localtime is a symlink somewhere, assume they
|
||||||
|
# know what they're doing and they're managing it themselves
|
||||||
|
if [[ ! -L ${etc_lt} ]] ; then
|
||||||
|
cp -f "${ROOT}"/usr/share/zoneinfo/Factory "${etc_lt}"
|
||||||
|
elog "Setting ${etc_lt} to Factory."
|
||||||
|
else
|
||||||
|
elog "Assuming your ${etc_lt} symlink is what you want; skipping update."
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
elog "Skipping auto-update of ${etc_lt}."
|
||||||
|
fi
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ ! -e ${ROOT}/usr/share/zoneinfo/${tz} ]] ; then
|
||||||
|
elog "You have an invalid TIMEZONE setting in ${src}"
|
||||||
|
elog "Your ${etc_lt} has been reset to Factory; enjoy!"
|
||||||
|
tz="Factory"
|
||||||
|
fi
|
||||||
|
einfo "Updating ${etc_lt} with ${ROOT}usr/share/zoneinfo/${tz}"
|
||||||
|
[[ -L ${etc_lt} ]] && rm -f "${etc_lt}"
|
||||||
|
cp -f "${ROOT}"/usr/share/zoneinfo/"${tz}" "${etc_lt}"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
pkg_config
|
||||||
|
}
|
129
sdk_container/src/third_party/portage-stable/sys-libs/timezone-data/timezone-data-2013i.ebuild
vendored
Normal file
129
sdk_container/src/third_party/portage-stable/sys-libs/timezone-data/timezone-data-2013i.ebuild
vendored
Normal file
@ -0,0 +1,129 @@
|
|||||||
|
# Copyright 1999-2014 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/timezone-data-2013i.ebuild,v 1.2 2014/01/18 02:22:57 vapier Exp $
|
||||||
|
|
||||||
|
EAPI="3"
|
||||||
|
|
||||||
|
inherit eutils toolchain-funcs flag-o-matic
|
||||||
|
|
||||||
|
code_ver=${PV}
|
||||||
|
data_ver=${PV}
|
||||||
|
DESCRIPTION="Timezone data (/usr/share/zoneinfo) and utilities (tzselect/zic/zdump)"
|
||||||
|
HOMEPAGE="http://www.iana.org/time-zones http://www.twinsun.com/tz/tz-link.htm"
|
||||||
|
SRC_URI="http://www.iana.org/time-zones/repository/releases/tzdata${data_ver}.tar.gz
|
||||||
|
http://www.iana.org/time-zones/repository/releases/tzcode${code_ver}.tar.gz
|
||||||
|
ftp://munnari.oz.au/pub/oldtz/tzdata${data_ver}.tar.gz
|
||||||
|
ftp://munnari.oz.au/pub/oldtz/tzcode${data_ver}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD public-domain"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||||
|
IUSE="nls elibc_FreeBSD elibc_glibc"
|
||||||
|
|
||||||
|
RDEPEND="!<sys-libs/glibc-2.3.5"
|
||||||
|
|
||||||
|
S=${WORKDIR}
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
# Deal with the case where older timezone-data installed a
|
||||||
|
# dir here, but newer one installs symlinks. Portage will
|
||||||
|
# barf when you try to transition file types.
|
||||||
|
if cd "${EROOT}"/usr/share/zoneinfo 2>/dev/null ; then
|
||||||
|
if [[ -d posix ]] ; then
|
||||||
|
rm -rf .gentoo-upgrade #487192
|
||||||
|
mv posix .gentoo-upgrade || die
|
||||||
|
ln -s .gentoo-upgrade posix || die
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
epatch "${FILESDIR}"/${PN}-2013h-makefile.patch
|
||||||
|
tc-is-cross-compiler && cp -pR "${S}" "${S}"-native
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
local LDLIBS
|
||||||
|
tc-export CC
|
||||||
|
if use elibc_FreeBSD || use elibc_Darwin ; then
|
||||||
|
append-cppflags -DSTD_INSPIRED #138251
|
||||||
|
fi
|
||||||
|
export NLS=$(usex nls 1 0)
|
||||||
|
if use nls && ! use elibc_glibc ; then
|
||||||
|
LDLIBS+=" -lintl" #154181
|
||||||
|
fi
|
||||||
|
# TOPDIR is used in some utils when compiling.
|
||||||
|
emake \
|
||||||
|
TOPDIR="${EPREFIX}/usr" \
|
||||||
|
CFLAGS="${CPPFLAGS} ${CFLAGS} -std=gnu99" \
|
||||||
|
LDFLAGS="${LDFLAGS}" \
|
||||||
|
LDLIBS="${LDLIBS}" \
|
||||||
|
|| die
|
||||||
|
if tc-is-cross-compiler ; then
|
||||||
|
emake -C "${S}"-native \
|
||||||
|
CC=$(tc-getBUILD_CC) \
|
||||||
|
CFLAGS="${BUILD_CFLAGS}" \
|
||||||
|
LDFLAGS="${BUILD_LDFLAGS}" \
|
||||||
|
LDLIBS="${LDLIBS}" \
|
||||||
|
zic || die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
local zic=""
|
||||||
|
tc-is-cross-compiler && zic="zic=${S}-native/zic"
|
||||||
|
emake install ${zic} DESTDIR="${ED}" || die
|
||||||
|
dodoc README Theory
|
||||||
|
dohtml *.htm
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_config() {
|
||||||
|
# make sure the /etc/localtime file does not get stale #127899
|
||||||
|
local tz src etc_lt="${EROOT}etc/localtime"
|
||||||
|
|
||||||
|
if has_version '<sys-apps/baselayout-2' ; then
|
||||||
|
src="${EROOT}etc/conf.d/clock"
|
||||||
|
tz=$(unset TIMEZONE ; source "${src}" ; echo ${TIMEZONE-FOOKABLOIE})
|
||||||
|
else
|
||||||
|
src="${EROOT}etc/timezone"
|
||||||
|
if [[ -e ${src} ]] ; then
|
||||||
|
tz=$(sed -e 's:#.*::' -e 's:[[:space:]]*::g' -e '/^$/d' "${src}")
|
||||||
|
else
|
||||||
|
tz="FOOKABLOIE"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
[[ -z ${tz} ]] && return 0
|
||||||
|
|
||||||
|
if [[ ${tz} == "FOOKABLOIE" ]] ; then
|
||||||
|
elog "You do not have TIMEZONE set in ${src}."
|
||||||
|
|
||||||
|
if [[ ! -e ${etc_lt} ]] ; then
|
||||||
|
# if /etc/localtime is a symlink somewhere, assume they
|
||||||
|
# know what they're doing and they're managing it themselves
|
||||||
|
if [[ ! -L ${etc_lt} ]] ; then
|
||||||
|
cp -f "${EROOT}"/usr/share/zoneinfo/Factory "${etc_lt}"
|
||||||
|
elog "Setting ${etc_lt} to Factory."
|
||||||
|
else
|
||||||
|
elog "Assuming your ${etc_lt} symlink is what you want; skipping update."
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
elog "Skipping auto-update of ${etc_lt}."
|
||||||
|
fi
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ ! -e ${EROOT}/usr/share/zoneinfo/${tz} ]] ; then
|
||||||
|
elog "You have an invalid TIMEZONE setting in ${src}"
|
||||||
|
elog "Your ${etc_lt} has been reset to Factory; enjoy!"
|
||||||
|
tz="Factory"
|
||||||
|
fi
|
||||||
|
einfo "Updating ${etc_lt} with ${EROOT}usr/share/zoneinfo/${tz}"
|
||||||
|
[[ -L ${etc_lt} ]] && rm -f "${etc_lt}"
|
||||||
|
cp -f "${EROOT}"/usr/share/zoneinfo/"${tz}" "${etc_lt}"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
rm -rf "${EROOT}"/usr/share/zoneinfo/.gentoo-upgrade &
|
||||||
|
pkg_config
|
||||||
|
wait
|
||||||
|
}
|
151
sdk_container/src/third_party/portage-stable/sys-libs/timezone-data/timezone-data-2014i-r1.ebuild
vendored
Normal file
151
sdk_container/src/third_party/portage-stable/sys-libs/timezone-data/timezone-data-2014i-r1.ebuild
vendored
Normal file
@ -0,0 +1,151 @@
|
|||||||
|
# Copyright 1999-2014 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/timezone-data-2014i-r1.ebuild,v 1.2 2014/11/11 23:57:55 vapier Exp $
|
||||||
|
|
||||||
|
EAPI="4"
|
||||||
|
|
||||||
|
inherit eutils toolchain-funcs flag-o-matic
|
||||||
|
|
||||||
|
code_ver=${PV}
|
||||||
|
data_ver=${PV}
|
||||||
|
DESCRIPTION="Timezone data (/usr/share/zoneinfo) and utilities (tzselect/zic/zdump)"
|
||||||
|
HOMEPAGE="http://www.iana.org/time-zones http://www.twinsun.com/tz/tz-link.htm"
|
||||||
|
SRC_URI="http://www.iana.org/time-zones/repository/releases/tzdata${data_ver}.tar.gz
|
||||||
|
http://www.iana.org/time-zones/repository/releases/tzcode${code_ver}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD public-domain"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||||
|
IUSE="nls right_timezone elibc_FreeBSD elibc_glibc"
|
||||||
|
|
||||||
|
RDEPEND="!sys-libs/glibc[vanilla(+)]"
|
||||||
|
|
||||||
|
S=${WORKDIR}
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
# Deal with the case where older timezone-data installed a
|
||||||
|
# dir here, but newer one installs symlinks. Portage will
|
||||||
|
# barf when you try to transition file types.
|
||||||
|
if cd "${EROOT}"/usr/share/zoneinfo 2>/dev/null ; then
|
||||||
|
# In case of a failed upgrade, clean up the symlinks #506570
|
||||||
|
if [ -L .gentoo-upgrade ] ; then
|
||||||
|
rm -rf posix .gentoo-upgrade
|
||||||
|
fi
|
||||||
|
if [ -d posix ] ; then
|
||||||
|
rm -rf .gentoo-upgrade #487192
|
||||||
|
mv posix .gentoo-upgrade || die
|
||||||
|
ln -s .gentoo-upgrade posix || die
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
epatch "${FILESDIR}"/${PN}-2014h-makefile.patch
|
||||||
|
tc-is-cross-compiler && cp -pR "${S}" "${S}"-native
|
||||||
|
}
|
||||||
|
|
||||||
|
_emake() {
|
||||||
|
emake \
|
||||||
|
TOPDIR="${EPREFIX}/usr" \
|
||||||
|
REDO=$(usex right_timezone posix_right posix_only) \
|
||||||
|
"$@"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
local LDLIBS
|
||||||
|
tc-export CC
|
||||||
|
if use elibc_FreeBSD || use elibc_Darwin ; then
|
||||||
|
append-cppflags -DSTD_INSPIRED #138251
|
||||||
|
fi
|
||||||
|
export NLS=$(usex nls 1 0)
|
||||||
|
if use nls && ! use elibc_glibc ; then
|
||||||
|
LDLIBS+=" -lintl" #154181
|
||||||
|
fi
|
||||||
|
# TOPDIR is used in some utils when compiling.
|
||||||
|
_emake \
|
||||||
|
AR="$(tc-getAR)" \
|
||||||
|
CC="$(tc-getCC)" \
|
||||||
|
RANLIB="$(tc-getRANLIB)" \
|
||||||
|
CFLAGS="${CFLAGS} -std=gnu99" \
|
||||||
|
LDFLAGS="${LDFLAGS}" \
|
||||||
|
LDLIBS="${LDLIBS}"
|
||||||
|
if tc-is-cross-compiler ; then
|
||||||
|
_emake -C "${S}"-native \
|
||||||
|
CC="$(tc-getBUILD_CC)" \
|
||||||
|
CFLAGS="${BUILD_CFLAGS}" \
|
||||||
|
CPPFLAGS="${BUILD_CPPFLAGS}" \
|
||||||
|
LDFLAGS="${BUILD_LDFLAGS}" \
|
||||||
|
LDLIBS="${LDLIBS}" \
|
||||||
|
zic
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
local zic=""
|
||||||
|
tc-is-cross-compiler && zic="zic=${S}-native/zic"
|
||||||
|
_emake install ${zic} DESTDIR="${D}"
|
||||||
|
dodoc CONTRIBUTING README NEWS Theory
|
||||||
|
dohtml *.htm
|
||||||
|
|
||||||
|
# install the symlink by hand to not break existing timezones
|
||||||
|
if ! use right_timezone && [[ ! -e ${ED}/usr/share/zoneinfo/posix ]] ; then
|
||||||
|
dosym . /usr/share/zoneinfo/posix
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
get_TIMEZONE() {
|
||||||
|
local tz src="${EROOT}etc/timezone"
|
||||||
|
if [[ -e ${src} ]] ; then
|
||||||
|
tz=$(sed -e 's:#.*::' -e 's:[[:space:]]*::g' -e '/^$/d' "${src}")
|
||||||
|
else
|
||||||
|
tz="FOOKABLOIE"
|
||||||
|
fi
|
||||||
|
[[ -z ${tz} ]] && return 1 || echo "${tz}"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_preinst() {
|
||||||
|
local tz=$(get_TIMEZONE)
|
||||||
|
if ! use right_timezone && [[ ${tz} == right/* ]] ; then
|
||||||
|
eerror "Your timezone is set to '${tz}' but you have USE=-right_timezone."
|
||||||
|
die "Please fix your USE or timezone"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_config() {
|
||||||
|
# make sure the /etc/localtime file does not get stale #127899
|
||||||
|
local tz src="${EROOT}etc/timezone" etc_lt="${EROOT}etc/localtime"
|
||||||
|
|
||||||
|
tz=$(get_TIMEZONE) || return 0
|
||||||
|
if [[ ${tz} == "FOOKABLOIE" ]] ; then
|
||||||
|
elog "You do not have TIMEZONE set in ${src}."
|
||||||
|
|
||||||
|
if [[ ! -e ${etc_lt} ]] ; then
|
||||||
|
# if /etc/localtime is a symlink somewhere, assume they
|
||||||
|
# know what they're doing and they're managing it themselves
|
||||||
|
if [[ ! -L ${etc_lt} ]] ; then
|
||||||
|
cp -f "${EROOT}"/usr/share/zoneinfo/Factory "${etc_lt}"
|
||||||
|
elog "Setting ${etc_lt} to Factory."
|
||||||
|
else
|
||||||
|
elog "Assuming your ${etc_lt} symlink is what you want; skipping update."
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
elog "Skipping auto-update of ${etc_lt}."
|
||||||
|
fi
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ ! -e ${EROOT}/usr/share/zoneinfo/${tz} ]] ; then
|
||||||
|
elog "You have an invalid TIMEZONE setting in ${src}"
|
||||||
|
elog "Your ${etc_lt} has been reset to Factory; enjoy!"
|
||||||
|
tz="Factory"
|
||||||
|
fi
|
||||||
|
einfo "Updating ${etc_lt} with ${EROOT}usr/share/zoneinfo/${tz}"
|
||||||
|
[[ -L ${etc_lt} ]] && rm -f "${etc_lt}"
|
||||||
|
cp -f "${EROOT}"/usr/share/zoneinfo/"${tz}" "${etc_lt}"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
rm -rf "${EROOT}"/usr/share/zoneinfo/.gentoo-upgrade &
|
||||||
|
pkg_config
|
||||||
|
wait
|
||||||
|
}
|
151
sdk_container/src/third_party/portage-stable/sys-libs/timezone-data/timezone-data-2014j.ebuild
vendored
Normal file
151
sdk_container/src/third_party/portage-stable/sys-libs/timezone-data/timezone-data-2014j.ebuild
vendored
Normal file
@ -0,0 +1,151 @@
|
|||||||
|
# Copyright 1999-2015 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/timezone-data-2014j.ebuild,v 1.2 2015/02/14 02:07:00 vapier Exp $
|
||||||
|
|
||||||
|
EAPI="4"
|
||||||
|
|
||||||
|
inherit eutils toolchain-funcs flag-o-matic
|
||||||
|
|
||||||
|
code_ver=${PV}
|
||||||
|
data_ver=${PV}
|
||||||
|
DESCRIPTION="Timezone data (/usr/share/zoneinfo) and utilities (tzselect/zic/zdump)"
|
||||||
|
HOMEPAGE="http://www.iana.org/time-zones http://www.twinsun.com/tz/tz-link.htm"
|
||||||
|
SRC_URI="http://www.iana.org/time-zones/repository/releases/tzdata${data_ver}.tar.gz
|
||||||
|
http://www.iana.org/time-zones/repository/releases/tzcode${code_ver}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD public-domain"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||||
|
IUSE="nls right_timezone elibc_FreeBSD elibc_glibc"
|
||||||
|
|
||||||
|
RDEPEND="!sys-libs/glibc[vanilla(+)]"
|
||||||
|
|
||||||
|
S=${WORKDIR}
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
# Deal with the case where older timezone-data installed a
|
||||||
|
# dir here, but newer one installs symlinks. Portage will
|
||||||
|
# barf when you try to transition file types.
|
||||||
|
if cd "${EROOT}"/usr/share/zoneinfo 2>/dev/null ; then
|
||||||
|
# In case of a failed upgrade, clean up the symlinks #506570
|
||||||
|
if [ -L .gentoo-upgrade ] ; then
|
||||||
|
rm -rf posix .gentoo-upgrade
|
||||||
|
fi
|
||||||
|
if [ -d posix ] ; then
|
||||||
|
rm -rf .gentoo-upgrade #487192
|
||||||
|
mv posix .gentoo-upgrade || die
|
||||||
|
ln -s .gentoo-upgrade posix || die
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
epatch "${FILESDIR}"/${PN}-2014h-makefile.patch
|
||||||
|
tc-is-cross-compiler && cp -pR "${S}" "${S}"-native
|
||||||
|
}
|
||||||
|
|
||||||
|
_emake() {
|
||||||
|
emake \
|
||||||
|
TOPDIR="${EPREFIX}/usr" \
|
||||||
|
REDO=$(usex right_timezone posix_right posix_only) \
|
||||||
|
"$@"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
local LDLIBS
|
||||||
|
tc-export CC
|
||||||
|
if use elibc_FreeBSD || use elibc_Darwin ; then
|
||||||
|
append-cppflags -DSTD_INSPIRED #138251
|
||||||
|
fi
|
||||||
|
export NLS=$(usex nls 1 0)
|
||||||
|
if use nls && ! use elibc_glibc ; then
|
||||||
|
LDLIBS+=" -lintl" #154181
|
||||||
|
fi
|
||||||
|
# TOPDIR is used in some utils when compiling.
|
||||||
|
_emake \
|
||||||
|
AR="$(tc-getAR)" \
|
||||||
|
CC="$(tc-getCC)" \
|
||||||
|
RANLIB="$(tc-getRANLIB)" \
|
||||||
|
CFLAGS="${CFLAGS} -std=gnu99" \
|
||||||
|
LDFLAGS="${LDFLAGS}" \
|
||||||
|
LDLIBS="${LDLIBS}"
|
||||||
|
if tc-is-cross-compiler ; then
|
||||||
|
_emake -C "${S}"-native \
|
||||||
|
CC="$(tc-getBUILD_CC)" \
|
||||||
|
CFLAGS="${BUILD_CFLAGS}" \
|
||||||
|
CPPFLAGS="${BUILD_CPPFLAGS}" \
|
||||||
|
LDFLAGS="${BUILD_LDFLAGS}" \
|
||||||
|
LDLIBS="${LDLIBS}" \
|
||||||
|
zic
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
local zic=""
|
||||||
|
tc-is-cross-compiler && zic="zic=${S}-native/zic"
|
||||||
|
_emake install ${zic} DESTDIR="${D}"
|
||||||
|
dodoc CONTRIBUTING README NEWS Theory
|
||||||
|
dohtml *.htm
|
||||||
|
|
||||||
|
# install the symlink by hand to not break existing timezones
|
||||||
|
if ! use right_timezone && [[ ! -e ${ED}/usr/share/zoneinfo/posix ]] ; then
|
||||||
|
dosym . /usr/share/zoneinfo/posix
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
get_TIMEZONE() {
|
||||||
|
local tz src="${EROOT}etc/timezone"
|
||||||
|
if [[ -e ${src} ]] ; then
|
||||||
|
tz=$(sed -e 's:#.*::' -e 's:[[:space:]]*::g' -e '/^$/d' "${src}")
|
||||||
|
else
|
||||||
|
tz="FOOKABLOIE"
|
||||||
|
fi
|
||||||
|
[[ -z ${tz} ]] && return 1 || echo "${tz}"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_preinst() {
|
||||||
|
local tz=$(get_TIMEZONE)
|
||||||
|
if ! use right_timezone && [[ ${tz} == right/* ]] ; then
|
||||||
|
eerror "Your timezone is set to '${tz}' but you have USE=-right_timezone."
|
||||||
|
die "Please fix your USE or timezone"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_config() {
|
||||||
|
# make sure the /etc/localtime file does not get stale #127899
|
||||||
|
local tz src="${EROOT}etc/timezone" etc_lt="${EROOT}etc/localtime"
|
||||||
|
|
||||||
|
tz=$(get_TIMEZONE) || return 0
|
||||||
|
if [[ ${tz} == "FOOKABLOIE" ]] ; then
|
||||||
|
elog "You do not have TIMEZONE set in ${src}."
|
||||||
|
|
||||||
|
if [[ ! -e ${etc_lt} ]] ; then
|
||||||
|
# if /etc/localtime is a symlink somewhere, assume they
|
||||||
|
# know what they're doing and they're managing it themselves
|
||||||
|
if [[ ! -L ${etc_lt} ]] ; then
|
||||||
|
cp -f "${EROOT}"/usr/share/zoneinfo/Factory "${etc_lt}"
|
||||||
|
elog "Setting ${etc_lt} to Factory."
|
||||||
|
else
|
||||||
|
elog "Assuming your ${etc_lt} symlink is what you want; skipping update."
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
elog "Skipping auto-update of ${etc_lt}."
|
||||||
|
fi
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ ! -e ${EROOT}/usr/share/zoneinfo/${tz} ]] ; then
|
||||||
|
elog "You have an invalid TIMEZONE setting in ${src}"
|
||||||
|
elog "Your ${etc_lt} has been reset to Factory; enjoy!"
|
||||||
|
tz="Factory"
|
||||||
|
fi
|
||||||
|
einfo "Updating ${etc_lt} with ${EROOT}usr/share/zoneinfo/${tz}"
|
||||||
|
[[ -L ${etc_lt} ]] && rm -f "${etc_lt}"
|
||||||
|
cp -f "${EROOT}"/usr/share/zoneinfo/"${tz}" "${etc_lt}"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
rm -rf "${EROOT}"/usr/share/zoneinfo/.gentoo-upgrade &
|
||||||
|
pkg_config
|
||||||
|
wait
|
||||||
|
}
|
154
sdk_container/src/third_party/portage-stable/sys-libs/timezone-data/timezone-data-2015a.ebuild
vendored
Normal file
154
sdk_container/src/third_party/portage-stable/sys-libs/timezone-data/timezone-data-2015a.ebuild
vendored
Normal file
@ -0,0 +1,154 @@
|
|||||||
|
# Copyright 1999-2015 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/timezone-data-2015a.ebuild,v 1.3 2015/03/21 11:14:33 vapier Exp $
|
||||||
|
|
||||||
|
EAPI="4"
|
||||||
|
|
||||||
|
inherit eutils toolchain-funcs flag-o-matic
|
||||||
|
|
||||||
|
code_ver=${PV}
|
||||||
|
data_ver=${PV}
|
||||||
|
DESCRIPTION="Timezone data (/usr/share/zoneinfo) and utilities (tzselect/zic/zdump)"
|
||||||
|
HOMEPAGE="http://www.iana.org/time-zones http://www.twinsun.com/tz/tz-link.htm"
|
||||||
|
SRC_URI="http://www.iana.org/time-zones/repository/releases/tzdata${data_ver}.tar.gz
|
||||||
|
http://www.iana.org/time-zones/repository/releases/tzcode${code_ver}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD public-domain"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||||
|
IUSE="nls right_timezone elibc_FreeBSD elibc_glibc"
|
||||||
|
|
||||||
|
RDEPEND="!sys-libs/glibc[vanilla(+)]"
|
||||||
|
|
||||||
|
S=${WORKDIR}
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
# Deal with the case where older timezone-data installed a
|
||||||
|
# dir here, but newer one installs symlinks. Portage will
|
||||||
|
# barf when you try to transition file types.
|
||||||
|
if cd "${EROOT}"/usr/share/zoneinfo 2>/dev/null ; then
|
||||||
|
# In case of a failed upgrade, clean up the symlinks #506570
|
||||||
|
if [ -L .gentoo-upgrade ] ; then
|
||||||
|
rm -rf posix .gentoo-upgrade
|
||||||
|
fi
|
||||||
|
if [ -d posix ] ; then
|
||||||
|
rm -rf .gentoo-upgrade #487192
|
||||||
|
mv posix .gentoo-upgrade || die
|
||||||
|
ln -s .gentoo-upgrade posix || die
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
epatch "${FILESDIR}"/${PN}-2015a-makefile.patch
|
||||||
|
tc-is-cross-compiler && cp -pR "${S}" "${S}"-native
|
||||||
|
}
|
||||||
|
|
||||||
|
_emake() {
|
||||||
|
emake \
|
||||||
|
TOPDIR="${EPREFIX}/usr" \
|
||||||
|
REDO=$(usex right_timezone posix_right posix_only) \
|
||||||
|
"$@"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
local LDLIBS
|
||||||
|
tc-export CC
|
||||||
|
if use elibc_FreeBSD || use elibc_Darwin ; then
|
||||||
|
append-cppflags -DSTD_INSPIRED #138251
|
||||||
|
fi
|
||||||
|
export NLS=$(usex nls 1 0)
|
||||||
|
if use nls && ! use elibc_glibc ; then
|
||||||
|
LDLIBS+=" -lintl" #154181
|
||||||
|
fi
|
||||||
|
# TOPDIR is used in some utils when compiling.
|
||||||
|
_emake \
|
||||||
|
AR="$(tc-getAR)" \
|
||||||
|
CC="$(tc-getCC)" \
|
||||||
|
RANLIB="$(tc-getRANLIB)" \
|
||||||
|
CFLAGS="${CFLAGS} -std=gnu99" \
|
||||||
|
LDFLAGS="${LDFLAGS}" \
|
||||||
|
LDLIBS="${LDLIBS}"
|
||||||
|
if tc-is-cross-compiler ; then
|
||||||
|
_emake -C "${S}"-native \
|
||||||
|
CC="$(tc-getBUILD_CC)" \
|
||||||
|
CFLAGS="${BUILD_CFLAGS}" \
|
||||||
|
CPPFLAGS="${BUILD_CPPFLAGS}" \
|
||||||
|
LDFLAGS="${BUILD_LDFLAGS}" \
|
||||||
|
LDLIBS="${LDLIBS}" \
|
||||||
|
zic
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
local zic=""
|
||||||
|
tc-is-cross-compiler && zic="zic=${S}-native/zic"
|
||||||
|
_emake install ${zic} DESTDIR="${D}"
|
||||||
|
dodoc CONTRIBUTING README NEWS Theory
|
||||||
|
dohtml *.htm
|
||||||
|
|
||||||
|
# install the symlink by hand to not break existing timezones
|
||||||
|
if ! use right_timezone && [[ ! -e ${ED}/usr/share/zoneinfo/posix ]] ; then
|
||||||
|
dosym . /usr/share/zoneinfo/posix
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
get_TIMEZONE() {
|
||||||
|
local tz src="${EROOT}etc/timezone"
|
||||||
|
if [[ -e ${src} ]] ; then
|
||||||
|
tz=$(sed -e 's:#.*::' -e 's:[[:space:]]*::g' -e '/^$/d' "${src}")
|
||||||
|
else
|
||||||
|
tz="FOOKABLOIE"
|
||||||
|
fi
|
||||||
|
[[ -z ${tz} ]] && return 1 || echo "${tz}"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_preinst() {
|
||||||
|
local tz=$(get_TIMEZONE)
|
||||||
|
if ! use right_timezone && [[ ${tz} == right/* ]] ; then
|
||||||
|
eerror "Your timezone is set to '${tz}' but you have USE=-right_timezone."
|
||||||
|
die "Please fix your USE or timezone"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_config() {
|
||||||
|
# make sure the /etc/localtime file does not get stale #127899
|
||||||
|
local tz src="${EROOT}etc/timezone" etc_lt="${EROOT}etc/localtime"
|
||||||
|
|
||||||
|
tz=$(get_TIMEZONE) || return 0
|
||||||
|
if [[ ${tz} == "FOOKABLOIE" ]] ; then
|
||||||
|
elog "You do not have TIMEZONE set in ${src}."
|
||||||
|
|
||||||
|
if [[ ! -e ${etc_lt} ]] ; then
|
||||||
|
# if /etc/localtime is a symlink somewhere, assume they
|
||||||
|
# know what they're doing and they're managing it themselves
|
||||||
|
if [[ ! -L ${etc_lt} ]] ; then
|
||||||
|
cp -f "${EROOT}"/usr/share/zoneinfo/Factory "${etc_lt}"
|
||||||
|
elog "Setting ${etc_lt} to Factory."
|
||||||
|
else
|
||||||
|
elog "Assuming your ${etc_lt} symlink is what you want; skipping update."
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
elog "Skipping auto-update of ${etc_lt}."
|
||||||
|
fi
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ ! -e ${EROOT}/usr/share/zoneinfo/${tz} ]] ; then
|
||||||
|
elog "You have an invalid TIMEZONE setting in ${src}"
|
||||||
|
elog "Your ${etc_lt} has been reset to Factory; enjoy!"
|
||||||
|
tz="Factory"
|
||||||
|
fi
|
||||||
|
if [[ -L ${etc_lt} ]]; then
|
||||||
|
einfo "Skipping symlinked ${etc_lt}"
|
||||||
|
else
|
||||||
|
einfo "Updating ${etc_lt} with ${EROOT}usr/share/zoneinfo/${tz}"
|
||||||
|
cp -f "${EROOT}"/usr/share/zoneinfo/"${tz}" "${etc_lt}"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
rm -rf "${EROOT}"/usr/share/zoneinfo/.gentoo-upgrade &
|
||||||
|
pkg_config
|
||||||
|
wait
|
||||||
|
}
|
154
sdk_container/src/third_party/portage-stable/sys-libs/timezone-data/timezone-data-2015b.ebuild
vendored
Normal file
154
sdk_container/src/third_party/portage-stable/sys-libs/timezone-data/timezone-data-2015b.ebuild
vendored
Normal file
@ -0,0 +1,154 @@
|
|||||||
|
# Copyright 1999-2015 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/timezone-data-2015b.ebuild,v 1.2 2015/04/14 15:38:01 vapier Exp $
|
||||||
|
|
||||||
|
EAPI="4"
|
||||||
|
|
||||||
|
inherit eutils toolchain-funcs flag-o-matic
|
||||||
|
|
||||||
|
code_ver=${PV}
|
||||||
|
data_ver=${PV}
|
||||||
|
DESCRIPTION="Timezone data (/usr/share/zoneinfo) and utilities (tzselect/zic/zdump)"
|
||||||
|
HOMEPAGE="http://www.iana.org/time-zones http://www.twinsun.com/tz/tz-link.htm"
|
||||||
|
SRC_URI="http://www.iana.org/time-zones/repository/releases/tzdata${data_ver}.tar.gz
|
||||||
|
http://www.iana.org/time-zones/repository/releases/tzcode${code_ver}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD public-domain"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||||
|
IUSE="nls right_timezone elibc_FreeBSD elibc_glibc"
|
||||||
|
|
||||||
|
RDEPEND="!sys-libs/glibc[vanilla(+)]"
|
||||||
|
|
||||||
|
S=${WORKDIR}
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
# Deal with the case where older timezone-data installed a
|
||||||
|
# dir here, but newer one installs symlinks. Portage will
|
||||||
|
# barf when you try to transition file types.
|
||||||
|
if cd "${EROOT}"/usr/share/zoneinfo 2>/dev/null ; then
|
||||||
|
# In case of a failed upgrade, clean up the symlinks #506570
|
||||||
|
if [ -L .gentoo-upgrade ] ; then
|
||||||
|
rm -rf posix .gentoo-upgrade
|
||||||
|
fi
|
||||||
|
if [ -d posix ] ; then
|
||||||
|
rm -rf .gentoo-upgrade #487192
|
||||||
|
mv posix .gentoo-upgrade || die
|
||||||
|
ln -s .gentoo-upgrade posix || die
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
epatch "${FILESDIR}"/${PN}-2015a-makefile.patch
|
||||||
|
tc-is-cross-compiler && cp -pR "${S}" "${S}"-native
|
||||||
|
}
|
||||||
|
|
||||||
|
_emake() {
|
||||||
|
emake \
|
||||||
|
TOPDIR="${EPREFIX}/usr" \
|
||||||
|
REDO=$(usex right_timezone posix_right posix_only) \
|
||||||
|
"$@"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
local LDLIBS
|
||||||
|
tc-export CC
|
||||||
|
if use elibc_FreeBSD || use elibc_Darwin ; then
|
||||||
|
append-cppflags -DSTD_INSPIRED #138251
|
||||||
|
fi
|
||||||
|
export NLS=$(usex nls 1 0)
|
||||||
|
if use nls && ! use elibc_glibc ; then
|
||||||
|
LDLIBS+=" -lintl" #154181
|
||||||
|
fi
|
||||||
|
# TOPDIR is used in some utils when compiling.
|
||||||
|
_emake \
|
||||||
|
AR="$(tc-getAR)" \
|
||||||
|
CC="$(tc-getCC)" \
|
||||||
|
RANLIB="$(tc-getRANLIB)" \
|
||||||
|
CFLAGS="${CFLAGS} -std=gnu99" \
|
||||||
|
LDFLAGS="${LDFLAGS}" \
|
||||||
|
LDLIBS="${LDLIBS}"
|
||||||
|
if tc-is-cross-compiler ; then
|
||||||
|
_emake -C "${S}"-native \
|
||||||
|
CC="$(tc-getBUILD_CC)" \
|
||||||
|
CFLAGS="${BUILD_CFLAGS}" \
|
||||||
|
CPPFLAGS="${BUILD_CPPFLAGS}" \
|
||||||
|
LDFLAGS="${BUILD_LDFLAGS}" \
|
||||||
|
LDLIBS="${LDLIBS}" \
|
||||||
|
zic
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
local zic=""
|
||||||
|
tc-is-cross-compiler && zic="zic=${S}-native/zic"
|
||||||
|
_emake install ${zic} DESTDIR="${D}"
|
||||||
|
dodoc CONTRIBUTING README NEWS Theory
|
||||||
|
dohtml *.htm
|
||||||
|
|
||||||
|
# install the symlink by hand to not break existing timezones
|
||||||
|
if ! use right_timezone && [[ ! -e ${ED}/usr/share/zoneinfo/posix ]] ; then
|
||||||
|
dosym . /usr/share/zoneinfo/posix
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
get_TIMEZONE() {
|
||||||
|
local tz src="${EROOT}etc/timezone"
|
||||||
|
if [[ -e ${src} ]] ; then
|
||||||
|
tz=$(sed -e 's:#.*::' -e 's:[[:space:]]*::g' -e '/^$/d' "${src}")
|
||||||
|
else
|
||||||
|
tz="FOOKABLOIE"
|
||||||
|
fi
|
||||||
|
[[ -z ${tz} ]] && return 1 || echo "${tz}"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_preinst() {
|
||||||
|
local tz=$(get_TIMEZONE)
|
||||||
|
if ! use right_timezone && [[ ${tz} == right/* ]] ; then
|
||||||
|
eerror "Your timezone is set to '${tz}' but you have USE=-right_timezone."
|
||||||
|
die "Please fix your USE or timezone"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_config() {
|
||||||
|
# make sure the /etc/localtime file does not get stale #127899
|
||||||
|
local tz src="${EROOT}etc/timezone" etc_lt="${EROOT}etc/localtime"
|
||||||
|
|
||||||
|
tz=$(get_TIMEZONE) || return 0
|
||||||
|
if [[ ${tz} == "FOOKABLOIE" ]] ; then
|
||||||
|
elog "You do not have TIMEZONE set in ${src}."
|
||||||
|
|
||||||
|
if [[ ! -e ${etc_lt} ]] ; then
|
||||||
|
# if /etc/localtime is a symlink somewhere, assume they
|
||||||
|
# know what they're doing and they're managing it themselves
|
||||||
|
if [[ ! -L ${etc_lt} ]] ; then
|
||||||
|
cp -f "${EROOT}"/usr/share/zoneinfo/Factory "${etc_lt}"
|
||||||
|
elog "Setting ${etc_lt} to Factory."
|
||||||
|
else
|
||||||
|
elog "Assuming your ${etc_lt} symlink is what you want; skipping update."
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
elog "Skipping auto-update of ${etc_lt}."
|
||||||
|
fi
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ ! -e ${EROOT}/usr/share/zoneinfo/${tz} ]] ; then
|
||||||
|
elog "You have an invalid TIMEZONE setting in ${src}"
|
||||||
|
elog "Your ${etc_lt} has been reset to Factory; enjoy!"
|
||||||
|
tz="Factory"
|
||||||
|
fi
|
||||||
|
if [[ -L ${etc_lt} ]]; then
|
||||||
|
einfo "Skipping symlinked ${etc_lt}"
|
||||||
|
else
|
||||||
|
einfo "Updating ${etc_lt} with ${EROOT}usr/share/zoneinfo/${tz}"
|
||||||
|
cp -f "${EROOT}"/usr/share/zoneinfo/"${tz}" "${etc_lt}"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
rm -rf "${EROOT}"/usr/share/zoneinfo/.gentoo-upgrade &
|
||||||
|
pkg_config
|
||||||
|
wait
|
||||||
|
}
|
143
sdk_container/src/third_party/portage-stable/sys-libs/timezone-data/timezone-data-2015c-r1.ebuild
vendored
Normal file
143
sdk_container/src/third_party/portage-stable/sys-libs/timezone-data/timezone-data-2015c-r1.ebuild
vendored
Normal file
@ -0,0 +1,143 @@
|
|||||||
|
# Copyright 1999-2015 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/timezone-data-2015c-r1.ebuild,v 1.1 2015/04/14 16:19:36 vapier Exp $
|
||||||
|
|
||||||
|
EAPI="4"
|
||||||
|
|
||||||
|
inherit eutils toolchain-funcs flag-o-matic
|
||||||
|
|
||||||
|
code_ver=${PV}
|
||||||
|
data_ver=${PV}
|
||||||
|
DESCRIPTION="Timezone data (/usr/share/zoneinfo) and utilities (tzselect/zic/zdump)"
|
||||||
|
HOMEPAGE="http://www.iana.org/time-zones http://www.twinsun.com/tz/tz-link.htm"
|
||||||
|
SRC_URI="http://www.iana.org/time-zones/repository/releases/tzdata${data_ver}.tar.gz
|
||||||
|
http://www.iana.org/time-zones/repository/releases/tzcode${code_ver}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD public-domain"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||||
|
IUSE="nls leaps_timezone elibc_FreeBSD elibc_glibc"
|
||||||
|
|
||||||
|
RDEPEND="!sys-libs/glibc[vanilla(+)]"
|
||||||
|
|
||||||
|
S=${WORKDIR}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
epatch "${FILESDIR}"/${PN}-2015c-makefile.patch
|
||||||
|
tc-is-cross-compiler && cp -pR "${S}" "${S}"-native
|
||||||
|
}
|
||||||
|
|
||||||
|
_emake() {
|
||||||
|
emake \
|
||||||
|
TOPDIR="${EPREFIX}/usr" \
|
||||||
|
REDO=$(usex leaps_timezone posix_right posix_only) \
|
||||||
|
"$@"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
local LDLIBS
|
||||||
|
tc-export CC
|
||||||
|
if use elibc_FreeBSD || use elibc_Darwin ; then
|
||||||
|
append-cppflags -DSTD_INSPIRED #138251
|
||||||
|
fi
|
||||||
|
export NLS=$(usex nls 1 0)
|
||||||
|
if use nls && ! use elibc_glibc ; then
|
||||||
|
LDLIBS+=" -lintl" #154181
|
||||||
|
fi
|
||||||
|
# TOPDIR is used in some utils when compiling.
|
||||||
|
_emake \
|
||||||
|
AR="$(tc-getAR)" \
|
||||||
|
CC="$(tc-getCC)" \
|
||||||
|
RANLIB="$(tc-getRANLIB)" \
|
||||||
|
CFLAGS="${CFLAGS} -std=gnu99" \
|
||||||
|
LDFLAGS="${LDFLAGS}" \
|
||||||
|
LDLIBS="${LDLIBS}"
|
||||||
|
if tc-is-cross-compiler ; then
|
||||||
|
_emake -C "${S}"-native \
|
||||||
|
CC="$(tc-getBUILD_CC)" \
|
||||||
|
CFLAGS="${BUILD_CFLAGS}" \
|
||||||
|
CPPFLAGS="${BUILD_CPPFLAGS}" \
|
||||||
|
LDFLAGS="${BUILD_LDFLAGS}" \
|
||||||
|
LDLIBS="${LDLIBS}" \
|
||||||
|
zic
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
local zic=""
|
||||||
|
tc-is-cross-compiler && zic="zic=${S}-native/zic"
|
||||||
|
_emake install ${zic} DESTDIR="${D}"
|
||||||
|
dodoc CONTRIBUTING README NEWS Theory
|
||||||
|
dohtml *.htm
|
||||||
|
}
|
||||||
|
|
||||||
|
get_TIMEZONE() {
|
||||||
|
local tz src="${EROOT}etc/timezone"
|
||||||
|
if [[ -e ${src} ]] ; then
|
||||||
|
tz=$(sed -e 's:#.*::' -e 's:[[:space:]]*::g' -e '/^$/d' "${src}")
|
||||||
|
else
|
||||||
|
tz="FOOKABLOIE"
|
||||||
|
fi
|
||||||
|
[[ -z ${tz} ]] && return 1 || echo "${tz}"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_preinst() {
|
||||||
|
local tz=$(get_TIMEZONE)
|
||||||
|
if [[ ${tz} == right/* || ${tz} == posix/* ]] ; then
|
||||||
|
eerror "The right & posix subdirs are no longer installed as subdirs -- they have been"
|
||||||
|
eerror "relocated to match upstream paths as sibling paths. Further, posix/xxx is the"
|
||||||
|
eerror "same as xxx, so you should simply drop the posix/ prefix. You also should not"
|
||||||
|
eerror "be using right/xxx for the system timezone as it breaks programs."
|
||||||
|
die "Please fix your timezone setting"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Trim the symlink by hand to avoid portage's automatic protection checks.
|
||||||
|
rm -f "${EROOT}"/usr/share/zoneinfo/posix
|
||||||
|
|
||||||
|
if has_version "<=${CATEGORY}/${PN}-2015c" ; then
|
||||||
|
elog "Support for accessing posix/ and right/ directly has been dropped to match"
|
||||||
|
elog "upstream. There is no need to set TZ=posix/xxx as it is the same as TZ=xxx."
|
||||||
|
elog "For TZ=right/, you can use TZ=../zoneinfo-leaps/xxx instead. See this post"
|
||||||
|
elog "for details: https://mm.icann.org/pipermail/tz/2015-February/022024.html"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_config() {
|
||||||
|
# make sure the /etc/localtime file does not get stale #127899
|
||||||
|
local tz src="${EROOT}etc/timezone" etc_lt="${EROOT}etc/localtime"
|
||||||
|
|
||||||
|
tz=$(get_TIMEZONE) || return 0
|
||||||
|
if [[ ${tz} == "FOOKABLOIE" ]] ; then
|
||||||
|
elog "You do not have TIMEZONE set in ${src}."
|
||||||
|
|
||||||
|
if [[ ! -e ${etc_lt} ]] ; then
|
||||||
|
# if /etc/localtime is a symlink somewhere, assume they
|
||||||
|
# know what they're doing and they're managing it themselves
|
||||||
|
if [[ ! -L ${etc_lt} ]] ; then
|
||||||
|
cp -f "${EROOT}"/usr/share/zoneinfo/Factory "${etc_lt}"
|
||||||
|
elog "Setting ${etc_lt} to Factory."
|
||||||
|
else
|
||||||
|
elog "Assuming your ${etc_lt} symlink is what you want; skipping update."
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
elog "Skipping auto-update of ${etc_lt}."
|
||||||
|
fi
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ ! -e ${EROOT}/usr/share/zoneinfo/${tz} ]] ; then
|
||||||
|
elog "You have an invalid TIMEZONE setting in ${src}"
|
||||||
|
elog "Your ${etc_lt} has been reset to Factory; enjoy!"
|
||||||
|
tz="Factory"
|
||||||
|
fi
|
||||||
|
if [[ -L ${etc_lt} ]]; then
|
||||||
|
einfo "Skipping symlinked ${etc_lt}"
|
||||||
|
else
|
||||||
|
einfo "Updating ${etc_lt} with ${EROOT}usr/share/zoneinfo/${tz}"
|
||||||
|
cp -f "${EROOT}"/usr/share/zoneinfo/"${tz}" "${etc_lt}"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
pkg_config
|
||||||
|
}
|
154
sdk_container/src/third_party/portage-stable/sys-libs/timezone-data/timezone-data-2015c.ebuild
vendored
Normal file
154
sdk_container/src/third_party/portage-stable/sys-libs/timezone-data/timezone-data-2015c.ebuild
vendored
Normal file
@ -0,0 +1,154 @@
|
|||||||
|
# Copyright 1999-2015 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/timezone-data-2015c.ebuild,v 1.1 2015/04/14 15:38:19 vapier Exp $
|
||||||
|
|
||||||
|
EAPI="4"
|
||||||
|
|
||||||
|
inherit eutils toolchain-funcs flag-o-matic
|
||||||
|
|
||||||
|
code_ver=${PV}
|
||||||
|
data_ver=${PV}
|
||||||
|
DESCRIPTION="Timezone data (/usr/share/zoneinfo) and utilities (tzselect/zic/zdump)"
|
||||||
|
HOMEPAGE="http://www.iana.org/time-zones http://www.twinsun.com/tz/tz-link.htm"
|
||||||
|
SRC_URI="http://www.iana.org/time-zones/repository/releases/tzdata${data_ver}.tar.gz
|
||||||
|
http://www.iana.org/time-zones/repository/releases/tzcode${code_ver}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD public-domain"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||||
|
IUSE="nls right_timezone elibc_FreeBSD elibc_glibc"
|
||||||
|
|
||||||
|
RDEPEND="!sys-libs/glibc[vanilla(+)]"
|
||||||
|
|
||||||
|
S=${WORKDIR}
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
# Deal with the case where older timezone-data installed a
|
||||||
|
# dir here, but newer one installs symlinks. Portage will
|
||||||
|
# barf when you try to transition file types.
|
||||||
|
if cd "${EROOT}"/usr/share/zoneinfo 2>/dev/null ; then
|
||||||
|
# In case of a failed upgrade, clean up the symlinks #506570
|
||||||
|
if [ -L .gentoo-upgrade ] ; then
|
||||||
|
rm -rf posix .gentoo-upgrade
|
||||||
|
fi
|
||||||
|
if [ -d posix ] ; then
|
||||||
|
rm -rf .gentoo-upgrade #487192
|
||||||
|
mv posix .gentoo-upgrade || die
|
||||||
|
ln -s .gentoo-upgrade posix || die
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
epatch "${FILESDIR}"/${PN}-2015a-makefile.patch
|
||||||
|
tc-is-cross-compiler && cp -pR "${S}" "${S}"-native
|
||||||
|
}
|
||||||
|
|
||||||
|
_emake() {
|
||||||
|
emake \
|
||||||
|
TOPDIR="${EPREFIX}/usr" \
|
||||||
|
REDO=$(usex right_timezone posix_right posix_only) \
|
||||||
|
"$@"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
local LDLIBS
|
||||||
|
tc-export CC
|
||||||
|
if use elibc_FreeBSD || use elibc_Darwin ; then
|
||||||
|
append-cppflags -DSTD_INSPIRED #138251
|
||||||
|
fi
|
||||||
|
export NLS=$(usex nls 1 0)
|
||||||
|
if use nls && ! use elibc_glibc ; then
|
||||||
|
LDLIBS+=" -lintl" #154181
|
||||||
|
fi
|
||||||
|
# TOPDIR is used in some utils when compiling.
|
||||||
|
_emake \
|
||||||
|
AR="$(tc-getAR)" \
|
||||||
|
CC="$(tc-getCC)" \
|
||||||
|
RANLIB="$(tc-getRANLIB)" \
|
||||||
|
CFLAGS="${CFLAGS} -std=gnu99" \
|
||||||
|
LDFLAGS="${LDFLAGS}" \
|
||||||
|
LDLIBS="${LDLIBS}"
|
||||||
|
if tc-is-cross-compiler ; then
|
||||||
|
_emake -C "${S}"-native \
|
||||||
|
CC="$(tc-getBUILD_CC)" \
|
||||||
|
CFLAGS="${BUILD_CFLAGS}" \
|
||||||
|
CPPFLAGS="${BUILD_CPPFLAGS}" \
|
||||||
|
LDFLAGS="${BUILD_LDFLAGS}" \
|
||||||
|
LDLIBS="${LDLIBS}" \
|
||||||
|
zic
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
local zic=""
|
||||||
|
tc-is-cross-compiler && zic="zic=${S}-native/zic"
|
||||||
|
_emake install ${zic} DESTDIR="${D}"
|
||||||
|
dodoc CONTRIBUTING README NEWS Theory
|
||||||
|
dohtml *.htm
|
||||||
|
|
||||||
|
# install the symlink by hand to not break existing timezones
|
||||||
|
if ! use right_timezone && [[ ! -e ${ED}/usr/share/zoneinfo/posix ]] ; then
|
||||||
|
dosym . /usr/share/zoneinfo/posix
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
get_TIMEZONE() {
|
||||||
|
local tz src="${EROOT}etc/timezone"
|
||||||
|
if [[ -e ${src} ]] ; then
|
||||||
|
tz=$(sed -e 's:#.*::' -e 's:[[:space:]]*::g' -e '/^$/d' "${src}")
|
||||||
|
else
|
||||||
|
tz="FOOKABLOIE"
|
||||||
|
fi
|
||||||
|
[[ -z ${tz} ]] && return 1 || echo "${tz}"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_preinst() {
|
||||||
|
local tz=$(get_TIMEZONE)
|
||||||
|
if ! use right_timezone && [[ ${tz} == right/* ]] ; then
|
||||||
|
eerror "Your timezone is set to '${tz}' but you have USE=-right_timezone."
|
||||||
|
die "Please fix your USE or timezone"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_config() {
|
||||||
|
# make sure the /etc/localtime file does not get stale #127899
|
||||||
|
local tz src="${EROOT}etc/timezone" etc_lt="${EROOT}etc/localtime"
|
||||||
|
|
||||||
|
tz=$(get_TIMEZONE) || return 0
|
||||||
|
if [[ ${tz} == "FOOKABLOIE" ]] ; then
|
||||||
|
elog "You do not have TIMEZONE set in ${src}."
|
||||||
|
|
||||||
|
if [[ ! -e ${etc_lt} ]] ; then
|
||||||
|
# if /etc/localtime is a symlink somewhere, assume they
|
||||||
|
# know what they're doing and they're managing it themselves
|
||||||
|
if [[ ! -L ${etc_lt} ]] ; then
|
||||||
|
cp -f "${EROOT}"/usr/share/zoneinfo/Factory "${etc_lt}"
|
||||||
|
elog "Setting ${etc_lt} to Factory."
|
||||||
|
else
|
||||||
|
elog "Assuming your ${etc_lt} symlink is what you want; skipping update."
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
elog "Skipping auto-update of ${etc_lt}."
|
||||||
|
fi
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ ! -e ${EROOT}/usr/share/zoneinfo/${tz} ]] ; then
|
||||||
|
elog "You have an invalid TIMEZONE setting in ${src}"
|
||||||
|
elog "Your ${etc_lt} has been reset to Factory; enjoy!"
|
||||||
|
tz="Factory"
|
||||||
|
fi
|
||||||
|
if [[ -L ${etc_lt} ]]; then
|
||||||
|
einfo "Skipping symlinked ${etc_lt}"
|
||||||
|
else
|
||||||
|
einfo "Updating ${etc_lt} with ${EROOT}usr/share/zoneinfo/${tz}"
|
||||||
|
cp -f "${EROOT}"/usr/share/zoneinfo/"${tz}" "${etc_lt}"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
rm -rf "${EROOT}"/usr/share/zoneinfo/.gentoo-upgrade &
|
||||||
|
pkg_config
|
||||||
|
wait
|
||||||
|
}
|
143
sdk_container/src/third_party/portage-stable/sys-libs/timezone-data/timezone-data-2015d.ebuild
vendored
Normal file
143
sdk_container/src/third_party/portage-stable/sys-libs/timezone-data/timezone-data-2015d.ebuild
vendored
Normal file
@ -0,0 +1,143 @@
|
|||||||
|
# Copyright 1999-2015 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/timezone-data-2015d.ebuild,v 1.1 2015/04/24 18:19:02 vapier Exp $
|
||||||
|
|
||||||
|
EAPI="4"
|
||||||
|
|
||||||
|
inherit eutils toolchain-funcs flag-o-matic
|
||||||
|
|
||||||
|
code_ver=${PV}
|
||||||
|
data_ver=${PV}
|
||||||
|
DESCRIPTION="Timezone data (/usr/share/zoneinfo) and utilities (tzselect/zic/zdump)"
|
||||||
|
HOMEPAGE="http://www.iana.org/time-zones http://www.twinsun.com/tz/tz-link.htm"
|
||||||
|
SRC_URI="http://www.iana.org/time-zones/repository/releases/tzdata${data_ver}.tar.gz
|
||||||
|
http://www.iana.org/time-zones/repository/releases/tzcode${code_ver}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD public-domain"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||||
|
IUSE="nls leaps_timezone elibc_FreeBSD elibc_glibc"
|
||||||
|
|
||||||
|
RDEPEND="!sys-libs/glibc[vanilla(+)]"
|
||||||
|
|
||||||
|
S=${WORKDIR}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
epatch "${FILESDIR}"/${PN}-2015c-makefile.patch
|
||||||
|
tc-is-cross-compiler && cp -pR "${S}" "${S}"-native
|
||||||
|
}
|
||||||
|
|
||||||
|
_emake() {
|
||||||
|
emake \
|
||||||
|
TOPDIR="${EPREFIX}/usr" \
|
||||||
|
REDO=$(usex leaps_timezone posix_right posix_only) \
|
||||||
|
"$@"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
local LDLIBS
|
||||||
|
tc-export CC
|
||||||
|
if use elibc_FreeBSD || use elibc_Darwin ; then
|
||||||
|
append-cppflags -DSTD_INSPIRED #138251
|
||||||
|
fi
|
||||||
|
export NLS=$(usex nls 1 0)
|
||||||
|
if use nls && ! use elibc_glibc ; then
|
||||||
|
LDLIBS+=" -lintl" #154181
|
||||||
|
fi
|
||||||
|
# TOPDIR is used in some utils when compiling.
|
||||||
|
_emake \
|
||||||
|
AR="$(tc-getAR)" \
|
||||||
|
CC="$(tc-getCC)" \
|
||||||
|
RANLIB="$(tc-getRANLIB)" \
|
||||||
|
CFLAGS="${CFLAGS} -std=gnu99" \
|
||||||
|
LDFLAGS="${LDFLAGS}" \
|
||||||
|
LDLIBS="${LDLIBS}"
|
||||||
|
if tc-is-cross-compiler ; then
|
||||||
|
_emake -C "${S}"-native \
|
||||||
|
CC="$(tc-getBUILD_CC)" \
|
||||||
|
CFLAGS="${BUILD_CFLAGS}" \
|
||||||
|
CPPFLAGS="${BUILD_CPPFLAGS}" \
|
||||||
|
LDFLAGS="${BUILD_LDFLAGS}" \
|
||||||
|
LDLIBS="${LDLIBS}" \
|
||||||
|
zic
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
local zic=""
|
||||||
|
tc-is-cross-compiler && zic="zic=${S}-native/zic"
|
||||||
|
_emake install ${zic} DESTDIR="${D}"
|
||||||
|
dodoc CONTRIBUTING README NEWS Theory
|
||||||
|
dohtml *.htm
|
||||||
|
}
|
||||||
|
|
||||||
|
get_TIMEZONE() {
|
||||||
|
local tz src="${EROOT}etc/timezone"
|
||||||
|
if [[ -e ${src} ]] ; then
|
||||||
|
tz=$(sed -e 's:#.*::' -e 's:[[:space:]]*::g' -e '/^$/d' "${src}")
|
||||||
|
else
|
||||||
|
tz="FOOKABLOIE"
|
||||||
|
fi
|
||||||
|
[[ -z ${tz} ]] && return 1 || echo "${tz}"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_preinst() {
|
||||||
|
local tz=$(get_TIMEZONE)
|
||||||
|
if [[ ${tz} == right/* || ${tz} == posix/* ]] ; then
|
||||||
|
eerror "The right & posix subdirs are no longer installed as subdirs -- they have been"
|
||||||
|
eerror "relocated to match upstream paths as sibling paths. Further, posix/xxx is the"
|
||||||
|
eerror "same as xxx, so you should simply drop the posix/ prefix. You also should not"
|
||||||
|
eerror "be using right/xxx for the system timezone as it breaks programs."
|
||||||
|
die "Please fix your timezone setting"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Trim the symlink by hand to avoid portage's automatic protection checks.
|
||||||
|
rm -f "${EROOT}"/usr/share/zoneinfo/posix
|
||||||
|
|
||||||
|
if has_version "<=${CATEGORY}/${PN}-2015c" ; then
|
||||||
|
elog "Support for accessing posix/ and right/ directly has been dropped to match"
|
||||||
|
elog "upstream. There is no need to set TZ=posix/xxx as it is the same as TZ=xxx."
|
||||||
|
elog "For TZ=right/, you can use TZ=../zoneinfo-leaps/xxx instead. See this post"
|
||||||
|
elog "for details: https://mm.icann.org/pipermail/tz/2015-February/022024.html"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_config() {
|
||||||
|
# make sure the /etc/localtime file does not get stale #127899
|
||||||
|
local tz src="${EROOT}etc/timezone" etc_lt="${EROOT}etc/localtime"
|
||||||
|
|
||||||
|
tz=$(get_TIMEZONE) || return 0
|
||||||
|
if [[ ${tz} == "FOOKABLOIE" ]] ; then
|
||||||
|
elog "You do not have TIMEZONE set in ${src}."
|
||||||
|
|
||||||
|
if [[ ! -e ${etc_lt} ]] ; then
|
||||||
|
# if /etc/localtime is a symlink somewhere, assume they
|
||||||
|
# know what they're doing and they're managing it themselves
|
||||||
|
if [[ ! -L ${etc_lt} ]] ; then
|
||||||
|
cp -f "${EROOT}"/usr/share/zoneinfo/Factory "${etc_lt}"
|
||||||
|
elog "Setting ${etc_lt} to Factory."
|
||||||
|
else
|
||||||
|
elog "Assuming your ${etc_lt} symlink is what you want; skipping update."
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
elog "Skipping auto-update of ${etc_lt}."
|
||||||
|
fi
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ ! -e ${EROOT}/usr/share/zoneinfo/${tz} ]] ; then
|
||||||
|
elog "You have an invalid TIMEZONE setting in ${src}"
|
||||||
|
elog "Your ${etc_lt} has been reset to Factory; enjoy!"
|
||||||
|
tz="Factory"
|
||||||
|
fi
|
||||||
|
if [[ -L ${etc_lt} ]]; then
|
||||||
|
einfo "Skipping symlinked ${etc_lt}"
|
||||||
|
else
|
||||||
|
einfo "Updating ${etc_lt} with ${EROOT}usr/share/zoneinfo/${tz}"
|
||||||
|
cp -f "${EROOT}"/usr/share/zoneinfo/"${tz}" "${etc_lt}"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
pkg_config
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user