source: branches/backfire/package/block-mount/Makefile @ 29502

Last change on this file since 29502 was 29502, checked in by jow, 4 years ago

[backfire] block-mount: do not hotplug-mount partitions marked as overlay root, hopefully stops the endless "my extroot does not work" posts

File size: 1.7 KB
Line 
1#
2# Copyright (C) 2006-2011 OpenWrt.org
3# Copyright 2010 Vertical Communications
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=block-mount
11PKG_VERSION:=0.1.0
12PKG_RELEASE:=2.2
13
14include $(INCLUDE_DIR)/package.mk
15
16define Package/block-mount/Default
17  SECTION:=base
18  CATEGORY:=Base system
19endef
20
21define Package/block-mount
22  $(call Package/block-mount/Default)
23  TITLE:=Block device mounting and checking
24endef
25
26define Package/block-mount/description
27  Scripts used to mount and check block devices (filesystems and swap)
28endef
29
30define Package/block-hotplug
31  $(call Package/block-mount/Default)
32  TITLE:=Automount and autocheck block devices
33  DEPENDS:=+block-mount +hotplug2
34endef
35
36define Package/block-hotplug/description
37  Scripts used to automatically check and mount filesystem and/or swap
38endef
39
40define Build/Compile
41endef
42
43define Package/block-mount/conffiles
44/etc/config/fstab
45endef
46
47define Package/block-mount/install
48        $(INSTALL_DIR) $(1)/etc/init.d
49        $(INSTALL_BIN) ./files/fstab.init $(1)/etc/init.d/fstab
50        $(INSTALL_DIR) $(1)/etc/config
51        $(INSTALL_DATA) ./files/fstab.config $(1)/etc/config/fstab
52        $(INSTALL_DIR) $(1)/lib/functions
53        $(INSTALL_DATA) ./files/mount.sh $(1)/lib/functions/
54        $(INSTALL_DATA) ./files/fsck.sh $(1)/lib/functions/
55        $(INSTALL_DATA) ./files/block.sh $(1)/lib/functions/
56endef
57
58define Package/block-hotplug/install
59        $(INSTALL_DIR) $(1)/etc/hotplug.d/block
60        $(INSTALL_DATA) ./files/10-swap $(1)/etc/hotplug.d/block/
61        $(INSTALL_DATA) ./files/20-fsck $(1)/etc/hotplug.d/block/
62        $(INSTALL_DATA) ./files/40-mount $(1)/etc/hotplug.d/block/
63endef
64
65$(eval $(call BuildPackage,block-mount))
66$(eval $(call BuildPackage,block-hotplug))
67
Note: See TracBrowser for help on using the repository browser.