]> git.pld-linux.org Git - packages/ftpfs.git/commitdiff
- added depmod options so modules can be installed for kernel other than running
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 14 May 2003 14:42:43 +0000 (14:42 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ftpfs.spec -> 1.17

ftpfs.spec

index 9381a6852236501c6480055d80fd873ec8f27224..ffa6d80bde8a25c892039da11da239298c406502 100644 (file)
@@ -1,3 +1,8 @@
+#
+# Conditional build:
+# _without_dist_kernel - without kernel from distribution
+#
+# TODO: UP/SMP modules
 %define                smpstr          %{?_with_smp:-smp}
 %define                smp             %{?_with_smp:1}%{!?_with_smp:0}
 
@@ -8,9 +13,9 @@ Version:       0.6.2
 Release:       1
 License:       GPL
 Group:         Base/Kernel
-Source0:       http://ftp1.sourceforge.net/ftpfs/%{name}-%{version}-k2.4.tar.gz
+Source0:       http://dl.sourceforge.net/ftpfs/%{name}-%{version}-k2.4.tar.gz
 Patch0:                %{name}-opt.patch
-%{!?no_dist_kernel:BuildRequires:      kernel-headers >= 2.4}
+%{!?_without_dist_kernel:BuildRequires:        kernel-headers >= 2.4}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -30,7 +35,7 @@ Summary:      FTP File System - kernel module
 Summary(pl):   System plików FTP - modu³ j±dra
 Release:       %{release}@%{_kernel_ver_str}
 Group:         Base/Kernel
-Prereq:                /sbin/depmod
+Requires(post,postun): /sbin/depmod
 Obsoletes:     ftpfs
 Provides:      ftpfs = %{version}
 
@@ -74,11 +79,11 @@ install -D ftpmount/ftpmount $RPM_BUILD_ROOT%{_sbindir}/ftpmount
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post -n kernel%{smpstr}-net-ftpfs
-/sbin/depmod -a
+%post  -n kernel%{smpstr}-net-ftpfs
+/sbin/depmod -a -F /boot/System.map-%{_kernel_ver} %{_kernel_ver}
 
 %postun -n kernel%{smpstr}-net-ftpfs
-/sbin/depmod -a
+/sbin/depmod -a -F /boot/System.map-%{_kernel_ver} %{_kernel_ver}
 
 %files -n kernel%{smpstr}-net-ftpfs
 %defattr(644,root,root,755)
This page took 0.106801 seconds and 4 git commands to generate.