From 38c96c42e188eb799def7d5ee2d2d1f93105cee4 Mon Sep 17 00:00:00 2001 From: krion Date: Tue, 12 Oct 2004 17:48:58 +0000 Subject: Fix build on 4.x PR: ports/72589 Submitted by: cperciva --- sysutils/estctrl/Makefile | 9 ++++++++- sysutils/estctrl/files/estctrl.c.diff.fbsd4 | 11 +++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 sysutils/estctrl/files/estctrl.c.diff.fbsd4 (limited to 'sysutils') diff --git a/sysutils/estctrl/Makefile b/sysutils/estctrl/Makefile index 4ede46b035a7..7efebce0ccdf 100644 --- a/sysutils/estctrl/Makefile +++ b/sysutils/estctrl/Makefile @@ -7,6 +7,7 @@ PORTNAME= estctrl PORTVERSION= 0.7 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= http://www.daemonology.net/freebsd-est/ @@ -25,6 +26,12 @@ PLIST_FILES= sbin/estctrl \ MAKE_ENV= BINDIR=${PREFIX}/sbin +.include + +.if ${OSVERSION} < 500101 +EXTRA_PATCHES= ${FILESDIR}/estctrl.c.diff.fbsd4 +.endif + post-extract: ${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ ${FILESDIR}/estctrl.sh > ${WRKDIR}/estctrl.sh @@ -33,4 +40,4 @@ post-install: ${INSTALL_SCRIPT} ${WRKDIR}/estctrl.sh ${PREFIX}/etc/rc.d/estctrl.sh ${CAT} ${PKGMESSAGE} -.include +.include diff --git a/sysutils/estctrl/files/estctrl.c.diff.fbsd4 b/sysutils/estctrl/files/estctrl.c.diff.fbsd4 new file mode 100644 index 000000000000..68fbb8a5f2ee --- /dev/null +++ b/sysutils/estctrl/files/estctrl.c.diff.fbsd4 @@ -0,0 +1,11 @@ +--- estctrl.c.orig Tue Oct 12 17:46:13 2004 ++++ estctrl.c Tue Oct 12 17:46:21 2004 +@@ -28,7 +28,7 @@ + */ + + #include +-#include ++#include + #include + + #include -- cgit