author | Rich Burridge <rich.burridge@oracle.com> |
Wed, 21 Sep 2016 16:54:13 -0700 | |
changeset 6953 | 04ea750165c9 |
parent 5791 | 08bbb1f1f01f |
child 7687 | 1093e2a9adbd |
permissions | -rw-r--r-- |
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 |
# |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5125
diff
changeset
|
23 |
# Copyright (c) 2011, 2016, 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 |
5791
08bbb1f1f01f
22250614 Upgrade nmap to version 7
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
32 |
COMPONENT_VERSION= 7.11 |
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= \ |
5791
08bbb1f1f01f
22250614 Upgrade nmap to version 7
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
36 |
sha256:dfc95db3a8ee4c56650dbaa5a1a1e989b2963de8faea2531c21e6fd6e0bccc2a |
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) |
146
8e22ba234817
7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
38 |
|
5791
08bbb1f1f01f
22250614 Upgrade nmap to version 7
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
39 |
TPNO= 27577 |
1948
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1724
diff
changeset
|
40 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5125
diff
changeset
|
41 |
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
|
42 |
include $(WS_MAKE_RULES)/common.mk |
146
8e22ba234817
7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
43 |
|
8e22ba234817
7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
44 |
COMPONENT_PRE_CONFIGURE_ACTION = \ |
1091
ce8b381f34b6
PSARC 2012/376 nmap 6.25
Rich Burridge <rich.burridge@oracle.com>
parents:
1058
diff
changeset
|
45 |
($(CLONEY) $(SOURCE_DIR) $(@D)) |
146
8e22ba234817
7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
46 |
|
3915
bf1315c4d52e
20657446 migrate nmap from Python 2.6 to 2.7
John Beck <John.Beck@Oracle.COM>
parents:
3817
diff
changeset
|
47 |
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
|
48 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5125
diff
changeset
|
49 |
ifeq ($(OS_VERSION),5.11) |
146
8e22ba234817
7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
50 |
CONFIGURE_OPTIONS += LIBS="-lsocket -lnsl" |
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 |
endif |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5125
diff
changeset
|
52 |
|
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5125
diff
changeset
|
53 |
# 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
|
54 |
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
|
55 |
|
3915
bf1315c4d52e
20657446 migrate nmap from Python 2.6 to 2.7
John Beck <John.Beck@Oracle.COM>
parents:
3817
diff
changeset
|
56 |
CONFIGURE_OPTIONS += PYTHON="$(PYTHON.$(PYTHON_VERSION))" |
1724
c2416ec0de64
18277000 Migrate GD2 to 64-bit
XINGSZHA <erich.zhang@oracle.com>
parents:
1678
diff
changeset
|
57 |
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
|
58 |
CONFIGURE_OPTIONS += --localstatedir=$(VARDIR) |
146
8e22ba234817
7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
59 |
CONFIGURE_OPTIONS += --without-localdirs |
8e22ba234817
7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
60 |
CONFIGURE_OPTIONS += --with-zenmap |
8e22ba234817
7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
61 |
CONFIGURE_OPTIONS += --with-openssl |
8e22ba234817
7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
62 |
CONFIGURE_OPTIONS += --with-libpcap |
8e22ba234817
7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
63 |
CONFIGURE_OPTIONS += --with-libpcre |
1091
ce8b381f34b6
PSARC 2012/376 nmap 6.25
Rich Burridge <rich.burridge@oracle.com>
parents:
1058
diff
changeset
|
64 |
CONFIGURE_OPTIONS += --with-liblua |
146
8e22ba234817
7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
65 |
CONFIGURE_OPTIONS += --with-ncat |
8e22ba234817
7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
66 |
CONFIGURE_OPTIONS += --with-ndiff |
1091
ce8b381f34b6
PSARC 2012/376 nmap 6.25
Rich Burridge <rich.burridge@oracle.com>
parents:
1058
diff
changeset
|
67 |
|
ce8b381f34b6
PSARC 2012/376 nmap 6.25
Rich Burridge <rich.burridge@oracle.com>
parents:
1058
diff
changeset
|
68 |
# 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
|
69 |
# '#!/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
|
70 |
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
|
71 |
$(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
|
72 |
$(PROTOUSRBINDIR)/uninstall_zenmap |
146
8e22ba234817
7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
73 |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
74 |
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
|
75 |
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
|
76 |
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
|
77 |
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
|
78 |
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
|
79 |
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
|
80 |
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
|
81 |
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
|
82 |
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
|
83 |
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
|
84 |
REQUIRED_PACKAGES += system/network/bpf |