diff options
author | root <root@rshg054.dnsready.net> | 2012-05-04 00:01:57 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-05-04 00:01:57 +0000 |
commit | 0a24fb835cac4007388213ad0afb15257b035b14 (patch) | |
tree | 799a160f6daeb40ccbb6f1d06e7ef3ea0caaf660 /testing | |
parent | 5520a8b04cecf4af812cbf2285e9ab6efabe147f (diff) |
Fri May 4 00:01:56 UTC 2012
Diffstat (limited to 'testing')
-rw-r--r-- | testing/glib2/PKGBUILD | 8 | ||||
-rw-r--r-- | testing/lvm2/PKGBUILD | 8 | ||||
-rw-r--r-- | testing/mdadm/PKGBUILD | 23 | ||||
-rwxr-xr-x | testing/mdadm/mdadm | 31 | ||||
-rwxr-xr-x | testing/mdadm/mdadm_hook | 65 | ||||
-rw-r--r-- | testing/mdadm/mdadm_udev_install | 25 | ||||
-rw-r--r-- | testing/mkinitcpio-nfs-utils/PKGBUILD | 21 | ||||
-rw-r--r-- | testing/systemd/PKGBUILD | 7 | ||||
-rw-r--r-- | testing/systemd/systemd.install | 20 | ||||
-rw-r--r-- | testing/v4l-utils/PKGBUILD | 35 |
10 files changed, 152 insertions, 91 deletions
diff --git a/testing/glib2/PKGBUILD b/testing/glib2/PKGBUILD index fcf2f9c32..88c791eea 100644 --- a/testing/glib2/PKGBUILD +++ b/testing/glib2/PKGBUILD @@ -1,9 +1,9 @@ -# $Id: PKGBUILD 157278 2012-04-26 21:34:07Z allan $ +# $Id: PKGBUILD 158079 2012-05-02 16:31:02Z ibiru $ # Maintainer: Jan de Groot <jgc@archlinux.org> pkgname=glib2 -pkgver=2.32.1 -pkgrel=3 +pkgver=2.32.2 +pkgrel=1 pkgdesc="Common C routines used by GTK+ and other libs" url="http://www.gtk.org/" arch=(i686 x86_64) @@ -16,7 +16,7 @@ source=(http://ftp.gnome.org/pub/GNOME/sources/glib/${pkgver%.*}/glib-$pkgver.ta glib2.sh glib2.csh revert-warn-glib-compile-schemas.patch) -sha256sums=('484d5b7fc09f3fa398355adaf74b369768f5859866c299f229c99721990f8398' +sha256sums=('b1764abf00bac96e0e93e29fb9715ce75f3583579acac40648e18771d43d6136' '9456872cdedcc639fb679448d74b85b0facf81033e27157d2861b991823b5a2a' '8d5626ffa361304ad3696493c0ef041d0ab10c857f6ef32116b3e2878ecf89e3' '049240975cd2f1c88fbe7deb28af14d4ec7d2640495f7ca8980d873bb710cc97') diff --git a/testing/lvm2/PKGBUILD b/testing/lvm2/PKGBUILD index cfca8de86..f64b19f06 100644 --- a/testing/lvm2/PKGBUILD +++ b/testing/lvm2/PKGBUILD @@ -1,11 +1,11 @@ -# $Id: PKGBUILD 157920 2012-04-30 05:18:44Z eric $ +# $Id: PKGBUILD 158058 2012-05-02 05:57:42Z eric $ # Maintainer: Eric Bélanger <eric@archlinux.org> # Maintainer: Thomas Bächler <thomas@archlinux.org> pkgbase=lvm2 pkgname=('lvm2' 'device-mapper') pkgver=2.02.95 -pkgrel=3 +pkgrel=4 arch=('i686' 'x86_64') url="http://sourceware.org/lvm2/" license=('GPL2' 'LGPL2.1') @@ -23,8 +23,8 @@ sha1sums=('f61dfbd8e9219291d11de3d70f0b3d20a29fae85' build() { cd "${srcdir}/LVM2.${pkgver}" unset LDFLAGS - ./configure --exec_prefix=/ --prefix=/usr --sbindir=/sbin --sysconfdir=/etc \ - --libdir=/usr/lib --localstatedir=/var --with-udev-prefix=/usr --with-dmeventd-path=/sbin \ + ./configure --prefix=/ --sysconfdir=/etc --localstatedir=/var --datarootdir=/usr/share \ + --includedir=/usr/include --with-usrlibdir=/usr/lib --libdir=/usr/lib --with-udev-prefix=/usr \ --enable-pkgconfig --enable-readline --enable-dmeventd --enable-cmdlib --enable-applib \ --enable-udev_sync --enable-udev_rules make diff --git a/testing/mdadm/PKGBUILD b/testing/mdadm/PKGBUILD index a66113877..0749f8128 100644 --- a/testing/mdadm/PKGBUILD +++ b/testing/mdadm/PKGBUILD @@ -1,9 +1,9 @@ -# $Id: PKGBUILD 156533 2012-04-20 16:54:05Z tpowa $ +# $Id: PKGBUILD 158073 2012-05-02 12:16:04Z tomegun $ # Maintainer: Tobias Powalowski <tpowa@archlinux.org> # Contributor: Judd Vinet <jvinet@zeroflux.org> pkgname=mdadm pkgver=3.2.3 -pkgrel=2 +pkgrel=3 pkgdesc="A tool for managing/monitoring Linux md device arrays, also known as Software RAID" arch=(i686 x86_64) license=('GPL') @@ -19,16 +19,7 @@ source=(ftp://ftp.kernel.org/pub/linux/utils/raid/mdadm/mdadm-$pkgver.tar.bz2 mdadm_hook mdadm_udev_install disable-werror.patch) - -install=mdadm.install replaces=('raidtools') -md5sums=('d789d6ecb9c1d5ebcc64f0fc52bca92f' - '6df172c8f77b280018cf87eb3d313f29' - '00cbed931db4f15b6ce49e3e7d433966' - '9b01e96b6c3c218fb61628c9281fe688' - 'c8c0713f5c7da51822ee6f3911473a1c' - 'cd258e1bf430c02a25f40b4329df9f57' - '4ad87b74a4bc9a34621280abe0e0c3e4') build() { cd $srcdir/$pkgname-$pkgver @@ -50,4 +41,14 @@ package() { install -D -m644 ../mdadm_udev_install $pkgdir/usr/lib/initcpio/install/mdadm_udev # symlink for backward compatibility ln -sf /usr/lib/initcpio/hooks/mdadm $pkgdir/usr/lib/initcpio/hooks/raid + # move /lib/* to /usr/lib/ + mv $pkgdir/lib/udev $pkgdir/usr/lib/ + rm -rf $pkgdir/lib } +md5sums=('d789d6ecb9c1d5ebcc64f0fc52bca92f' + '8333d405f550317c2bacd5510bf1cb60' + '00cbed931db4f15b6ce49e3e7d433966' + '9b01e96b6c3c218fb61628c9281fe688' + 'fbb5542d9bdf87441a11dd7e7a0a17f8' + '2318b99701dba9b01a6891c62be7bc1c' + '4ad87b74a4bc9a34621280abe0e0c3e4') diff --git a/testing/mdadm/mdadm b/testing/mdadm/mdadm index e196f3642..9bf468e98 100755 --- a/testing/mdadm/mdadm +++ b/testing/mdadm/mdadm @@ -3,28 +3,33 @@ . /etc/rc.conf . /etc/rc.d/functions -PID=`pidof -o %PPID /sbin/mdadm` -case "$1" in +pidfile=/run/mdadm.pid +if [[ -r $pidfile ]]; then + read -r PID <"$pidfile" + if [[ $PID && ! -d /proc/$PID ]]; then + # stale pidfile + unset PID + rm -f "$pidfile" + fi +fi + +case $1 in start) stat_busy "Starting mdadm RAID Monitor" - if [ -z "$PID" ]; then - /sbin/mdadm --monitor --scan -i /var/run/mdadm.pid -f - fi - if [ ! -z "$PID" -o $? -gt 0 ]; then - stat_fail - else + if [[ -z $PID ]] && mdadm --monitor --scan -i "$pidfile" -f; then add_daemon mdadm stat_done + else + stat_fail fi ;; stop) stat_busy "Stopping mdadm RAID Monitor" - [ ! -z "$PID" ] && kill $PID &>/dev/null - if [ $? -gt 0 ]; then - stat_fail - else + if [[ $PID ]] && kill "$PID" &>/dev/null; then rm_daemon mdadm stat_done + else + stat_fail fi ;; restart) @@ -33,5 +38,5 @@ case "$1" in $0 start ;; *) - echo "usage: $0 {start|stop|restart}" + echo "usage: $0 {start|stop|restart}" esac diff --git a/testing/mdadm/mdadm_hook b/testing/mdadm/mdadm_hook index 7b2dc1ad1..787be5d0c 100755 --- a/testing/mdadm/mdadm_hook +++ b/testing/mdadm/mdadm_hook @@ -1,44 +1,49 @@ -# vim: set ft=sh: -run_hook () -{ - input="$(cat /proc/cmdline)" - mdconfig="/etc/mdadm.conf" +#!/usr/bin/ash + +run_hook() { + local i= mdconfig=/etc/mdadm.conf + # for partitionable raid, we need to load md_mod first! modprobe md_mod 2>/dev/null - # If md is specified on commandline, create config file from those parameters. - if [ "$(echo $input | grep "md=")" ]; then - #Create initial mdadm.conf - # scan all devices in /proc/partitions - echo DEVICE partitions > $mdconfig - for i in $input; do + + if [ -n "$md" ]; then + echo 'DEVICE partitions' >"$mdconfig" + for i in $(cat /proc/cmdline); do case $i in - # raid + # raid md=[0-9]*,/*) - device="$(echo "$i" | sed -e 's|,/.*||g' -e 's|=||g')" - array="$(echo $i | cut -d, -f2-)" - echo "ARRAY /dev/$device devices=$array" >> $mdconfig + device=${i%%,*} + device=${device/=/} + array=${i#*,} + echo "ARRAY /dev/$device devices=$array" ;; # partitionable raid md=d[0-9]*,/*) - device="$(echo "$i" | sed -e 's|,/.*||g' -e 's|=|_|g')" - array="$(echo $i | cut -d, -f2-)" - echo "ARRAY /dev/$device devices=$array" >> $mdconfig + device=${i%%,*} + device=${device/=/_} + array=${i#*,} + echo "ARRAY /dev/$device devices=$array" ;; - # raid UUID - md=[0-9]*,[0-9,a-z]*) - device="$(echo "$i" | sed -e 's|,.*||g' -e 's|=||g')" - array="$(echo $i | cut -d, -f2-)" - echo "ARRAY /dev/$device UUID=$array" >> $mdconfig + # raid UUID + md=[0-9]*,[0-9,a-fA-F]*) + device=${i%%,*} + device=${device/=/} + array=${i#*,} + echo "ARRAY /dev/$device UUID=$array" ;; # partitionable raid UUID - md=d[0-9]*,[0-9,a-z]*) - device="$(echo "$i" | sed -e 's|,.*||g' -e 's|=|_|g')" - array="$(echo $i | cut -d, -f2-)" - echo "ARRAY /dev/$device UUID=$array" >> $mdconfig + md=d[0-9]*,[0-9,a-fA-F]*) + device=${i%%,*} + device=${device/=/_} + array=${i#*,} + echo "ARRAY /dev/$device UUID=$array" ;; - esac - done + esac + done >>"$mdconfig" fi + # assemble everything - [ -e $mdconfig ] && /sbin/mdassemble + [ -s "$mdconfig" ] && /sbin/mdassemble } + +# vim: set ft=sh ts=4 sw=4 et: diff --git a/testing/mdadm/mdadm_udev_install b/testing/mdadm/mdadm_udev_install index 9fc161624..be653fc74 100644 --- a/testing/mdadm/mdadm_udev_install +++ b/testing/mdadm/mdadm_udev_install @@ -1,23 +1,22 @@ -# vim: set ft=sh: +#!/bin/bash + +build() { + MODULES=" $(checked_modules "drivers/md/*" | grep -v "dm-")" -build() -{ - MODULES=" $(checked_modules "drivers/md/*" | grep -v "dm-") " - BINARIES="" - FILES="" - SCRIPT="" # check if a custom mdadm.conf exists - if grep -q ^ARRAY /etc/mdadm.conf; then + if grep -qw ^ARRAY "$BASEDIR/etc/mdadm.conf"; then echo "Custom /etc/mdadm.conf file will be used in initramfs for assembling arrays." add_file "/etc/mdadm.conf" fi - add_binary "/sbin/mdadm" - add_file "/lib/udev/rules.d/64-md-raid.rules" + + add_binary "mdadm" + add_file "/usr/lib/udev/rules.d/64-md-raid.rules" } -help () -{ -cat<<HELPEOF +help() { + cat <<HELPEOF This hook loads raid arrays with udev. HELPEOF } + +# vim: set ft=sh ts=4 sw=4 et: diff --git a/testing/mkinitcpio-nfs-utils/PKGBUILD b/testing/mkinitcpio-nfs-utils/PKGBUILD new file mode 100644 index 000000000..ad26ce3b4 --- /dev/null +++ b/testing/mkinitcpio-nfs-utils/PKGBUILD @@ -0,0 +1,21 @@ +# $Id: PKGBUILD 158117 2012-05-03 02:17:28Z dreisner $ +# Maintainer: Thomas Bächler <thomas@archlinux.org> + +pkgname=mkinitcpio-nfs-utils +pkgver=0.3 +pkgrel=2 +pkgdesc="ipconfig and nfsmount tools for NFS root support in mkinitcpio" +arch=('i686' 'x86_64') +url="http://www.archlinux.org/" +license=('GPL2') +depends=('glibc') +source=("ftp://ftp.archlinux.org/other/mkinitcpio/$pkgname-$pkgver.tar.xz") +sha256sums=('d290d489844fae100ca7b848b8eef40078124ff373203086bacc07329d1e8939') + +build() { + make -C "$pkgname-$pkgver" +} + +package() { + make -C "$pkgname-$pkgver" DESTDIR="$pkgdir" install +} diff --git a/testing/systemd/PKGBUILD b/testing/systemd/PKGBUILD index 2655255a1..3b08e11a8 100644 --- a/testing/systemd/PKGBUILD +++ b/testing/systemd/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 157518 2012-04-28 21:41:17Z dreisner $ +# $Id: PKGBUILD 158121 2012-05-03 02:49:53Z dreisner $ # Maintainer: Dave Reisner <dreisner@archlinux.org> pkgbase=systemd pkgname=('systemd' 'libsystemd') pkgver=44 -pkgrel=6 +pkgrel=7 arch=('i686' 'x86_64') url="http://www.freedesktop.org/wiki/Software/systemd" license=('GPL2' 'LGPL2.1' 'MIT') @@ -76,9 +76,8 @@ package_systemd() { chmod 644 "$pkgdir/usr/lib/tmpfiles.d/console.conf" # symlink to /bin/systemd for compat and sanity - install -dm755 "$pkgdir/bin" "$pkgdir/lib/systemd" + install -dm755 "$pkgdir/bin" ln -s ../usr/lib/systemd/systemd "$pkgdir/bin/systemd" - ln -s ../../usr/lib/systemd/systemd "$pkgdir/lib/systemd/systemd" # use python2 for systemd-analyze sed -i '1s/python$/python2/' "$pkgdir/usr/bin/systemd-analyze" diff --git a/testing/systemd/systemd.install b/testing/systemd/systemd.install index 822108c0f..0c3e9abee 100644 --- a/testing/systemd/systemd.install +++ b/testing/systemd/systemd.install @@ -29,18 +29,14 @@ post_upgrade() { fi if sd_booted; then - systemctl daemon-reload - systemctl daemon-reexec - 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 - systemctl try-restart systemd-logind.service + # we moved the binary in 44-2 to /usr, so a reexec leads to a + # coredump. refuse this reexec and warn the user that they should + # reboot instead. + if [ "$(vercmp 44-2 "$2")" -eq 1 ]; then + echo "warning: refusing to reexec systemd. the system should be rebooted." + else + systemctl daemon-reload + systemctl daemon-reexec fi fi } diff --git a/testing/v4l-utils/PKGBUILD b/testing/v4l-utils/PKGBUILD new file mode 100644 index 000000000..ea035ac40 --- /dev/null +++ b/testing/v4l-utils/PKGBUILD @@ -0,0 +1,35 @@ +# $Id: PKGBUILD 158069 2012-05-02 11:35:18Z tomegun $ +# Maintainer: Thomas Bächler <thomas@archlinux.org> +pkgname=v4l-utils +pkgver=0.8.8 +pkgrel=1 +pkgdesc="Userspace tools and conversion library for Video 4 Linux" +arch=('i686' 'x86_64') +url="http://freshmeat.net/projects/libv4l" +provides=("libv4l=$pkgver") +replaces=('libv4l') +conflicts=('libv4l') +license=('LGPL') +makedepends=('qt') +optdepends=('qt') +depends=('glibc' 'gcc-libs' 'sysfsutils' 'libjpeg-turbo') +source=(http://linuxtv.org/downloads/v4l-utils/${pkgname}-${pkgver}.tar.bz2 + http://linuxtv.org/downloads/v4l-utils/${pkgname}-${pkgver}.tar.bz2.asc) + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + sed -i 's|CFLAGS :=|CFLAGS ?=|' Make.rules + + make PREFIX="/usr" +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make install PREFIX="/usr" DESTDIR="${pkgdir}/" + rm -f "${pkgdir}/usr/bin/ivtv-ctl" + mv "${pkgdir}/lib/udev" "${pkgdir}/usr/lib/" + rm -rf "${pkgdir}/lib" +} +md5sums=('40fdda3f4055ed818012d7a7b5ef5be5' + 'cceb1325f35789c95f875b705b3eb373') |