-=| Dominique Dumont, Thu, Feb 19, 2009 at 12:20:16PM +0100 |=-
>
> In changelog, gregoa writes:
> > * do the TODO mentioned in debian/TODO.Debian :) proposal:
> > - in debian/rules, after `dh install', add a line:
> > mv $(CURDIR)/debian/libconfig-model-openssh-perl/usr/bin/config-edit-sshd \
> > $(CURDIR)/debian/libconfig-model-openssh-perl/usr/sbin/
> > - create debian/libconfig-model-openssh-perl.dirs with the contents
> > usr/sbin
> > - svn rm debian/TODO.Debian and delete the line from
> > debian/libconfig-model-openssh-perl.docs
> > of course fixing this in the build system would be more elegant :)
>
> Sure. I've looked at this issue with Module::Build. But there's no
> simple solution: I'd have to subclass something to treat differently
> the script that goes in /usr/bin and the other that goes in /usr/sbin.
> And I do not know where to install for non unix systems.
Here's a patch to Build.PL that seems to do what you want. Not sure
how to make it platform-agnostic, however.
Index: Build.PL
===================================================================
--- Build.PL (revision 30878)
+++ Build.PL (working copy)
@@ -34,7 +34,11 @@
license => 'lgpl',
dist_author => "Dominique Dumont (ddumont at cpan dot org)",
dist_abstract => "OpenSsh configuration files editor",
- script_files => [ qw/config-edit-ssh config-edit-sshd/ ],
+ script_files => [ qw/config-edit-ssh/ ],
+ sbin_files => { map( ( $_ => "sbin/$_" ), qw/config-edit-sshd/
) },
+ install_path => {
+ sbin => '/usr/sbin',
+ },
requires => {
perl => '5.8.0',
'Config::Model' => '0.632',
@@ -49,6 +53,8 @@
add_to_cleanup => [qw/wr_test/] ,
);
+push @{$build->bindoc_dirs}, 'blib/sbin';
$build->add_build_element('pl');
+$build->add_build_element('sbin');
$build->create_build_script;
--
dam JabberID: dam@jabber.minus273.org
Attachment:
signature.asc
Description: Digital signature