############################################################################### # IPFire.org - An Open Source Firewall Solution # # Copyright (C) - IPFire Development Team # ############################################################################### name = kmod version = 7 release = 1 maintainer = Michael Tremer groups = System/Kernel url = http://modules.wiki.kernel.org/ license = GPLv2+ summary = Linux kernel module management utilities. description The kmod package provides various programs needed for automatic loading and unloading of modules under 2.6, 3.x, and later kernels, as well as other module management programs. Device drivers and filesystems are two examples of loaded and unloaded modules. end source_dl = ftp://ftp.kernel.org/pub/linux/utils/kernel/kmod/ sources = %{thisapp}.tar.xz build requires xz-devel zlib-devel end configure_options += \ --bindir=/bin \ --with-rootprefix= \ --with-rootlibdir=/%{lib} \ --with-xz \ --with-zlib # The testsuite does generate lots of errors. install_cmds # Remove all man pages (because there are not corresponding # binaries, yet). rm -rvf %{BUILDROOT}%{mandir} mkdir -pv %{BUILDROOT}/lib/modprobe.d mkdir -pv %{BUILDROOT}%{sysconfdir}/modprobe.d mkdir -pv %{BUILDROOT}%{sysconfdir}/depmod.d mkdir -pv %{BUILDROOT}/sbin ln -svf ../bin/kmod %{BUILDROOT}/sbin/modprobe ln -svf ../bin/kmod %{BUILDROOT}/sbin/modinfo ln -svf ../bin/kmod %{BUILDROOT}/sbin/insmod ln -svf ../bin/kmod %{BUILDROOT}/sbin/rmmod ln -svf ../bin/kmod %{BUILDROOT}/sbin/depmod ln -svf ../bin/kmod %{BUILDROOT}/sbin/lsmod ln -svf kmod %{BUILDROOT}/bin/lsmod end end packages package %{name} provides = module-init-tools = 4.0-1 obsoletes = module-init-tools < 4.0-1 end package %{name}-libs template LIBS end package %{name}-devel template DEVEL requires += %{name}-libs = %{thisver} end package %{name}-debuginfo template DEBUGINFO end end