mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			64 lines
		
	
	
	
		
			1.7 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			64 lines
		
	
	
	
		
			1.7 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| #
 | |
| # Copyright (C) 2017 Jian Chang <aa65535@live.com>
 | |
| # Copyright (C) 2018-2019 Ycarus (Yannick Chabanois) <ycarus@zugaina.org>
 | |
| #
 | |
| # This is free software, licensed under the GNU General Public License v3.
 | |
| # See /LICENSE for more information.
 | |
| #
 | |
| 
 | |
| include $(TOPDIR)/rules.mk
 | |
| 
 | |
| PKG_NAME:=simple-obfs
 | |
| PKG_VERSION:=0.0.6
 | |
| PKG_RELEASE:=3
 | |
| 
 | |
| PKG_SOURCE_PROTO:=git
 | |
| PKG_SOURCE_URL:=https://github.com/shadowsocks/simple-obfs.git
 | |
| PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)
 | |
| PKG_SOURCE_VERSION:=486bebd9208539058e57e23a12f23103016e09b4
 | |
| PKG_SOURCE_DATE:=2019-08-17
 | |
| 
 | |
| PKG_LICENSE:=GPLv3
 | |
| PKG_LICENSE_FILES:=LICENSE
 | |
| PKG_MAINTAINER:=Ycarus (Yannick Chabanois) <ycarus@zugaina.org>
 | |
| 
 | |
| PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)/$(PKG_SOURCE_SUBDIR)
 | |
| 
 | |
| PKG_INSTALL:=1
 | |
| PKG_FIXUP:=autoreconf
 | |
| PKG_USE_MIPS16:=0
 | |
| PKG_BUILD_PARALLEL:=1
 | |
| 
 | |
| include $(INCLUDE_DIR)/package.mk
 | |
| 
 | |
| define Package/simple-obfs/Default
 | |
| 	SECTION:=net
 | |
| 	CATEGORY:=Network
 | |
| 	TITLE:=Simple-obfs
 | |
| 	URL:=https://github.com/shadowsocks/simple-obfs
 | |
| 	DEPENDS:=+libev +libpthread
 | |
| endef
 | |
| 
 | |
| Package/simple-obfs = $(call Package/simple-obfs/Default)
 | |
| Package/simple-obfs-server = $(call Package/simple-obfs/Default)
 | |
| 
 | |
| define Package/simple-obfs/description
 | |
| Simple-obfs is a simple obfusacting tool, designed as plugin server of shadowsocks.
 | |
| endef
 | |
| 
 | |
| Package/simple-obfs-server/description = $(Package/simple-obfs/description)
 | |
| 
 | |
| CONFIGURE_ARGS += --disable-ssp --disable-documentation --disable-assert
 | |
| 
 | |
| define Package/simple-obfs/install
 | |
| 	$(INSTALL_DIR) $(1)/usr/bin
 | |
| 	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/obfs-local $(1)/usr/bin
 | |
| endef
 | |
| 
 | |
| define Package/simple-obfs-server/install
 | |
| 	$(INSTALL_DIR) $(1)/usr/bin
 | |
| 	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/obfs-server $(1)/usr/bin
 | |
| endef
 | |
| 
 | |
| $(eval $(call BuildPackage,simple-obfs))
 | |
| $(eval $(call BuildPackage,simple-obfs-server))
 |