Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37573350
en ru br
Репозитории ALT
S:1.10.4-alt1
5.1: 0.9.7-alt2
4.1: 0.9.7-alt1
4.0: 0.9.7-alt1
+updates:0.9.7-alt1
www.altlinux.org/Changes

Группа :: Система/Библиотеки
Пакет: libpcap

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: libpcap
Version: 0.9.7
Release: alt1
Serial: 2

Summary: A system-independent interface for user-level packet capture
License: BSD
Group: System/Libraries
Url: http://www.tcpdump.org
Packager: Dmitry V. Levin <ldv at altlinux.org>

# %url/release/libpcap-%version.tar.gz

Source: libpcap-%version.tar
Patch: libpcap-%version-%release.patch

%def_disable static

%define vers_maj 0.8
%define libname libpcap%vers_maj
%define soname libpcap.so.%vers_maj

# Automatically added by buildreq on Tue Jun 03 2003

BuildRequires: flex

%package -n %libname
Summary: A system-independent interface for user-level packet capture
Group: System/Libraries
Provides: %name = %serial:%version-%release
Obsoletes: %name

%package devel
Summary: Development environment for the packet capture library
Group: Development/C
Requires: %libname = %serial:%version-%release

%package devel-static
Summary: Static packet capture library
Group: Development/C
Requires: %name-devel = %serial:%version-%release

%description
Libpcap provides a portable framework for low-level network monitoring.
Libpcap can provide network statistics collection, security monitoring
and network debugging.  Since almost every system vendor provides a
different interface for packet capture, the libpcap authors created this
system-independent API to ease in porting and to alleviate the need for
several system-dependent packet capture modules in each application.

%description -n %libname
Libpcap provides a portable framework for low-level network monitoring.
Libpcap can provide network statistics collection, security monitoring
and network debugging.  Since almost every system vendor provides a
different interface for packet capture, the libpcap authors created this
system-independent API to ease in porting and to alleviate the need for
several system-dependent packet capture modules in each application.

%description devel
Libpcap provides a portable framework for low-level network monitoring.
Libpcap can provide network statistics collection, security monitoring
and network debugging.  Since almost every system vendor provides a
different interface for packet capture, the libpcap authors created this
system-independent API to ease in porting and to alleviate the need for
several system-dependent packet capture modules in each application.

This package contains development files needed to develop libpcap-based
applications such as tcpdump, etc.

%description devel-static
Libpcap provides a portable framework for low-level network monitoring.
Libpcap can provide network statistics collection, security monitoring
and network debugging.  Since almost every system vendor provides a
different interface for packet capture, the libpcap authors created this
system-independent API to ease in porting and to alleviate the need for
several system-dependent packet capture modules in each application.

This package contains the static pcap library needed to develop statically
linked libpcap-based applications.

%prep
%setup -q
%patch -p1
bzip2 -9k CHANGES

%build
autoreconf -fisv
export ac_cv_lbl_proc_net_dev=yes
%configure --enable-ipv6

# First build shared,

%make_build CCOPT="%optflags %optflags_shared"
mkdir -p shared
gcc -shared -o shared/libpcap.so.%version \
-Wl,-soname,%soname -Wl,--version-script,libpcap.map \
-Wl,-whole-archive,libpcap.a,-no-whole-archive

%if_enabled static
# then static.
make clean
%make_build CCOPT="%optflags"
%endif #static

%install
%make_install install-include install-man DESTDIR=%buildroot
mkdir -p %buildroot%_libdir
install -pm644 shared/libpcap.so.%version %buildroot%_libdir/
ln -s libpcap.so.%version %buildroot%_libdir/%soname
ln -s libpcap.so.%version %buildroot%_libdir/libpcap.so
%if_enabled static
%make_install install-static DESTDIR=%buildroot
%endif #static

mkdir -p %buildroot%_includedir/net
ln -s ../pcap-bpf.h %buildroot%_includedir/net/bpf.h

%define _customdocdir %_docdir/libpcap-%version

%post -n %libname -p %post_ldconfig
%postun -n %libname -p %postun_ldconfig

%files -n %libname
%_libdir/*.so.*
%doc CHANGES.bz2 CREDITS LICENSE README README.linux TODO

%files devel
%_includedir/*.h
%_includedir/*/*.h
%_libdir/*.so
%_mandir/man?/*

%if_enabled static
%files devel-static
%_libdir/*.a
%endif #static

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin