package/base-files: use a single $(CP) instead of two to copy shared library files
[openwrt.git] / package / block-mount / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=block-mount
11 PKG_VERSION:=0.1.0
12 PKG_RELEASE:=1
13
14 include $(INCLUDE_DIR)/package.mk
15
16 define Package/block-mount/Default
17 SECTION:=base
18 CATEGORY:=Base system
19 endef
20
21 define Package/block-mount
22 $(call Package/block-mount/Default)
23 TITLE:=Block device mounting and checking
24 endef
25
26 define Package/block-mount/description
27 Scripts used to mount and check block devices (filesystems and swap)
28 endef
29
30 define Package/block-hotplug
31 $(call Package/block-mount/Default)
32 TITLE:=Automount and autocheck block devices
33 DEPENDS:=+block-mount +hotplug2
34 endef
35
36 define Package/block-hotplug/description
37 Scripts used to automatically check and mount filesystem and/or swap
38 endef
39
40 define Build/Compile
41 endef
42
43 define Package/block-mount/install
44 $(INSTALL_DIR) $(1)/etc/init.d
45 $(INSTALL_BIN) ./files/fstab.init $(1)/etc/init.d/fstab
46 $(INSTALL_DIR) $(1)/etc/config
47 $(INSTALL_DATA) ./files/fstab.config $(1)/etc/config/fstab
48 $(INSTALL_DIR) $(1)/lib/functions
49 $(INSTALL_DATA) ./files/mount.sh $(1)/lib/functions/
50 $(INSTALL_DATA) ./files/fsck.sh $(1)/lib/functions/
51 $(INSTALL_DATA) ./files/block.sh $(1)/lib/functions/
52 endef
53
54 define Package/block-hotplug/install
55 $(INSTALL_DIR) $(1)/etc/hotplug.d/block
56 $(INSTALL_DATA) ./files/10-swap $(1)/etc/hotplug.d/block/
57 $(INSTALL_DATA) ./files/20-fsck $(1)/etc/hotplug.d/block/
58 $(INSTALL_DATA) ./files/40-mount $(1)/etc/hotplug.d/block/
59 endef
60
61 $(eval $(call BuildPackage,block-mount))
62 $(eval $(call BuildPackage,block-hotplug))
63
This page took 0.040229 seconds and 5 git commands to generate.