diff --git a/net/delegate/Makefile b/net/delegate/Makefile index 6da498805f1b..52b2d3ce9261 100644 --- a/net/delegate/Makefile +++ b/net/delegate/Makefile @@ -1,60 +1,60 @@ PORTNAME= delegate PORTVERSION= 9.9.13 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= net www MASTER_SITES= http://www.delegate.org/anonftp/DeleGate/ DISTNAME= ${PORTNAME}${PORTVERSION} MAINTAINER= portmaster@BSDforge.com COMMENT= General purpose TCP/IP proxy system WWW= http://www.delegate.org/delegate/ LICENSE= AIST LICENSE_NAME= aist LICENSE_FILE= ${WRKSRC}/LICENSE.txt LICENSE_PERMS= dist-mirror pkg-mirror auto-accept BROKEN_mips= fails to build: gmake[1]: [Makefile:116: mkmake.exe] Error 1 BROKEN_mips64= fails to build: gmake[1]: [Makefile:116: mkmake.exe] Error 1 USES= compiler:c11 cpe gmake SUB_FILES= pkg-message ADMIN?= admin@example.com CFLAGS+= -x c++ -std=gnu++98 PLIST_FILES= sbin/delegated etc/rc.d/delegated.sh-dist PORTDOCS= CHANGES COPYRIGHT HowToDG.html IPv6NOTE.txt \ Manual.htm jpconv.htm tutor-en.htm tutor-jp.htm OPTIONS_DEFINE= DOCS post-extract: @${LN} ${WRKSRC}/CHANGES ${WRKSRC}/COPYRIGHT \ ${WRKSRC}/IPv6NOTE.txt ${WRKSRC}/doc post-patch: # Prevent "filesystem was touched prior to 'make install' phase" warning; # allow unattended (non-interactive) builds @${REINPLACE_CMD} -e 's,"$$(XDG)",& DGROOT=${WRKDIR},' \ ${WRKSRC}/Makefile @${REINPLACE_CMD} -E '/ADMIN/s,undef,${ADMIN}, ; \ s,-F(esign|ver),& DGROOT=${WRKDIR},' ${WRKSRC}/src/Makefile do-install: ${INSTALL_PROGRAM} ${WRKSRC}/src/delegated ${STAGEDIR}${PREFIX}/sbin ${INSTALL_SCRIPT} ${FILESDIR}/delegated.sh \ ${STAGEDIR}${PREFIX}/etc/rc.d/delegated.sh-dist # Re-sign the executable @${MKDIR} ${WRKDIR}/tmp @${CP} ${STAGEDIR}${PREFIX}/sbin/delegated ${WRKDIR}/tmp/dg @${CHMOD} +w ${STAGEDIR}${PREFIX}/sbin/delegated @${WRKDIR}/tmp/dg DGROOT=${WRKDIR}/tmp/ -Fesign -w ${STAGEDIR}${PREFIX}/sbin/delegated @${CHMOD} -w ${STAGEDIR}${PREFIX}/sbin/delegated do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/doc/,} ${STAGEDIR}${DOCSDIR} .include diff --git a/net/delegate/files/patch-src_spinach.c b/net/delegate/files/patch-src_spinach.c new file mode 100644 index 000000000000..e4cb18450b72 --- /dev/null +++ b/net/delegate/files/patch-src_spinach.c @@ -0,0 +1,27 @@ +--- src/spinach.c.orig 2024-02-05 14:49:26.506828000 -0800 ++++ src/spinach.c 2024-02-05 14:49:29.073850000 -0800 +@@ -1,6 +1,7 @@ + const char *SIGN_spinach="{FILESIGN=spinach.c:20141022165616+0900:6d5712e8b172965e:Author@DeleGate.ORG:QAuaedIMjRwBwNOQV6i5Npwxzs5vGiO1LUZGAPvCx/z2/MaibLcm/aDgC8rvQcW099Jkdr9EknO0VzSUXBxHJ3eVBUQmhPQQydP4bqOafcJSwJaccO7R56eqsZ/8/qnDfJEhHyArArSsCPsxJtDo/36DRt1q461MBcYDDWLyasY=}"; + /*//////////////////////////////////////////////////////////////////////// +-Copyright (c) 2009 National Institute of Advanced Industrial Science and Technology (AIST) ++Copyright (c) 2009 National Institute of Advanced Industrial Science and ++ Technology (AIST) + AIST-Product-ID: 2000-ETL-198715-01, H14PRO-049, H15PRO-165, H18PRO-443 + + Permission to use this material for noncommercial and/or evaluation +@@ -57,8 +58,8 @@ + int eccActivity = 0; + + #ifndef SHUT_WR +-#define SHUT_WR SD_SEND /* 0 or 1 ? */ +-#define SHUT_RDWR SD_BOTH /* 2 */ ++#define SHUT_WR (0|1)/*SD_SEND*/ /* 0 or 1 ? */ ++#define SHUT_RDWR (2)/*SD_BOTH*/ /* 2 */ + #endif + int ShutdownSocketRDWR(int fd){ + return shutdown(fd,SHUT_RDWR); +@@ -5003,4 +5004,3 @@ + } + return 0; + } +-