Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


https://bugzilla.redhat.com/show_bug.cgi?id=731898

--- Comment #8 from Steve Jenkins <st...@stevejenkins.com> 2011-08-22 12:24:23 
EDT ---
(In reply to comment #4)
> * %post creates /var/run/opendkim and /var/spool/opendkim and /etc/opendkim 
> but
> they are not owned by the package in %files.  Better to create those in
> %install with the desired permissions, and own them in %files with permissions
> as necessary.

I'm doing this wrong, since I'm getting build errors, but I can't figure out
what's the right way. I have in %install:

test -d %{_localstatedir}/spool/%{name} || mkdir -p
%{_localstatedir}/spool/%{name}

test -d %{_localstatedir}/run/%{name} || mkdir -p %{_localstatedir}/run/%{name}

test -d %{_sysconfdir}/%{name} || mkdir %{_sysconfdir}/%{name}

and then in %files:
%{_localstatedir}/spool/%{name}
%{_localstatedir}/run/%{name}
%attr(-,%{name},%{name}) %{_localstatedir}/run/%{name}
%attr(750,%{name},%{name}) %{_sysconfdir}/%{name}/*

and I'm getting:

RPM build errors:
    File not found:
/home/fedora/rpmbuild/BUILDROOT/opendkim-2.4.2-3.fc15.i386/var/spool/opendkim
    File not found:
/home/fedora/rpmbuild/BUILDROOT/opendkim-2.4.2-3.fc15.i386/var/run/opendkim
    File not found:
/home/fedora/rpmbuild/BUILDROOT/opendkim-2.4.2-3.fc15.i386/var/run/opendkim
    File not found by glob:
/home/fedora/rpmbuild/BUILDROOT/opendkim-2.4.2-3.fc15.i386/etc/opendkim/*

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
package-review mailing list
package-review@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/package-review

Reply via email to