author | Sean Wilcox <sean.wilcox@oracle.com> |
Tue, 01 Sep 2015 10:00:07 -0700 | |
changeset 4832 | eef9ea54fabe |
parent 4339 | 6501cf9c29f9 |
child 5595 | 7019066a05e3 |
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 |
# |
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
23 |
# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved. |
1130
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 |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
26 |
COMPILER = gcc |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
27 |
|
1130
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
28 |
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
|
29 |
|
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
30 |
COMPONENT_NAME= webalizer |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
31 |
COMPONENT_VERSION= 2.21.2 |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
32 |
HUMAN_VERSION= 2.21-02 |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
33 |
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
|
34 |
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
|
35 |
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
|
36 |
COMPONENT_ARCHIVE_HASH= \ |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
37 |
sha256:f2663d67f5820644a0b1c0b7dee4a5c764d829166fa28d5880442c28886729d9 |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
38 |
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
|
39 |
COMPONENT_BUGDB= utility/webalizer |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
40 |
|
1948
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1645
diff
changeset
|
41 |
TPNO= 9201 |
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1645
diff
changeset
|
42 |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
43 |
include $(WS_MAKE_RULES)/prep.mk |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
44 |
include $(WS_MAKE_RULES)/configure.mk |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
45 |
include $(WS_MAKE_RULES)/ips.mk |
1130
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
46 |
|
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
47 |
COMPONENT_PRE_CONFIGURE_ACTION = \ |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
48 |
($(CLONEY) $(SOURCE_DIR) $(@D)) |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
49 |
|
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
50 |
# 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
|
51 |
COMPONENT_PRE_BUILD_ACTION += \ |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
52 |
$(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
|
53 |
$(SOURCE_DIR)/sample.conf |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
54 |
|
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
55 |
CONFIGURE_OPTIONS += --enable-dns |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
56 |
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
|
57 |
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
58 |
CONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)" |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
59 |
|
1352
1358a1e1ff4c
16921386 move to parfait 1.2.0.1
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
1130
diff
changeset
|
60 |
# webalizer is defining u_int64_t but also uses db.h |
1605
7fc7910b6d94
17389830 guile fails to build with gcc4.7
Rich Burridge <rich.burridge@oracle.com>
parents:
1496
diff
changeset
|
61 |
# which typedefs it, and parfait and gcc 4.7 aren't happy. |
1352
1358a1e1ff4c
16921386 move to parfait 1.2.0.1
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
1130
diff
changeset
|
62 |
CC += -Du_int64_t=uint64_t |
1358a1e1ff4c
16921386 move to parfait 1.2.0.1
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
1130
diff
changeset
|
63 |
CONFIGURE_OPTIONS += c_cv_type_u_int64_t=yes |
1358a1e1ff4c
16921386 move to parfait 1.2.0.1
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
1130
diff
changeset
|
64 |
|
1130
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
65 |
# 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
|
66 |
LDFLAGS += $(CC_BITS) |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
67 |
|
1623
d468c2c1e73d
18042697 Various Userland components need ASLR'ing and 64-bit-ing
Rich Burridge <rich.burridge@oracle.com>
parents:
1605
diff
changeset
|
68 |
ASLR_MODE = $(ASLR_ENABLE) |
d468c2c1e73d
18042697 Various Userland components need ASLR'ing and 64-bit-ing
Rich Burridge <rich.burridge@oracle.com>
parents:
1605
diff
changeset
|
69 |
|
1130
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
70 |
# common targets |
2225
f064d3d3190d
20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents:
1948
diff
changeset
|
71 |
configure: $(CONFIGURE_64) |
f064d3d3190d
20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents:
1948
diff
changeset
|
72 |
|
1130
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
73 |
build: $(BUILD_64) |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
74 |
|
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
75 |
install: $(INSTALL_64) |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
76 |
|
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
77 |
test: $(NO_TESTS) |
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
78 |
|
4339
6501cf9c29f9
21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents:
3817
diff
changeset
|
79 |
system-test: $(NO_TESTS) |
6501cf9c29f9
21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents:
3817
diff
changeset
|
80 |
|
1130
a4adf8cbfa5d
16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
81 |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
82 |
REQUIRED_PACKAGES += database/berkeleydb-5 |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
83 |
REQUIRED_PACKAGES += library/gd |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
84 |
REQUIRED_PACKAGES += library/zlib |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
85 |
REQUIRED_PACKAGES += system/library |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
86 |
REQUIRED_PACKAGES += system/library/math |