Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=systemd.git;a=commitdiff;h=d0a96d207e774972238a1ec5f2eda077b0c1c60d

commit d0a96d207e774972238a1ec5f2eda077b0c1c60d
Author: bouleetbil <bouleet...@frogdev.info>
Date:   Tue Nov 23 17:58:29 2010 +0000

systemd-13-1-i686
*new package
*DON'T USE IT except if you want break your system
*should add some post instal ...

diff --git a/source/base/systemd/FrugalBuild b/source/base/systemd/FrugalBuild
new file mode 100644
index 0000000..f557296
--- /dev/null
+++ b/source/base/systemd/FrugalBuild
@@ -0,0 +1,143 @@
+# Compiling Time: 0.08 SBU
+# Maintainer: bouleetbil <bouleet...@frogdev.info>
+
+USE_CRYPTSETUP=${USE_CRYPTSETUP:-"n"}
+
+pkgname=systemd
+pkgver=13
+pkgrel=1
+pkgdesc="A System and Service Manager"
+url="http://www.freedesktop.org/wiki/Software/systemd";
+source=(http://www.freedesktop.org/software/$pkgname/$pkgname-$pkgver.tar.bz2 
Frugalware.diff \
+   functions functions-{de,hu,it}.po inittab rc.4 rc.4-de.po rc.6 
rc.{de,en,hu,it}\
+       rc.functions rc.K rc.local rc.M rc.messages rc.reboot 
rc.reboot-{de,hu}.po \
+       rc.S rc.single rc.single-{de,hu}.po rc.sysvinit)
+up2date="Flasttar http://www.freedesktop.org/software/$pkgname";
+depends=('dbus' 'udev' 'pam' 'coreutils' 'libcap')
+if Fuse $USE_CRYPTSETUP; then
+               depends=("${depen...@]}"  'cryptsetup-luks')
+fi
+
+makedepends=('vala' 'tcp_wrappers')
+groups=('base')
+archs=('i686' 'x86_64' 'ppc')
+
+#TODO : Remove backup, source rc for SysVinit when all rc scripts used systemd
+backup=(etc/{inittab,rc.d/rc.local})
+
+replaces=('sysvinit')
+provides=('sysvinit')
+conflicts=('sysvinit')
+
+Fconfopts="$Fconfopts  --disable-selinux --with-distro=frugalware 
--with-pamlibdir=/lib/security \
+       --with-rootdir=/usr 
--with-dbussystemservicedir=/usr/share/dbus-1/system-services \
+       --with-dbusinterfacedir=/usr/share/dbus-1/interfaces"
+subpkgs=('systemd-gtk')
+subdescs=('Graphical front-end for systemd.')
+subrodepends=("$pkgname=$pkgver")
+subdepends=('dbus-glib gtk+2 polkit libnotify')
+subgroups=('xapps')
+subarchs=('i686 x86_64 ppc')
+
+build()
+{
+       #create dbus dir
+       Fmkdir usr/share/dbus-1/services
+
+       #build systemd
+       Fcd
+       Fpatchall
+       Fautoreconf
+       Fmake
+       Fmakeinstall
+
+       #Create SysV compatibility symlinks.
+       Fmkdir sbin
+       Fln /bin/systemd /sbin/init
+       Fln /bin/systemctl /sbin/reboot
+       Fln /bin/systemctl /sbin/halt
+       Fln /bin/systemctl /sbin/poweroff
+       Fln /bin/systemctl /sbin/shutdown
+       Fln /bin/systemctl /sbin/telinit
+       Fln /bin/systemctl /sbin/runlevel
+
+       #TODO :
+       #this part should be removed when ALL rc scripts will used systemd 
syntax
+       #old function SysV
+       Ffile /lib/initscripts/functions
+
+       for i in $Fsrcdir/functions-*.po ; do
+               slang=`basename $i .po|sed 's|functions-||'`
+               llang=${slang}_`echo $slang | tr [:lower:] [:upper:]`
+               Fmkdir /lib/initscripts/messages/$llang/LC_MESSAGES
+               msgfmt -o 
$Fdestdir/lib/initscripts/messages/$llang/LC_MESSAGES/functions.mo $i
+       done
+
+       Ffile /etc/inittab
+
+       Fexe rc.{6,functions,K,local,M,S,sysvinit} /etc/rc.d/
+
+       Frcd2 4
+       Frcd2 reboot
+       Frcd2 single
+
+       Ffile rc.{messages,de,en,hu,it} /etc/rc.d/rc.messages/
+
+       Fln rc.6 /etc/rc.d/rc.0
+       Fln rc.reboot /etc/rc.d/rc.halt
+       #end backport SysV
+
+
+       Frm etc/systemd/system/*.target.wants
+
+       #don't have tmpfs on /var/run and /var/lock
+       Frm lib/systemd/system/local-fs.target.wants/var-run.mount
+       Frm lib/systemd/system/local-fs.target.wants/var-lock.mount
+
+       touch $Fdestdir/etc/systemd/system/runlevel2.target || Fdie
+       touch $Fdestdir/etc/systemd/system/runlevel3.target || Fdie
+       touch $Fdestdir/etc/systemd/system/runlevel4.target || Fdie
+       touch $Fdestdir/etc/systemd/system/runlevel5.target || Fdie
+
+       # Make sure these directories are properly owned
+       Fmkdir lib/systemd/system/basic.target.wants
+       Fmkdir lib/systemd/system/default.target.wants
+       Fmkdir lib/systemd/system/dbus.target.wants
+       Fmkdir lib/systemd/system/syslog.target.wants
+
+       #split gtk fronted
+       # TODO : Added .desktop for start fronted
+       Fsplit systemd-gtk usr/bin/systemadm
+       Fsplit systemd-gtk  usr/bin/systemd-gnome-ask-password-agent
+       Fsplit systemd-gtk 
usr/share/polkit-1/actions/org.freedesktop.systemd1.policy
+       Fsplit systemd-gtk  usr/share/man/man1/systemadm.*
+}
+
+sha1sums=('060d77bf089a7e3ae0e118af5558858139109a2c' \
+          '471cec5cf2546860acde7c302428b2a3af5650c9' \
+          '05a469d19798c45bb0b8e477992d3c5f56e7ea7e' \
+          '2da5b17f95c2331eda19daa6aede672a4d872b73' \
+          '83e5879898d7750b157552606a62f0f7bf1f0c97' \
+          'f16abb4a07b323a739b5b12d24d793559a22192d' \
+          '7bcd997c7da95785feb21bc169a539429393942f' \
+          '29ad61caa6b0c83b1299a03a742a76a614345231' \
+          '513b3fe42c714738af40596987a4fae71ae820d6' \
+          '173c5d41d3fe58ba9a12711d63dfab31c2db8f09' \
+          '7d507be266edd617545118f4bff80ab064744230' \
+          'be843c12f8e7b3db98efd7bea36ba8974c65e2bc' \
+          '16b704d3ec13c0e980cec2c4f800fa7f736ac279' \
+          '1c4c151b15ac5c038207a5fc472988eeca1b8f27' \
+          'f023cb3f93bf976cf51fa9ab2ab3cffb19ec7264' \
+          '0128bd09abf2c49d42949e92c2822bacfc148d7a' \
+          '5adafd4851d987ac5310b8a2ca214c82dec87224' \
+          '6947c8fe272e268207587b48b8de3c3ebefd0ad5' \
+          'c2075ca5be14e318cac2abd2c424715e399d7bfd' \
+          '4cfdf216c8bd51df2e59bb0a81d3d98e8d1e93c0' \
+          'd17c85fb0e68256a28c4ccefa4d5224b1522b9f6' \
+          '96df0467b3922d51f55a7a2c2b4fd214a53450f5' \
+          '61d3ebdae6366e9c41a0887278cb2bbefd972eca' \
+          '4f0279cec1d270216080a1178ab1539f7e260030' \
+          '64db4a11baebe28eaf5d71119c2cb5f091170957' \
+          'aa911a93c7ab733b1729f6a9c174b687aa2db58d' \
+          'b55eb418f8fef43077cec29c103b70fcb4d21329')
+
diff --git a/source/base/systemd/Frugalware.diff 
b/source/base/systemd/Frugalware.diff
new file mode 100644
index 0000000..4e89665
--- /dev/null
+++ b/source/base/systemd/Frugalware.diff
@@ -0,0 +1,24 @@
+--- systemd-13/configure.ac.old        2010-11-18 22:53:52.000000000 +0000
++++ systemd-13/configure.ac    2010-11-23 16:50:56.000000000 +0000
+@@ -284,6 +284,7 @@
+                 AC_CHECK_FILE(/etc/arch-release,with_distro="arch")
+                 AC_CHECK_FILE(/etc/gentoo-release,with_distro="gentoo")
+                 AC_CHECK_FILE(/etc/slackware-version,with_distro="slackware")
++              AC_CHECK_FILE(/etc/frugalware-release,with_distro="frugalware")
+         fi
+         if test "z$with_distro" = "z"; then
+                 with_distro=`uname -s`
+@@ -356,6 +357,13 @@
+                 AC_DEFINE(TARGET_SLACKWARE, [], [Target is Slackware])
+                 M4_DISTRO_FLAG=-DTARGET_SLACKWARE=1
+                 ;;
++       frugalware)
++                SYSTEM_SYSVINIT_PATH=/etc/rc.d
++                SYSTEM_SYSVRCND_PATH=/etc
++                SPECIAL_SYSLOG_SERVICE=syslog-ng.service
++                AC_DEFINE(TARGET_ARCH, [], [Target is Frugalware])
++                M4_DISTRO_FLAG=-DTARGET_FRUGALWARE=1
++                ;;
+         other)
+                 AS_IF([test "x$with_syslog_service" = "x"],
+                         [AC_MSG_ERROR([With --distro=other, you must pass 
--with-syslog-service= to configure])])
diff --git a/source/base/systemd/functions-de.po 
b/source/base/systemd/functions-de.po
new file mode 100644
index 0000000..a13d9c1
--- /dev/null
+++ b/source/base/systemd/functions-de.po
@@ -0,0 +1,53 @@
+# functions.
+# Copyright (C) 2005 THE functions'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the functions package.
+# Marcus Habermehl <bmh198...@yahoo.de>, 2005.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: functions\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2005-11-12 19:30+0100\n"
+"PO-Revision-Date: 2005-11-12 19:38+0100\n"
+"Last-Translator: Marcus Habermehl <bmh198...@yahoo.de>\n"
+"Language-Team: German <translation-team...@lists.sourceforge.net>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#: functions:36
+msgid "   OK   "
+msgstr "     OK     "
+
+#: functions:38
+msgid "   ON   "
+msgstr "     AN     "
+
+#: functions:40
+msgid "  OFF   "
+msgstr "    AUS     "
+
+#: functions:42
+msgid "SKIPPING"
+msgstr "ÜBERSPRUNGEN"
+
+#: functions:44
+msgid " FAILED "
+msgstr "   FEHLER   "
+
+#: functions:65
+msgid "Please use $0 $actions"
+msgstr "Bitte benutzen Sie $0 $actions"
+
+#: functions:87
+msgid "Starting $daemon"
+msgstr "Starte $daemon"
+
+#: functions:96
+msgid "$daemon is"
+msgstr "$daemon ist"
+
+#: functions:105
+msgid "Stopping $daemon"
+msgstr "Stoppe $daemon"
diff --git a/source/base/systemd/functions-hu.po 
b/source/base/systemd/functions-hu.po
new file mode 100644
index 0000000..4239f35
--- /dev/null
+++ b/source/base/systemd/functions-hu.po
@@ -0,0 +1,53 @@
+# functions.
+# Copyright (C) 2005 THE functions'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the functions package.
+# Marcus Habermehl <bmh198...@yahoo.de>, 2005.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: functions\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2005-11-12 19:30+0100\n"
+"PO-Revision-Date: 2005-11-12 19:42+0100\n"
+"Last-Translator: Marcus Habermehl <bmh198...@yahoo.de>\n"
+"Language-Team: Hungarian <translation-team...@lists.sourceforge.net>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-2\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+
+#: functions:36
+msgid "   OK   "
+msgstr "   OK   "
+
+#: functions:38
+msgid "   ON   "
+msgstr "   BE   "
+
+#: functions:40
+msgid "  OFF   "
+msgstr "   KI   "
+
+#: functions:42
+msgid "SKIPPING"
+msgstr "KIHAGYÁS"
+
+#: functions:44
+msgid " FAILED "
+msgstr "  HIBA  "
+
+#: functions:65
+msgid "Please use $0 $actions"
+msgstr "Használat: $0 $actions"
+
+#: functions:87
+msgid "Starting $daemon"
+msgstr "A(z) $daemon indítása"
+
+#: functions:96
+msgid "$daemon is"
+msgstr "A(z) $daemon"
+
+#: functions:105
+msgid "Stopping $daemon"
+msgstr "A(z) $daemon leállítása"
diff --git a/source/base/systemd/functions-it.po 
b/source/base/systemd/functions-it.po
new file mode 100644
index 0000000..4686f16
--- /dev/null
+++ b/source/base/systemd/functions-it.po
@@ -0,0 +1,53 @@
+# functions.
+# Copyright (C) 2005 THE functions'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the functions package.
+# Marcus Habermehl <bmh198...@yahoo.de>, 2005.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: functions\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2005-11-12 19:30+0100\n"
+"PO-Revision-Date: 2005-11-12 19:42+0100\n"
+"Last-Translator: Marcus Habermehl <bmh198...@yahoo.de>\n"
+"Language-Team: Italian <t...@lists.linux.it>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#: functions:36
+msgid "   OK   "
+msgstr ""
+
+#: functions:38
+msgid "   ON   "
+msgstr ""
+
+#: functions:40
+msgid "  OFF   "
+msgstr ""
+
+#: functions:42
+msgid "SKIPPING"
+msgstr ""
+
+#: functions:44
+msgid " FAILED "
+msgstr " ERRORE "
+
+#: functions:65
+msgid "Please use $0 $actions"
+msgstr ""
+
+#: functions:87
+msgid "Starting $daemon"
+msgstr "L'avviamento del $daemon"
+
+#: functions:96
+msgid "$daemon is"
+msgstr ""
+
+#: functions:105
+msgid "Stopping $daemon"
+msgstr "L'arresto del $daemon"
diff --git a/source/base/systemd/inittab b/source/base/systemd/inittab
new file mode 100644
index 0000000..9d66239
--- /dev/null
+++ b/source/base/systemd/inittab
@@ -0,0 +1,76 @@
+#
+# inittab      This file describes how the INIT process should set up
+#              the system in a certain run-level.
+#
+# Version:     @(#)inittab             2.04    17/05/93        MvS
+#                                       2.10    02/10/95        PV
+#                                       3.00    02/06/1999      PV
+#                                       4.00    04/10/2002      PV
+#                                       4.01    28/07/2004      VM
+#
+# Modified by:  Vajna Miklos <vmik...@frugalware.org>
+# Modified by: Patrick J. Volkerding, <volke...@slackware.com>
+# Author:      Miquel van Smoorenburg, <miqu...@drinkel.nl.mugnet.org>
+#
+
+# These are the default runlevels in Frugalware:
+#   0 = halt
+#   1 = single user mode
+#   2 = unused (but configured the same as runlevel 3)
+#   3 = multiuser mode (text mode)
+#   4 = X11 with KDM/GDM/XDM (default Frugalware runlevel)
+#   5 = unused (but configured the same as runlevel 3)
+#   6 = reboot
+
+# Default runlevel. (Do not set to 0 or 6)
+id:4:initdefault:
+
+# System initialization (runs when system boots).
+si:S:sysinit:/etc/rc.d/rc.S
+
+# Script to run when going single user (runlevel 1).
+su:1S:wait:/etc/rc.d/rc.K
+
+# Script to run when going multi user.
+rc:2345:wait:/etc/rc.d/rc.M
+
+# What to do at the "Three Finger Salute".
+ca::ctrlaltdel:/sbin/shutdown -t5 -r now
+
+# Runlevel 0 halts the system.
+l0:0:wait:/etc/rc.d/rc.0
+
+# Runlevel 6 reboots the system.
+l6:6:wait:/etc/rc.d/rc.6
+
+# What to do when power fails.
+pf::powerfail:/sbin/genpowerfail start
+
+# If power is back, cancel the running shutdown.
+pg::powerokwait:/sbin/genpowerfail stop
+
+# These are the standard console login getties in multiuser mode:
+c1:12345:respawn:/sbin/frugalwaregetty 38400 tty1 linux
+c2:12345:respawn:/sbin/frugalwaregetty 38400 tty2 linux
+c3:12345:respawn:/sbin/frugalwaregetty 38400 tty3 linux
+c4:12345:respawn:/sbin/frugalwaregetty 38400 tty4 linux
+c5:12345:respawn:/sbin/frugalwaregetty 38400 tty5 linux
+c6:12345:respawn:/sbin/frugalwaregetty 38400 tty6 linux
+c7:12345:respawn:/sbin/frugalwaregetty 38400 tty7 linux
+c8:12345:respawn:/sbin/frugalwaregetty 38400 tty8 linux
+c9:12345:respawn:/sbin/frugalwaregetty 38400 tty9 linux
+c10:12345:respawn:/sbin/frugalwaregetty 38400 tty10 linux
+c11:12345:respawn:/sbin/frugalwaregetty 38400 tty11 linux
+
+# Local serial lines:
+#s1:12345:respawn:/sbin/agetty -L ttyS0 9600 vt100
+#s2:12345:respawn:/sbin/agetty -L ttyS1 9600 vt100
+
+# Dialup lines:
+#d1:12345:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS0 vt100
+#d2:12345:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS1 vt100
+
+# Script to run when using an X window system.
+x1:4:wait:/etc/rc.d/rc.4
+
+# End of /etc/inittab
diff --git a/source/base/systemd/rc.4 b/source/base/systemd/rc.4
new file mode 100644
index 0000000..efb5a64
--- /dev/null
+++ b/source/base/systemd/rc.4
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+# (c) 2005      Marcus Habermehl <bmh198...@yahoo.de>
+# (c) 2003-2005 Vajna Miklos <vmik...@frugalware.org>
+# rc.4 for Frugalware
+# distriuted under GPL license
+
+TEXTDOMAIN=4
+TEXTDOMAINDIR=/lib/initscripts/messages
+
+[ -d /tmp/.ICE-unix ] || mkdir -m 1777 /tmp/.ICE-unix
+
+if [ -e /etc/sysconfig/desktop ]; then
+       . /etc/sysconfig/desktop
+       $desktop
+       logger $"Failed to use '$desktop' session manager."
+fi
+logger $"No /etc/sysconfig/desktop, can't use runlevel 4 without it."
+sleep 5m
diff --git a/source/base/systemd/rc.4-de.po b/source/base/systemd/rc.4-de.po
new file mode 100644
index 0000000..b948604
--- /dev/null
+++ b/source/base/systemd/rc.4-de.po
@@ -0,0 +1,25 @@
+# rc.4.
+# Copyright (C) 2005 THE rc.4'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the rc.4 package.
+# Marcus Habermehl <bmh198...@yahoo.de>, 2005.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: rc.4\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2005-11-11 21:56+0100\n"
+"PO-Revision-Date: 2005-11-11 21:58+0100\n"
+"Last-Translator: Marcus Habermehl <bmh198...@yahoo.de>\n"
+"Language-Team: German <translation-team...@lists.sourceforge.net>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ASCII\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#: rc.4:16
+msgid "Failed to use '$desktop' session manager."
+msgstr "Konnte den Sitzungsmanager '$desktop' nicht verwenden."
+
+#: rc.4:18
+msgid "No /etc/sysconfig/desktop, can't use runlevel 4 without it."
+msgstr "Kann Runlevel 4 nicht verwenden, da /etc/sysconfig/desktop nicht 
gefunden wurde."
diff --git a/source/base/systemd/rc.6 b/source/base/systemd/rc.6
new file mode 100644
index 0000000..015f25a
--- /dev/null
+++ b/source/base/systemd/rc.6
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+# (c) 2003-2004 Vajna Miklos <vmik...@frugalware.org>
+# rc.6 for Frugalware
+# distriuted under GPL license
+
+export PATH=/sbin:/usr/sbin:/bin:/usr/bin
+. /etc/profile.d/lang.sh
+
+/etc/rc.d/rc.sysvinit 0 100 K
diff --git a/source/base/systemd/rc.K b/source/base/systemd/rc.K
new file mode 100644
index 0000000..d2236b2
--- /dev/null
+++ b/source/base/systemd/rc.K
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+# (c) 2003-2004 Vajna Miklos <vmik...@frugalware.org>
+# rc.K for Frugalware
+# distriuted under GPL license
+
+export PATH=/sbin:/usr/sbin:/bin:/usr/bin
+. /etc/profile.d/lang.sh
+
+/etc/rc.d/rc.sysvinit 0 100 K
diff --git a/source/base/systemd/rc.M b/source/base/systemd/rc.M
new file mode 100644
index 0000000..72a06a8
--- /dev/null
+++ b/source/base/systemd/rc.M
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+# (c) 2003-2004 Vajna Miklos <vmik...@frugalware.org>
+# rc.M for Frugalware
+# distriuted under GPL license
+
+export PATH=/sbin:/usr/sbin:/bin:/usr/bin
+. /etc/profile.d/lang.sh
+
+/etc/rc.d/rc.sysvinit 30 100 S
diff --git a/source/base/systemd/rc.S b/source/base/systemd/rc.S
new file mode 100644
index 0000000..1fa9de3
--- /dev/null
+++ b/source/base/systemd/rc.S
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+# (c) 2003-2004 Vajna Miklos <vmik...@frugalware.org>
+# rc.S for Frugalware
+# distriuted under GPL license
+
+export PATH=/sbin:/usr/sbin:/bin:/usr/bin
+. /etc/profile.d/lang.sh
+
+/etc/rc.d/rc.sysvinit 0 30 S
diff --git a/source/base/systemd/rc.de b/source/base/systemd/rc.de
new file mode 100644
index 0000000..63432a9
--- /dev/null
+++ b/source/base/systemd/rc.de
@@ -0,0 +1,2 @@
+ok='     OK     '
+error='   FEHLER   '
diff --git a/source/base/systemd/rc.en b/source/base/systemd/rc.en
new file mode 100644
index 0000000..5c921c9
--- /dev/null
+++ b/source/base/systemd/rc.en
@@ -0,0 +1,2 @@
+ok='   OK   '
+error=' FAILED '
diff --git a/source/base/systemd/rc.functions b/source/base/systemd/rc.functions
new file mode 100644
index 0000000..7fb9275
--- /dev/null
+++ b/source/base/systemd/rc.functions
@@ -0,0 +1,35 @@
+#!/bin/bash
+
+# (c) 2004 Vajna Miklos <vmik...@frugalware.org>
+# rc.functions for Frugalware
+# distributed under GPL License
+
+
+start() {
+       echo -ne "\e[01;36m::\e[0m \e[01m$1\e[0m"
+}
+
+stop() {
+       echo -ne "\e[01;36m::\e[0m \e[01m$1\e[0m"
+}
+
+print() {
+       # $1: color; $2: message
+       if [[ "$(echo $LANG | cut -d _ -f 1)" == "de" ]] ; then
+               cols=$(($(tput cols) - 14))
+       else
+               cols=$(($(tput cols) - 10))
+       fi
+       echo -ne $'\e['${cols}$'G\e[01m[\e[01;'${1}m
+       echo -n "$2"
+       echo -e '\e[0;39m\e[01m]\e[0m'
+}
+
+ok() {
+       case $1 in
+               0)      print 32 "$ok";;
+               *)      print 31 "$error";;
+       esac
+}
+
+. /etc/rc.d/rc.messages/rc.messages
diff --git a/source/base/systemd/rc.hu b/source/base/systemd/rc.hu
new file mode 100644
index 0000000..bafb9a5
--- /dev/null
+++ b/source/base/systemd/rc.hu
@@ -0,0 +1,2 @@
+ok='   OK   '
+error='  HIBA  '
diff --git a/source/base/systemd/rc.it b/source/base/systemd/rc.it
new file mode 100644
index 0000000..bc9844f
--- /dev/null
+++ b/source/base/systemd/rc.it
@@ -0,0 +1,2 @@
+ok='   OK   '
+error=' ERRORE '
diff --git a/source/base/systemd/rc.local b/source/base/systemd/rc.local
new file mode 100644
index 0000000..70cd9f2
--- /dev/null
+++ b/source/base/systemd/rc.local
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+# rc.local for FrugalWare
+
+#. /etc/rc.d/rc.functions
+
+# chkconfig: 2345 99 01
+# description: Local system initialization script
+
+# Put any local setup commands in here:
diff --git a/source/base/systemd/rc.messages b/source/base/systemd/rc.messages
new file mode 100644
index 0000000..bb545b1
--- /dev/null
+++ b/source/base/systemd/rc.messages
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+# (c) 2004 Vajna Miklos <vmik...@frugalware.org>
+# rc.messages for FrugalWare
+# distributed under GPL License
+
+messagesdir=/etc/rc.d/rc.messages
+
+# note that this should be in $messagesdir and not
+# in /var/lib/frugalware/messages
+
+myname=`echo $0 |sed "s/^[SK[:digit:]]//g"|tr '/' '\n'|tr '.' '\n'|tail -n 1`
+lang=`echo $LANG|cut -d _ -f 1`
+
+for i in $messagesdir/$myname $messagesdir/rc
+do
+       if [ -e $i.$lang ]; then
+           . $i.$lang
+       else
+           . $i.en
+       fi
+done
diff --git a/source/base/systemd/rc.reboot b/source/base/systemd/rc.reboot
new file mode 100644
index 0000000..b98a74d
--- /dev/null
+++ b/source/base/systemd/rc.reboot
@@ -0,0 +1,36 @@
+#!/bin/bash
+
+# (c) 2005 Marcus Habermehl <bmh198...@yahoo.de>
+# (c) 2003 Vajna Miklos <vmik...@frugalware.org>
+# rc.reboot for Frugalware
+# distributed under GPL License
+
+# chkconfig: 06 99 50
+# description: Halt or reboot the system
+
+source /lib/initscripts/functions
+TEXTDOMAIN=reboot
+TEXTDOMAINDIR=/lib/initscripts/messages
+
+actions=(start)
+
+if [ -z $2 ] ; then
+       rl=4
+else
+       rl=$2
+fi
+
+rc_start()
+{
+       if (( ${rl} == 0 )) ; then
+               poweroff
+       else
+               msg $"Rebooting the system"
+               reboot
+               ok $?
+       fi
+}
+
+rc_exec $1
+
+# vim: ft=sh
diff --git a/source/base/systemd/rc.reboot-de.po 
b/source/base/systemd/rc.reboot-de.po
new file mode 100644
index 0000000..28ea83e
--- /dev/null
+++ b/source/base/systemd/rc.reboot-de.po
@@ -0,0 +1,21 @@
+# rc.reboot.
+# Copyright (C) 2005 THE rc.reboot'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the rc.reboot package.
+# Marcus Habermehl <bmh198...@yahoo.de>, 2005.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: rc.reboot\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2005-11-11 22:10+0100\n"
+"PO-Revision-Date: 2005-11-11 22:11+0100\n"
+"Last-Translator: Marcus Habermehl <bmh198...@yahoo.de>\n"
+"Language-Team: German <translation-team...@lists.sourceforge.net>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#: rc.reboot:27
+msgid "Rebooting the system"
+msgstr "Starte das System neu"
diff --git a/source/base/systemd/rc.reboot-hu.po 
b/source/base/systemd/rc.reboot-hu.po
new file mode 100644
index 0000000..1488a26
--- /dev/null
+++ b/source/base/systemd/rc.reboot-hu.po
@@ -0,0 +1,21 @@
+# rc.reboot.
+# Copyright (C) 2005 THE rc.reboot'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the rc.reboot package.
+# Marcus Habermehl <bmh198...@yahoo.de>, 2005.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: rc.reboot\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2005-11-11 22:10+0100\n"
+"PO-Revision-Date: 2005-11-11 22:11+0100\n"
+"Last-Translator: Marcus Habermehl <bmh198...@yahoo.de>\n"
+"Language-Team: Hungarian <translation-team...@lists.sourceforge.net>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-2\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+
+#: rc.reboot:27
+msgid "Rebooting the system"
+msgstr "A rendszer újraindítása"
diff --git a/source/base/systemd/rc.single b/source/base/systemd/rc.single
new file mode 100644
index 0000000..5e0ec2a
--- /dev/null
+++ b/source/base/systemd/rc.single
@@ -0,0 +1,34 @@
+#!/bin/bash
+
+# (c) 2003-2008 Miklos Vajna <vmik...@frugalware.org>
+# (c) 2005 Marcus Habermehl <bmh198...@yahoo.de>
+# rc.single for Frugalware
+# distributed under GPL License
+
+# chkconfig: 1 00 96
+# description: Goes to single-user mode
+
+source /lib/initscripts/functions
+TEXTDOMAIN=single
+TEXTDOMAINDIR=/lib/initscripts/messages
+
+OMITPIDS=
+if [ -e /var/run/sendsigs.omit ]; then
+       for pid in $(cat /var/run/sendsigs.omit);
+       do
+               OMITPIDS="${OMITPIDS:+$OMITPIDS }-o $pid"
+       done
+fi
+
+msg $"Sending all processes the SIGTERM signal"
+killall5 -15 $OMITPIDS
+ok $?
+
+msg $"Sending all processes the SIGKILL signal"
+sleep 5
+killall5 -9 $OMITPIDS
+ok $?
+
+if [ "$1" = "start" ]; then
+       init -t1 1
+fi
diff --git a/source/base/systemd/rc.single-de.po 
b/source/base/systemd/rc.single-de.po
new file mode 100644
index 0000000..8b6e8ac
--- /dev/null
+++ b/source/base/systemd/rc.single-de.po
@@ -0,0 +1,25 @@
+# rc.single.
+# Copyright (C) 2005 THE rc.single'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the rc.single package.
+# Marcus Habermehl <bmh198...@yahoo.de>, 2005.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: rc.single\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2005-11-11 22:16+0100\n"
+"PO-Revision-Date: 2005-11-11 22:17+0100\n"
+"Last-Translator: Marcus Habermehl <bmh198...@yahoo.de>\n"
+"Language-Team: German <translation-team...@lists.sourceforge.net>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#: rc.single:14
+msgid "Sending all processes the SIGTERM signal"
+msgstr "Sende das Signal SIGTERM an alle Prozesse"
+
+#: rc.single:18
+msgid "Sending all processes the SIGKILL signal"
+msgstr "Sende das Signal SIGKILL an alle Prozesse"
diff --git a/source/base/systemd/rc.single-hu.po 
b/source/base/systemd/rc.single-hu.po
new file mode 100644
index 0000000..2e239ae
--- /dev/null
+++ b/source/base/systemd/rc.single-hu.po
@@ -0,0 +1,25 @@
+# rc.single.
+# Copyright (C) 2005 THE rc.single'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the rc.single package.
+# Marcus Habermehl <bmh198...@yahoo.de>, 2005.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: rc.single\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2005-11-11 22:16+0100\n"
+"PO-Revision-Date: 2005-11-11 22:18+0100\n"
+"Last-Translator: Marcus Habermehl <bmh198...@yahoo.de>\n"
+"Language-Team: Hungarian <translation-team...@lists.sourceforge.net>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-2\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+
+#: rc.single:14
+msgid "Sending all processes the SIGTERM signal"
+msgstr "SIGTERM szignál küldése a folyamatoknak"
+
+#: rc.single:18
+msgid "Sending all processes the SIGKILL signal"
+msgstr "SIGKILL szignál küldése a folyamatoknak"
diff --git a/source/base/systemd/rc.sysvinit b/source/base/systemd/rc.sysvinit
new file mode 100644
index 0000000..390fbfe
--- /dev/null
+++ b/source/base/systemd/rc.sysvinit
@@ -0,0 +1,45 @@
+#!/bin/bash
+
+# (c) 2003-2006 Miklos Vajna <vmik...@frugalware.org>
+# (c) 2005 Marcus Habermehl <bmh198...@yahoo.de>
+# from an example from Miquel van Smoorenburg <miqu...@cistron.nl>
+# rc.sysvinit for Frugalware
+# distributed under GPL License
+
+splash_prog()
+{
+       if [ ! -z "$(eval pidof splashy)" ] ;then
+               splashy_update "progress $1" 2>/dev/null
+       fi
+       if [ ! -z "$(eval pidof plymouthd)" ] ;then
+               /bin/plymouth --update="progress $1" 2>/dev/null
+       fi
+}
+
+# Run kill scripts in the previous runlevel if not "none"
+if [[ "${PREVLEVEL}" != "N" ]] ; then
+       for script in /etc/rc.d/rc${RUNLEVEL}.d/K* ; do
+               ${script} stop ${RUNLEVEL}
+               if [[ "$3" == "K" ]] ; then
+                       [ -z "${prog}" ] && prog=$1
+                       prog=$((${prog}+(($2-$1)/$(ls 
/etc/rc.d/rc${RUNLEVEL}.d/K*|wc -l))))
+                       splash_prog ${prog}
+               fi
+       done
+       unset prog
+else
+       stty onlcr 0>&1
+       [ -d /proc/1 ] || mount none -t proc /proc
+fi
+
+# Now do the startup scripts:
+for script in /etc/rc.d/rc${RUNLEVEL}.d/S* ; do
+       ${script} start ${RUNLEVEL}
+       if [[ "$3" == "S" ]] ; then
+               [ -z "${prog}" ] && prog=$1
+               prog=$((${prog}+(($2-$1)/$(ls /etc/rc.d/rc${RUNLEVEL}.d/S*|wc 
-l))))
+               splash_prog ${prog}
+       fi
+done
+
+splash_prog $2
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to