title: Debian Package Creation- How to install configuration files?
body: <p>I've been really stuck on this minor (I'm sure) issue so any help would be greatly appreciated. I've created a standard ubuntu package with dh_make. The purpose of this package  is to create a package that will set up all the ldap related packages that a system needs including it's configuration.  One of the steps I'm trying to do is to copy over an /etc/ldap.conf file while making a backup of the existing file.  How do I do this?  I tried to create a postinst script that looks essentially like the following, but I'm not clear on how the package stores the files and I get an error saying missing etc/ldap.conf file.  What's the best way to do this?  Here is my postinst script:</p>
  
  <p><code>#!/bin/bash -xv</code></p>
  
  <pre><code>install -v -b etc/ldap.conf /etc/ldap.conf  &gt; /tmp/tst 2&gt;&amp;1
  </code></pre>
  
  <p>Here is my skeleton structure:</p>
  
  <pre>
      root@hqd-clientb-16:~/navldapubuntu-0.1/debian# tree
  
  
       ├── changelog
       ├── compat
       ├── control
       ├── copyright
       ├── docs
       ├── etc
          └── ldap.conf
       ├── install
       ├── postinst
       ├── README.Debian
       ├── README.source
       ├── rules
       ├── source
         └── format
       ├── navldapubuntu
         └── etc
       ├── navldapubuntu.debhelper.log
       ├── navldapubuntu.dirs
       └── navldapubuntu.doc-base.EX
  </pre>
  
  <p>Here's some additional information of the package I created.
      <pre>
      dpkg --contents tnoldapubuntu_0.1-1_all.deb (truncated output)
      ./usr/
      ./usr/share/
      ./usr/share/doc<br>
      ./usr/share/doc/navldapubuntu/
      ./usr/share/doc/navldapubuntu/copyright
      ./usr/share/doc/navldapubuntu/README.Debian
      ./usr/share/doc/navldapubuntu/changelog.Debian.gz
      ./etc/ldap.conf
      </pre></p>