1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

Make syslog-ng build on 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.

Requested by:	lme (who will now give me a beer at FOSDEM)
This commit is contained in:
Ed Schouten 2010-01-20 21:42:15 +00:00
parent 9f3fdfc5d8
commit 855a9feb8e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=248239
2 changed files with 12 additions and 0 deletions

View File

@ -43,6 +43,12 @@ BUILD_DEPENDS+= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet
post-patch:
@${REINPLACE_CMD} -e 's:libnet-config:libnet11-config:g' ${WRKSRC}/configure
.if ${OSVERSION} >= 900007
@${REINPLACE_CMD} \
-e 's|utmp|utmpx|' -e 's|getutent|getutxent|' \
${WRKSRC}/configure ${WRKSRC}/src/afuser.c \
${WRKSRC}/src/utils.c ${WRKSRC}/src/utils.h
.endif
post-install:
.if !defined(NOPORTDOCS)

View File

@ -43,6 +43,12 @@ BUILD_DEPENDS+= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet
post-patch:
@${REINPLACE_CMD} -e 's:libnet-config:libnet11-config:g' ${WRKSRC}/configure
.if ${OSVERSION} >= 900007
@${REINPLACE_CMD} \
-e 's|utmp|utmpx|' -e 's|getutent|getutxent|' \
${WRKSRC}/configure ${WRKSRC}/src/afuser.c \
${WRKSRC}/src/utils.c ${WRKSRC}/src/utils.h
.endif
post-install:
.if !defined(NOPORTDOCS)