diff options
author | Chris Johns <chrisj@rtems.org> | 2014-06-23 10:58:56 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2014-06-23 10:58:56 +1000 |
commit | df65d664f5c15a299eab0f1192df4879548200f8 (patch) | |
tree | fafeb9b50cb19b4d3e70e2d1cb124c8e29bcafe0 /source-builder/config/net-snmp-5-1.cfg | |
parent | sb: Trace relative paths for nesting configs. (diff) | |
download | rtems-source-builder-df65d664f5c15a299eab0f1192df4879548200f8.tar.bz2 |
config: Add net-snmp package for RTEMS.
Diffstat (limited to 'source-builder/config/net-snmp-5-1.cfg')
-rw-r--r-- | source-builder/config/net-snmp-5-1.cfg | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/source-builder/config/net-snmp-5-1.cfg b/source-builder/config/net-snmp-5-1.cfg new file mode 100644 index 0000000..334e9b9 --- /dev/null +++ b/source-builder/config/net-snmp-5-1.cfg @@ -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} |