QEMU HARDDISK   
  5   	ˆl–Ðz¾” ”Ê:”Ê�jãm\ŠbÑ¿�þDÌ Y¹BÓâ ÄB<çÈƒ|@ÇÅÄ #ð    	#!/usr/bin/perl -w

=head1 NAME

dh_systemd_enable - enable/disable systemd unit files

=cut

use strict;
use warnings;
use Debian::Debhelper::Dh_Lib;
use File::Find;

our $VERSION = DH_BUILTIN_VERSION;

=head1 SYNOPSIS

B<dh_systemd_enable> [S<I<debhelper options>>] [B<--no-enable>] [B<--name=>I<name>] [S<I<unit file> ...>]

=head1 DESCRIPTION

B<dh_systemd_enable> is a debhelper program that is responsible for enabling
and disabling systemd unit files.

In the simple case, it finds all unit files installed by a package (e.g.
bacula-fd.service) and enables them. It is not necessary that the machine
actually runs systemd during package installation time, enabling happens on all
machines in order to be able to switch from sysvinit to systemd and back.

In the complex case, you can call B<dh_systemd_enable> and B<dh_systemd_start>
manually (by overwriting the debian/rules targets) and specify flags per unit
file. An example is colord, which ships colord.service, a dbus-activated
service without an [Install] section. This service file cannot be enabled or
disabled (a state called "static" by systemd) because it has no
[Install] section. Therefore, running dh_systemd_enable does not make sense.

For only generating blocks for specific service files, you need to pass them as
arguments, e.g. B<dh_systemd_enable quota.service> and B<dh_systemd_enable
--name=quotarpc quotarpc.service>.

=head1 FILES

=over 4

=item debian/I<package>.service, debian/I<package>@.service

If this exists, it is installed into F<<  lib/systemd/system/I<package>.service >> (or
F<< lib/systemd/system/I<package>@.service >>) in the package build directory.

=item debian/I<package>.tmpfile

If this exists, it is installed into usr/lib/tmpfiles.d/I<package>.conf in the
package build directory.

=item debian/I<package>.target, debian/I<package>@.target

If this exists, it is installed into F<< lib/systemd/system/I<package>.target >> (or
F<< lib/systemd/system/I<package>@.target >>) in the package build directory.

=item debian/I<package>.socket, debian/I<package>@.socket

If this exists, it is installed into F<< lib/systemd/system/I<package>.socket >> (or
F<< lib/systemd/system/I<package>@.socket >>) in the package build directory.

=item debian/I<package>.mount

If this exists, it is installed into F<< lib/systemd/system/I<package>.mount >>
in the package build directory.

=item debian/I<package>.path, debian/I<package>@.path

If this exists, it is installed into F<< lib/systemd/system/I<package>.path >> (or
F<< lib/systemd/system/I<package>@.path >>) in the package build directory.

=item debian/I<package>.timer, debian/I<package>@.timer

If this exists, it is installed into F<< lib/systemd/system/I<package>.timer >> (or
F<< lib/systemd/system/I<package>@.timer >>) in the package build directory.

=back

=head1 OPTIONS

=over 4

=item B<--no-enable>

Disable the service(s) on purge, but do not enable them on install.

B<Note> that this option does not affect whether the services are
started.  That is controlled by L<dh_systemd_start(1)> (using e.g. its
B<--no-start> option).

=item B<--name=>I<name>

Install the service file as I<name.service> instead of the default filename,
which is the I<package.service>. When this parameter is used,
B<dh_systemd_enable> looks for and installs files named
F<debian/package.name.service> instead of the usual F<debian/package.service>.

=back

=head1 NOTES

Note that this command is not idempotent. L<dh_prep(1)> should be called
between invocations of this command (with the same arguments). Otherwise, it
may cause multiple instances of the same text to be added to maintainer
scripts.

Note that B<dh_systemd_enable> should be run before B<dh_installinit>.
The default sequence in B<dh> does the right thing, this note is only relevant
when you are calling B<dh_systemd_enable> manually.

=cut

if (not compat(10)) {
	error("dh_systemd_enable is no longer used in compat >= 11, please use dh_installsystemd instead");
}

init(options => {
	"n