4.104.95
Last change
on this file since f936478 was
f936478,
checked in by Chris Johns <chrisj@…>, on 07/20/15 at 04:09:24
|
rtems/netsnmp: Disable SMP builds.
NetSNMP breaks building with extra jobs on fast hardware.
|
-
Property mode set to
100644
|
File size:
1.6 KB
|
Line | |
---|
1 | # |
---|
2 | # NetNSMP 5.x.x Version 1. |
---|
3 | # |
---|
4 | # This configuration file configure's, make's and install's NetSNMP. |
---|
5 | # |
---|
6 | |
---|
7 | %if %{release} == %{nil} |
---|
8 | %define release 1 |
---|
9 | %endif |
---|
10 | |
---|
11 | Name: net-snmp-%{net_snmp_version}-%{_host}-%{release} |
---|
12 | Summary: NetSNMP is a SNMP v1, v2c and v3 Management Agent with MIB-II support. |
---|
13 | Version: %{net_snmp_version} |
---|
14 | Release: %{release} |
---|
15 | URL: http://www.net-snmp.org/ |
---|
16 | BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n) |
---|
17 | |
---|
18 | # |
---|
19 | # NetSNMP Source |
---|
20 | # |
---|
21 | %source set net-snmp http://downloads.sourceforge.net/project/net-snmp/net-snmp/%{net_snmp_version}/net-snmp-%{net_snmp_version}.tar.gz |
---|
22 | |
---|
23 | # |
---|
24 | # Prepare the source code. |
---|
25 | # |
---|
26 | %prep |
---|
27 | build_top=$(pwd) |
---|
28 | |
---|
29 | source_dir_net_snmp="net-snmp-%{net_snmp_version}" |
---|
30 | %source setup net-snmp -q -n net-snmp-%{net_snmp_version} |
---|
31 | %patch setup net-snmp -p1 |
---|
32 | |
---|
33 | cd ${build_top} |
---|
34 | |
---|
35 | %build |
---|
36 | build_top=$(pwd) |
---|
37 | |
---|
38 | %{build_directory} |
---|
39 | |
---|
40 | mkdir -p ${build_dir} |
---|
41 | cd ${build_dir} |
---|
42 | |
---|
43 | %{host_build_flags} |
---|
44 | |
---|
45 | CFLAGS="${CFLAGS} %{net_snmp_cflags}" |
---|
46 | |
---|
47 | ../${source_dir_net_snmp}/configure \ |
---|
48 | --host=%{_host} \ |
---|
49 | --prefix=%{_prefix} \ |
---|
50 | --bindir=%{_bindir} \ |
---|
51 | --exec_prefix=%{_exec_prefix} \ |
---|
52 | --includedir=%{_includedir} \ |
---|
53 | --libdir=%{_libdir} \ |
---|
54 | --libexecdir=%{_libexecdir} \ |
---|
55 | --mandir=%{_mandir} \ |
---|
56 | --infodir=%{_infodir} \ |
---|
57 | --datadir=%{_datadir} \ |
---|
58 | --disable-embedded-perl \ |
---|
59 | --disable-shared \ |
---|
60 | --without-openssl \ |
---|
61 | --without-rsaref \ |
---|
62 | --disable-ipv6 \ |
---|
63 | --with-defaults |
---|
64 | |
---|
65 | # |
---|
66 | # NetSNMP fails to build when make runs parallel jobs |
---|
67 | # |
---|
68 | %{__make} all |
---|
69 | |
---|
70 | cd ${build_top} |
---|
71 | |
---|
72 | %install |
---|
73 | build_top=$(pwd) |
---|
74 | |
---|
75 | %{__rmdir} $SB_BUILD_ROOT |
---|
76 | |
---|
77 | cd ${build_dir} |
---|
78 | %{__make} DESTDIR=$SB_BUILD_ROOT install |
---|
79 | cd ${build_top} |
---|
Note: See
TracBrowser
for help on using the repository browser.