View | Details | Raw Unified | Return to bug 190563
Collapse All | Expand All

(-)./Makefile (-22 / +18 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	msyslog
4
PORTNAME=	msyslog
5
PORTVERSION=	1.08g
5
PORTVERSION=	1.08g
6
PORTREVISION=	2
6
PORTREVISION=	3
7
CATEGORIES=	sysutils
7
CATEGORIES=	sysutils
8
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}-1.X/${PORTVERSION} \
8
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}-1.X/${PORTVERSION} \
9
		http://www1.corest.com/download/msyslog/
9
		http://www1.corest.com/download/msyslog/
Lines 12-51 Link Here
12
MAINTAINER=	5u623l20@gmail.com
12
MAINTAINER=	5u623l20@gmail.com
13
COMMENT=	Flexible and easy to integrate syslog daemon
13
COMMENT=	Flexible and easy to integrate syslog daemon
14
14
15
LICENSE=	BSD4CLAUSE MIT
16
LICENSE_COMB=	dual
17
15
OPTIONS_DEFINE=	MYSQL PGSQL
18
OPTIONS_DEFINE=	MYSQL PGSQL
19
OPTIONS_SUB=	yes
20
MYSQL_USE=	MYSQL=yes
21
MYSQL_CONFIGURE_OFF=	--without-mysql
22
PGSQL_USE=	PGSQL=yes
23
PGSQL_CONFIGURE_OFF=	--without-pgsql
16
24
17
WRKSRC=		${WRKDIR}/${DISTNAME:S/-src//}
25
WRKSRC=		${WRKDIR}/${DISTNAME:S/-src//}
18
26
19
GNU_CONFIGURE=	yes
27
GNU_CONFIGURE=	yes
20
USES=		gmake
28
USES=		gmake
21
USE_RC_SUBR=	msyslogd
29
USE_RC_SUBR=	msyslogd
22
PKGMESSAGE=	${WRKDIR}/pkg-message
30
SUB_FILES=	pkg-message
23
USE_LDCONFIG=	yes
31
USE_LDCONFIG=	yes
24
MANCOMPRESSED=	yes
32
MANCOMPRESSED=	yes
25
33
26
PORTSCOUT=	skipv:1.09d
34
PORTSCOUT=	skipv:1.09d
27
35
28
NO_STAGE=	yes
29
.include <bsd.port.options.mk>
36
.include <bsd.port.options.mk>
30
37
31
.if ${OSVERSION} > 900006
38
.if ${OSVERSION} > 900006
32
EXTRA_PATCHES=	${PATCHDIR}/utmpx-src-modules-om_classic.c
39
EXTRA_PATCHES=	${PATCHDIR}/utmpx-src-modules-om_classic.c
33
.endif
40
.endif
34
41
35
.if ${PORT_OPTIONS:MMYSQL}
36
USE_MYSQL=	yes
37
MAN8+=	om_mysql.8
38
.else
39
CONFIGURE_ARGS+=	--without-mysql
40
.endif
41
42
.if ${PORT_OPTIONS:MPGSQL}
43
USE_PGSQL=	yes
44
MAN8+=	om_pgsql.8
45
.else
46
CONFIGURE_ARGS+=	--without-pgsql
47
.endif
48
49
post-patch:
42
post-patch:
50
	@${FIND} ${WRKSRC}/src/modules -name "*.c" | \
43
	@${FIND} ${WRKSRC}/src/modules -name "*.c" | \
51
	    ${XARGS} ${REINPLACE_CMD} -e "s|typedef int socklen_t;||g"
44
	    ${XARGS} ${REINPLACE_CMD} -e "s|typedef int socklen_t;||g"
Lines 55-66 Link Here
55
	    ${XARGS} ${REINPLACE_CMD} -e 's|/dev/log|/var/run/log|g' \
48
	    ${XARGS} ${REINPLACE_CMD} -e 's|/dev/log|/var/run/log|g' \
56
	    -e "s|/etc/syslog.conf|${PREFIX}/etc/syslog.conf|g"
49
	    -e "s|/etc/syslog.conf|${PREFIX}/etc/syslog.conf|g"
57
	@${FIND} ${WRKSRC}/src/ -name "*.bak" -delete
50
	@${FIND} ${WRKSRC}/src/ -name "*.bak" -delete
51
	@${REINPLACE_CMD} -e 's|@prefix@|${STAGEDIR}${PREFIX}|g' \
52
		${WRKSRC}/src/modules/Makefile.in \
53
		${WRKSRC}/src/peo/Makefile.in \
54
		${WRKSRC}/src/Makefile.in
55
	@${REINPLACE_CMD} -e 's|@mandir@|${STAGEDIR}${PREFIX}/man|g' \
56
		${WRKSRC}/src/man/GNUmakefile.in
58
57
59
post-install:
58
post-install:
60
	@${MKDIR} ${EXAMPLESDIR}
59
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
61
	${INSTALL_DATA} ${WRKSRC}/src/examples/* ${EXAMPLESDIR}
60
	${INSTALL_DATA} ${WRKSRC}/src/examples/* ${STAGEDIR}${EXAMPLESDIR}
62
	@${CAT} ${PKGDIR}/pkg-message | ${SED} -e 's|%%PREFIX%%|${PREFIX}|g' \
63
	    > ${PKGMESSAGE}
64
	@${CAT} ${PKGMESSAGE}
65
61
66
.include <bsd.port.mk>
62
.include <bsd.port.mk>
(-)./files/pkg-message.in (+20 lines)
Line 0 Link Here
1
================================================================================
2
To replace FreeBSD's standard syslogd with msyslog, do this:
3
4
1) Create a configuration in %%PREFIX%%/etc/syslog.conf.
5
    See %%PREFIX%%/share/examples/msyslog for examples.
6
7
2) Set up a startup script in %%PREFIX%%/etc/rc.d.
8
    For your convinience, a msyslog.sh has been provided.
9
    put this in /etc/rc.conf
10
  
11
    msyslogd_enable="YES"
12
13
3) Pass right values from man pages to /etc/rc.conf for 
14
    msyslogd_flags=""
15
16
4) Stop the standard FreeBSD syslogd from starting automatically by putting this
17
    in the end of /etc/rc.conf:
18
19
    syslogd_enable="NO"
20
================================================================================
(-)./pkg-message (-20 lines)
Lines 1-20 Link Here
1
================================================================================
2
To replace FreeBSD's standard syslogd with msyslog, do this:
3
4
1) Create a configuration in %%PREFIX%%/etc/syslog.conf.
5
    See %%PREFIX%%/share/examples/msyslog for examples.
6
7
2) Set up a startup script in %%PREFIX%%/etc/rc.d.
8
    For your convinience, a msyslog.sh has been provided.
9
    put this in /etc/rc.conf
10
  
11
    msyslogd_enable="YES"
12
13
3) Pass right values from man pages to /etc/rc.conf for 
14
    msyslogd_flags=""
15
16
4) Stop the standard FreeBSD syslogd from starting automatically by putting this
17
    in the end of /etc/rc.conf:
18
19
    syslogd_enable="NO"
20
================================================================================
(-)./pkg-plist (+2 lines)
Lines 14-19 Link Here
14
man/man8/om_udp.8.gz
14
man/man8/om_udp.8.gz
15
man/man8/peochk.8.gz
15
man/man8/peochk.8.gz
16
man/man8/syslogd.8.gz
16
man/man8/syslogd.8.gz
17
%%MYSQL%%/man/man8/om_mysql.8.gz
18
%%PGSQL%%/man/man8/om_pgsql.8.gz
17
%%EXAMPLESDIR%%/im_mymodule.c
19
%%EXAMPLESDIR%%/im_mymodule.c
18
%%EXAMPLESDIR%%/om_mymodule.c
20
%%EXAMPLESDIR%%/om_mymodule.c
19
%%EXAMPLESDIR%%/syslog.conf.classic
21
%%EXAMPLESDIR%%/syslog.conf.classic

Return to bug 190563