diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-06-02 10:44:02 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-06-02 10:44:02 (EDT) |
commit | c0a2aa0e3cd85aa6a611707b41c4c7f4136adbfb (patch) | |
tree | 02ea581f9d7c91361f88382bb5e016315048d93e |
Initial commit
-rw-r--r-- | .gitignore | 12 | ||||
-rwxr-xr-x | build | 6 | ||||
-rw-r--r-- | changelog | 5 | ||||
-rw-r--r-- | control | 3 | ||||
-rw-r--r-- | format | 1 | ||||
-rw-r--r-- | source.mk | 26 |
6 files changed, 53 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a09c6b4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,12 @@ +# Swap and backup files +.*.sw* +.sw* +*~ +Session.vim + +# Source archives +*-*.orig.tar.* +keyring.gpg + +# Work area +tmp/ @@ -0,0 +1,6 @@ +#!/usr/bin/make -f + +include ../source.mk + +nop: + @: diff --git a/changelog b/changelog new file mode 100644 index 0000000..7eefc1f --- /dev/null +++ b/changelog @@ -0,0 +1,5 @@ +tzdb (2019a-1) trunk + + * New upstream release (merged tzcode and tzdata packages). + + -- Patrick McDermott <patrick.mcdermott@libiquity.com> Sun, 02 Jun 2019 09:48:08 -0400 @@ -0,0 +1,3 @@ +Maintainer: Patrick McDermott <patrick.mcdermott@libiquity.com> +Build-Depends: gpg, dirmngr, opkhelper-3.0 +Homepage: https://www.iana.org/time-zones @@ -0,0 +1 @@ +2.0 diff --git a/source.mk b/source.mk new file mode 100644 index 0000000..4e32c18 --- /dev/null +++ b/source.mk @@ -0,0 +1,26 @@ +# The merged tzdb archive now has a top-level directory as opkbuild requires. + +upstream_archive = $(OPK_SOURCE)-$(OPK_SOURCE_VERSION_UPSTREAM).tar.lz +upstream_url_base = http://data.iana.org/time-zones/releases +upstream_url = $(upstream_url_base)/$(upstream_archive) +source_archive = ../$(OPK_SOURCE)-$(OPK_SOURCE_VERSION_UPSTREAM).orig.tar.lz + +gpg = GNUPGHOME=gnupghome/ gpg --no-default-keyring --keyring ../keyring.gpg +keys = \ + '7E37 92A9 D8AC F7D6 33BC 1588 ED97 E90E 62AA 7E34' + +$(source_archive): + wget -c '$(upstream_url)' '$(upstream_url).asc' + install -m 0700 -d gnupghome/ + [ -e ../keyring.gpg ] || \ + $(gpg) --keyserver hkp://pool.sks-keyservers.net \ + --recv-keys $(keys); \ + rm -f ../keyring.gpg~; \ + if ! $(gpg) --verify '$(upstream_archive).asc'; then \ + rm -Rf gnupghome/; \ + exit 1; \ + fi + rm -Rf gnupghome/ + mv '$(upstream_archive)' '$(source_archive)' + +source: $(source_archive) |