aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2010-01-25 06:16:52 +0000
committerCy Schubert <cy@FreeBSD.org>2010-01-25 06:16:52 +0000
commit689f2bafdac873b0566fb7bc36bc29645f0eb07b (patch)
tree569a3014bcb2dc799789768100544881441c65e9
parent0af0250188d6827ddc7bbdc6dfdfb4e0a39363e4 (diff)
downloadports-689f2bafdac873b0566fb7bc36bc29645f0eb07b.tar.gz
ports-689f2bafdac873b0566fb7bc36bc29645f0eb07b.zip
Notes
-rw-r--r--sysutils/syslog-ng-devel/Makefile8
-rw-r--r--sysutils/syslog-ng3-devel/Makefile8
-rw-r--r--sysutils/syslog-ng3/Makefile8
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)