From 235f8ec1ba9d5d586aab5b2dfd63dc0913a0664c Mon Sep 17 00:00:00 2001
From: Antoine Brodin <antoine@FreeBSD.org>
Date: Sat, 6 Sep 2014 13:23:59 +0000
Subject: [PATCH] Allow staging as a regular user

---
 sysutils/wmupmon/Makefile | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/sysutils/wmupmon/Makefile b/sysutils/wmupmon/Makefile
index 4215dcb0dab9..3605d2586eaf 100644
--- a/sysutils/wmupmon/Makefile
+++ b/sysutils/wmupmon/Makefile
@@ -11,11 +11,15 @@ MASTER_SITES=	http://j-z-s.com/projects/downloads/
 MAINTAINER=	rhurlin@gwdg.de
 COMMENT=	Uptime showing dockapp with a similar look to wmcpuload
 
-USES=	tar:bzip2
+USES=		tar:bzip2
 USE_XORG=	xpm
 USE_AUTOTOOLS=	autoheader
 CONFIGURE_ARGS=	--program-prefix=""
 
-PLIST_FILES=	bin/wmupmon man/man1/wmupmon.1.gz
+PLIST_FILES=	"@(,kmem,2555) bin/wmupmon" man/man1/wmupmon.1.gz
+
+post-patch:
+	@${REINPLACE_CMD} '/SETGID_FLAGS=/d' ${WRKSRC}/configure.ac
+	@${TOUCH} -mr ${WRKSRC}/configure.ac.bak ${WRKSRC}/configure.ac
 
 .include <bsd.port.mk>