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

Last change on this file since c799e04 was c799e04, checked in by Chris Johns <chrisj@…>, on Jul 6, 2019 at 9:20:09 AM

5/packages: Add curl and update all packages with RTEMS 5 and LibBSD

  • Update rtems-bsp support to correctly handle hosts for BSP.
  • Clean up the options for a BSP.
  • Check all RTEMS 5 packages and add 5/rtems-packages for all that build.
  • Update download locations and checksum of all packages.
  • The work requires the kernel and Libbsd hacve the same prefix.
  • 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/
16
17#
18# NetSNMP Source
19#
20%source set net-snmp http://downloads.sourceforge.net/project/net-snmp/net-snmp/%{net_snmp_version}/net-snmp-%{net_snmp_version}.tar.gz
21
22#
23# Prepare the source code.
24#
25%prep
26  build_top=$(pwd)
27
28  source_dir_net_snmp="net-snmp-%{net_snmp_version}"
29  %source setup net-snmp -q -n net-snmp-%{net_snmp_version}
30  %patch setup net-snmp -p1
31
32  cd ${build_top}
33
34%build
35  build_top=$(pwd)
36
37  %{build_directory}
38
39  mkdir -p ${build_dir}
40  cd ${build_dir}
41
42  %{host_build_flags}
43
44  CFLAGS="${CFLAGS} %{net_snmp_cflags}"
45
46  LIBS="-lbsd -lm -lz -lrtemsdefaultconfig" \
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.