Browse Source

eudev: split package

Split package into libudev and eudev.

Fixes #2550

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
lilik-openwrt-22.03
Daniel Golle 9 years ago
parent
commit
a64fb737ac
1 changed files with 15 additions and 11 deletions
  1. +15
    -11
      utils/eudev/Makefile

+ 15
- 11
utils/eudev/Makefile View File

@ -22,6 +22,14 @@ PKG_BUILD_DEPENDS:=gperf/host
PKG_FIXUP:=autoreconf PKG_FIXUP:=autoreconf
PKG_INSTALL=1 PKG_INSTALL=1
define Package/libudev
SECTION:=libs
CATEGORY:=Libraries
TITLE:=Dynamic device management subsystem
URL:=https://wiki.gentoo.org/wiki/Project:Eudev
MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
endef
define Package/eudev define Package/eudev
SECTION:=base SECTION:=base
CATEGORY:=Base system CATEGORY:=Base system
@ -29,7 +37,7 @@ define Package/eudev
URL:=https://wiki.gentoo.org/wiki/Project:Eudev URL:=https://wiki.gentoo.org/wiki/Project:Eudev
MAINTAINER:=Daniel Golle <daniel@makrotopia.org> MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
MENU:=1 MENU:=1
DEPENDS:=+librt +EUDEV_EXTRA_blkid:libblkid +EUDEV_EXTRA_kmod:libkmod
DEPENDS:=+EUDEV_EXTRA_blkid:libblkid +EUDEV_EXTRA_kmod:libkmod +librt +libudev
PROVIDES:=udev PROVIDES:=udev
CONFLICTS:=udev CONFLICTS:=udev
endef endef
@ -90,6 +98,11 @@ define Build/InstallDev
$(CP) $(PKG_INSTALL_DIR)/lib/pkgconfig/libudev.pc $(1)/usr/lib/pkgconfig $(CP) $(PKG_INSTALL_DIR)/lib/pkgconfig/libudev.pc $(1)/usr/lib/pkgconfig
endef endef
define Package/libudev/install
$(INSTALL_DIR) $(1)/lib
$(CP) $(PKG_INSTALL_DIR)/lib/libudev.so* $(1)/lib
endef
define Package/eudev/install define Package/eudev/install
$(INSTALL_DIR) $(1)/etc/udev/rules.d $(INSTALL_DIR) $(1)/etc/udev/rules.d
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/udev/udev.conf $(1)/etc/udev $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/udev/udev.conf $(1)/etc/udev
@ -119,22 +132,13 @@ define Package/eudev/install
80-net-name-slot.rules) \ 80-net-name-slot.rules) \
$(1)/lib/udev/rules.d $(1)/lib/udev/rules.d
$(INSTALL_DIR) $(1)/lib
$(CP) $(PKG_INSTALL_DIR)/lib/libudev.so* $(1)/lib
$(INSTALL_DIR) $(1)/lib/udev
ifneq ($(eudev-extra-lib-bin-y),) ifneq ($(eudev-extra-lib-bin-y),)
$(INSTALL_BIN) \ $(INSTALL_BIN) \
$(addprefix $(PKG_INSTALL_DIR)/lib/udev/, \ $(addprefix $(PKG_INSTALL_DIR)/lib/udev/, \
$(eudev-extra-lib-bin-y)) \ $(eudev-extra-lib-bin-y)) \
$(1)/lib/udev/ $(1)/lib/udev/
endif endif
ifneq ($(eudev-extra-lib-data-y),)
$(INSTALL_DATA) \
$(addprefix $(PKG_INSTALL_DIR)/lib/udev/, \
$(eudev-extra-lib-data-y)) \
$(1)/lib/udev/
endif
endef endef
$(eval $(call BuildPackage,eudev)) $(eval $(call BuildPackage,eudev))
$(eval $(call BuildPackage,libudev))

Loading…
Cancel
Save