6 # modprobe ipfw_mod.ko (depmod ?)
8 %define url $URL: http://onelab1.iet.unipi.it/svn/trunk/ipfw.spec $
10 # Marta Carbone <marta.carbone@iet.unipi.it>
11 # 2009 - Universita` di Pisa
14 # kernel_release, kernel_version and kernel_arch are expected to be set by the build to e.g.
15 # kernel_release : vs2.3.0.29.1.planetlab
16 # kernel_version : 2.6.22.14
22 %define release %{kernel_version}.%{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
23 %define kernel_id_arch %{kernel_version}-%{kernel_release}-%{kernel_arch}
24 %define kernel_id %{kernel_version}-%{kernel_release}
26 Summary: ipfw and dummynet for Linux
31 Group: System Environment/Kernel
32 Source0: %{name}-%{version}.tar.bz2
33 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
37 Packager: PlanetLab <marta@onelab2.iet.unipi.it>
39 Distribution: PlanetLab %{plrelease}
40 URL: %(echo %{url} | cut -d ' ' -f 2)
43 ipfw is the Linux port of the FreeBSD ipfw and dummynet packages
49 # clean the rpm build directory
51 rm -rf $RPM_BUILD_ROOT
53 # with the new build, we use the kernel-devel rpm for building
54 %define kernelpath /usr/src/kernels/%{kernel_id_arch}
56 %__make KERNELPATH=%kernelpath clean
57 %__make KERNELPATH=%kernelpath
60 install -D -m 755 dummynet/ipfw_mod.ko $RPM_BUILD_ROOT/lib/modules/%{kernel_id}/net/netfilter/ipfw_mod.ko
61 install -D -m 755 ipfw/ipfw $RPM_BUILD_ROOT/sbin/ipfw
62 install -D -m 755 ipfw-cleanup $RPM_BUILD_ROOT/usr/bin/ipfw-cleanup
63 install -D -m 755 ipfw.cron $RPM_BUILD_ROOT/%{_sysconfdir}/cron.d/ipfw.cron
66 rm -rf $RPM_BUILD_ROOT
68 # here there is a list of the final installation directories
71 %dir /lib/modules/%{kernel_id}
72 /lib/modules/%{kernel_id}/net/netfilter/ipfw_mod.ko
75 %{_sysconfdir}/cron.d/ipfw.cron
78 * Mon Sep 07 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - ipfw-0.9-4
79 - on behalf of Marta Carbone, more options and features
81 * Thu Jul 23 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - ipfw-0.9-3
82 - fixed memory usage issue
84 * Wed Jul 15 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - ipfw-0.9-2
85 - patch for building on x86_64
87 * Thu Jun 25 2009 Marta Carbone <marta.carbone@iet.unipi.it>
88 - post installation removed for deployment, moved manpages to the slice package
89 * Fri Apr 17 2009 Marta Carbone <marta.carbone@iet.unipi.it>