source: trunk/make/decrypt-fritzos-cfg/decrypt-fritzos-cfg.mk @ 14309

Letzte Änderung dieser Datei seit 14309 war 14309, erstellt von er13 vor 6 Monaten

decrypt-fritzos-cfg:

  • bump version to the latest upstream revision
Dateigröße: 2.2 KB
Zeile 
1$(call PKG_INIT_BIN, 8784a80f35)
2$(PKG)_ORIG_NAME:=decode_passwords
3$(PKG)_SOURCE:=$(subst -,_,$(pkg))-$($(PKG)_VERSION).tar.xz
4$(PKG)_SITE:=git@https://github.com/PeterPawn/$($(PKG)_ORIG_NAME).git
5$(PKG)_DIR:=$($(PKG)_SOURCE_DIR)/$(subst -,_,$(pkg))-$($(PKG)_VERSION)
6
7# silence format warnings
8$(PKG)_PATCH_POST_CMDS += $(SED) -i -r -e 's/(errorMessage|warningMessage)[(]([_a-zA-Z0-9]+)[)];/\1("%s", \2);/g' src/*.c;
9
10$(PKG)_DEPENDS_ON += openssl
11
12$(PKG)_BINARY := $($(PKG)_DIR)/src/decoder
13$(PKG)_TARGET_BINARY := $($(PKG)_DEST_DIR)/usr/bin/decoder
14
15$(PKG)_SYMLINKS_ALL := decrypt-fritzos-cfg
16$(PKG)_SYMLINKS_ALL += decode_secrets decode_export decode_cryptedbinfile decode_secret user_password device_password password_from_device
17$(PKG)_SYMLINKS_ALL += hexdec hexenc b64dec b64enc b32dec b32enc
18
19$(PKG)_SYMLINKS := $(call PKG_SELECTED_SUBOPTIONS,$($(PKG)_SYMLINKS_ALL))
20$(PKG)_SYMLINKS_TARGET_DIR := $($(PKG)_SYMLINKS:%=$($(PKG)_DEST_DIR)/usr/bin/%)
21
22$(PKG)_EXCLUDED += $(patsubst %,$($(PKG)_DEST_DIR)/usr/bin/%,$(filter-out $($(PKG)_SYMLINKS),$($(PKG)_SYMLINKS_ALL)))
23$(PKG)_EXCLUDED += $(if $(FREETZ_PACKAGE_DECRYPT_FRITZOS_CFG_allcfgconv_c),,bin/allcfgconv-c)
24
25$(PKG)_LINK_MODE := $(call PKG_SELECTED_SUBOPTIONS,ALL_DYN CRYPTO_STAT ALL_STAT)
26
27$(PKG)_REBUILD_SUBOPTS += FREETZ_PACKAGE_DECRYPT_FRITZOS_CFG_ALL_DYN
28$(PKG)_REBUILD_SUBOPTS += FREETZ_PACKAGE_DECRYPT_FRITZOS_CFG_CRYPTO_STAT
29$(PKG)_REBUILD_SUBOPTS += FREETZ_PACKAGE_DECRYPT_FRITZOS_CFG_ALL_STAT
30
31$(PKG_SOURCE_DOWNLOAD)
32$(PKG_UNPACKED)
33$(PKG_CONFIGURED_NOP)
34
35$($(PKG)_BINARY): $($(PKG)_DIR)/.configured
36    $(SUBMAKE) -C $(DECRYPT_FRITZOS_CFG_DIR)/src \
37        CC="$(TARGET_CC)" \
38        CFLAGS="$(TARGET_CFLAGS)" \
39        OPT="" \
40        DECODER_CONFIG_LINK_MODE=$(DECRYPT_FRITZOS_CFG_LINK_MODE) \
41        FREETZ_PACKAGE_DECRYPT_FRITZOS_CFG=y
42
43$($(PKG)_TARGET_BINARY): $($(PKG)_BINARY)
44    $(INSTALL_BINARY_STRIP)
45
46$($(PKG)_SYMLINKS_TARGET_DIR): $($(PKG)_TARGET_BINARY)
47    @ln -sf $(notdir $<) $@
48
49$(pkg):
50
51$(pkg)-precompiled: $($(PKG)_TARGET_BINARY) $($(PKG)_SYMLINKS_TARGET_DIR)
52
53$(pkg)-clean:
54    $(SUBMAKE) -C $(DECRYPT_FRITZOS_CFG_DIR)/src clean
55
56$(pkg)-uninstall:
57    $(RM) $(DECRYPT_FRITZOS_CFG_TARGET_BINARY) $(DECRYPT_FRITZOS_CFG_SYMLINKS_ALL:%=$(DECRYPT_FRITZOS_CFG_DEST_DIR)/usr/bin/%)
58
59$(PKG_FINISH)
Hinweis: Hilfe zum Repository-Browser finden Sie in TracBrowser.