forked from BFTHome/luci-app-myvpnconfig
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
48 lines (36 loc) · 894 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
42
43
44
45
46
47
48
include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-myvpnconfig
PKG_VERSION=1
PKG_RELEASE:=40
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk
define Package/$(PKG_NAME)
SECTION:=luci
CATEGORY:=LuCI
SUBMENU:=3. Applications
TITLE:=myvpnconfig for LuCI
PKGARCH:=all
DEPENDS:=
endef
define Package/$(PKG_NAME)/description
This package contains LuCI configuration pages for myvpnconfig.
endef
define Build/Prepare
endef
define Build/Configure
endef
define Build/Compile
endef
define Package/$(PKG_NAME)/install
$(CP) ./files/* $(1)/
endef
define Package/$(PKG_NAME)/postinst
/etc/init.d/myvpn stop
/etc/init.d/myvpn start
rm -f /tmp/luci-indexcache >/dev/null 2>&1
endef
define Package/$(PKG_NAME)/postrm
/etc/init.d/myvpn stop
rm -f /tmp/luci-indexcache >/dev/null 2>&1
endef
$(eval $(call BuildPackage,$(PKG_NAME)))