aboutsummaryrefslogtreecommitdiff
path: root/japanese/ebnetd
diff options
context:
space:
mode:
authorFernando ApesteguĂ­a <fernape@FreeBSD.org>2020-08-21 10:50:33 +0000
committerFernando ApesteguĂ­a <fernape@FreeBSD.org>2020-08-21 10:50:33 +0000
commita6204eae8a7e35cd9226eb4fd2943bbe366a2046 (patch)
treed1d3cf3cae68713939d3d9791172543a36cb9d7f /japanese/ebnetd
parent8144cb92504d26bd655d0ef663ebb076aa79dfaa (diff)
downloadports-a6204eae8a7e35cd9226eb4fd2943bbe366a2046.tar.gz
ports-a6204eae8a7e35cd9226eb4fd2943bbe366a2046.zip
japanese/ebnetd: Fix build with '-fno-common'
Fix build with '-fno-common', default of GCC 10 and Clang 11. While here, pet linters. PR: 248773 Submitted by: yasu@utahime.org (maintainer)
Notes
Notes: svn path=/head/; revision=545589
Diffstat (limited to 'japanese/ebnetd')
-rw-r--r--japanese/ebnetd/Makefile18
-rw-r--r--japanese/ebnetd/files/patch-ebnetd_defs.h.in13
2 files changed, 22 insertions, 9 deletions
diff --git a/japanese/ebnetd/Makefile b/japanese/ebnetd/Makefile
index 636bff9957e8..58801079b246 100644
--- a/japanese/ebnetd/Makefile
+++ b/japanese/ebnetd/Makefile
@@ -16,27 +16,27 @@ LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libeb.so:japanese/eb
USES= iconv:patch
+USE_RC_SUBR= ebhttpd ebnetd ndtpd
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --localstatedir=${RUNDIR} --with-logdir=${LOGDIR}
CONFIGURE_ENV= PERL=${PREFIX}/bin/perl
+SUB_FILES= pkg-message
+
USERS= ${EBNETD_USER}
GROUPS= ${EBNETD_GROUP}
-# Local variables
-LOGDIR= /var/log
-RUNDIR= /var/run
-EBNETD_USER= ebnetd
-EBNETD_GROUP= ebnetd
-
-USE_RC_SUBR= ebhttpd ebnetd ndtpd
-SUB_FILES= pkg-message
+INFO= ebnetd ebnetd-ja
PLIST_SUB= EBNETD_RUNDIR=${RUNDIR}/${PORTNAME} \
EBNETD_USER=${EBNETD_USER} \
EBNETD_GROUP=${EBNETD_GROUP}
-INFO= ebnetd ebnetd-ja
+# Local variables
+EBNETD_GROUP= ebnetd
+EBNETD_USER= ebnetd
+LOGDIR= /var/log
+RUNDIR= /var/run
post-patch:
${MV} ${WRKSRC}/doc-ja/ebnetd-ja.texi ${WRKSRC}/doc-ja/ebnetd-ja.texi.orig
diff --git a/japanese/ebnetd/files/patch-ebnetd_defs.h.in b/japanese/ebnetd/files/patch-ebnetd_defs.h.in
new file mode 100644
index 000000000000..8988534647f9
--- /dev/null
+++ b/japanese/ebnetd/files/patch-ebnetd_defs.h.in
@@ -0,0 +1,13 @@
+--- ebnetd/defs.h.in.orig 2003-06-15 11:39:27 UTC
++++ ebnetd/defs.h.in
+@@ -313,8 +313,8 @@ extern char work_path[];
+ extern char configuration_file_name[];
+ extern in_port_t listening_port;
+ extern in_port_t old_listening_port;
+-fd_set listening_files;
+-int max_listening_file;
++extern fd_set listening_files;
++extern int max_listening_file;
+ extern int accepted_in_file;
+ extern int accepted_out_file;
+ extern uid_t user_id;