diff options
author | Fernando ApesteguĂa <fernape@FreeBSD.org> | 2021-02-24 06:29:21 +0000 |
---|---|---|
committer | Fernando ApesteguĂa <fernape@FreeBSD.org> | 2021-02-24 06:29:21 +0000 |
commit | 96d1893b07026bf28afde286401f4db8bb11da97 (patch) | |
tree | e16ae3a92a09c58702a4d0a76546c93d6ebd03ca | |
parent | - Update to 3.3.16 (diff) |
net/widentd: Replace deprecated variable (fixes build)
PR: 253240
Submitted by: portmaster@bsdforge.com (maintainer)
MFH: 2021Q
-rw-r--r-- | net/widentd/Makefile | 10 | ||||
-rw-r--r-- | net/widentd/files/patch-widentd.c | 11 |
2 files changed, 19 insertions, 2 deletions
diff --git a/net/widentd/Makefile b/net/widentd/Makefile index 861a711ce9a7..be53a749bcbb 100644 --- a/net/widentd/Makefile +++ b/net/widentd/Makefile @@ -3,6 +3,7 @@ PORTNAME= widentd PORTVERSION= 1.04 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= https://BSDforge.com/projects/source/net/widentd/ @@ -12,10 +13,15 @@ COMMENT= RFC1413 auth/identd daemon providing a fixed fake reply LICENSE= BSD3CLAUSE USES= ncurses uidfix tar:xz +USE_RC_SUBR= widentd MAKE_ENV+= BINDIR="${PREFIX}/sbin" MANDIR="${PREFIX}/man/man" -MAKE_ENV+= NO_WERROR="defined" PLIST_FILES= sbin/widentd man/man8/widentd.8.gz -USE_RC_SUBR= widentd .include <bsd.port.mk> + +.if ${OSREL:R} < 13 +MAKE_ENV+=NO_WERROR=1 +.else +MAKE_ENV+=MK_WERROR=no +.endif diff --git a/net/widentd/files/patch-widentd.c b/net/widentd/files/patch-widentd.c new file mode 100644 index 000000000000..e91450cad30a --- /dev/null +++ b/net/widentd/files/patch-widentd.c @@ -0,0 +1,11 @@ +--- widentd.c.orig 2015-02-24 19:27:09 UTC ++++ widentd.c +@@ -191,7 +191,7 @@ main(int argc, char **argv) + + to.tv_sec = TIMEOUT; + to.tv_usec = 0; +- memset(buff, sizeof(buff), 0); ++ memset(buff, (0), sizeof(buff)); + do { + int n; + |