summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2013-07-12 21:04:32 +0400
committerIgor Pashev <pashev.igor@gmail.com>2013-07-12 21:04:32 +0400
commitf175eeab1d5adaccf80bd5a343c14d80bb655241 (patch)
tree2e1453f97b0ad0fa4058a4dfd126ff43b680ee42
downloaddh-smf-f175eeab1d5adaccf80bd5a343c14d80bb655241.tar.gz
Dummy dh_smf
-rwxr-xr-xdh_smf112
1 files changed, 112 insertions, 0 deletions
diff --git a/dh_smf b/dh_smf
new file mode 100755
index 0000000..7c52208
--- /dev/null
+++ b/dh_smf
@@ -0,0 +1,112 @@
+#!/usr/bin/perl -w
+
+=head1 NAME
+
+dh_smf - install SMF services into package build directories
+
+=cut
+
+use strict;
+use Debian::Debhelper::Dh_Lib;
+use File::Find;
+
+=head1 SYNOPSIS
+
+B<dh_smf> [S<I<debhelper options>>] [B<--name=>I<name>] [B<-n>] [B<-R>] [B<-r>]
+
+=head1 DESCRIPTION
+
+B<dh_smf> is a debhelper program that is responsible for installing
+SMF manifests and scripts scripts with associated defaults files.
+
+It also automatically generates the F<postinst> and F<postrm> and F<prerm>
+commands needed to manage SMF services.
+
+=head1 FILES
+
+=over 4
+
+=item debian/I<package>.smf/
+
+If this directory exists, it is installed as lib/svc/ in the package
+build directory.
+
+=item debian/I<package>.default
+
+If this exists, it is installed into etc/default/I<package> in the package
+build directory.
+
+=back
+
+=head1 OPTIONS
+
+=over 4
+
+=item B<-n>, B<--noscripts>
+
+Do not modify F<postinst>/F<postrm>/F<prerm> scripts.
+
+=item B<-o>, B<--onlyscripts>
+
+Only modify F<postinst>/F<postrm>/F<prerm> scripts, do not actually install
+any files. May be useful if the file is shipped and/or installed by upstream
+in a way that doesn't make it easy to let B<dh_smf> find it.
+
+=item B<-R>, B<--restart-after-upgrade>
+
+Do not stop the SMF service until after the package upgrade has been
+completed. This is different than the default behavior, which stops the
+service in the F<prerm>, and starts it again in the F<postinst>.
+
+This can be useful for daemons that should not have a possibly long
+downtime during upgrade. But you should make sure that the daemon will not
+get confused by the package being upgraded while it's running before using
+this option.
+
+=item B<-r>, B<--no-restart-on-upgrade>
+
+Do not stop the SMF service on upgrade.
+
+=item B<--no-start>
+
+Do not start the service on install or upgrade. Maybe useful if
+installing display managers like lightdm or GDM.
+
+=back
+
+=head1 NOTES
+
+Note that this command is not idempotent. L<dh_prep(1)> should be called
+between invocations of this command. Otherwise, it may cause multiple
+instances of the same text to be added to maintainer scripts.
+
+=cut
+
+init(options => {
+ "r" => \$dh{R_FLAG},
+ "no-restart-on-upgrade" => \$dh{R_FLAG},
+ "no-start" => \$dh{NO_START},
+ "R|restart-after-upgrade" => \$dh{RESTART_AFTER_UPGRADE},
+});
+
+foreach my $package (@{$dh{DOPACKAGES}}) {
+ my $tmp=tmpdir($package);
+}
+
+=head1 SEE ALSO
+
+L<debhelper(7)>
+
+This program is a part of debhelper.
+
+=head1 AUTHORS
+
+Joey Hess <joeyh@debian.org> (dh_installinit)
+
+Steve Langasek <steve.langasek@canonical.com>
+
+Michael Stapelberg <stapelberg@debian.org>
+
+Igor Pashev <pashev.igor@gmail.com>
+
+=cut