Commit 4ca503ab authored by mat's avatar mat
Browse files

Fix startup.

Don't install as root:wheel/0700.

PR:		204021
Submitted by:	loox e-shell net
Sponsored by:	Absolight
parent a1d884d1
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
PORTNAME= Unreal PORTNAME= Unreal
PORTVERSION= 3.2.10.5 PORTVERSION= 3.2.10.5
PORTREVISION= 0 PORTREVISION= 1
CATEGORIES= irc ipv6 CATEGORIES= irc ipv6
MASTER_SITES= http://www.unrealircd.com/downloads/ MASTER_SITES= http://www.unrealircd.com/downloads/
DISTNAME= ${PORTNAME}${PORTVERSION} DISTNAME= ${PORTNAME}${PORTVERSION}
...@@ -111,8 +111,9 @@ post-patch: ...@@ -111,8 +111,9 @@ post-patch:
@${PATCH} -d ${WRKSRC} < ${WRKSRC}/SQLMod/patch @${PATCH} -d ${WRKSRC} < ${WRKSRC}/SQLMod/patch
.endif .endif
@${REINPLACE_CMD} -e "/Your system does not support IPv6/ s|as_fn_error|echo|" ${WRKSRC}/configure @${REINPLACE_CMD} -e "/Your system does not support IPv6/ s|as_fn_error|echo|" ${WRKSRC}/configure
do-install: 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}${MODULESDIR}
${MKDIR} ${STAGEDIR}${CONFIGDIR} || true ${MKDIR} ${STAGEDIR}${CONFIGDIR} || true
${MKDIR} ${STAGEDIR}${CONFIGDIR}/aliases || true ${MKDIR} ${STAGEDIR}${CONFIGDIR}/aliases || true
......
--- 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)
{
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment