From d56ebae1eeed4743feaac3f31cae7f402178e299 Mon Sep 17 00:00:00 2001
From: Waldemar Brodkorb <wbx@openadk.org>
Date: Thu, 27 Aug 2015 20:44:22 +0200
Subject: install symlink for modinfo

---
 package/kmod/Makefile | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/package/kmod/Makefile b/package/kmod/Makefile
index 88037f45c..e5416ed4c 100644
--- a/package/kmod/Makefile
+++ b/package/kmod/Makefile
@@ -5,7 +5,7 @@ include $(ADK_TOPDIR)/rules.mk
 
 PKG_NAME:=		kmod
 PKG_VERSION:=		19
-PKG_RELEASE:=		1
+PKG_RELEASE:=		2
 PKG_HASH:=		3e7fee6eeff5435848b2dcc852bc8959066478d687d232284d67300c071e7b14
 PKG_DESCR:=		kernel module utils
 PKG_SECTION:=		sys/utils
@@ -30,6 +30,13 @@ $(eval $(call PKG_template,LIBKMOD,libkmod,$(PKG_VERSION)-${PKG_RELEASE},${PKGSS
 CONFIG_STYLE:=		minimal
 CONFIGURE_ARGS+=	--host=${GNU_TARGET_NAME}
 
+HOST_CONFIGURE_ARGS+=	--disable-manpages \
+			--disable-logging
+
+hostpost-install:
+	ln -sf kmod $(STAGING_HOST_DIR)/usr/bin/depmod
+	ln -sf kmod $(STAGING_HOST_DIR)/usr/bin/modinfo
+
 kmod-install:
 	$(INSTALL_DIR) $(IDIR_KMOD)/usr/bin
 	$(INSTALL_BIN) $(WRKINST)/usr/bin/kmod \
@@ -46,11 +53,5 @@ libkmod-install:
 	$(CP) $(WRKINST)/usr/lib/libkmod*.so* \
 		$(IDIR_LIBKMOD)/usr/lib
 
-HOST_CONFIGURE_ARGS+=	--disable-manpages \
-			--disable-logging
-
-hostpost-install:
-	ln -sf kmod $(STAGING_HOST_DIR)/usr/bin/depmod
-
 include ${ADK_TOPDIR}/mk/host-bottom.mk
 include ${ADK_TOPDIR}/mk/pkg-bottom.mk
-- 
cgit v1.2.3