ssocks: separate into 2 packages

This commit is contained in:
AmadeusGhost 2020-08-25 19:20:30 +08:00
parent 64580b9a0b
commit 118faa8516
2 changed files with 24 additions and 8 deletions

View File

@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk
LUCI_TITLE:=LuCI support for sSocks
LUCI_DEPENDS:=+busybox +iptables +ssocks
LUCI_DEPENDS:=+busybox +iptables +ssocksd
LUCI_PKGARCH:=all
PKG_NAME:=luci-app-ssocks
PKG_VERSION:=1.0

View File

@ -29,20 +29,36 @@ PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
define Package/$(PKG_NAME)
define Package/ssocks
SECTION:=net
CATEGORY:=Network
TITLE:=sSocks
TITLE:=sSocks Relay
URL:=https://github.com/david378/ssocks
endef
define Package/$(PKG_NAME)/description
sSocks is a package which contains: a socks5 server implements RFC 1928 (SOCKS V5) and RFC 1929 (Authentication for SOCKS V5), a reverse socks server and client, a netcat like tool and a socks5 relay.
define Package/ssocks/description
sSocks is a package which contains: a socks5 server implements RFC 1928 (SOCKS V5) and RFC 1929 (Authentication for SOCKS V5),
a reverse socks server and client, a netcat like tool and a socks5 relay.
endef
define Package/$(PKG_NAME)/install
define Package/ssocksd
$(call Package/ssocks)
TITLE:=sSocks Server
endef
define Package/ssocksd/description
$(call Package/ssocks/description)
endef
define Package/ssocks/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ssocksd $(1)/usr/bin/ssocks
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ssocks $(1)/usr/bin/
endef
$(eval $(call BuildPackage,$(PKG_NAME)))
define Package/ssocksd/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ssocksd $(1)/usr/bin/
endef
$(eval $(call BuildPackage,ssocks))
$(eval $(call BuildPackage,ssocksd))