|
|
@@ -33,17 +33,19 @@ Distribution: OpenPKG
|
|
|
Class: EVAL
|
|
|
Group: Network
|
|
|
License: GPL
|
|
|
-Version: 0.6.b
|
|
|
-Release: 20040203
|
|
|
+Version: 0.7.0
|
|
|
+Release: 20040706
|
|
|
|
|
|
# list of sources
|
|
|
-Source0: http://osdn.dl.sourceforge.net/ettercap/ettercap-%{version}.tar.gz
|
|
|
+Source0: http://osdn.dl.sourceforge.net/ettercap/ettercap-NG-%{version}.tar.gz
|
|
|
|
|
|
# build information
|
|
|
Prefix: %{l_prefix}
|
|
|
BuildRoot: %{l_buildroot}
|
|
|
-BuildPreReq: OpenPKG, openpkg >= 20040130, ncurses, openssl
|
|
|
-PreReq: OpenPKG, openpkg >= 20040130, ncurses, openssl
|
|
|
+BuildPreReq: OpenPKG, openpkg >= 20040130
|
|
|
+PreReq: OpenPKG, openpkg >= 20040130
|
|
|
+BuildPreReq: ncurses, openssl, pcre, libiconv, libnet, libpcap
|
|
|
+PreReq: ncurses, openssl, pcre, libiconv, libnet, libpcap
|
|
|
AutoReq: no
|
|
|
AutoReqProv: no
|
|
|
|
|
|
@@ -56,38 +58,42 @@ AutoReqProv: no
|
|
|
%track
|
|
|
prog ettercap = {
|
|
|
comment = "rse: notice: 0.6.11 is written 0.6.b by the vendor!"
|
|
|
- version = 0.6.11
|
|
|
+ version = %{version}
|
|
|
url = http://prdownloads.sourceforge.net/ettercap/
|
|
|
- regex = ettercap-(\d+\.\d+\.[\da-z])\.tar\.gz
|
|
|
+ regex = ettercap-NG-(\d+\.\d+\.[\da-z]+)\.tar\.gz
|
|
|
transform = "s/^(\\d+\\.\\d+\\.)([a-z])$/$1.sprintf(\"%d\",10+(ord($2)-ord('a')))/e; $_"
|
|
|
}
|
|
|
|
|
|
%prep
|
|
|
- %setup -q
|
|
|
+ %setup -q -n ettercap-NG-%{version}
|
|
|
|
|
|
%build
|
|
|
CC="%{l_cc}" \
|
|
|
CFLAGS="%{l_cflags -O}" \
|
|
|
CPPFLAGS="%{l_cppflags}" \
|
|
|
LDFLAGS="%{l_ldflags}" \
|
|
|
+ LIBS="-lpanel -lmenu -lform -lncurses" \
|
|
|
./configure \
|
|
|
--prefix=%{l_prefix} \
|
|
|
- --enable-ncurses \
|
|
|
+ --sysconfdir=%{l_prefix}/etc/ettercap \
|
|
|
+ --with-libpcap=%{l_prefix} \
|
|
|
+ --with-libnet=%{l_prefix} \
|
|
|
+ --with-openssl=%{l_prefix} \
|
|
|
+ --with-libpcre=%{l_prefix} \
|
|
|
+ --with-iconv=%{l_prefix} \
|
|
|
+ --with-libncurses=%{l_prefix} \
|
|
|
--disable-gtk \
|
|
|
--disable-debug \
|
|
|
- --enable-plugins \
|
|
|
- --enable-https \
|
|
|
- --with-openssl=%{l_prefix}
|
|
|
+ --enable-plugins
|
|
|
%{l_make} %{l_mflags -O}
|
|
|
|
|
|
%install
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
%{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
|
|
|
- strip $RPM_BUILD_ROOT%{l_prefix}/sbin/* >/dev/null 2>&1 || true
|
|
|
- chmod a+rx $RPM_BUILD_ROOT%{l_prefix}/sbin/*
|
|
|
- rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/doc/ettercap
|
|
|
- rm -f $RPM_BUILD_ROOT%{l_prefix}/share/ettercap/[A-Z]*
|
|
|
- %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
|
|
|
+ strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
|
|
|
+ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
|
|
|
+ %{l_files_std} \
|
|
|
+ '%config %{l_prefix}/etc/ettercap/*'
|
|
|
|
|
|
%files -f files
|
|
|
|