components/webalizer/Makefile
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Thu, 16 Jun 2016 23:00:26 -0700
changeset 6236 9ecffda25374
parent 5682 94c0ca64c022
child 7687 1093e2a9adbd
permissions -rw-r--r--
Added tag s12-102 for changeset 309c116f1e44
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
#
5595
7019066a05e3 22886524 Update webalizer to version 2.23-08
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    23
# Copyright (c) 2013, 2016, 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
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5595
diff changeset
    25
COMPILER= gcc
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5595
diff changeset
    26
BUILD_BITS= 64
1130
a4adf8cbfa5d 16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    27
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
    28
a4adf8cbfa5d 16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    29
COMPONENT_NAME=		webalizer
5595
7019066a05e3 22886524 Update webalizer to version 2.23-08
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    30
COMPONENT_VERSION=	2.23.8
7019066a05e3 22886524 Update webalizer to version 2.23-08
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    31
HUMAN_VERSION=		2.23-08
1130
a4adf8cbfa5d 16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    32
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
    33
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
    34
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
    35
COMPONENT_ARCHIVE_HASH=	\
5595
7019066a05e3 22886524 Update webalizer to version 2.23-08
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    36
    sha256:b37524fbd98e97052a80d59f75e69f857468752cf74cc0eb0972e5fab02eb6f7
1130
a4adf8cbfa5d 16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    37
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
    38
5595
7019066a05e3 22886524 Update webalizer to version 2.23-08
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    39
TPNO=			27276
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1645
diff changeset
    40
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5595
diff changeset
    41
TEST_TARGET= $(NO_TESTS)
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5595
diff changeset
    42
include $(WS_MAKE_RULES)/common.mk
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5595
diff changeset
    43
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5595
diff changeset
    44
# Fix 64-bit linking via compiler.
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5595
diff changeset
    45
LDFLAGS += $(CC_BITS)
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 += \
5595
7019066a05e3 22886524 Update webalizer to version 2.23-08
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    52
	$(GSED) -i -e 's?lib/httpd/logs/?apache2/2.4/logs/?' \
1130
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
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5595
diff changeset
    56
CONFIGURE_OPTIONS +=	--with-gd=$(USRINCDIR)/gd2
1130
a4adf8cbfa5d 16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    57
1352
1358a1e1ff4c 16921386 move to parfait 1.2.0.1
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 1130
diff changeset
    58
# 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
    59
# 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
    60
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
    61
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
    62
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    63
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
    64
REQUIRED_PACKAGES += library/gd
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    65
REQUIRED_PACKAGES += library/zlib
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    66
REQUIRED_PACKAGES += system/library/math