OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Peter Smej Root: /e/openpkg/cvs Email: [EMAIL PROTECTED] Module: openpkg-src Date: 18-Feb-2003 15:52:05 Branch: HEAD Handle: 2003021814520500 Added files: openpkg-src/honeyd honeyd.patch honeyd.spec Log: Append honeyd to the correct directory Summary: Revision Changes Path 1.1 +44 -0 openpkg-src/honeyd/honeyd.patch 1.1 +101 -0 openpkg-src/honeyd/honeyd.spec ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-src/honeyd/honeyd.patch ============================================================================ $ cvs diff -u -r0 -r1.1 honeyd.patch --- /dev/null 2003-02-18 15:52:05.000000000 +0100 +++ honeyd.patch 2003-02-18 15:52:05.000000000 +0100 @@ -0,0 +1,44 @@ +--- configure.org Tue Feb 18 15:31:11 2003 ++++ configure Tue Feb 18 15:32:56 2003 +@@ -3435,11 +3435,11 @@ + *) + echo "$as_me:3436: result: $withval" >&5 + echo "${ECHO_T}$withval" >&6 +- if test -f $withval/pcap.h -a -f $withval/libpcap.a; then ++ if test -f $withval/include/pcap.h -a -f $withval/lib/libpcap.a; then + owd=`pwd` + if cd $withval; then withval=`pwd`; cd $owd; fi +- PCAPINC="-I$withval -I$withval/bpf" +- PCAPLIB="-L$withval -lpcap" ++ PCAPINC="-I$withval/include -I$withval/bpf" ++ PCAPLIB="-L$withval/lib -lpcap" + else + { { echo "$as_me:3444: error: pcap.h or libpcap.a not found in $withval" >&5 + echo "$as_me: error: pcap.h or libpcap.a not found in $withval" >&2;} +@@ -3482,9 +3482,9 @@ + *) + echo "$as_me:3483: result: $withval" >&5 + echo "${ECHO_T}$withval" >&6 +- if test -f $withval/src/libdnet.a; then ++ if test -f $withval/lib/libdnet.a; then + DNETINC="-I$withval/include" +- DNETLIB="-L$withval/src -ldnet `$withval/dnet-config --libs`" ++ DNETLIB="-L$withval/lib -ldnet `$withval/dnet-config --libs`" + elif test -x $withval/bin/dnet-config; then + DNETINC="`$withval/bin/dnet-config --cflags`" + DNETLIB="`$withval/bin/dnet-config --libs`" +@@ -3525,11 +3525,11 @@ + *) + echo "$as_me:3526: result: $withval" >&5 + echo "${ECHO_T}$withval" >&6 +- if test -f $withval/event.h -a -f $withval/libevent.a; then ++ if test -f $withval/include/event.h -a -f $withval/lib/libevent.a; then + owd=`pwd` + if cd $withval; then withval=`pwd`; cd $owd; fi +- EVENTINC="-I$withval" +- EVENTLIB="-L$withval -levent" ++ EVENTINC="-I$withval/include" ++ EVENTLIB="-L$withval/lib -levent" + else + { { echo "$as_me:3534: error: event.h or libevent.a not found in $withval" >&5 + echo "$as_me: error: event.h or libevent.a not found in $withval" >&2;} @@ . patch -p0 <<'@@ .' Index: openpkg-src/honeyd/honeyd.spec ============================================================================ $ cvs diff -u -r0 -r1.1 honeyd.spec --- /dev/null 2003-02-18 15:52:05.000000000 +0100 +++ honeyd.spec 2003-02-18 15:52:05.000000000 +0100 @@ -0,0 +1,101 @@ +## +## honeyd.spec -- OpenPKG RPM Specification +## Copyright (c) 2000-2003 Cable & Wireless Deutschland GmbH +## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/> +## Copyright (c) 2000-2003 Ralf S. Engelschall <[EMAIL PROTECTED]> +## +## Permission to use, copy, modify, and distribute this software for +## any purpose with or without fee is hereby granted, provided that +## the above copyright notice and this permission notice appear in all +## copies. +## +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +## SUCH DAMAGE. +## + +# package information +Name: honeyd +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 [] +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 +Patch0: honeyd.patch + +# build information +Prefix: %{l_prefix} +BuildRoot: %{l_buildroot} +BuildPreReq: OpenPKG, openpkg >= 20030211, libdnet, libpcap, libevent +PreReq: OpenPKG, openpkg >= 20030211, sudo +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. + +%prep + %setup -q + %patch0 -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} + + %{l_make} %{l_mflags -O} + +%install + rm -rf $RPM_BUILD_ROOT + %{l_make} %{l_mflags} install + +# create filesystem hiearchy + %{l_shtool} mkdir -f -p -m 755 \ + $RPM_BUILD_ROOT%{l_prefix}/etc/honeyd \ + $RPM_BUILD_ROOT%{l_prefix}/libexec/honeyd \ + +# 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 + + + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} + +%files -f files + +%clean + rm -rf $RPM_BUILD_ROOT + @@ . ______________________________________________________________________ The OpenPKG Project www.openpkg.org CVS Repository Commit List [EMAIL PROTECTED]