[Bug 173459] Review Request: initng

bugzilla at redhat.com bugzilla at redhat.com
Mon Nov 28 09:06:06 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: initng


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





------- Additional Comments From gauret at free.fr  2005-11-28 04:05 EST -------
(In reply to comment #62)
> Stupid question from rpm newbie: Where do i put the script and how do I call it 
> from spec file?
 
- Write the script as a separate file, called update-initng-runlevel.sh for example,
- Put this file in your SOURCES dir,
- Add a "Source1: update-initng-runlevel.sh" line in the spec file,
- In the %install section, add a line like:
install -p -m 755 %{SOURCE1} %{buildroot}/sbin/update-initng-runlevel
And add it in you files list (which, by the way, could use "/sbin/*", but
listing files individually has advantages: it lets you know when something
didn't build)
- In the %postun section, call :
/sbin/update-initng-runlevel >/dev/null 2>&1 || :
to make sure there's no output, and that it exits 0.
- That's it.

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