summaryrefslogtreecommitdiff
path: root/community-testing/systemd
diff options
context:
space:
mode:
Diffstat (limited to 'community-testing/systemd')
-rw-r--r--community-testing/systemd/PKGBUILD81
-rw-r--r--community-testing/systemd/os-release5
-rw-r--r--community-testing/systemd/systemctl-completion.patch77
-rw-r--r--community-testing/systemd/systemd.install53
4 files changed, 0 insertions, 216 deletions
diff --git a/community-testing/systemd/PKGBUILD b/community-testing/systemd/PKGBUILD
deleted file mode 100644
index 6d4171a6e..000000000
--- a/community-testing/systemd/PKGBUILD
+++ /dev/null
@@ -1,81 +0,0 @@
-# $Id: PKGBUILD 57607 2011-10-31 13:05:22Z dreisner $
-# Maintainer: Dave Reisner <dreisner@archlinux.org>
-
-pkgname=systemd
-pkgver=37
-pkgrel=2
-pkgdesc="Session and Startup manager"
-arch=('i686' 'x86_64')
-url="http://www.freedesktop.org/wiki/Software/systemd"
-license=('GPL2')
-depends=('dbus-core' 'kbd' 'libcap' 'util-linux>=2.19' 'udev>=172')
-makedepends=('gperf' 'cryptsetup' 'gtk2' 'intltool' 'libnotify')
-optdepends=('cryptsetup: required for encrypted block devices'
- 'dbus-python: systemd-analyze'
- 'gtk2: systemadm'
- 'initscripts: legacy support for hostname and vconsole setup'
- 'initscripts-systemd: native boot and initialization scripts'
- 'libnotify: systemadm'
- 'python2-cairo: systemd-analyze'
- 'systemd-arch-units: collection of native unit files for Arch daemon/init scripts')
-groups=('systemd')
-options=('!libtool' '!strip')
-backup=(etc/dbus-1/system.d/org.freedesktop.systemd1.conf
- etc/dbus-1/system.d/org.freedesktop.hostname1.conf
- etc/dbus-1/system.d/org.freedesktop.login1.conf
- etc/dbus-1/system.d/org.freedesktop.locale1.conf
- etc/dbus-1/system.d/org.freedesktop.timedate1.conf
- etc/systemd/system.conf
- etc/systemd/user.conf
- etc/systemd/systemd-logind.conf)
-install=systemd.install
-source=("http://www.freedesktop.org/software/$pkgname/$pkgname-$pkgver.tar.bz2"
- "os-release"
- systemctl-completion.patch)
-md5sums=('1435f23be79c8c38d1121c6b150510f3'
- '752636def0db3c03f121f8b4f44a63cd'
- '8acca6b7be4bfebe4174d89e4625b0ee')
-
-build() {
- cd "$srcdir/$pkgname-$pkgver"
-
- # Don't unset locale in getty
- # https://bugzilla.redhat.com/show_bug.cgi?id=663900
- sed -i -e '/^Environ.*LANG/s/^/#/' \
- -e '/^ExecStart/s/agetty/& -8/' units/getty@.service.m4
-
- # fix bash completion
- patch -Np1 < "$srcdir"/systemctl-completion.patch
-
- ./configure --prefix=/usr \
- --sysconfdir=/etc \
- --libexecdir=/usr/lib/systemd \
- --libdir=/usr/lib \
- --localstatedir=/var \
- --with-rootdir= \
- --with-rootlibdir=/lib
-
- make
-
- # fix .so links in manpages
- sed -i 's|\.so halt\.8|.so systemd.halt.8|' man/{halt,poweroff}.8
- sed -i 's|\.so systemd\.1|.so man1/systemd.1|' man/init.1
-}
-
-package() {
- cd "$srcdir/$pkgname-$pkgver"
-
- make DESTDIR="$pkgdir" install
-
- install -Dm644 "$srcdir/os-release" "$pkgdir/etc/os-release"
- printf "d /run/console 755 root root\n" > "$pkgdir/usr/lib/tmpfiles.d/console.conf"
-
- # fix systemd-analyze for python2
- sed -i '1s/python$/python2/' "$pkgdir/usr/bin/systemd-analyze"
-
- # rename man pages to avoid conflicts with sysvinit
- cd "$pkgdir/usr/share/man/man8"
- for manpage in telinit halt reboot poweroff runlevel shutdown; do
- mv {,systemd.}"$manpage.8"
- done
-}
diff --git a/community-testing/systemd/os-release b/community-testing/systemd/os-release
deleted file mode 100644
index 5e24a6031..000000000
--- a/community-testing/systemd/os-release
+++ /dev/null
@@ -1,5 +0,0 @@
-NAME="Arch Linux"
-ID=arch
-PRETTY_NAME="Arch Linux"
-ANSI_COLOR="1;36"
-
diff --git a/community-testing/systemd/systemctl-completion.patch b/community-testing/systemd/systemctl-completion.patch
deleted file mode 100644
index afa1ae73f..000000000
--- a/community-testing/systemd/systemctl-completion.patch
+++ /dev/null
@@ -1,77 +0,0 @@
-From 255e63837bc985ce6f3c3b5ce5d2856e2240138b Mon Sep 17 00:00:00 2001
-From: Dave Reisner <dreisner@archlinux.org>
-Date: Tue, 11 Oct 2011 20:53:05 -0400
-Subject: [PATCH] systemctl-completion: always invoke with --no-legend
-
-In the case of completion for the 'restart' verb, passing the invalid
-unit name (the colums header) causes completion to cease functioning
-entirely, with the error:
-
- Failed to issue method call: Unit name UNIT is not valid.
-
-This adds a small wrapper function for systemctl which can have common
-options added to it.
-
----
- src/systemctl-bash-completion.sh | 20 ++++++++++++--------
- 1 files changed, 12 insertions(+), 8 deletions(-)
-
-diff --git a/src/systemctl-bash-completion.sh b/src/systemctl-bash-completion.sh
-index 6369a6c..6ebb792 100644
---- a/src/systemctl-bash-completion.sh
-+++ b/src/systemctl-bash-completion.sh
-@@ -15,6 +15,10 @@
- # You should have received a copy of the GNU General Public License
- # along with systemd; If not, see <http://www.gnu.org/licenses/>.
-
-+__systemctl() {
-+ systemctl --no-legend "$@"
-+}
-+
- __contains_word () {
- local word=$1; shift
- for w in $*; do [[ $w = $word ]] && return 0; done
-@@ -24,7 +28,7 @@ __contains_word () {
- __filter_units_by_property () {
- local property=$1 value=$2 ; shift ; shift
- local -a units=( $* )
-- local -a props=( $(systemctl show --property "$property" -- ${units[*]} | grep -v ^$) )
-+ local -a props=( $(__systemctl show --property "$property" -- ${units[*]} | grep -v ^$) )
- for ((i=0; $i < ${#units[*]}; i++)); do
- if [[ "${props[i]}" = "$property=$value" ]]; then
- echo "${units[i]}"
-@@ -32,10 +36,10 @@ __filter_units_by_property () {
- done
- }
-
--__get_all_units () { systemctl list-units --full --all | awk ' {print $1}' ; }
--__get_active_units () { systemctl list-units --full | awk ' {print $1}' ; }
--__get_inactive_units () { systemctl list-units --full --all | awk '$3 == "inactive" {print $1}' ; }
--__get_failed_units () { systemctl list-units --full | awk '$3 == "failed" {print $1}' ; }
-+__get_all_units () { __systemctl list-units --full --all | awk ' {print $1}' ; }
-+__get_active_units () { __systemctl list-units --full | awk ' {print $1}' ; }
-+__get_inactive_units () { __systemctl list-units --full --all | awk '$3 == "inactive" {print $1}' ; }
-+__get_failed_units () { __systemctl list-units --full | awk '$3 == "failed" {print $1}' ; }
-
- _systemctl () {
- local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]}
-@@ -134,13 +138,13 @@ _systemctl () {
- comps=''
-
- elif __contains_word "$verb" ${VERBS[JOBS]}; then
-- comps=$( systemctl list-jobs | awk '{print $1}' )
-+ comps=$( __systemctl list-jobs | awk '{print $1}' )
-
- elif __contains_word "$verb" ${VERBS[SNAPSHOTS]}; then
-- comps=$( systemctl list-units --type snapshot --full --all | awk '{print $1}' )
-+ comps=$( __systemctl list-units --type snapshot --full --all | awk '{print $1}' )
-
- elif __contains_word "$verb" ${VERBS[ENVS]}; then
-- comps=$( systemctl show-environment | sed 's_\([^=]\+=\).*_\1_' )
-+ comps=$( __systemctl show-environment | sed 's_\([^=]\+=\).*_\1_' )
- compopt -o nospace
- fi
-
---
-1.7.7
-
diff --git a/community-testing/systemd/systemd.install b/community-testing/systemd/systemd.install
deleted file mode 100644
index 04b29688a..000000000
--- a/community-testing/systemd/systemd.install
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/bin/sh
-
-checkgroups() {
- if ! usr/bin/getent group lock >/dev/null; then
- usr/sbin/groupadd -g 54 lock
- fi
-}
-
-sd_booted() {
- [ -e sys/fs/cgroups/systemd ]
-}
-
-post_install() {
- checkgroups
-
- if [ ! -f etc/machine-id ]; then
- bin/systemd-machine-id-setup
- fi
-
- echo "systemd has been installed to /bin/systemd. Please ensure you append"
- echo "init=/bin/systemd to your kernel command line in your bootloader."
-}
-
-post_upgrade() {
- checkgroups
-
- if [ ! -f etc/machine-id ]; then
- bin/systemd-machine-id-setup
- fi
-
- if sd_booted; then
- bin/systemctl daemon-reexec >/dev/null
- fi
-
- newpkgver=${1%-*}
- oldpkgver=${2%-*}
-
- # catch v31 need for restarting systemd-logind.service
- if [ "$newpkgver" -ge 31 ] && [ "$oldpkgver" -lt 31 ]; then
- # but only if systemd is running
- if sd_booted; then
- bin/systemctl try-restart systemd-logind.service
- fi
- fi
-}
-
-post_remove() {
- if usr/bin/getent group lock >/dev/null; then
- usr/sbin/groupdel lock
- fi
-}
-
-# vim:set ts=2 sw=2 et: