[arch-commits] Commit in systemd-sysvcompat/trunk (PKGBUILD locale.sh)

Dave Reisner dreisner at archlinux.org
Sun May 27 16:29:56 UTC 2012


    Date: Sunday, May 27, 2012 @ 12:29:56
  Author: dreisner
Revision: 160001

upgpkg: systemd-sysvcompat 3-1

- add conflict with initscripts
- add locale.sh for providing system wide (user) locale

Added:
  systemd-sysvcompat/trunk/locale.sh
Modified:
  systemd-sysvcompat/trunk/PKGBUILD

-----------+
 PKGBUILD  |   12 ++++++++----
 locale.sh |   60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 68 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-05-27 15:59:46 UTC (rev 160000)
+++ PKGBUILD	2012-05-27 16:29:56 UTC (rev 160001)
@@ -2,14 +2,16 @@
 # Maintainer: Dave Reisner <dreisner at archlinux.org>
 
 pkgname=systemd-sysvcompat
-pkgver=2
-pkgrel=2
-pkgdesc="sysvinit compat symlinks for systemd"
+pkgver=3
+pkgrel=1
+pkgdesc="sysvinit compat for systemd"
 arch=('any')
 url="http://www.archlinux.org"
 license=('GPL')
 depends=('systemd')
-conflicts=('sysvinit')
+conflicts=('sysvinit' 'initscripts')
+source=('locale.sh')
+md5sums=('f15956945052bb911e5df81cf5e7e5dc')
 
 package() {
   install -dm755 "$pkgdir/sbin"
@@ -18,6 +20,8 @@
   done
 
   ln -s '../usr/lib/systemd/systemd' "$pkgdir/sbin/init"
+
+  install -Dm755 "$srcdir/locale.sh" "$pkgdir/etc/profile.d/locale.sh"
 }
 
 # vim:set ts=2 sw=2 et:

Added: locale.sh
===================================================================
--- locale.sh	                        (rev 0)
+++ locale.sh	2012-05-27 16:29:56 UTC (rev 160001)
@@ -0,0 +1,60 @@
+#!/bin/sh
+
+if [ ! -r /etc/locale.conf ]; then
+  return
+fi
+
+. /etc/locale.conf
+
+if [ "${LANG+x}" = 'x' ]; then
+  export LANG
+fi
+
+if [ "${LC_CTYPE+x}" = 'x' ]; then
+  export LC_CTYPE
+fi
+
+if [ "${LC_NUMERIC+x}" = 'x' ]; then
+  export LC_NUMERIC
+fi
+
+if [ "${LC_TIME+x}" = 'x' ]; then
+  export LC_TIME
+fi
+
+if [ "${LC_COLLATE+x}" = 'x' ]; then
+  export LC_COLLATE
+fi
+
+if [ "${LC_MONETARY+x}" = 'x' ]; then
+  export LC_MONETARY
+fi
+
+if [ "${LC_MESSAGES+x}" = 'x' ]; then
+  export LC_MESSAGES
+fi
+
+if [ "${LC_PAPER+x}" = 'x' ]; then
+  export LC_PAPER
+fi
+
+if [ "${LC_NAME+x}" = 'x' ]; then
+  export LC_NAME
+fi
+
+if [ "${LC_ADDRESS+x}" = 'x' ]; then
+  export LC_ADDRESS
+fi
+
+if [ "${LC_TELEPHONE+x}" = 'x' ]; then
+  export LC_TELEPHONE
+fi
+
+if [ "${LC_MEASUREMENT+x}" = 'x' ]; then
+  export LC_MEASUREMENT
+fi
+
+if [ "${LC_IDENTIFICATION+x}" = 'x' ]; then
+  export LC_IDENTIFICATION
+fi
+




More information about the arch-commits mailing list