blob: 9b71874eedd7859b26c45ba5f6cd8a38157bd6dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
#Copyright 2000 Achim Gottinger
#Distributed under the GPL
# It's better to split it in four different packages
P=nessus-1.0.4
A="nessus-libraries-1.0.4.tar.gz nessus-core-1.0.4.tar.gz
nessus-plugins-1.0.4.tar.gz libnasl-1.0.4.tar.gz libnasl-patch-1"
S=${WORKDIR}
CATEGORY="net-analyzer"
DESCRIPTION="Nessus"
SRC_URI="ftp://ftp.nessus.org/pub/nessus/nessus-1.0.4/src/nessus-libraries-1.0.4.tar.gz
ftp://ftp.nessus.org/pub/nessus/nessus-1.0.4/src/nessus-core-1.0.4.tar.gz
ftp://ftp.nessus.org/pub/nessus/nessus-1.0.4/src/nessus-plugins-1.0.4.tar.gz
ftp://ftp.nessus.org/pub/nessus/nessus-1.0.4/src/libnasl-1.0.4.tar.gz
ftp://ftp.nessus.org/pub/nessus/nessus-1.0.4/src/libnasl-patch-1"
HOMEPAGE="http://www.nessus.org/"
src_unpack () {
unpack nessus-libraries-1.0.4.tar.gz
unpack nessus-core-1.0.4.tar.gz
unpack nessus-plugins-1.0.4.tar.gz
unpack libnasl-1.0.4.tar.gz
cd ${S}/libnasl/nasl
patch -p0 < ${DISTDIR}/libnasl-patch-1
}
src_compile() {
export PATH=${D}/usr/bin:$PATH
export LD_LIBRARY_PATH=${D}/usr/lib:$LD_LIBRARY_PATH
echo "Compiling libraries..."
cd ${S}/nessus-libraries
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/state
make
make prefix=${D}/usr sysconfdir=${D}/etc localstatedir=${D}/var/state install
cd ${D}/usr/bin
cp nessus-config nessus-config.orig
sed -e "s:^PREFIX=:PREFIX=${D}:" \
-e "s:-I/usr:-I${D}/usr: " nessus-config.orig > nessus-config
echo "Compiling libnasl..."
cd ${S}/libnasl
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/state
make
make prefix=${D}/usr sysconfdir=${D}/etc localstatedir=${D}/var/state install
cd ${D}/usr/bin
cp nasl-config nasl-config.orig
sed -e "s:^PREFIX=:PREFIX=${D}:" nasl-config.orig > nasl-config
echo "Compiling core..."
cd ${S}/nessus-core
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/state
make
make prefix=${D}/usr sysconfdir=${D}/etc localstatedir=${D}/var/state install
echo "Compiling plugins..."
cd ${S}/nessus-plugins
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/state
make
make prefix=${D}/usr sysconfdir=${D}/etc localstatedir=${D}/var/state install
}
src_install() {
cd ${S}/nessus-libraries
make prefix=${D}/usr sysconfdir=${D}/etc localstatedir=${D}/var/state install
cd ${S}/libnasl
make prefix=${D}/usr sysconfdir=${D}/etc localstatedir=${D}/var/state install
cd ${S}/nessus-core
make prefix=${D}/usr sysconfdir=${D}/etc localstatedir=${D}/var/state install
cp ${ROOT}/config/nessusd.conf ${D}/etc/nessus/
cd ${S}/nessus-plugins
make prefix=${D}/usr sysconfdir=${D}/etc localstatedir=${D}/var/state install
cd ${S}/nessus-libraries
docinto nessus-libraries
dodoc README*
cd ${S}/libnasl
docinto libnasl
dodoc COPYING TODO
cd ${S}/nessus-core
docinto nessus-core
dodoc README* UPGRADE_README CHANGES
dodoc doc/*.txt doc/ntp/*
cd ${S}/nessus-plugins
docinto nessus-plugins
dodoc docs/*.txt plugins/accounts/accounts.txt
}
|