[Bug 170536] Review Request: ircd-hybrid : Internet Relay Chat server

bugzilla at redhat.com bugzilla at redhat.com
Tue Nov 1 11:56:11 UTC 2005


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 paul at city-fan.org  2005-11-01 06:56 EST -------
(In reply to comment #14)
> (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 ?

You need to be added to the EditGroup for the Wiki. Do you have a Wiki account,
and if so, what is it called?

> > > > 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 ?

That's the idea, though I'd be inclined to make the directory owned by the user
ircd as well as the group:

%attr(770,ircd,ircd) %dir %{_var}/lib/ircd


-- 
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.




More information about the fedora-extras-list mailing list