author | Marcel Telka <marcel.telka@oracle.com> |
Sat, 09 Jul 2011 00:00:09 +0200 | |
changeset 384 | cef5d5e02ade |
parent 279 | c6af843791cd |
child 447 | 7ca7b95abd2f |
permissions | -rw-r--r-- |
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 |
# |
c6af843791cd
7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
22 |
# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
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 |
c6af843791cd
7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
28 |
SRC_VERSION= 1.7.4 |
c6af843791cd
7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
29 |
SRC_PATCH_VERSION= 4 |
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 |
c6af843791cd
7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
33 |
COMPONENT_ARCHIVE_HASH= sha1:c873f509f80d5722989a912a42a61ad27b71453f |
c6af843791cd
7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
34 |
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
|
35 |
COMPONENT_PROJECT_URL= http://www.sudo.ws/ |
c6af843791cd
7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
36 |
|
c6af843791cd
7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
37 |
include $(WS_TOP)/make-rules/prep.mk |
c6af843791cd
7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
38 |
include $(WS_TOP)/make-rules/configure.mk |
c6af843791cd
7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
39 |
include $(WS_TOP)/make-rules/ips.mk |
c6af843791cd
7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
40 |
|
c6af843791cd
7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
41 |
CONFIGURE_ENV += "CC=$(CC)" |
c6af843791cd
7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
42 |
CONFIGURE_ENV += "CFLAGS=$(CFLAGS)" |
c6af843791cd
7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
43 |
CONFIGURE_ENV += "CXX=$(CXX)" |
c6af843791cd
7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
44 |
CONFIGURE_ENV += "MAKE=$(GMAKE)" |
c6af843791cd
7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
45 |
|
c6af843791cd
7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
46 |
CONFIGURE_OPTIONS += --with-noexec=/usr/lib/sudo_noexec.so |
c6af843791cd
7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
47 |
CONFIGURE_OPTIONS += --with-CC=$(CC) |
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 |
c6af843791cd
7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
50 |
CONFIGURE_OPTIONS += --with-timedir=/var/run/sudo |
c6af843791cd
7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
51 |
|
c6af843791cd
7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
52 |
COMPONENT_BUILD_ENV += CC=$(CC) CXX=$(CXX) |
c6af843791cd
7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
53 |
COMPONENT_BUILD_ENV += "CFLAGS=$(CFLAGS)" |
c6af843791cd
7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
54 |
|
c6af843791cd
7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
55 |
# For the 64-bit build, only need the 64-bit shared libraries |
c6af843791cd
7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
56 |
COMPONENT_BUILD_TARGETS.64 = libsudo_noexec |
c6af843791cd
7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
57 |
COMPONENT_BUILD_TARGETS += $(COMPONENT_BUILD_TARGETS.$(BITS)) |
c6af843791cd
7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
58 |
|
c6af843791cd
7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
59 |
# This value is used in the configured Makefile for sudo, |
c6af843791cd
7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
60 |
# via the patch to Makefile.in, to install into the $(MACH64) directory |
c6af843791cd
7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
61 |
COMPONENT_INSTALL_ENV.64 += MACH64=$(MACH64) |
c6af843791cd
7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
62 |
|
c6af843791cd
7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
63 |
# 32-bit install uses the usual target |
c6af843791cd
7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
64 |
COMPONENT_INSTALL_TARGETS.32 = install |
c6af843791cd
7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
65 |
# For 64-bit install, only install the 64-bit shared library |
c6af843791cd
7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
66 |
COMPONENT_INSTALL_TARGETS.64 = install-noexec |
c6af843791cd
7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
67 |
COMPONENT_INSTALL_TARGETS = $(COMPONENT_INSTALL_TARGETS.$(BITS)) |
c6af843791cd
7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
68 |
|
c6af843791cd
7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
69 |
# common targets |
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 |
build: $(BUILD_32_and_64) |
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 |
install: $(INSTALL_32_and_64) |
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 |
test: $(NO_TESTS) |
c6af843791cd
7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
76 |
|
c6af843791cd
7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
77 |
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
c6af843791cd
7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
78 |
|
c6af843791cd
7044076 move sudo from sfw to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
79 |
include $(WS_TOP)/make-rules/depend.mk |