Mailinglist Archive: opensuse-packaging (186 mails)

< Previous Next >
Re: [opensuse-packaging] Confusion with spec file
  • From: Stanislav Brabec <sbrabec@xxxxxxx>
  • Date: Fri, 20 Feb 2009 16:41:17 +0100
  • Message-id: <1235144477.2234.78.camel@xxxxxxxxxxxxxx>
Andrew Wafaa wrote:

My spec file has:
%pre
#Add the bongo user & group
/usr/sbin/groupadd -r bongo 2> /dev/null || :
/usr/sbin/useradd -r -g bongo -s /bin/false -c "Bongo Mail daemon"
-d /etc/bongo bongo 2> /dev/null || :

%post
#Ensure that the data directory has the correct ownership permissions
chown -R bongo /var/bongo
%fillup_only bongo

%preun
%{stop_on_removal} bongo

%postun
%{insserv_cleanup}

And actually, it is also missing %{restart_on_update} bongo in %pre
script.

And %post should probably use %{fillup_and_insserv} (syntax depends,
whether you have init script and sysconfig or only init script).

--
Best Regards / S pozdravem,

Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o. e-mail: sbrabec@xxxxxxx
Lihovarská 1060/12 tel: +420 284 028 966, +49 911 740538747
190 00 Praha 9 fax: +420 284 028 951
Czech Republic http://www.suse.cz/

--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References