forked from shadowsocks/luci-app-shadowsocks
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
41 lines (33 loc) · 1006 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#
# Copyright (C) 2016-2018 Jian Chang <[email protected]>
# 2017-2023 honwen https://github.com/honwen
#
# This is free software, licensed under the GNU General Public License v3.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-shadowsocks
PKG_VERSION:=2.0.6
PKG_RELEASE:=5
PKG_LICENSE:=GPLv3
PKG_LICENSE_FILES:=LICENSE
PKG_MAINTAINER:=honwen <https://github.com/honwen>
LUCI_TITLE:=LuCI Support for shadowsocks-rust
LUCI_DEPENDS:=+iptables +ipset +curl +ip +iptables-mod-tproxy
LUCI_PKGARCH:=all
define Package/$(PKG_NAME)/conffiles
/etc/config/shadowsocks
endef
include $(TOPDIR)/feeds/luci/luci.mk
define Package/$(PKG_NAME)/postinst
#!/bin/sh
if [ -z "$${IPKG_INSTROOT}" ]; then
if [ -f /etc/uci-defaults/luci-shadowsocks ]; then
( . /etc/uci-defaults/luci-shadowsocks ) && \
rm -f /etc/uci-defaults/luci-shadowsocks
fi
rm -rf /tmp/luci-indexcache /tmp/luci-modulecache
fi
exit 0
endef
# call BuildPackage - OpenWrt buildroot signature