aboutsummaryrefslogtreecommitdiffstats
path: root/package/udev
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-04-01 14:25:29 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-04-01 14:25:29 +0000
commitcb95f4c5a42ccdc6dcc90d813e5b8aef7aa65b81 (patch)
treeab5f14dada352c8c76ca57dc3ad8cabb85d5fe5f /package/udev
parentff6f3d23b4af39d3b43cbf70a56d56b8ffc8de79 (diff)
downloadupstream-cb95f4c5a42ccdc6dcc90d813e5b8aef7aa65b81.tar.gz
upstream-cb95f4c5a42ccdc6dcc90d813e5b8aef7aa65b81.tar.bz2
upstream-cb95f4c5a42ccdc6dcc90d813e5b8aef7aa65b81.zip
add a package for the udev vol_id utility (thx, fish)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10697 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/udev')
-rw-r--r--package/udev/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/package/udev/Makefile b/package/udev/Makefile
index 9fcf9cfdd3..127880b6bd 100644
--- a/package/udev/Makefile
+++ b/package/udev/Makefile
@@ -37,6 +37,11 @@ $(call Package/udev)
TITLE:=Small utility to request kernel devices events for coldplug
endef
+define Package/udev-vol-id
+$(call Package/udev)
+ TITLE:=Small utility to read volume ids
+endef
+
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
CROSS_COMPILE="$(TARGET_CROSS)" \
@@ -44,6 +49,7 @@ define Build/Compile
OPTFLAGS="$(TARGET_CFLAGS)" \
DESTDIR="$(PKG_INSTALL_DIR)" \
INSTALL="install -c" \
+ EXTRAS="extras/volume_id" \
all install
endef
@@ -66,6 +72,13 @@ define Package/udevtrigger/install
$(INSTALL_DIR) $(1)/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/udevtrigger $(1)/sbin/
endef
+define Package/udev-vol-id/install
+ $(INSTALL_DIR) $(1)/sbin
+ $(INSTALL_DIR) $(1)/lib
+ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/lib/libvolume_id.so* $(1)/lib/
+ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/lib/udev/vol_id $(1)/sbin/
+endef
$(eval $(call BuildPackage,udev))
$(eval $(call BuildPackage,udevtrigger))
+$(eval $(call BuildPackage,udev-vol-id))