summaryrefslogtreecommitdiff
path: root/dh_install
diff options
context:
space:
mode:
authorNiels Thykier <niels@thykier.net>2015-04-29 20:01:31 +0200
committerNiels Thykier <niels@thykier.net>2015-04-29 20:01:31 +0200
commit2a9c9a24bea706be2bdb547808c4de1b72d2c01f (patch)
tree48c766c47c1527f3d60f109188a0510102779fba /dh_install
parent9a81fcd70abf0cacdeeed3f97608dd1547f84be5 (diff)
downloaddebhelper-2a9c9a24bea706be2bdb547808c4de1b72d2c01f.tar.gz
dh_install: Document how to use dh-exec to rename files
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'dh_install')
-rwxr-xr-xdh_install19
1 files changed, 19 insertions, 0 deletions
diff --git a/dh_install b/dh_install
index 5c56f131..67ebf247 100755
--- a/dh_install
+++ b/dh_install
@@ -258,6 +258,25 @@ if ($dh{LIST_MISSING} || $dh{FAIL_MISSING}) {
B<dh_install> cannot rename files or directories, it can only install them
with the names they already have into wherever you want in the package
build tree.
+
+However, renaming can be achieved by using B<dh-exec> with compat 9 or
+later. An example debian/I<package>.install file using B<dh-exec>
+could look like:
+
+ #!/usr/bin/dh-exec
+ debian/default.conf => /etc/my-package/start.conf
+
+Please remember the following three things:
+
+=over 4
+
+=item * The package must be using compat 9 or later (see L<debhelper(7)>)
+
+=item * The package will need a build-dependency on dh-exec.
+
+=item * The install file must be marked executable.
+
+=back
=head1 SEE ALSO