-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathMakefile
66 lines (48 loc) · 1.39 KB
/
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Copyright 2015
# Matthew
include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-cifs
PKG_VERSION:= 1.2
PKG_RELEASE:= 1.2
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk
define Package/luci-app-cifs
SECTION:=luci
CATEGORY:=LuCI
SUBMENU:=3. Applications
TITLE:=Mounting Nat Drives
PKGARCH:=all
DEPENDS:=+kmod-fs-cifs +kmod-nls-utf8
endef
define Package/luci-app-cifs/description
Allows you to use the Web Cotrol Center to mount networked drives.
endef
define Build/Prepare
endef
define Build/Configure
endef
define Build/Compile
endef
define Package/luci-app-cifs/conffiles
/etc/config/cifs
endef
define Package/luci-app-cifs/preinst
endef
define Package/luci-app-cifs/postinst
#!/bin/sh
/etc/init.d/cifs.sh enable
exit 0
endef
define Package/luci-app-cifs/prerm
endef
define Package/luci-app-cifs/install
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_DATA) ./files/cifs-config $(1)/etc/config/cifs
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/cifs-init.d.sh $(1)/etc/init.d/cifs.sh
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/controller
$(INSTALL_DATA) ./files/cifs-controller.lua $(1)/usr/lib/lua/luci/controller/cifs.lua
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/model/cbi
$(INSTALL_DATA) ./files/cifs-model.lua $(1)/usr/lib/lua/luci/model/cbi/cifs.lua
endef
$(eval $(call BuildPackage,luci-app-cifs))