I am trying to create an RPM in Fedora 15 that will install my software, but for my software to work correctly after installation, I also need to edit other (configuration) files on the system, add users / groups, etc. Some of these tasks are restricted to the root user. I know that I never created an RPM as root, and I understand why this is such a bad idea. However, if I add script shell statements to my specification file (% post,% prep ... any section) to edit the necessary files, add users / groups, etc. My rpmbuild command does not work with the message "Permission denied" (not surprising).
What is the best way to handle this? Should I first tell my users to install my package first, and then possibly run the shell script as root to configure all this? It is not very elegant. I was hoping to allow the user to do everything with one simple command, such as "yum install mysoftware".
Most of my research shows that perhaps this should not even be done using RPMs. I read many parts of Maximum RPM and many other useful resources, but did not find what I was looking for. I am new to creating RPM, but I was able to successfully create a simple specification file for my software ... I just can’t properly configure all the settings after unpacking and installing the package in the right place. Any input is very welcome!
flash source
share