head 1.71; access; symbols OPENPKG_E1_MP_HEAD:1.65 OPENPKG_E1_MP:1.65 OPENPKG_E1_MP_2_STABLE:1.64.2.2 OPENPKG_E1_FP:1.64.2.2 OPENPKG_2_STABLE_MP:1.64 OPENPKG_2_STABLE_20061018:1.64.2.2 OPENPKG_2_STABLE:1.64.0.2 OPENPKG_CW_FP:1.55 OPENPKG_1_STABLE_MP:1.29; locks; strict; comment @-- @; 1.71 date 2009.04.18.13.11.08; author rse; state Exp; branches; next 1.70; commitid 4pHXU27WTIGCZuKt; 1.70 date 2008.01.01.14.55.24; author rse; state Exp; branches; next 1.69; commitid B8esaHJHoduuKILs; 1.69 date 2007.10.27.11.59.29; author cs; state Exp; branches; next 1.68; commitid XKMxflRJ6S7CYdDs; 1.68 date 2007.08.27.10.25.04; author rse; state Exp; branches; next 1.67; commitid 5VBCYQWYRG03qnvs; 1.67 date 2007.08.27.09.05.10; author rse; state Exp; branches; next 1.66; commitid K3VXhrwewmVEYmvs; 1.66 date 2007.07.20.20.16.54; author thl; state Exp; branches; next 1.65; commitid yCyWfcoNSNOaUxqs; 1.65 date 2007.01.01.17.38.31; author rse; state Exp; branches; next 1.64; commitid BicZD6VUl7GuqP0s; 1.64 date 2006.10.13.17.28.47; author thl; state Exp; branches 1.64.2.1; next 1.63; commitid q5GSxzsSDX29XxQr; 1.63 date 2006.10.06.06.22.00; author rse; state Exp; branches; next 1.62; commitid 2YOe3wqqM51owAPr; 1.62 date 2006.08.25.19.16.48; author rse; state Exp; branches; next 1.61; commitid Tvsj1UyQ8rQ89gKr; 1.61 date 2006.08.24.10.19.04; author rse; state Exp; branches; next 1.60; commitid 5hjETmFw3JXod5Kr; 1.60 date 2006.03.16.07.11.09; author rse; state Exp; branches; next 1.59; commitid sgXrvFsrvCpNlnpr; 1.59 date 2006.03.10.14.59.51; author rse; state Exp; branches; next 1.58; commitid XXoo6ftWNWTx8Eor; 1.58 date 2006.01.01.13.14.31; author rse; state Exp; branches; next 1.57; commitid otZG8yKMCw1JFTfr; 1.57 date 2005.07.29.15.41.10; author rse; state Exp; branches; next 1.56; 1.56 date 2005.03.24.11.19.01; author rse; state Exp; branches; next 1.55; 1.55 date 2005.01.07.13.07.30; author ms; state Exp; branches; next 1.54; 1.54 date 2005.01.06.09.50.14; author rse; state Exp; branches; next 1.53; 1.53 date 2005.01.01.10.50.11; author rse; state Exp; branches; next 1.52; 1.52 date 2004.10.15.09.42.06; author ms; state Exp; branches; next 1.51; 1.51 date 2004.09.20.14.33.25; author rse; state Exp; branches; next 1.50; 1.50 date 2004.07.06.11.18.11; author ms; state Exp; branches; next 1.49; 1.49 date 2004.06.30.13.05.39; author ms; state Exp; branches; next 1.48; 1.48 date 2004.06.25.15.16.20; author ms; state Exp; branches; next 1.47; 1.47 date 2004.04.20.18.24.21; author rse; state Exp; branches; next 1.46; 1.46 date 2004.04.15.06.55.22; author rse; state Exp; branches; next 1.45; 1.45 date 2004.02.07.17.55.30; author rse; state Exp; branches; next 1.44; 1.44 date 2004.02.03.20.02.13; author rse; state Exp; branches; next 1.43; 1.43 date 2004.01.24.19.38.53; author rse; state Exp; branches; next 1.42; 1.42 date 2004.01.23.13.09.36; author rse; state Exp; branches; next 1.41; 1.41 date 2004.01.21.13.01.54; author rse; state Exp; branches; next 1.40; 1.40 date 2003.11.30.18.46.40; author rse; state Exp; branches; next 1.39; 1.39 date 2003.11.25.10.08.58; author thl; state Exp; branches; next 1.38; 1.38 date 2003.11.24.23.24.24; author thl; state Exp; branches; next 1.37; 1.37 date 2003.10.09.18.23.19; author ms; state Exp; branches; next 1.36; 1.36 date 2003.10.07.14.46.06; author ms; state Exp; branches; next 1.35; 1.35 date 2003.10.07.14.20.37; author ms; state Exp; branches; next 1.34; 1.34 date 2003.10.06.09.48.04; author ms; state Exp; branches; next 1.33; 1.33 date 2003.09.26.15.01.06; author ms; state Exp; branches; next 1.32; 1.32 date 2003.09.25.21.41.44; author ms; state Exp; branches; next 1.31; 1.31 date 2003.09.24.22.37.23; author ms; state Exp; branches; next 1.30; 1.30 date 2003.07.31.17.47.00; author ms; state Exp; branches; next 1.29; 1.29 date 2003.07.22.18.00.13; author rse; state Exp; branches; next 1.28; 1.28 date 2003.07.22.08.10.47; author rse; state Exp; branches; next 1.27; 1.27 date 2003.07.21.08.12.33; author thl; state Exp; branches; next 1.26; 1.26 date 2003.07.19.17.05.57; author rse; state Exp; branches; next 1.25; 1.25 date 2003.07.17.15.32.43; author thl; state Exp; branches; next 1.24; 1.24 date 2003.07.15.10.01.22; author thl; state Exp; branches; next 1.23; 1.23 date 2003.07.14.14.25.57; author thl; state Exp; branches; next 1.22; 1.22 date 2003.07.10.07.50.29; author rse; state Exp; branches; next 1.21; 1.21 date 2003.07.08.14.40.00; author rse; state Exp; branches; next 1.20; 1.20 date 2003.07.08.09.20.37; author rse; state Exp; branches; next 1.19; 1.19 date 2003.07.07.13.52.27; author rse; state Exp; branches; next 1.18; 1.18 date 2003.07.07.10.55.12; author mlelstv; state Exp; branches; next 1.17; 1.17 date 2003.06.28.13.58.26; author rse; state Exp; branches; next 1.16; 1.16 date 2003.06.26.13.18.31; author mlelstv; state Exp; branches; next 1.15; 1.15 date 2003.06.26.12.57.20; author mlelstv; state Exp; branches; next 1.14; 1.14 date 2003.06.26.09.39.49; author thl; state Exp; branches; next 1.13; 1.13 date 2003.06.24.16.04.30; author mlelstv; state Exp; branches; next 1.12; 1.12 date 2003.06.24.13.26.45; author thl; state Exp; branches; next 1.11; 1.11 date 2003.06.23.20.47.45; author thl; state Exp; branches; next 1.10; 1.10 date 2003.05.05.07.10.37; author rse; state Exp; branches; next 1.9; 1.9 date 2003.04.05.19.21.36; author rse; state Exp; branches; next 1.8; 1.8 date 2003.03.27.14.08.00; author ps; state Exp; branches; next 1.7; 1.7 date 2003.02.22.10.34.18; author rse; state Exp; branches; next 1.6; 1.6 date 2003.02.21.11.48.07; author rse; state Exp; branches; next 1.5; 1.5 date 2003.02.21.10.44.42; author ps; state Exp; branches; next 1.4; 1.4 date 2003.02.20.14.50.42; author ps; state Exp; branches; next 1.3; 1.3 date 2003.02.18.16.38.11; author rse; state Exp; branches; next 1.2; 1.2 date 2003.02.18.15.32.56; author rse; state Exp; branches; next 1.1; 1.1 date 2003.02.18.14.52.05; author ps; state Exp; branches; next ; 1.64.2.1 date 2006.10.13.17.28.47; author rse; state dead; branches; next 1.64.2.2; commitid iZxwRSmmWscPXUQr; 1.64.2.2 date 2006.10.16.14.51.01; author rse; state Exp; branches; next ; commitid iZxwRSmmWscPXUQr; desc @@ 1.71 log @bump years in copyright messages @ text @## ## honeyd.spec -- OpenPKG RPM Package Specification ## Copyright (c) 2000-2009 OpenPKG Foundation e.V. ## ## 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 version %define V_honeyd 1.5b %define V_libdnsres 0.1a # package information Name: honeyd Summary: Creates a Virtual Host on Network URL: http://www.honeyd.org/ Vendor: Niels Provos Packager: OpenPKG Foundation e.V. Distribution: OpenPKG Community Class: EVAL Group: Security License: BSD Version: %{V_honeyd} Release: 20080101 # package options %option with_fsl yes %option with_gui no # list of sources Source0: http://www.citi.umich.edu/u/provos/honeyd/honeyd-%{V_honeyd}.tar.gz Source1: http://www.citi.umich.edu/u/provos/honeyd/contrib/mael/ftp.sh Source2: http://www.citi.umich.edu/u/provos/honeyd/contrib/mael/pop3.sh Source3: http://www.citi.umich.edu/u/provos/honeyd/contrib/mael/smtp.sh Source4: http://www.citi.umich.edu/u/provos/papers/honeyd-eabstract.pdf Source5: http://www.citi.umich.edu/u/provos/papers/honeyd-eabstract.ps Source6: http://www.citi.umich.edu/u/provos/honeyd/ch01-results/1/honeydGUI.tar.gz Source7: honey Source8: svcs.sh Source9: rc.honeyd Source10: fsl.honeyd Source11: honeyd.conf Source12: cdefs.h Source13: setenv.h Source14: setenv.c Source15: vasprintf.c Source16: vasprintf.h Source17: http://www.monkey.org/~provos/libdnsres-%{V_libdnsres}.tar.gz Patch0: honeyd.patch # build information Prefix: %{l_prefix} BuildRoot: %{l_buildroot} BuildPreReq: OpenPKG, openpkg >= 20060823, make PreReq: OpenPKG, openpkg >= 20060823 BuildPreReq: libdnet, libpcap, libevent, libedit, zlib, pcre PreReq: libdnet, libpcap, libevent, libedit, zlib, pcre %if "%{with_fsl}" == "yes" BuildPreReq: fsl PreReq: fsl %endif %if "%{with_gui}" == "yes" PreReq: java, JAVA-JDK %endif 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. The package arpd will most certainly be useful as well, although it is not a technical requirement for this package. %track prog honeyd:honeyd = { version = %{V_honeyd} url = http://www.citi.umich.edu/u/provos/honeyd/ regex = honeyd-(__VER__)\.tar\.gz } prog honeyd:libdnsres = { version = %{V_libdnsres} url = http://www.monkey.org/~provos/libdnsres/ regex = libdnsres-(__VER__)\.tar\.gz } %prep %setup -q %setup -q -D -T -a 17 %patch -p0 %{l_shtool} subst \ -e 's;AF_LOCAL;AF_UNIX;' \ *.c %{l_shtool} subst \ -e 's;^\(honeyd_SOURCES *=[^\\]*\);\1 setenv.c vasprintf.c;' \ -e 's;^\(honeyd_OBJECTS *=[^\\]*\);\1 setenv.o vasprintf.o ;' \ Makefile.in cp -f %{SOURCE setenv.c} . cp -f %{SOURCE setenv.h} . cp -f %{SOURCE vasprintf.c} . cp -f %{SOURCE vasprintf.h} . cp -f %{SOURCE cdefs.h} . %{l_shtool} subst \ -e 's;/var/run/honeyd.pid;%{l_prefix}/var/honeyd/honeyd.pid;' \ honeyd.h %{l_shtool} subst \ -e 's/\(user_target=no\)/\1; pic_mode=no;/' \ -e 's;test "*$\(hardcode_into_libs\)"* *\([!=]*\) *"*\([a-zA-Z_][a-zA-Z_]*\)"*;test ".$\1" \2 ".$\3";g' \ -e 's;test "*$\(build_libtool_need_lc\)"* *\([!=]*\) *"*\([a-zA-Z_][a-zA-Z_]*\)"*;test ".$\1" \2 ".$\3";g' \ ltmain.sh case "%{l_platform -t}" in *-sunos* ) %{l_shtool} subst \ -e 's;-levent;-levent -lsocket -lnsl;g' \ configure %{l_shtool} subst \ -e 's;\(\$(honeydctl_LDADD)\);\1 -lsocket -lnsl;g' \ Makefile.in ;; esac %build ( cd libdnsres-%{V_libdnsres} CC="%{l_cc}" \ CFLAGS="%{l_cflags -O}" \ CPPFLAGS="%{l_cppflags}" \ ./configure \ --with-libevent=%{l_prefix} \ --disable-shared %{l_make} %{l_mflags} ln .libs/libdnsres.a . ) || exit $? CC="%{l_cc}" \ CFLAGS="%{l_cflags -O}" \ CPPFLAGS="%{l_cppflags} -DREPLACE_GETOPT" \ LDFLAGS="%{l_fsl_ldflags}" \ LIBS="%{l_fsl_libs}" \ ./configure \ --prefix=%{l_prefix} \ --with-libevent=%{l_prefix} \ --with-libdnet=%{l_prefix} \ --with-libdnsres=`pwd`/libdnsres-%{V_libdnsres} \ --with-libpcre=%{l_prefix} \ --without-python %{l_make} %{l_mflags} %install rm -rf $RPM_BUILD_ROOT # create directories %{l_shtool} mkdir -f -p -m 755 \ $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \ $RPM_BUILD_ROOT%{l_prefix}/etc/honeyd \ $RPM_BUILD_ROOT%{l_prefix}/lib/honeyd \ $RPM_BUILD_ROOT%{l_prefix}/var/honeyd \ $RPM_BUILD_ROOT%{l_prefix}/share/honeyd \ $RPM_BUILD_ROOT%{l_prefix}/libexec/honeyd # install files %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT %{l_shtool} install -c -m 750 %{l_value -s -a} \ -e 's;^log=/\(.*/\)*\(.*\)-.*\.log;log=%{l_prefix}/var/honeyd/\2.log;g' \ -e 's;^\(host=\).*;\1`%{l_shtool} echo -e %h`;g' \ -e 's;^\(domain=\).*;\1`%{l_shtool} echo -e %d | cut -c2-`;g' \ -e 's; gawk ; awk ;g' \ %{SOURCE ftp.sh} \ %{SOURCE pop3.sh} \ %{SOURCE smtp.sh} \ %{SOURCE svcs.sh} \ $RPM_BUILD_ROOT%{l_prefix}/libexec/honeyd/ %{l_shtool} install -c -m 644 %{l_value -s -a} \ %{SOURCE honeyd.conf} \ $RPM_BUILD_ROOT%{l_prefix}/etc/honeyd/ %{l_shtool} install -c -m 755 %{l_value -s -a} \ %{SOURCE rc.honeyd} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/ %{l_shtool} install -c -m 644 \ %{SOURCE honeyd-eabstract.ps} \ $RPM_BUILD_ROOT%{l_prefix}/share/honeyd/honeyd.ps %{l_shtool} install -c -m 644 \ %{SOURCE honeyd-eabstract.pdf} \ $RPM_BUILD_ROOT%{l_prefix}/share/honeyd/honeyd.pdf # optionally install the Java GUI %if "%{with_gui}" == "yes" %{l_tar} zxf %{SOURCE honeydGUI.tar.gz} mv -f honeydGUI/exec $RPM_BUILD_ROOT%{l_prefix}/lib/honeyd/javagui %{l_shtool} install -c -m 755 %{l_value -s -a} \ %{SOURCE honey} \ $RPM_BUILD_ROOT%{l_prefix}/bin/ %endif # install OSSP fsl configuration %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/etc/fsl %{l_shtool} install -c -m 644 %{l_value -s -a} \ %{SOURCE fsl.honeyd} \ $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/ # remove unwanted files rm -rf $RPM_BUILD_ROOT%{l_prefix}/include rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib/honeyd rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/honeyd/README rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/honeyd/config.sample # determine file list %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ %{l_files_std} \ '%config %attr(0750,%{l_susr},%{l_mgrp}) %{l_prefix}/var/honeyd' \ '%config %{l_prefix}/etc/fsl/fsl.honeyd' \ '%config %attr(0750,%{l_musr},%{l_mgrp}) %{l_prefix}/etc/honeyd/honeyd.conf' %files -f files %clean rm -rf $RPM_BUILD_ROOT %pre # before upgrade, save status and stop service [ $1 -eq 2 ] || exit 0 eval `%{l_rc} honeyd status 2>/dev/null | tee %{l_tmpfile}` %{l_rc} honeyd stop 2>/dev/null exit 0 %post if [ $1 -eq 1 ]; then # display final hints on initial installation ( echo "Before starting Honey daemon, please set the configuration variable" echo "\"honeyd_if\" in $RPM_INSTALL_PREFIX/etc/rc.conf to the name of the" echo "used network interface." ) | %{l_rpmtool} msg -b -t notice fi if [ $1 -eq 2 ]; then # after upgrade, restore status eval `cat %{l_tmpfile}`; rm -f %{l_tmpfile} [ ".$honeyd_active" = .yes ] && %{l_rc} honeyd start fi exit 0 %preun # before erase, stop service and remove log files [ $1 -eq 0 ] || exit 0 %{l_rc} honeyd stop 2>/dev/null rm -f $RPM_INSTALL_PREFIX/var/honeyd/*.log* >/dev/null 2>&1 || true exit 0 @ 1.70 log @Update package specifications according to OpenPKG year 2008 world order: http://www.mail-archive.com/openpkg-announce@@openpkg.org/msg00221.html @ text @d3 1 a3 1 ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. @ 1.69 log @Drop version information of OSSP fsl dependency since it doesn't make to much sense in an CURRENT-only world. Additionally, in several cases it has been choosen quite at will without being correct. @ text @d3 1 a3 2 ## Copyright (c) 2000-2007 OpenPKG Foundation e.V. ## Copyright (c) 2000-2007 Ralf S. Engelschall d39 1 a39 1 Release: 20071027 @ 1.68 log @use new virtual target JAVA-JDK to require a real JDK as the backend for 'java' @ text @d40 1 a40 1 Release: 20070827 d75 2 a76 2 BuildPreReq: fsl >= 1.2.0 PreReq: fsl >= 1.2.0 @ 1.67 log @switch to new Java toolkit world order @ text @d79 1 a79 1 PreReq: java, java-jdk15 @ 1.66 log @remove "%not %dir" construct, allowing proper directory ownership tracking and removal when erasing last provider @ text @d40 1 a40 1 Release: 20070720 d79 1 a79 1 PreReq: JRE @ 1.65 log @Welcome Year 2007! @ text @d40 1 a40 1 Release: 20061013 a228 1 '%not %dir %{l_prefix}/etc/fsl' \ @ 1.64 log @new world order for "Packager" and "Distribution" headers @ text @d3 2 a4 2 ## Copyright (c) 2000-2006 OpenPKG Foundation e.V. ## Copyright (c) 2000-2006 Ralf S. Engelschall @ 1.64.2.1 log @file honeyd.spec was added on branch OPENPKG_2_STABLE on 2006-10-16 14:51:01 +0000 @ text @d1 267 @ 1.64.2.2 log @Mass merge from CURRENT to 2-STABLE (all packages except those of JUNK class) @ text @a0 267 ## ## honeyd.spec -- OpenPKG RPM Package Specification ## Copyright (c) 2000-2006 OpenPKG Foundation e.V. ## Copyright (c) 2000-2006 Ralf S. Engelschall ## ## 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 version %define V_honeyd 1.5b %define V_libdnsres 0.1a # package information Name: honeyd Summary: Creates a Virtual Host on Network URL: http://www.honeyd.org/ Vendor: Niels Provos Packager: OpenPKG Foundation e.V. Distribution: OpenPKG Community Class: EVAL Group: Security License: BSD Version: %{V_honeyd} Release: 2.20061018 # package options %option with_fsl yes %option with_gui no # list of sources Source0: http://www.citi.umich.edu/u/provos/honeyd/honeyd-%{V_honeyd}.tar.gz Source1: http://www.citi.umich.edu/u/provos/honeyd/contrib/mael/ftp.sh Source2: http://www.citi.umich.edu/u/provos/honeyd/contrib/mael/pop3.sh Source3: http://www.citi.umich.edu/u/provos/honeyd/contrib/mael/smtp.sh Source4: http://www.citi.umich.edu/u/provos/papers/honeyd-eabstract.pdf Source5: http://www.citi.umich.edu/u/provos/papers/honeyd-eabstract.ps Source6: http://www.citi.umich.edu/u/provos/honeyd/ch01-results/1/honeydGUI.tar.gz Source7: honey Source8: svcs.sh Source9: rc.honeyd Source10: fsl.honeyd Source11: honeyd.conf Source12: cdefs.h Source13: setenv.h Source14: setenv.c Source15: vasprintf.c Source16: vasprintf.h Source17: http://www.monkey.org/~provos/libdnsres-%{V_libdnsres}.tar.gz Patch0: honeyd.patch # build information Prefix: %{l_prefix} BuildRoot: %{l_buildroot} BuildPreReq: OpenPKG, openpkg >= 2.20061018, make PreReq: OpenPKG, openpkg >= 2.20061018 BuildPreReq: libdnet, libpcap, libevent, libedit, zlib, pcre PreReq: libdnet, libpcap, libevent, libedit, zlib, pcre %if "%{with_fsl}" == "yes" BuildPreReq: fsl >= 1.2.0 PreReq: fsl >= 1.2.0 %endif %if "%{with_gui}" == "yes" PreReq: JRE %endif 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. The package arpd will most certainly be useful as well, although it is not a technical requirement for this package. %track prog honeyd:honeyd = { version = %{V_honeyd} url = http://www.citi.umich.edu/u/provos/honeyd/ regex = honeyd-(__VER__)\.tar\.gz } prog honeyd:libdnsres = { version = %{V_libdnsres} url = http://www.monkey.org/~provos/libdnsres/ regex = libdnsres-(__VER__)\.tar\.gz } %prep %setup -q %setup -q -D -T -a 17 %patch -p0 %{l_shtool} subst \ -e 's;AF_LOCAL;AF_UNIX;' \ *.c %{l_shtool} subst \ -e 's;^\(honeyd_SOURCES *=[^\\]*\);\1 setenv.c vasprintf.c;' \ -e 's;^\(honeyd_OBJECTS *=[^\\]*\);\1 setenv.o vasprintf.o ;' \ Makefile.in cp -f %{SOURCE setenv.c} . cp -f %{SOURCE setenv.h} . cp -f %{SOURCE vasprintf.c} . cp -f %{SOURCE vasprintf.h} . cp -f %{SOURCE cdefs.h} . %{l_shtool} subst \ -e 's;/var/run/honeyd.pid;%{l_prefix}/var/honeyd/honeyd.pid;' \ honeyd.h %{l_shtool} subst \ -e 's/\(user_target=no\)/\1; pic_mode=no;/' \ -e 's;test "*$\(hardcode_into_libs\)"* *\([!=]*\) *"*\([a-zA-Z_][a-zA-Z_]*\)"*;test ".$\1" \2 ".$\3";g' \ -e 's;test "*$\(build_libtool_need_lc\)"* *\([!=]*\) *"*\([a-zA-Z_][a-zA-Z_]*\)"*;test ".$\1" \2 ".$\3";g' \ ltmain.sh case "%{l_platform -t}" in *-sunos* ) %{l_shtool} subst \ -e 's;-levent;-levent -lsocket -lnsl;g' \ configure %{l_shtool} subst \ -e 's;\(\$(honeydctl_LDADD)\);\1 -lsocket -lnsl;g' \ Makefile.in ;; esac %build ( cd libdnsres-%{V_libdnsres} CC="%{l_cc}" \ CFLAGS="%{l_cflags -O}" \ CPPFLAGS="%{l_cppflags}" \ ./configure \ --with-libevent=%{l_prefix} \ --disable-shared %{l_make} %{l_mflags} ln .libs/libdnsres.a . ) || exit $? CC="%{l_cc}" \ CFLAGS="%{l_cflags -O}" \ CPPFLAGS="%{l_cppflags} -DREPLACE_GETOPT" \ LDFLAGS="%{l_fsl_ldflags}" \ LIBS="%{l_fsl_libs}" \ ./configure \ --prefix=%{l_prefix} \ --with-libevent=%{l_prefix} \ --with-libdnet=%{l_prefix} \ --with-libdnsres=`pwd`/libdnsres-%{V_libdnsres} \ --with-libpcre=%{l_prefix} \ --without-python %{l_make} %{l_mflags} %install rm -rf $RPM_BUILD_ROOT # create directories %{l_shtool} mkdir -f -p -m 755 \ $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \ $RPM_BUILD_ROOT%{l_prefix}/etc/honeyd \ $RPM_BUILD_ROOT%{l_prefix}/lib/honeyd \ $RPM_BUILD_ROOT%{l_prefix}/var/honeyd \ $RPM_BUILD_ROOT%{l_prefix}/share/honeyd \ $RPM_BUILD_ROOT%{l_prefix}/libexec/honeyd # install files %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT %{l_shtool} install -c -m 750 %{l_value -s -a} \ -e 's;^log=/\(.*/\)*\(.*\)-.*\.log;log=%{l_prefix}/var/honeyd/\2.log;g' \ -e 's;^\(host=\).*;\1`%{l_shtool} echo -e %h`;g' \ -e 's;^\(domain=\).*;\1`%{l_shtool} echo -e %d | cut -c2-`;g' \ -e 's; gawk ; awk ;g' \ %{SOURCE ftp.sh} \ %{SOURCE pop3.sh} \ %{SOURCE smtp.sh} \ %{SOURCE svcs.sh} \ $RPM_BUILD_ROOT%{l_prefix}/libexec/honeyd/ %{l_shtool} install -c -m 644 %{l_value -s -a} \ %{SOURCE honeyd.conf} \ $RPM_BUILD_ROOT%{l_prefix}/etc/honeyd/ %{l_shtool} install -c -m 755 %{l_value -s -a} \ %{SOURCE rc.honeyd} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/ %{l_shtool} install -c -m 644 \ %{SOURCE honeyd-eabstract.ps} \ $RPM_BUILD_ROOT%{l_prefix}/share/honeyd/honeyd.ps %{l_shtool} install -c -m 644 \ %{SOURCE honeyd-eabstract.pdf} \ $RPM_BUILD_ROOT%{l_prefix}/share/honeyd/honeyd.pdf # optionally install the Java GUI %if "%{with_gui}" == "yes" %{l_tar} zxf %{SOURCE honeydGUI.tar.gz} mv -f honeydGUI/exec $RPM_BUILD_ROOT%{l_prefix}/lib/honeyd/javagui %{l_shtool} install -c -m 755 %{l_value -s -a} \ %{SOURCE honey} \ $RPM_BUILD_ROOT%{l_prefix}/bin/ %endif # install OSSP fsl configuration %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/etc/fsl %{l_shtool} install -c -m 644 %{l_value -s -a} \ %{SOURCE fsl.honeyd} \ $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/ # remove unwanted files rm -rf $RPM_BUILD_ROOT%{l_prefix}/include rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib/honeyd rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/honeyd/README rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/honeyd/config.sample # determine file list %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ %{l_files_std} \ '%not %dir %{l_prefix}/etc/fsl' \ '%config %attr(0750,%{l_susr},%{l_mgrp}) %{l_prefix}/var/honeyd' \ '%config %{l_prefix}/etc/fsl/fsl.honeyd' \ '%config %attr(0750,%{l_musr},%{l_mgrp}) %{l_prefix}/etc/honeyd/honeyd.conf' %files -f files %clean rm -rf $RPM_BUILD_ROOT %pre # before upgrade, save status and stop service [ $1 -eq 2 ] || exit 0 eval `%{l_rc} honeyd status 2>/dev/null | tee %{l_tmpfile}` %{l_rc} honeyd stop 2>/dev/null exit 0 %post if [ $1 -eq 1 ]; then # display final hints on initial installation ( echo "Before starting Honey daemon, please set the configuration variable" echo "\"honeyd_if\" in $RPM_INSTALL_PREFIX/etc/rc.conf to the name of the" echo "used network interface." ) | %{l_rpmtool} msg -b -t notice fi if [ $1 -eq 2 ]; then # after upgrade, restore status eval `cat %{l_tmpfile}`; rm -f %{l_tmpfile} [ ".$honeyd_active" = .yes ] && %{l_rc} honeyd start fi exit 0 %preun # before erase, stop service and remove log files [ $1 -eq 0 ] || exit 0 %{l_rc} honeyd stop 2>/dev/null rm -f $RPM_INSTALL_PREFIX/var/honeyd/*.log* >/dev/null 2>&1 || true exit 0 @ 1.63 log @fix setenv function by using a copy of a newer version @ text @d34 2 a35 2 Packager: OpenPKG Distribution: OpenPKG d40 1 a40 1 Release: 20061006 @ 1.62 log @replace '@@l_prefix@@/lib/openpkg/bash @@l_prefix@@/etc/rc' in shebang with '@@l_prefix@@/bin/openpkg rc' to allow people who run the rc.xxx scripts directly (as executables) to leverage from the Set-UID functionality @ text @d40 1 a40 1 Release: 20060825 @ 1.61 log @upgrade to latest version and cleanup packaging @ text @d40 1 a40 1 Release: 20060824 d70 2 a71 2 BuildPreReq: OpenPKG, openpkg >= 20040130, make PreReq: OpenPKG, openpkg >= 20040130 @ 1.60 log @fix tracking @ text @d26 1 a26 1 %define V_honeyd 1.5a d40 1 a40 1 Release: 20060316 @ 1.59 log @upgrading package: honeyd 1.0 -> 1.5a @ text @d40 1 a40 1 Release: 20060310 d106 1 a106 1 regex = libdnres-(__VER__)\.tar\.gz @ 1.58 log @adjust copyrights for new year 2006 @ text @d25 4 d39 2 a40 2 Version: 1.0 Release: 20050729 d47 1 a47 1 Source0: http://niels.xtdnet.nl/honeyd/honeyd-%{version}.tar.gz d64 1 d70 4 a73 2 BuildPreReq: OpenPKG, openpkg >= 20040130, libdnet, libpcap, libevent, libedit, make PreReq: OpenPKG, openpkg >= 20040130, libdnet, libpcap, libevent, libedit d98 2 a99 2 prog honeyd = { version = %{version} d103 5 d111 1 d145 10 d161 6 a166 3 --disable-shared \ --without-python \ --prefix=%{l_prefix} d222 1 @ 1.57 log @consistently name interface variables xxx_if and display a hint on initial installation that those packages need this variable to be set before it can be started (although usually all OpenPKG daemon packages can be started without any configurations) @ text @d3 2 a4 2 ## Copyright (c) 2000-2005 OpenPKG Foundation e.V. ## Copyright (c) 2000-2005 Ralf S. Engelschall @ 1.56 log @Adjust the copyright declaration in this (RSE's) copy of the OpenPKG source code now that the fork point for C&W was established (CVS tag OPENPKG_CW_FP), the shared copyright agreement between RSE and C&W is no longer active (as C&W no longer officially sponsors OpenPKG) and the new shared copyright from RSE can be taken over by the newly established juristic entity OpenPKG Foundation e.V. (instead of the non-juristic entity OpenPKG Project). @ text @d36 1 a36 1 Release: 20050107 d220 7 @ 1.55 log @patch again to work on platforms without cdefs, include vasprintf(3) sources from libiberty project for building on several platforms missing it, and correct build configuration for honeydctl target on Solaris @ text @d2 3 a4 4 ## honeyd.spec -- OpenPKG RPM Specification ## Copyright (c) 2000-2005 The OpenPKG Project ## Copyright (c) 2000-2005 Ralf S. Engelschall ## Copyright (c) 2000-2005 Cable & Wireless d30 1 a30 1 Packager: The OpenPKG Project @ 1.54 log @upgrading package: honeyd 0.8b -> 1.0 @ text @d37 1 a37 1 Release: 20050106 d59 2 d105 2 a106 2 -e 's;^\(honeyd_SOURCES *=[^\\]*\);\1 setenv.c ;' \ -e 's;^\(honeyd_OBJECTS *=[^\\]*\);\1 setenv.o ;' \ d110 2 d121 10 @ 1.53 log @Happy New Year 2005 @ text @d36 2 a37 2 Version: 0.8b Release: 20041015 @ 1.52 log @corrected homepage URL, although still strangely blocking directory listings for SOURCE @ text @d3 3 a5 3 ## Copyright (c) 2000-2004 The OpenPKG Project ## Copyright (c) 2000-2004 Ralf S. Engelschall ## Copyright (c) 2000-2004 Cable & Wireless @ 1.51 log @remove lonely logfile rotation comment in rc files @ text @d29 1 a29 1 URL: http://www.citi.umich.edu/u/provos/honeyd/ d37 1 a37 1 Release: 20040920 @ 1.50 log @in rc.*:%daily, restart daemons per default in shtool epilog should a logfile rotation be performed @ text @d37 1 a37 1 Release: 20040706 @ 1.49 log @remove redundant overwrite test in setenv, and really overwrite if instructed @ text @d37 1 a37 1 Release: 20040630 @ 1.48 log @repair an embarassing vendor Makefile with a hack, and handle a nonoverwrite condition in our own setenv(3) code @ text @d37 1 a37 1 Release: 20040625 @ 1.47 log @upgrading package: honeyd 0.8a -> 0.8b @ text @d37 1 a37 1 Release: 20040420 d125 1 @ 1.46 log @upgrading package: honeyd 0.8 -> 0.8a @ text @d36 2 a37 2 Version: 0.8a Release: 20040415 @ 1.45 log @Mass Commit: reduce redundancy within .spec files by referencing macros defining vendor source versions whenever possible. This was half-way automated and half-way manually edited. As a result the PMOD activity in 95% of all cases just means editing the version in one single place, only. @ text @d36 2 a37 2 Version: 0.8 Release: 20040207 d64 2 a65 2 BuildPreReq: OpenPKG, openpkg >= 20040130, libdnet, libpcap, libevent, make PreReq: OpenPKG, openpkg >= 20040130, libdnet, libpcap, libevent @ 1.44 log @Mass-Commit: - split "Distribution" header into "Distribution" (old) and "Class" (new) headers by moving the attached class information. - embed the vendor version tracking configuration through the new "%track" section. - bump up the OpenPKG bootstrap dependency, because the "Class" header and "%track" section are only supported by our latest bootstrap version. @ text @d37 1 a37 1 Release: 20040203 d91 1 a91 1 version = 0.8 @ 1.43 log @requires GNU make for correct installation @ text @d32 2 a33 1 Distribution: OpenPKG [EVAL] d37 1 a37 1 Release: 20040124 d64 2 a65 2 BuildPreReq: OpenPKG, openpkg >= 20030718, libdnet, libpcap, libevent, make PreReq: OpenPKG, openpkg >= 20030718, libdnet, libpcap, libevent d88 7 @ 1.42 log @bump year in copyright messages to cover new year 2004. This is a CVS only commit -- no packages were rolled intentionally @ text @d36 1 a36 1 Release: 20040121 d63 1 a63 1 BuildPreReq: OpenPKG, openpkg >= 20030718, libdnet, libpcap, libevent @ 1.41 log @upgrading package: honeyd 0.7a -> 0.8 @ text @d3 3 a5 3 ## Copyright (c) 2000-2003 The OpenPKG Project ## Copyright (c) 2000-2003 Ralf S. Engelschall ## Copyright (c) 2000-2003 Cable & Wireless @ 1.40 log @upgrading package: honeyd 0.7 -> 0.7a @ text @d35 2 a36 2 Version: 0.7a Release: 20031130 @ 1.39 log @tweak libtool; Solaris ok @ text @d35 2 a36 2 Version: 0.7 Release: 20031125 @ 1.38 log @flush pending work; FreeBSD, Linux ok; Solaris broken @ text @d104 5 @ 1.37 log @Fix permissions on fsl file @ text @d35 2 a36 2 Version: 0.6a Release: 20031009 d90 8 a97 1 %patch -p1 d112 2 a113 4 --prefix=%{l_prefix} \ --with-libdnet=%{l_prefix} \ --with-libpcap=%{l_prefix} \ --with-libevent=%{l_prefix} @ 1.36 log @Fix cut and copy mistake @ text @d36 1 a36 1 Release: 20031007 d172 1 a172 1 '%config %attr(0750,%{l_musr},%{l_mgrp}) %{l_prefix}/etc/fsl/fsl.honeyd' \ @ 1.35 log @Reduce access to valuable logfile, since daemon is running as superuser anyways @ text @d171 1 a171 1 '%config %attr(0750,%{l_susr},%{l_mgrp}) %{l_prefix}/var/honeyd' @ 1.34 log @Remove redundant patch code @ text @d36 1 a36 1 Release: 20031006 d171 1 @ 1.33 log @Whoops missed a AF_LOCAL so fix it, and also clean up our custom cdefs header @ text @d36 1 a36 1 Release: 20030926 @ 1.32 log @Fix broken configure script, reorganize patch, remove redundant AF_LOCAL substitution, add with_gui option, write honey launch script, add postscript documentation, correct FSL linkage, minimize installation logic, add FTP, POP3, and SMTP service decoys, add Linux, AIX, and Windows host definitions, add missing uids and gids to host definitions, remove log files, use 192.168.1/24 as the default network, improve run command start logic, correct log file rotation, correct setenv(3) replacement method, and reorder dependencies @ text @d36 1 a36 1 Release: 20030925 @ 1.31 log @I give up, sometimes arpd+honeyd works and sometimes not, but finish this package off anyways, adding features from ticket #202, a big patch job for portable builds, and a better default configuration @ text @d36 1 a36 1 Release: 20030924 d40 1 d44 14 a57 7 Source1: rc.honeyd Source2: honeyd.conf Source3: honeyd.service Source4: fsl.honeyd Source5: cdefs.h Source6: setenv.h Source7: setenv.c d63 2 a64 4 BuildPreReq: OpenPKG, openpkg >= 20030718 PreReq: OpenPKG, openpkg >= 20030718 BuildPreReq: libdnet, libpcap, libevent PreReq: libdnet, libpcap, libevent d69 3 a93 6 %{l_shtool} subst -e \ 's;AF_LOCAL;AF_UNIX;g' \ command.c \ honeyd_overload.c %build d97 2 d102 2 a108 3 %{l_shtool} subst \ -e "s;^\\(honeyd_LDADD.*\\)$;\\1 %{l_fsl_ldflags} %{l_fsl_libs};" \ Makefile d113 2 d116 1 a117 3 $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \ $RPM_BUILD_ROOT%{l_prefix}/sbin \ $RPM_BUILD_ROOT%{l_prefix}/man/man8 \ d119 1 a119 1 $RPM_BUILD_ROOT%{l_prefix}/libexec/honeyd \ d121 1 a121 1 $RPM_BUILD_ROOT%{l_prefix}/var/honeyd d124 11 a134 6 %{l_shtool} install -c -s -m 755 \ 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 \ honeyd.8 $RPM_BUILD_ROOT%{l_prefix}/man/man8/ d138 2 d141 10 a150 2 nmap.assoc nmap.prints xprobe2.conf \ $RPM_BUILD_ROOT%{l_prefix}/share/honeyd/ d152 3 a154 4 %{SOURCE honeyd.service} \ $RPM_BUILD_ROOT%{l_prefix}/libexec/honeyd/ %{l_shtool} install -c -m 755 %{l_value -s -a} \ %{SOURCE rc.honeyd} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/ d162 6 d171 2 a172 3 '%config %{l_prefix}/etc/fsl/fsl.honeyd' \ '%config %{l_prefix}/etc/honeyd/honeyd.conf' \ '%config %{l_prefix}/libexec/honeyd/honeyd.service' d198 1 @ 1.30 log @RT#220, correct group names @ text @a25 2 # FIXME: mlelstv: JUNK because not building on Solaris/Linux2.2 d32 1 a32 1 Distribution: OpenPKG [JUNK] d34 1 a34 1 License: BSD License d36 1 a36 1 Release: 20030731 d47 3 d75 3 a77 1 also possible to proxy it to another machine. d81 8 a88 1 %patch -p0 d95 2 a96 1 CFLAGS="%{l_cflags -O}" d147 3 a149 1 '%config %{l_prefix}/etc/fsl/fsl.honeyd' d155 21 @ 1.29 log @upgrading package: honeyd 0.6 -> 0.6a @ text @d35 1 a35 1 Group: Language d38 1 a38 1 Release: 20030722 @ 1.28 log @cleanup the priority: move 200 to 500 and because 500 is default just ommit it; fix DNS/NTP/etc. dependencies @ text @d37 1 a37 1 Version: 0.6 @ 1.27 log @PR#210: shtool options space before argument @ text @d38 1 a38 1 Release: 20030721 @ 1.26 log @replace opXXXX with rcXXXX (PR#207) @ text @d38 1 a38 1 Release: 20030719 @ 1.25 log @fix PR#204, use new %{l_value -s ...} @ text @d38 1 a38 1 Release: 20030717 d54 2 a55 2 BuildPreReq: OpenPKG, openpkg >= 20030717 PreReq: OpenPKG, openpkg >= 20030717 @ 1.24 log @fsllint police: fix ident/default @ text @d38 1 a38 1 Release: 20030715 d54 2 a55 2 BuildPreReq: OpenPKG, openpkg >= 20030710 PreReq: OpenPKG, openpkg >= 20030710 d115 1 a115 2 %{l_shtool} install -c -m 644 \ -e 's;@@l_prefix@@;%{l_prefix};g' \ d121 1 a121 2 %{l_shtool} install -c -m 755 \ -e 's;@@l_prefix@@;%{l_prefix};g' \ d124 1 a124 5 %{l_shtool} install -c -m 755 \ -e 's;@@l_prefix@@;%{l_prefix};g' \ -e 's;@@l_susr@@;%{l_susr};g' \ -e 's;@@l_rusr@@;%{l_rusr};g' \ -e 's;@@l_rgrp@@;%{l_rgrp};g' \ d129 1 a129 2 %{l_shtool} install -c -m 644 \ -e 's;@@l_prefix@@;%{l_prefix};g' \ @ 1.23 log @fix PR#182 append option for l2_channel_file now default and deprecated in fsl >= 1.2.0 @ text @d38 1 a38 1 Release: 20030714 @ 1.22 log @use new openpkg_rc_def variable in run-command scripts for allowing the admin to change the global default for xxx_enable @ text @d38 1 a38 1 Release: 20030710 d59 2 a60 2 BuildPreReq: fsl PreReq: fsl @ 1.21 log @cleanup copyright part by using just the main company name of Cable & Wireless and adding the URL to the global website @ text @d38 1 a38 1 Release: 20030708 d54 2 a55 2 BuildPreReq: OpenPKG, openpkg >= 20030415 PreReq: OpenPKG, openpkg >= 20030415 @ 1.20 log @various style cleanups and adjustments @ text @a2 1 ## Copyright (c) 2000-2003 Cable & Wireless Deutschland GmbH d5 1 @ 1.19 log @remove now officially deprecated usage of %{name} macro @ text @d26 1 a26 1 # FIXME mlelstv: JUNK because not building on Solaris/Linux2.2 d38 1 a38 1 Release: 20030707 d133 1 a133 1 # OSSP fake syslog library @ 1.18 log @add libraries to PreReq @ text @d137 1 a137 1 %{SOURCE fsl.%{name}} \ d143 1 a143 1 '%config %{l_prefix}/etc/fsl/fsl.%{name}' @ 1.17 log @fix introduced logfile path @ text @d38 1 a38 1 Release: 20030628 d54 1 a54 1 BuildPreReq: OpenPKG, openpkg >= 20030415, libdnet, libpcap, libevent d56 2 @ 1.16 log @downgrade to JUNK, doesn't build on Linux2.2 and Solaris @ text @d38 1 a38 1 Release: 20030626 @ 1.15 log @add missing Source declarations @ text @d26 2 d34 1 a34 1 Distribution: OpenPKG [EVAL] @ 1.14 log @upgrading package: honeyd 0.5a -> 0.6 @ text @d45 2 @ 1.13 log @fix rc script @ text @d35 2 a36 2 Version: 0.5a Release: 20030624 @ 1.12 log @add/unify log file trimming @ text @d123 2 @ 1.11 log @make fsl optional with default yes, as promised for the next release @ text @d36 1 a36 1 Release: 20030623 @ 1.10 log @upgrading package: honeyd 0.5 -> 0.5a @ text @d36 4 a39 1 Release: 20030505 d50 6 a55 2 BuildPreReq: OpenPKG, openpkg >= 20030211, fsl, libdnet, libpcap, libevent PreReq: OpenPKG, openpkg >= 20030211, fsl d86 1 a86 1 -e "s;^\\(honeyd_LDADD.*\\)$;\\1 `%{l_prefix}/bin/fsl-config --all --ldflags --libs`;" \ a94 1 $RPM_BUILD_ROOT%{l_prefix}/etc/fsl \ d124 3 d129 7 a135 2 %{SOURCE fsl.honeyd} $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} @ 1.9 log @speclint police @ text @d35 2 a36 2 Version: 0.5 Release: 20030405 d39 1 a39 1 Source0: http://www.citi.umich.edu/u/provos/honeyd/honeyd-%{version}.tar.gz a42 1 Patch1: http://www.citi.umich.edu/u/provos/honeyd/patches/%{version}/001-ipfrag.patch d65 1 a65 2 %patch0 -p0 %patch1 -p0 @ 1.8 log @Removed unessary \ @ text @d36 1 a36 1 Release: 20030222 d83 1 a83 1 %{l_make} %{l_mflags} @ 1.7 log @if a vendor patch is available for easy download, then use it this way instead of merging into own .patch file. Else we forget this and think it was our own patch and perhaps forward it to the author for inclusion into his code. This would be awkward. @ text @d83 1 a83 1 %{l_make} %{l_mflags} \ @ 1.6 log @- add OSSP fsl support to get rid of syslog'ing - replace silly shipped scripts/* with another silly honeyd.service but at least this way do not package crap code - fix PID file writing - cleanup installation procedure - install libhoneyd.so @ text @d36 1 a36 1 Release: 20030221 d43 1 d66 2 a67 1 %patch -p0 @ 1.5 log @Appending an updated version of honey package @ text @a25 2 # FIXME: honeyd do not write a pid file d47 2 a48 2 BuildPreReq: OpenPKG, openpkg >= 20030211, libdnet, libpcap, libevent PreReq: OpenPKG, openpkg >= 20030211 d68 3 d72 1 a72 1 CFLAGS="%{l_cflags -O}" \ d77 5 a81 3 --with-libevent=%{l_prefix} \ --includedir=%{l_prefix} %{l_make} %{l_mflags -O} a84 2 # create filesystem hierachy d88 1 d91 3 a93 2 $RPM_BUILD_ROOT%{l_prefix}/share/honeyd/scripts \ $RPM_BUILD_ROOT%{l_prefix}/share/honeyd/base \ d98 3 a100 1 honeyd $RPM_BUILD_ROOT%{l_prefix}/sbin a102 1 d104 3 a106 8 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 d108 2 a109 8 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 %{l_shtool} install -c -m 644 \ scripts/web.sh $RPM_BUILD_ROOT%{l_prefix}/share/honeyd/scripts d112 2 a113 2 %{SOURCE honeyd.conf} $RPM_BUILD_ROOT%{l_prefix}/etc/honeyd/ d117 4 a120 2 %{SOURCE rc.honeyd} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/ @ 1.4 log @Appending standard configuration file and rc file. Removing sudo usage. @ text @d26 1 a26 1 # FIXME: Test routing d34 1 a34 1 Distribution: OpenPKG [JUNK] d38 1 a38 1 Release: 20030220 d89 3 a91 1 $RPM_BUILD_ROOT%{l_prefix}/share/honeyd/scripts d118 1 @ 1.3 log @switch to JUNK @ text @d26 1 a26 2 # FIXME: replace sudo stuff # FIXME: provide default config d38 1 a38 1 Release: 20030218 d42 2 d50 1 a50 1 PreReq: OpenPKG, openpkg >= 20030211, sudo d73 1 a73 1 --prefix=$RPM_BUILD_ROOT%{l_prefix} \ a81 1 %{l_make} %{l_mflags} install d86 4 a89 7 $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 d92 2 a93 2 %{l_shtool} install -c -m 755 \ honeyd $RPM_BUILD_ROOT%{l_prefix}/libexec/honeyd d96 26 @ 1.2 log @Hmmm.... - fix class in Distribution - fix indentation of %description - remove trailing whitespaces - use just %patch if we use just %setup - fix indentation of comments - remove extra blank lines - remove extra backslash at shtool mkdir command - break up too long lines - fix typo in comment The package IMHO is still fully broken, because a reasonable default config is missing and the sudo-stuff should be replaced by a clean rc.honeyd which just uses the "-u " feature. @ text @d26 3 d35 1 a35 1 Distribution: OpenPKG [EVAL] @ 1.1 log @Append honeyd to the correct directory @ text @d28 1 a28 1 Summary: Creates a Virtual Host on Network d32 1 a32 1 Distribution: OpenPKG [] d39 1 a39 1 Source0: http://www.citi.umich.edu/u/provos/honeyd/honeyd-%{version}.tar.gz d51 9 a59 8 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. d63 1 a63 1 %patch0 -p0 d68 6 a73 6 ./configure --prefix=$RPM_BUILD_ROOT%{l_prefix} \ --with-libdnet=%{l_prefix} \ --with-libpcap=%{l_prefix} \ --with-libevent=%{l_prefix} \ --includedir=%{l_prefix} d80 1 a80 1 # create filesystem hiearchy d82 2 a83 2 $RPM_BUILD_ROOT%{l_prefix}/etc/honeyd \ $RPM_BUILD_ROOT%{l_prefix}/libexec/honeyd \ d85 1 a85 1 # install wrapper d91 5 a95 4 # 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 d102 1 a102 1 rm -rf $RPM_BUILD_ROOT @