source: trunk/package/block-mount/Makefile @ 26469

Last change on this file since 26469 was 26469, checked in by cshore, 5 years ago

[package] block-mount: Removed duplicated directory creation in the package install section. The duplicates were a result of the mergin the block-* packages.

File size: 2.2 KB
Line 
1#
2# Copyright (C) 2006-2009 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.2.0
12PKG_RELEASE:=3
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
24  DEPENDS:= +blkid +swap-utils
25  MENU:=1
26endef
27
28define Package/block-mount/description
29  Scripts used to mount and check block devices (filesystems and swap), as well
30  as hotplug scripts to automount and check block devices when hotplug event (e.g.
31  from plugging in a device) occurs.
32  Also includes preinit scripts for mounting a block device as the root filesystem.
33  This allows one to have the root filesystem on devices other than the built in flash
34  device.
35endef
36
37define Package/block-mount/config
38        source "$(SOURCE)/Config.in"
39endef
40
41define Build/Compile
42endef
43
44define Package/block-mount/conffiles
45/etc/config/fstab
46endef
47
48define Package/block-mount/install
49        $(INSTALL_DIR) $(1)/etc/init.d
50        $(INSTALL_BIN) ./files/fstab.init $(1)/etc/init.d/fstab
51        $(INSTALL_DIR) $(1)/etc/config
52        $(INSTALL_DATA) ./files/fstab.config $(1)/etc/config/fstab
53        $(INSTALL_DIR) $(1)/lib/functions/fsck
54        $(INSTALL_DATA) ./files/mount.sh $(1)/lib/functions/
55        $(INSTALL_DATA) ./files/fsck.sh $(1)/lib/functions/
56        $(INSTALL_DATA) ./files/block.sh $(1)/lib/functions/
57        $(INSTALL_DIR) $(1)/etc/hotplug.d/block
58        $(INSTALL_DATA) ./files/10-swap $(1)/etc/hotplug.d/block/
59        $(INSTALL_DATA) ./files/20-fsck $(1)/etc/hotplug.d/block/
60        $(INSTALL_DATA) ./files/40-mount $(1)/etc/hotplug.d/block/
61        $(INSTALL_DATA) ./files/extmount.sh $(1)/lib/functions/
62        $(INSTALL_DIR) $(1)/lib/preinit
63        $(INSTALL_DATA) ./files/50_determine_usb_root $(1)/lib/preinit/
64        $(INSTALL_DATA) ./files/55_determine_extroot_sysupgrade $(1)/lib/preinit/
65        $(INSTALL_DATA) ./files/60_pivot_usb_root $(1)/lib/preinit/
66        echo "extroot_settle_time=\"$(CONFIG_EXTROOT_SETTLETIME)\"" >$(1)/lib/preinit/00_extroot.conf
67        $(INSTALL_DIR) $(1)/overlay
68endef
69
70$(eval $(call BuildPackage,block-mount))
Note: See TracBrowser for help on using the repository browser.