#
# TODO:
# restart crond
-# modprobe ipfw_mod.ko (depmod ?)
#
%define url $URL$
install -D -m 755 planetlab/ipfw-cleanup $RPM_BUILD_ROOT/usr/bin/ipfw-cleanup
install -D -m 644 planetlab/ipfw.cron $RPM_BUILD_ROOT/%{_sysconfdir}/cron.d/ipfw.cron
+%post
+# load the module
+##modprobe ipfw_mod
+##depmod -a
+# clean the old database and initialize the firewall
+##echo "super dbcleanup" | /vsys/ipfw-be 0
+##echo "super init" | /vsys/ipfw-be 0
+
%clean
rm -rf $RPM_BUILD_ROOT
%postun
# unload the module if present
LOADED=`cat /proc/modules | grep ^ipfw_mod`; if [ -n "$LOADED" ] ; then rmmod ipfw_mod; fi
-# clean the old database and initialize the firewall
-echo "super dbcleanup" | /vsys/ipfw-be 0
-echo "super init" | /vsys/ipfw-be 0
%changelog
* Wed Jan 06 2010 Marta Carbone <marta.carbone@iet.unipi.it>