Re: Packaging Arbitrary Files

2011-03-30 Thread Raphael Hertzog
Hi, On Tue, 29 Mar 2011, Russ Allbery wrote: 1. dpkg-divert the configuration file before replacing it with yours. This sort of works and sort of doesn't. dpkg doesn't deal well with diverted configuration files in all cases, and you'll get odd problems. Whether those odd problems

Packaging Arbitrary Files

2011-03-29 Thread Aaron Todd
I've got a package which inclides some arbitrary web files. I'm adding them to the install file and packaging it up and it installs fine. Now I want to add the file /etc/apache2/apache2.conf file to my package so that when I install, it overwrites or adds my custom configuration to the system so

Re: Packaging Arbitrary Files

2011-03-29 Thread Noel David Torres Taño
I've got a package which inclides some arbitrary web files. I'm adding them to the install file and packaging it up and it installs fine. Now I want to add the file /etc/apache2/apache2.conf file to my package so that when I install, it overwrites or adds my custom configuration to the

Re: Packaging Arbitrary Files

2011-03-29 Thread Aaron Todd
Hey, Thanks for responding! I've tried the conf.d file as well and it give me the same errors. In any case, I've have other custom config files that I am going to need to overwrite/customize so my main question still applies. How do I get past the overwrite issue. I just found that dpkg by

Re: Packaging Arbitrary Files

2011-03-29 Thread Fernando Lemos
Hi, On Tue, Mar 29, 2011 at 3:56 PM, Aaron Todd tod...@gmail.com wrote: Thanks for responding!  I've tried the conf.d file as well and it give me the same errors.  In any case, I've have other custom config files that I am going to need to overwrite/customize so my main question still applies. 

Re: Packaging Arbitrary Files

2011-03-29 Thread Ben Finney
Aaron Todd tod...@gmail.com writes: Thanks for responding! (Please don't top-post above the text you're responding to. Thanks.) Also, Is there any way to find out if there are files marked as a conffile inside a .deb package file? Doubtless you are busily reading the Debian Policy manual;

Re: Packaging Arbitrary Files

2011-03-29 Thread Aaron Todd
All, Thanks for your responses. I just want to make it clear, I am not trying to reinvent the wheel here. I am not trying to cause any harm to the standard Apache package, and I guess I should have made it known what my ultimate goal was. What I am trying to accomplish is to streamline my own

Re: Packaging Arbitrary Files

2011-03-29 Thread Russ Allbery
Aaron Todd tod...@gmail.com writes: Thanks for your responses. I just want to make it clear, I am not trying to reinvent the wheel here. I am not trying to cause any harm to the standard Apache package, and I guess I should have made it known what my ultimate goal was. What I am trying to

Re: Packaging Arbitrary Files

2011-03-29 Thread Paul Wise
When asking questions it is a good idea to state what you are trying to do up front rather than asking about a specific roadblock. Packages that aren't in Debian can do whatever they want, including rm -rf /usr/share/doc, deleting or modifying configuration files, installing in /opt or whatever.

Re: Packaging Arbitrary Files

2011-03-29 Thread Ben Finney
Russ Allbery r...@debian.org writes: 5. Give up on using Debian packages to do this and instead use a separate configuration management system that doesn't do its work with packages (something like Puppet or Cfengine). This is the option that most people take and it scales a lot