aboutsummaryrefslogtreecommitdiff
path: root/sysutils/doinkd
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2012-01-05 08:20:44 +0000
committerCy Schubert <cy@FreeBSD.org>2012-01-05 08:20:44 +0000
commit295a80f62ec31ac27c5152f314a0cd5325195938 (patch)
tree60dbd7918bc1cd7d24984d416e0462680e4dc92a /sysutils/doinkd
parent0173e7cb26bc07e8f5ba1e7a4fb81f7043e8ca0e (diff)
downloadports-295a80f62ec31ac27c5152f314a0cd5325195938.tar.gz
ports-295a80f62ec31ac27c5152f314a0cd5325195938.zip
Notes
Diffstat (limited to 'sysutils/doinkd')
-rw-r--r--sysutils/doinkd/Makefile6
-rw-r--r--sysutils/doinkd/files/patch-doinkd.c11
2 files changed, 13 insertions, 4 deletions
diff --git a/sysutils/doinkd/Makefile b/sysutils/doinkd/Makefile
index 76c85bd5a3f9..802845244682 100644
--- a/sysutils/doinkd/Makefile
+++ b/sysutils/doinkd/Makefile
@@ -7,15 +7,13 @@
PORTNAME= doinkd
PORTVERSION= 0.01
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= sysutils
MASTER_SITES= SF/idled/${PORTNAME}/${PORTVERSION}/
MAINTAINER= cy@FreeBSD.org
COMMENT= A daemon that logs out idle users and those users hogging resources
-CFLAGS+= -O0
-
MANCOMPRESSED= yes
MAN5= doinkd.cf.5
MAN8= doinkd.8
@@ -23,7 +21,7 @@ MAN8= doinkd.8
USE_RC_SUBR= ${PORTNAME}
PLIST_FILES= etc/doinkd/doinkd.cf.template sbin/doinkd
-PLIST_DIRS= etc/doinkd
+PLIST_DIRSTRY= etc/doinkd
.include <bsd.port.pre.mk>
diff --git a/sysutils/doinkd/files/patch-doinkd.c b/sysutils/doinkd/files/patch-doinkd.c
new file mode 100644
index 000000000000..466a1bee2ed0
--- /dev/null
+++ b/sysutils/doinkd/files/patch-doinkd.c
@@ -0,0 +1,11 @@
+--- doinkd.c.orig 2006-05-30 00:17:44.000000000 -0700
++++ doinkd.c 2012-01-04 12:28:11.183448967 -0800
+@@ -651,7 +651,7 @@
+ int grpcnt = 0;
+ int tgrpcnt = 0;
+
+- if (user->mgroup != 0) {
++ if (user != NULL && user->mgroup != 0) {
+ for (i = 0; i < n_users; i++) {
+ if ( (*pusers[i]).uid == user->uid)
+ who = i;