Magellan Linux

Contents of /trunk/extras/nmap/nmap-6.40-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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