packages: net-snmp/net-snmp.spec - up to 5.6.1.1 - use %{__with_without} an...

wiget wiget at pld-linux.org
Thu Jul 28 21:21:27 CEST 2011


Author: wiget                        Date: Thu Jul 28 19:21:27 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- up to 5.6.1.1
- use %{__with_without} and %{__disable} macros
- enable TLS and alias transports
- enable transport security module (used with DTLSUDP or TLSTCP transports)
- prevent -L/usr/lib in *.la files (don't use --with-FOO=%{_prefix})
- rel. 1

---- Files affected:
packages/net-snmp:
   net-snmp.spec (1.176 -> 1.177) 

---- Diffs:

================================================================
Index: packages/net-snmp/net-snmp.spec
diff -u packages/net-snmp/net-snmp.spec:1.176 packages/net-snmp/net-snmp.spec:1.177
--- packages/net-snmp/net-snmp.spec:1.176	Fri Apr  8 20:46:20 2011
+++ packages/net-snmp/net-snmp.spec	Thu Jul 28 21:21:22 2011
@@ -28,12 +28,12 @@
 Summary(ru.UTF-8):	Набор утилит для протокола SNMP от UC-Davis
 Summary(uk.UTF-8):	Набір утиліт для протоколу SNMP від UC-Davis
 Name:		net-snmp
-Version:	5.6.1
-Release:	5
+Version:	5.6.1.1
+Release:	1
 License:	BSD-like
 Group:		Networking/Daemons
 Source0:	http://downloads.sourceforge.net/net-snmp/%{name}-%{version}.tar.gz
-# Source0-md5:	b4e30ead5783b0bb1d280172c6095ea4
+# Source0-md5:	79e2b9cac947567a01ae2cc67ad8fe53
 Source1:	%{name}d.init
 Source2:	%{name}d.conf
 Source3:	%{name}d.sysconfig
@@ -80,7 +80,7 @@
 BuildRequires:	rpm
 BuildRequires:	rpm-perlprov >= 3.0.3-16
 %endif
-BuildRequires:	rpmbuild(macros) >= 1.268
+BuildRequires:	rpmbuild(macros) >= 1.527
 Requires(post,preun):	/sbin/chkconfig
 Requires:	%{name}-libs = %{version}-%{release}
 Requires:	/usr/bin/setsid
@@ -454,36 +454,37 @@
 MIBS="$MIBS ucd-snmp/lmsensorsMib"
 %endif
 
+# ksm must be first in --with-security-modules
+# usm is always enabled
 %configure \
 	--disable-debugging \
 	--enable-as-needed \
-	%{!?with_static_libs:--disable-static} \
+	%{__disable static_libs static} \
 	--with-cflags="%{rpmcflags} %{rpmcppflags} -I/usr/include/et" \
 	--with-ldflags="%{rpmldflags}" \
 	--with-defaults \
 	--with-default-snmp-version=3 \
-	%{?with_kerberos5:--with-krb5=%{_prefix}} \
-	%{!?with_kerberos5:--without-krb5} \
-	--with-openssl=%{_prefix} \
-	--with-libwrap=%{_prefix} \
+	%{__with_without kerberos5 krb5} \
+	--with-openssl \
+	--with-libwrap \
 	--with-logfile=%{logfile} \
-	--with-zlib=%{_prefix} \
-	--with-bzip2=%{_prefix} \
+	--with-zlib\
+	--with-bzip2 \
 	--with-nl \
-	--with%{!?with_perl:out}-perl-modules \
-	--with%{!?with_python:out}-python-modules \
+	%{__with_without perl perl-modules} \
+	%{__with_without python python-modules} \
 	--enable-local-smux \
 	--with-mibdirs='$HOME/.snmp/mibs:/usr/share/mibs:%{_datadir}/snmp/mibs' \
 	--with-mib-modules="$MIBS" \
-	%{?with_kerberos5:--with-security-modules="ksm"} \
+	--with-security-modules="%{?with_kerberos5:ksm }tsm" \
 	--with-sys-contact="root at localhost" \
 	--with-sys-location="Unknown" \
-	--with-transports="UDP UDPIPv6 TCP TCPIPv6 Unix Callback" \
+	--with-transports="UDP UDPIPv6 TCP TCPIPv6 Unix Callback Alias DTLSUDP TLSTCP" \
 	--with-persistent-directory="/var/lib/net-snmp" \
 	--enable-ucd-snmp-compatibility \
 	--enable-ipv6 \
 	%{!?debug:--disable-debugging} \
-	--with%{!?with_rpm:out}-rpm
+	%{__with_without rpm}
 
 %{__make} -j1
 
@@ -719,6 +720,7 @@
 %attr(755,root,root) %{_bindir}/snmpstatus
 %attr(755,root,root) %{_bindir}/snmptable
 %attr(755,root,root) %{_bindir}/snmptest
+%attr(755,root,root) %{_bindir}/snmptls
 %attr(755,root,root) %{_bindir}/snmptranslate
 %attr(755,root,root) %{_bindir}/snmptrap
 %attr(755,root,root) %{_bindir}/snmpusm
@@ -812,6 +814,14 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.177  2011/07/28 19:21:22  wiget
+- up to 5.6.1.1
+- use %{__with_without} and %{__disable} macros
+- enable TLS and alias transports
+- enable transport security module (used with DTLSUDP or TLSTCP transports)
+- prevent -L/usr/lib in *.la files (don't use --with-FOO=%{_prefix})
+- rel. 1
+
 Revision 1.176  2011/04/08 18:46:20  glen
 - install upstart config
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/net-snmp/net-snmp.spec?r1=1.176&r2=1.177&f=u



More information about the pld-cvs-commit mailing list