AmadeusGhost 2b92d89445
automount: simplified installation
(cherry picked from commit fa6210cba38b26d3b60bcd9a832e274c17114abe)
2022-09-10 14:39:42 +08:00

40 lines
895 B
Makefile

#
# Copyright (C) 2010-2011 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=automount
PKG_FLAGS:=nonshared
PKG_RELEASE:=$(COMMITCOUNT)
PKG_CONFIG_DEPENDS:=CONFIG_TARGET_ramips
include $(INCLUDE_DIR)/package.mk
define Package/automount
TITLE:=Mount autoconfig hotplug script.
MAINTAINER:=Lean
DEPENDS:=+block-mount +kmod-fs-exfat +kmod-fs-ext4 +kmod-fs-vfat +ntfs-3g \
+kmod-usb-storage +kmod-usb-storage-extras +!TARGET_ramips:kmod-usb-storage-uas
PKGARCH:=all
endef
define Package/automount/description
A usb autoconfig hotplug script.
endef
define Build/Compile
true
endef
define Package/automount/install
$(INSTALL_DIR) $(1)/etc/hotplug.d/block
$(INSTALL_BIN) ./files/15-automount $(1)/etc/hotplug.d/block/
endef
$(eval $(call BuildPackage,automount))