Makefile 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. endef
  20. define Package/block-mount/description
  21. Scripts used to mount and check block devices (filesystems and swap)
  22. endef
  23. define Package/block-hotplug
  24. $(call Package/block-mount/Default)
  25. TITLE:=Automount and autocheck block devices
  26. DEPENDS:=+block-mount +hotplug2
  27. endef
  28. define Package/block-hotplug/description
  29. Scripts used to automatically check and mount filesystem and/or swap
  30. endef
  31. define Build/Compile
  32. endef
  33. define Package/block-mount/conffiles
  34. /etc/config/fstab
  35. endef
  36. define Package/block-mount/install
  37. $(INSTALL_DIR) $(1)/etc/init.d
  38. $(INSTALL_BIN) ./files/fstab.init $(1)/etc/init.d/fstab
  39. $(INSTALL_DIR) $(1)/etc/config
  40. $(INSTALL_DATA) ./files/fstab.config $(1)/etc/config/fstab
  41. $(INSTALL_DIR) $(1)/lib/functions
  42. $(INSTALL_DATA) ./files/mount.sh $(1)/lib/functions/
  43. $(INSTALL_DATA) ./files/fsck.sh $(1)/lib/functions/
  44. $(INSTALL_DATA) ./files/block.sh $(1)/lib/functions/
  45. endef
  46. define Package/block-hotplug/install
  47. $(INSTALL_DIR) $(1)/etc/hotplug.d/block
  48. $(INSTALL_DATA) ./files/10-swap $(1)/etc/hotplug.d/block/
  49. $(INSTALL_DATA) ./files/20-fsck $(1)/etc/hotplug.d/block/
  50. $(INSTALL_DATA) ./files/40-mount $(1)/etc/hotplug.d/block/
  51. endef
  52. $(eval $(call BuildPackage,block-mount))
  53. $(eval $(call BuildPackage,block-hotplug))