Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jun 2015 12:37:44 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 200871] net-im/ejabberd: dirs under /var being created with inappropriate ownership
Message-ID:  <bug-200871-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200871

            Bug ID: 200871
           Summary: net-im/ejabberd: dirs under /var being created with
                    inappropriate ownership
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ashish@FreeBSD.org
          Reporter: marko.cupac@mimar.rs
          Assignee: ashish@FreeBSD.org
             Flags: maintainer-feedback?(ashish@FreeBSD.org)

Every time after installing and/or updating ejabberd, directories
/var/run/ejabberdctl, /var/log/ejabberd and /var/spool/ejabberd are (re)created
with root:wheel ownership. In order for ejabberd to run, they need to be owned
by ejabberd:ejabberd.

I don't know a thing about porting, but reading a few paragraphs of porter's
handbook, I guess it could be solved by changing a few lines in pkg-plist.

Here's diff:
--- pkg-plist.orig      2015-06-15 14:19:43.000000000 +0200
+++ pkg-plist   2015-06-15 14:22:36.000000000 +0200
@@ -408,6 +408,6 @@
 %%PORTDOCS%%%%DOCSDIR%%/webadmmain.png
 %%PORTDOCS%%%%DOCSDIR%%/webadmmainru.png
 %%PORTDOCS%%%%DOCSDIR%%/yozhikheader.png
-@dir /var/spool/ejabberd
-@dir /var/run/ejabberdctl
-@dir /var/log/ejabberd
+@dir(ejabberd,ejabberd,750) /var/spool/ejabberd
+@dir(ejabberd,ejabberd,750) /var/run/ejabberdctl
+@dir(ejabberd,ejabberd,750) /var/log/ejabberd

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-200871-13>