aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/rsyslog3/bsd.rsyslog.mk
blob: 4fdb3afa7af9968cc57fb44849596cd67b2116c5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
PORTNAME?=  rsyslog
PORTVERSION?=   3.17.2
CATEGORIES?=    sysutils
MASTER_SITES?=  CENKES http://download.rsyslog.com/rsyslog/
MAINTAINER?=    infofarmer@FreeBSD.org

CONFLICTS=  rsyslog-2.[0-9]*
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
GNU_CONFIGURE=  yes
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
USE_GNOME+= pkgconfig

.ifdef MNAME
PKGNAMESUFFIX?= -${MNAME}
CONFIGURE_ARGS+=    --enable-${MNAME:S|gssapi|gssapi-krb5|} \
            --disable-rsyslogd --disable-klog
RUN_DEPENDS=    rsyslog>=3:${PORTSDIR}/sysutils/rsyslog3
PLIST_FILES=    ${MTYPES:S|^|lib/rsyslog/|:S|$|${MNAME}.so|}
PLIST=  ""
DESCR?=     ${.CURDIR}/../rsyslog3/pkg-descr
MD5_FILE?=  ${.CURDIR}/../rsyslog3/distinfo

do-install:
    @${INSTALL} -d ${PREFIX}/lib/rsyslog/
.for _T in ${MTYPES}
    @${INSTALL_PROGRAM} \
        ${WRKSRC}/plugins/${_T}${MNAME}/.libs/${_T}${MNAME}.so \
        ${PREFIX}/lib/rsyslog/
.endfor
    @${ECHO_CMD} '@unexec rmdir %D/lib/rsyslog 2>/dev/null || true' >> ${TMPPLIST}
.endif # def MNAME