freebsd-ports/sysutils/rsyslog3/bsd.rsyslog.mk
Philip M. Gollucci a44e312cc9 - Update:
rsyslog3       -> 3.22.3, unbreak
  rsyslog4       -> 4.6.5
  rsyslog4-devel -> 4.7.3
  rsyslog5       -> 5.6.2
  rsyslog5-devel -> 5.7.2
  rsyslog6-devel -> 6.1.1

Sponsored by:   RideCharge Inc. / TaxiMagic
2010-12-10 06:44:20 +00:00

35 lines
1 KiB
Makefile

PORTNAME?= rsyslog
PORTVERSION?= 3.22.3
CATEGORIES?= sysutils
MASTER_SITES?= http://www.rsyslog.com/files/download/rsyslog/
MAINTAINER?= miwi@FreeBSD.org
CONFLICTS= rsyslog-[!3].[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}
LATEST_LINK= rsyslog3${PKGNAMESUFFIX}
CONFIGURE_ARGS+= --enable-${MNAME:S|gssapi|gssapi-krb5|} \
--disable-rsyslogd --disable-klog
RUN_DEPENDS= rsyslog>=${PORTVERSION}:${PORTSDIR}/sysutils/rsyslog3
PLIST_FILES= ${MTYPES:S|^|lib/rsyslog/|:S|$|${MNAME}.so|}
PLIST= ""
DESCR?= ${.CURDIR}/../rsyslog3/pkg-descr
DISTINFO_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}
.else
LATEST_LINK= rsyslog3
.endif