From 45963ee40cdb9c08e1f7b24710111ad79bb4b7bf Mon Sep 17 00:00:00 2001 From: beech Date: Sun, 25 Jan 2009 08:10:57 +0000 Subject: - Add logging knob PR: ports/130893 Submitted by: Michael Scheidell Approved by: Matthias Andree (maintainer) --- security/openvpn/Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'security/openvpn') diff --git a/security/openvpn/Makefile b/security/openvpn/Makefile index af4db0165d5b..152f2075947b 100644 --- a/security/openvpn/Makefile +++ b/security/openvpn/Makefile @@ -43,6 +43,22 @@ SUB_LIST+= OSVERSION=${OSVERSION} SUB_LIST+= RCSFX=${RC_SUBR_SUFFIX} +.ifdef (LOG_OPENVPN) +CFLAGS+= -DLOG_OPENVPN=${LOG_OPENVPN} +.endif + +pre-fetch: +.ifdef (LOG_OPENVPN) + @${ECHO} "Building with LOG_OPENVPN=${LOG_OPENVPN}" +.else + @${ECHO} "" + @${ECHO} "You may use the following build options:" + @${ECHO} "" + @${ECHO} " LOG_OPENVPN={Valid syslog facility}" + @${ECHO} " EXAMPLE: make LOG_OPENVPN=LOG_DAEMON" + @${ECHO} "" +.endif + # NOTE: there is no way to explicitly specify the LZO version to OpenVPN, # if LZO2 and LZO1 are installed, OpenVPN will pick LZO2. # So depend on LZO1 only if it's already there and LZO2 isn't. -- cgit