Magellan Linux

Contents of /branches/magellan-next/extras/nmap/nmap-5.51-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8816 - (show annotations) (download)
Mon Aug 1 08:52:17 2011 UTC (12 years, 9 months ago) by niro
File size: 1995 byte(s)
-use external libpcap
1 # $Id$
2
3 PNAME="nmap"
4 PVER="5.51"
5 PBUILD="r1"
6
7 SPLIT_PACKAGES="nmap nmap-gui"
8
9 PCATEGORIE="net-misc"
10
11 # DESCRIPTION="A very good portscanner and security audit tool."
12 HOMEPAGE="http://www.insecure.org/nmap/"
13
14 SDEPEND=">= virtual/glibc
15 >= dev-libs/libpcre-8.12
16 >= dev-libs/openssl-1.0.0
17 >= x11-libs/gtk2+-2.24
18 >= dev-lang/python-2.7
19 >= dev-python/pygtk-2.24
20 >= dev-db/sqlite-3.7
21 >= dev-python/pysqlite-2.6
22 >= net-libs/libpcap-1.1.1"
23
24 SRCFILE="${PNAME}-${PVER}.tar.bz2"
25 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
26
27 sminclude mbuild
28
29 SRC_URI=(
30 http://download.insecure.org/nmap/dist/${SRCFILE}
31 mirror://${PNAME}/${SRCFILE}
32 )
33
34 # exclude beta and rc versions
35 UP2DATE="updatecmd 'http://download.insecure.org/nmap/dist/?C=M;O=A' | grep ${PNAME}-[0-9] | grep -v '[RC|BETA]' | lasttarball"
36
37 split_info_nmap()
38 {
39 DESCRIPTION="A very good portscanner and security audit tool."
40 DEPEND=">= virtual/glibc
41 >= dev-libs/libpcre-8.12
42 >= dev-libs/openssl-1.0.0
43 >= net-libs/libpcap-1.1.1"
44 }
45
46 split_info_nmap-gui()
47 {
48 DESCRIPTION="The GTK2+ gui called zenmap for nmap."
49 HOMEPAGE="http://www.insecure.org/nmap/"
50
51 DEPEND="== net-misc/nmap-${PVER}
52 >= x11-libs/gtk2+-2.24
53 >= dev-lang/python-2.7
54 >= dev-python/pygtk-2.24
55 >= dev-db/sqlite-3.7
56 >= dev-python/pysqlite-2.6"
57 }
58
59 src_compile()
60 {
61 cd ${SRCDIR}
62
63 mconfigure --with-zenmap --with-openssl || die
64 mmake || die
65 }
66
67 src_install_nmap()
68 {
69 cd ${SRCDIR}
70
71 mmake DESTDIR=${BINDIR} nmapdatadir=/usr/share/nmap install || die
72 # remove zenmap from package
73 mmake DESTDIR=${BINDIR} nmapdatadir=/usr/share/nmap uninstall-zenmap || die
74
75 minstalldocs CHANGELOG COPYING* HACKING docs/README docs/*.txt || die
76 }
77
78 src_install_nmap-gui()
79 {
80 cd ${SRCDIR}
81
82 mmake DESTDIR=${BINDIR} nmapdatadir=/usr/share/nmap install-zenmap || die
83 minstalldocs zenmap/{COPYING*,README} || die
84
85 # remove uninstall script, we got a package-management to handle this ;)
86 if [[ -e ${BINDIR}/usr/bin/uninstall_zenmap ]]
87 then
88 rm ${BINDIR}/usr/bin/uninstall_zenmap || die
89 fi
90 }