diff --git a/in/wicd=wpath.py.in b/in/wicd=wpath.py.in index 7be6084..2d7f3e3 100755 --- a/in/wicd=wpath.py.in +++ b/in/wicd=wpath.py.in @@ -43,6 +43,7 @@ sbin = '%SBIN%' pmutils = '%PMUTILS%' dbus = '%DBUS%' dbus_service = '%DBUS_SERVICE%' +systemd = '%SYSTEMD%' desktop = '%DESKTOP%' backends= '%BACKENDS%' daemon = '%DAEMON%' diff --git a/other/wicd.service b/other/wicd.service new file mode 100644 index 0000000..68d2437 --- /dev/null +++ b/other/wicd.service @@ -0,0 +1,15 @@ +[Unit] +Description=Wicd a wireless and wired network manager for Linux +After=syslog.target +Wants=network.target +Before=network.target +Conflicts=NetworkManager.service + +[Service] +Type=dbus +BusName=org.wicd.daemon +ExecStart=/usr/sbin/wicd --no-daemon + +[Install] +WantedBy=multi-user.target +Alias=dbus-org.wicd.daemon.service diff --git a/setup.py b/setup.py index bf45006..3db9f04 100644 --- a/setup.py +++ b/setup.py @@ -73,6 +73,7 @@ class configure(Command): ('pmutils=', None, 'set the directory the pm-utils hooks are stored in'), ('dbus=', None, 'set the directory the dbus config file is stored in'), ('dbus-service=', None, 'set the directory where the dbus services config files are stored in'), + ('systemd=', None, 'set the directory where the systemd system services config files are stored in'), ('desktop=', None, 'set the directory the .desktop file is stored in'), ('icons=', None, "set the base directory for the .desktop file's icons"), ('translations=', None, 'set the directory translations are stored in'), @@ -134,6 +135,7 @@ class configure(Command): self.pmutils = '/usr/lib/pm-utils/sleep.d/' self.dbus = '/etc/dbus-1/system.d/' self.dbus_service = '/usr/share/dbus-1/system-services/' + self.systemd = '/lib/systemd/system/' self.desktop = '/usr/share/applications/' self.translations = '/usr/share/locale/' self.autostart = '/etc/xdg/autostart/' @@ -498,6 +500,7 @@ try: data = [ (wpath.dbus, ['other/wicd.conf']), (wpath.dbus_service, ['other/org.wicd.daemon.service']), + (wpath.systemd, ['other/wicd.service']), (wpath.log, [empty_file]), (wpath.etc, ['other/dhclient.conf.template.default']), (wpath.encryption, [('encryption/templates/' + b) for b in