|
|
@@ -25,18 +25,18 @@
|
|
|
|
|
|
# package information
|
|
|
Name: honeyd
|
|
|
-Summary: Creates a Virtual Host on Network
|
|
|
+Summary: Creates a Virtual Host on Network
|
|
|
URL: http://www.citi.umich.edu/u/provos/honeyd/
|
|
|
Vendor: Niels Provos
|
|
|
Packager: The OpenPKG Project
|
|
|
-Distribution: OpenPKG []
|
|
|
+Distribution: OpenPKG [EVAL]
|
|
|
Group: Language
|
|
|
License: BSD License
|
|
|
Version: 0.5
|
|
|
Release: 20030218
|
|
|
|
|
|
# list of sources
|
|
|
-Source0: http://www.citi.umich.edu/u/provos/honeyd/honeyd-%{version}.tar.gz
|
|
|
+Source0: http://www.citi.umich.edu/u/provos/honeyd/honeyd-%{version}.tar.gz
|
|
|
Patch0: honeyd.patch
|
|
|
|
|
|
# build information
|
|
|
@@ -48,54 +48,56 @@ AutoReq: no
|
|
|
AutoReqProv: no
|
|
|
|
|
|
%description
|
|
|
- Honeyd is a small daemon that creates virtual hosts on a network.
|
|
|
- The hosts can be configured to run arbitrary services, and their TCP personality
|
|
|
- can be adapted so that they appear to be running certain versions of operating
|
|
|
- systems. Honeyd enables a single host to claim multiple addresses on a
|
|
|
- LAN for network simulation. It is possible to ping the virtual machines, or to
|
|
|
- traceroute them. Any type of service on the virtual machine can be
|
|
|
- simulated according to a simple configuration file. Instead of simulating a service,
|
|
|
- it is also possible to proxy it to another machine.
|
|
|
+ Honeyd is a small daemon that creates virtual hosts on a network.
|
|
|
+ The hosts can be configured to run arbitrary services, and their
|
|
|
+ TCP personality can be adapted so that they appear to be running
|
|
|
+ certain versions of operating systems. Honeyd enables a single host
|
|
|
+ to claim multiple addresses on a LAN for network simulation. It is
|
|
|
+ possible to ping the virtual machines, or to traceroute them. Any
|
|
|
+ type of service on the virtual machine can be simulated according to
|
|
|
+ a simple configuration file. Instead of simulating a service, it is
|
|
|
+ also possible to proxy it to another machine.
|
|
|
|
|
|
%prep
|
|
|
%setup -q
|
|
|
- %patch0 -p0
|
|
|
+ %patch -p0
|
|
|
|
|
|
%build
|
|
|
CC="%{l_cc}" \
|
|
|
CFLAGS="%{l_cflags -O}" \
|
|
|
- ./configure --prefix=$RPM_BUILD_ROOT%{l_prefix} \
|
|
|
- --with-libdnet=%{l_prefix} \
|
|
|
- --with-libpcap=%{l_prefix} \
|
|
|
- --with-libevent=%{l_prefix} \
|
|
|
- --includedir=%{l_prefix}
|
|
|
-
|
|
|
+ ./configure \
|
|
|
+ --prefix=$RPM_BUILD_ROOT%{l_prefix} \
|
|
|
+ --with-libdnet=%{l_prefix} \
|
|
|
+ --with-libpcap=%{l_prefix} \
|
|
|
+ --with-libevent=%{l_prefix} \
|
|
|
+ --includedir=%{l_prefix}
|
|
|
%{l_make} %{l_mflags -O}
|
|
|
|
|
|
%install
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
%{l_make} %{l_mflags} install
|
|
|
|
|
|
-# create filesystem hiearchy
|
|
|
+ # create filesystem hierachy
|
|
|
%{l_shtool} mkdir -f -p -m 755 \
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/etc/honeyd \
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/libexec/honeyd \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/etc/honeyd \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/libexec/honeyd
|
|
|
|
|
|
-# install wrapper
|
|
|
+ # install wrapper
|
|
|
( echo "#!/bin/sh"
|
|
|
echo "exec %{l_prefix}/bin/sudo %{l_prefix}/libexec/honeyd/honeyd \${1+\"\$@\"} &"
|
|
|
) >$RPM_BUILD_ROOT%{l_prefix}/bin/honeyd
|
|
|
chmod a+x $RPM_BUILD_ROOT%{l_prefix}/bin/honeyd
|
|
|
|
|
|
-# install file
|
|
|
- %{l_shtool} install -c -m 755 honeyd $RPM_BUILD_ROOT%{l_prefix}/libexec/honeyd
|
|
|
- %{l_shtool} install -c -m 644 honeyd.8 $RPM_BUILD_ROOT%{l_prefix}/man/man8
|
|
|
-
|
|
|
+ # install files
|
|
|
+ %{l_shtool} install -c -m 755 \
|
|
|
+ honeyd $RPM_BUILD_ROOT%{l_prefix}/libexec/honeyd
|
|
|
+ %{l_shtool} install -c -m 644 \
|
|
|
+ honeyd.8 $RPM_BUILD_ROOT%{l_prefix}/man/man8/
|
|
|
|
|
|
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
|
|
|
|
|
|
%files -f files
|
|
|
|
|
|
%clean
|
|
|
- rm -rf $RPM_BUILD_ROOT
|
|
|
+ rm -rf $RPM_BUILD_ROOT
|
|
|
|