Group :: Monitoramento
RPM: ngrep
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
# Use 'rpmbuild --enable pcre' for compiling additional package
# containing ngrep linked against PCRE library instead of glibc.
%def_disable pcre
Name: ngrep
Version: 1.45
Release: alt2
Summary: ngrep - network grep
License: BSD-style
Group: Monitoring
Url: http://ngrep.sourceforge.net
Packager: Ilya Evseev <evseev at altlinux.ru>
Source: http://download.sourceforge.net/ngrep/ngrep-%version.tar.bz2
Source1: %url/usage.html
Patch0: ngrep-1.45-alt-configure.patch
Patch1: ngrep-1.45-alt-chroot.patch
PreReq: shadow-utils
Requires: /var/resolv
%if_enabled pcre
BuildPreReq: libpcre-devel
%endif
# Automatically added by buildreq on Tue Apr 09 2002
BuildRequires: libpcap-devel
Summary(ru_RU.KOI8-R): ngrep - ÐÏÉÓË ÓÔÒÏËÏ×ÙÈ ÍÁÓÏË × ÓÅÔÅ×ÏÍ ÔÒÁÆÉËÅ
%description
ngrep strives to provide most of GNU grep's common features, applying them
to the network layer. ngrep is a pcap-aware tool that will allow you to
specify extended regular expressions to match against data payloads of
packets. It currently recognizes TCP and UDP across ethernet, ppp and
slip interfaces, and understands bpf filter logic in the same fashion
as more common packet sniffing tools, like tcpdump and snoop.
%description -l ru_RU.KOI8-R
ngrep ÒÅÁÌÉÚÕÅÔ ÂÏÌØÛÉÎÓÔ×Ï ×ÏÚÍÏÖÎÏÓÔÅÊ, ÐÒÅÄÏÓÔÁ×ÌÑÅÍÙÈ ÕÔÉÌÉÔÏÊ GNU grep
ÄÌÑ ÐÏÉÓËÁ ÐÏ ÏÂÒÁÚÃÁÍ, ÎÏ ÏÂÒÁÂÁÔÙ×ÁÅÔ ÎÅ ÆÁÊÌÙ, Á ÐÁËÅÔÙ ÓÅÔÅ×ÏÇÏ ÔÒÁÆÉËÁ.
äÌÑ ÚÁÄÁÎÉÑ ÐÒÁ×ÉÌ ÐÏÉÓËÁ ÍÏÖÎÏ ÉÓÐÏÌØÚÏ×ÁÔØ ÒÁÓÛÉÒÅÎÎÙÅ ÒÅÇÕÌÑÒÎÙÅ ×ÙÒÁÖÅÎÉÑ.
äÌÑ ÐÒÏÓÍÏÔÒÁ ÓÅÔÅ×ÏÇÏ ÔÒÁÆÉËÁ ngrep (ÔÁË ÖÅ, ËÁË É ÄÒÕÇÉÅ ÐÏÐÕÌÑÒÎÙÅ ÓÒÅÄÓÔ×Á
ÐÅÒÅÈ×ÁÔÁ ÐÁËÅÔÏ× ÎÁÐÏÄÏÂÉÅ tcpdump É snoop) ÉÓÐÏÌØÚÕÅÔ ÂÉÂÌÉÏÔÅËÕ pcap.
÷ ÎÁÓÔÏÑÝÉÊ ÍÏÍÅÎÔ ÐÏÄÄÅÒÖÉ×ÁÅÔÓÑ ÐÒÏÓÍÏÔÒ ÐÁËÅÔÏ× TCP É UDP × Ethernet-,
PPP- É SLIP-ÓÏÅÄÉÎÅÎÉÑÈ.
%if_enabled pcre
%package pcre
Summary: Network grep with Perl-compatible regular expressions
Group: Monitoring
Requires: %name = %version-%release
Summary(ru_RU.KOI8-R): ðÏÉÓË ÓÔÒÏËÏ×ÙÈ ÍÁÓÏË × ÓÅÔÅ×ÏÍ ÔÒÁÆÉËÅ
%description pcre
ngrep strives to provide most of GNU grep's common features, applying them
to the network layer. ngrep is a pcap-aware tool that will allow you to
specify extended regular expressions to match against data payloads of
packets. It currently recognizes TCP and UDP across ethernet, ppp and
slip interfaces, and understands bpf filter logic in the same fashion
as more common packet sniffing tools, like tcpdump and snoop.
This package contains ngrep linking against PCRE (Perl-compatible regular
expressions library) instead of standard GNU libRegExp library.
Regular expressions are used for describing search and filtering rules.
%description pcre -l ru_RU.KOI8-R
ngrep ÒÅÁÌÉÚÕÅÔ ÂÏÌØÛÉÎÓÔ×Ï ×ÏÚÍÏÖÎÏÓÔÅÊ, ÐÒÅÄÏÓÔÁ×ÌÑÅÍÙÈ ÕÔÉÌÉÔÏÊ GNU grep
ÄÌÑ ÐÏÉÓËÁ ÐÏ ÏÂÒÁÚÃÁÍ, ÎÏ ÏÂÒÁÂÁÔÙ×ÁÅÔ ÎÅ ÆÁÊÌÙ, Á ÐÁËÅÔÙ ÓÅÔÅ×ÏÇÏ ÔÒÁÆÉËÁ.
äÌÑ ÚÁÄÁÎÉÑ ÐÒÁ×ÉÌ ÐÏÉÓËÁ ÍÏÖÎÏ ÉÓÐÏÌØÚÏ×ÁÔØ ÒÁÓÛÉÒÅÎÎÙÅ ÒÅÇÕÌÑÒÎÙÅ ×ÙÒÁÖÅÎÉÑ.
äÌÑ ÐÒÏÓÍÏÔÒÁ ÓÅÔÅ×ÏÇÏ ÔÒÁÆÉËÁ ngrep (ÔÁË ÖÅ, ËÁË É ÄÒÕÇÉÅ ÐÏÐÕÌÑÒÎÙÅ ÓÒÅÄÓÔ×Á
ÐÅÒÅÈ×ÁÔÁ ÐÁËÅÔÏ× ÎÁÐÏÄÏÂÉÅ tcpdump É snoop) ÉÓÐÏÌØÚÕÅÔ ÂÉÂÌÉÏÔÅËÕ pcap.
÷ ÎÁÓÔÏÑÝÉÊ ÍÏÍÅÎÔ ÐÏÄÄÅÒÖÉ×ÁÅÔÓÑ ÐÒÏÓÍÏÔÒ ÐÁËÅÔÏ× TCP É UDP × Ethernet-,
PPP- É SLIP-ÓÏÅÄÉÎÅÎÉÑÈ.
÷ ÄÁÎÎÏÍ ÐÁËÅÔÅ ÎÁÈÏÄÉÔÓÑ ×ÅÒÓÉÑ ngrep, ÉÓÐÏÌØÚÕÀÝÁÑ ÄÌÑ ÐÏÉÓËÁ ÓÔÒÏË
ÒÅÇÕÌÑÒÎÙÅ ×ÙÒÁÖÅÎÉÑ × ÓÔÉÌÅ ÑÚÙËÁ Perl ÉÚ ÂÉÂÌÉÏÔÅËÉ PCRE
(Perl-compatible regular expressions) ×ÍÅÓÔÏ ÒÅÇÕÌÑÒÎÙÈ ×ÙÒÁÖÅÎÉÊ
ÓÔÁÎÄÁÒÔÁ POSIX ÉÚ ÓÔÁÎÄÁÒÔÎÏÊ ÂÉÂÌÉÏÔÅËÉ GNU glibc.
%endif
%prep
%setup -q
%patch0 -b .orig
%patch1 -b .orig
%__rm -rf -- pcre* regex*
%__install -pm644 %SOURCE1 .
%build
autoreconf -fisv
%if_enabled pcre
%configure --disable-pcap-restart --with-dropprivs-user=%name %{subst_enable pcre}
%make_build
cp -a %name %name-pcre
%endif
%configure --disable-pcap-restart --with-dropprivs-user=%name
%make_build
%install
%__install -pD -m755 %name %buildroot%_sbindir/%name
%__install -pD -m644 %name.8 %buildroot%_man8dir/%name.8
%if_enabled pcre
%__install -pD -m755 %name-pcre %buildroot%_sbindir/%name-pcre
%endif
%pre
%_sbindir/groupadd -r -f %name
%_sbindir/useradd -r -g %name -d /dev/null -s /dev/null -n %name >/dev/null 2>&1 ||:
%files
%_sbindir/%name
%_mandir/man?/*
%doc doc/*.txt usage.html
%if_enabled pcre
%files pcre
%_sbindir/%name-pcre
%endif
%changelog
…
Todas as alterações você pod ver aqui
# containing ngrep linked against PCRE library instead of glibc.
%def_disable pcre
Name: ngrep
Version: 1.45
Release: alt2
Summary: ngrep - network grep
License: BSD-style
Group: Monitoring
Url: http://ngrep.sourceforge.net
Packager: Ilya Evseev <evseev at altlinux.ru>
Source: http://download.sourceforge.net/ngrep/ngrep-%version.tar.bz2
Source1: %url/usage.html
Patch0: ngrep-1.45-alt-configure.patch
Patch1: ngrep-1.45-alt-chroot.patch
PreReq: shadow-utils
Requires: /var/resolv
%if_enabled pcre
BuildPreReq: libpcre-devel
%endif
# Automatically added by buildreq on Tue Apr 09 2002
BuildRequires: libpcap-devel
Summary(ru_RU.KOI8-R): ngrep - ÐÏÉÓË ÓÔÒÏËÏ×ÙÈ ÍÁÓÏË × ÓÅÔÅ×ÏÍ ÔÒÁÆÉËÅ
%description
ngrep strives to provide most of GNU grep's common features, applying them
to the network layer. ngrep is a pcap-aware tool that will allow you to
specify extended regular expressions to match against data payloads of
packets. It currently recognizes TCP and UDP across ethernet, ppp and
slip interfaces, and understands bpf filter logic in the same fashion
as more common packet sniffing tools, like tcpdump and snoop.
%description -l ru_RU.KOI8-R
ngrep ÒÅÁÌÉÚÕÅÔ ÂÏÌØÛÉÎÓÔ×Ï ×ÏÚÍÏÖÎÏÓÔÅÊ, ÐÒÅÄÏÓÔÁ×ÌÑÅÍÙÈ ÕÔÉÌÉÔÏÊ GNU grep
ÄÌÑ ÐÏÉÓËÁ ÐÏ ÏÂÒÁÚÃÁÍ, ÎÏ ÏÂÒÁÂÁÔÙ×ÁÅÔ ÎÅ ÆÁÊÌÙ, Á ÐÁËÅÔÙ ÓÅÔÅ×ÏÇÏ ÔÒÁÆÉËÁ.
äÌÑ ÚÁÄÁÎÉÑ ÐÒÁ×ÉÌ ÐÏÉÓËÁ ÍÏÖÎÏ ÉÓÐÏÌØÚÏ×ÁÔØ ÒÁÓÛÉÒÅÎÎÙÅ ÒÅÇÕÌÑÒÎÙÅ ×ÙÒÁÖÅÎÉÑ.
äÌÑ ÐÒÏÓÍÏÔÒÁ ÓÅÔÅ×ÏÇÏ ÔÒÁÆÉËÁ ngrep (ÔÁË ÖÅ, ËÁË É ÄÒÕÇÉÅ ÐÏÐÕÌÑÒÎÙÅ ÓÒÅÄÓÔ×Á
ÐÅÒÅÈ×ÁÔÁ ÐÁËÅÔÏ× ÎÁÐÏÄÏÂÉÅ tcpdump É snoop) ÉÓÐÏÌØÚÕÅÔ ÂÉÂÌÉÏÔÅËÕ pcap.
÷ ÎÁÓÔÏÑÝÉÊ ÍÏÍÅÎÔ ÐÏÄÄÅÒÖÉ×ÁÅÔÓÑ ÐÒÏÓÍÏÔÒ ÐÁËÅÔÏ× TCP É UDP × Ethernet-,
PPP- É SLIP-ÓÏÅÄÉÎÅÎÉÑÈ.
%if_enabled pcre
%package pcre
Summary: Network grep with Perl-compatible regular expressions
Group: Monitoring
Requires: %name = %version-%release
Summary(ru_RU.KOI8-R): ðÏÉÓË ÓÔÒÏËÏ×ÙÈ ÍÁÓÏË × ÓÅÔÅ×ÏÍ ÔÒÁÆÉËÅ
%description pcre
ngrep strives to provide most of GNU grep's common features, applying them
to the network layer. ngrep is a pcap-aware tool that will allow you to
specify extended regular expressions to match against data payloads of
packets. It currently recognizes TCP and UDP across ethernet, ppp and
slip interfaces, and understands bpf filter logic in the same fashion
as more common packet sniffing tools, like tcpdump and snoop.
This package contains ngrep linking against PCRE (Perl-compatible regular
expressions library) instead of standard GNU libRegExp library.
Regular expressions are used for describing search and filtering rules.
%description pcre -l ru_RU.KOI8-R
ngrep ÒÅÁÌÉÚÕÅÔ ÂÏÌØÛÉÎÓÔ×Ï ×ÏÚÍÏÖÎÏÓÔÅÊ, ÐÒÅÄÏÓÔÁ×ÌÑÅÍÙÈ ÕÔÉÌÉÔÏÊ GNU grep
ÄÌÑ ÐÏÉÓËÁ ÐÏ ÏÂÒÁÚÃÁÍ, ÎÏ ÏÂÒÁÂÁÔÙ×ÁÅÔ ÎÅ ÆÁÊÌÙ, Á ÐÁËÅÔÙ ÓÅÔÅ×ÏÇÏ ÔÒÁÆÉËÁ.
äÌÑ ÚÁÄÁÎÉÑ ÐÒÁ×ÉÌ ÐÏÉÓËÁ ÍÏÖÎÏ ÉÓÐÏÌØÚÏ×ÁÔØ ÒÁÓÛÉÒÅÎÎÙÅ ÒÅÇÕÌÑÒÎÙÅ ×ÙÒÁÖÅÎÉÑ.
äÌÑ ÐÒÏÓÍÏÔÒÁ ÓÅÔÅ×ÏÇÏ ÔÒÁÆÉËÁ ngrep (ÔÁË ÖÅ, ËÁË É ÄÒÕÇÉÅ ÐÏÐÕÌÑÒÎÙÅ ÓÒÅÄÓÔ×Á
ÐÅÒÅÈ×ÁÔÁ ÐÁËÅÔÏ× ÎÁÐÏÄÏÂÉÅ tcpdump É snoop) ÉÓÐÏÌØÚÕÅÔ ÂÉÂÌÉÏÔÅËÕ pcap.
÷ ÎÁÓÔÏÑÝÉÊ ÍÏÍÅÎÔ ÐÏÄÄÅÒÖÉ×ÁÅÔÓÑ ÐÒÏÓÍÏÔÒ ÐÁËÅÔÏ× TCP É UDP × Ethernet-,
PPP- É SLIP-ÓÏÅÄÉÎÅÎÉÑÈ.
÷ ÄÁÎÎÏÍ ÐÁËÅÔÅ ÎÁÈÏÄÉÔÓÑ ×ÅÒÓÉÑ ngrep, ÉÓÐÏÌØÚÕÀÝÁÑ ÄÌÑ ÐÏÉÓËÁ ÓÔÒÏË
ÒÅÇÕÌÑÒÎÙÅ ×ÙÒÁÖÅÎÉÑ × ÓÔÉÌÅ ÑÚÙËÁ Perl ÉÚ ÂÉÂÌÉÏÔÅËÉ PCRE
(Perl-compatible regular expressions) ×ÍÅÓÔÏ ÒÅÇÕÌÑÒÎÙÈ ×ÙÒÁÖÅÎÉÊ
ÓÔÁÎÄÁÒÔÁ POSIX ÉÚ ÓÔÁÎÄÁÒÔÎÏÊ ÂÉÂÌÉÏÔÅËÉ GNU glibc.
%endif
%prep
%setup -q
%patch0 -b .orig
%patch1 -b .orig
%__rm -rf -- pcre* regex*
%__install -pm644 %SOURCE1 .
%build
autoreconf -fisv
%if_enabled pcre
%configure --disable-pcap-restart --with-dropprivs-user=%name %{subst_enable pcre}
%make_build
cp -a %name %name-pcre
%endif
%configure --disable-pcap-restart --with-dropprivs-user=%name
%make_build
%install
%__install -pD -m755 %name %buildroot%_sbindir/%name
%__install -pD -m644 %name.8 %buildroot%_man8dir/%name.8
%if_enabled pcre
%__install -pD -m755 %name-pcre %buildroot%_sbindir/%name-pcre
%endif
%pre
%_sbindir/groupadd -r -f %name
%_sbindir/useradd -r -g %name -d /dev/null -s /dev/null -n %name >/dev/null 2>&1 ||:
%files
%_sbindir/%name
%_mandir/man?/*
%doc doc/*.txt usage.html
%if_enabled pcre
%files pcre
%_sbindir/%name-pcre
%endif
%changelog
…
Todas as alterações você pod ver aqui