Makefile (n2n-3.0) | : | Makefile (n2n-3.1.1) | ||
---|---|---|---|---|
# | # | |||
# Copyright (C) 2021 - ntop.org and contributors | # Copyright (C) 2021 - ntop.org and contributors | |||
# | # | |||
include $(TOPDIR)/rules.mk | include $(TOPDIR)/rules.mk | |||
PKG_NAME:=n2n | PKG_NAME:=n2n | |||
PKG_SOURCE_URL:=https://github.com/ntop/n2n.git | PKG_VERSION:=HEAD | |||
PKG_SOURCE_VERSION:=6937640a2bc24832af7fc4ed1658d6aef192f03b | ||||
PKG_VERSION:=2.9.0_dev_git$(PKG_SOURCE_VERSION) | ||||
PKG_RELEASE:=1 | PKG_RELEASE:=1 | |||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | ||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) | ||||
PKG_SOURCE_PROTO:=git | PKG_SOURCE_PROTO:=git | |||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | ||||
# These are defaults for compiling without any environmental overrides | ||||
# (eg, the github action calculates the correct overrides for each build) | ||||
PKG_SOURCE_URL:=https://github.com/ntop/n2n | ||||
PKG_SOURCE_VERSION:=dev | ||||
PKG_MIRROR_HASH:=skip | ||||
# Apply overrides from the build environment | ||||
ifdef N2N_PKG_SOURCE_URL | ||||
PKG_SOURCE_URL:=$(N2N_PKG_SOURCE_URL) | ||||
endif | ||||
ifdef N2N_PKG_SOURCE_VERSION | ||||
PKG_SOURCE_VERSION:=$(N2N_PKG_SOURCE_VERSION) | ||||
endif | ||||
ifdef N2N_PKG_VERSION | ||||
PKG_VERSION:=$(N2N_PKG_VERSION) | ||||
endif | ||||
PKG_MAINTAINER:=Emanuele Faranda <faranda@ntop.org> | PKG_MAINTAINER:=Emanuele Faranda <faranda@ntop.org> | |||
PKG_LICENSE:=GPL3 | PKG_LICENSE:=GPL3 | |||
PKG_BUILD_PARALLEL:=1 | ||||
# autogen fix | # autogen fix | |||
PKG_FIXUP:=autoreconf | PKG_FIXUP:=autoreconf | |||
include $(INCLUDE_DIR)/package.mk | include $(INCLUDE_DIR)/package.mk | |||
define Package/n2n/Default | define Package/n2n/Default | |||
SECTION:=net | SECTION:=net | |||
CATEGORY:=Network | CATEGORY:=Network | |||
TITLE:=N2N Peer-to-peer VPN | TITLE:=N2N Peer-to-peer VPN | |||
skipping to change at line 55 | skipping to change at line 68 | |||
define Package/n2n-edge/description | define Package/n2n-edge/description | |||
The client node for the N2N infrastructure | The client node for the N2N infrastructure | |||
endef | endef | |||
define Package/n2n-supernode/description | define Package/n2n-supernode/description | |||
The supernode for the N2N infrastructure | The supernode for the N2N infrastructure | |||
endef | endef | |||
define Build/Configure | define Build/Configure | |||
( cd $(PKG_BUILD_DIR); ./autogen.sh ) | ( cd $(PKG_BUILD_DIR); \ | |||
$(call Build/Configure/Default) | ./autogen.sh; \ | |||
./configure ) | ||||
endef | endef | |||
define Package/n2n-edge/conffiles | define Package/n2n-edge/conffiles | |||
/etc/n2n/edge.conf | /etc/n2n/edge.conf | |||
endef | endef | |||
define Package/n2n-edge/install | define Package/n2n-edge/install | |||
$(INSTALL_DIR) $(1)/usr/bin | $(INSTALL_DIR) $(1)/usr/bin | |||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/edge $(1)/usr/bin/ | $(INSTALL_BIN) $(PKG_BUILD_DIR)/edge $(1)/usr/bin/ | |||
$(INSTALL_DIR) $(1)/etc/init.d | $(INSTALL_DIR) $(1)/etc/init.d | |||
End of changes. 5 change blocks. | ||||
8 lines changed or deleted | 22 lines changed or added |