Magellan Linux

Contents of /branches/magellan-next/extras/nmap/nmap-5.00-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8811 - (show annotations) (download)
Mon Aug 1 08:18:10 2011 UTC (12 years, 9 months ago) by niro
File size: 1951 byte(s)
Imported
1 # $Id$
2
3 PNAME="nmap"
4 PVER="5.00"
5 PBUILD="r3"
6
7 SPLIT_PACKAGES="nmap nmap-gui"
8
9 PCATEGORIE="net-misc"
10 STATE="unstable"
11
12 # DESCRIPTION="A very good portscanner and security audit tool."
13 HOMEPAGE="http://www.insecure.org/nmap/"
14
15 SDEPEND=">= virtual/glibc
16 >= dev-libs/libpcre-7
17 >= dev-libs/openssl-0.9.8
18 >= x11-libs/gtk2+-2.18
19 >= dev-lang/python-2.6
20 >= dev-python/pygtk-2.16
21 >= dev-db/sqlite-3.6
22 >= dev-python/pysqlite-2.5"
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-7
42 >= dev-libs/openssl-0.9.8"
43 }
44
45 split_info_nmap-gui()
46 {
47 DESCRIPTION="The GTK2+ gui called zenmap for nmap."
48 HOMEPAGE="http://www.insecure.org/nmap/"
49
50 DEPEND="== net-misc/nmap-${PVER}
51 >= x11-libs/gtk2+-2.18
52 >= dev-lang/python-2.6
53 >= dev-python/pygtk-2.16
54 >= dev-db/sqlite-3.6
55 >= dev-python/pysqlite-2.5"
56 }
57
58 src_compile()
59 {
60 cd ${SRCDIR}
61
62 mconfigure --with-zenmap --with-openssl || die
63 mmake || die
64 }
65
66 src_install_nmap()
67 {
68 cd ${SRCDIR}
69
70 mmake DESTDIR=${BINDIR} nmapdatadir=/usr/share/nmap install || die
71 # remove zenmap from package
72 mmake DESTDIR=${BINDIR} nmapdatadir=/usr/share/nmap uninstall-zenmap || die
73
74 minstalldocs CHANGELOG COPYING* HACKING docs/README docs/*.txt || die
75 }
76
77 src_install_nmap-gui()
78 {
79 cd ${SRCDIR}
80
81 mmake DESTDIR=${BINDIR} nmapdatadir=/usr/share/nmap install-zenmap || die
82 minstalldocs zenmap/{COPYING*,README} || die
83
84 # remove uninstall script, we got a package-management to handle this ;)
85 if [[ -e ${BINDIR}/usr/bin/uninstall_zenmap ]]
86 then
87 rm ${BINDIR}/usr/bin/uninstall_zenmap || die
88 fi
89 }

Properties

Name Value
svn:keywords Id