arpwatch/arpwatch.spec

changeset 794
07be25b95aca
parent 571
175768f4868b
equal deleted inserted replaced
3:3894a3879ade 4:480079ab57f2
133 %{l_rc} arpwatch stop 2>/dev/null 133 %{l_rc} arpwatch stop 2>/dev/null
134 exit 0 134 exit 0
135 135
136 %post 136 %post
137 if [ $1 -eq 1 ]; then 137 if [ $1 -eq 1 ]; then
138 # after installing package, generate initial arp database 138 # after installing package, install codes and initial arp database
139 %{l_shtool} install -c -o %{l_musr} -g %{l_mgrp} -m 644 \ 139 %{l_shtool} install -c -o %{l_musr} -g %{l_mgrp} -m 644 \
140 %{_builddir}/arpwatch-%{version}/ethercodes.dat \ 140 %{_builddir}/arpwatch-%{version}/ethercodes.dat \
141 $RPM_INSTALL_PREFIX/var/arpwatch/run/ 141 $RPM_INSTALL_PREFIX/var/arpwatch/run/
142 %{l_shtool} install -c -o %{l_musr} -g %{l_mgrp} -m 644 \
143 /dev/null $RPM_INSTALL_PREFIX/var/arpwatch/run/arp.dat
142 144
143 # after installing package, announce security provision lo0 145 # after installing package, announce security provision lo0
144 ( echo "Before starting the arpwatch daemon, set the config variables" 146 ( echo "Before starting the arpwatch daemon, set the config variables"
145 echo "\"arpwatch_iface\" and \"arpwatch_ipnet\" in $RPM_INSTALL_PREFIX/etc/rc.conf to" 147 echo "\"arpwatch_iface\" and \"arpwatch_ipnet\" in $RPM_INSTALL_PREFIX/etc/rc.conf to"
146 echo "describe the network interface and block(s) to be monitored." 148 echo "describe the network interface and block(s) to be monitored."

mercurial