mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-27 00:42:51 +08:00
34 lines
644 B
Makefile
34 lines
644 B
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=luci-app-flowproxy
|
|
PKG_VERSION:=1.0.3
|
|
PKG_RELEASE:=1
|
|
|
|
LUCI_TITLE:=LuCI Support for FlowProxy Traffic Diversion
|
|
LUCI_DEPENDS:=+luci-base
|
|
LUCI_PKGARCH:=all
|
|
|
|
define Package/$(PKG_NAME)/prerm
|
|
#!/bin/sh
|
|
if [ -z "$${IPKG_INSTROOT}" ]; then
|
|
/etc/init.d/flowproxy stop
|
|
/etc/init.d/flowproxy disable
|
|
fi
|
|
exit 0
|
|
endef
|
|
|
|
define Package/$(PKG_NAME)/postrm
|
|
#!/bin/sh
|
|
if [ -z "$${IPKG_INSTROOT}" ]; then
|
|
rm -rf /tmp/flowproxy
|
|
rm -rf /usr/share/flowproxy
|
|
rm -f /var/log/flowproxy.log*
|
|
rm -f /var/run/flowproxy.*
|
|
fi
|
|
exit 0
|
|
endef
|
|
|
|
include $(TOPDIR)/feeds/luci/luci.mk
|
|
|
|
# call BuildPackage - OpenWrt buildroot signature
|