2007-01-14 04:31:43 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# usbmount
|
|
|
|
#
|
|
|
|
#############################################################
|
2007-02-12 11:14:12 +01:00
|
|
|
USBMOUNT_VERSION=0.0.14.1
|
|
|
|
USBMOUNT_SOURCE:=usbmount_$(USBMOUNT_VERSION).tar.gz
|
2007-01-14 04:31:43 +01:00
|
|
|
USBMOUNT_SITE:=http://usbmount.alioth.debian.org/package/
|
|
|
|
USBMOUNT_CAT:=$(ZCAT)
|
2007-02-12 11:14:12 +01:00
|
|
|
USBMOUNT_DIR:=$(BUILD_DIR)/usbmount-$(USBMOUNT_VERSION)
|
2007-01-14 04:31:43 +01:00
|
|
|
USBMOUNT_BINARY:=usbmount
|
|
|
|
USBMOUNT_TARGET_BINARY:=sbin/usbmount
|
|
|
|
|
|
|
|
$(DL_DIR)/$(USBMOUNT_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(USBMOUNT_SITE),$(USBMOUNT_SOURCE))
|
2007-01-14 12:14:27 +01:00
|
|
|
|
|
|
|
usbmount-source: $(DL_DIR)/$(USBMOUNT_SOURCE)
|
2007-01-14 04:31:43 +01:00
|
|
|
|
|
|
|
$(USBMOUNT_DIR)/.unpacked: $(DL_DIR)/$(USBMOUNT_SOURCE)
|
|
|
|
$(USBMOUNT_CAT) $(DL_DIR)/$(USBMOUNT_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2007-07-17 02:22:16 +02:00
|
|
|
toolchain/patch-kernel.sh $(USBMOUNT_DIR) package/usbmount usbmount-$(USBMOUNT_VERSION).patch
|
2007-02-12 11:14:12 +01:00
|
|
|
touch $@
|
2007-01-14 04:31:43 +01:00
|
|
|
|
|
|
|
$(TARGET_DIR)/$(USBMOUNT_TARGET_BINARY): $(USBMOUNT_DIR)/.unpacked
|
|
|
|
$(INSTALL) -m 0755 -D $(USBMOUNT_DIR)/usbmount $(TARGET_DIR)/$(USBMOUNT_TARGET_BINARY)
|
2007-08-22 11:56:41 +02:00
|
|
|
@if [ ! -f $(TARGET_DIR)/etc/usbmount/usbmount.conf ]; then \
|
2007-07-29 01:02:26 +02:00
|
|
|
$(INSTALL) -m 0644 -D $(USBMOUNT_DIR)/usbmount.conf $(TARGET_DIR)/etc/usbmount/usbmount.conf; \
|
2007-08-21 21:20:18 +02:00
|
|
|
fi
|
2007-06-20 15:25:44 +02:00
|
|
|
touch -c $@
|
2007-01-14 04:31:43 +01:00
|
|
|
|
2009-09-02 17:02:02 +02:00
|
|
|
usbmount: $(TARGET_DIR)/$(USBMOUNT_TARGET_BINARY)
|
2007-01-14 04:31:43 +01:00
|
|
|
|
|
|
|
usbmount-clean:
|
|
|
|
rm -f $(TARGET_DIR)/$(USBMOUNT_TARGET_BINARY)
|
|
|
|
rm -rf $(TARGET_DIR)/etc/usbmount
|
|
|
|
|
|
|
|
usbmount-dirclean:
|
|
|
|
rm -rf $(USBMOUNT_DIR)
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_USBMOUNT),y)
|
2007-01-14 04:31:43 +01:00
|
|
|
TARGETS+=usbmount
|
|
|
|
endif
|