diff options
author | cy <cy@FreeBSD.org> | 2010-01-25 14:16:52 +0800 |
---|---|---|
committer | cy <cy@FreeBSD.org> | 2010-01-25 14:16:52 +0800 |
commit | 58cbe1dbd89aeec7ec9a5824f2f568e50e7a900e (patch) | |
tree | 15a418dfe75d30fcfc9708c219d4eb7183777518 /sysutils | |
parent | 06cf0081dbe717caa50f906d7b134fae5ae7b9d9 (diff) | |
download | freebsd-ports-gnome-58cbe1dbd89aeec7ec9a5824f2f568e50e7a900e.tar.gz freebsd-ports-gnome-58cbe1dbd89aeec7ec9a5824f2f568e50e7a900e.tar.zst freebsd-ports-gnome-58cbe1dbd89aeec7ec9a5824f2f568e50e7a900e.zip |
Make syslog-ng3 build with HEAD again.
The code is basically built to work with Linux utmp, which offers the
same utility functions as utmpx, so it's very easy to support utmpx.
Just regex the source code to add the missing x.
Submitted by: ed (with modification for ut_name --> ut_user) who
obtained it from lee.
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/syslog-ng-devel/Makefile | 8 | ||||
-rw-r--r-- | sysutils/syslog-ng3-devel/Makefile | 8 | ||||
-rw-r--r-- | sysutils/syslog-ng3/Makefile | 8 |
3 files changed, 24 insertions, 0 deletions
diff --git a/sysutils/syslog-ng-devel/Makefile b/sysutils/syslog-ng-devel/Makefile index cdc993325e59..c12d70378b72 100644 --- a/sysutils/syslog-ng-devel/Makefile +++ b/sysutils/syslog-ng-devel/Makefile @@ -54,6 +54,14 @@ CONFIGURE_ARGS+=--enable-tcp-wrapper post-patch: @${REINPLACE_CMD} -e 's:__PREFIX__:${PREFIX}:g' ${WRKSRC}/src/syslog-ng.h @${REINPLACE_CMD} -e 's:libnet-config:libnet11-config:g' ${WRKSRC}/configure +.if ${OSVERSION} >= 900007 + @${REINPLACE_CMD} \ + -e 's|utmp|utmpx|' -e 's|getutent|getutxent|' \ + -e 's|ut_name|ut_user|' \ + ${WRKSRC}/configure ${WRKSRC}/src/afuser.c \ + ${WRKSRC}/src/utils.c ${WRKSRC}/src/utils.h +.endif + post-install: .if !defined(NOPORTDOCS) diff --git a/sysutils/syslog-ng3-devel/Makefile b/sysutils/syslog-ng3-devel/Makefile index cdc993325e59..c12d70378b72 100644 --- a/sysutils/syslog-ng3-devel/Makefile +++ b/sysutils/syslog-ng3-devel/Makefile @@ -54,6 +54,14 @@ CONFIGURE_ARGS+=--enable-tcp-wrapper post-patch: @${REINPLACE_CMD} -e 's:__PREFIX__:${PREFIX}:g' ${WRKSRC}/src/syslog-ng.h @${REINPLACE_CMD} -e 's:libnet-config:libnet11-config:g' ${WRKSRC}/configure +.if ${OSVERSION} >= 900007 + @${REINPLACE_CMD} \ + -e 's|utmp|utmpx|' -e 's|getutent|getutxent|' \ + -e 's|ut_name|ut_user|' \ + ${WRKSRC}/configure ${WRKSRC}/src/afuser.c \ + ${WRKSRC}/src/utils.c ${WRKSRC}/src/utils.h +.endif + post-install: .if !defined(NOPORTDOCS) diff --git a/sysutils/syslog-ng3/Makefile b/sysutils/syslog-ng3/Makefile index cdc993325e59..c12d70378b72 100644 --- a/sysutils/syslog-ng3/Makefile +++ b/sysutils/syslog-ng3/Makefile @@ -54,6 +54,14 @@ CONFIGURE_ARGS+=--enable-tcp-wrapper post-patch: @${REINPLACE_CMD} -e 's:__PREFIX__:${PREFIX}:g' ${WRKSRC}/src/syslog-ng.h @${REINPLACE_CMD} -e 's:libnet-config:libnet11-config:g' ${WRKSRC}/configure +.if ${OSVERSION} >= 900007 + @${REINPLACE_CMD} \ + -e 's|utmp|utmpx|' -e 's|getutent|getutxent|' \ + -e 's|ut_name|ut_user|' \ + ${WRKSRC}/configure ${WRKSRC}/src/afuser.c \ + ${WRKSRC}/src/utils.c ${WRKSRC}/src/utils.h +.endif + post-install: .if !defined(NOPORTDOCS) |