RiotGamesMinions / riot-redline-plugin

An operating system agnostic Maven plugin for creating RPMs.
Apache License 2.0
7 stars 7 forks source link

Issue #14 expose %config and %noreplace directives #15

Closed TorstenS73 closed 9 years ago

TorstenS73 commented 9 years ago

Simple solution built to resemble sample from Redlilne

<rpmfileset prefix="/tmp/rpmtest/conf" config="true" noreplace="true" file="conf/test1.conf"
              filemode="644" username="none" group="none"/>

(i.e. config="true" noreplace="true")

and current handling of file owner / file mode like this:

            <mapping>
                <directory>/etc/some/config</directory>
                <!-- ... -->
                <config>true</config>
                <noreplace>true</noreplace>
                <sources>
                    <source>${project.basedir}/target/someFile.txt</source>
                </sources>
            </mapping>

Someone may add a full Directive handling (as Redline seems to support it well in the Java API) but this would require some more complex design decisions about how the XML for that should look like, so this is at least a shortcut.

Detailts on the meaning of config versus noreplace may be found here: http://www-uxsup.csx.cam.ac.uk/~jw35/docs/rpm_config.html

KAllan357 commented 9 years ago

:+1: Thanks again!