|
1 |
|
2 # CDDL HEADER START |
|
3 # |
|
4 # The contents of this file are subject to the terms of the |
|
5 # Common Development and Distribution License (the "License"). |
|
6 # You may not use this file except in compliance with the License. |
|
7 # |
|
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
9 # or http://www.opensolaris.org/os/licensing. |
|
10 # See the License for the specific language governing permissions |
|
11 # and limitations under the License. |
|
12 # |
|
13 # When distributing Covered Code, include this CDDL HEADER in each |
|
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
15 # If applicable, add the following below this CDDL HEADER, with the |
|
16 # fields enclosed by brackets "[]" replaced with your own identifying |
|
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
|
18 # |
|
19 # CDDL HEADER END |
|
20 # |
|
21 |
|
22 # |
|
23 # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
|
24 # |
|
25 |
|
26 include ../../make-rules/shared-macros.mk |
|
27 |
|
28 COMPONENT_NAME= nmap |
|
29 COMPONENT_VERSION= 5.21 |
|
30 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
31 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz |
|
32 COMPONENT_ARCHIVE_HASH= sha1:ce212ce765f842b16059456cf0c9d9cfbbce25d6 |
|
33 COMPONENT_ARCHIVE_URL= http://nmap.org/dist/$(COMPONENT_ARCHIVE) |
|
34 |
|
35 include ../../make-rules/prep.mk |
|
36 include ../../make-rules/configure.mk |
|
37 include ../../make-rules/ips.mk |
|
38 |
|
39 COMPILER = gcc |
|
40 |
|
41 COMPONENT_PRE_CONFIGURE_ACTION = \ |
|
42 ($(CLONEY) $(SOURCE_DIR) $(@D)) |
|
43 |
|
44 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
|
45 CONFIGURE_OPTIONS += CXX="$(CCC)" |
|
46 CONFIGURE_OPTIONS += CXXFLAGS="$(CCFLAGS)" |
|
47 CONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)" |
|
48 CONFIGURE_OPTIONS += LIBS="-lsocket -lnsl" |
|
49 CONFIGURE_OPTIONS += PYTHON="$(PYTHON.32)" |
|
50 CONFIGURE_OPTIONS += --disable-shared |
|
51 CONFIGURE_OPTIONS += --enable-static |
|
52 CONFIGURE_OPTIONS += --disable-libtool-lock |
|
53 CONFIGURE_OPTIONS += --localstatedir=/var |
|
54 CONFIGURE_OPTIONS += --without-localdirs |
|
55 CONFIGURE_OPTIONS += --with-zenmap |
|
56 CONFIGURE_OPTIONS += --with-openssl |
|
57 CONFIGURE_OPTIONS += --with-libpcap |
|
58 CONFIGURE_OPTIONS += --with-libpcre |
|
59 CONFIGURE_OPTIONS += --with-liblua |
|
60 CONFIGURE_OPTIONS += --with-ncat |
|
61 CONFIGURE_OPTIONS += --with-ndiff |
|
62 CONFIGURE_OPTIONS += am_cv_python_pythondir=$(PYTHON_LIB) |
|
63 |
|
64 PKG_PROTO_DIRS += $(SOURCE_DIR) |
|
65 PKG_PROTO_DIRS += $(COMPONENT_DIR) |
|
66 |
|
67 include ../../make-rules/shared-targets.mk |
|
68 |
|
69 # common targets |
|
70 build: $(BUILD_32) |
|
71 |
|
72 install: $(INSTALL_32) |
|
73 sed -f oracleman-stability $(COMPONENT_SRC)/docs/nmap.1 \ |
|
74 > $(PROTOUSRSHAREMAN1DIR)/nmap.1 |
|
75 sed -f oracleman-stability $(COMPONENT_SRC)/docs/zenmap.1 \ |
|
76 > $(PROTOUSRSHAREMAN1DIR)/zenmap.1 |
|
77 sed -f oracleman-stability $(COMPONENT_SRC)/ncat/docs/ncat.1 \ |
|
78 > $(PROTOUSRSHAREMAN1DIR)/ncat.1 |
|
79 sed -f oracleman-stability $(COMPONENT_SRC)/ndiff/docs/ndiff.1 \ |
|
80 > $(PROTOUSRSHAREMAN1DIR)/ndiff.1 |
|
81 |
|
82 test: |
|
83 @echo "no tests available" |
|
84 |
|
85 |
|
86 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
|
87 |
|
88 include ../../make-rules/depend.mk |