Makefile 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=block-mount
  9. PKG_VERSION:=0.1.0
  10. PKG_RELEASE:=2
  11. include $(INCLUDE_DIR)/package.mk
  12. define Package/block-mount/Default
  13. SECTION:=base
  14. CATEGORY:=Base system
  15. endef
  16. define Package/block-mount
  17. $(call Package/block-mount/Default)
  18. TITLE:=Block device mounting and checking
  19. DEPENDS:= +blkid +swap-utils
  20. endef
  21. define Package/block-mount/description
  22. Scripts used to mount and check block devices (filesystems and swap)
  23. endef
  24. define Package/block-hotplug
  25. $(call Package/block-mount/Default)
  26. TITLE:=Automount and autocheck block devices
  27. DEPENDS:=+block-mount +hotplug2
  28. endef
  29. define Package/block-hotplug/description
  30. Scripts used to automatically check and mount filesystem and/or swap
  31. endef
  32. define Build/Compile
  33. endef
  34. define Package/block-mount/conffiles
  35. /etc/config/fstab
  36. endef
  37. define Package/block-mount/install
  38. $(INSTALL_DIR) $(1)/etc/init.d
  39. $(INSTALL_BIN) ./files/fstab.init $(1)/etc/init.d/fstab
  40. $(INSTALL_DIR) $(1)/etc/config
  41. $(INSTALL_DATA) ./files/fstab.config $(1)/etc/config/fstab
  42. $(INSTALL_DIR) $(1)/lib/functions
  43. $(INSTALL_DATA) ./files/mount.sh $(1)/lib/functions/
  44. $(INSTALL_DATA) ./files/fsck.sh $(1)/lib/functions/
  45. $(INSTALL_DATA) ./files/block.sh $(1)/lib/functions/
  46. endef
  47. define Package/block-hotplug/install
  48. $(INSTALL_DIR) $(1)/etc/hotplug.d/block
  49. $(INSTALL_DATA) ./files/10-swap $(1)/etc/hotplug.d/block/
  50. $(INSTALL_DATA) ./files/20-fsck $(1)/etc/hotplug.d/block/
  51. $(INSTALL_DATA) ./files/40-mount $(1)/etc/hotplug.d/block/
  52. endef
  53. $(eval $(call BuildPackage,block-mount))
  54. $(eval $(call BuildPackage,block-hotplug))