146N/A
146N/A# CDDL HEADER START
146N/A#
146N/A# The contents of this file are subject to the terms of the
146N/A# Common Development and Distribution License (the "License").
146N/A# You may not use this file except in compliance with the License.
146N/A#
146N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
146N/A# or http://www.opensolaris.org/os/licensing.
146N/A# See the License for the specific language governing permissions
146N/A# and limitations under the License.
146N/A#
146N/A# When distributing Covered Code, include this CDDL HEADER in each
146N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
146N/A# If applicable, add the following below this CDDL HEADER, with the
146N/A# fields enclosed by brackets "[]" replaced with your own identifying
146N/A# information: Portions Copyright [yyyy] [name of copyright owner]
146N/A#
146N/A# CDDL HEADER END
146N/A#
146N/A
146N/A#
7008N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
146N/A#
146N/A
3996N/A# Can't use the Studio compilers as they don't support the GNU
3996N/A# __attribute__ extension
3996N/ACOMPILER = gcc3
3996N/A
146N/Ainclude ../../make-rules/shared-macros.mk
146N/A
614N/ACOMPONENT_NAME= nmap
1439N/ACOMPONENT_VERSION= 6.25
1439N/ACOMPONENT_PROJECT_URL= http://nmap.org/
614N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
614N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
844N/ACOMPONENT_ARCHIVE_HASH= \
1439N/A sha256:42c54fd5cc5f05e5df909757d62307102a8ff1dfaf5c2626b1cb5f2ecd009e57
1439N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)dist/$(COMPONENT_ARCHIVE)
1273N/ACOMPONENT_BUGDB= utility/nmap
146N/A
3661N/ATPNO= 9217
3661N/A
3996N/Ainclude $(WS_MAKE_RULES)/prep.mk
4561N/A
4561N/A# pyobject-27and pygtk2-27 are only available on S11.3 and later
4561N/Aifeq ($(BUILD_TYPE), evaluation)
4561N/ABUILD_32=
4561N/AINSTALL_32=
4561N/APUBLISH_STAMP=
4561N/Aendif
4561N/A
3996N/Ainclude $(WS_MAKE_RULES)/configure.mk
3996N/Ainclude $(WS_MAKE_RULES)/ips.mk
146N/A
146N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
1439N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
146N/A
4236N/APYTHON_VERSION = 2.7
3984N/A
3984N/APKG_MACROS += PYVER=$(PYTHON_VERSION)
3984N/A
146N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
206N/ACONFIGURE_OPTIONS += CXX="$(CXX)"
206N/ACONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
146N/ACONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
1439N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
146N/ACONFIGURE_OPTIONS += LIBS="-lsocket -lnsl"
4236N/ACONFIGURE_OPTIONS += PYTHON="$(PYTHON.$(PYTHON_VERSION))"
1439N/ACONFIGURE_OPTIONS += --srcdir=$(BUILD_DIR_32)
146N/ACONFIGURE_OPTIONS += --localstatedir=/var
146N/ACONFIGURE_OPTIONS += --without-localdirs
146N/ACONFIGURE_OPTIONS += --with-zenmap
146N/ACONFIGURE_OPTIONS += --with-openssl
146N/ACONFIGURE_OPTIONS += --with-libpcap
146N/ACONFIGURE_OPTIONS += --with-libpcre
146N/ACONFIGURE_OPTIONS += --with-liblua
146N/ACONFIGURE_OPTIONS += --with-ncat
146N/ACONFIGURE_OPTIONS += --with-ndiff
1439N/A
1439N/A# pkgdepend doesn't like the first line of a Python script to be:
4236N/A# '#!/usr/bin/env python' so turn it into '#!/usr/bin/python$(PYTHON_VERSION)'
1439N/ACOMPONENT_POST_INSTALL_ACTION += \
4236N/A $(GSED) -i -e "s?env python?python$(PYTHON_VERSION)?" \
1439N/A $(PROTOUSRBINDIR)/uninstall_zenmap
146N/A
2490N/AASLR_MODE = $(ASLR_ENABLE)
2490N/A
146N/A# common targets
146N/Abuild: $(BUILD_32)
146N/A
146N/Ainstall: $(INSTALL_32)
146N/A
181N/Atest: $(NO_TESTS)
146N/A
3996N/AREQUIRED_PACKAGES += library/pcre
4236N/AREQUIRED_PACKAGES += library/python/pygobject-27
4236N/AREQUIRED_PACKAGES += library/python/pygtk2-27
3996N/AREQUIRED_PACKAGES += library/security/openssl
3996N/AREQUIRED_PACKAGES += runtime/lua
3996N/AREQUIRED_PACKAGES += runtime/python-27
3996N/AREQUIRED_PACKAGES += system/library
3996N/AREQUIRED_PACKAGES += system/library/gcc-3-runtime
3996N/AREQUIRED_PACKAGES += system/library/libpcap
3996N/AREQUIRED_PACKAGES += system/library/math
7008N/AREQUIRED_PACKAGES += system/network/bpf