- Install of version 0.1.51
- Definition of rootfile
- Creation of metadata patch to eliminate windows options
Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
---
config/rootfiles/common/rust-iana-time-zone | 24 ++++++
lfs/rust-iana-time-zone | 81 +++++++++++++++++++
...t-iana-time-zone-0.1.51-fix-metadata.patch | 34 ++++++++
3 files changed, 139 insertions(+)
create mode 100644 config/rootfiles/common/rust-iana-time-zone
create mode 100644 lfs/rust-iana-time-zone
create mode 100644 src/patches/rust-iana-time-zone-0.1.51-fix-metadata.patch
new file mode 100644
@@ -0,0 +1,24 @@
+#usr/share/cargo/registry/iana-time-zone-0.1.51
+#usr/share/cargo/registry/iana-time-zone-0.1.51/.cargo-checksum.json
+#usr/share/cargo/registry/iana-time-zone-0.1.51/CHANGELOG.md
+#usr/share/cargo/registry/iana-time-zone-0.1.51/Cargo.toml
+#usr/share/cargo/registry/iana-time-zone-0.1.51/Cargo.toml.deps
+#usr/share/cargo/registry/iana-time-zone-0.1.51/LICENSE-APACHE
+#usr/share/cargo/registry/iana-time-zone-0.1.51/LICENSE-MIT
+#usr/share/cargo/registry/iana-time-zone-0.1.51/README.md
+#usr/share/cargo/registry/iana-time-zone-0.1.51/examples
+#usr/share/cargo/registry/iana-time-zone-0.1.51/examples/get_timezone.rs
+#usr/share/cargo/registry/iana-time-zone-0.1.51/examples/stress-test.rs
+#usr/share/cargo/registry/iana-time-zone-0.1.51/src
+#usr/share/cargo/registry/iana-time-zone-0.1.51/src/ffi_utils.rs
+#usr/share/cargo/registry/iana-time-zone-0.1.51/src/lib.rs
+#usr/share/cargo/registry/iana-time-zone-0.1.51/src/platform.rs
+#usr/share/cargo/registry/iana-time-zone-0.1.51/src/tz_android.rs
+#usr/share/cargo/registry/iana-time-zone-0.1.51/src/tz_freebsd.rs
+#usr/share/cargo/registry/iana-time-zone-0.1.51/src/tz_haiku.rs
+#usr/share/cargo/registry/iana-time-zone-0.1.51/src/tz_illumos.rs
+#usr/share/cargo/registry/iana-time-zone-0.1.51/src/tz_linux.rs
+#usr/share/cargo/registry/iana-time-zone-0.1.51/src/tz_macos.rs
+#usr/share/cargo/registry/iana-time-zone-0.1.51/src/tz_netbsd.rs
+#usr/share/cargo/registry/iana-time-zone-0.1.51/src/tz_wasm32.rs
+#usr/share/cargo/registry/iana-time-zone-0.1.51/src/tz_windows.rs
new file mode 100644
@@ -0,0 +1,81 @@
+###############################################################################
+# #
+# IPFire.org - A linux based firewall #
+# Copyright (C) 2007-2018 IPFire Team <info@ipfire.org> #
+# #
+# This program is free software: you can redistribute it and/or modify #
+# it under the terms of the GNU General Public License as published by #
+# the Free Software Foundation, either version 3 of the License, or #
+# (at your option) any later version. #
+# #
+# This program is distributed in the hope that it will be useful, #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
+# GNU General Public License for more details. #
+# #
+# You should have received a copy of the GNU General Public License #
+# along with this program. If not, see <http://www.gnu.org/licenses/>. #
+# #
+###############################################################################
+
+###############################################################################
+# Definitions
+###############################################################################
+
+include Config
+
+VER = 0.1.51
+
+THISAPP = iana-time-zone-$(VER)
+DL_FILE = $(THISAPP).tar.gz
+DL_FROM = $(URL_IPFIRE)
+DIR_APP = $(DIR_SRC)/$(THISAPP)
+TARGET = $(DIR_INFO)/$(THISAPP)
+
+###############################################################################
+# Top-level Rules
+###############################################################################
+
+objects = $(DL_FILE)
+
+$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
+
+$(DL_FILE)_BLAKE2 = 9e29f255039c03361f9d0e1be83c71b984c4a3e980110ddae770381cb9a78f0ed6f90cccc2f8bd9553bc68e5f65d4d9194c8766fdd9da46c68172c78ddbcad8f
+
+install : $(TARGET)
+
+check : $(patsubst %,$(DIR_CHK)/%,$(objects))
+
+download :$(patsubst %,$(DIR_DL)/%,$(objects))
+
+b2 : $(subst %,%_BLAKE2,$(objects))
+
+dist:
+ @$(PAK)
+
+###############################################################################
+# Downloading, checking, b2sum
+###############################################################################
+
+$(patsubst %,$(DIR_CHK)/%,$(objects)) :
+ @$(CHECK)
+
+$(patsubst %,$(DIR_DL)/%,$(objects)) :
+ @$(LOAD)
+
+$(subst %,%_BLAKE2,$(objects)) :
+ @$(B2SUM)
+
+###############################################################################
+# Installation Details
+###############################################################################
+
+$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
+ @$(PREBUILD)
+ @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
+ cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/rust-iana-time-zone-0.1.51-fix-metadata.patch
+ cd $(DIR_APP) && $(CARGO_PREPARE)
+ cd $(DIR_APP) && $(CARGO_BUILD)
+ cd $(DIR_APP) && $(CARGO_INSTALL)
+ @rm -rf $(DIR_APP)
+ @$(POSTBUILD)
new file mode 100644
@@ -0,0 +1,34 @@
+--- iana-time-zone-0.1.51/Cargo.toml.original 1970-01-01 01:00:01.000000000 +0100
++++ iana-time-zone-0.1.51/Cargo.toml 2022-10-13 23:51:27.954816115 +0200
+@@ -31,31 +31,3 @@
+ [features]
+ fallback = []
+
+-[target."cfg(any(target_os = \"macos\", target_os = \"ios\"))".dependencies.core-foundation-sys]
+-version = "0.8.3"
+-
+-[target."cfg(target_arch = \"wasm32\")".dependencies.js-sys]
+-version = "0.3.50"
+-
+-[target."cfg(target_arch = \"wasm32\")".dependencies.wasm-bindgen]
+-version = "0.2.70"
+-
+-[target."cfg(target_arch = \"wasm32\")".dev-dependencies.wasm-bindgen-test]
+-version = "0.3"
+-
+-[target."cfg(target_os = \"android\")".dependencies.android_system_properties]
+-version = "0.1.5"
+-
+-[target."cfg(target_os = \"haiku\")".dependencies.iana-time-zone-haiku]
+-version = "0.1.0"
+-
+-[target."cfg(target_os = \"windows\")".dependencies.winapi]
+-version = "0.3.9"
+-features = [
+- "activation",
+- "combaseapi",
+- "objbase",
+- "roapi",
+- "winerror",
+- "winstring",
+-]