[Tizen-submit] 2595: New package Tizen:2.1:Base/module-init-tools

noreply at tizen.org noreply at tizen.org
Tue Apr 23 10:35:25 GMT 2013


Hi,
Adding new package module-init-tools in project Tizen:2.1:Base. Please review and accept ASAP.

Justification for this new package:

Submitter: Jinkun Jang <jinkun.jang at samsung.com>
Comments: submit to obs
Git project: external/module-init-tools
Tag: submit/tizen_2.1/20130423.103542
Commit: 3bb16f2 Tizen 2.1 base

Thank You,
Jinkun Jang

[This message was auto-generated]

---

Request: #2595

  submit:       Tizen:2.1:Base:build/module-init-tools(cleanup) -> Tizen:2.1:Base


Message:
Submitter: Jinkun Jang <jinkun.jang at samsung.com>
Comments: submit to obs
Git project: external/module-init-tools
Tag: submit/tizen_2.1/20130423.103542
Commit: 3bb16f2 Tizen 2.1 base

State:   new        2013-04-23T03:06:05 tizenrobot
Comment: <no comment>
new:
----
  blacklist-warn.diff
  document_depmod_m
  modprobe_bad_output
  module-init-tools-3.12~pre2.tar.gz
  module-init-tools.init
  module-init-tools.spec
  no_maps_by_default

spec files:
-----------

++++++ new spec file:
--- module-init-tools.spec
+++ module-init-tools.spec
@@ -0,0 +1,87 @@
+#sbs-git:slp/pkgs/m/module-init-tools module-init-tools 3.12~pre2 be160e833cedd1ceb8f0543339d7bb1850cbd75a
+
+Name:           module-init-tools
+Version: 3.12~pre2
+Release:        2
+VCS:        external/module-init-tools#2.1_release-0-g3bb16f2
+License:        GPLv2+
+Summary:        Kernel module management utilities
+Group:          System/Kernel
+Source0:         http://www.kernel.org/pub/linux/utils/kernel/module-init-tools/module-init-tools-%{version}.tar.gz
+Source1:        module-init-tools.init
+Patch0:         document_depmod_m
+Patch1:         blacklist-warn.diff
+Patch2:         no_maps_by_default
+Patch3:         modprobe_bad_output
+BuildRequires:  glibc-static
+BuildRequires:  zlib-static
+BuildRequires:  pkgconfig(zlib)
+
+%description
+The module-init-tools package includes various programs needed for automatic
+loading and unloading of modules under 2.6 and later kernels, as well
+as other module management programs. Device drivers and filesystems
+are two examples of loaded and unloaded modules.
+
+%prep
+%setup -q -n module-init-tools-%{version}
+%patch0 -p1
+
+%build
+%configure --disable-zlib --disable-static-utils --prefix=/
+
+make
+
+%install
+
+%define BUILDDIR build
+
+mkdir -p %{buildroot}/bin/
+mkdir -p %{buildroot}/sbin/
+mkdir -p %{buildroot}/etc/modprobe.d/
+mkdir -p %{buildroot}/lib/modules
+
+cp -af %{BUILDDIR}/lsmod %{buildroot}/bin/
+cp -af %{BUILDDIR}/insmod \
+       %{BUILDDIR}/modprobe \
+       %{BUILDDIR}/rmmod \
+       %{BUILDDIR}/depmod \
+       %{BUILDDIR}/modinfo \
+       %{buildroot}/sbin/
+
+ln -s /bin/lsmod %{buildroot}/sbin/lsmod
+
+cp extra/modprobe.d/aliases.conf %{buildroot}/etc/modprobe.d/
+
+mkdir -p %{buildroot}/etc/init.d/
+cp %{_sourcedir}/module-init-tools.init %{buildroot}/etc/init.d/module-init-tools
+chmod +x %{buildroot}/etc/init.d/module-init-tools
+
+
+%clean
+rm -rf %{buildroot}
+
+%post
+create_etc_modules() {
+    if [ ! -e /etc/modules ]; then
+        cat <<EOT > /etc/modules
+# /etc/modules: kernel modules to load at boot time.
+#   

Please refer to OBS webUI for more details about this SR.


More information about the Tizen-submit mailing list