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
:=a08643f814aa4efc12211c6e5909f4d9
17 PKG_MAINTAINER
:=Jeff Waugh
<jdub@bethesignal.org
>
18 PKG_LICENSE
:=LGPL-2.1
+
19 PKG_LICENSE_FILES
:=COPYING
23 include $(INCLUDE_DIR
)/package.mk
25 CONFIGURE_ARGS
+= --with-zlib
27 define Package
/kmod
/Default
30 TITLE
:=Linux kernel module handling
31 URL
:=https
://www.kernel.org
/pub
/linux
/utils
/kernel
/kmod
/
37 $(call Package
/kmod
/Default
)
41 define Package
/kmod
/description
42 Linux kernel module handling
43 kmod is a set of tools to handle common tasks with Linux kernel modules like
44 insert
, remove
, list
, check properties
, resolve dependencies and aliases.
55 define Package
/kmod
/install
56 $(INSTALL_DIR
) $(1)/sbin
57 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/kmod
$(1)/sbin
59 for b in
$(LEGACY_BINARIES
); do \
60 ln
-sf kmod
$(1)/sbin
/$$$$b ; \
65 define Package
/libkmod
66 $(call Package
/kmod
/Default
)
72 define Package
/libkmod
/install
73 $(INSTALL_DIR
) $(1)/usr
/lib
74 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libkmod.so.
* $(1)/usr
/lib
/
78 define Build
/InstallDev
79 $(INSTALL_DIR
) $(1)/usr
/include
80 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include $(1)/usr
/
82 $(INSTALL_DIR
) $(1)/usr
/lib
83 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libkmod.
{so
*,la
} $(1)/usr
/lib
/
85 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
86 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libkmod.
pc $(1)/usr
/lib
/pkgconfig
/
90 $(eval
$(call BuildPackage
,kmod
))
91 $(eval
$(call BuildPackage
,libkmod
))