[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

%_initscript??



I'm trying to write a spec file that will install initscripts to
the proper location on any Red Hat system.  I realize that there
are symlinks in 7.0 pointing to the proper FHS compliant
location, however I want to write my spec file to not make the
assumption that symlinks exist.  In other words, I would like to
install initscripts into:

%_initdir or %_initscripts or something like that, where this
macro expands to /etc/rc.d on Red Hat <= 6.2, and /etc on 7.0 and
up.

Does such a macro exist, or do I need to create one in %install
that reads /etc/redhat-release and creates a macro manually?

Or is some other mechanism there to grab this?  I'd prefer a
method that will work with the stock RPM version from any Red Hat
5.x and up release to maximize .spec file compatability.



--
         Mike A. Harris  -  Linux advocate  -  Open source advocate
                   Copyright 2000 all rights reserved
                               ----------
Want to run Microsoft Windows software in Linux?  You can!  VMware allows 
you to install and run other operating systems inside a window in X windows.
You can install Windows 95/98/NT/2000, FreeBSD, Solaris, and many more.
3D Games do not work yet, but virtually all office and productivity software
runs excellent.           http://www.vmware.com





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []