forked from LibraryBox-Dev/LibraryBox-Installer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
74 lines (58 loc) · 1.88 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
67
68
69
70
71
72
73
74
include $(TOPDIR)/rules.mk
PKG_NAME:=box-installer
PKG_VERSION:=2.1.3
PKG_RELEASE:=1
include $(INCLUDE_DIR)/package.mk
#----------- Defaults
define Package/box-installer/Default
SECTION:=utils
CATEGORY:=Utilities
TITLE:=box-installer Scripts
URL:=https://github.com/LibraryBox-Dev/LibraryBox-Installer/
PKGARCH:=all
MAINTAINER:=Matthias Strubel <matthias.strubel@aod-rpg.de>
# SUBMENU:=
endef
define Package/box-installer/Default/description
See https://github.com/LibraryBox-Dev/LibraryBox-Installer/ for more information. (Script is responsible for some kind of auto installation)
endef
define Package/box-installer/postinst/Default
#!/bin/sh
sed 's|^exit|#exit|' -i $$PKG_ROOT/etc/rc.local
echo '/bin/box_installer_start.sh' >> $$PKG_ROOT/etc/rc.local
endef
define Package/box-installer/prerm/Default
#!/bin/sh
sed 's|/bin/box_installer_start.sh||' -i -i $$PKG_ROOT/etc/rc.local
endef
define Package/box-installer/install/Default
$(INSTALL_DIR) $(1)/bin
$(INSTALL_BIN) ./files/bin/box_init_setup.sh $(1)/bin
$(INSTALL_BIN) ./files/bin/box_installer.sh $(1)/bin
$(INSTALL_BIN) ./files/bin/box_installer_start.sh $(1)/bin
endef
define Build/Compile
endef
define Build/Configure
endef
#---------- Base Package
define Package/box-installer
$(call Package/box-installer/Default)
DEPENDS:= +extendRoot
# MENU:=1
endef
define Package/box-installer/description
$(call Package/box-installer/Default/description)
This package comes without a package which should be installed. It contains only the installer itself
endef
define Package/box-installer/postinst
$(call Package/box-installer/postinst/Default)
endef
define Package/box-installer/prerm
$(call Package/box-installer/prerm/Default)
endef
define Package/box-installer/install
$(call Package/box-installer/install/Default,$(1))
endef
#------------------
$(eval $(call BuildPackage,box-installer))