From 372a9f6ff2aa87c8d2af30bff9eecfe0905c2fb2 Mon Sep 17 00:00:00 2001 From: coolsnowwolf Date: Sun, 26 Apr 2020 15:54:13 +0800 Subject: [PATCH] drop openwrt 14.07 support --- luci-app-ssr-plus/Makefile | 85 ++----------------- .../root/lib/upgrade/keep.d/luci-app-ssr-plus | 8 ++ 2 files changed, 15 insertions(+), 78 deletions(-) create mode 100644 luci-app-ssr-plus/root/lib/upgrade/keep.d/luci-app-ssr-plus diff --git a/luci-app-ssr-plus/Makefile b/luci-app-ssr-plus/Makefile index 72c15665..431ff9eb 100644 --- a/luci-app-ssr-plus/Makefile +++ b/luci-app-ssr-plus/Makefile @@ -1,10 +1,8 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-ssr-plus -PKG_VERSION:=176 -PKG_RELEASE:=7 - -PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME) +PKG_VERSION:=177 +PKG_RELEASE:=1 include $(INCLUDE_DIR)/package.mk @@ -34,13 +32,9 @@ config PACKAGE_$(PKG_NAME)_INCLUDE_ShadowsocksR_Server default y if i386||x86_64||arm||aarch64 endef -define Package/$(PKG_NAME) - SECTION:=luci - CATEGORY:=LuCI - SUBMENU:=3. Applications - TITLE:=SS/SSR/V2Ray/Trojan LuCI interface - PKGARCH:=all - DEPENDS:=+shadowsocksr-libev-alt +ipset +ip-full +iptables-mod-tproxy +dnsmasq-full +coreutils +coreutils-base64 +pdnsd-alt +wget +lua +libuci-lua \ +LUCI_TITLE:=SS/SSR/V2Ray/Trojan LuCI interface +LUCI_PKGARCH:=all +LUCI_DEPENDS:=+shadowsocksr-libev-alt +ipset +ip-full +iptables-mod-tproxy +dnsmasq-full +coreutils +coreutils-base64 +pdnsd-alt +wget +lua +libuci-lua \ +microsocks +dns2socks +shadowsocks-libev-ss-local +shadowsocksr-libev-ssr-local +shadowsocks-libev-ss-redir +simple-obfs +tcpping \ +PACKAGE_$(PKG_NAME)_INCLUDE_V2ray_plugin:v2ray-plugin \ +PACKAGE_$(PKG_NAME)_INCLUDE_V2ray:v2ray \ @@ -49,72 +43,7 @@ define Package/$(PKG_NAME) +PACKAGE_$(PKG_NAME)_INCLUDE_Redsocks2:redsocks2 \ +PACKAGE_$(PKG_NAME)_INCLUDE_Kcptun:kcptun-client \ +PACKAGE_$(PKG_NAME)_INCLUDE_ShadowsocksR_Server:shadowsocksr-libev-server -endef -define Build/Prepare -endef +include $(TOPDIR)/feeds/luci/luci.mk -define Build/Compile -endef - -define Package/$(PKG_NAME)/conffiles -/etc/ssr_ip -/etc/china_ssr.txt -/etc/config/shadowsocksr -/etc/config/white.list -/etc/config/black.list -/etc/config/netflix.list -/etc/dnsmasq.ssr/ad.conf -/etc/dnsmasq.ssr/gfw_list.conf -endef - -define Package/$(PKG_NAME)/install - $(INSTALL_DIR) $(1)/etc - $(INSTALL_DATA) ./root/etc/china_ssr.txt $(1)/etc/china_ssr.txt - - $(INSTALL_DIR) $(1)/etc/config - $(INSTALL_CONF) ./root/etc/config/shadowsocksr $(1)/etc/config/shadowsocksr - $(INSTALL_DATA) ./root/etc/config/*.list $(1)/etc/config/ - - $(INSTALL_DIR) $(1)/etc/dnsmasq.oversea - $(INSTALL_DATA) ./root/etc/dnsmasq.oversea/* $(1)/etc/dnsmasq.oversea/ - - $(INSTALL_DIR) $(1)/etc/dnsmasq.ssr - $(INSTALL_DATA) ./root/etc/dnsmasq.ssr/* $(1)/etc/dnsmasq.ssr/ - - $(INSTALL_DIR) $(1)/etc/init.d - $(INSTALL_BIN) ./root/etc/init.d/* $(1)/etc/init.d/ - - $(INSTALL_DIR) $(1)/etc/uci-defaults - $(INSTALL_BIN) ./root/etc/uci-defaults/* $(1)/etc/uci-defaults/ - - $(INSTALL_DIR) $(1)/usr/bin - $(INSTALL_BIN) ./root/usr/bin/* $(1)/usr/bin/ - - $(INSTALL_DIR) $(1)/usr/share/shadowsocksr - $(INSTALL_BIN) ./root/usr/share/shadowsocksr/*.sh $(1)/usr/share/shadowsocksr/ - $(INSTALL_DATA) ./root/usr/share/shadowsocksr/*.lua $(1)/usr/share/shadowsocksr/ - - $(INSTALL_DIR) $(1)/usr/share/rpcd/acl.d - $(INSTALL_DATA) ./root/usr/share/rpcd/acl.d/* $(1)/usr/share/rpcd/acl.d - - $(INSTALL_DIR) $(1)/usr/lib/lua/luci/controller - $(INSTALL_DATA) ./luasrc/controller/*.lua $(1)/usr/lib/lua/luci/controller/ - - $(INSTALL_DIR) $(1)/usr/lib/lua/luci/model/cbi/shadowsocksr - $(INSTALL_DATA) ./luasrc/model/cbi/shadowsocksr/*.lua $(1)/usr/lib/lua/luci/model/cbi/shadowsocksr/ - - $(INSTALL_DIR) $(1)/usr/lib/lua/luci/view/shadowsocksr - $(INSTALL_DATA) ./luasrc/view/shadowsocksr/* $(1)/usr/lib/lua/luci/view/shadowsocksr/ - - $(INSTALL_DIR) $(1)/usr/lib/lua/luci/i18n - po2lmo ./po/zh-cn/ssr-plus.po $(1)/usr/lib/lua/luci/i18n/ssr-plus.zh-cn.lmo -endef - -define Package/$(PKG_NAME)/postrm -#!/bin/sh -rm -rf /etc/china_ssr.txt /etc/dnsmasq.ssr /etc/dnsmasq.oversea /etc/config/shadowsocksr /etc/config/black.list \ - /etc/config/gfw.list /etc/config/white.list /etc/config/netflix.list /etc/config/netflixip.list 2>/dev/null -endef - -$(eval $(call BuildPackage,$(PKG_NAME))) +# call BuildPackage - OpenWrt buildroot signature \ No newline at end of file diff --git a/luci-app-ssr-plus/root/lib/upgrade/keep.d/luci-app-ssr-plus b/luci-app-ssr-plus/root/lib/upgrade/keep.d/luci-app-ssr-plus new file mode 100644 index 00000000..582ed895 --- /dev/null +++ b/luci-app-ssr-plus/root/lib/upgrade/keep.d/luci-app-ssr-plus @@ -0,0 +1,8 @@ +/etc/ssr_ip +/etc/china_ssr.txt +/etc/config/shadowsocksr +/etc/config/white.list +/etc/config/black.list +/etc/config/netflix.list +/etc/dnsmasq.ssr/ad.conf +/etc/dnsmasq.ssr/gfw_list.conf