author | Sonam Gupta <sonam.x.gupta@oracle.com> |
Mon, 28 Jan 2013 21:25:50 -0800 | |
changeset 1135 | 7f8ef38770aa |
parent 1130 | a4adf8cbfa5d |
child 1352 | 1358a1e1ff4c |
permissions | -rw-r--r-- |
1130
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
1 |
# |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
3 |
# |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
7 |
# |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
12 |
# |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
18 |
# |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
20 |
# |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
21 |
|
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
22 |
# |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
23 |
# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
24 |
# |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
25 |
|
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
26 |
include ../../make-rules/shared-macros.mk |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
27 |
|
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
28 |
COMPONENT_NAME= webalizer |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
29 |
COMPONENT_VERSION= 2.21.2 |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
30 |
HUMAN_VERSION= 2.21-02 |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
31 |
COMPONENT_PROJECT_URL= http://www.mrunix.net/webalizer/ |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
32 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(HUMAN_VERSION) |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
33 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC)-src.tar.bz2 |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
34 |
COMPONENT_ARCHIVE_HASH= \ |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
35 |
sha256:f2663d67f5820644a0b1c0b7dee4a5c764d829166fa28d5880442c28886729d9 |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
36 |
COMPONENT_ARCHIVE_URL= ftp://ftp.mrunix.net/pub/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE) |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
37 |
COMPONENT_BUGDB= utility/webalizer |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
38 |
|
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
39 |
include ../../make-rules/prep.mk |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
40 |
include ../../make-rules/configure.mk |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
41 |
include ../../make-rules/ips.mk |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
42 |
|
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
43 |
COMPONENT_PRE_CONFIGURE_ACTION = \ |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
44 |
($(CLONEY) $(SOURCE_DIR) $(@D)) |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
45 |
|
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
46 |
# Adjust the log file pathname in the sample configuration file. |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
47 |
COMPONENT_PRE_BUILD_ACTION += \ |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
48 |
$(GSED) -i -e 's?lib/httpd/logs/?apache2/2.2/logs/?' \ |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
49 |
$(SOURCE_DIR)/sample.conf |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
50 |
|
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
51 |
COMPILER = gcc |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
52 |
|
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
53 |
CONFIGURE_OPTIONS += --enable-dns |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
54 |
CONFIGURE_OPTIONS += --with-gd=/usr/include/gd2 |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
55 |
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
56 |
CONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)" |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
57 |
|
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
58 |
# Needed to correctly build that 64-bit library. |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
59 |
LDFLAGS += $(CC_BITS) |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
60 |
|
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
61 |
# common targets |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
62 |
build: $(BUILD_64) |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
63 |
|
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
64 |
install: $(INSTALL_64) |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
65 |
|
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
66 |
test: $(NO_TESTS) |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
67 |
|
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
68 |
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
69 |
|
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
70 |
include ../../make-rules/depend.mk |