-
Notifications
You must be signed in to change notification settings - Fork 3.9k
opengnb: add opengnb 1.6.8 to openwrt #29879
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,54 @@ | ||||||
| # | ||||||
| # Copyright 2026 Charles Chan <hollidgelongsun157@gmail.com> | ||||||
| # | ||||||
| # This is free software, licensed under the GNU General Public License v3.0-or-later | ||||||
| # See /LICENSE for more information. | ||||||
| # | ||||||
|
|
||||||
| include $(TOPDIR)/rules.mk | ||||||
|
|
||||||
| PKG_NAME:=opengnb | ||||||
| PKG_VERSION:=1.6.8 | ||||||
| PKG_RELEASE:=1 | ||||||
|
|
||||||
| PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | ||||||
| PKG_SOURCE_URL:=https://github.com/opengnb/opengnb/releases/download/$(PKG_VERSION)/ | ||||||
| PKG_HASH:=4c6a603080efa79457b889e43e87c1a3a070e7cf7cd7621d1a106a06a161f829 | ||||||
|
|
||||||
| PKG_MAINTAINER:=Charles Chan <hollidgelongsun157@gmail.com> | ||||||
| PKG_LICENSE:=GPL-3.0-or-later | ||||||
| PKG_LICENSE_FILES:=LICENSE | ||||||
|
|
||||||
| include $(INCLUDE_DIR)/package.mk | ||||||
|
|
||||||
| define Package/opengnb | ||||||
| SECTION:=net | ||||||
| CATEGORY:=Network | ||||||
| SUBMENU:=VPN | ||||||
| TITLE:=OpenGNB - P2P Decentralized Virtual Network | ||||||
| URL:=https://github.com/opengnb/opengnb | ||||||
| DEPENDS:=+kmod-tun +libpthread +zlib | ||||||
| endef | ||||||
|
|
||||||
| define Package/opengnb/description | ||||||
| OpenGNB is an open source P2P decentralized Software Defined Virtual Network | ||||||
| with extreme intranet penetration capability. | ||||||
| endef | ||||||
|
|
||||||
| define Build/Compile | ||||||
| $(MAKE) -C $(PKG_BUILD_DIR) \ | ||||||
| $(TARGET_CONFIGURE_OPTS) \ | ||||||
| CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \ | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. All four installed binaries embed a compile timestamp, which makes the package non-reproducible β the same source built twice yields different binaries. #ifndef GNB_SKIP_BUILD_TIME
#define GNB_BUILD_STRING "Build Time ["__DATE__","__TIME__"]"
#else
#define GNB_BUILD_STRING "Build Time [Hidden]"
#endifand
Suggested change
Generated by Claude Code |
||||||
| LDFLAGS="$(TARGET_LDFLAGS)" \ | ||||||
| -f Makefile.openwrt | ||||||
| endef | ||||||
|
|
||||||
| define Package/opengnb/install | ||||||
| $(INSTALL_DIR) $(1)/usr/sbin | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit / question: I can't tell from the diff whether this is deliberate. Worth noting the 1.6.7 tarball ships only a systemd unit ( Generated by Claude Code |
||||||
| $(INSTALL_BIN) $(PKG_BUILD_DIR)/gnb $(1)/usr/sbin/ | ||||||
| $(INSTALL_BIN) $(PKG_BUILD_DIR)/gnb_ctl $(1)/usr/sbin/ | ||||||
| $(INSTALL_BIN) $(PKG_BUILD_DIR)/gnb_crypto $(1)/usr/sbin/ | ||||||
| $(INSTALL_BIN) $(PKG_BUILD_DIR)/gnb_es $(1)/usr/sbin/ | ||||||
| endef | ||||||
|
|
||||||
| $(eval $(call BuildPackage,opengnb)) | ||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: This Makefile is committed with executable mode
100755. Package Makefiles in this tree are non-executable (100644) β 1446 of them are644and only 3 are755. Please reset the mode:then amend the commit.
Generated by Claude Code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.