mirror of
https://github.com/openwrt/packages.git
synced 2026-10-12 05:57:04 +04:00
fixed srv segfault on connection teardown (pthread_join clobbered tid) C daemon filters device atSign out of the manager atSign list handle the case where the only manager atSign is the device atSign sshnpd + srv code review findings (24 fixes: bounds checks, leak fixes, error-path hardening, log hygiene) bump atsdk to at_c v0.4.1 for the atauth/onboarding Signed-off-by: Chris Swan <chris@atsign.com> (cherry picked from commitec8e057db3) c1.1.0 (534819ae91) was not backported and is folded in here, so this also includes: Added policy support Added proxy support for root domain and at_activate Added ESCR relay authentication Adjustable session timeout Twinned session keys Security hardening
69 lines
1.8 KiB
Makefile
69 lines
1.8 KiB
Makefile
#
|
|
# Copyright (C) 2025 The Atsign Foundation
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=csshnpd
|
|
PKG_VERSION:=1.1.1
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-c$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://github.com/atsign-foundation/noports/releases/download/c$(PKG_VERSION)
|
|
PKG_HASH:=5535badb78cd26607945ec5ee0f4c6db0fee595e2ae6f2cd4996da164d682665
|
|
|
|
PKG_MAINTAINER:=Chris Swan <chris@atsign.com>
|
|
PKG_LICENSE:=BSD-3-Clause
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-c$(PKG_VERSION)
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
CMAKE_OPTIONS += \
|
|
-S . \
|
|
-DATSDK_BUILD_TESTS="OFF" \
|
|
-DATSDK_MEMCHECK="OFF" \
|
|
-DBUILD_SHARED_AND_STATIC_LIBS="OFF" \
|
|
-DCMAKE_EXPORT_COMPILE_COMMANDS="OFF" \
|
|
-DCMAKE_INSTALL_PREFIX="${PKG_BUILD_DIR}/build/release-static/tmp-install-dir" \
|
|
-DENABLE_PROGRAMS="OFF" \
|
|
-DENABLE_TARGET_EXPORT="OFF" \
|
|
-DENABLE_TESTING="OFF" \
|
|
-DNOPORTS_ATSDK_PATH="deps/atsdk-src" \
|
|
-DNOPORTS_BUILD_TESTS="OFF" \
|
|
-DNOPORTS_USE_SHARED_LIBS="ON"
|
|
|
|
define Package/csshnpd
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
SUBMENU:=SSH
|
|
DEPENDS:=+libmbedtls +cJSON
|
|
TITLE:=NoPorts Daemon
|
|
URL:=https://noports.com
|
|
endef
|
|
|
|
define Package/csshnpd/description
|
|
A small and portable daemon for NoPorts.
|
|
endef
|
|
|
|
define Package/csshnpd/conffiles
|
|
/etc/config/sshnpd
|
|
/root/.atsign/
|
|
endef
|
|
|
|
define Package/csshnpd/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/sshnpd/sshnpd $(1)/usr/bin/
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/sshnpd/at_activate $(1)/usr/bin/
|
|
$(INSTALL_BIN) ./files/at_enroll.sh $(1)/usr/bin/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
$(INSTALL_CONF) ./files/csshnpd.config $(1)/etc/config/sshnpd
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
$(INSTALL_BIN) ./files/csshnpd.init $(1)/etc/init.d/sshnpd
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,csshnpd))
|