components/webalizer/Makefile
author John Beck <John.Beck@Oracle.COM>
Fri, 13 Jun 2014 12:36:52 -0700
changeset 1948 2d1537e7942d
parent 1645 ff50a80c552a
child 2225 f064d3d3190d
permissions -rw-r--r--
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
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
#
1623
d468c2c1e73d 18042697 Various Userland components need ASLR'ing and 64-bit-ing
Rich Burridge <rich.burridge@oracle.com>
parents: 1605
diff changeset
    23
# Copyright (c) 2013, 2014, 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
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
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1645
diff changeset
    39
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
    40
1130
a4adf8cbfa5d 16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    41
include ../../make-rules/prep.mk
a4adf8cbfa5d 16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    42
include ../../make-rules/configure.mk
a4adf8cbfa5d 16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    43
include ../../make-rules/ips.mk
a4adf8cbfa5d 16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    44
a4adf8cbfa5d 16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    45
COMPONENT_PRE_CONFIGURE_ACTION = \
a4adf8cbfa5d 16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    46
	($(CLONEY) $(SOURCE_DIR) $(@D))
a4adf8cbfa5d 16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    47
a4adf8cbfa5d 16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    48
# 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
    49
COMPONENT_PRE_BUILD_ACTION += \
a4adf8cbfa5d 16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    50
	$(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
    51
		$(SOURCE_DIR)/sample.conf
a4adf8cbfa5d 16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    52
1605
7fc7910b6d94 17389830 guile fails to build with gcc4.7
Rich Burridge <rich.burridge@oracle.com>
parents: 1496
diff changeset
    53
COMPILER =	gcc
1130
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
a4adf8cbfa5d 16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    71
build:          $(BUILD_64)
a4adf8cbfa5d 16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    72
a4adf8cbfa5d 16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    73
install:        $(INSTALL_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
test:           $(NO_TESTS)
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
BUILD_PKG_DEPENDENCIES =        $(BUILD_TOOLS)
a4adf8cbfa5d 16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    78
a4adf8cbfa5d 16133922 Move webalizer from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    79
include ../../make-rules/depend.mk