OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src openpkg-web openpkg$ Date: 09-Jun-2003 15:56:48
Branch: HEAD Handle: 2003060914564502
Modified files:
openpkg-re/vcheck vc.nessus-libs
openpkg-src/nessus-libs nessus-libs.spec
openpkg-web news.txt
Log:
bump up with libnasl
Summary:
Revision Changes Path
1.6 +8 -1 openpkg-re/vcheck/vc.nessus-libs
1.9 +55 -6 openpkg-src/nessus-libs/nessus-libs.spec
1.4777 +1 -0 openpkg-web/news.txt
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-re/vcheck/vc.nessus-libs
============================================================================
$ cvs diff -u -r1.5 -r1.6 vc.nessus-libs
--- openpkg-re/vcheck/vc.nessus-libs 23 May 2003 06:59:46 -0000 1.5
+++ openpkg-re/vcheck/vc.nessus-libs 9 Jun 2003 13:56:45 -0000 1.6
@@ -1,7 +1,14 @@
config = {
}
-prog nessus-libs = {
+prog nessus-libs:libnasl = {
+ version = 2.0.6a
+ url = ftp://ftp.nessus.org/pub/nessus/
+ regex = (nessus-\d+\.\d+\.\d+)
+ url = ftp://ftp.nessus.org/pub/nessus/__NEWVER__/src/
+ regex = libnasl-(__VER__)\.tar\.gz
+}
+prog nessus-libs:nessus-libraries = {
version = 2.0.6a
url = ftp://ftp.nessus.org/pub/nessus/
regex = (nessus-\d+\.\d+\.\d+)
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/nessus-libs/nessus-libs.spec
============================================================================
$ cvs diff -u -r1.8 -r1.9 nessus-libs.spec
--- openpkg-src/nessus-libs/nessus-libs.spec 23 May 2003 06:59:51 -0000 1.8
+++ openpkg-src/nessus-libs/nessus-libs.spec 9 Jun 2003 13:56:47 -0000 1.9
@@ -33,41 +33,90 @@
Group: Security
License: GPL
Version: 2.0.6a
-Release: 20030523
+Release: 20030609
# list of sources
Source0:
ftp://ftp.nessus.org/pub/nessus/nessus-%{version}/src/nessus-libraries-%{version}.tar.gz
+Source1:
ftp://ftp.nessus.org/pub/nessus/nessus-%{version}/src/libnasl-%{version}.tar.gz
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
-BuildPreReq: OpenPKG, openpkg >= 20030103, gcc
-PreReq: OpenPKG, openpkg >= 20030103
+BuildPreReq: OpenPKG, openpkg >= 20030103, libpcap, openssl, gcc, bison
+PreReq: OpenPKG, openpkg >= 20030103, libpcap, openssl
AutoReq: no
AutoReqProv: no
%description
This is the Library package of the Nessus Security Scanner, a
security scanner which will audit remotely a given network and
- determine whether attackers may break into it, or misuse it in some way.
+ determine whether attackers may break into it, or misuse it in some
+ way.
%prep
- %setup -q -n nessus-libraries
+ %setup0 -q -c
+ %setup1 -q -T -D -a 1
%build
+ # build nessus-libraries part
+ pushd nessus-libraries
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}"
+ CPPFLAGS="%{l_cppflags}"
+ LDFLAGS="%{l_ldflags}"
./configure \
--prefix=%{l_prefix} \
- --enable-nessuspcap \
+ --with-ssl=%{l_prefix} \
+ --disable-nessuspcap \
+ --enable-bpf-sharing \
--disable-cipher \
--disable-shared \
--enable-static
%{l_make} %{l_mflags -O}
+ popd
+
+ # temporarily install nessus-libraries for libnasl building
+ pushd nessus-libraries
+ nessus_libs=`pwd`
+ %{l_make} %{l_mflags -O} \
+ install DESTDIR=${nessus_libs}/tmp
+ %{l_shtool} subst \
+ -e "s;^\\(PREFIX=\\)\\(.*\\);\\1${nessus_libs}/tmp\\2;" \
+ ${nessus_libs}/tmp%{l_prefix}/bin/nessus-config
+ popd
+
+ # build libnasl part
+ pushd libnasl
+ PATH="${nessus_libs}/tmp%{l_prefix}/bin:$PATH"
+ CC="%{l_cc}" \
+ CFLAGS="%{l_cflags -O}"
+ CPPFLAGS="%{l_cppflags}"
+ LDFLAGS="%{l_ldflags}"
+ ./configure \
+ --prefix=%{l_prefix} \
+ --disable-shared \
+ --enable-static
+ %{l_make} %{l_mflags -O}
+ popd
%install
+ rm -rf $RPM_BUILD_ROOT
+
+ # install nessus-libraries
+ pushd nessus-libraries
+ %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
+ popd
+
+ # install libnasl
+ pushd libnasl
%{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
+ popd
+
+ # strip down installation
rm -rf $RPM_BUILD_ROOT%{l_prefix}/sbin/uninstall-nessus
+ strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
+
+ # determine installation files
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files
@@ .
patch -p0 <<'@@ .'
Index: openpkg-web/news.txt
============================================================================
$ cvs diff -u -r1.4776 -r1.4777 news.txt
--- openpkg-web/news.txt 9 Jun 2003 13:07:38 -0000 1.4776
+++ openpkg-web/news.txt 9 Jun 2003 13:56:46 -0000 1.4777
@@ -1,3 +1,4 @@
+09-Jun-2003: Upgraded package: P<nessus-libs-2.0.6a-20030609>
09-Jun-2003: Upgraded package: P<dsniff-2.3-20030609>
09-Jun-2003: Upgraded package: P<libnids-1.17rc1-20030609>
09-Jun-2003: Upgraded package: P<imapd-2.1.13-20030609>
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]