|
@@ -23,8 +23,6 @@
|
|
|
## SUCH DAMAGE.
|
|
## SUCH DAMAGE.
|
|
|
##
|
|
##
|
|
|
|
|
|
|
|
-# FIXME: honeyd do not write a pid file
|
|
|
|
|
-
|
|
|
|
|
# package information
|
|
# package information
|
|
|
Name: honeyd
|
|
Name: honeyd
|
|
|
Summary: Creates a Virtual Host on Network
|
|
Summary: Creates a Virtual Host on Network
|
|
@@ -46,8 +44,8 @@ Patch0: honeyd.patch
|
|
|
# build information
|
|
# build information
|
|
|
Prefix: %{l_prefix}
|
|
Prefix: %{l_prefix}
|
|
|
BuildRoot: %{l_buildroot}
|
|
BuildRoot: %{l_buildroot}
|
|
|
-BuildPreReq: OpenPKG, openpkg >= 20030211, libdnet, libpcap, libevent
|
|
|
|
|
-PreReq: OpenPKG, openpkg >= 20030211
|
|
|
|
|
|
|
+BuildPreReq: OpenPKG, openpkg >= 20030211, fsl, libdnet, libpcap, libevent
|
|
|
|
|
+PreReq: OpenPKG, openpkg >= 20030211, fsl
|
|
|
AutoReq: no
|
|
AutoReq: no
|
|
|
AutoReqProv: no
|
|
AutoReqProv: no
|
|
|
|
|
|
|
@@ -67,62 +65,59 @@ AutoReqProv: no
|
|
|
%patch -p0
|
|
%patch -p0
|
|
|
|
|
|
|
|
%build
|
|
%build
|
|
|
|
|
+ %{l_shtool} subst \
|
|
|
|
|
+ -e 's;/var/run/honeyd.pid;%{l_prefix}/var/honeyd/honeyd.pid;' \
|
|
|
|
|
+ honeyd.h
|
|
|
CC="%{l_cc}" \
|
|
CC="%{l_cc}" \
|
|
|
- CFLAGS="%{l_cflags -O}" \
|
|
|
|
|
|
|
+ CFLAGS="%{l_cflags -O}"
|
|
|
./configure \
|
|
./configure \
|
|
|
--prefix=%{l_prefix} \
|
|
--prefix=%{l_prefix} \
|
|
|
--with-libdnet=%{l_prefix} \
|
|
--with-libdnet=%{l_prefix} \
|
|
|
--with-libpcap=%{l_prefix} \
|
|
--with-libpcap=%{l_prefix} \
|
|
|
- --with-libevent=%{l_prefix} \
|
|
|
|
|
- --includedir=%{l_prefix}
|
|
|
|
|
- %{l_make} %{l_mflags -O}
|
|
|
|
|
|
|
+ --with-libevent=%{l_prefix}
|
|
|
|
|
+ %{l_shtool} subst \
|
|
|
|
|
+ -e "s;^\\(honeyd_LDADD.*\\)$;\\1 `%{l_prefix}/bin/fsl-config --all --ldflags --libs`;" \
|
|
|
|
|
+ Makefile
|
|
|
|
|
+ %{l_make} %{l_mflags} \
|
|
|
|
|
|
|
|
%install
|
|
%install
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
-
|
|
|
|
|
- # create filesystem hierachy
|
|
|
|
|
%{l_shtool} mkdir -f -p -m 755 \
|
|
%{l_shtool} mkdir -f -p -m 755 \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/etc/honeyd \
|
|
$RPM_BUILD_ROOT%{l_prefix}/etc/honeyd \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \
|
|
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \
|
|
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/etc/fsl \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/sbin \
|
|
$RPM_BUILD_ROOT%{l_prefix}/sbin \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/man/man8 \
|
|
$RPM_BUILD_ROOT%{l_prefix}/man/man8 \
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/share/honeyd/scripts \
|
|
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/share/honeyd/base \
|
|
|
|
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/lib/honeyd \
|
|
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/libexec/honeyd \
|
|
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/share/honeyd \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/var/honeyd
|
|
$RPM_BUILD_ROOT%{l_prefix}/var/honeyd
|
|
|
|
|
|
|
|
# install files
|
|
# install files
|
|
|
%{l_shtool} install -c -s -m 755 \
|
|
%{l_shtool} install -c -s -m 755 \
|
|
|
- honeyd $RPM_BUILD_ROOT%{l_prefix}/sbin
|
|
|
|
|
|
|
+ honeyd $RPM_BUILD_ROOT%{l_prefix}/sbin/
|
|
|
|
|
+ %{l_shtool} install -c -m 755 \
|
|
|
|
|
+ libhoneyd.so $RPM_BUILD_ROOT%{l_prefix}/lib/honeyd/
|
|
|
%{l_shtool} install -c -m 644 \
|
|
%{l_shtool} install -c -m 644 \
|
|
|
honeyd.8 $RPM_BUILD_ROOT%{l_prefix}/man/man8/
|
|
honeyd.8 $RPM_BUILD_ROOT%{l_prefix}/man/man8/
|
|
|
-
|
|
|
|
|
- %{l_shtool} install -c -m 644 \
|
|
|
|
|
- nmap.assoc $RPM_BUILD_ROOT%{l_prefix}/share/honeyd
|
|
|
|
|
-
|
|
|
|
|
- %{l_shtool} install -c -m 644 \
|
|
|
|
|
- nmap.prints $RPM_BUILD_ROOT%{l_prefix}/share/honeyd
|
|
|
|
|
-
|
|
|
|
|
- %{l_shtool} install -c -m 644 \
|
|
|
|
|
- xprobe2.conf $RPM_BUILD_ROOT%{l_prefix}/share/honeyd
|
|
|
|
|
-
|
|
|
|
|
%{l_shtool} install -c -m 644 \
|
|
%{l_shtool} install -c -m 644 \
|
|
|
- scripts/router-telnet.pl $RPM_BUILD_ROOT%{l_prefix}/share/honeyd/scripts
|
|
|
|
|
-
|
|
|
|
|
- %{l_shtool} install -c -m 644 \
|
|
|
|
|
- scripts/test.sh $RPM_BUILD_ROOT%{l_prefix}/share/honeyd/scripts
|
|
|
|
|
-
|
|
|
|
|
|
|
+ -e 's;@l_prefix@;%{l_prefix};g' \
|
|
|
|
|
+ %{SOURCE honeyd.conf} \
|
|
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/etc/honeyd/
|
|
|
%{l_shtool} install -c -m 644 \
|
|
%{l_shtool} install -c -m 644 \
|
|
|
- scripts/web.sh $RPM_BUILD_ROOT%{l_prefix}/share/honeyd/scripts
|
|
|
|
|
-
|
|
|
|
|
|
|
+ nmap.assoc nmap.prints xprobe2.conf \
|
|
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/share/honeyd/
|
|
|
%{l_shtool} install -c -m 755 \
|
|
%{l_shtool} install -c -m 755 \
|
|
|
-e 's;@l_prefix@;%{l_prefix};g' \
|
|
-e 's;@l_prefix@;%{l_prefix};g' \
|
|
|
- %{SOURCE honeyd.conf} $RPM_BUILD_ROOT%{l_prefix}/etc/honeyd/
|
|
|
|
|
-
|
|
|
|
|
|
|
+ %{SOURCE honeyd.service} \
|
|
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/libexec/honeyd/
|
|
|
%{l_shtool} install -c -m 755 \
|
|
%{l_shtool} install -c -m 755 \
|
|
|
-e 's;@l_prefix@;%{l_prefix};g' \
|
|
-e 's;@l_prefix@;%{l_prefix};g' \
|
|
|
-e 's;@l_susr@;%{l_susr};g' \
|
|
-e 's;@l_susr@;%{l_susr};g' \
|
|
|
- %{SOURCE rc.honeyd} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
|
|
|
|
|
-
|
|
|
|
|
|
|
+ %{SOURCE rc.honeyd} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
|
|
|
|
|
+ %{l_shtool} install -c -m 644 \
|
|
|
|
|
+ -e 's;@l_prefix@;%{l_prefix};g' \
|
|
|
|
|
+ %{SOURCE fsl.honeyd} $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/
|
|
|
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
|
|
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
|
|
|
|
|
|
|
|
%files -f files
|
|
%files -f files
|