mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
config: Add net-snmp package for RTEMS.
This commit is contained in:
parent
62cb64747f
commit
df65d664f5
20
rtems/config/4.11/net-mgmt/net-snmp.bset
Normal file
20
rtems/config/4.11/net-mgmt/net-snmp.bset
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
#
|
||||||
|
# Build set for NetSNMP
|
||||||
|
#
|
||||||
|
|
||||||
|
%define release 1
|
||||||
|
|
||||||
|
#
|
||||||
|
# RTEMS Version
|
||||||
|
#
|
||||||
|
%define rtems_version 4.11
|
||||||
|
|
||||||
|
#
|
||||||
|
# The RTEMS URL paths.
|
||||||
|
#
|
||||||
|
%include rtems-urls.bset
|
||||||
|
|
||||||
|
#
|
||||||
|
# Build NetSNMP.
|
||||||
|
#
|
||||||
|
net-mgmt/net-snmp-5.7.2.1-1
|
29
rtems/config/net-mgmt/net-snmp-5.7.2.1-1.cfg
Normal file
29
rtems/config/net-mgmt/net-snmp-5.7.2.1-1.cfg
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
#
|
||||||
|
# NetSNMP 5.7.2.1
|
||||||
|
#
|
||||||
|
|
||||||
|
%if %{release} == %{nil}
|
||||||
|
%define release 1
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%include %{_configdir}/rtems-bsp.cfg
|
||||||
|
|
||||||
|
#
|
||||||
|
# NetSNMP Version
|
||||||
|
#
|
||||||
|
%define net_snmp_version 5.7.2.1
|
||||||
|
|
||||||
|
#
|
||||||
|
# We need some special flags to build this version.
|
||||||
|
#
|
||||||
|
%define net_snmp_cflags -DNETSNMP_CAN_USE_SYSCTL=1 -DARP_SCAN_FOUR_ARGUMENTS=1 -DINP_IPV6=0
|
||||||
|
|
||||||
|
#
|
||||||
|
# Patch for RTEMS support.
|
||||||
|
#
|
||||||
|
%patch add net-snmp %{rtems_git_tools}/net-snmp/rtems-net-snmp-5.7.2.1-20140623.patch
|
||||||
|
|
||||||
|
#
|
||||||
|
# NetSNMP Build configuration
|
||||||
|
#
|
||||||
|
%include %{_configdir}/net-snmp-5-1.cfg
|
68
source-builder/config/net-snmp-5-1.cfg
Normal file
68
source-builder/config/net-snmp-5-1.cfg
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
#
|
||||||
|
# NetNSMP 5.x.x Version 1.
|
||||||
|
#
|
||||||
|
# This configuration file configure's, make's and install's NetSNMP.
|
||||||
|
#
|
||||||
|
|
||||||
|
%if %{release} == %{nil}
|
||||||
|
%define release 1
|
||||||
|
%endif
|
||||||
|
|
||||||
|
Name: net-snmp-%{net_snmp_version}-%{_host}-%{release}
|
||||||
|
Summary: NetSNMP is a SNMP v1, v2c and v3 Management Agent with MIB-II support.
|
||||||
|
Version: %{net_snmp_version}
|
||||||
|
Release: %{release}
|
||||||
|
URL: http://www.net-snmp.org/
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
|
#
|
||||||
|
# NetSNMP Source
|
||||||
|
#
|
||||||
|
%source set net-snmp http://downloads.sourceforge.net/project/net-snmp/net-snmp/%{net_snmp_version}/net-snmp-%{net_snmp_version}.tar.gz
|
||||||
|
|
||||||
|
#
|
||||||
|
# Prepare the source code.
|
||||||
|
#
|
||||||
|
%prep
|
||||||
|
build_top=$(pwd)
|
||||||
|
|
||||||
|
source_dir_net_snmp="net-snmp-%{net_snmp_version}"
|
||||||
|
%source setup net-snmp -q -n net-snmp-%{net_snmp_version}
|
||||||
|
%patch setup net-snmp -p1
|
||||||
|
|
||||||
|
cd ${build_top}
|
||||||
|
|
||||||
|
%build
|
||||||
|
build_top=$(pwd)
|
||||||
|
|
||||||
|
%{build_directory}
|
||||||
|
|
||||||
|
mkdir -p ${build_dir}
|
||||||
|
cd ${build_dir}
|
||||||
|
|
||||||
|
%{host_build_flags}
|
||||||
|
|
||||||
|
CFLAGS="${CFLAGS} %{net_snmp_cflags}"
|
||||||
|
|
||||||
|
../${source_dir_net_snmp}/configure \
|
||||||
|
--host=%{_host} \
|
||||||
|
--prefix=%{_prefix} \
|
||||||
|
--disable-embedded-perl \
|
||||||
|
--disable-shared \
|
||||||
|
--without-openssl \
|
||||||
|
--without-rsaref \
|
||||||
|
--disable-ipv6 \
|
||||||
|
--with-defaults
|
||||||
|
|
||||||
|
%{__make} %{?_smp_mflags} all
|
||||||
|
|
||||||
|
cd ${build_top}
|
||||||
|
|
||||||
|
%install
|
||||||
|
build_top=$(pwd)
|
||||||
|
|
||||||
|
%{__rmdir} $SB_BUILD_ROOT
|
||||||
|
|
||||||
|
cd ${build_dir}
|
||||||
|
%{__make} DESTDIR=$SB_BUILD_ROOT install
|
||||||
|
cd ${build_top}
|
Loading…
x
Reference in New Issue
Block a user