# Created by: Anders Nordby # $FreeBSD: head/sysutils/msyslog/Makefile 517643 2019-11-15 10:12:08Z tobik $ PORTNAME= msyslog PORTVERSION= 1.08g PORTREVISION= 3 CATEGORIES= sysutils MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-1.X/${PORTVERSION} \ http://www1.corest.com/download/msyslog/ DISTNAME= ${PORTNAME}-v${PORTVERSION}-src MAINTAINER= bofh@FreeBSD.org COMMENT= Flexible and easy to integrate syslog daemon LICENSE= BSD4CLAUSE MIT LICENSE_COMB= dual OPTIONS_DEFINE= MYSQL PGSQL EXAMPLES OPTIONS_SUB= yes MYSQL_USES= mysql MYSQL_CONFIGURE_OFF= --without-mysql PGSQL_USES= pgsql PGSQL_CONFIGURE_OFF= --without-pgsql WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//} GNU_CONFIGURE= yes USES= gmake USE_RC_SUBR= msyslogd SUB_FILES= pkg-message USE_LDCONFIG= yes PORTSCOUT= skipv:1.09a,1.09b,1.09c,1.09d post-patch: @${FIND} ${WRKSRC}/src/modules -name "*.c" | \ ${XARGS} ${REINPLACE_CMD} -e "s|typedef int socklen_t;||g" @${FIND} ${WRKSRC}/src/peo -name "*.h" | \ ${XARGS} ${REINPLACE_CMD} -e 's|"typedefs.h"||g' @${FIND} ${WRKSRC}/src/ -name "*.*" | \ ${XARGS} ${REINPLACE_CMD} -e 's|/dev/log|/var/run/log|g' \ -e "s|/etc/syslog.conf|${PREFIX}/etc/syslog.conf|g" @${FIND} ${WRKSRC}/src/ -name "*.bak" -delete @${REINPLACE_CMD} -e 's|@prefix@|${STAGEDIR}${PREFIX}|g' \ ${WRKSRC}/src/modules/Makefile.in \ ${WRKSRC}/src/peo/Makefile.in \ ${WRKSRC}/src/Makefile.in @${REINPLACE_CMD} -e 's|@mandir@|${STAGEDIR}${PREFIX}/man|g' \ ${WRKSRC}/src/man/GNUmakefile.in post-install: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/src/examples/* ${STAGEDIR}${EXAMPLESDIR} .include