source: rtems-source-builder/source-builder/config/net-snmp-5-1.cfg @ af4ef74

4.104.114.95
Last change on this file since af4ef74 was af4ef74, checked in by Chris Johns <chrisj@…>, on 07/26/14 at 01:35:21

rtems-bsp: Install net-smp under the BSP if building for RTEMS.

  • 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
11Name:      net-snmp-%{net_snmp_version}-%{_host}-%{release}
12Summary:   NetSNMP is a SNMP v1, v2c and v3 Management Agent with MIB-II support.
13Version:   %{net_snmp_version}
14Release:   %{release}
15URL:       http://www.net-snmp.org/
16BuildRoot: %{_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  %{__make} %{?_smp_mflags} all
66
67  cd ${build_top}
68
69%install
70  build_top=$(pwd)
71
72  %{__rmdir} $SB_BUILD_ROOT
73
74  cd ${build_dir}
75  %{__make} DESTDIR=$SB_BUILD_ROOT install
76  cd ${build_top}
Note: See TracBrowser for help on using the repository browser.