ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ltib] problems compiling net-snmp


From: Felipe Conde Sales
Subject: [Ltib] problems compiling net-snmp
Date: Wed, 19 May 2010 14:49:47 -0300
User-agent: Thunderbird 2.0.0.23 (X11/20090817)

Hi folks,

I'm having some troubles compiling net-snmp to mpc8315erdb..

When using the ./ltib -c , the sources compile well, but it seems that the make install is not working. At my .spec file, there is a install section.
When i compile using prep, scbuild, scinstall and deploy sequence the package is installed with no problems...

What it could be?

here is my .spec file:

%define pfx /opt/freescale/rootfs

Summary         : Net-SNMP
Name            : net-snmp
Version         : 5.4.1
Release         : 1
License         : BSD and BSD-like
Vendor          : Freescale
Packager        : Michael Barkowski
Group           : Networking
URL             : http://net-snmp.sourceforge.net
Source          : %{name}-%{version}.tar.gz
BuildRoot       : %{_tmppath}/%{name}
Prefix          : %{pfx}

%Description
%{summary}

%Prep
%setup

%Build
./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build} --disable-embedded-perl \
 --without-perl-modules with_endianness=big --enable-mini-agent --with-default-snmp-version="3" --disable-des --disable-debugging \
 --with-sys-contact="address@hidden" --with-logfile="/var/log/snmp" --with-transports="UDP TCP" \
 --with-defaults --with-install-prefix=$PWD/../../../rootfs
make

%Install
rm -rf $RPM_BUILD_ROOT
sed -i -e "s;SUBDIRS        = snmplib  agent apps man local mibs;SUBDIRS        = snmplib;" Makefile
#make install DESTDIR=$RPM_BUILD_ROOT/%{pfx}
#sed -i -e "s;%{_prefix};$RPM_BUILD_ROOT/%{pfx}%{_prefix};" $RPM_BUILD_ROOT%{pfx}%{_prefix}/lib/libnetsnmp.la
sed -i -e "s;SUBDIRS        = snmplib;SUBDIRS        = agent apps man local mibs;" Makefile
#find ./ -name "*.la" | xargs sed -i -e "s;%{_prefix};$RPM_BUILD_ROOT/%{pfx}%{_prefix};"
make install DESTDIR=$RPM_BUILD_ROOT/%{pfx}
#find $RPM_BUILD_ROOT/%{pfx}/%{_prefix}/lib/ -name "*.la" | xargs rm -f

%Clean
rm -rf $RPM_BUILD_ROOT

%Files
%defattr(-,root,root)
%{pfx}/*



reply via email to

[Prev in Thread] Current Thread [Next in Thread]