svn commit: r400241 - in head/irc/unreal: . files

Mathieu Arnold mat at FreeBSD.org
Tue Oct 27 13:44:33 UTC 2015


Author: mat
Date: Tue Oct 27 13:44:31 2015
New Revision: 400241
URL: https://svnweb.freebsd.org/changeset/ports/400241

Log:
  Fix startup.
  
  Don't install as root:wheel/0700.
  
  PR:		204021
  Submitted by:	loox e-shell net
  Sponsored by:	Absolight

Added:
  head/irc/unreal/files/patch-src_s__bsd.c   (contents, props changed)
Modified:
  head/irc/unreal/Makefile

Modified: head/irc/unreal/Makefile
==============================================================================
--- head/irc/unreal/Makefile	Tue Oct 27 13:44:27 2015	(r400240)
+++ head/irc/unreal/Makefile	Tue Oct 27 13:44:31 2015	(r400241)
@@ -3,7 +3,7 @@
 
 PORTNAME=	Unreal
 PORTVERSION=	3.2.10.5
-PORTREVISION=	0
+PORTREVISION=	1
 CATEGORIES=	irc ipv6
 MASTER_SITES=	http://www.unrealircd.com/downloads/
 DISTNAME=	${PORTNAME}${PORTVERSION}
@@ -111,8 +111,9 @@ post-patch:
 	@${PATCH} -d ${WRKSRC} < ${WRKSRC}/SQLMod/patch
 .endif
 	@${REINPLACE_CMD} -e "/Your system does not support IPv6/ s|as_fn_error|echo|" ${WRKSRC}/configure
+
 do-install:
-	${INSTALL} -m 0700 ${WRKSRC}/src/ircd ${STAGEDIR}${PREFIX}/libexec/ircd
+	${INSTALL_PROGRAM} ${WRKSRC}/src/ircd ${STAGEDIR}${PREFIX}/libexec/ircd
 	${MKDIR} ${STAGEDIR}${MODULESDIR}
 	${MKDIR} ${STAGEDIR}${CONFIGDIR} || true
 	${MKDIR} ${STAGEDIR}${CONFIGDIR}/aliases || true

Added: head/irc/unreal/files/patch-src_s__bsd.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/irc/unreal/files/patch-src_s__bsd.c	Tue Oct 27 13:44:31 2015	(r400241)
@@ -0,0 +1,11 @@
+--- src/s_bsd.c.orig	2015-08-16 06:44:25 UTC
++++ src/s_bsd.c
+@@ -455,7 +455,7 @@ int  inetport(aClient *cptr, char *name,
+ 	 */
+ 	if (cptr->fd == -1)
+ 	{
+-		cptr->fd = socket(AFINET, SOCK_STREAM, 0);
++		cptr->fd = socket(AFINET, SOCK_STREAM, IPPROTO_TCP);
+ 	}
+ 	if (cptr->fd < 0)
+ 	{


More information about the svn-ports-all mailing list