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.
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.
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]
22 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
25 include ..
/..
/make-rules
/shared-macros.mk
31 COMPONENT_VERSION
= $(SRC_VERSION
).
$(SRC_PATCH_VERSION
)
32 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(SRC_VERSION
)p
$(SRC_PATCH_VERSION
)
33 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
34 COMPONENT_ARCHIVE_HASH
= \
35 sha256
:c0baaa87f59153967b650a0dde2f7d4147d358fa15f3fdabb47e84d0282fe625
36 COMPONENT_ARCHIVE_URL
= http
://www.sudo.ws
/sudo
/dist/$(COMPONENT_ARCHIVE
)
37 COMPONENT_PROJECT_URL
= http
://www.sudo.ws
/
38 COMPONENT_BUGDB
= utility
/sudo
40 include $(WS_TOP
)/make-rules
/prep.mk
41 include $(WS_TOP
)/make-rules
/configure.mk
42 include $(WS_TOP
)/make-rules
/ips.mk
44 CONFIGURE_ENV
+= MAKE
=$(GMAKE
)
46 CONFIGURE_OPTIONS
+= --disable-hardening
47 CONFIGURE_OPTIONS
+= --with-ldap
48 CONFIGURE_OPTIONS
+= --with-project
49 CONFIGURE_OPTIONS
+= --with-timedir
=/var
/run
/sudo
50 CONFIGURE_OPTIONS
+= --with-pam
51 CONFIGURE_OPTIONS
+= --with-pam-login
52 CONFIGURE_OPTIONS
+= --disable-pam-session
53 CONFIGURE_OPTIONS
+= --with-tty-tickets
54 CONFIGURE_OPTIONS
+= --without-insults
55 CONFIGURE_OPTIONS
+= --without-lecture
56 CONFIGURE_OPTIONS
+= --with-ignore-dot
57 CONFIGURE_OPTIONS
+= --with-bsm-audit
58 CONFIGURE_OPTIONS
+= --libexecdir
=/usr
/lib
/sudo
59 CONFIGURE_OPTIONS
+= "sudo_cv_var_nroff_opt_Tascii=no"
61 COMPONENT_BUILD_ENV
+= CC
="$(CC)"
62 COMPONENT_BUILD_ENV
+= CXX
="$(CXX)"
63 COMPONENT_BUILD_ENV
+= CFLAGS
="$(CFLAGS)"
65 COMPONENT_INSTALL_TARGETS
= install
67 # Enable aslr for this component
68 ASLR_MODE
= $(ASLR_ENABLE
)
74 install: $(INSTALL_32
)
78 BUILD_PKG_DEPENDENCIES
= $(BUILD_TOOLS
)
80 include $(WS_TOP
)/make-rules
/depend.mk