components/nmap/Makefile
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Mon, 11 Mar 2013 10:38:09 -0700
branchs11-update
changeset 2520 ceec631e74d1
parent 2501 f20006f42637
child 2855 576d5a7857b7
permissions -rw-r--r--
Close of build 10.
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
#
2501
f20006f42637 15953796 Upgrade nmap to 6.25
Stefan Teleman <stefan.teleman@oracle.com>
parents: 2434
diff changeset
    23
# Copyright (c) 2011, 2013, 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
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    27
605
8dca74ad1a27 7113185 upgrade nmap to 5.51
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents: 206
diff changeset
    28
COMPONENT_NAME=         nmap
2501
f20006f42637 15953796 Upgrade nmap to 6.25
Stefan Teleman <stefan.teleman@oracle.com>
parents: 2434
diff changeset
    29
COMPONENT_VERSION=      6.25
f20006f42637 15953796 Upgrade nmap to 6.25
Stefan Teleman <stefan.teleman@oracle.com>
parents: 2434
diff changeset
    30
COMPONENT_PROJECT_URL=	http://nmap.org/
605
8dca74ad1a27 7113185 upgrade nmap to 5.51
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents: 206
diff changeset
    31
COMPONENT_SRC=          $(COMPONENT_NAME)-$(COMPONENT_VERSION)
8dca74ad1a27 7113185 upgrade nmap to 5.51
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents: 206
diff changeset
    32
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
    33
COMPONENT_ARCHIVE_HASH= \
2501
f20006f42637 15953796 Upgrade nmap to 6.25
Stefan Teleman <stefan.teleman@oracle.com>
parents: 2434
diff changeset
    34
    sha256:42c54fd5cc5f05e5df909757d62307102a8ff1dfaf5c2626b1cb5f2ecd009e57
f20006f42637 15953796 Upgrade nmap to 6.25
Stefan Teleman <stefan.teleman@oracle.com>
parents: 2434
diff changeset
    35
COMPONENT_ARCHIVE_URL=  $(COMPONENT_PROJECT_URL)dist/$(COMPONENT_ARCHIVE)
2434
6c9bb5cf5610 15930486 - Auto-generation of Userland gate list for the Solaris 11 Update Release
Rich Burridge <rich.burridge@oracle.com>
parents: 800
diff changeset
    36
COMPONENT_BUGDB=	utility/nmap
146
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    37
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    38
include ../../make-rules/prep.mk
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    39
include ../../make-rules/configure.mk
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    40
include ../../make-rules/ips.mk
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    41
2501
f20006f42637 15953796 Upgrade nmap to 6.25
Stefan Teleman <stefan.teleman@oracle.com>
parents: 2434
diff changeset
    42
# Can't use the Studio compilers as they don't support the GNU 
f20006f42637 15953796 Upgrade nmap to 6.25
Stefan Teleman <stefan.teleman@oracle.com>
parents: 2434
diff changeset
    43
# __attribute__ extension
146
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    44
COMPILER =	gcc
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    45
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    46
COMPONENT_PRE_CONFIGURE_ACTION = \
2501
f20006f42637 15953796 Upgrade nmap to 6.25
Stefan Teleman <stefan.teleman@oracle.com>
parents: 2434
diff changeset
    47
	($(CLONEY) $(SOURCE_DIR) $(@D))
146
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    48
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    49
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
    50
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
    51
CONFIGURE_OPTIONS  +=   CXXFLAGS="$(CXXFLAGS)"
146
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    52
CONFIGURE_OPTIONS  +=   CPPFLAGS="$(CPPFLAGS)"
2501
f20006f42637 15953796 Upgrade nmap to 6.25
Stefan Teleman <stefan.teleman@oracle.com>
parents: 2434
diff changeset
    53
CONFIGURE_OPTIONS  +=   LDFLAGS="$(LDFLAGS)"
146
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    54
CONFIGURE_OPTIONS  +=   LIBS="-lsocket -lnsl"
206
a4474882bf60 7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 181
diff changeset
    55
CONFIGURE_OPTIONS  +=   PYTHON="$(PYTHON)"
2501
f20006f42637 15953796 Upgrade nmap to 6.25
Stefan Teleman <stefan.teleman@oracle.com>
parents: 2434
diff changeset
    56
CONFIGURE_OPTIONS  +=   --srcdir=$(BUILD_DIR_32)
146
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    57
CONFIGURE_OPTIONS  +=   --localstatedir=/var 
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
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    63
CONFIGURE_OPTIONS  +=   --with-liblua 
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
2501
f20006f42637 15953796 Upgrade nmap to 6.25
Stefan Teleman <stefan.teleman@oracle.com>
parents: 2434
diff changeset
    66
f20006f42637 15953796 Upgrade nmap to 6.25
Stefan Teleman <stefan.teleman@oracle.com>
parents: 2434
diff changeset
    67
# pkgdepend doesn't like the first line of a Python script to be:
f20006f42637 15953796 Upgrade nmap to 6.25
Stefan Teleman <stefan.teleman@oracle.com>
parents: 2434
diff changeset
    68
# '#!/usr/bin/env python' so turn it into '#!/usr/bin/python2.6'
f20006f42637 15953796 Upgrade nmap to 6.25
Stefan Teleman <stefan.teleman@oracle.com>
parents: 2434
diff changeset
    69
COMPONENT_POST_INSTALL_ACTION += \
f20006f42637 15953796 Upgrade nmap to 6.25
Stefan Teleman <stefan.teleman@oracle.com>
parents: 2434
diff changeset
    70
        $(GSED) -i -e 's?env python?python2.6?' \
f20006f42637 15953796 Upgrade nmap to 6.25
Stefan Teleman <stefan.teleman@oracle.com>
parents: 2434
diff changeset
    71
                $(PROTOUSRBINDIR)/uninstall_zenmap
146
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    72
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    73
# common targets
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    74
build:		$(BUILD_32)
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    75
		
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    76
install:	$(INSTALL_32) 
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    77
181
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 151
diff changeset
    78
test:		$(NO_TESTS)
146
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    79
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    80
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    81
8e22ba234817 7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    82
include ../../make-rules/depend.mk