1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-12 18:41:51 +00:00
openmptcprouter-feeds/simple-obfs/Makefile

65 lines
1.8 KiB
Makefile
Raw Normal View History

2018-02-16 14:42:54 +00:00
#
# Copyright (C) 2017 Jian Chang <aa65535@live.com>
2019-01-03 14:56:11 +00:00
# Copyright (C) 2018-2019 Ycarus (Yannick Chabanois) <ycarus@zugaina.org>
2018-02-16 14:42:54 +00:00
#
# 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
2019-01-03 14:56:11 +00:00
PKG_VERSION:=5cbfdcc2
2018-09-13 13:33:32 +00:00
PKG_RELEASE:=3
2018-02-16 14:42:54 +00:00
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/shadowsocks/simple-obfs.git
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)
2019-01-03 14:56:11 +00:00
PKG_SOURCE_VERSION:=5cbfdcc28cdc912852cc3c99e3c7f5603d337805
PKG_SOURCE_DATE:=2018-12-19
2018-02-16 14:42:54 +00:00
PKG_LICENSE:=GPLv3
PKG_LICENSE_FILES:=LICENSE
2018-09-13 13:33:32 +00:00
PKG_MAINTAINER:=Ycarus (Yannick Chabanois) <ycarus@zugaina.org>
2018-02-16 14:42:54 +00:00
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))