bernd / fpm-cookery

A tool for building software packages with fpm.
Other
460 stars 88 forks source link

Automatic configuration files #71

Open vincentbernat opened 10 years ago

vincentbernat commented 10 years ago

The configuration files need to be declared with:

config_files '/etc/init.d/serf'

When doing "real" Debian packages, everything in /etc is automatically declared as a configuration file (unless otherwise specified). It would be convenient to have the same thing.

I am still pretty new at fpm/fpm-cookery, so maybe this is a "problem" in fpm instead. Tell me.

bernd commented 10 years ago

I would be careful to add everything in /etc/ as config file by default. What about this?

config_files '/etc'

If an argument to config_files is a directory, everything in that directory will be marked as config file.

What do you think?

vincentbernat commented 10 years ago

Yes, that would ne nice.

glensc commented 8 years ago

would also be nice if config_files supported globs:

config_files '/etc/*.conf'
vincentbernat commented 8 years ago

Note that I pushed a change in FPM recently to ensure that, by default, everything in /etc is a configuration file. This is effective since v1.4.0.

glensc commented 8 years ago

can you spare details (commit link, ticket link) to answer my %config attribute questions here: #118

also is there way to invert your "everything is config" behaviour for some specific files?

vincentbernat commented 8 years ago

See https://github.com/jordansissel/fpm/pull/877

glensc commented 8 years ago

ah, it's debian specific then?

vincentbernat commented 8 years ago

Yes, it is. Didn't know the convention for RPM.

glensc commented 8 years ago

There's no such global convention in RPM so this is probably fine.

beddari commented 8 years ago

See https://github.com/jordansissel/fpm/blob/master/templates/rpm.erb#L241