]> git.pld-linux.org Git - packages/wicd.git/commitdiff
- rel 7; add systemd subpackage auto/th/wicd-1_7_0-7
authorBartłomiej Zimoń <cactus@pld-linux.org>
Tue, 17 Jan 2012 17:17:16 +0000 (17:17 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    org.wicd.daemon.service -> 1.1
    wicd.service -> 1.1
    wicd.spec -> 1.50

org.wicd.daemon.service [new file with mode: 0644]
wicd.service [new file with mode: 0644]
wicd.spec

diff --git a/org.wicd.daemon.service b/org.wicd.daemon.service
new file mode 100644 (file)
index 0000000..b0287f3
--- /dev/null
@@ -0,0 +1,11 @@
+# This D-Bus service activation file is only for systemd support since
+# an auto-activated wicd would be quite surprising for those people
+# who have wicd installed but turned off.  Thus the Exec path available to
+# D-Bus is /bin/false, but systemd knows the real Exec path due to the
+# wicd systemd .service file.
+
+[D-BUS Service]
+Name=org.wicd.daemon
+Exec=/bin/false
+User=root
+SystemdService=dbus-org.wicd.daemon.service
diff --git a/wicd.service b/wicd.service
new file mode 100644 (file)
index 0000000..68d2437
--- /dev/null
@@ -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
index e60c6842f025caaacd7e202dbc36c85652f315a4..2e7b6a141a3188c5ee157d32a921aac6a17e87fd 100644 (file)
--- a/wicd.spec
+++ b/wicd.spec
@@ -12,12 +12,14 @@ Summary(hu.UTF-8):  Vezeték és vezeték néklküli hálózati menedzser
 Summary(pl.UTF-8):     Zarządca sieci przewodowych i bezprzewodowych
 Name:          wicd
 Version:       1.7.0
-Release:       6
+Release:       7
 License:       GPL v2+
 Group:         X11/Applications/Networking
 Source0:       http://downloads.sourceforge.net/wicd/%{name}-%{version}.tar.gz
 # Source0-md5: 003d2e67240989db55934553437ba32a
 Source1:       %{name}.init
+Source2:       %{name}.service
+Source3:       org.wicd.daemon.service
 Patch0:                %{name}-init_status.patch
 Patch1:                bashism.patch
 Patch2:                %{name}-desktop.patch
@@ -125,6 +127,14 @@ Wicd szkript pm-utils-hoz.
 %description -n pm-utils-wicd -l pl.UTF-8
 Skrypt wicd dla pm-utils.
 
+%package systemd
+Summary:       systemd unit for wicd
+Group:         Daemons
+Requires:      %{name} = %{version}-%{release}
+
+%description systemd
+systemd unit for wicd.
+
 %prep
 %setup -q
 %patch0 -p1
@@ -161,6 +171,12 @@ rm -rf $RPM_BUILD_ROOT
 
 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/wicd
 
+# systemd
+install -d $RPM_BUILD_ROOT/%{systemdunitdir}
+install -d $RPM_BUILD_ROOT/%{_datadir}/dbus-1/system-services
+cp -p %{SOURCE2} $RPM_BUILD_ROOT/%{systemdunitdir}
+cp -p %{SOURCE3} $RPM_BUILD_ROOT/%{_datadir}/dbus-1/system-services
+
 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
 %py_postclean
@@ -184,6 +200,15 @@ if [ "$1" = "0" ]; then
        /sbin/chkconfig --del %{name}
 fi
 
+%post systemd
+%systemd_post wicd.service
+
+%preun systemd
+%systemd_preun wicd.service
+
+%postun systemd
+%systemd_reload
+
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc AUTHORS CHANGES INSTALL README
@@ -246,3 +271,8 @@ fi
 %files -n pm-utils-wicd
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/pm-utils/sleep.d/*wicd
+
+%files systemd
+%defattr(644,root,root,755)
+%{systemdunitdir}/wicd.service
+%{_datadir}/dbus-1/system-services/org.wicd.daemon.service
This page took 0.031295 seconds and 4 git commands to generate.