--- /dev/null
+# This file is part of systemd.
+#
+# systemd is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+[Unit]
+Description=/etc/rc.d/rc.local Compatibility
+ConditionFileIsExecutable=/etc/rc.d/rc.local
+
+[Service]
+Type=forking
+ExecStart=/etc/rc.d/rc.local start
+TimeoutSec=0
+StandardOutput=tty
+RemainAfterExit=yes
+SysVStartPriority=99
Source0: ftp://distfiles.pld-linux.org/src/%{name}-%{version}.tar.gz
# Source0-md5: 00d0cbd7bb54c89fed07ebce20a4a0b7
Source1: rc-scripts-systemd-tmpfiles.d.conf
+Source2: rc-local.service
URL: http://svn.pld-linux.org/trac/svn/wiki/packages/rc-scripts
Patch0: %{name}-svn.patch
BuildRequires: autoconf
# make /etc/init.d symlink relative
ln -nfs rc.d/init.d $RPM_BUILD_ROOT/etc/init.d
+# systemd
install -D %{SOURCE1} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/rc-scripts.conf
+install -D %{SOURCE2} $RPM_BUILD_ROOT/lib/systemd/system/rc-local.service
%if "%{pld_release}" == "ac"
rm -rf $RPM_BUILD_ROOT/etc/init
%attr(755,root,root) /lib/firmware/firmware-loader.sh
/usr/lib/tmpfiles.d/rc-scripts.conf
+/lib/systemd/system/rc-local.service
%dir /lib/rc-scripts
%attr(755,root,root) /lib/rc-scripts/ifdown-br