[Bug 200871] net-im/ejabberd: dirs under /var being created with inappropriate ownership

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jun 15 12:37:45 UTC 2015


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 at FreeBSD.org
          Reporter: marko.cupac at mimar.rs
          Assignee: ashish at FreeBSD.org
             Flags: maintainer-feedback?(ashish at 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
- at dir /var/spool/ejabberd
- at dir /var/run/ejabberdctl
- at dir /var/log/ejabberd
+ at dir(ejabberd,ejabberd,750) /var/spool/ejabberd
+ at dir(ejabberd,ejabberd,750) /var/run/ejabberdctl
+ at dir(ejabberd,ejabberd,750) /var/log/ejabberd

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


More information about the freebsd-ports-bugs mailing list