Bug 172184 - irc/unreal: Patch for permissions fix of UnrealIRCD
Summary: irc/unreal: Patch for permissions fix of UnrealIRCD
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Carlo Strub
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-30 17:50 UTC by tanawts
Modified: 2012-10-07 14:40 UTC (History)
0 users

See Also:


Attachments
file.diff (795 bytes, patch)
2012-09-30 17:50 UTC, tanawts
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tanawts 2012-09-30 17:50:02 UTC
Patch to add chown modify at the end of the install.  This will correctly assign the owner of the config, log, and run directories for the owner specified by the port (by default this is ircd:ircd)

Fix: Patch attached with submission follows:
Comment 1 Carlo Strub freebsd_committer freebsd_triage 2012-10-07 12:48:53 UTC
Responsible Changed
From-To: freebsd-ports-bugs->cs

I'll take it.
Comment 2 dfilter service freebsd_committer freebsd_triage 2012-10-07 14:30:28 UTC
Author: cs
Date: Sun Oct  7 13:30:18 2012
New Revision: 305474
URL: http://svn.freebsd.org/changeset/ports/305474

Log:
  Patch to add chown modify at the end of the install. This will correctly assign
  the owner of the config, log, and run directories for the owner specified by the
  port (by default this is ircd:ircd)
  
  PR:		ports/172184
  Submitted by:	Jr Aquino <tanawts@gmail.com> (maintainer)

Modified:
  head/irc/unreal/Makefile

Modified: head/irc/unreal/Makefile
==============================================================================
--- head/irc/unreal/Makefile	Sun Oct  7 13:23:27 2012	(r305473)
+++ head/irc/unreal/Makefile	Sun Oct  7 13:30:18 2012	(r305474)
@@ -176,6 +176,9 @@ post-install:
 	@[ -f ${CONFIGDIR}/help.conf ] || ${INSTALL_DATA} ${EXAMPLESDIR}/help.conf ${CONFIGDIR}
 	@[ -f ${CONFIGDIR}/spamfilter.conf ] || ${INSTALL_DATA} ${EXAMPLESDIR}/spamfilter.conf ${CONFIGDIR}
 	@[ -f ${CONFIGDIR}/unrealircd.conf ] || ${INSTALL_DATA} ${EXAMPLESDIR}/unrealircd.conf ${CONFIGDIR}
+	@${CHOWN} -R ${USERS}:${GROUPS} ${CONFIGDIR}
+	@${CHOWN} ${USERS}:${GROUPS} ${RUNDIR}
+	@${CHOWN} ${USERS}:${GROUPS} ${LOGDIR}
 .if defined(WITH_SQLMOD)
 	@${CP} ${WRKSRC}/SQLMod/sample.conf ${CONFIGDIR}/m_sqlmod.conf
 	@${CP} ${WRKSRC}/SQLMod/Changes ${DOCSDIR}/Changes.sqlmod
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Carlo Strub freebsd_committer freebsd_triage 2012-10-07 14:30:34 UTC
State Changed
From-To: open->closed

Committed. Thank you very much.