42 Source1: rc.arpd |
42 Source1: rc.arpd |
43 Source2: fsl.arpd |
43 Source2: fsl.arpd |
44 Patch0: arpd.patch |
44 Patch0: arpd.patch |
45 |
45 |
46 # build information |
46 # build information |
47 Prefix: %{l_prefix} |
47 BuildPreReq: OpenPKG, openpkg >= 20100101, libdnet, libpcap, libevent, gcc, make |
48 BuildRoot: %{l_buildroot} |
48 PreReq: OpenPKG, openpkg >= 20100101, libdnet, libpcap, libevent |
49 BuildPreReq: OpenPKG, openpkg >= 20060823, libdnet, libpcap, libevent, gcc, make |
|
50 PreReq: OpenPKG, openpkg >= 20060823, libdnet, libpcap, libevent |
|
51 %if "%{with_fsl}" == "yes" |
49 %if "%{with_fsl}" == "yes" |
52 BuildPreReq: fsl |
50 BuildPreReq: fsl |
53 PreReq: fsl |
51 PreReq: fsl |
54 %endif |
52 %endif |
55 AutoReq: no |
|
56 AutoReqProv: no |
|
57 |
53 |
58 %description |
54 %description |
59 Arpd is an Address Resolution Protocol (ARP) daemon which replies to |
55 Arpd is an Address Resolution Protocol (ARP) daemon which replies to |
60 any ARP request for an IP address matching the specified destination |
56 any ARP request for an IP address matching the specified destination |
61 network with the hardware MAC address of the own interface, but only |
57 network with the hardware MAC address of the own interface, but only |
96 --with-libpcap=%{l_prefix} \ |
92 --with-libpcap=%{l_prefix} \ |
97 --with-libevent=%{l_prefix} |
93 --with-libevent=%{l_prefix} |
98 %{l_make} %{l_mflags} |
94 %{l_make} %{l_mflags} |
99 |
95 |
100 %install |
96 %install |
101 rm -rf $RPM_BUILD_ROOT |
|
102 |
|
103 # create directories |
97 # create directories |
104 %{l_shtool} mkdir -f -p -m 755 \ |
98 %{l_shtool} mkdir -f -p -m 755 \ |
105 $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \ |
99 $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \ |
106 $RPM_BUILD_ROOT%{l_prefix}/var/arpd |
100 $RPM_BUILD_ROOT%{l_prefix}/var/arpd |
107 |
101 |
123 '%attr(750,%{l_susr},%{l_mgrp}) %{l_prefix}/var/arpd' |
117 '%attr(750,%{l_susr},%{l_mgrp}) %{l_prefix}/var/arpd' |
124 |
118 |
125 %files -f files |
119 %files -f files |
126 |
120 |
127 %clean |
121 %clean |
128 rm -rf $RPM_BUILD_ROOT |
|
129 |
122 |
130 %pre |
123 %pre |
131 # before upgrade, save status and stop service |
124 # before upgrade, save status and stop service |
132 [ $1 -eq 2 ] || exit 0 |
125 [ $1 -eq 2 ] || exit 0 |
133 eval `%{l_rc} arpd status 2>/dev/null | tee %{l_tmpfile}` |
126 eval `%{l_rc} arpd status 2>/dev/null | tee %{l_tmpfile}` |