Hi,
I'm trying to build an RPM that installs a file in /etc/init.d, my
configuration is:
--snippet--
<mapping>
<directory>/etc/init.d</directory>
<filemode>500</filemode>
<username>user</username>
<groupname>user</groupname>
<sources>
<source>
<location>${project.build.directory}/etc/init.d</location>
<includes>
<include>file</include>
</includes>
</source>
</sources>
</mapping>
--snippet--
This creates this line in the spec file:
%attr(500,user,user) /etc/init.d/
When I attempt to install/update the RPM, I get:
file /etc/init.d from install of myrpm-1.0-1 conflicts with file from
package someredhatrpm-1.0-1
This is natural as the RPM is apparently going to create a directory
that's owned by another RPM that was installed previously (/etc/init.d
comes with one of the very first packages you install anyway).
If I tweak the spec file manually and I replace the aforementioned line by:
%attr(500,user,user) /etc/init.d/file
recreate the rpm [with rpmbuild] and install or upgrade it, then I
have no probelms at all.
Is there any way to configure the plugin so that it maps only the
files as opposed to the directories only? I'm currently using a
postinstall script, but would rather avoid that.
Thanks,
Gabriel
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email