Re: [Cooker] Re: [CHRPM] ucd-snmp-4.2.3-3mdk

2002-06-12 Thread Oden Eriksson

On Wednesday 12 June 2002 12.55, [EMAIL PROTECTED] wrote:
> > >>>checking for tcpd.h... no
> > >>>configure: error: Asked to use libwrap but I couldn't find tcpd.h.
> > >>
> > >>Same here... When you run configure with --with-libwrap=%{_prefix} then
> > >>it isn't found... and the %configure hangs... Same goes for ssl.
> > >>
> > >>Time to file a bug report?
> > >
> > >To whom?
> > >
> > >Bugzilla?
> >
> > And philippe, he seems to be maintainer of the package.
>
> And I thought I was crazy..

The reason for asking who to bug is that I'm not sure who's fault it is, 
either, gcc 3.1, libtool, autoconf, automake, ucd-anmp, etc.

> I've been getting similar "can't find ..." errors during the %configure
> stage of a number of RPMS (don't remember off-hand, but I could dig
> through and try to find them).  The files ARE THERE, on the system, RIGHT
> WHERE THEY'RE SUPPOSED TO BE, and it's NOT a permissions problem!
>
> I have absolutely NO idea what the heck is causing it, and it's frustrated
> me to no end.  I gave up, as I thought I must be doing something wrong,
> but I couldn't figure out what I could possibly be screwing up.

No, I don't have a clue either... Since the recent changes (what ever they 
might be) in the compiling tools you really need to be a software engineer 
and have great knowledge in the autoconf, m4, automake or whatever stuff... I 
don't have the time to learn this, in fact I don't want to bother with these 
things at all... Coders may love to fiddle with it, I just want it to work 
without _any_ hassles... There's no problems up to ML8.2 and as I suspect 
there's no problems in other distros either. Something isn't right when you 
need to patch softwares in order for them to compile on latest Mandrake...

-- 
Regards // Oden Eriksson




Re: [Cooker] Re: [CHRPM] ucd-snmp-4.2.3-3mdk

2002-06-12 Thread donhead

> >>>checking for tcpd.h... no
> >>>configure: error: Asked to use libwrap but I couldn't find tcpd.h.
> >>>
> >>Same here... When you run configure with --with-libwrap=%{_prefix} then
> >>it isn't found... and the %configure hangs... Same goes for ssl.
> >>
> >>Time to file a bug report?
> >
> >To whom?
> >
> >Bugzilla?
> >
> And philippe, he seems to be maintainer of the package.

And I thought I was crazy..

I've been getting similar "can't find ..." errors during the %configure
stage of a number of RPMS (don't remember off-hand, but I could dig
through and try to find them).  The files ARE THERE, on the system, RIGHT
WHERE THEY'RE SUPPOSED TO BE, and it's NOT a permissions problem!

I have absolutely NO idea what the heck is causing it, and it's frustrated
me to no end.  I gave up, as I thought I must be doing something wrong,
but I couldn't figure out what I could possibly be screwing up.

Something stinks here commander, and it's not in the ventilation system..

(I think the last one I tried was rebuilding the cyrus-sasl
RPM, as I was trying to build a cyrus-imapd pacakge, and I
got similar errors for both of them.  I then tried to build
something else.. can't remember what, and got the same
error.  It's really wierd..)


Don Head
SAIR LCA, CIW-P, Linux+, i-Net+, Network+, A+

Systems Administrator[ [EMAIL PROTECTED] ]
Web Designer  [ 1 314 650-4056 ]
[ AIM - iamhAZEcx ] [ ICQ - 18804935 ] [ Yahoo - iamhazecx ]





Re: [Cooker] Re: [CHRPM] ucd-snmp-4.2.3-3mdk

2002-06-11 Thread Stefan van der Eijk

Oden Eriksson wrote:

>On Tuesday 11 June 2002 21.38, Stefan van der Eijk wrote:
>
>  
>
>>>checking for tcpd.h... no
>>>configure: error: Asked to use libwrap but I couldn't find tcpd.h.
>>>  
>>>
>>Same here... When you run configure with --with-libwrap=%{_prefix} then
>>it isn't found... and the %configure hangs... Same goes for ssl.
>>
>>Time to file a bug report?
>>
>>
>
>To whom?
>
>Bugzilla?
>
And philippe, he seems to be maintainer of the package.






Re: [Cooker] Re: [CHRPM] ucd-snmp-4.2.3-3mdk

2002-06-11 Thread Oden Eriksson

On Tuesday 11 June 2002 21.38, Stefan van der Eijk wrote:

> >checking for tcpd.h... no
> >configure: error: Asked to use libwrap but I couldn't find tcpd.h.
>
> Same here... When you run configure with --with-libwrap=%{_prefix} then
> it isn't found... and the %configure hangs... Same goes for ssl.
>
> Time to file a bug report?

To whom?

Bugzilla?

-- 
Regards // Oden Eriksson




Re: [Cooker] Re: [CHRPM] ucd-snmp-4.2.3-3mdk

2002-06-11 Thread Stefan van der Eijk

>
>
>> and I had to change the
>>
>>name of the libs (wasn't too happy with that).
>>
>>%files -n libsnmp%{major}
>>%defattr(-,root,root,-)
>>%{_libdir}/*-*.so
>>
>>Beware that I didn't test the package...
>>
>>
>
>Your %configure changes makes it compile, but now there's no tcp_wrappers or 
>openssl support anymore. This is the case for the ucd-snmp package in Cooker 
>too.
>
The package still Requires openssl, due to the rediculous amount of 
Requires in the package (rpm should handle this for the non -devel 
packages, but it was put in manually in the package.

>Maybe I should have asked why my package compiles just fine on ML8.2 but not 
>on Cooker... I get this error:
>
>checking for tcpd.h... no
>configure: error: Asked to use libwrap but I couldn't find tcpd.h.
>
Same here... When you run configure with --with-libwrap=%{_prefix} then 
it isn't found... and the %configure hangs... Same goes for ssl.

Time to file a bug report?






Re: [Cooker] Re: [CHRPM] ucd-snmp-4.2.3-3mdk

2002-06-11 Thread Oden Eriksson

On Tuesday 11 June 2002 13.24, Borsenkow Andrej wrote:
> > Maybe I should have asked why my package compiles just fine on ML8.2
>
> but not
>
> > on Cooker... I get this error:
> >
> > checking for tcpd.h... no
> > configure: error: Asked to use libwrap but I couldn't find tcpd.h.
>
> and you have tcp_wrappers-devel installed?

Of course... ;-)

-- 
Regards // Oden Eriksson




RE: [Cooker] Re: [CHRPM] ucd-snmp-4.2.3-3mdk

2002-06-11 Thread Borsenkow Andrej


> 
> Maybe I should have asked why my package compiles just fine on ML8.2
but not
> on Cooker... I get this error:
> 
> checking for tcpd.h... no
> configure: error: Asked to use libwrap but I couldn't find tcpd.h.
> 

and you have tcp_wrappers-devel installed?




Re: [Cooker] Re: [CHRPM] ucd-snmp-4.2.3-3mdk

2002-06-11 Thread Oden Eriksson

On Tuesday 11 June 2002 08.03, Stefan van der Eijk wrote:
> >>I've managed to compile 4.2.5 on cooker, but it requires changing a
> >>number of patches (or disabling them). I'll leave that to the maintainer
> >>of the package. My 4.2.5. src.rpm is available on request.
> >
> >I would like to have the spec file (and patches if nessesary) so that I
> > can learn how you did it, thanks.
>
> For the 4.2.5 version I just disabled all the patches that didn't work
> (lazy me!),

Yes, I did that too, many of them seems to be included upstream.

>  and I had to change the
>
> name of the libs (wasn't too happy with that).
>
> %files -n libsnmp%{major}
> %defattr(-,root,root,-)
> %{_libdir}/*-*.so
>
> Beware that I didn't test the package...

Your %configure changes makes it compile, but now there's no tcp_wrappers or 
openssl support anymore. This is the case for the ucd-snmp package in Cooker 
too.

Maybe I should have asked why my package compiles just fine on ML8.2 but not 
on Cooker... I get this error:

checking for tcpd.h... no
configure: error: Asked to use libwrap but I couldn't find tcpd.h.


-- 
Regards // Oden Eriksson




Re: [Cooker] Re: [CHRPM] ucd-snmp-4.2.3-3mdk

2002-06-10 Thread Stefan van der Eijk

>
>
>>I've managed to compile 4.2.5 on cooker, but it requires changing a
>>number of patches (or disabling them). I'll leave that to the maintainer
>>of the package. My 4.2.5. src.rpm is available on request.
>>
>>
>
>I would like to have the spec file (and patches if nessesary) so that I can 
>learn how you did it, thanks.
>

For the 4.2.5 version I just disabled all the patches that didn't work 
(lazy me!),

# %patch0 -p1 -b .rpm40
# %patch1 -p1 -b .ia64
%patch2 -p1 -b .manpage
# %patch3 -p1 -b .walk
%patch4 -p1 -b .security3
%patch5 -p1 -b .tests_num
# %patch6 -p1 -b .libtool
# %patch7 -p1 -b .snmpnetstat

 and I had to change the

name of the libs (wasn't too happy with that).

%files -n libsnmp%{major}
%defattr(-,root,root,-)
%{_libdir}/*-*.so

Beware that I didn't test the package...

>>Maybe he wants to go for the new 5.x series of net-snmp...
>>
>>
>
>Yes, that makes sense.
>
:-)


%define major 0

Summary: A collection of SNMP protocol tools from UC-Davis.
Name: ucd-snmp
Version: 4.2.5
Release: 1mdk
License: BSDish
Group: System/Servers
Source0: http://prdownloads.sourceforge.net/net-snmp/%{name}-%{version}.tar.bz2
Source1: ucd-snmpd.init
Source2: snmpd.conf
Source3: ucd-snmpd.logrotate
BuildRoot: %{_tmppath}/%{name}-buildroot
Prereq: /sbin/chkconfig
BuildRequires: openssl-devel 
BuildRequires: tcp_wrappers-devel
URL: http://net-snmp.sourceforge.net/

Patch0: ucd-snmp-4.2-rpm40.patch.bz2
Patch1: ucd-snmp-4.2-ia64.patch.bz2
Patch2: ucd-snmp-4.2.1-manpage.patch.bz2
Patch3: ucd-snmp-4.2.1-walk.patch.bz2
Patch4: ucd-snmp-4.2.1-security3.patch.bz2
Patch5: ucd-snmp-4.2.1-tests_num.patch.bz2
Patch6: ucd-snmp-4.2.1-libtool.patch.bz2
Patch7: ucd-snmp-4.2.3-snmpnetstat.patch.bz2
Patch8: ucd-snmp-4.2.1-perlpath.patch.bz2

%description
SNMP (Simple Network Management Protocol) is a protocol used for network
management (hence the name).  The NET-SNMP project includes various SNMP
tools; an extensible agent, an SNMP library, tools for requesting or
setting information from SNMP agents, tools for generating and handling
SNMP traps, a version of the netstat command which uses SNMP, and a
Tk/Perl mib browser.  This package contains the snmpd and snmptrapd
daemons, documentation, etc.

Install the ucd-snmp package if you need network management tools.
You will probably also want to install the ucd-snmp-utils package, which
contains NET-SNMP utilities.

%package -n libsnmp%{major}
Group: System/Libraries
Summary: Librairies for Network management (SNMP), from the NET-SNMP project.
Obsoletes: ucd-snmp
Provides: ucd-snmp

%description -n libsnmp%{major}
The libsnmp%{major} package contains the libraries for use with the NET-SNMP
project's network management tools.

%package -n libsnmp%{major}-devel
Group: Development/C
Summary: The development environment for the NET-SNMP project.
Provides: %{name}-devel
Provides: libsnmp-devel
Requires: libsnmp%{major} = %{version}
Obsoletes: ucd-snmp-devel
Provides: ucd-snmp-devel

%description -n libsnmp%{major}-devel
The libsnmp%{major}-devel package contains the development libraries and
header files for use with the NET-SNMP project's network management
tools.

Install the ucd-snmp-devel package if you would like to develop
applications for use with the NET-SNMP project's network management
tools. You'll also need to have the ucd-snmp and ucd-snmp-utils packages
installed.

%package utils
Group: Networking/Other
Summary: Network management utilities using SNMP, from the NET-SNMP project.
Obsoletes: ucd-snmp-util
Provides: ucd-snmp-util

%description utils
The ucd-snmp package contains various utilities for use with the
UCD-SNMP network management project.

Install this package if you need utilities for managing your network
using the SNMP protocol.  You'll also need to install the ucd-snmp
package.


%prep
%setup -q
# %patch0 -p1 -b .rpm40
# %patch1 -p1 -b .ia64
%patch2 -p1 -b .manpage
# %patch3 -p1 -b .walk
%patch4 -p1 -b .security3
%patch5 -p1 -b .tests_num
# %patch6 -p1 -b .libtool
# %patch7 -p1 -b .snmpnetstat
%patch8 -p1

%build

#libtoolize --force
#aclocal
#autoconf
%serverbuild

./configure \
--prefix=%{_prefix} \
--sysconfdir=%{_sysconfdir} \
--datadir=%{_datadir} \
--mandir=%{_mandir} \
--enable-static \
--enable-shared \
--includedir=%{_includedir/snmp} \
--with-sys-location="Unknown" \
--with-mib-modules="host smux agentx target tunnel ucd-snmp/dlmod" \
--with-logfile="/var/log/snmpd.log" \
--with-persistent-directory="/var/lib/ucd-snmp" \
--with-openssl \
--with-libwrap \
--with-zlib \
--disable-debugging \
--enable-ipv6 \
--enable-reentrant \
--with-sys-contact="root@localhost" \
--build=%_target_platform \
--host=%_target_platform \
--target=%_target_platform

# Hack to enable snmp in php (Oden Eriksson)
# Check: http://www.php.net/manual/en/ref.snmp.php
# PHP hint: use "--with-openssl=%{_prefix} --with-snmp=%{_prefix} 
--enable-ucd-snmp-hack"
perl -p -i -e "s|/\* #define

Re: [Cooker] Re: [CHRPM] ucd-snmp-4.2.3-3mdk

2002-06-10 Thread Oden Eriksson

On Monday 10 June 2002 04.31, Stefan van der Eijk wrote:
> Oden Eriksson wrote:
> >On Monday 10 June 2002 03.00, Stefan van der Eijk wrote:
> >>--=-=-=
> >>Name: ucd-snmp Relocations: (not
> >> relocateable) Version : 4.2.3 Vendor:
> >> MandrakeSoft Release : 3mdk  Build Date: Mon
> >> Jun 10 03:54:10
> >>
> >>
> >>
> >>
> >>
> >>- fix %configure
> >
> >Why not: http://d-srv.com/Cooker/SRPMS/ucd-snmp-4.2.5-1mdk.src.rpm
> >
> >?
> >
> >(if you managed to compile it on latest cooker anyway...)
>
> I've managed to compile 4.2.5 on cooker, but it requires changing a
> number of patches (or disabling them). I'll leave that to the maintainer
> of the package. My 4.2.5. src.rpm is available on request.

I would like to have the spec file (and patches if nessesary) so that I can 
learn how you did it, thanks.

> Maybe he wants to go for the new 5.x series of net-snmp...

Yes, that makes sense.

-- 
Regards // Oden Eriksson




Re: [Cooker] Re: [CHRPM] ucd-snmp-4.2.3-3mdk

2002-06-09 Thread Stefan van der Eijk

Oden Eriksson wrote:

>On Monday 10 June 2002 03.00, Stefan van der Eijk wrote:
>  
>
>>--=-=-=
>>Name: ucd-snmp Relocations: (not relocateable)
>>Version : 4.2.3 Vendor: MandrakeSoft
>>Release : 3mdk  Build Date: Mon Jun 10 03:54:10
>>
>>
>
>  
>
>>- fix %configure
>>
>>
>
>Why not: http://d-srv.com/Cooker/SRPMS/ucd-snmp-4.2.5-1mdk.src.rpm
>
>?
>
>(if you managed to compile it on latest cooker anyway...)
>  
>
I've managed to compile 4.2.5 on cooker, but it requires changing a 
number of patches (or disabling them). I'll leave that to the maintainer 
of the package. My 4.2.5. src.rpm is available on request.

Maybe he wants to go for the new 5.x series of net-snmp...

Stefan