From 223ca251f3ce07eb5484be845e631d6ca645b263 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 10 Apr 2012 00:01:08 +0000 Subject: Tue Apr 10 00:01:08 UTC 2012 --- testing/btrfs-progs/PKGBUILD | 18 ++++++++++---- testing/btrfs-progs/initcpio-hook-btrfs | 7 ++++++ testing/btrfs-progs/initcpio-install-btrfs | 15 ++++++++++++ testing/gcc/PKGBUILD | 8 +++---- testing/keyutils/PKGBUILD | 24 +++++++++++++++++++ testing/popt/PKGBUILD | 32 +++++++++++++++++++++++++ testing/rfkill/60-rfkill.rules | 1 + testing/rfkill/PKGBUILD | 37 +++++++++++++++++++++++++++++ testing/rfkill/rfkill.conf.d | 20 ++++++++++++++++ testing/rfkill/rfkill.rc.d | 38 ++++++++++++++++++++++++++++++ 10 files changed, 192 insertions(+), 8 deletions(-) create mode 100644 testing/btrfs-progs/initcpio-hook-btrfs create mode 100644 testing/btrfs-progs/initcpio-install-btrfs create mode 100644 testing/keyutils/PKGBUILD create mode 100644 testing/popt/PKGBUILD create mode 100644 testing/rfkill/60-rfkill.rules create mode 100644 testing/rfkill/PKGBUILD create mode 100644 testing/rfkill/rfkill.conf.d create mode 100755 testing/rfkill/rfkill.rc.d (limited to 'testing') diff --git a/testing/btrfs-progs/PKGBUILD b/testing/btrfs-progs/PKGBUILD index 626a5739a..a5302e7f9 100644 --- a/testing/btrfs-progs/PKGBUILD +++ b/testing/btrfs-progs/PKGBUILD @@ -1,18 +1,23 @@ -# $Id: PKGBUILD 154467 2012-03-28 21:30:44Z tomegun $ +# $Id: PKGBUILD 155911 2012-04-09 02:05:53Z dreisner $ # Maintainer: Tom Gundersen # Contributor: Tobias Powalowski pkgname=btrfs-progs pkgver=0.19.20120328 -pkgrel=1 +pkgrel=2 pkgdesc="btrfs filesystem utilities" arch=(i686 x86_64) depends=('glibc' 'e2fsprogs') -source=(ftp://ftp.archlinux.org/other/$pkgname/$pkgname-$pkgver.tar.xz) url="http://btrfs.wiki.kernel.org/" replaces=('btrfs-progs-unstable') conflicts=('btrfs-progs-unstable') provides=('btrfs-progs-unstable') license=('GPL2') +source=(ftp://ftp.archlinux.org/other/$pkgname/$pkgname-$pkgver.tar.xz + initcpio-install-btrfs + initcpio-hook-btrfs) +md5sums=('f4504e73cf9254779b78d5b2318ac570' + 'bdaaf6bd339220c63260acec809864d2' + 'b09688a915a0ec8f40e2f5aacbabc9ad') build() { cd $srcdir/$pkgname-$pkgver @@ -27,5 +32,10 @@ package() { mv $pkgdir/usr/man $pkgdir/usr/share/man mkdir -p ${pkgdir}/sbin ln -sf /usr/bin/btrfs ${pkgdir}/sbin/btrfs + + # install mkinitcpio hooks + install -Dm644 "$srcdir/initcpio-install-btrfs" \ + "$pkgdir/usr/lib/initcpio/install/btrfs" + install -Dm644 "$srcdir/initcpio-hook-btrfs" \ + "$pkgdir/usr/lib/initcpio/hooks/btrfs" } -md5sums=('f4504e73cf9254779b78d5b2318ac570') diff --git a/testing/btrfs-progs/initcpio-hook-btrfs b/testing/btrfs-progs/initcpio-hook-btrfs new file mode 100644 index 000000000..7965d0a8a --- /dev/null +++ b/testing/btrfs-progs/initcpio-hook-btrfs @@ -0,0 +1,7 @@ +#!/usr/bin/ash + +run_hook() { + btrfs device scan +} + +# vim: set ft=sh ts=4 sw=4 et: diff --git a/testing/btrfs-progs/initcpio-install-btrfs b/testing/btrfs-progs/initcpio-install-btrfs new file mode 100644 index 000000000..dbeb47ee8 --- /dev/null +++ b/testing/btrfs-progs/initcpio-install-btrfs @@ -0,0 +1,15 @@ +#!/bin/bash + +build() { + MODULES=$(all_modules btrfs) + BINARIES=btrfs + SCRIPT=btrfs +} + +help() { + cat < # toolchain build order: linux-api-headers->glibc->binutils->gcc->binutils->glibc @@ -6,8 +6,8 @@ pkgname=('gcc' 'gcc-libs' 'gcc-fortran' 'gcc-objc' 'gcc-ada' 'gcc-go') pkgver=4.7.0 -pkgrel=3 -_snapshot=4.7-20120324 +pkgrel=4 +_snapshot=4.7-20120407 _libstdcppmanver=20120307 # Note: check source directory name when updating this pkgdesc="The GNU Compiler Collection" arch=('i686' 'x86_64') @@ -21,7 +21,7 @@ source=(#ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-${pkgver}.tar.bz2 ftp://gcc.gnu.org/pub/gcc/libstdc++/doxygen/libstdc++-api.${_libstdcppmanver}.man.tar.bz2 gcc_pure64.patch gcc-4.7.0-cloog-0.17.patch) -md5sums=('947f9a70dcbb4baaf20b1e95b518048e' +md5sums=('e44a8484687ef52c02066d6434ecf42b' '489d2f5311535800a120efd8d18db719' 'ced48436c1b3c981d721a829f1094de1' '575f7d17b022e609447a590e481b18b5') diff --git a/testing/keyutils/PKGBUILD b/testing/keyutils/PKGBUILD new file mode 100644 index 000000000..8d532e6a4 --- /dev/null +++ b/testing/keyutils/PKGBUILD @@ -0,0 +1,24 @@ +# $Id: PKGBUILD 155899 2012-04-08 23:31:56Z stephane $ +# Maintainer: Stéphane Gaudreault +# Contributor: Tobias Powalowski +pkgname=keyutils +pkgver=1.5.5 +pkgrel=2 +pkgdesc="Linux Key Management Utilities" +arch=(i686 x86_64) +url="http://www.kernel.org" +license=('GPL2' 'LGPL2.1') +depends=('glibc' 'sh') +backup=(etc/request-key.conf) +source=(http://people.redhat.com/~dhowells/${pkgname}/${pkgname}-${pkgver}.tar.bz2) +md5sums=('d759680b2f23c99af95938f5026f25fb') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + make CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" LIBDIR="/usr/lib" USRLIBDIR="/usr/lib" install +} diff --git a/testing/popt/PKGBUILD b/testing/popt/PKGBUILD new file mode 100644 index 000000000..171740966 --- /dev/null +++ b/testing/popt/PKGBUILD @@ -0,0 +1,32 @@ +# $Id: PKGBUILD 155901 2012-04-08 23:40:03Z stephane $ +# Maintainer: Stéphane Gaudreault +# Contributor: Andrea Scarpino +# Contributor: dorphell +# Contributor: Judd Vinet +# Contributor: John Proctor + +pkgname=popt +pkgver=1.16 +pkgrel=5 +pkgdesc="A commandline option parser" +arch=('i686' 'x86_64') +url="http://rpm5.org" +license=('custom') +depends=('glibc') +options=('!libtool') +source=(http://rpm5.org/files/${pkgname}/${pkgname}-${pkgver}.tar.gz) +sha1sums=('cfe94a15a2404db85858a81ff8de27c8ff3e235e') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + ./configure --prefix=/usr + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install + + install -Dm644 COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE +} diff --git a/testing/rfkill/60-rfkill.rules b/testing/rfkill/60-rfkill.rules new file mode 100644 index 000000000..bc98a3bef --- /dev/null +++ b/testing/rfkill/60-rfkill.rules @@ -0,0 +1 @@ +KERNEL=="rfkill", GROUP="rfkill", MODE="0664" diff --git a/testing/rfkill/PKGBUILD b/testing/rfkill/PKGBUILD new file mode 100644 index 000000000..14d0a8d1c --- /dev/null +++ b/testing/rfkill/PKGBUILD @@ -0,0 +1,37 @@ +# $Id: PKGBUILD 155889 2012-04-08 22:34:37Z bisson $ +# Maintainer: Thomas Bächler +# Contributor: Giovanni Scafora + +pkgname=rfkill +pkgver=0.4 +pkgrel=4 +pkgdesc="A tool for enabling and disabling wireless devices" +arch=('i686' 'x86_64') +url="http://linuxwireless.org/en/users/Documentation/rfkill" +license=('custom') +source=(http://wireless.kernel.org/download/${pkgname}/${pkgname}-${pkgver}.tar.bz2 + 60-rfkill.rules + rfkill.conf.d + rfkill.rc.d) +backup=(etc/conf.d/rfkill) +md5sums=('727892c0fb35c80ee3849fbe89b45350' + '63f9bf9264911242e430867a41e8918c' + '398e7cadf023e05e3e0c323aa33575b9' + '793f0510e26547eb2632efce7d16e50e') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install + # License + install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + # Udev rule + install -Dm644 "${srcdir}/60-rfkill.rules" "${pkgdir}/usr/lib/udev/rules.d/60-rfkill.rules" + # Init script + install -Dm644 "${srcdir}/rfkill.conf.d" "${pkgdir}/etc/conf.d/rfkill" + install -Dm755 "${srcdir}/rfkill.rc.d" "${pkgdir}/etc/rc.d/rfkill" +} diff --git a/testing/rfkill/rfkill.conf.d b/testing/rfkill/rfkill.conf.d new file mode 100644 index 000000000..4483da26c --- /dev/null +++ b/testing/rfkill/rfkill.conf.d @@ -0,0 +1,20 @@ +# +# /etc/conf.d/rfkill +# Configuration for the rfkill startup script +# + +# List of devices to block on startup (space-separated) +RFKILL_BLOCK="" + +# List of devices to unblock on startup (space-separated) +RFKILL_UNBLOCK="all" + +# Supported device names are: all, wifi, bluetooth, umb, wimax, wwan, gps and specific device names like phy0, hci0, ... +# See "rfkill list" for available devices +# Examples: +# +# Block all bluetooth devices: +# RFKILL_BLOCK="bluetooth" +# +# Unblock the phy0 wifi device and all wwan devices: +# RFKILL_UNBLOCK="phy0 wwan" diff --git a/testing/rfkill/rfkill.rc.d b/testing/rfkill/rfkill.rc.d new file mode 100755 index 000000000..ce90ee150 --- /dev/null +++ b/testing/rfkill/rfkill.rc.d @@ -0,0 +1,38 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions +. /etc/conf.d/rfkill + +case "$1" in + start) + for device in ${RFKILL_BLOCK}; do + stat_busy "Blocking rfkill device: ${device}" + /usr/sbin/rfkill block ${device} + if [ $? -eq 0 ]; then + stat_done + else + stat_fail + fi + done + for device in ${RFKILL_UNBLOCK}; do + stat_busy "Unblocking rfkill device: ${device}" + /usr/sbin/rfkill unblock ${device} + if [ $? -eq 0 ]; then + stat_done + else + stat_fail + fi + done + ;; + stop) + ;; + restart) + $0 start + ;; + *) + echo "usage: $0 {start}" + exit 1 + ;; +esac +exit 0 -- cgit v1.2.3-54-g00ecf