52 Patch0: snmp.patch |
52 Patch0: snmp.patch |
53 Patch1: snmp_agentx.patch |
53 Patch1: snmp_agentx.patch |
54 Patch2: snmp_iface.patch |
54 Patch2: snmp_iface.patch |
55 |
55 |
56 # build information |
56 # build information |
57 Prefix: %{l_prefix} |
57 BuildPreReq: OpenPKG, openpkg >= 20100101, gcc |
58 BuildRoot: %{l_buildroot} |
58 PreReq: OpenPKG, openpkg >= 20100101 |
59 BuildPreReq: OpenPKG, openpkg >= 20060823, gcc |
|
60 PreReq: OpenPKG, openpkg >= 20060823 |
|
61 BuildPreReq: openssl |
59 BuildPreReq: openssl |
62 PreReq: openssl |
60 PreReq: openssl |
63 %if "%{with_fsl}" == "yes" |
61 %if "%{with_fsl}" == "yes" |
64 BuildPreReq: fsl |
62 BuildPreReq: fsl |
65 PreReq: fsl |
63 PreReq: fsl |
66 %endif |
64 %endif |
67 %if "%{with_perl}" == "yes" |
65 %if "%{with_perl}" == "yes" |
68 BuildPreReq: perl |
66 BuildPreReq: perl |
69 PreReq: perl |
67 PreReq: perl |
70 %endif |
68 %endif |
71 AutoReq: no |
|
72 AutoReqProv: no |
|
73 |
69 |
74 %description |
70 %description |
75 This is a toolkit relating to the Simple Network Management Protocol |
71 This is a toolkit relating to the Simple Network Management Protocol |
76 (SNMP), including an extensible agent, an SNMP library, tools to |
72 (SNMP), including an extensible agent, an SNMP library, tools to |
77 request or set information from SNMP agents, tools to generate and |
73 request or set information from SNMP agents, tools to generate and |
175 # build package |
171 # build package |
176 %{l_make} %{l_mflags} touchit |
172 %{l_make} %{l_mflags} touchit |
177 %{l_make} %{l_mflags} |
173 %{l_make} %{l_mflags} |
178 |
174 |
179 %install |
175 %install |
180 rm -rf $RPM_BUILD_ROOT |
|
181 |
|
182 # install package |
176 # install package |
183 %{l_shtool} subst -v \ |
177 %{l_shtool} subst -v \ |
184 -e "s;^\\(prefix.*=\\).*;\\1 $RPM_BUILD_ROOT%{l_prefix};g" \ |
178 -e "s;^\\(prefix.*=\\).*;\\1 $RPM_BUILD_ROOT%{l_prefix};g" \ |
185 -e "s;^\\(exec_prefix.*=\\).*;\\1 $RPM_BUILD_ROOT%{l_prefix};g" \ |
179 -e "s;^\\(exec_prefix.*=\\).*;\\1 $RPM_BUILD_ROOT%{l_prefix};g" \ |
186 -e "s;^\\(persistentdir.*=\\).*;\\1 $RPM_BUILD_ROOT%{l_prefix}/var/snmp;g" \ |
180 -e "s;^\\(persistentdir.*=\\).*;\\1 $RPM_BUILD_ROOT%{l_prefix}/var/snmp;g" \ |