Commit 9437b71b authored by abveritas's avatar abveritas

continued core/glibc updates, gzip, hdparm, ifenslave, inetutils, intltool

parent a09a2190
# $Id: PKGBUILD 64609 2010-01-21 11:31:50Z allan $
# Maintainer: Allan McRae <allan@archlinux.org>
# Contributor: judd <jvinet@zeroflux.org>
#
# Core Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=gzip
pkgver=1.4
pkgrel=1
pkgrel=2
pkgdesc="GNU compression utility"
arch=('i686' 'x86_64')
url="http://www.gnu.org/software/gzip/"
......@@ -17,15 +22,23 @@ source=(ftp://ftp.gnu.org/pub/gnu/gzip/gzip-$pkgver.tar.gz)
md5sums=('e381b8506210c794278f5527cba0e765')
build() {
cd $srcdir/$pkgname-$pkgver
cd "${srcdir}/${pkgname}-${pkgver}"
# By default Gzip uses assembly code. While this may preform better,
# it is not position independent. The DEFS environment variable is
# set to use only C code.
export DEFS="NO_ASM"
./configure --prefix=/usr
make || return 1
make prefix=$pkgdir/usr install
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make prefix=${pkgdir}/usr install
install -dm755 $pkgdir/bin
cd $pkgdir/usr/bin
mv gzip gunzip zcat uncompress $pkgdir/bin
install -dm755 ${pkgdir}/bin
mv ${pkgdir}/usr/bin/{gunzip,gzip,uncompress,zcat} ${pkgdir}/bin/
cd $pkgdir/bin
ln -sf $pkgname compress
ln -sf ${pkgname} compress
}
# $Id: PKGBUILD 72935 2010-03-21 16:14:26Z tpowa $
# Maintainer: Paul Mattal <paul@archlinux.org>
#
# Core Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=hdparm
pkgver=9.28
pkgver=9.37
pkgrel=1
pkgdesc="A shell utility for manipulating Linux IDE drive/driver parameters"
arch=(i686 x86_64)
depends=('glibc')
optdepends=('sh: required by idectl and ultrabayd')
source=(http://downloads.sourceforge.net/sourceforge/hdparm/${pkgname}-${pkgver}.tar.gz)
source=(http://downloads.sourceforge.net/sourceforge/hdparm/${pkgname}-${pkgver}.tar.gz
wiper.sh.2_6.max-ranges.patch)
license=('BSD')
url="http://sourceforge.net/projects/hdparm/"
optdepends=('bash: for wiper.sh script')
options=('emptydirs')
md5sums=('b672d175bbf924b3f7575a8279eb063d')
md5sums=('0bb94ddd1bedd5c02b1ca62f1caaf6de'
'd91213801094931a02e54283cb1b7375')
build() {
cd ${srcdir}/${pkgname}-${pkgver} || return 1
cd ${srcdir}/${pkgname}-${pkgver}
# Fix Range input/output error when wiping Intel G2 and OCZ drives
patch -Np1 -i $srcdir/wiper.sh.2_6.max-ranges.patch
# build
make || return 1
make
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
# install
mkdir -p ${pkgdir}/{usr,sbin} || return 1
make DESTDIR=${pkgdir} install || return 1
install -m755 contrib/idectl ${pkgdir}/sbin || return 1
install -m755 contrib/ultrabayd ${pkgdir}/sbin || return 1
mkdir -p ${pkgdir}/{usr,sbin}
make DESTDIR=${pkgdir} install
install -m755 contrib/idectl ${pkgdir}/sbin
install -m755 contrib/ultrabayd ${pkgdir}/sbin
install -D -m 0644 $srcdir/$pkgname-$pkgver/wiper/README.txt $pkgdir/usr/share/doc/wiper/README.txt
install -D -m 0755 $srcdir/$pkgname-$pkgver/wiper/wiper.sh $pkgdir/usr/sbin/wiper.sh
#install license file
install -D -m 644 LICENSE.TXT $pkgdir/usr/share/licenses/hdparm/LICENSE.TXT || return 1
install -D -m 644 LICENSE.TXT $pkgdir/usr/share/licenses/hdparm/LICENSE.TXT
}
--- hdparm-9.28/wiper/wiper.sh.orig 2010-03-09 06:17:37.000000000 -0800
--- hdparm-9.28/wiper/wiper.sh 2010-05-15 03:08:02.182856971 -0700
@@ -29,7 +29,7 @@
function usage_error(){
echo >&2
echo "Linux tune-up (TRIM) utility for SATA SSDs"
- echo "Usage: $0 [--verbose] [--commit] <mount_point|block_device>" >&2
+ echo "Usage: $0 [--max-ranges <num>] [--verbose] [--commit] <mount_point|block_device>" >&2
echo " Eg: $0 /dev/sda1" >&2
echo >&2
exit 1
@@ -44,6 +44,7 @@
export verbose=0
commit=""
+max_ranges=-1
destroy_me=""
argc=$#
arg=""
@@ -51,6 +52,10 @@
commit=yes
elif [ "$1" = "--verbose" ]; then
verbose=$((verbose + 1))
+ elif [ "$1" = "--max-ranges" -a $argc -gt 1 ]; then
+ max_ranges=$2
+ argc=$((argc - 1))
+ shift
elif [ "$1" = "" ]; then
usage_error
else
@@ -499,6 +550,18 @@
fi
fi
+## Different SSD's have a different maximum number of ranges they'll accept
+## in a single TRIM command.
+if [ $max_ranges -le 0 ] ; then
+ model=`$HDPARM -I $rawdev | $GAWK '/Model Number/ { print $NF }'`
+ case "$model" in
+ SSDSA[12]*) max_ranges=512 ;; # Intel X18-M/X25-M
+ OCZ-VERTEX2) max_ranges=64 ;; # OCZ Vertex2
+ *) max_ranges=65535
+ esac
+fi
+[ $verbose -gt 0 ] && echo "max-ranges = $max_ranges"
+
## All ready. Now let the user know exactly what we intend to do:
##
mountstatus="$fstype non-mounted"
@@ -608,7 +671,7 @@
nsectors += count;
while (count > 0) {
this_count = (count > 65535) ? 65535 : count
- printf "%u:%u ", lba, this_count
+ printf "%u:%u \n", lba, this_count
if (verbose > 1)
printf "%u:%u ", lba, this_count > "/dev/stderr"
lba += this_count
@@ -695,6 +758,22 @@
-v verbose="$verbose" \
-v xfs_blksects="$xfs_blksects" \
-v xfs_agoffsets="$xfs_agoffsets" \
- "$GAWKPROG" | $TRIM
+ "$GAWKPROG" | (
+ i=0
+ while read range ; do
+ ranges=$ranges" "$range
+ ((i++))
+ if [ $i -ge $max_ranges ] ; then
+ [ $verbose -gt 0 ] && echo -e "Trim ranges:"$ranges"\n"
+ echo $ranges | $TRIM
+ ranges=""
+ i=0
+ fi
+ done
+ if [ $i -gt 0 ] ; then
+ [ $verbose -gt 0 ] && echo -e "Trim ranges:"$ranges"\n"
+ echo $ranges | $TRIM
+ fi
+ )
do_cleanup $?
# $Id: PKGBUILD 77953 2010-04-19 06:47:41Z allan $
# Maintainer:
# Contributor: Judd Vinet <jvinet@zeroflux.org>
#
# Core Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=ifenslave
pkgver=1.1.0
pkgrel=5
pkgrel=6
pkgdesc="Utility for bonding ethernet interfaces"
arch=('i686' 'x86_64')
url="http://www.linuxfoundation.org/en/Net:Bonding"
......@@ -12,13 +17,14 @@ license=('GPL2')
depends=('glibc')
makedepends=('kernel26-headers')
backup=('etc/conf.d/bonding')
source=(ftp://ftp.archlinux.org/other/ifenslave/ifenslave.c bonding.conf.d)
md5sums=('b0d8e4c97094155747cc9238f762c7aa'
source=(ifenslave.c::'http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob_plain;f=Documentation/networking/ifenslave.c;h=2bac96'
bonding.conf.d)
md5sums=('41a23dc9ac3522ac2af23396ba70bcc4'
'397fccbf574d5082c7a3c8d3793dc000')
build() {
cd $srcdir
gcc $CFLAGS -I/usr/src/linux-$(uname -r)/include ifenslave.c -o ifenslave
gcc -Wall -Wstrict-prototypes $CFLAGS $LDFLAGS ifenslave.c -o ifenslave
}
package() {
......
# $Id: PKGBUILD 77841 2010-04-18 13:06:59Z allan $
# Maintainer: Eric Belanger <eric@archlinux.org>
# Contributor: Eric Belanger <eric@archlinux.org>
#
# Core Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=inetutils
pkgver=1.7
pkgrel=3
pkgver=1.8
pkgrel=1
pkgdesc="A collection of common network programs"
arch=('i686' 'x86_64')
url="http://www.gnu.org/software/inetutils/"
license=('GPL')
depends=('readline' 'ncurses' 'pam' 'tcp_wrappers')
depends=('readline' 'ncurses' 'pam')
provides=('netkit-ftp' 'netkit-rsh' 'netkit-telnet' 'netkit-ntalk')
conflicts=('netkit-ftp' 'netkit-rsh' 'netkit-telnet' 'netkit-ntalk')
replaces=('netkit-ftp' 'netkit-rsh' 'netkit-telnet' 'netkit-ntalk')
......@@ -19,11 +24,11 @@ options=('!emptydirs')
install=inetutils.install
source=(http://ftp.gnu.org/gnu/inetutils/${pkgname}-${pkgver}.tar.gz \
ftpd.rc ftpd.conf telnet.xinetd talk.xinetd rexec.xinetd rlogin.xinetd rsh.xinetd)
md5sums=('a1d5a01b0ab8a7e596ac4cff0cce7129' 'c167200f6faeb64659e69ced2a9d672a'\
md5sums=('ad8fdcdf1797b9ca258264a6b04e48fd' 'c167200f6faeb64659e69ced2a9d672a'\
'e6e6e5990a2e8159a276fef8fbf54c04' '8596208d119045543c5fb644e1d713d5'\
'2c3655985cf122591d71d031af84ff90' 'c490ea36751ac5f1d61d2c014959a3d1'\
'c25d8382a994de84d9c6962d804f689b' 'c3aa508a9d1293a787341108cd49c1b7')
sha1sums=('d5fdee9855a06663ca7c0a8150c09439ef520206' '84dc802b5e57b5e04c847572225a3b9612017155'\
sha1sums=('598445859b511f73681e4d74a41d65cd6ae0f83e' '84dc802b5e57b5e04c847572225a3b9612017155'\
'68a590083b45997dfdb80e666b2de762f494ba74' 'bfad98a4a62f1fff8779f076c6019ed07f9111af'\
'27d99b910eec0fc26bd79ccc2c1de26608330298' '87aa4f38ebee9dac5dcaa04cbc3f2f0906bec605'\
'81f10b3b688e3952f793b35bcef63b5bf257a92b' '81f4a8da823cf0bb14284fc71ee6108849691eda')
......@@ -32,7 +37,7 @@ build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./configure --prefix=/usr --libexec=/usr/sbin --localstatedir=/var \
--mandir=/usr/share/man --infodir=/usr/share/info \
--with-wrap --with-pam \
--without-wrap --with-pam \
--enable-ftp --enable-ftpd \
--enable-telnet --enable-telnetd \
--enable-talk --enable-talkd \
......@@ -45,19 +50,19 @@ build() {
--disable-logger --disable-syslogd \
--disable-inetd --disable-whois \
--disable-uucpd --disable-hostname \
--disable-ifconfig --disable-traceroute || return 1
make || return 1
--disable-ifconfig --disable-traceroute
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install || return 1
make DESTDIR="${pkgdir}" install
install -D -m755 "${srcdir}/ftpd.rc" "${pkgdir}/etc/rc.d/ftpd" || return 1
install -D -m644 "${srcdir}/ftpd.conf" "${pkgdir}/etc/conf.d/ftpd" || return 1
install -D -m644 "${srcdir}/telnet.xinetd" "${pkgdir}/etc/xinetd.d/telnet" || return 1
install -D -m644 "${srcdir}/talk.xinetd" "${pkgdir}/etc/xinetd.d/talk" || return 1
install -D -m644 "${srcdir}/rexec.xinetd" "${pkgdir}/etc/xinetd.d/rexec" || return 1
install -D -m644 "${srcdir}/rlogin.xinetd" "${pkgdir}/etc/xinetd.d/rlogin" || return 1
install -D -m644 "${srcdir}/rsh.xinetd" "${pkgdir}/etc/xinetd.d/rsh" || return 1
install -D -m755 "${srcdir}/ftpd.rc" "${pkgdir}/etc/rc.d/ftpd"
install -D -m644 "${srcdir}/ftpd.conf" "${pkgdir}/etc/conf.d/ftpd"
install -D -m644 "${srcdir}/telnet.xinetd" "${pkgdir}/etc/xinetd.d/telnet"
install -D -m644 "${srcdir}/talk.xinetd" "${pkgdir}/etc/xinetd.d/talk"
install -D -m644 "${srcdir}/rexec.xinetd" "${pkgdir}/etc/xinetd.d/rexec"
install -D -m644 "${srcdir}/rlogin.xinetd" "${pkgdir}/etc/xinetd.d/rlogin"
install -D -m644 "${srcdir}/rsh.xinetd" "${pkgdir}/etc/xinetd.d/rsh"
}
# $Id: PKGBUILD 77335 2010-04-12 02:06:41Z dgriffiths $
# Contributor: Eric Belanger <eric@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>
# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>
#
# Core Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=intltool
pkgver=0.41.1
pkgrel=1
pkgrel=2
pkgdesc="The internationalization tool collection"
arch=('any')
url="https://edge.launchpad.net/intltool"
......
......@@ -13,4 +13,3 @@ post_remove() {
KERNEL_VERSION='2.6.39-CHAKRA'
depmod $KERNEL_VERSION > /dev/null 2>&1
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment