components/nmap/Makefile
author Shawn Emery <shawn.emery@oracle.com>
Fri, 25 Sep 2015 15:23:48 -0500
changeset 4906 51866e99eff7
parent 4339 6501cf9c29f9
child 4984 7145b15b7f0d
permissions -rw-r--r--
21839658 Enable the ldap backend for slapd
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
#
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    23
# Copyright (c) 2011, 2015, 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
#
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    25
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
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    28
COMPILER =	gcc
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    29
146
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    30
include ../../make-rules/shared-macros.mk
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    31
605
8dca74ad1a27 7113185 upgrade nmap to 5.51
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents: 206
diff changeset
    32
COMPONENT_NAME=         nmap
1091
ce8b381f34b6 PSARC 2012/376 nmap 6.25
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    33
COMPONENT_VERSION=      6.25
ce8b381f34b6 PSARC 2012/376 nmap 6.25
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    34
COMPONENT_PROJECT_URL=	http://nmap.org/
605
8dca74ad1a27 7113185 upgrade nmap to 5.51
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents: 206
diff changeset
    35
COMPONENT_SRC=          $(COMPONENT_NAME)-$(COMPONENT_VERSION)
8dca74ad1a27 7113185 upgrade nmap to 5.51
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents: 206
diff changeset
    36
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
    37
COMPONENT_ARCHIVE_HASH= \
1091
ce8b381f34b6 PSARC 2012/376 nmap 6.25
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    38
    sha256:42c54fd5cc5f05e5df909757d62307102a8ff1dfaf5c2626b1cb5f2ecd009e57
ce8b381f34b6 PSARC 2012/376 nmap 6.25
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    39
COMPONENT_ARCHIVE_URL=  $(COMPONENT_PROJECT_URL)dist/$(COMPONENT_ARCHIVE)
1058
34d7aaa03423 15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents: 1028
diff changeset
    40
COMPONENT_BUGDB=	utility/nmap
146
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    41
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1724
diff changeset
    42
TPNO=			9217
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1724
diff changeset
    43
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    44
include $(WS_MAKE_RULES)/prep.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    45
include $(WS_MAKE_RULES)/configure.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    46
include $(WS_MAKE_RULES)/ips.mk
146
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    47
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    48
COMPONENT_PRE_CONFIGURE_ACTION = \
1091
ce8b381f34b6 PSARC 2012/376 nmap 6.25
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    49
	($(CLONEY) $(SOURCE_DIR) $(@D))
146
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    50
3915
bf1315c4d52e 20657446 migrate nmap from Python 2.6 to 2.7
John Beck <John.Beck@Oracle.COM>
parents: 3817
diff changeset
    51
PYTHON_VERSION =	2.7
bf1315c4d52e 20657446 migrate nmap from Python 2.6 to 2.7
John Beck <John.Beck@Oracle.COM>
parents: 3817
diff changeset
    52
bf1315c4d52e 20657446 migrate nmap from Python 2.6 to 2.7
John Beck <John.Beck@Oracle.COM>
parents: 3817
diff changeset
    53
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
    54
146
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    55
CONFIGURE_OPTIONS  +=   CFLAGS="$(CFLAGS)"
206
a4474882bf60 7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 181
diff changeset
    56
CONFIGURE_OPTIONS  +=   CXX="$(CXX)"
a4474882bf60 7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 181
diff changeset
    57
CONFIGURE_OPTIONS  +=   CXXFLAGS="$(CXXFLAGS)"
146
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    58
CONFIGURE_OPTIONS  +=   CPPFLAGS="$(CPPFLAGS)"
1724
c2416ec0de64 18277000 Migrate GD2 to 64-bit
XINGSZHA <erich.zhang@oracle.com>
parents: 1678
diff changeset
    59
CONFIGURE_OPTIONS  +=   LDFLAGS="$(LDFLAGS) -m64"
146
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    60
CONFIGURE_OPTIONS  +=   LIBS="-lsocket -lnsl"
3915
bf1315c4d52e 20657446 migrate nmap from Python 2.6 to 2.7
John Beck <John.Beck@Oracle.COM>
parents: 3817
diff changeset
    61
CONFIGURE_OPTIONS  +=   PYTHON="$(PYTHON.$(PYTHON_VERSION))"
1724
c2416ec0de64 18277000 Migrate GD2 to 64-bit
XINGSZHA <erich.zhang@oracle.com>
parents: 1678
diff changeset
    62
CONFIGURE_OPTIONS  +=   --srcdir=$(BUILD_DIR_64)
146
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    63
CONFIGURE_OPTIONS  +=   --localstatedir=/var 
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    64
CONFIGURE_OPTIONS  +=   --without-localdirs 
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    65
CONFIGURE_OPTIONS  +=   --with-zenmap 
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    66
CONFIGURE_OPTIONS  +=   --with-openssl
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    67
CONFIGURE_OPTIONS  +=   --with-libpcap
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    68
CONFIGURE_OPTIONS  +=   --with-libpcre
1091
ce8b381f34b6 PSARC 2012/376 nmap 6.25
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    69
CONFIGURE_OPTIONS  +=   --with-liblua 
146
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    70
CONFIGURE_OPTIONS  +=   --with-ncat 
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    71
CONFIGURE_OPTIONS  +=   --with-ndiff
1091
ce8b381f34b6 PSARC 2012/376 nmap 6.25
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    72
ce8b381f34b6 PSARC 2012/376 nmap 6.25
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    73
# pkgdepend doesn't like the first line of a Python script to be:
3915
bf1315c4d52e 20657446 migrate nmap from Python 2.6 to 2.7
John Beck <John.Beck@Oracle.COM>
parents: 3817
diff changeset
    74
# '#!/usr/bin/env python' so turn it into '#!/usr/bin/python$(PYTHON_VERSION)'
1091
ce8b381f34b6 PSARC 2012/376 nmap 6.25
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    75
COMPONENT_POST_INSTALL_ACTION += \
3915
bf1315c4d52e 20657446 migrate nmap from Python 2.6 to 2.7
John Beck <John.Beck@Oracle.COM>
parents: 3817
diff changeset
    76
        $(GSED) -i -e "s?env python?python$(PYTHON_VERSION)?" \
1091
ce8b381f34b6 PSARC 2012/376 nmap 6.25
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    77
                $(PROTOUSRBINDIR)/uninstall_zenmap
146
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    78
1678
68d1cdc71760 18141171 gnupg, libidn, nmap, openexr, pinentry and rtorrent need ASLR enabled.
XINGSZHA <erich.zhang@oracle.com>
parents: 1645
diff changeset
    79
ASLR_MODE = $(ASLR_ENABLE)
68d1cdc71760 18141171 gnupg, libidn, nmap, openexr, pinentry and rtorrent need ASLR enabled.
XINGSZHA <erich.zhang@oracle.com>
parents: 1645
diff changeset
    80
146
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    81
# common targets
2225
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 1948
diff changeset
    82
configure:	$(CONFIGURE_64)
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 1948
diff changeset
    83
1724
c2416ec0de64 18277000 Migrate GD2 to 64-bit
XINGSZHA <erich.zhang@oracle.com>
parents: 1678
diff changeset
    84
build:		$(BUILD_64)
146
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    85
		
1724
c2416ec0de64 18277000 Migrate GD2 to 64-bit
XINGSZHA <erich.zhang@oracle.com>
parents: 1678
diff changeset
    86
install:	$(INSTALL_64) 
146
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    87
181
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 151
diff changeset
    88
test:		$(NO_TESTS)
146
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    89
4339
6501cf9c29f9 21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents: 3915
diff changeset
    90
system-test:    $(NO_TESTS)
6501cf9c29f9 21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents: 3915
diff changeset
    91
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    92
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
    93
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
    94
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
    95
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
    96
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
    97
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
    98
REQUIRED_PACKAGES += system/library
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    99
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
   100
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
   101
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
   102
REQUIRED_PACKAGES += system/library/math