source: trunk/make/tinc/tinc.mk @ 14363

Letzte Änderung dieser Datei seit 14363 war 14363, erstellt von er13 vor 5 Monaten

tinc:

  • add experimental support for 1.1preX branch
  • closes #2922
Dateigröße: 2.2 KB
Zeile 
1$(call PKG_INIT_BIN, $(if $(FREETZ_PACKAGE_TINC_VERSION_1_1),1.1pre14,1.0.31))
2$(PKG)_SOURCE:=$(pkg)-$($(PKG)_VERSION).tar.gz
3$(PKG)_SOURCE_MD5_1.0.31  :=7a96f7eb12dfd43b21852b4207d860f2
4$(PKG)_SOURCE_MD5_1.1pre14:=401ad9b0610dc4da233d6edb1f463cb8
5$(PKG)_SOURCE_MD5:=$($(PKG)_SOURCE_MD5_$($(PKG)_VERSION))
6$(PKG)_SITE:=http://www.tinc-vpn.org/packages
7
8$(PKG)_CONDITIONAL_PATCHES+=$(if $(FREETZ_PACKAGE_TINC_VERSION_1_1),1.1,1.0)
9
10$(PKG)_BINARY:=$($(PKG)_DIR)/src/tincd
11$(PKG)_TARGET_BINARY:=$($(PKG)_DEST_DIR)/usr/sbin/tincd
12
13$(PKG)_BINARY_CTL:=$($(PKG)_DIR)/src/tinc
14$(PKG)_TARGET_BINARY_CTL:=$($(PKG)_DEST_DIR)/usr/sbin/tinc
15
16$(PKG)_EXCLUDED += $(if $(FREETZ_PACKAGE_TINC_tinc),,$($(PKG)_TARGET_BINARY_CTL))
17
18$(PKG)_DEPENDS_ON += lzo openssl zlib
19$(PKG)_DEPENDS_ON += $(if $(FREETZ_PACKAGE_TINC_VERSION_1_1),ncurses readline)
20
21$(PKG)_REBUILD_SUBOPTS += FREETZ_PACKAGE_TINC_VERSION_1_0
22$(PKG)_REBUILD_SUBOPTS += FREETZ_PACKAGE_TINC_VERSION_1_1
23$(PKG)_REBUILD_SUBOPTS += FREETZ_PACKAGE_TINC_STATIC
24$(PKG)_REBUILD_SUBOPTS += FREETZ_OPENSSL_SHLIB_VERSION
25
26$(PKG)_HARDENING_OPTS := check_cflags___fPIE check_ldflags___pie
27#$(PKG)_HARDENING_OPTS += check_ldflags___Wl__z_relro check_ldflags___Wl__z_now
28$(PKG)_CONFIGURE_PRE_CMDS += $(call PKG_MAKE_AC_VARIABLES_PACKAGE_SPECIFIC,$($(PKG)_HARDENING_OPTS),,ax)
29$(PKG)_CONFIGURE_ENV += $(foreach opt,$($(PKG)_HARDENING_OPTS),$(pkg)_$(opt)=no)
30
31$(PKG)_EXTRA_CFLAGS  += -ffunction-sections -fdata-sections
32$(PKG)_EXTRA_LDFLAGS += -Wl,--gc-sections
33ifeq ($(strip $(FREETZ_PACKAGE_TINC_STATIC)),y)
34$(PKG)_EXTRA_LDFLAGS += -static
35endif
36
37$(PKG_SOURCE_DOWNLOAD)
38$(PKG_UNPACKED)
39$(PKG_CONFIGURED_CONFIGURE)
40
41$($(PKG)_BINARY) $($(PKG)_BINARY_CTL): $($(PKG)_DIR)/.configured
42    $(SUBMAKE) -C $(TINC_DIR) \
43        EXTRA_CFLAGS="$(TINC_EXTRA_CFLAGS)" \
44        EXTRA_LDFLAGS="$(TINC_EXTRA_LDFLAGS)"
45
46$($(PKG)_TARGET_BINARY): $($(PKG)_BINARY)
47    $(INSTALL_BINARY_STRIP)
48
49$($(PKG)_TARGET_BINARY_CTL): $($(PKG)_BINARY_CTL)
50    $(INSTALL_BINARY_STRIP)
51
52$(pkg)-precompiled: $($(PKG)_TARGET_BINARY) $(if $(FREETZ_PACKAGE_TINC_tinc),$($(PKG)_TARGET_BINARY_CTL))
53
54$(pkg)-clean:
55    -$(SUBMAKE) -C $(TINC_DIR) clean
56    $(RM) $(TINC_FREETZ_CONFIG_FILE)
57
58$(pkg)-uninstall:
59    $(RM) $(TINC_TARGET_BINARY) $(TINC_TARGET_BINARY_CTL)
60
61$(PKG_FINISH)
Hinweis: Hilfe zum Repository-Browser finden Sie in TracBrowser.