|
|
@@ -23,8 +23,7 @@
|
|
|
## SUCH DAMAGE.
|
|
|
##
|
|
|
|
|
|
-# FIXME: replace sudo stuff
|
|
|
-# FIXME: provide default config
|
|
|
+# FIXME: Test routing
|
|
|
|
|
|
# package information
|
|
|
Name: honeyd
|
|
|
@@ -36,17 +35,19 @@ Distribution: OpenPKG [JUNK]
|
|
|
Group: Language
|
|
|
License: BSD License
|
|
|
Version: 0.5
|
|
|
-Release: 20030218
|
|
|
+Release: 20030220
|
|
|
|
|
|
# list of sources
|
|
|
Source0: http://www.citi.umich.edu/u/provos/honeyd/honeyd-%{version}.tar.gz
|
|
|
+Source1: rc.honeyd
|
|
|
+Source2: honeyd.conf
|
|
|
Patch0: honeyd.patch
|
|
|
|
|
|
# build information
|
|
|
Prefix: %{l_prefix}
|
|
|
BuildRoot: %{l_buildroot}
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20030211, libdnet, libpcap, libevent
|
|
|
-PreReq: OpenPKG, openpkg >= 20030211, sudo
|
|
|
+PreReq: OpenPKG, openpkg >= 20030211
|
|
|
AutoReq: no
|
|
|
AutoReqProv: no
|
|
|
|
|
|
@@ -69,7 +70,7 @@ AutoReqProv: no
|
|
|
CC="%{l_cc}" \
|
|
|
CFLAGS="%{l_cflags -O}" \
|
|
|
./configure \
|
|
|
- --prefix=$RPM_BUILD_ROOT%{l_prefix} \
|
|
|
+ --prefix=%{l_prefix} \
|
|
|
--with-libdnet=%{l_prefix} \
|
|
|
--with-libpcap=%{l_prefix} \
|
|
|
--with-libevent=%{l_prefix} \
|
|
|
@@ -78,25 +79,47 @@ AutoReqProv: no
|
|
|
|
|
|
%install
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
- %{l_make} %{l_mflags} install
|
|
|
|
|
|
# create filesystem hierachy
|
|
|
%{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
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/sbin \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/man/man8 \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/share/honeyd/scripts
|
|
|
|
|
|
# install files
|
|
|
- %{l_shtool} install -c -m 755 \
|
|
|
- honeyd $RPM_BUILD_ROOT%{l_prefix}/libexec/honeyd
|
|
|
+ %{l_shtool} install -c -s -m 755 \
|
|
|
+ honeyd $RPM_BUILD_ROOT%{l_prefix}/sbin
|
|
|
%{l_shtool} install -c -m 644 \
|
|
|
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 \
|
|
|
+ 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
|
|
|
+
|
|
|
+ %{l_shtool} install -c -m 755 \
|
|
|
+ %{SOURCE honeyd.conf} $RPM_BUILD_ROOT%{l_prefix}/etc/honeyd/
|
|
|
+
|
|
|
+ %{l_shtool} install -c -m 755 \
|
|
|
+ -e 's;@l_prefix@;%{l_prefix};g' \
|
|
|
+ -e 's;@l_susr@;%{l_susr};g' \
|
|
|
+ %{SOURCE rc.honeyd} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
|
|
|
+
|
|
|
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
|
|
|
|
|
|
%files -f files
|