summaryrefslogtreecommitdiffstats
path: root/sysutils/msyslog/Makefile
blob: 1eb06dbf179473d39b227d512f20e080c572f886 (plain)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Created by: Anders Nordby <anders@fix.no>
# $FreeBSD$

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_USE=	MYSQL=yes
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"|<sys/types.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 <bsd.port.mk>
OpenPOWER on IntegriCloud