[malta] include wpad-mini and mac80211_hwsim by default
[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 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
15
16 include $(INCLUDE_DIR)/package.mk
17
18 define Package/block-mount/Default
19 SECTION:=base
20 CATEGORY:=Base system
21 endef
22
23 define Package/block-mount
24 $(call Package/block-mount/Default)
25 TITLE:=Block device mounting and checking
26 endef
27
28 define Package/block-mount/config
29 select BUSYBOX_CONFIG_MKSWAP
30 select BUSYBOX_CONFIG_FEATURE_MKSWAP_UUID
31 select BUSYBOX_CONFIG_SWAPONOFF
32 select BUSYBOX_CONFIG_BLKID
33 select BUSYBOX_CONFIG_FEATURE_VOLUMEID_EXT
34 select BUSYBOX_CONFIG_FEATURE_VOLUMEID_REISERFS
35 select BUSYBOX_CONFIG_FEATURE_VOLUMEID_FAT
36 select BUSYBOX_CONFIG_FEATURE_VOLUMEID_HFS
37 select BUSYBOX_CONFIG_FEATURE_VOLUMEID_JFS
38 select BUSYBOX_CONFIG_FEATURE_VOLUMEID_XFS
39 select BUSYBOX_CONFIG_FEATURE_VOLUMEID_NTFS
40 select BUSYBOX_CONFIG_FEATURE_VOLUMEID_SYSV
41 select BUSYBOX_CONFIG_FEATURE_VOLUMEID_OCFS2
42 select BUSYBOX_CONFIG_FEATURE_VOLUMEID_ISO9660
43 select BUSYBOX_CONFIG_FEATURE_VOLUMEID_UDF
44 select BUSYBOX_CONFIG_FEATURE_VOLUMEID_LINUXSWAP
45 select BUSYBOX_CONFIG_FEATURE_VOLUMEID_CRAMFS
46 select BUSYBOX_CONFIG_FEATURE_VOLUMEID_ROMFS
47 endef
48
49 define Package/block-mount/description
50 Scripts used to mount and check block devices (filesystems and swap)
51 endef
52
53 define Package/block-hotplug
54 $(call Package/block-mount/Default)
55 TITLE:=Automount and autocheck block devices
56 DEPENDS:=block-mount hotplug2
57 endef
58
59 define Package/block-hotplug/description
60 Scripts used to automatically check and mount filesystem and/or swap
61 endef
62
63 define Build/Compile
64 endef
65
66 define Package/block-mount/install
67 $(INSTALL_DIR) $(1)/etc/init.d
68 $(INSTALL_BIN) ./files/fstab.init $(1)/etc/init.d/fstab
69 $(INSTALL_DIR) $(1)/etc/config
70 $(INSTALL_DATA) ./files/fstab.config $(1)/etc/config/fstab
71 $(INSTALL_DIR) $(1)/lib/functions
72 $(INSTALL_DATA) ./files/mount.sh $(1)/lib/functions/
73 $(INSTALL_DATA) ./files/fsck.sh $(1)/lib/functions/
74 $(INSTALL_DATA) ./files/block.sh $(1)/lib/functions/
75 endef
76
77 define Package/block-hotplug/install
78 $(INSTALL_DIR) $(1)/etc/hotplug.d/block
79 $(INSTALL_DATA) ./files/10-swap $(1)/etc/hotplug.d/block/
80 $(INSTALL_DATA) ./files/20-fsck $(1)/etc/hotplug.d/block/
81 $(INSTALL_DATA) ./files/40-mount $(1)/etc/hotplug.d/block/
82 endef
83
84 $(eval $(call BuildPackage,block-mount))
85 $(eval $(call BuildPackage,block-hotplug))
86
This page took 0.053327 seconds and 5 git commands to generate.