|
|
Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug report.
Summary: Review Request: ircd-hybrid : Internet Relay Chat server
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=170536
------- Additional Comments From eric.tanguy@xxxxxxxxxxxxxx 2005-11-01 06:06
EST -------
(In reply to comment #13)
> (In reply to comment #12)
> > (In reply to comment #11)
> > > I did rpmbuild directly on the SRPM, FC4.
> > >
> > > Modules are now stripped.
> > >
> > > OK, openssl-devel requires zlib-devel.
> > >
> > > rpmlint still complains about non-standard uid and gid. Note that uid and
> > > gid
> > > conflicts need to be avoided, see
> > > http://fedoraproject.org/wiki/PackageUserCreation Currently there is no
> > > ideal
> > > solution, though you can register ircd to avoid conflicts.
> >
> > I'm not sure to well understand this problem. If in the spec file i replace
> > %{_sbindir}/useradd -s /sbin/nologin -M -r -d %{_var}/lib/ircd \
> > -c "IRC service account" ircd &>/dev/null || :
> > by
> > %{_sbindir}/fedora-useradd 10 -s /sbin/nologin -M -r -d %{_var}/lib/ircd \
> > -c "IRC service account" ircd &>/dev/null || :
> > rpmlint still complains about non-standard uid and gid.
> > I don't understand what you mean abour register ircd.
> > Sorry for that but i'm a "new" packager and i still have to learn ...
>
> It will do. Don't worry about it. It's entirely up to you if you want to use
> the
> optional fedora-useradd mechanism, and I believe you register the UID to use
> by
> editing the wiki page http://fedoraproject.org/wiki/PackageUserRegistry (UID
> 10
> is already taken).
I will take UID 14 : %{_sbindir}/fedora-useradd 14 -s /sbin/nologin -M -r -d
%{_var}/lib/ircd \
-c "IRC service account" ircd &>/dev/null || :
but i can't see how to edit the wiki page
http://fedoraproject.org/wiki/PackageUserRegistry maybe only some registered
users can ?
>
> > > The start problem is because you define ircd's home to be
> > > %{_var}/lib/ircd,
> > > which doesn't exist.
> > If i remerber well the defined home in useradd is created by default if it
> > does
> > not exist ?
>
> You've used the -M option in useradd, which means "The userâs home directory
> will not be created, even if the system wide settings from
> /etc/login.defs is to create home dirs". You should create this directory in
> the
> %install section of your spec and make sure that your package "owns" that
> directory by including it in the %files list, with an appropriate %attr clause
> to make the directory owned by user ircd and have the right permissions.
>
So if i put %{__mkdir_p} %{buildroot}%{_var}/lib/ircd in %install section
and %attr(770,root,ircd) %dir %{_var}/lib/ircd in %files section it will be ok
?
--
Configure bugmail: https://bugzilla.redhat.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
--
fedora-extras-list mailing list
fedora-extras-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-extras-list
|
|