2 # Copyright (C) 2015 Jeff Waugh
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
15 PKG_SOURCE_URL
:=https
://www.kernel.org
/pub
/linux
/utils
/kernel
/kmod
/
16 PKG_MD5SUM
:=d6f4fef718a50bd88080de6a43bc64d8
17 PKG_MAINTAINER
:=Jeff Waugh
<jdub@bethesignal.org
>
18 PKG_LICENSE
:=LGPL-2.1
+
19 PKG_LICENSE_FILES
:=COPYING
24 include $(INCLUDE_DIR
)/package.mk
26 CONFIGURE_ARGS
+= --with-zlib
28 define Package
/kmod
/Default
31 TITLE
:=Linux kernel module handling
32 URL
:=https
://www.kernel.org
/pub
/linux
/utils
/kernel
/kmod
/
38 $(call Package
/kmod
/Default
)
42 define Package
/kmod
/description
43 Linux kernel module handling
44 kmod is a set of tools to handle common tasks with Linux kernel modules like
45 insert
, remove
, list
, check properties
, resolve dependencies and aliases.
56 define Package
/kmod
/install
57 $(INSTALL_DIR
) $(1)/sbin
58 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/kmod
$(1)/sbin
60 for b in
$(LEGACY_BINARIES
); do \
61 ln
-sf kmod
$(1)/sbin
/$$$$b ; \
66 define Package
/libkmod
67 $(call Package
/kmod
/Default
)
73 define Package
/libkmod
/install
74 $(INSTALL_DIR
) $(1)/usr
/lib
75 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libkmod.so.
* $(1)/usr
/lib
/
79 define Build
/InstallDev
80 $(INSTALL_DIR
) $(1)/usr
/include
81 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include $(1)/usr
/
83 $(INSTALL_DIR
) $(1)/usr
/lib
84 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libkmod.
{so
*,la
} $(1)/usr
/lib
/
86 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
87 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libkmod.
pc $(1)/usr
/lib
/pkgconfig
/
91 $(eval
$(call BuildPackage
,kmod
))
92 $(eval
$(call BuildPackage
,libkmod
))