5616N/A#
5616N/A# CDDL HEADER START
5616N/A#
5616N/A# The contents of this file are subject to the terms of the
5616N/A# Common Development and Distribution License (the "License").
5616N/A# You may not use this file except in compliance with the License.
5616N/A#
5616N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5616N/A# or http://www.opensolaris.org/os/licensing.
5616N/A# See the License for the specific language governing permissions
5616N/A# and limitations under the License.
5616N/A#
5616N/A# When distributing Covered Code, include this CDDL HEADER in each
5616N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5616N/A# If applicable, add the following below this CDDL HEADER, with the
5616N/A# fields enclosed by brackets "[]" replaced with your own identifying
5616N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5616N/A#
5616N/A# CDDL HEADER END
5616N/A#
5616N/A# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
5616N/A#
5616N/Ainclude ../../make-rules/shared-macros.mk
5616N/A
5616N/ACOMPONENT_NAME= pflogd
5616N/ACOMPONENT_VERSION= OPENBSD_5_5
5616N/AIPS_COMPONENT_VERSION= 5.5
5616N/ACOMPONENT_PROJECT_URL= http://www.openbsd.org
5616N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
5616N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
5616N/ACOMPONENT_ARCHIVE_HASH= sha256:cfa97a28da9c4c5d07a2c6c8225e867d031417a427effb7152f9e8beea614957
5616N/ACLEAN_PATHS += $(COMPONENT_SRC)
5616N/ACLOBBER_PATHS += $(COMPONENT_ARCHIVE)
5616N/ACOMPONENT_BUGDB= service/pflogd
5616N/A
5616N/ATPNO= 24254
5616N/A
5616N/A#
5616N/A# Don't overwrite CFLAGS here, just add our options there.
5616N/A#
5616N/ACOMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS) -D_SOLARIS_ -DOBSD_COMP -lscf"
5616N/ACOMPONENT_BUILD_ARGS += CC="$(CC)"
5616N/A
5616N/Ainclude ../../make-rules/prep.mk
5616N/Ainclude ../../make-rules/justmake.mk
5647N/A
5647N/A# Depends on S12-only changes in ON.
5647N/Aifeq ($(BUILD_TYPE), evaluation)
5647N/ABUILD_64=
5647N/AINSTALL_64=
5647N/APUBLISH_STAMP=
5647N/Aendif
5647N/A
5616N/Ainclude ../../make-rules/ips.mk
5616N/A
5616N/ACOMPONENT_INSTALL_ARGS += PREFIX=$(PROTOUSRDIR)
5616N/ACOMPONENT_INSTALL_ARGS += MANDIR=$(PROTOUSRSHAREMANDIR)
5616N/ACOMPONENT_INSTALL_ARGS += INSTALL=/usr/gnu/bin/install
5616N/A
5616N/A# common targets
5616N/Abuild: $(BUILD_64)
5616N/A
5616N/Ainstall: $(INSTALL_64)
5616N/A
5616N/Atest: $(NO_TESTS)
5616N/A
5616N/A# Here we just download the cached source archive. In order to update
5616N/A# the cache, we have to get the sources via CVS manually and ask gatekeepers
5616N/A# to place it into the cache. There is no archive available at openbsd.org.
5616N/Adownload:: $(USERLAND_ARCHIVES)$(COMPONENT_ARCHIVE)
5616N/A
5616N/A$(USERLAND_ARCHIVES)$(COMPONENT_ARCHIVE): $(MAKEFILE_PREREQ)
5616N/A $(FETCH) --file $@ --hash $(COMPONENT_ARCHIVE_HASH)
5616N/A $(TOUCH) $@
5616N/A
5616N/AREQUIRED_PACKAGES += network/firewall
5616N/AREQUIRED_PACKAGES += shell/ksh93
5616N/AREQUIRED_PACKAGES += system/core-os
5616N/AREQUIRED_PACKAGES += system/header
5616N/AREQUIRED_PACKAGES += system/library
5616N/AREQUIRED_PACKAGES += system/library/libpcap