components/nmap/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Mon, 17 Apr 2017 14:03:00 -0700
changeset 7880 1f24742e69e0
parent 7829 2de4f4ace09c
permissions -rw-r--r--
25727237 Update nmap to version 7.40
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
146
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     1
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     3
#
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     7
#
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    12
#
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    18
#
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    20
#
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    21
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    22
#
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 6953
diff changeset
    23
# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
146
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    24
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5125
diff changeset
    25
BUILD_BITS= 64
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    26
# Can't use the Studio compilers as they don't support the GNU 
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    27
# __attribute__ extension
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5125
diff changeset
    28
COMPILER= gcc
146
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    29
include ../../make-rules/shared-macros.mk
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    30
605
8dca74ad1a27 7113185 upgrade nmap to 5.51
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents: 206
diff changeset
    31
COMPONENT_NAME=         nmap
7880
1f24742e69e0 25727237 Update nmap to version 7.40
Rich Burridge <rich.burridge@oracle.com>
parents: 7829
diff changeset
    32
COMPONENT_VERSION=      7.40
1091
ce8b381f34b6 PSARC 2012/376 nmap 6.25
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    33
COMPONENT_PROJECT_URL=	http://nmap.org/
605
8dca74ad1a27 7113185 upgrade nmap to 5.51
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents: 206
diff changeset
    34
COMPONENT_ARCHIVE=      $(COMPONENT_SRC).tgz
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 609
diff changeset
    35
COMPONENT_ARCHIVE_HASH= \
7880
1f24742e69e0 25727237 Update nmap to version 7.40
Rich Burridge <rich.burridge@oracle.com>
parents: 7829
diff changeset
    36
    sha256:ac35f64e820071efa768c34c96ed741b7278bbfce9fed776cd3200ca2d904a65
1091
ce8b381f34b6 PSARC 2012/376 nmap 6.25
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    37
COMPONENT_ARCHIVE_URL=  $(COMPONENT_PROJECT_URL)dist/$(COMPONENT_ARCHIVE)
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 6953
diff changeset
    38
COMPONENT_ANITYA_ID=	2096
146
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    39
7880
1f24742e69e0 25727237 Update nmap to version 7.40
Rich Burridge <rich.burridge@oracle.com>
parents: 7829
diff changeset
    40
TPNO=			34280
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1724
diff changeset
    41
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5125
diff changeset
    42
TEST_TARGET= $(NO_TESTS)
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5125
diff changeset
    43
include $(WS_MAKE_RULES)/common.mk
146
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    44
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    45
COMPONENT_PRE_CONFIGURE_ACTION = \
1091
ce8b381f34b6 PSARC 2012/376 nmap 6.25
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    46
	($(CLONEY) $(SOURCE_DIR) $(@D))
146
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    47
3915
bf1315c4d52e 20657446 migrate nmap from Python 2.6 to 2.7
John Beck <John.Beck@Oracle.COM>
parents: 3817
diff changeset
    48
PKG_MACROS +=		PYVER=$(PYTHON_VERSION)
bf1315c4d52e 20657446 migrate nmap from Python 2.6 to 2.7
John Beck <John.Beck@Oracle.COM>
parents: 3817
diff changeset
    49
7829
2de4f4ace09c 25766761 prepare Userland for 11.4
John Beck <John.Beck@Oracle.COM>
parents: 7687
diff changeset
    50
CONFIGURE_OPTIONS  +=   LIBS="$(LIBSOCKET) $(LIBNSL)"
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5125
diff changeset
    51
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5125
diff changeset
    52
# Fix 64-bit linking via compiler.
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5125
diff changeset
    53
LDFLAGS += $(CC_BITS)
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5125
diff changeset
    54
3915
bf1315c4d52e 20657446 migrate nmap from Python 2.6 to 2.7
John Beck <John.Beck@Oracle.COM>
parents: 3817
diff changeset
    55
CONFIGURE_OPTIONS  +=   PYTHON="$(PYTHON.$(PYTHON_VERSION))"
1724
c2416ec0de64 18277000 Migrate GD2 to 64-bit
XINGSZHA <erich.zhang@oracle.com>
parents: 1678
diff changeset
    56
CONFIGURE_OPTIONS  +=   --srcdir=$(BUILD_DIR_64)
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5125
diff changeset
    57
CONFIGURE_OPTIONS  +=   --localstatedir=$(VARDIR)
146
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    58
CONFIGURE_OPTIONS  +=   --without-localdirs 
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    59
CONFIGURE_OPTIONS  +=   --with-zenmap 
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    60
CONFIGURE_OPTIONS  +=   --with-openssl
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    61
CONFIGURE_OPTIONS  +=   --with-libpcap
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    62
CONFIGURE_OPTIONS  +=   --with-libpcre
1091
ce8b381f34b6 PSARC 2012/376 nmap 6.25
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    63
CONFIGURE_OPTIONS  +=   --with-liblua 
146
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    64
CONFIGURE_OPTIONS  +=   --with-ncat 
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    65
CONFIGURE_OPTIONS  +=   --with-ndiff
1091
ce8b381f34b6 PSARC 2012/376 nmap 6.25
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    66
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    67
REQUIRED_PACKAGES += library/pcre
3915
bf1315c4d52e 20657446 migrate nmap from Python 2.6 to 2.7
John Beck <John.Beck@Oracle.COM>
parents: 3817
diff changeset
    68
REQUIRED_PACKAGES += library/python/pygobject-27
bf1315c4d52e 20657446 migrate nmap from Python 2.6 to 2.7
John Beck <John.Beck@Oracle.COM>
parents: 3817
diff changeset
    69
REQUIRED_PACKAGES += library/python/pygtk2-27
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    70
REQUIRED_PACKAGES += library/security/openssl
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    71
REQUIRED_PACKAGES += runtime/lua
3915
bf1315c4d52e 20657446 migrate nmap from Python 2.6 to 2.7
John Beck <John.Beck@Oracle.COM>
parents: 3817
diff changeset
    72
REQUIRED_PACKAGES += runtime/python-27
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    73
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    74
REQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    75
REQUIRED_PACKAGES += system/library/libpcap
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    76
REQUIRED_PACKAGES += system/library/math
6953
04ea750165c9 19892555 nmap and libpcap are missing the bpf dependency
Rich Burridge <rich.burridge@oracle.com>
parents: 5791
diff changeset
    77
REQUIRED_PACKAGES += system/network/bpf