components/sudo/Makefile
author Vladimir Marek <Vladimir.Marek@oracle.com>
Sat, 19 Jan 2013 16:54:22 +0100
changeset 1133 d8e2284538ee
parent 1058 34d7aaa03423
child 1209 5fd82ed384aa
child 2568 f402d954b15b
permissions -rw-r--r--
16195225 use _getgroupsbymember() instead of slow getgrent() calls
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
279
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     1
#
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     3
#
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     7
#
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    12
#
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    18
#
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    20
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    21
#
1133
d8e2284538ee 16195225 use _getgroupsbymember() instead of slow getgrent() calls
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 1058
diff changeset
    22
# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
279
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    23
#
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    24
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    25
include ../../make-rules/shared-macros.mk
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    26
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    27
COMPONENT_NAME=		sudo
840
926eb95ceab3 7169436 Problem with utility/sudo
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    28
SRC_VERSION=	1.8.4
926eb95ceab3 7169436 Problem with utility/sudo
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    29
SRC_PATCH_VERSION=	5
279
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    30
COMPONENT_VERSION=	$(SRC_VERSION).$(SRC_PATCH_VERSION)
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    31
COMPONENT_SRC=		$(COMPONENT_NAME)-$(SRC_VERSION)p$(SRC_PATCH_VERSION)
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 797
diff changeset
    33
COMPONENT_ARCHIVE_HASH=	\
840
926eb95ceab3 7169436 Problem with utility/sudo
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    34
    sha256:cf41ea1ada17c0dfbd8480dd9dc800999e0db9f2972ffa8f7a2944751ad32aba
279
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    35
COMPONENT_ARCHIVE_URL=	http://www.sudo.ws/sudo/dist/$(COMPONENT_ARCHIVE)
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    36
COMPONENT_PROJECT_URL=  http://www.sudo.ws/
1058
34d7aaa03423 15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents: 864
diff changeset
    37
COMPONENT_BUGDB=	utility/sudo
279
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    38
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    39
include $(WS_TOP)/make-rules/prep.mk
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    40
include $(WS_TOP)/make-rules/configure.mk
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    41
include $(WS_TOP)/make-rules/ips.mk
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    42
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    43
CONFIGURE_ENV +=	"CC=$(CC)"
1133
d8e2284538ee 16195225 use _getgroupsbymember() instead of slow getgrent() calls
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 1058
diff changeset
    44
CONFIGURE_ENV +=	"CFLAGS=$(CFLAGS) -DHAVE__GETGRPSBYMEMBER"
279
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    45
CONFIGURE_ENV +=	"CXX=$(CXX)"
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    46
CONFIGURE_ENV +=	"MAKE=$(GMAKE)"
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    47
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    48
CONFIGURE_OPTIONS +=	--with-ldap
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    49
CONFIGURE_OPTIONS +=	--with-project
797
ef9656f77cca 7140964 Problem with utility/sudo
Darren J Moffat <Darren.Moffat@Oracle.COM>
parents: 447
diff changeset
    50
CONFIGURE_OPTIONS +=	--with-timedir=/system/volatile/sudo
447
7ca7b95abd2f PSARC/2011/252 sudo 1.8.1
Darren J Moffat <Darren.Moffat@Oracle.COM>
parents: 279
diff changeset
    51
CONFIGURE_OPTIONS +=	--with-pam --with-pam-login
7ca7b95abd2f PSARC/2011/252 sudo 1.8.1
Darren J Moffat <Darren.Moffat@Oracle.COM>
parents: 279
diff changeset
    52
CONFIGURE_OPTIONS +=	--with-tty-tickets
7ca7b95abd2f PSARC/2011/252 sudo 1.8.1
Darren J Moffat <Darren.Moffat@Oracle.COM>
parents: 279
diff changeset
    53
CONFIGURE_OPTIONS +=	--without-insults
7ca7b95abd2f PSARC/2011/252 sudo 1.8.1
Darren J Moffat <Darren.Moffat@Oracle.COM>
parents: 279
diff changeset
    54
CONFIGURE_OPTIONS +=	--without-lecture
7ca7b95abd2f PSARC/2011/252 sudo 1.8.1
Darren J Moffat <Darren.Moffat@Oracle.COM>
parents: 279
diff changeset
    55
CONFIGURE_OPTIONS +=	--with-ignore-dot
7ca7b95abd2f PSARC/2011/252 sudo 1.8.1
Darren J Moffat <Darren.Moffat@Oracle.COM>
parents: 279
diff changeset
    56
CONFIGURE_OPTIONS +=	--with-bsm-audit
7ca7b95abd2f PSARC/2011/252 sudo 1.8.1
Darren J Moffat <Darren.Moffat@Oracle.COM>
parents: 279
diff changeset
    57
CONFIGURE_OPTIONS +=	--libexecdir=/usr/lib/sudo
864
8070f77a5a10 7174850 permanentish temporary files have returned again
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 840
diff changeset
    58
CONFIGURE_OPTIONS +=	"sudo_cv_var_nroff_opt_Tascii=no"
279
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    59
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    60
COMPONENT_BUILD_ENV +=	CC=$(CC) CXX=$(CXX)
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    61
COMPONENT_BUILD_ENV +=	"CFLAGS=$(CFLAGS)"
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    62
447
7ca7b95abd2f PSARC/2011/252 sudo 1.8.1
Darren J Moffat <Darren.Moffat@Oracle.COM>
parents: 279
diff changeset
    63
COMPONENT_INSTALL_TARGETS = install
279
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    64
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    65
# common targets
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    66
447
7ca7b95abd2f PSARC/2011/252 sudo 1.8.1
Darren J Moffat <Darren.Moffat@Oracle.COM>
parents: 279
diff changeset
    67
build:		$(BUILD_32)
279
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    68
447
7ca7b95abd2f PSARC/2011/252 sudo 1.8.1
Darren J Moffat <Darren.Moffat@Oracle.COM>
parents: 279
diff changeset
    69
install:	$(INSTALL_32)
279
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    70
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    71
test:		$(NO_TESTS)
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    72
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    73
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    74
c6af843791cd 7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    75
include $(WS_TOP)/make-rules/depend.mk