svn commit: r567121 - in head/sysutils/agedu: . files
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Wed Mar 3 18:07:48 UTC 2021
Author: sunpoet
Date: Wed Mar 3 18:07:38 2021
New Revision: 567121
URL: https://svnweb.freebsd.org/changeset/ports/567121
Log:
Convert REINPLACE_CMD to patch file
Added:
head/sysutils/agedu/files/
head/sysutils/agedu/files/patch-httpd.c (contents, props changed)
Modified:
head/sysutils/agedu/Makefile
Modified: head/sysutils/agedu/Makefile
==============================================================================
--- head/sysutils/agedu/Makefile Wed Mar 3 18:07:34 2021 (r567120)
+++ head/sysutils/agedu/Makefile Wed Mar 3 18:07:38 2021 (r567121)
@@ -18,7 +18,4 @@ GNU_CONFIGURE= yes
PLIST_FILES= bin/agedu \
man/man1/agedu.1.gz
-post-patch:
- @${REINPLACE_CMD} -e 's|HOST_NAME_MAX|_POSIX_&|' ${WRKSRC}/httpd.c
-
.include <bsd.port.mk>
Added: head/sysutils/agedu/files/patch-httpd.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/agedu/files/patch-httpd.c Wed Mar 3 18:07:38 2021 (r567121)
@@ -0,0 +1,11 @@
+--- httpd.c.orig 2020-07-05 01:20:14 UTC
++++ httpd.c
+@@ -570,7 +570,7 @@ static int make_listening_sockets(struct listenfds *fd
+ portstr = NULL; /* normalise NULL and empty string */
+
+ if (!address) {
+- char hostname[HOST_NAME_MAX];
++ char hostname[_POSIX_HOST_NAME_MAX];
+ if (gethostname(hostname, sizeof(hostname)) < 0) {
+ perror("hostname");
+ return -1;
More information about the svn-ports-head
mailing list