|
1 # |
|
2 # CDDL HEADER START |
|
3 # |
|
4 # The contents of this file are subject to the terms of the |
|
5 # Common Development and Distribution License (the "License"). |
|
6 # You may not use this file except in compliance with the License. |
|
7 # |
|
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
9 # or http://www.opensolaris.org/os/licensing. |
|
10 # See the License for the specific language governing permissions |
|
11 # and limitations under the License. |
|
12 # |
|
13 # When distributing Covered Code, include this CDDL HEADER in each |
|
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
15 # If applicable, add the following below this CDDL HEADER, with the |
|
16 # fields enclosed by brackets "[]" replaced with your own identifying |
|
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
|
18 # |
|
19 # CDDL HEADER END |
|
20 # |
|
21 # Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved. |
|
22 # |
|
23 include ../../make-rules/shared-macros.mk |
|
24 |
|
25 COMPONENT_NAME= pflogd |
|
26 COMPONENT_VERSION= OPENBSD_5_5 |
|
27 IPS_COMPONENT_VERSION= 5.5 |
|
28 COMPONENT_PROJECT_URL= http://www.openbsd.org |
|
29 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
30 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2 |
|
31 COMPONENT_ARCHIVE_HASH= sha256:cfa97a28da9c4c5d07a2c6c8225e867d031417a427effb7152f9e8beea614957 |
|
32 CLEAN_PATHS += $(COMPONENT_SRC) |
|
33 CLOBBER_PATHS += $(COMPONENT_ARCHIVE) |
|
34 COMPONENT_BUGDB= service/pflogd |
|
35 |
|
36 TPNO= 24254 |
|
37 |
|
38 # |
|
39 # Don't overwrite CFLAGS here, just add our options there. |
|
40 # |
|
41 COMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS) -D_SOLARIS_ -DOBSD_COMP -lscf" |
|
42 COMPONENT_BUILD_ARGS += CC="$(CC)" |
|
43 |
|
44 include ../../make-rules/prep.mk |
|
45 include ../../make-rules/justmake.mk |
|
46 include ../../make-rules/ips.mk |
|
47 |
|
48 COMPONENT_INSTALL_ARGS += PREFIX=$(PROTOUSRDIR) |
|
49 COMPONENT_INSTALL_ARGS += MANDIR=$(PROTOUSRSHAREMANDIR) |
|
50 COMPONENT_INSTALL_ARGS += INSTALL=/usr/gnu/bin/install |
|
51 |
|
52 ASLR_MODE = $(ASLR_ENABLE) |
|
53 |
|
54 # common targets |
|
55 build: $(BUILD_64) |
|
56 |
|
57 install: $(INSTALL_64) |
|
58 |
|
59 test: $(NO_TESTS) |
|
60 |
|
61 # Here we just download the cached source archive. In order to update |
|
62 # the cache, we have to get the sources via CVS manually and ask gatekeepers |
|
63 # to place it into the cache. There is no archive available at openbsd.org. |
|
64 download:: $(USERLAND_ARCHIVES)$(COMPONENT_ARCHIVE) |
|
65 |
|
66 $(USERLAND_ARCHIVES)$(COMPONENT_ARCHIVE): $(MAKEFILE_PREREQ) |
|
67 $(FETCH) --file $@ --hash $(COMPONENT_ARCHIVE_HASH) |
|
68 $(TOUCH) $@ |
|
69 |
|
70 REQUIRED_PACKAGES += network/firewall |
|
71 REQUIRED_PACKAGES += shell/ksh93 |
|
72 REQUIRED_PACKAGES += system/core-os |
|
73 REQUIRED_PACKAGES += system/header |
|
74 REQUIRED_PACKAGES += system/library |
|
75 REQUIRED_PACKAGES += system/library/libpcap |