I needed extor-static-cookie for a project, so created a Makefile. Should one of the Maintainers of the Net section want to take ownership of it to include in the master branch--Please do.
Enjoy.
$ cat feeds/packages/net/extor-static-cookie/Makefile
#
# Copyright (C) 2022 Tor Project
#
# This is free software. See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=extor-static-cookie
PKG_VERSION:=main
PKG_RELEASE:=20221211
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=https://gitlab.torproject.org/dcf/extor-static-cookie/-/archive/$(PKG_VERSION)/
PKG_HASH:=52b46eedbfbeb9ec5bc08e0ff3f11752568f5ecb8ea938575a4fc5643429d9fd
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_LICENSE:=No-License
PKG_LICENSE_FILES:=LICENSE
PKG_MAINTAINER:=David Fifield <david@bamsoftware.com>
PKG_BUILD_DEPENDS:=golang/host
PKG_BUILD_PARALLEL:=1
PKG_USE_MIPS16:=0
GO_PKG:=gitlab.torproject.org/dcf/extor-static-cookie
include $(INCLUDE_DIR)/package.mk
include ../../lang/golang/golang-package.mk
define Package/extor-static-cookie/Default
TITLE:=Pluggable Transport for Tor that accepts incoming Extended ORPort (ExtORPort) connections and forwards them to Tor's own ExtORPort
URL:=https://gitlab.torproject.org/dcf/extor-static-cookie
DEPENDS:=$(GO_ARCH_DEPENDS)
endef
define Package/extor-static-cookie
$(call Package/extor-static-cookie/Default)
SECTION:=net
CATEGORY:=Network
#DEPENDS:=+golang
endef
define Package/extor-static-cookie/Default/description
extor-static-cookie is a pluggable transport that lets you run an ExtORPort with a static, unchanging authentication cookie file, as opposed to Tor which re-randomizes the cookie on every startup.
It is written in Go and is compliant with the Tor pluggable transports specification, and its modular architecture allows it to support multiple pluggable transports.
endef
define Package/extor-static-cookie/description
$(call Package/extor-static-cookie/Default/description)
This package contains the extor-static-cookie and gen-auth-cookie programs.
endef
define Package/extor-static-cookie/install
$(INSTALL_DIR) $(1)/opt/bin
$(INSTALL_BIN) $(GO_PKG_BUILD_BIN_DIR)/extor-static-cookie $(1)/opt/bin
$(INSTALL_DIR) $(1)/opt/bin
$(INSTALL_BIN) files/gen-auth-cookie $(1)/opt/bin
endef
$(eval $(call GoBinPackage,extor-static-cookie))
$(eval $(call BuildPackage,extor-static-cookie))