FreeBSD Bugzilla – Attachment 113571 Details for
Bug 155143
/usr/ports/irc/unreal - Unreal IRCD runs as root by default with no options for a dedicated user.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.48 KB, created by
tanawts
on 2011-03-01 04:20:05 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
tanawts
Created:
2011-03-01 04:20:05 UTC
Size:
1.48 KB
patch
obsolete
>diff -ruN unreal.orig/Makefile unreal/Makefile >--- unreal.orig/Makefile 2011-02-27 19:50:38.000000000 -0800 >+++ unreal/Makefile 2011-02-27 21:12:30.000000000 -0800 >@@ -28,7 +28,12 @@ > HAS_CONFIGURE= yes > USE_RC_SUBR= unrealircd.sh > >-SUB_LIST+= RUNDIR=${RUNDIR} >+USERS= ircd >+GROUPS= ircd >+ >+SUB_LIST+= RUNDIR=${RUNDIR} \ >+ USERS=${USERS} \ >+ GROUPS=${GROUPS} > > CPPFLAGS+= -I${LOCALBASE}/include > LDFLAGS+= -L${LOCALBASE}/lib >@@ -115,6 +120,8 @@ > post-patch: > @${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX}," \ > -e "s,%%RUNDIR%%,${RUNDIR}," \ >+ -e "s,%%USERS%%,${USERS}," \ >+ -e "s,%%GROUPS%%,${GROUPS}," \ > -e "s,%%LOGDIR%%,${LOGDIR}," ${WRKSRC}/include/config.h > @${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX}," \ > -e "s,%%LOGDIR%%,${LOGDIR}," ${WRKSRC}/doc/example.conf >diff -ruN unreal.orig/files/patch-config.h unreal/files/patch-config.h >--- unreal.orig/files/patch-config.h 2011-02-27 19:50:28.000000000 -0800 >+++ unreal/files/patch-config.h 2011-02-28 08:51:21.000000000 -0800 >@@ -27,3 +27,15 @@ > > /* CHROOTDIR > * >+@@ -245,8 +245,8 @@ >+ * define IRC_USER to that user name. This should only be defined if you >+ * are running as root and even then perhaps not. >+ */ >+-/* #define IRC_USER "<user name>" */ >+-/* #define IRC_GROUP "<group name>" */ >++#define IRC_USER "%%USERS%%" >++#define IRC_GROUP "%%GROUPS%%" >+ >+ >+ /* SHOW_INVISIBLE_LUSERS >+
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 155143
: 113571