sudo: change to new lib paths
[unleashed-userland.git] / components / sysutils / sudo / Makefile
blob530cdfce96cc6c8583da046efbf1f8aeedef12b9
2 # CDDL HEADER START
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]
19 # CDDL HEADER END
22 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
25 include ../../../make-rules/shared-macros.mk
27 COMPONENT_NAME= sudo
28 SRC_VERSION= 1.8.20
29 SRC_PATCH_VERSION= 2
30 COMPONENT_VERSION= $(SRC_VERSION).$(SRC_PATCH_VERSION)
31 COMPONENT_SUMMARY= sudo - tool to allow certain tasks to be run as root by ordinary users
32 COMPONENT_SRC= $(COMPONENT_NAME)-$(SRC_VERSION)p$(SRC_PATCH_VERSION)
33 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
34 COMPONENT_ARCHIVE_HASH= \
35 sha256:bd42ae1059e935f795c69ea97b3de09fe9410a58a74b5d5e6836eb5067a445d9
36 COMPONENT_ARCHIVE_URL= http://www.sudo.ws/sudo/dist/$(COMPONENT_ARCHIVE)
37 COMPONENT_SIG_URL= $(COMPONENT_ARCHIVE_URL).sig
38 COMPONENT_PROJECT_URL= http://www.sudo.ws/
39 COMPONENT_FMRI= security/sudo
40 COMPONENT_CLASSIFICATION= Applications/System Utilities
41 COMPONENT_LICENSE= ISC-like, BSD, zlib license
43 include $(WS_MAKE_RULES)/prep.mk
44 include $(WS_MAKE_RULES)/configure.mk
45 include $(WS_MAKE_RULES)/ips.mk
46 export UNAME_LEGACY=
48 CONFIGURE_BINDIR.64 = $(CONFIGURE_BINDIR.32)
49 CONFIGURE_SBINDIR.64 = $(CONFIGURE_SBINDIR.32)
51 CONFIGURE_ENV += MAKE=$(GMAKE)
53 CONFIGURE_OPTIONS += --disable-nls
54 CONFIGURE_OPTIONS += --with-ldap
55 CONFIGURE_OPTIONS += --with-project
56 CONFIGURE_OPTIONS += --with-rundir=/var/run/sudo
57 CONFIGURE_OPTIONS += --with-pam
58 CONFIGURE_OPTIONS += --with-pam-login
59 CONFIGURE_OPTIONS += --disable-pam-session
60 CONFIGURE_OPTIONS += --with-tty-tickets
61 CONFIGURE_OPTIONS += --without-insults
62 CONFIGURE_OPTIONS += --without-lecture
63 CONFIGURE_OPTIONS += --with-ignore-dot
64 CONFIGURE_OPTIONS += --without-bsm-audit
65 CONFIGURE_OPTIONS += --with-mdoc
67 COMPONENT_BUILD_ENV += CC="$(CC)"
68 COMPONENT_BUILD_ENV += CXX="$(CXX)"
69 COMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)"
71 COMPONENT_INSTALL_TARGETS = install
72 COMPONENT_INSTALL_ARGS += INSTALL_OWNER=
74 # Avoid calling "chown 0" on installed files
75 COMPONENT_INSTALL_ARGS += INSTALL_OWNER=
77 # Enable aslr for this component
78 ASLR_MODE = $(ASLR_ENABLE)
80 # common targets
82 build: $(BUILD_64)
84 install: $(INSTALL_64)
86 test: $(NO_TESTS)
88 REQUIRED_PACKAGES += library/zlib
89 REQUIRED_PACKAGES += system/library