X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=transforward.spec;h=1c83431156a512af80caa07de7574f8c91ab2cfd;hb=af5f88cd973ad11e1d26739fc75b642304133c9c;hp=071fd35d8abd5961724a041563e1cc1c538d6c9d;hpb=f6aa3cd6244af64585196ac5944f129cef513616;p=transforward.git diff --git a/transforward.spec b/transforward.spec index 071fd35..1c83431 100644 --- a/transforward.spec +++ b/transforward.spec @@ -29,6 +29,7 @@ Vendor: PlanetLab Packager: PlanetLab Central Distribution: PlanetLab %{plrelease} URL: %{SCMURL} +Requires: kernel = %{kernel_version}-%{kernel_release} Summary: Kernel module that transparently forwards ports between containers Name: %{name} @@ -50,12 +51,15 @@ make -C %{kernelpath} V=1 M=$(pwd) modules %install install -D -m 755 transforward.ko $RPM_BUILD_ROOT/lib/modules/%{kernel_id}/net/transforward/transforward.ko +mkdir -p $RPM_BUILD_ROOT/etc/modules-load.d +install -m 644 transforward.conf $RPM_BUILD_ROOT/etc/modules-load.d/transforward.conf %clean rm -rf $RPM_BUILD_ROOT %files /lib/modules/%{kernel_id} +/etc/modules-load.d/procprotect.conf %post