summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/acl/PKGBUILD2
-rw-r--r--core/attr/PKGBUILD2
-rw-r--r--core/bash/PKGBUILD2
-rw-r--r--core/binutils/PKGBUILD2
-rw-r--r--core/bison/PKGBUILD2
-rw-r--r--core/bluez/PKGBUILD83
-rw-r--r--core/bluez/bluetooth.conf.d30
-rw-r--r--core/bluez/rc.bluetooth93
-rw-r--r--core/bridge-utils/PKGBUILD4
-rw-r--r--core/btrfs-progs/PKGBUILD2
-rw-r--r--core/bzip2/PKGBUILD2
-rw-r--r--core/cloog/PKGBUILD2
-rw-r--r--core/coreutils/PKGBUILD2
-rw-r--r--core/cracklib/PKGBUILD2
-rw-r--r--core/crda/PKGBUILD2
-rw-r--r--core/cronie/PKGBUILD2
-rw-r--r--core/cryptsetup/PKGBUILD2
-rw-r--r--core/curl/PKGBUILD2
-rw-r--r--core/dash/PKGBUILD2
-rw-r--r--core/db/PKGBUILD2
-rw-r--r--core/dbus-core/PKGBUILD52
-rw-r--r--core/dbus-core/dbus51
-rw-r--r--core/dbus-core/dbus.install23
-rw-r--r--core/dbus/PKGBUILD4
-rw-r--r--core/dhcpcd/PKGBUILD2
-rw-r--r--core/dialog/PKGBUILD2
-rw-r--r--core/diffutils/PKGBUILD12
-rw-r--r--core/diffutils/gnulib-no-gets.patch44
-rw-r--r--core/dirmngr/PKGBUILD2
-rw-r--r--core/dmraid/PKGBUILD2
-rw-r--r--core/dnsutils/PKGBUILD2
-rw-r--r--core/e2fsprogs/PKGBUILD2
-rw-r--r--core/ed/PKGBUILD2
-rw-r--r--core/eventlog/ChangeLog19
-rw-r--r--core/eventlog/PKGBUILD32
-rw-r--r--core/expat/PKGBUILD4
-rw-r--r--core/fakeroot/PKGBUILD2
-rw-r--r--core/file/PKGBUILD2
-rw-r--r--core/findutils/PKGBUILD2
-rw-r--r--core/flex/PKGBUILD2
-rw-r--r--core/gawk/PKGBUILD2
-rw-r--r--core/gcc/PKGBUILD82
-rw-r--r--core/gcc/gcc-libs.install4
-rw-r--r--core/gcc/gcc_mips64el_lib.patch24
-rw-r--r--core/gdbm/PKGBUILD4
-rw-r--r--core/gettext/PKGBUILD2
-rw-r--r--core/gettext/gnulib-no-gets.patch48
-rw-r--r--core/glib2/PKGBUILD2
-rw-r--r--core/glibc/PKGBUILD15
-rw-r--r--core/gmp/PKGBUILD5
-rw-r--r--core/gnupg/PKGBUILD2
-rw-r--r--core/gpgme/PKGBUILD2
-rw-r--r--core/gpm/PKGBUILD2
-rw-r--r--core/grep/PKGBUILD2
-rw-r--r--core/groff/PKGBUILD4
-rw-r--r--core/gzip/PKGBUILD2
-rw-r--r--core/hdparm/PKGBUILD2
-rw-r--r--core/heirloom-mailx/PKGBUILD4
-rw-r--r--core/idnkit/PKGBUILD6
-rw-r--r--core/ifenslave/PKGBUILD4
-rw-r--r--core/inetutils/PKGBUILD2
-rw-r--r--core/iproute2/PKGBUILD2
-rw-r--r--core/iptables/PKGBUILD6
-rw-r--r--core/iputils/PKGBUILD4
-rw-r--r--core/isl/PKGBUILD2
-rw-r--r--core/iw/PKGBUILD2
-rw-r--r--core/jfsutils/PKGBUILD4
-rw-r--r--core/kbd/PKGBUILD2
-rw-r--r--core/keyutils/PKGBUILD2
-rw-r--r--core/kmod/PKGBUILD5
-rw-r--r--core/krb5/PKGBUILD2
-rw-r--r--core/ldns/PKGBUILD2
-rw-r--r--core/less/PKGBUILD2
-rw-r--r--core/libarchive/PKGBUILD2
-rw-r--r--core/libassuan/PKGBUILD4
-rw-r--r--core/libcap/PKGBUILD6
-rw-r--r--core/libedit/PKGBUILD2
-rw-r--r--core/libevent/PKGBUILD2
-rw-r--r--core/libffi/PKGBUILD4
-rw-r--r--core/libgcrypt/PKGBUILD2
-rw-r--r--core/libgpg-error/PKGBUILD2
-rw-r--r--core/libgssglue/PKGBUILD2
-rw-r--r--core/libimobiledevice/HOME-segfault.patch14
-rw-r--r--core/libimobiledevice/PKGBUILD31
-rw-r--r--core/libksba/PKGBUILD4
-rw-r--r--core/libmpc/PKGBUILD2
-rw-r--r--core/libnl/PKGBUILD2
-rw-r--r--core/libpcap/PKGBUILD2
-rw-r--r--core/libpipeline/PKGBUILD2
-rw-r--r--core/librpcsecgss/PKGBUILD4
-rw-r--r--core/libsasl/PKGBUILD6
-rw-r--r--core/libssh2/PKGBUILD2
-rw-r--r--core/libtirpc/PKGBUILD2
-rw-r--r--core/libtool/PKGBUILD12
-rw-r--r--core/libtool/nopic.patch13
-rw-r--r--core/libusb-compat/PKGBUILD2
-rw-r--r--core/libusbx/PKGBUILD2
-rw-r--r--core/links/PKGBUILD2
-rw-r--r--core/linux-atm/PKGBUILD2
-rw-r--r--core/logrotate/PKGBUILD2
-rw-r--r--core/lvm2/PKGBUILD2
-rw-r--r--core/lzo2/PKGBUILD4
-rw-r--r--core/m4/PKGBUILD11
-rw-r--r--core/m4/gnulib-no-gets.patch16
-rw-r--r--core/make/PKGBUILD2
-rw-r--r--core/man-db/PKGBUILD2
-rw-r--r--core/mdadm/PKGBUILD2
-rw-r--r--core/mkinitcpio-busybox/PKGBUILD9
-rw-r--r--core/mkinitcpio-nfs-utils/PKGBUILD2
-rw-r--r--core/mlocate/PKGBUILD2
-rw-r--r--core/mpfr/PKGBUILD2
-rw-r--r--core/nano/PKGBUILD4
-rw-r--r--core/ncurses/PKGBUILD4
-rw-r--r--core/net-tools/PKGBUILD2
-rw-r--r--core/nfs-utils/PKGBUILD2
-rw-r--r--core/nfsidmap/PKGBUILD2
-rw-r--r--core/nilfs-utils/PKGBUILD2
-rw-r--r--core/nss-myhostname/PKGBUILD2
-rw-r--r--core/openldap/PKGBUILD2
-rw-r--r--core/openssh/PKGBUILD2
-rw-r--r--core/openssl/PKGBUILD23
-rw-r--r--core/openssl/gnu-linux-mips64el-gcc.patch10
-rw-r--r--core/openvpn/PKGBUILD4
-rw-r--r--core/pam/PKGBUILD2
-rw-r--r--core/patch/PKGBUILD2
-rw-r--r--core/pciutils/PKGBUILD2
-rw-r--r--core/pcre/PKGBUILD2
-rw-r--r--core/perl/PKGBUILD2
-rw-r--r--core/pinentry/PKGBUILD2
-rw-r--r--core/pkg-config/PKGBUILD2
-rw-r--r--core/popt/PKGBUILD2
-rw-r--r--core/ppl/PKGBUILD2
-rw-r--r--core/ppp/PKGBUILD2
-rw-r--r--core/pptpclient/PKGBUILD4
-rw-r--r--core/procinfo-ng/PKGBUILD4
-rw-r--r--core/procps-ng/PKGBUILD3
-rw-r--r--core/psmisc/PKGBUILD2
-rw-r--r--core/pth/PKGBUILD4
-rw-r--r--core/readline/PKGBUILD2
-rw-r--r--core/reiserfsprogs/PKGBUILD4
-rw-r--r--core/rfkill/PKGBUILD2
-rw-r--r--core/rpcbind/PKGBUILD2
-rw-r--r--core/run-parts/PKGBUILD2
-rw-r--r--core/sdparm/PKGBUILD4
-rw-r--r--core/sed/PKGBUILD2
-rw-r--r--core/shadow/PKGBUILD2
-rw-r--r--core/sudo/PKGBUILD2
-rw-r--r--core/sysfsutils/PKGBUILD2
-rw-r--r--core/systemd/PKGBUILD6
-rw-r--r--core/sysvinit/PKGBUILD2
-rw-r--r--core/tar/PKGBUILD11
-rw-r--r--core/tar/gnulib-no-gets.patch16
-rw-r--r--core/texinfo/PKGBUILD2
-rw-r--r--core/traceroute/PKGBUILD2
-rw-r--r--core/usbutils/PKGBUILD2
-rw-r--r--core/util-linux/PKGBUILD2
-rw-r--r--core/vi/PKGBUILD2
-rw-r--r--core/wget/PKGBUILD45
-rw-r--r--core/wget/wget.install20
-rw-r--r--core/which/PKGBUILD2
-rw-r--r--core/wireless_tools/PKGBUILD2
-rw-r--r--core/wpa_actiond/PKGBUILD2
-rw-r--r--core/wpa_supplicant/PKGBUILD2
-rw-r--r--core/xfsprogs/PKGBUILD3
-rw-r--r--core/xinetd/PKGBUILD5
-rw-r--r--core/xz/PKGBUILD2
-rw-r--r--core/zlib/PKGBUILD2
167 files changed, 471 insertions, 725 deletions
diff --git a/core/acl/PKGBUILD b/core/acl/PKGBUILD
index 30b17d194..ba6f40720 100644
--- a/core/acl/PKGBUILD
+++ b/core/acl/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=acl
pkgver=2.2.51
pkgrel=3
pkgdesc="Access control list utilities, libraries and headers"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://savannah.nongnu.org/projects/acl"
license=('LGPL')
depends=('attr>=2.4.46')
diff --git a/core/attr/PKGBUILD b/core/attr/PKGBUILD
index 5fb0a8ed0..65b5d7545 100644
--- a/core/attr/PKGBUILD
+++ b/core/attr/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=attr
pkgver=2.4.46
pkgrel=2
pkgdesc="Extended attribute support library for ACL support"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://savannah.nongnu.org/projects/attr"
license=('LGPL')
depends=('glibc')
diff --git a/core/bash/PKGBUILD b/core/bash/PKGBUILD
index 5c1fc7d4e..35d003961 100644
--- a/core/bash/PKGBUILD
+++ b/core/bash/PKGBUILD
@@ -8,7 +8,7 @@ _patchlevel=042 #prepare for some patches
pkgver=$_basever.$_patchlevel
pkgrel=3
pkgdesc="The GNU Bourne Again shell"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('GPL')
url="http://www.gnu.org/software/bash/bash.html"
groups=('base')
diff --git a/core/binutils/PKGBUILD b/core/binutils/PKGBUILD
index 61c5197ee..ec8ce9d04 100644
--- a/core/binutils/PKGBUILD
+++ b/core/binutils/PKGBUILD
@@ -7,7 +7,7 @@ pkgname=binutils
pkgver=2.23.1
pkgrel=3
pkgdesc="A set of programs to assemble and manipulate binary and object files"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.gnu.org/software/binutils/"
license=('GPL')
groups=('base-devel')
diff --git a/core/bison/PKGBUILD b/core/bison/PKGBUILD
index 4905ff507..581959ea2 100644
--- a/core/bison/PKGBUILD
+++ b/core/bison/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=bison
pkgver=2.7
pkgrel=1
pkgdesc="The GNU general-purpose parser generator"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('GPL3')
url="http://www.gnu.org/software/bison/bison.html"
depends=('glibc' 'm4' 'sh')
diff --git a/core/bluez/PKGBUILD b/core/bluez/PKGBUILD
deleted file mode 100644
index df484844c..000000000
--- a/core/bluez/PKGBUILD
+++ /dev/null
@@ -1,83 +0,0 @@
-# $Id: PKGBUILD 162229 2012-06-24 01:03:25Z tomegun $
-# Maintainer: Tom Gundersen <teg@jklm.no>
-# Contributor: Andrea Scarpino <andrea@archlinux.org>
-# Contributor: Geoffroy Carrier <geoffroy@archlinux.org>
-
-pkgname=bluez
-pkgver=4.101
-pkgrel=1
-pkgdesc="Libraries and tools for the Bluetooth protocol stack"
-url="http://www.bluez.org/"
-arch=('i686' 'x86_64')
-license=('GPL2')
-depends=('dbus-core' 'python2' 'systemd-tools')
-makedepends=('gstreamer0.10-base' 'libusb-compat' 'libsndfile' 'libusbx')
-optdepends=("gstreamer0.10-base: bluetooth GStreamer support"
- "alsa-lib: Audio bluetooth devices support"
- "dbus-python: to run bluez-simple-agent"
- "pygobject: to run bluez-simple-agent"
- "libusb-compat: USB adapters support"
- "cups: CUPS backend")
-conflicts=('bluez-libs' 'bluez-utils')
-provides=('bluez-libs' 'bluez-utils')
-replaces=('bluez-libs' 'bluez-utils')
-options=('!libtool')
-backup=(etc/bluetooth/{main,rfcomm,audio,network,input,serial}.conf
- 'etc/conf.d/bluetooth' 'etc/dbus-1/system.d/bluetooth.conf')
-source=("http://www.kernel.org/pub/linux/bluetooth/${pkgname}-${pkgver}.tar.bz2"
- 'bluetooth.conf.d'
- 'rc.bluetooth')
-
-build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
-
- ./configure --prefix=/usr \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --libexecdir=/lib \
- --enable-gstreamer \
- --enable-alsa \
- --enable-usb \
- --enable-tools \
- --enable-bccmd \
- --enable-dfutool \
- --enable-hid2hci \
- --enable-hidd \
- --enable-pand \
- --enable-dund \
- --enable-cups \
- --enable-wiimote \
- --disable-test \
- --with-systemdunitdir=/usr/lib/systemd/system
-
- make
-}
-
-package() {
- cd ${srcdir}/${pkgname}-${pkgver}
- make DESTDIR=${pkgdir} install
-
- install -Dm755 ${srcdir}/rc.bluetooth ${pkgdir}/etc/rc.d/bluetooth
-
- install -d ${pkgdir}/etc/bluetooth
- install -m644 network/network.conf \
- input/input.conf \
- audio/audio.conf \
- serial/serial.conf \
- ${pkgdir}/etc/bluetooth/
-
- install -Dm644 ${srcdir}/bluetooth.conf.d \
- ${pkgdir}/etc/conf.d/bluetooth
-
- # FS#27630
- install -Dm755 test/simple-agent "${pkgdir}"/usr/bin/bluez-simple-agent
- install -Dm755 test/test-device "${pkgdir}"/usr/bin/bluez-test-device
- install -Dm755 test/test-input "${pkgdir}"/usr/bin/bluez-test-input
- sed -i 's#/usr/bin/python#/usr/bin/python2#' \
- "${pkgdir}"/usr/bin/bluez-simple-agent \
- "${pkgdir}"/usr/bin/bluez-test-device \
- "${pkgdir}"/usr/bin/bluez-test-input
-}
-md5sums=('902b390af95c6c5d6d1a17d94c8344ab'
- '7412982b440f29fa7f76a41a87fef985'
- '864cbd24e6efc3592e9284b0b5fb2cfd')
diff --git a/core/bluez/bluetooth.conf.d b/core/bluez/bluetooth.conf.d
deleted file mode 100644
index 1c1e02589..000000000
--- a/core/bluez/bluetooth.conf.d
+++ /dev/null
@@ -1,30 +0,0 @@
-# Bluetooth configuraton file
-
-# Bluetooth services (allowed values are "true" and "false")
-
-# Run the bluetoothd daemon (default: true)
-#DAEMON_ENABLE="false"
-
-# Run the sdp daemon (default: false)
-# If this is disabled, hcid's internal sdp daemon will be used
-#SDPD_ENABLE="true"
-
-# Run the bluetooth HID daemon (default: false)
-#HIDD_ENABLE="true"
-
-# Activate rfcomm ports (default: false)
-#RFCOMM_ENABLE="true"
-
-# Run bluetooth dial-up networking daemon (default: false)
-#DUND_ENABLE="true"
-
-# Run bluetooth PAN daemon (default: false)
-#PAND_ENABLE="true"
-
-# rfcomm configuration file (default: /etc/bluetooth/rfcomm.conf)
-#RFCOMM_CONFIG="/etc/bluetooth/rfcomm.conf"
-
-# Options for hidd, dund and pand (default: none)
-HIDD_OPTIONS="--server"
-#DUND_OPTIONS=""
-#PAND_OPTIONS=""
diff --git a/core/bluez/rc.bluetooth b/core/bluez/rc.bluetooth
deleted file mode 100644
index 0feeaeab6..000000000
--- a/core/bluez/rc.bluetooth
+++ /dev/null
@@ -1,93 +0,0 @@
-#!/bin/bash
-#
-# Start/stop the Bluetooth daemons
-#
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-DAEMON_NAME="bluetoothd"
-HIDD_NAME="hidd"
-RFCOMM_NAME="rfcomm"
-PAND_NAME="pand"
-DUND_NAME="dund"
-
-DAEMON_EXEC="/usr/sbin/bluetoothd"
-HIDD_EXEC="/usr/bin/hidd"
-RFCOMM_EXEC="/usr/bin/rfcomm"
-PAND_EXEC="/usr/bin/pand"
-DUND_EXEC="/usr/bin/dund"
-
-DAEMON_ENABLE="true"
-HIDD_ENABLE="false"
-RFCOMM_ENABLE="false"
-PAND_ENABLE="false"
-DUND_ENABLE="false"
-
-RFCOMM_CONFIG="/etc/bluetooth/rfcomm.conf"
-
-HIDD_OPTIONS=""
-PAND_OPTIONS=""
-DUND_OPTIONS=""
-
-[ -f /etc/conf.d/bluetooth ] && . /etc/conf.d/bluetooth
-
-case "$1" in
- start)
- stat_busy "Starting bluetooth subsystem:"
- if [ "$DAEMON_ENABLE" = "true" -a -x "$DAEMON_EXEC" ] ; then
- stat_append " $DAEMON_NAME"
- $DAEMON_EXEC
- sleep 1
- fi
- if [ "$HIDD_ENABLE" = "true" -a -x "$HIDD_EXEC" ]; then
- stat_append " $HIDD_NAME"
- $HIDD_EXEC $HIDD_OPTIONS
- fi
- if [ "$RFCOMM_ENABLE" = "true" -a -x "$RFCOMM_EXEC" -a -f "$RFCOMM_CONFIG" ]; then
- stat_append " $RFCOMM_NAME"
- $RFCOMM_EXEC -f $RFCOMM_CONFIG bind all
- fi
- if [ "$PAND_ENABLE" = "true" -a -x "$PAND_EXEC" -a -n "$PAND_OPTIONS" ]; then
- stat_append " $PAND_NAME"
- $PAND_EXEC $PAND_OPTIONS
- fi
- if [ "$DUND_ENABLE" = "true" -a -x "$DUND_EXEC" -a -n "$DUND_OPTIONS" ]; then
- stat_append " $DUND_NAME"
- $DUND_EXEC $DUND_OPTIONS
- fi
- add_daemon bluetooth
- stat_done
- ;;
- stop)
- stat_busy "Stopping bluetooth subsystem:"
-
- stat_append " $DUND_NAME"
- killall $DUND_NAME >/dev/null 2>&1
-
- stat_append " $PAND_NAME"
- killall $PAND_NAME >/dev/null 2>&1
-
- if [ -x "$RFCOMM_EXEC" ]; then
- stat_append " $RFCOMM_NAME"
- $RFCOMM_EXEC release all >/dev/null 2>&1
- fi
-
- stat_append " $HIDD_NAME"
- killall $HIDD_NAME >/dev/null 2>&1
-
- stat_append " $DAEMON_NAME"
- killall $DAEMON_NAME >/dev/null 2>&1
-
- rm_daemon bluetooth
- stat_done
- ;;
- restart)
- $0 stop
- sleep 1
- $0 start
- ;;
- *)
- echo "usage: $0 {start|stop|restart}"
-esac
-exit 0
diff --git a/core/bridge-utils/PKGBUILD b/core/bridge-utils/PKGBUILD
index fb452354e..f6006a8a6 100644
--- a/core/bridge-utils/PKGBUILD
+++ b/core/bridge-utils/PKGBUILD
@@ -4,9 +4,9 @@
pkgname=bridge-utils
pkgver=1.5
-pkgrel=1
+pkgrel=1.2
pkgdesc="Utilities for configuring the Linux ethernet bridge"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge"
license=('GPL')
depends=('glibc')
diff --git a/core/btrfs-progs/PKGBUILD b/core/btrfs-progs/PKGBUILD
index 190146fb5..d67238d11 100644
--- a/core/btrfs-progs/PKGBUILD
+++ b/core/btrfs-progs/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=btrfs-progs
pkgver=0.19.20121005
pkgrel=4
pkgdesc="btrfs filesystem utilities"
-arch=(i686 x86_64)
+arch=(i686 x86_64 mips64el)
depends=('glibc' 'e2fsprogs')
url="http://btrfs.wiki.kernel.org/"
replaces=('btrfs-progs-unstable')
diff --git a/core/bzip2/PKGBUILD b/core/bzip2/PKGBUILD
index 3e4ea2362..ce519159f 100644
--- a/core/bzip2/PKGBUILD
+++ b/core/bzip2/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=bzip2
pkgver=1.0.6
pkgrel=4
pkgdesc="A high-quality data compression program"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('custom')
url="http://sources.redhat.com/bzip2"
groups=('base')
diff --git a/core/cloog/PKGBUILD b/core/cloog/PKGBUILD
index 997ca2fdf..543b1012a 100644
--- a/core/cloog/PKGBUILD
+++ b/core/cloog/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=cloog
pkgver=0.18.0
pkgrel=1
pkgdesc="Library that generates loops for scanning polyhedra"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.bastoul.net/cloog/"
license=('GPL')
depends=('isl' 'gmp')
diff --git a/core/coreutils/PKGBUILD b/core/coreutils/PKGBUILD
index 82fb6beb8..f11796da2 100644
--- a/core/coreutils/PKGBUILD
+++ b/core/coreutils/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=coreutils
pkgver=8.20
pkgrel=1
pkgdesc="The basic file, shell and text manipulation utilities of the GNU operating system"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('GPL3')
url="http://www.gnu.org/software/coreutils"
groups=('base')
diff --git a/core/cracklib/PKGBUILD b/core/cracklib/PKGBUILD
index 0e9cbee21..b7719fd34 100644
--- a/core/cracklib/PKGBUILD
+++ b/core/cracklib/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=cracklib
pkgver=2.8.19
pkgrel=1
pkgdesc="Password Checking Library"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('GPL')
url="http://sourceforge.net/projects/cracklib"
depends=('glibc' 'zlib')
diff --git a/core/crda/PKGBUILD b/core/crda/PKGBUILD
index 579b5b416..4c26eb1a2 100644
--- a/core/crda/PKGBUILD
+++ b/core/crda/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=crda
pkgver=1.1.2
pkgrel=4
pkgdesc="Central Regulatory Domain Agent for wireless networks"
-arch=(i686 x86_64)
+arch=(i686 x86_64 'mips64el')
url="http://wireless.kernel.org/en/developers/Regulatory/CRDA"
license=('custom')
depends=('wireless-regdb' 'libnl' 'libgcrypt' 'systemd-tools' 'iw')
diff --git a/core/cronie/PKGBUILD b/core/cronie/PKGBUILD
index ab03530b2..795b8882e 100644
--- a/core/cronie/PKGBUILD
+++ b/core/cronie/PKGBUILD
@@ -7,7 +7,7 @@ pkgrel=2
pkgdesc='Daemon that runs specified programs at scheduled times and related tools'
url='https://fedorahosted.org/cronie/'
license=('custom:BSD')
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
depends=('pam' 'bash' 'run-parts')
optdepends=('pm-utils: defer anacron on battery power'
'smtp-server: send job output via email'
diff --git a/core/cryptsetup/PKGBUILD b/core/cryptsetup/PKGBUILD
index b1623ed81..6433d3302 100644
--- a/core/cryptsetup/PKGBUILD
+++ b/core/cryptsetup/PKGBUILD
@@ -4,7 +4,7 @@ pkgname=cryptsetup
pkgver=1.5.1
pkgrel=1
pkgdesc="Userspace setup tool for transparent encryption of block devices using dm-crypt"
-arch=(i686 x86_64)
+arch=(i686 x86_64 'mips64el')
license=('GPL')
url="http://code.google.com/p/cryptsetup/"
groups=('base')
diff --git a/core/curl/PKGBUILD b/core/curl/PKGBUILD
index 6dc1f85a8..8c391b2b8 100644
--- a/core/curl/PKGBUILD
+++ b/core/curl/PKGBUILD
@@ -9,7 +9,7 @@ pkgname=curl
pkgver=7.28.1
pkgrel=1
pkgdesc="An URL retrieval utility and library"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://curl.haxx.se"
license=('MIT')
depends=('ca-certificates' 'libssh2' 'openssl' 'zlib')
diff --git a/core/dash/PKGBUILD b/core/dash/PKGBUILD
index 6e2d4a66a..3a4f830a8 100644
--- a/core/dash/PKGBUILD
+++ b/core/dash/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=dash
pkgver=0.5.7
pkgrel=3
pkgdesc="A POSIX compliant shell that aims to be as small as possible"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://gondor.apana.org.au/~herbert/dash/"
license=('BSD')
depends=('glibc')
diff --git a/core/db/PKGBUILD b/core/db/PKGBUILD
index 937e1f924..5e10221b5 100644
--- a/core/db/PKGBUILD
+++ b/core/db/PKGBUILD
@@ -7,7 +7,7 @@ pkgname=db
pkgver=5.3.21
pkgrel=1
pkgdesc="The Berkeley DB embedded database system"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.oracle.com/technology/software/products/berkeley-db/index.html"
license=('custom')
depends=('gcc-libs' 'sh')
diff --git a/core/dbus-core/PKGBUILD b/core/dbus-core/PKGBUILD
deleted file mode 100644
index ec813949f..000000000
--- a/core/dbus-core/PKGBUILD
+++ /dev/null
@@ -1,52 +0,0 @@
-# $Id: PKGBUILD 167557 2012-10-02 18:43:42Z andyrtr $
-# Maintainer: Jan de Groot <jgc@archlinux.org>
-# Contributor: Link Dupont <link@subpop.net>
-#
-pkgname=dbus-core
-pkgver=1.6.8
-pkgrel=1
-pkgdesc="Freedesktop.org message bus system"
-url="http://www.freedesktop.org/Software/dbus"
-arch=(i686 x86_64)
-license=('GPL' 'custom')
-depends=('expat' 'coreutils' 'filesystem' 'libsystemd' 'shadow' 'systemd-tools') # shadow for install scriptlet FS#29341
-makedepends=('libx11')
-options=(!libtool)
-install=dbus.install
-source=(http://dbus.freedesktop.org/releases/dbus/dbus-$pkgver.tar.gz #{,.asc}
- dbus)
-md5sums=('3bf059c7dd5eda5f539a1b7cfe7a14a2'
- 'f0364f3f5dc5f653bb05d39aa36e3264')
-
-build() {
- cd dbus-$pkgver
- ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
- --libexecdir=/usr/lib/dbus-1.0 --with-dbus-user=81 \
- --with-system-pid-file=/run/dbus/pid \
- --with-system-socket=/run/dbus/system_bus_socket \
- --with-console-auth-dir=/run/console/ \
- --enable-inotify --disable-dnotify \
- --disable-verbose-mode --disable-static \
- --disable-tests --disable-asserts \
- --with-systemdsystemunitdir=/usr/lib/systemd/system \
- --enable-systemd
- make
-}
-
-package(){
- cd dbus-$pkgver
- make DESTDIR="$pkgdir" install
-
- rm -f "$pkgdir/usr/bin/dbus-launch"
- rm -f "$pkgdir/usr/share/man/man1/dbus-launch.1"
- rm -rf "$pkgdir/var/run"
-
- install -m755 -d "$pkgdir/etc/rc.d"
- install -m755 ../dbus "$pkgdir/etc/rc.d/"
-
- #Fix configuration file
- sed -i -e 's|<user>81</user>|<user>dbus</user>|' "$pkgdir/etc/dbus-1/system.conf"
-
- install -dm755 "$pkgdir/usr/share/licenses/dbus-core"
- install -m644 COPYING "$pkgdir/usr/share/licenses/dbus-core/"
-}
diff --git a/core/dbus-core/dbus b/core/dbus-core/dbus
deleted file mode 100644
index bf532a274..000000000
--- a/core/dbus-core/dbus
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/bin/bash
-
-# general config
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-case $1 in
- start)
- stat_busy "Starting D-BUS system messagebus"
- if [[ ! -d /run/dbus ]] ; then
- install -m755 -g 81 -o 81 -d /run/dbus
- fi
-
- if ! dbus-daemon --system; then
- stat_fail
- else
- add_daemon dbus
- stat_done
- fi
- ;;
- stop)
- stat_busy "Stopping D-BUS system messagebus"
- if ! { [[ -f /run/dbus/pid ]] && kill $(</run/dbus/pid); }; then
- stat_fail
- else
- rm -f /run/dbus/pid
- rm_daemon dbus
- stat_done
- fi
- ;;
- restart)
- $0 stop
- sleep 1
- $0 start
- ;;
- reload)
- stat_busy "Reloading D-BUS configuration"
- if ! { [[ -f /run/dbus/pid ]] && dbus-send \
- --system --type=method_call \
- --dest=org.freedesktop.DBus \
- / org.freedesktop.DBus.ReloadConfig; }; then
- stat_fail
- else
- stat_done
- fi
- ;;
- *)
- echo "usage: $0 {start|stop|restart|reload}"
- ;;
-esac
-exit 0
diff --git a/core/dbus-core/dbus.install b/core/dbus-core/dbus.install
deleted file mode 100644
index f1ffd61a8..000000000
--- a/core/dbus-core/dbus.install
+++ /dev/null
@@ -1,23 +0,0 @@
-post_install() {
- getent group dbus >/dev/null || groupadd -g 81 dbus
- getent passwd dbus >/dev/null || useradd -c 'System message bus' -u 81 -g dbus -d '/' -s /bin/false dbus
- passwd -l dbus &>/dev/null
-}
-
-post_upgrade() {
- post_install
-
- # Make sure new rc script can shutdown running dbus
- if [ -f run/dbus.pid -a -d run/dbus ]; then
- mv run/dbus.pid run/dbus/pid
- fi
-}
-
-post_remove() {
- if getent passwd dbus >/dev/null; then
- userdel dbus
- fi
- if getent group dbus >/dev/null; then
- groupdel dbus
- fi
-}
diff --git a/core/dbus/PKGBUILD b/core/dbus/PKGBUILD
index 32b9a30bf..f05f7c132 100644
--- a/core/dbus/PKGBUILD
+++ b/core/dbus/PKGBUILD
@@ -5,10 +5,10 @@
#
pkgname=dbus
pkgver=1.6.8
-pkgrel=6
+pkgrel=6.1
pkgdesc="Freedesktop.org message bus system"
url="http://www.freedesktop.org/Software/dbus"
-arch=(i686 x86_64)
+arch=(i686 x86_64 mips64el)
license=('GPL' 'custom')
# do not depend on systemd to avoid circular dep,
# dep on shadow for install scriptlet FS#29341
diff --git a/core/dhcpcd/PKGBUILD b/core/dhcpcd/PKGBUILD
index aa41b1089..3410f3914 100644
--- a/core/dhcpcd/PKGBUILD
+++ b/core/dhcpcd/PKGBUILD
@@ -8,7 +8,7 @@ pkgver=5.6.4
pkgrel=1
pkgdesc="RFC2131 compliant DHCP client daemon"
url="http://roy.marples.name/projects/dhcpcd/"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('BSD')
groups=('base')
depends=('glibc' 'sh')
diff --git a/core/dialog/PKGBUILD b/core/dialog/PKGBUILD
index 0cc30e82a..077ae8ff2 100644
--- a/core/dialog/PKGBUILD
+++ b/core/dialog/PKGBUILD
@@ -7,7 +7,7 @@ pkgname=dialog
pkgver=1.2_20121230
pkgrel=1
pkgdesc="A tool to display dialog boxes from shell scripts"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://invisible-island.net/dialog/"
license=('LGPL2.1')
depends=('ncurses')
diff --git a/core/diffutils/PKGBUILD b/core/diffutils/PKGBUILD
index 44b02060d..5d1dbc730 100644
--- a/core/diffutils/PKGBUILD
+++ b/core/diffutils/PKGBUILD
@@ -4,19 +4,23 @@
pkgname=diffutils
pkgver=3.2
-pkgrel=1
+pkgrel=1.1
pkgdesc="Utility programs used for creating patch files"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.gnu.org/software/diffutils"
license=('GPL3')
groups=('base')
depends=('glibc' 'sh')
install=diffutils.install
-source=(ftp://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz)
-md5sums=('26ff64c332429c830c154be46b393382')
+source=(ftp://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz
+ gnulib-no-gets.patch)
+md5sums=('26ff64c332429c830c154be46b393382'
+ '97b8845dad2ca6017fc4ef54f0a4562b')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
+ # Based on commit 66712c23388e93e5c518ebc8515140fa0c807348 from gnulib.
+ patch -p1 -i "$srcdir/gnulib-no-gets.patch"
./configure --prefix=/usr
make
}
diff --git a/core/diffutils/gnulib-no-gets.patch b/core/diffutils/gnulib-no-gets.patch
new file mode 100644
index 000000000..435c3bfb9
--- /dev/null
+++ b/core/diffutils/gnulib-no-gets.patch
@@ -0,0 +1,44 @@
+diff --git a/lib/stdio.in.h b/lib/stdio.in.h
+index aa7b599..c377b6e 100644
+--- a/lib/stdio.in.h
++++ b/lib/stdio.in.h
+@@ -698,22 +698,11 @@ _GL_WARN_ON_USE (getline, "getline is unportable - "
+ # endif
+ #endif
+
+-#if @GNULIB_GETS@
+-# if @REPLACE_STDIO_READ_FUNCS@ && @GNULIB_STDIO_H_NONBLOCKING@
+-# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
+-# undef gets
+-# define gets rpl_gets
+-# endif
+-_GL_FUNCDECL_RPL (gets, char *, (char *s) _GL_ARG_NONNULL ((1)));
+-_GL_CXXALIAS_RPL (gets, char *, (char *s));
+-# else
+-_GL_CXXALIAS_SYS (gets, char *, (char *s));
+-# undef gets
+-# endif
+-_GL_CXXALIASWARN (gets);
+ /* It is very rare that the developer ever has full control of stdin,
+- so any use of gets warrants an unconditional warning. Assume it is
+- always declared, since it is required by C89. */
++ so any use of gets warrants an unconditional warning; besides, C11
++ removed it. */
++#undef gets
++#if HAVE_RAW_DECL_GETS
+ _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
+ #endif
+
+@@ -1053,9 +1042,9 @@ _GL_WARN_ON_USE (snprintf, "snprintf is unportable - "
+ # endif
+ #endif
+
+-/* Some people would argue that sprintf should be handled like gets
+- (for example, OpenBSD issues a link warning for both functions),
+- since both can cause security holes due to buffer overruns.
++/* Some people would argue that all sprintf uses should be warned about
++ (for example, OpenBSD issues a link warning for it),
++ since it can cause security holes due to buffer overruns.
+ However, we believe that sprintf can be used safely, and is more
+ efficient than snprintf in those safe cases; and as proof of our
+ belief, we use sprintf in several gnulib modules. So this header
diff --git a/core/dirmngr/PKGBUILD b/core/dirmngr/PKGBUILD
index 40e0c74fc..ef1ca2e93 100644
--- a/core/dirmngr/PKGBUILD
+++ b/core/dirmngr/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=dirmngr
pkgver=1.1.0
pkgrel=4
pkgdesc="A daemon to handle CRL and certificate requests"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('GPL')
url="ftp://ftp.gnupg.org/gcrypt/dirmngr"
depends=('libgcrypt' 'libldap' 'libksba' 'libgpg-error' 'libassuan' 'pth')
diff --git a/core/dmraid/PKGBUILD b/core/dmraid/PKGBUILD
index 37f3ed5c5..91063cf9a 100644
--- a/core/dmraid/PKGBUILD
+++ b/core/dmraid/PKGBUILD
@@ -9,7 +9,7 @@ pkgdesc="Device mapper RAID interface"
url="http://people.redhat.com/~heinzm/sw/dmraid/"
conflicts=('mkinitcpio<0.7')
depends=('device-mapper>=2.0.54')
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('GPL')
source=(#ftp://ftp.archlinux.org/other/dmraid/$pkgname-$pkgver.tar.bz2
http://people.redhat.com/~heinzm/sw/dmraid/src/$pkgname-1.0.0.rc16-3.tar.bz2
diff --git a/core/dnsutils/PKGBUILD b/core/dnsutils/PKGBUILD
index b68e67f9c..f685918de 100644
--- a/core/dnsutils/PKGBUILD
+++ b/core/dnsutils/PKGBUILD
@@ -10,7 +10,7 @@ pkgrel=1
pkgdesc='DNS utilities: dig host nslookup'
url='http://www.isc.org/software/bind/'
license=('custom:ISC')
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
options=('!makeflags')
depends=('openssl' 'krb5' 'idnkit' 'dnssec-anchors')
source=("http://ftp.isc.org/isc/bind9/${_pkgver}/bind-${_pkgver}.tar.gz"
diff --git a/core/e2fsprogs/PKGBUILD b/core/e2fsprogs/PKGBUILD
index 775b3eb19..14fd4ffb8 100644
--- a/core/e2fsprogs/PKGBUILD
+++ b/core/e2fsprogs/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=e2fsprogs
pkgver=1.42.6
pkgrel=1
pkgdesc="Ext2/3/4 filesystem utilities"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('GPL' 'LGPL' 'MIT')
url="http://e2fsprogs.sourceforge.net"
groups=('base')
diff --git a/core/ed/PKGBUILD b/core/ed/PKGBUILD
index 80a32233c..8909ba8b7 100644
--- a/core/ed/PKGBUILD
+++ b/core/ed/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=ed
pkgver=1.7
pkgrel=2
pkgdesc="A POSIX-compliant line-oriented text editor"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('GPL')
url="http://www.gnu.org/software/ed/ed.html"
depends=('glibc' 'sh')
diff --git a/core/eventlog/ChangeLog b/core/eventlog/ChangeLog
deleted file mode 100644
index 1c139bdf5..000000000
--- a/core/eventlog/ChangeLog
+++ /dev/null
@@ -1,19 +0,0 @@
-2011-11-02 Andrea Scarpino <andrea@archlinux.org>
-
- * Sign package
-
-2011-04-05 Stéphane Gaudreault <stephane@archlinux.org>
-
- * Rebuild of old package
- * Tidy up PKGBUILD
-
-2010-07-10 Dan McGee <dan@archlinux.org>
-
- * Updated PKGBUILD to be in line with standard style
- * Upstream update
-
-2009-01-03 Eric Belanger <eric@archlinux.org>
-
- * eventlog 0.2.9-1
- * Upstream update
- * Added ChangeLog
diff --git a/core/eventlog/PKGBUILD b/core/eventlog/PKGBUILD
deleted file mode 100644
index 80ec8b064..000000000
--- a/core/eventlog/PKGBUILD
+++ /dev/null
@@ -1,32 +0,0 @@
-# $Id: PKGBUILD 142815 2011-11-15 17:24:10Z andrea $
-# Maintainer:
-# Contributor: Eric Belanger <eric@archlinux.org>
-# Contributor: Judd Vinet <jvinet@zeroflux.org>
-
-pkgname=eventlog
-pkgver=0.2.12
-pkgrel=3
-pkgdesc="API to format and send structured log messages"
-arch=('i686' 'x86_64')
-url="http://www.balabit.com/support/community/products/"
-license=('BSD')
-depends=('glibc')
-options=('!libtool')
-changelog=ChangeLog
-source=("http://www.balabit.com/downloads/files/${pkgname}/${pkgver%.*}/${pkgname}_${pkgver}.tar.gz")
-sha1sums=('3e35a634e7de029ab9d36995a085bfcb00ed6a4d')
-
-build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- ./configure --prefix=/usr \
- --sysconfdir=/etc \
- --localstatedir=/var
- make
-}
-
-package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- make DESTDIR="${pkgdir}" install
- install -D -m644 COPYING \
- "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
-}
diff --git a/core/expat/PKGBUILD b/core/expat/PKGBUILD
index 73688e009..276116661 100644
--- a/core/expat/PKGBUILD
+++ b/core/expat/PKGBUILD
@@ -4,9 +4,9 @@
pkgname=expat
pkgver=2.1.0
-pkgrel=1
+pkgrel=1.1
pkgdesc="An XML parser library"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://expat.sourceforge.net/"
license=('custom')
depends=('glibc')
diff --git a/core/fakeroot/PKGBUILD b/core/fakeroot/PKGBUILD
index 292e30dcf..8c6c199ad 100644
--- a/core/fakeroot/PKGBUILD
+++ b/core/fakeroot/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=fakeroot
pkgver=1.18.4
pkgrel=1
pkgdesc="Gives a fake root environment, useful for building packages as a non-privileged user"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('GPL')
url="http://packages.debian.org/fakeroot"
groups=('base-devel')
diff --git a/core/file/PKGBUILD b/core/file/PKGBUILD
index 7a758b199..717eec9a9 100644
--- a/core/file/PKGBUILD
+++ b/core/file/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=file
pkgver=5.11
pkgrel=2
pkgdesc="File type identification utility"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('custom')
groups=('base' 'base-devel')
url="http://www.darwinsys.com/file/"
diff --git a/core/findutils/PKGBUILD b/core/findutils/PKGBUILD
index bdbd83548..9a598efb0 100644
--- a/core/findutils/PKGBUILD
+++ b/core/findutils/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=findutils
pkgver=4.4.2
pkgrel=5
pkgdesc="GNU utilities to locate files"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('GPL3')
groups=('base' 'base-devel')
depends=('glibc' 'sh')
diff --git a/core/flex/PKGBUILD b/core/flex/PKGBUILD
index 2d1ef4adf..2afb4187b 100644
--- a/core/flex/PKGBUILD
+++ b/core/flex/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=flex
pkgver=2.5.37
pkgrel=1
pkgdesc="A tool for generating text-scanning programs"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://flex.sourceforge.net"
license=('custom')
groups=('base-devel')
diff --git a/core/gawk/PKGBUILD b/core/gawk/PKGBUILD
index 7ad1645ab..7563c2580 100644
--- a/core/gawk/PKGBUILD
+++ b/core/gawk/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=gawk
pkgver=4.0.2
pkgrel=1
pkgdesc="GNU version of awk"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.gnu.org/directory/GNU/gawk.html"
license=('GPL')
groups=('base' 'base-devel')
diff --git a/core/gcc/PKGBUILD b/core/gcc/PKGBUILD
index 05e667624..9587d0aee 100644
--- a/core/gcc/PKGBUILD
+++ b/core/gcc/PKGBUILD
@@ -4,24 +4,28 @@
# toolchain build order: linux-api-headers->glibc->binutils->gcc->binutils->glibc
# NOTE: libtool requires rebuilt with each new gcc version
-pkgname=('gcc' 'gcc-libs' 'gcc-fortran' 'gcc-objc' 'gcc-ada' 'gcc-go')
+if [ "${CARCH}" != "mips64el" ]; then
+ pkgname=('gcc' 'gcc-libs' 'gcc-fortran' 'gcc-objc' 'gcc-ada' 'gcc-go')
+else
+ pkgname=('gcc' 'gcc-libs' 'gcc-fortran' 'gcc-objc')
+fi
pkgver=4.7.2
pkgrel=4
#_snapshot=4.7-20120721
pkgdesc="The GNU Compiler Collection"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('GPL' 'LGPL' 'FDL' 'custom')
url="http://gcc.gnu.org"
-makedepends=('binutils>=2.23' 'libmpc' 'cloog' 'ppl' 'gcc-ada' 'doxygen')
+makedepends=('binutils>=2.23' 'libmpc' 'cloog' 'ppl' 'doxygen')
+[[ "$CARCH" != "mips64el" ]] && makedepends+=('gcc-ada')
checkdepends=('dejagnu')
-options=('!libtool' '!emptydirs')
+options=('!libtool' '!emptydirs' '!distcc' '!makeflags')
source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-${pkgver}.tar.bz2
#ftp://gcc.gnu.org/pub/gcc/snapshots/${_snapshot}/gcc-${_snapshot}.tar.bz2
gcc-4.7.1-libgo-write.patch)
md5sums=('cc308a0891e778cfda7a151ab8a6e762'
'df82dd175ac566c8a6d46b11ac21f14c')
-
if [ -n "${_snapshot}" ]; then
_basedir="${srcdir}/gcc-${_snapshot}"
else
@@ -53,11 +57,30 @@ build() {
cd ${srcdir}
mkdir gcc-build && cd gcc-build
+ # Use our CFLAGS, CXXFLAGS and LDFLAGS for the binaries built.
+ export BOOT_CFLAGS="$CFLAGS"
+ export CFLAGS_FOR_BUILD="$CFLAGS"
+ export CFLAGS_FOR_TARGET="$CFLAGS"
+ export CXXFLAGS_FOR_BUILD="$CXXFLAGS"
+ export CXXFLAGS_FOR_TARGET="$CXXFLAGS"
+ export BOOT_LDFLAGS="$LDFLAGS"
+ export LDFLAGS_FOR_BUILD="$LDFLAGS"
+ export LDFLAGS_FOR_TARGET="$LDFLAGS"
+
+ if [[ "${CARCH}" != "mips64el" ]]; then
+ languages=c,c++,ada,fortran,go,lto,objc,obj-c++
+ # The ancient MIPS ABI has possible requirements incompatible
+ # with GNU hash.
+ extra="--with-linker-hash-style=gnu"
+ else
+ languages=c,c++,fortran,lto,objc,obj-c++
+ fi
+
${_basedir}/configure --prefix=/usr \
--libdir=/usr/lib --libexecdir=/usr/lib \
--mandir=/usr/share/man --infodir=/usr/share/info \
- --with-bugurl=https://bugs.archlinux.org/ \
- --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ \
+ --with-bugurl=https://labs.parabola.nu/ \
+ --enable-languages=$languages \
--enable-shared --enable-threads=posix \
--with-system-zlib --enable-__cxa_atexit \
--disable-libunwind-exceptions --enable-clocale=gnu \
@@ -67,7 +90,7 @@ build() {
--disable-ppl-version-check --disable-cloog-version-check \
--enable-lto --enable-gold --enable-ld=default \
--enable-plugin --with-plugin-ld=ld.gold \
- --with-linker-hash-style=gnu \
+ $extra \
--disable-multilib --disable-libssp \
--disable-build-with-cxx --disable-build-poststage1-with-cxx \
--enable-checking=release
@@ -79,6 +102,8 @@ build() {
}
check() {
+ # Takes days and no one here uses it.
+ if [ "$CARCH" != "mips64el" ] ; then
cd ${srcdir}/gcc-build
# increase stack size to prevent test failures
@@ -88,6 +113,7 @@ check() {
# do not abort on error as some are "expected"
make -k check || true
${_basedir}/contrib/test_summary
+ fi
}
package_gcc-libs()
@@ -99,14 +125,17 @@ package_gcc-libs()
cd ${srcdir}/gcc-build
make -j1 -C $CHOST/libgcc DESTDIR=${pkgdir} install-shared
- for lib in libmudflap libgomp libstdc++-v3/src libitm; do
+ for lib in libmudflap libgomp libstdc++-v3/src; do
+ make -j1 -C $CHOST/$lib DESTDIR=${pkgdir} install-toolexeclibLTLIBRARIES
+ done
+ [ "$CARCH" != "mips64el" ] && for lib in libitm; do
make -j1 -C $CHOST/$lib DESTDIR=${pkgdir} install-toolexeclibLTLIBRARIES
done
make -j1 -C $CHOST/libstdc++-v3/po DESTDIR=${pkgdir} install
make -j1 -C $CHOST/libgomp DESTDIR=${pkgdir} install-info
- make -j1 -C $CHOST/libitm DESTDIR=${pkgdir} install-info
+ [ "$CARCH" != "mips64el" ] && make -j1 -C $CHOST/libitm DESTDIR=${pkgdir} install-info
- make -j1 DESTDIR=${pkgdir} install-target-libquadmath
+ make -j1 DESTDIR=${pkgdir} install-target-libquadmath
make -j1 DESTDIR=${pkgdir} install-target-libgfortran
make -j1 DESTDIR=${pkgdir} install-target-libobjc
@@ -115,7 +144,7 @@ package_gcc-libs()
# remove static libraries
find ${pkgdir} -name *.a -delete
-
+
# Install Runtime Library Exception
install -Dm644 ${_basedir}/COPYING.RUNTIME \
${pkgdir}/usr/share/licenses/gcc-libs/RUNTIME.LIBRARY.EXCEPTION
@@ -136,19 +165,20 @@ package_gcc()
mv $pkgdir{,/usr/share/gdb/auto-load}/usr/lib/libstdc++.so.6.0.17-gdb.py
# unfortunately it is much, much easier to install the lot and clean-up the mess...
- rm $pkgdir/usr/bin/{{$CHOST-,}gfortran,{$CHOST-,}gccgo,gnat*}
- rm $pkgdir/usr/lib/*.so*
- rm $pkgdir/usr/lib/lib{ffi,gfortran,go{,begin},objc}.a
- rm $pkgdir/usr/lib/libgfortran.spec
- rm -r $pkgdir/usr/lib/gcc/$CHOST/${pkgver}/{ada{include,lib},finclude,include/objc}
- rm $pkgdir/usr/lib/gcc/$CHOST/${pkgver}/include/ffi{,target}.h
- rm $pkgdir/usr/lib/gcc/$CHOST/${pkgver}/{cc1obj{,plus},f951,gnat1,go1}
- rm $pkgdir/usr/lib/gcc/$CHOST/${pkgver}/{libcaf_single,libgfortranbegin}.a
- rm -r $pkgdir/usr/lib/go
- rm $pkgdir/usr/share/info/{gccgo,gfortran,gnat*,libgomp,libquadmath,libitm}.info
- rm $pkgdir/usr/share/locale/{de,fr}/LC_MESSAGES/libstdc++.mo
- rm $pkgdir/usr/share/man/man1/{gccgo,gfortran}.1
- rm $pkgdir/usr/share/man/man3/ffi*
+ # -f makes rm return 0 if the archive doesn't exist
+ rm -f $pkgdir/usr/bin/{{$CHOST-,}gfortran,{$CHOST-,}gccgo,gnat*}
+ rm -f $pkgdir/usr/lib/*.so*
+ rm -f $pkgdir/usr/lib/lib{ffi,gfortran,go{,begin},objc}.a
+ rm -f $pkgdir/usr/lib/libgfortran.spec
+ rm -fr $pkgdir/usr/lib/gcc/$CHOST/${pkgver}/{ada{include,lib},finclude,include/objc}
+ rm -f $pkgdir/usr/lib/gcc/$CHOST/${pkgver}/include/ffi{,target}.h
+ rm -f $pkgdir/usr/lib/gcc/$CHOST/${pkgver}/{cc1obj{,plus},f951,gnat1,go1}
+ rm -f $pkgdir/usr/lib/gcc/$CHOST/${pkgver}/{libcaf_single,libgfortranbegin}.a
+ rm -fr $pkgdir/usr/lib/go
+ rm -f $pkgdir/usr/share/info/{gccgo,gfortran,gnat*,libgomp,libquadmath,libitm}.info
+ rm -f $pkgdir/usr/share/locale/{de,fr}/LC_MESSAGES/libstdc++.mo
+ rm -f $pkgdir/usr/share/man/man1/{gccgo,gfortran}.1
+ rm -f $pkgdir/usr/share/man/man3/ffi*
# many packages expect this symlinks
ln -s gcc ${pkgdir}/usr/bin/cc
@@ -224,7 +254,7 @@ package_gcc-objc()
install -m755 gcc/cc1obj{,plus} $pkgdir/usr/lib/gcc/$CHOST/$pkgver/
# remove libraries included in gcc-libs
- rm ${pkgdir}/usr/lib/libobjc.so*
+ rm -f ${pkgdir}/usr/lib/libobjc.so*
# Install Runtime Library Exception
install -Dm644 ${_basedir}/COPYING.RUNTIME \
diff --git a/core/gcc/gcc-libs.install b/core/gcc/gcc-libs.install
index 23553b8f0..a6ac198f2 100644
--- a/core/gcc/gcc-libs.install
+++ b/core/gcc/gcc-libs.install
@@ -4,13 +4,13 @@ filelist=(libgomp.info libquadmath.info)
post_upgrade() {
[ -x usr/bin/install-info ] || return 0
for file in ${filelist[@]}; do
- install-info $infodir/$file.gz $infodir/dir 2> /dev/null
+ [ -f $infodir/$file.gz ] && install-info $infodir/$file.gz $infodir/dir 2> /dev/null || true
done
}
pre_remove() {
[ -x usr/bin/install-info ] || return 0
for file in ${filelist[@]}; do
- install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
+ [ -f $infodir/$file.gz ] && install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null || true
done
}
diff --git a/core/gcc/gcc_mips64el_lib.patch b/core/gcc/gcc_mips64el_lib.patch
new file mode 100644
index 000000000..c938d9b30
--- /dev/null
+++ b/core/gcc/gcc_mips64el_lib.patch
@@ -0,0 +1,24 @@
+diff -ru gcc-4.7-20120324.orig/gcc/config/mips/linux64.h gcc-4.7-20120324/gcc/config/mips/linux64.h
+--- gcc-4.7-20120324.orig/gcc/config/mips/linux64.h 2012-04-06 11:32:50.545152897 +0200
++++ gcc-4.7-20120324/gcc/config/mips/linux64.h 2012-04-06 12:06:58.501290352 +0200
+@@ -23,9 +23,9 @@
+ #define GNU_USER_LINK_EMULATION64 "elf64%{EB:b}%{EL:l}tsmip"
+ #define GNU_USER_LINK_EMULATIONN32 "elf32%{EB:b}%{EL:l}tsmipn32"
+
+-#define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
++#define GLIBC_DYNAMIC_LINKER32 "/lib32/ld.so.1"
+ #define GLIBC_DYNAMIC_LINKER64 "/lib64/ld.so.1"
+-#define GLIBC_DYNAMIC_LINKERN32 "/lib32/ld.so.1"
++#define GLIBC_DYNAMIC_LINKERN32 "/lib/ld.so.1"
+ #define UCLIBC_DYNAMIC_LINKERN32 "/lib32/ld-uClibc.so.0"
+ #define BIONIC_DYNAMIC_LINKERN32 "/system/bin/linker32"
+ #define GNU_USER_DYNAMIC_LINKERN32 \
+diff -ru gcc-4.7-20120324.orig/gcc/config/mips/t-linux64 gcc-4.7-20120324/gcc/config/mips/t-linux64
+--- gcc-4.7-20120324.orig/gcc/config/mips/t-linux64 2012-04-06 11:32:50.379989000 +0200
++++ gcc-4.7-20120324/gcc/config/mips/t-linux64 2012-04-06 12:05:55.461021317 +0200
+@@ -18,4 +18,4 @@
+
+ MULTILIB_OPTIONS = mabi=n32/mabi=32/mabi=64
+ MULTILIB_DIRNAMES = n32 32 64
+-MULTILIB_OSDIRNAMES = ../lib32 ../lib ../lib64
++MULTILIB_OSDIRNAMES = ../lib ../lib32 ../lib64
diff --git a/core/gdbm/PKGBUILD b/core/gdbm/PKGBUILD
index 30570ddf8..0e806f3de 100644
--- a/core/gdbm/PKGBUILD
+++ b/core/gdbm/PKGBUILD
@@ -5,11 +5,11 @@
pkgname=gdbm
pkgver=1.10
-pkgrel=1
+pkgrel=1.1
pkgdesc="GNU database library"
url="http://www.gnu.org/software/gdbm/gdbm.html"
license=('GPL')
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
depends=('glibc' 'sh')
source=(ftp://ftp.gnu.org/gnu/gdbm/${pkgname}-${pkgver}.tar.gz
gdbm-1.10-zeroheaders.patch)
diff --git a/core/gettext/PKGBUILD b/core/gettext/PKGBUILD
index cc2ce7239..cd0d4251c 100644
--- a/core/gettext/PKGBUILD
+++ b/core/gettext/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=gettext
pkgver=0.18.2
pkgrel=1
pkgdesc="GNU internationalization library"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.gnu.org/software/gettext/"
license=('GPL')
groups=('base' 'base-devel')
diff --git a/core/gettext/gnulib-no-gets.patch b/core/gettext/gnulib-no-gets.patch
new file mode 100644
index 000000000..b3cb56479
--- /dev/null
+++ b/core/gettext/gnulib-no-gets.patch
@@ -0,0 +1,48 @@
+diff -ru gettext-0.18.1.1.orig/gettext-runtime/gnulib-lib/stdio.in.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/stdio.in.h
+--- gettext-0.18.1.1.orig/gettext-runtime/gnulib-lib/stdio.in.h 2012-10-21 22:31:11.290124705 +0200
++++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/stdio.in.h 2012-10-21 22:31:32.060385194 +0200
+@@ -137,12 +137,6 @@
+ "use gnulib module fflush for portable POSIX compliance");
+ #endif
+
+-/* It is very rare that the developer ever has full control of stdin,
+- so any use of gets warrants an unconditional warning. Assume it is
+- always declared, since it is required by C89. */
+-#undef gets
+-_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
+-
+ #if @GNULIB_FOPEN@
+ # if @REPLACE_FOPEN@
+ # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
+diff -ru gettext-0.18.1.1.orig/gettext-tools/gnulib-lib/stdio.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/stdio.in.h
+--- gettext-0.18.1.1.orig/gettext-tools/gnulib-lib/stdio.in.h 2012-10-21 22:31:09.340394990 +0200
++++ gettext-0.18.1.1/gettext-tools/gnulib-lib/stdio.in.h 2012-10-21 22:31:43.654025009 +0200
+@@ -137,12 +137,6 @@
+ "use gnulib module fflush for portable POSIX compliance");
+ #endif
+
+-/* It is very rare that the developer ever has full control of stdin,
+- so any use of gets warrants an unconditional warning. Assume it is
+- always declared, since it is required by C89. */
+-#undef gets
+-_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
+-
+ #if @GNULIB_FOPEN@
+ # if @REPLACE_FOPEN@
+ # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
+diff -ru gettext-0.18.1.1.orig/gettext-tools/libgettextpo/stdio.in.h gettext-0.18.1.1/gettext-tools/libgettextpo/stdio.in.h
+--- gettext-0.18.1.1.orig/gettext-tools/libgettextpo/stdio.in.h 2012-10-21 22:31:11.040365944 +0200
++++ gettext-0.18.1.1/gettext-tools/libgettextpo/stdio.in.h 2012-10-21 22:31:38.086822069 +0200
+@@ -137,12 +137,6 @@
+ "use gnulib module fflush for portable POSIX compliance");
+ #endif
+
+-/* It is very rare that the developer ever has full control of stdin,
+- so any use of gets warrants an unconditional warning. Assume it is
+- always declared, since it is required by C89. */
+-#undef gets
+-_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
+-
+ #if @GNULIB_FOPEN@
+ # if @REPLACE_FOPEN@
+ # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
diff --git a/core/glib2/PKGBUILD b/core/glib2/PKGBUILD
index 9a79b47ed..880a15c88 100644
--- a/core/glib2/PKGBUILD
+++ b/core/glib2/PKGBUILD
@@ -6,7 +6,7 @@ pkgver=2.34.3
pkgrel=1
pkgdesc="Common C routines used by GTK+ and other libs"
url="http://www.gtk.org/"
-arch=(i686 x86_64)
+arch=(i686 x86_64 'mips64el')
license=('LGPL')
depends=('pcre' 'libffi')
makedepends=('pkg-config' 'python2' 'libxslt' 'docbook-xml')
diff --git a/core/glibc/PKGBUILD b/core/glibc/PKGBUILD
index fec4d6609..4d767ff8b 100644
--- a/core/glibc/PKGBUILD
+++ b/core/glibc/PKGBUILD
@@ -8,7 +8,7 @@ pkgname=glibc
pkgver=2.17
pkgrel=3
pkgdesc="GNU C Library"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.gnu.org/software/libc"
license=('GPL' 'LGPL')
groups=('base')
@@ -41,13 +41,16 @@ build() {
patch -p1 -i ${srcdir}/glibc-2.17-sync-with-linux37.patch
cd ${srcdir}
- mkdir glibc-build
+ mkdir -p glibc-build
cd glibc-build
if [[ ${CARCH} = "i686" ]]; then
# Hack to fix NPTL issues with Xen, only required on 32bit platforms
# TODO: make separate glibc-xen package for i686
export CFLAGS="${CFLAGS} -mno-tls-direct-seg-refs"
+ elif [[ ${CARCH} = "mips64el" ]]; then
+ # mips64el is only supported in ports.
+ extra_addons=",ports"
fi
echo "slibdir=/usr/lib" >> configparms
@@ -57,15 +60,15 @@ build() {
CFLAGS=${CFLAGS/-D_FORTIFY_SOURCE=2/}
${srcdir}/${pkgname}-${pkgver}/configure --prefix=/usr \
+ --host=${CHOST} --build=${CHOST} \
--libdir=/usr/lib --libexecdir=/usr/lib \
--with-headers=/usr/include \
- --with-bugurl=https://bugs.archlinux.org/ \
- --enable-add-ons=nptl,libidn \
+ --with-bugurl=https://labs.parabola.nu/ \
+ --enable-add-ons=nptl,libidn$extra_addons \
--enable-obsolete-rpc \
--enable-kernel=2.6.32 \
--enable-bind-now --disable-profile \
- --enable-stackguard-randomization \
- --enable-multi-arch
+ --enable-stackguard-randomization
# build libraries with hardening disabled
echo "build-programs=no" >> configparms
diff --git a/core/gmp/PKGBUILD b/core/gmp/PKGBUILD
index 2b0814725..8dff4f0b0 100644
--- a/core/gmp/PKGBUILD
+++ b/core/gmp/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=gmp
pkgver=5.1.0
pkgrel=1
pkgdesc="A free library for arbitrary precision arithmetic"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://gmplib.org/"
depends=('gcc-libs' 'sh')
license=('LGPL3')
@@ -19,7 +19,8 @@ md5sums=('69fd511e435f81a0334f14f00c7d77b3'
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
- [[ ${CARCH} = "i686" ]] && export ABI="32"
+ [ "${CARCH}" = "i686" ] && export ABI="32"
+ [ "${CARCH}" = "mips64el" ] && export ABI="n32"
./configure --build=${CHOST} \
--prefix=/usr --enable-cxx
make
diff --git a/core/gnupg/PKGBUILD b/core/gnupg/PKGBUILD
index 5d991467a..2f48266bb 100644
--- a/core/gnupg/PKGBUILD
+++ b/core/gnupg/PKGBUILD
@@ -10,7 +10,7 @@ pkgrel=4
pkgdesc='Complete and free implementation of the OpenPGP standard'
url='http://www.gnupg.org/'
license=('GPL')
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
optdepends=('curl: gpg2keys_curl'
'libldap: gpg2keys_ldap'
'libusb-compat: scdaemon')
diff --git a/core/gpgme/PKGBUILD b/core/gpgme/PKGBUILD
index ac578df4b..b8110e0e2 100644
--- a/core/gpgme/PKGBUILD
+++ b/core/gpgme/PKGBUILD
@@ -7,7 +7,7 @@ pkgname=gpgme
pkgver=1.3.1
pkgrel=5
pkgdesc="A C wrapper library for GnuPG"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.gnupg.org/related_software/gpgme/"
license=('GPL')
depends=('libgpg-error' 'pth' 'gnupg>=2')
diff --git a/core/gpm/PKGBUILD b/core/gpm/PKGBUILD
index d77f47151..6c810607c 100644
--- a/core/gpm/PKGBUILD
+++ b/core/gpm/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=gpm
pkgver=1.20.7
pkgrel=1
pkgdesc="A mouse server for the console and xterm"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.nico.schottelius.org/software/gpm/"
license=('GPL')
depends=('ncurses' 'bash')
diff --git a/core/grep/PKGBUILD b/core/grep/PKGBUILD
index db4527214..5c37c9bd7 100644
--- a/core/grep/PKGBUILD
+++ b/core/grep/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=grep
pkgver=2.14
pkgrel=2
pkgdesc="A string search utility"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('GPL3')
url="http://www.gnu.org/software/grep/grep.html"
groups=('base' 'base-devel')
diff --git a/core/groff/PKGBUILD b/core/groff/PKGBUILD
index f007e1d23..236330acd 100644
--- a/core/groff/PKGBUILD
+++ b/core/groff/PKGBUILD
@@ -2,9 +2,9 @@
# Maintainer: judd <jvinet@zeroflux.org>
pkgname=groff
pkgver=1.21
-pkgrel=2
+pkgrel=2.1
pkgdesc="GNU troff text-formatting system"
-arch=(i686 x86_64)
+arch=(i686 x86_64 'mips64el')
url="http://www.gnu.org/software/groff/groff.html"
license=('GPL')
depends=('perl' 'gcc-libs' 'texinfo')
diff --git a/core/gzip/PKGBUILD b/core/gzip/PKGBUILD
index f3a6aa28c..dc19ffa81 100644
--- a/core/gzip/PKGBUILD
+++ b/core/gzip/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=gzip
pkgver=1.5
pkgrel=2
pkgdesc="GNU compression utility"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.gnu.org/software/gzip/"
license=('GPL3')
groups=('base' 'base-devel')
diff --git a/core/hdparm/PKGBUILD b/core/hdparm/PKGBUILD
index 394af6391..2ab0c823b 100644
--- a/core/hdparm/PKGBUILD
+++ b/core/hdparm/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=hdparm
pkgver=9.43
pkgrel=1
pkgdesc="A shell utility for manipulating Linux IDE drive/driver parameters"
-arch=(i686 x86_64)
+arch=(i686 x86_64 'mips64el')
depends=('glibc')
optdepends=('sh: required by idectl and ultrabayd')
source=(http://downloads.sourceforge.net/sourceforge/hdparm/${pkgname}-${pkgver}.tar.gz
diff --git a/core/heirloom-mailx/PKGBUILD b/core/heirloom-mailx/PKGBUILD
index d7e82f00c..5a26197a0 100644
--- a/core/heirloom-mailx/PKGBUILD
+++ b/core/heirloom-mailx/PKGBUILD
@@ -5,9 +5,9 @@
pkgname=heirloom-mailx
pkgver=12.5
-pkgrel=3
+pkgrel=3.1
pkgdesc="A commandline utility for sending and receiving email"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://heirloom.sourceforge.net/mailx.html"
license=('custom')
groups=('base')
diff --git a/core/idnkit/PKGBUILD b/core/idnkit/PKGBUILD
index 2a5fd256c..f2d2a92e3 100644
--- a/core/idnkit/PKGBUILD
+++ b/core/idnkit/PKGBUILD
@@ -4,11 +4,11 @@
pkgname=idnkit
pkgver=1.0
-pkgrel=2
+pkgrel=2.1
pkgdesc='Provides functionalities about Internationalized Domain Name processing'
url='http://www.nic.ad.jp/ja/idn/idnkit/download/'
license=('custom:BSD')
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
depends=('glibc')
options=('!makeflags' '!libtool')
source=("http://www.nic.ad.jp/ja/idn/idnkit/download/sources/idnkit-${pkgver}-src.tar.gz")
@@ -19,6 +19,8 @@ backup=('etc/idnalias.conf' 'etc/idn.conf')
build() {
cd "${srcdir}/idnkit-${pkgver}-src"
./configure \
+ --host=$CHOST \
+ --build=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
diff --git a/core/ifenslave/PKGBUILD b/core/ifenslave/PKGBUILD
index a730f2f5e..77eff3bac 100644
--- a/core/ifenslave/PKGBUILD
+++ b/core/ifenslave/PKGBUILD
@@ -4,9 +4,9 @@
pkgname=ifenslave
pkgver=1.1.0
-pkgrel=7
+pkgrel=7.1
pkgdesc='Utility for bonding ethernet interfaces'
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url='http://www.linuxfoundation.org/en/Net:Bonding'
license=('GPL2')
depends=('glibc')
diff --git a/core/inetutils/PKGBUILD b/core/inetutils/PKGBUILD
index 38c9cfc82..28574ea92 100644
--- a/core/inetutils/PKGBUILD
+++ b/core/inetutils/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=inetutils
pkgver=1.9.1
pkgrel=4
pkgdesc="A collection of common network programs"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.gnu.org/software/inetutils/"
license=('GPL3')
groups=('base')
diff --git a/core/iproute2/PKGBUILD b/core/iproute2/PKGBUILD
index 8304e7e4a..30dedb414 100644
--- a/core/iproute2/PKGBUILD
+++ b/core/iproute2/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=iproute2
pkgver=3.6.0
pkgrel=2
pkgdesc="IP Routing Utilities"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('GPL2')
url="http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2"
depends=('glibc' 'db' 'iptables')
diff --git a/core/iptables/PKGBUILD b/core/iptables/PKGBUILD
index 0dcc6e6c4..f3345c08e 100644
--- a/core/iptables/PKGBUILD
+++ b/core/iptables/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=iptables
pkgver=1.4.16.3
pkgrel=1
pkgdesc='Linux kernel packet control tool'
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('GPL2')
url='http://www.netfilter.org/projects/iptables/index.html'
depends=('glibc' 'bash')
@@ -52,10 +52,12 @@ build() {
patch -Np1 -i ${srcdir}/0503-extension_cppflags.patch
+ [ "$CARCH" = "mips64el" ] || extra="--enable-libipq"
+
./configure --prefix=/usr \
--libexecdir=/usr/lib/iptables --sysconfdir=/etc \
--with-xtlibdir=/usr/lib/iptables \
- --enable-devel --enable-libipq \
+ --enable-devel $extra \
--enable-shared
make
diff --git a/core/iputils/PKGBUILD b/core/iputils/PKGBUILD
index 6eac3bafa..fabd4e92f 100644
--- a/core/iputils/PKGBUILD
+++ b/core/iputils/PKGBUILD
@@ -7,13 +7,13 @@ pkgname=iputils
pkgver=20121221
pkgrel=1
pkgdesc="Network monitoring tools, including ping"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('GPL' 'BSD')
url="http://www.skbuff.net/iputils/"
groups=('base')
depends=('openssl' 'sysfsutils' 'libcap')
optdepends=('xinetd: for tftpd')
-makedepends=('docbook2x' 'opensp')
+makedepends=('docbook2x' 'opensp' 'perl-xml-libxml')
conflicts=('netkit-base' 'arping' 'netkit-tftpd')
replaces=('netkit-base')
backup=(etc/xinetd.d/tftp)
diff --git a/core/isl/PKGBUILD b/core/isl/PKGBUILD
index 8fe25e8f8..be800b961 100644
--- a/core/isl/PKGBUILD
+++ b/core/isl/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=isl
pkgver=0.11.1
pkgrel=1
pkgdesc="Library for manipulating sets and relations of integer points bounded by linear constraints"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.kotnet.org/~skimo/isl/"
license=('MIT')
options=('!libtool')
diff --git a/core/iw/PKGBUILD b/core/iw/PKGBUILD
index 73f18b65a..9d1eff719 100644
--- a/core/iw/PKGBUILD
+++ b/core/iw/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=iw
pkgver=3.6
pkgrel=1
pkgdesc="nl80211 based CLI configuration utility for wireless devices"
-arch=("i686" "x86_64")
+arch=("i686" "x86_64" 'mips64el')
url="http://wireless.kernel.org/en/users/Documentation/iw"
license=("GPL")
depends=("libnl")
diff --git a/core/jfsutils/PKGBUILD b/core/jfsutils/PKGBUILD
index fee4867a2..31368268b 100644
--- a/core/jfsutils/PKGBUILD
+++ b/core/jfsutils/PKGBUILD
@@ -3,9 +3,9 @@
pkgname=jfsutils
pkgver=1.1.15
-pkgrel=3
+pkgrel=3.1
pkgdesc='JFS filesystem utilities'
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url='http://jfs.sourceforge.net'
license=('GPL')
groups=('base')
diff --git a/core/kbd/PKGBUILD b/core/kbd/PKGBUILD
index 1ee33254c..425d03a23 100644
--- a/core/kbd/PKGBUILD
+++ b/core/kbd/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=kbd
pkgver=1.15.5
pkgrel=3
pkgdesc="Keytable files and keyboard utilities"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.kbd-project.org"
license=('GPL')
depends=('glibc' 'pam')
diff --git a/core/keyutils/PKGBUILD b/core/keyutils/PKGBUILD
index 463df40bd..c8dfba094 100644
--- a/core/keyutils/PKGBUILD
+++ b/core/keyutils/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=keyutils
pkgver=1.5.5
pkgrel=3
pkgdesc="Linux Key Management Utilities"
-arch=(i686 x86_64)
+arch=(i686 x86_64 'mips64el')
url="http://www.kernel.org"
license=('GPL2' 'LGPL2.1')
depends=('glibc' 'sh')
diff --git a/core/kmod/PKGBUILD b/core/kmod/PKGBUILD
index ac4bd8351..21e7e57d9 100644
--- a/core/kmod/PKGBUILD
+++ b/core/kmod/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=kmod
pkgver=12
pkgrel=1
pkgdesc="Linux kernel module handling"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url='http://git.kernel.org/?p=utils/kernel/kmod/kmod.git;a=summary'
license=('GPL2')
depends=('glibc' 'zlib')
@@ -31,7 +31,8 @@ build() {
}
check() {
- make -C "$pkgname-$pkgver" check
+ # Ignore results: some tests are arch-specific, some require writable /sys.
+ make -C "$pkgname-$pkgver" check || return 0
}
package() {
diff --git a/core/krb5/PKGBUILD b/core/krb5/PKGBUILD
index 1562d2bb3..5f7a75608 100644
--- a/core/krb5/PKGBUILD
+++ b/core/krb5/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=krb5
pkgver=1.11
pkgrel=2
pkgdesc="The Kerberos network authentication system"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://web.mit.edu/kerberos/"
license=('custom')
depends=('e2fsprogs' 'libldap' 'keyutils')
diff --git a/core/ldns/PKGBUILD b/core/ldns/PKGBUILD
index 94a25fc7c..57a93e592 100644
--- a/core/ldns/PKGBUILD
+++ b/core/ldns/PKGBUILD
@@ -9,7 +9,7 @@ pkgrel=1
pkgdesc='Fast DNS library supporting recent RFCs'
url='http://www.nlnetlabs.nl/projects/ldns/'
license=('custom:BSD')
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
options=('!libtool')
depends=('openssl' 'dnssec-anchors')
optdepends=('libpcap: ldns-dpa tool')
diff --git a/core/less/PKGBUILD b/core/less/PKGBUILD
index 36a8ebf50..675bd28c0 100644
--- a/core/less/PKGBUILD
+++ b/core/less/PKGBUILD
@@ -7,7 +7,7 @@ pkgver=451
pkgrel=1
pkgdesc="A terminal based program for viewing text files"
license=('GPL3')
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.greenwoodsoftware.com/less"
groups=('base')
depends=('ncurses' 'pcre')
diff --git a/core/libarchive/PKGBUILD b/core/libarchive/PKGBUILD
index 1b87145a3..9ae02b8f6 100644
--- a/core/libarchive/PKGBUILD
+++ b/core/libarchive/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=libarchive
pkgver=3.0.4
pkgrel=2
pkgdesc="library that can create and read several streaming archive formats"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://libarchive.googlecode.com/"
license=('BSD')
depends=('zlib' 'bzip2' 'xz>=5.0.0' 'acl' 'openssl>=1.0.0' 'expat')
diff --git a/core/libassuan/PKGBUILD b/core/libassuan/PKGBUILD
index 12e79ce0e..ed9e3e929 100644
--- a/core/libassuan/PKGBUILD
+++ b/core/libassuan/PKGBUILD
@@ -3,9 +3,9 @@
pkgname=libassuan
pkgver=2.0.3
-pkgrel=1
+pkgrel=1.1
pkgdesc="A IPC library used by some GnuPG related software"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('GPL')
url="http://www.gnupg.org/related_software/libassuan"
depends=('libgpg-error')
diff --git a/core/libcap/PKGBUILD b/core/libcap/PKGBUILD
index 99d938bfe..191430f20 100644
--- a/core/libcap/PKGBUILD
+++ b/core/libcap/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=libcap
pkgver=2.22
pkgrel=3
pkgdesc="POSIX 1003.1e capabilities"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://sites.google.com/site/fullycapable/"
license=('GPL2')
depends=('glibc' 'attr')
@@ -16,12 +16,12 @@ md5sums=('b4896816b626bea445f0b3849bdd4077'
build() {
cd ${srcdir}/${pkgname}-${pkgver}
- make
+ make lib=lib
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
- make prefix=/usr DESTDIR=${pkgdir} RAISE_SETFCAP=no install
+ make prefix=/usr lib=lib DESTDIR=${pkgdir} RAISE_SETFCAP=no install
chmod 755 ${pkgdir}/usr/lib/libcap.so.${pkgver}
rm ${pkgdir}/usr/lib/libcap.a
diff --git a/core/libedit/PKGBUILD b/core/libedit/PKGBUILD
index 29b6480c8..1c6bf8162 100644
--- a/core/libedit/PKGBUILD
+++ b/core/libedit/PKGBUILD
@@ -8,7 +8,7 @@ pkgver=20120601_3.0
pkgrel=1
pkgdesc='Command line editor library providing generic line editing, history, and tokenization functions'
url='http://www.thrysoee.dk/editline/'
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('BSD')
depends=('ncurses')
options=('!libtool')
diff --git a/core/libevent/PKGBUILD b/core/libevent/PKGBUILD
index 4c5214d07..4e8523774 100644
--- a/core/libevent/PKGBUILD
+++ b/core/libevent/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=libevent
pkgver=2.0.21
pkgrel=1
pkgdesc="An event notification library"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.monkey.org/~provos/libevent/"
license=('BSD')
depends=('openssl')
diff --git a/core/libffi/PKGBUILD b/core/libffi/PKGBUILD
index ec02865eb..5e0b4b4d1 100644
--- a/core/libffi/PKGBUILD
+++ b/core/libffi/PKGBUILD
@@ -3,9 +3,9 @@
pkgname=libffi
pkgver=3.0.11
-pkgrel=1
+pkgrel=1.1
pkgdesc="A portable, high level programming interface to various calling conventions"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://sourceware.org/libffi"
license=('MIT')
depends=('glibc')
diff --git a/core/libgcrypt/PKGBUILD b/core/libgcrypt/PKGBUILD
index e3a887bb4..84aa8284c 100644
--- a/core/libgcrypt/PKGBUILD
+++ b/core/libgcrypt/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=libgcrypt
pkgver=1.5.0
pkgrel=3
pkgdesc="a general purpose crypto library based on the code used"
-arch=(i686 x86_64)
+arch=(i686 x86_64 'mips64el')
url="http://www.gnupg.org"
license=('LGPL')
depends=('libgpg-error>=1.10-2')
diff --git a/core/libgpg-error/PKGBUILD b/core/libgpg-error/PKGBUILD
index c0cc77f39..382465a09 100644
--- a/core/libgpg-error/PKGBUILD
+++ b/core/libgpg-error/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=libgpg-error
pkgver=1.10
pkgrel=2
pkgdesc="Support library for libgcrypt"
-arch=(i686 x86_64)
+arch=(i686 x86_64 'mips64el')
url="http://www.gnupg.org"
license=('LGPL')
depends=('glibc' 'sh')
diff --git a/core/libgssglue/PKGBUILD b/core/libgssglue/PKGBUILD
index 3cca3e277..4ef5b8d41 100644
--- a/core/libgssglue/PKGBUILD
+++ b/core/libgssglue/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=libgssglue
pkgver=0.4
pkgrel=1
pkgdesc="Exports a gssapi interface which calls other random gssapi libraries"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.citi.umich.edu/projects/nfsv4/linux/"
license=('BSD')
depends=('glibc')
diff --git a/core/libimobiledevice/HOME-segfault.patch b/core/libimobiledevice/HOME-segfault.patch
deleted file mode 100644
index e48e6cb42..000000000
--- a/core/libimobiledevice/HOME-segfault.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-The patch fixes segfault when both $XDG_CONFIG_HOME and $HOME are unset
-Signed-off-by: Maxim Mikityanskiy <maxtram95@gmail.com>
---- src/userpref.c.orig 2012-06-04 17:04:57.387303630 +0300
-+++ src/userpref.c 2012-06-04 17:06:05.741301627 +0300
-@@ -125,6 +125,9 @@
- const char *cdir = getenv("XDG_CONFIG_HOME");
- if (!cdir) {
- cdir = getenv("HOME");
-+ if (!cdir) {
-+ cdir="/root";
-+ }
- strcpy(__config_dir, cdir);
- strcat(__config_dir, DIR_SEP_S);
- strcat(__config_dir, ".config");
diff --git a/core/libimobiledevice/PKGBUILD b/core/libimobiledevice/PKGBUILD
deleted file mode 100644
index 5e85bd7b9..000000000
--- a/core/libimobiledevice/PKGBUILD
+++ /dev/null
@@ -1,31 +0,0 @@
-# $Id: PKGBUILD 164735 2012-08-04 10:06:26Z tomegun $
-# Maintainer : Ionut Biru <ibiru@archlinux.org>
-# Contributor: Gabriel Martinez < reitaka at gmail dot com >
-
-pkgname=libimobiledevice
-pkgver=1.1.4
-pkgrel=2
-pkgdesc="Is a software library that talks the protocols to support iPhone and iPod Touch devices on Linux"
-url="http://libimobiledevice.org/"
-arch=('i686' 'x86_64')
-license=('GPL2' 'LGPL2.1')
-depends=('usbmuxd' 'gnutls' 'libgcrypt')
-options=('!libtool')
-source=(http://libimobiledevice.org/downloads/$pkgname-$pkgver.tar.bz2
- HOME-segfault.patch)
-
-build() {
- cd "$pkgname-$pkgver"
-
- patch -p0 < "$srcdir/HOME-segfault.patch"
-
- PYTHON=/usr/bin/python2 ./configure --prefix=/usr
- make
-}
-
-package() {
- cd "$pkgname-$pkgver"
- make DESTDIR="$pkgdir" install
-}
-md5sums=('3f28cbc6a2e30d34685049c0abde5183'
- '0de709dbf8e79d0b00cca06f5e61d57c')
diff --git a/core/libksba/PKGBUILD b/core/libksba/PKGBUILD
index 505a60633..9f3ddeec3 100644
--- a/core/libksba/PKGBUILD
+++ b/core/libksba/PKGBUILD
@@ -4,9 +4,9 @@
pkgname=libksba
pkgver=1.2.0
-pkgrel=2
+pkgrel=2.1
pkgdesc="A CMS and X.509 access library"
-arch=(i686 x86_64)
+arch=(i686 x86_64 mips64el)
license=('GPL')
url="ftp://ftp.gnupg.org/gcrypt/alpha/libksba"
depends=('bash' 'libgpg-error' 'glibc')
diff --git a/core/libmpc/PKGBUILD b/core/libmpc/PKGBUILD
index 8def5f563..482bfddc1 100644
--- a/core/libmpc/PKGBUILD
+++ b/core/libmpc/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=libmpc
pkgver=1.0.1
pkgrel=1
pkgdesc="Library for the arithmetic of complex numbers with arbitrarily high precision"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.multiprecision.org/"
license=('LGPL')
depends=('mpfr>=3.0.0')
diff --git a/core/libnl/PKGBUILD b/core/libnl/PKGBUILD
index da91aedcb..6189f67f4 100644
--- a/core/libnl/PKGBUILD
+++ b/core/libnl/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=libnl
pkgver=3.2.11
pkgrel=1
pkgdesc="Library for applications dealing with netlink sockets"
-arch=(i686 x86_64)
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.infradead.org/~tgr/libnl/"
license=(GPL)
depends=(glibc)
diff --git a/core/libpcap/PKGBUILD b/core/libpcap/PKGBUILD
index 1974ff4c0..2f093bf37 100644
--- a/core/libpcap/PKGBUILD
+++ b/core/libpcap/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=libpcap
pkgver=1.3.0
pkgrel=1
pkgdesc="A system-independent interface for user-level packet capture"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.tcpdump.org/"
license=('BSD')
depends=('glibc' 'libnl' 'sh' 'libusbx')
diff --git a/core/libpipeline/PKGBUILD b/core/libpipeline/PKGBUILD
index ee263b645..6691c7042 100644
--- a/core/libpipeline/PKGBUILD
+++ b/core/libpipeline/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=libpipeline
pkgver=1.2.2
pkgrel=1
pkgdesc="a C library for manipulating pipelines of subprocesses in a flexible and convenient way"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://libpipeline.nongnu.org/"
license=('GPL')
depends=('glibc')
diff --git a/core/librpcsecgss/PKGBUILD b/core/librpcsecgss/PKGBUILD
index 71bb1bf39..0547d6416 100644
--- a/core/librpcsecgss/PKGBUILD
+++ b/core/librpcsecgss/PKGBUILD
@@ -4,9 +4,9 @@
pkgname=librpcsecgss
pkgver=0.19
-pkgrel=7
+pkgrel=7.1
pkgdesc="Library for RPCSECGSS support"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.citi.umich.edu/projects/nfsv4/linux/"
license=('GPL')
depends=('glibc' 'krb5' 'libgssglue')
diff --git a/core/libsasl/PKGBUILD b/core/libsasl/PKGBUILD
index e668cda48..ef9ffacd7 100644
--- a/core/libsasl/PKGBUILD
+++ b/core/libsasl/PKGBUILD
@@ -8,9 +8,9 @@
#pkgname=('cyrus-sasl' 'cyrus-sasl-gssapi' 'cyrus-sasl-ldap' 'cyrus-sasl-sql')
pkgname=libsasl
pkgver=2.1.23
-pkgrel=9
+pkgrel=9.1
pkgdesc="Cyrus Simple Authentication Service Layer (SASL) library"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://cyrusimap.web.cmu.edu/"
license=('custom')
options=('!makeflags' '!libtool')
@@ -97,6 +97,8 @@ build() {
popd
./configure --prefix=/usr \
+ --host=$CHOST \
+ --build=$CHOST \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--disable-static \
diff --git a/core/libssh2/PKGBUILD b/core/libssh2/PKGBUILD
index eb0b7d867..4df093749 100644
--- a/core/libssh2/PKGBUILD
+++ b/core/libssh2/PKGBUILD
@@ -10,7 +10,7 @@ pkgver=1.4.3
pkgrel=1
pkgdesc="A library implementing the SSH2 protocol as defined by Internet Drafts"
url="http://www.libssh2.org/"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('BSD')
depends=('openssl')
makedepends=('zlib')
diff --git a/core/libtirpc/PKGBUILD b/core/libtirpc/PKGBUILD
index 9d372e641..c6dcfadb8 100644
--- a/core/libtirpc/PKGBUILD
+++ b/core/libtirpc/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=libtirpc
pkgver=0.2.2
pkgrel=4
pkgdesc="Transport Independent RPC library (SunRPC replacement)"
-arch=('i686' 'x86_64')
+arch=(i686 x86_64 mips64el)
url="http://libtirpc.sourceforge.net/"
license=('BSD')
depends=('libgssglue')
diff --git a/core/libtool/PKGBUILD b/core/libtool/PKGBUILD
index ce5c2727f..563773979 100644
--- a/core/libtool/PKGBUILD
+++ b/core/libtool/PKGBUILD
@@ -8,16 +8,22 @@ pkgname=('libtool' 'libltdl')
pkgver=2.4.2
pkgrel=7
pkgdesc="A generic library support script"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.gnu.org/software/libtool"
license=('GPL')
options=('!libtool')
-source=(ftp://ftp.gnu.org/pub/gnu/libtool/${pkgname}-${pkgver}.tar.xz{,.sig})
+source=(ftp://ftp.gnu.org/pub/gnu/libtool/${pkgname}-${pkgver}.tar.xz{,.sig}
+ nopic.patch)
md5sums=('2ec8997e0c07249eb4cbd072417d70fe'
- '1e6ba57420c82c663c85e745d11c7eed')
+ '1e6ba57420c82c663c85e745d11c7eed'
+ '46443cf0e3e1b4e4891812af73385615')
build() {
cd ${srcdir}/${pkgbase}-${pkgver}
+
+ # fix test failure on mips64el (from Debian)
+ patch -Np1 -i "${srcdir}/nopic.patch"
+
./configure --prefix=/usr
make
}
diff --git a/core/libtool/nopic.patch b/core/libtool/nopic.patch
new file mode 100644
index 000000000..43a712685
--- /dev/null
+++ b/core/libtool/nopic.patch
@@ -0,0 +1,13 @@
+Index: libtool-2.2.6a/tests/demo-nopic.test
+===================================================================
+--- libtool-2.2.6a.orig/tests/demo-nopic.test 2008-11-18 21:11:29.000000000 +0000
++++ libtool-2.2.6a/tests/demo-nopic.test 2008-11-18 21:12:41.000000000 +0000
+@@ -26,7 +26,7 @@
+ . tests/defs || exit 1
+
+ case "$host" in
+-hppa*|x86_64*|s390*)
++hppa*|x86_64*|s390*|mips*|arm*)
+ func_skip "$host doesn't like non-PIC shared libs"
+ ;;
+ *-solaris*|*-sunos*)
diff --git a/core/libusb-compat/PKGBUILD b/core/libusb-compat/PKGBUILD
index 3e6e5f39b..569cb84c0 100644
--- a/core/libusb-compat/PKGBUILD
+++ b/core/libusb-compat/PKGBUILD
@@ -7,7 +7,7 @@ pkgname=libusb-compat
pkgver=0.1.4
pkgrel=2
pkgdesc="Library to enable user space application programs to communicate with USB devices"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://libusb.sourceforge.net/"
license=('LGPL')
depends=('libusb' 'sh')
diff --git a/core/libusbx/PKGBUILD b/core/libusbx/PKGBUILD
index c1d1daf32..ac157641e 100644
--- a/core/libusbx/PKGBUILD
+++ b/core/libusbx/PKGBUILD
@@ -5,7 +5,7 @@ pkgver=1.0.14
pkgrel=1
depends=('glibc')
pkgdesc="Library that provides generic access to USB device"
-arch=(i686 x86_64)
+arch=(i686 x86_64 mips64el)
url="http://libusbx.org"
license=('LGPL')
source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2)
diff --git a/core/links/PKGBUILD b/core/links/PKGBUILD
index 135074e88..8e07ed3ab 100644
--- a/core/links/PKGBUILD
+++ b/core/links/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=links
pkgver=2.7
pkgrel=1
pkgdesc="A text WWW browser, similar to Lynx"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://links.twibright.com/"
license=('GPL')
depends=('bzip2' 'xz' 'zlib' 'openssl' 'gpm')
diff --git a/core/linux-atm/PKGBUILD b/core/linux-atm/PKGBUILD
index 745bbd929..e84fe6afc 100644
--- a/core/linux-atm/PKGBUILD
+++ b/core/linux-atm/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=linux-atm
pkgver=2.5.2
pkgrel=2
pkgdesc="Drivers and tools to support ATM networking under Linux."
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
depends=('glibc')
url="http://linux-atm.sourceforge.net/"
license=(GPL)
diff --git a/core/logrotate/PKGBUILD b/core/logrotate/PKGBUILD
index 821ecfa71..99004c20e 100644
--- a/core/logrotate/PKGBUILD
+++ b/core/logrotate/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=logrotate
pkgver=3.8.2
pkgrel=2
pkgdesc="Rotates system logs automatically"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="https://fedorahosted.org/logrotate/"
license=('GPL')
groups=('base')
diff --git a/core/lvm2/PKGBUILD b/core/lvm2/PKGBUILD
index 014eeb8ad..2b421dcbf 100644
--- a/core/lvm2/PKGBUILD
+++ b/core/lvm2/PKGBUILD
@@ -6,7 +6,7 @@ pkgbase=lvm2
pkgname=('lvm2' 'device-mapper')
pkgver=2.02.98
pkgrel=1
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://sourceware.org/lvm2/"
license=('GPL2' 'LGPL2.1')
groups=('base')
diff --git a/core/lzo2/PKGBUILD b/core/lzo2/PKGBUILD
index dd0c5e65b..e4632a529 100644
--- a/core/lzo2/PKGBUILD
+++ b/core/lzo2/PKGBUILD
@@ -3,9 +3,9 @@
# Maintainer: dorphell <dorphell@archlinux.org>
pkgname=lzo2
pkgver=2.06
-pkgrel=1
+pkgrel=1.1
pkgdesc="Portable lossless data compression library"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.oberhumer.com/opensource/lzo"
license=('GPL')
depends=('glibc')
diff --git a/core/m4/PKGBUILD b/core/m4/PKGBUILD
index de13524da..860958c53 100644
--- a/core/m4/PKGBUILD
+++ b/core/m4/PKGBUILD
@@ -4,23 +4,26 @@
pkgname=m4
pkgver=1.4.16
-pkgrel=2
+pkgrel=2.2
pkgdesc="The GNU macro processor"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.gnu.org/software/m4"
license=('GPL3')
groups=('base-devel')
depends=('glibc' 'bash')
install=m4.install
source=(ftp://ftp.gnu.org/gnu/m4/$pkgname-$pkgver.tar.xz{,.sig}
- m4-1.4.16-readlink-einval.patch)
+ m4-1.4.16-readlink-einval.patch
+ gnulib-no-gets.patch)
md5sums=('7548ec061a1ba993790159764f522d0e'
'eebe5c94e74e7551e2e30c5844f1b653'
- 'cea138fa9b568d06e46269611cec8dd0')
+ 'cea138fa9b568d06e46269611cec8dd0'
+ '9593407bef0afdca88c76a2959d6596f')
build() {
cd ${srcdir}/$pkgname-$pkgver
patch -Np1 -i $srcdir/m4-1.4.16-readlink-einval.patch
+ patch -p1 -i "$srcdir/gnulib-no-gets.patch"
./configure --prefix=/usr
make
}
diff --git a/core/m4/gnulib-no-gets.patch b/core/m4/gnulib-no-gets.patch
new file mode 100644
index 000000000..c26c4ac6f
--- /dev/null
+++ b/core/m4/gnulib-no-gets.patch
@@ -0,0 +1,16 @@
+diff -ru m4-1.4.16.orig/lib/stdio.in.h m4-1.4.16/lib/stdio.in.h
+--- m4-1.4.16.orig/lib/stdio.in.h 2012-10-21 21:47:45.261174075 +0200
++++ m4-1.4.16/lib/stdio.in.h 2012-10-21 21:48:14.728646610 +0200
+@@ -158,12 +158,6 @@
+ "use gnulib module fflush for portable POSIX compliance");
+ #endif
+
+-/* It is very rare that the developer ever has full control of stdin,
+- so any use of gets warrants an unconditional warning. Assume it is
+- always declared, since it is required by C89. */
+-#undef gets
+-_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
+-
+ #if @GNULIB_FOPEN@
+ # if @REPLACE_FOPEN@
+ # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
diff --git a/core/make/PKGBUILD b/core/make/PKGBUILD
index 8a3be4a9b..cbc6f77c1 100644
--- a/core/make/PKGBUILD
+++ b/core/make/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=make
pkgver=3.82
pkgrel=5
pkgdesc="GNU make utility to maintain groups of programs"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.gnu.org/software/make"
license=('GPL3')
groups=('base-devel')
diff --git a/core/man-db/PKGBUILD b/core/man-db/PKGBUILD
index b283a923c..818087e98 100644
--- a/core/man-db/PKGBUILD
+++ b/core/man-db/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=man-db
pkgver=2.6.3
pkgrel=1
pkgdesc="A utility for reading man pages"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.nongnu.org/man-db/"
license=('GPL' 'LGPL')
groups=('base')
diff --git a/core/mdadm/PKGBUILD b/core/mdadm/PKGBUILD
index f00b8d0fa..06593cd13 100644
--- a/core/mdadm/PKGBUILD
+++ b/core/mdadm/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=mdadm
pkgver=3.2.6
pkgrel=1
pkgdesc="A tool for managing/monitoring Linux md device arrays, also known as Software RAID"
-arch=(i686 x86_64)
+arch=(i686 x86_64 'mips64el')
license=('GPL')
url="http://neil.brown.name/blog/mdadm"
groups=('base')
diff --git a/core/mkinitcpio-busybox/PKGBUILD b/core/mkinitcpio-busybox/PKGBUILD
index f85beb6ea..85af29111 100644
--- a/core/mkinitcpio-busybox/PKGBUILD
+++ b/core/mkinitcpio-busybox/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=mkinitcpio-busybox
pkgver=1.20.2
pkgrel=1
pkgdesc="base initramfs tools"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.busybox.net/"
license=('GPL')
depends=('glibc')
@@ -21,7 +21,12 @@ sha256sums=('eb13ff01dae5618ead2ef6f92ba879e9e0390f9583bd545d8789d27cf39b6882'
build() {
cd "$srcdir/busybox-$pkgver"
- local safeflags="${CARCH/_/-} -mtune=generic -Os -pipe -fno-strict-aliasing"
+ case $CARCH in
+ mips64el)
+ local safeflags='mips3 -mtune=loongson2f -O2 -mabi=n32 -mplt -Wa,-mfix-loongson2f-nop -Os -pipe -fno-strict-aliasing' ;;
+ *)
+ local safeflags="${CARCH/_/-} -mtune=generic -Os -pipe -fno-strict-aliasing" ;;
+ esac
sed 's|^\(CONFIG_EXTRA_CFLAGS\)=.*|\1="-march='"$safeflags"'"|' \
"$srcdir/config" > .config
diff --git a/core/mkinitcpio-nfs-utils/PKGBUILD b/core/mkinitcpio-nfs-utils/PKGBUILD
index b2132b07d..b2a57c6f9 100644
--- a/core/mkinitcpio-nfs-utils/PKGBUILD
+++ b/core/mkinitcpio-nfs-utils/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=mkinitcpio-nfs-utils
pkgver=0.3
pkgrel=4
pkgdesc="ipconfig and nfsmount tools for NFS root support in mkinitcpio"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.archlinux.org/"
license=('GPL2')
depends=('glibc')
diff --git a/core/mlocate/PKGBUILD b/core/mlocate/PKGBUILD
index c8d979f9a..9ebf0261c 100644
--- a/core/mlocate/PKGBUILD
+++ b/core/mlocate/PKGBUILD
@@ -8,7 +8,7 @@ pkgver=0.26
pkgrel=1
pkgdesc='Merging locate/updatedb implementation'
url='https://fedorahosted.org/mlocate/'
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('GPL')
backup=('etc/updatedb.conf'
'etc/cron.daily/updatedb')
diff --git a/core/mpfr/PKGBUILD b/core/mpfr/PKGBUILD
index e4e66c7dd..4c9ccfd5d 100644
--- a/core/mpfr/PKGBUILD
+++ b/core/mpfr/PKGBUILD
@@ -8,7 +8,7 @@ _patchlevel=p2
pkgver=${_pkgver}.${_patchlevel}
pkgrel=2
pkgdesc="Multiple-precision floating-point library"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.mpfr.org/"
license=('LGPL')
depends=('gmp>=5.0')
diff --git a/core/nano/PKGBUILD b/core/nano/PKGBUILD
index 29daecb1a..18762569e 100644
--- a/core/nano/PKGBUILD
+++ b/core/nano/PKGBUILD
@@ -4,9 +4,9 @@
pkgname=nano
pkgver=2.2.6
-pkgrel=2
+pkgrel=2.2
pkgdesc="Pico editor clone with enhancements"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('GPL')
url="http://www.nano-editor.org"
groups=('base')
diff --git a/core/ncurses/PKGBUILD b/core/ncurses/PKGBUILD
index b55c21040..df3ac7938 100644
--- a/core/ncurses/PKGBUILD
+++ b/core/ncurses/PKGBUILD
@@ -4,9 +4,9 @@
pkgname=ncurses
pkgver=5.9
-pkgrel=3
+pkgrel=3.2
pkgdesc="System V Release 4.0 curses emulation library"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.gnu.org/software/ncurses/"
license=('MIT')
depends=('glibc')
diff --git a/core/net-tools/PKGBUILD b/core/net-tools/PKGBUILD
index 3bd848408..f9203aac7 100644
--- a/core/net-tools/PKGBUILD
+++ b/core/net-tools/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=net-tools
pkgver=1.60.20120804git
pkgrel=2
pkgdesc="Configuration tools for Linux networking"
-arch=(i686 x86_64)
+arch=(i686 x86_64 'mips64el')
license=('GPL2')
url="http://net-tools.sourceforge.net/"
depends=('glibc')
diff --git a/core/nfs-utils/PKGBUILD b/core/nfs-utils/PKGBUILD
index 079afece1..c40aaf30a 100644
--- a/core/nfs-utils/PKGBUILD
+++ b/core/nfs-utils/PKGBUILD
@@ -9,7 +9,7 @@ pkgname=nfs-utils
pkgver=1.2.6
pkgrel=4
pkgdesc="Support programs for Network File Systems"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url='http://nfs.sourceforge.net'
license=('GPL')
backup=(etc/{exports,idmapd.conf,nfsmount.conf} etc/conf.d/{nfs-common.conf,nfs-server.conf})
diff --git a/core/nfsidmap/PKGBUILD b/core/nfsidmap/PKGBUILD
index da237370d..5f00e41da 100644
--- a/core/nfsidmap/PKGBUILD
+++ b/core/nfsidmap/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=nfsidmap
pkgver=0.25
pkgrel=1
pkgdesc="Library to help mapping IDs, mainly for NFSv4"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.citi.umich.edu/projects/nfsv4/linux/"
depends=('glibc' 'libldap>=2.4.18')
license=('custom:nfsidmap')
diff --git a/core/nilfs-utils/PKGBUILD b/core/nilfs-utils/PKGBUILD
index f943a0d97..24723ca85 100644
--- a/core/nilfs-utils/PKGBUILD
+++ b/core/nilfs-utils/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=nilfs-utils
pkgver=2.1.4
pkgrel=1
pkgdesc="A log-structured file system supporting continuous snapshotting (userspace utils)"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.nilfs.org/"
license=('GPL2' 'LGPL2.1')
backup=('etc/nilfs_cleanerd.conf')
diff --git a/core/nss-myhostname/PKGBUILD b/core/nss-myhostname/PKGBUILD
index b07e30808..79609467d 100644
--- a/core/nss-myhostname/PKGBUILD
+++ b/core/nss-myhostname/PKGBUILD
@@ -5,7 +5,7 @@ pkgname="nss-myhostname"
pkgver=0.3
pkgrel=3
pkgdesc="NSS plugin providing host name resolution for the locally configured system hostname"
-arch=(i686 x86_64)
+arch=(i686 x86_64 mips64el)
url="http://0pointer.de/lennart/projects/nss-myhostname/"
license=('LGPL2.1')
depends=('glibc')
diff --git a/core/openldap/PKGBUILD b/core/openldap/PKGBUILD
index 2084466a0..e346d0936 100644
--- a/core/openldap/PKGBUILD
+++ b/core/openldap/PKGBUILD
@@ -5,7 +5,7 @@ pkgbase=openldap
pkgname=('libldap' 'openldap')
pkgver=2.4.33
pkgrel=3
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.openldap.org/"
license=('custom')
makedepends=('libltdl' 'libsasl' 'e2fsprogs' 'util-linux')
diff --git a/core/openssh/PKGBUILD b/core/openssh/PKGBUILD
index a02ad3953..5b57749eb 100644
--- a/core/openssh/PKGBUILD
+++ b/core/openssh/PKGBUILD
@@ -9,7 +9,7 @@ pkgrel=4
pkgdesc='Free version of the SSH connectivity tools'
url='http://www.openssh.org/portable.html'
license=('custom:BSD')
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
makedepends=('linux-headers')
depends=('krb5' 'openssl' 'libedit' 'ldns')
optdepends=('xorg-xauth: X11 forwarding'
diff --git a/core/openssl/PKGBUILD b/core/openssl/PKGBUILD
index 29fd88509..03cf93533 100644
--- a/core/openssl/PKGBUILD
+++ b/core/openssl/PKGBUILD
@@ -8,7 +8,7 @@ pkgver=${_ver/[a-z]/.${_ver//[0-9.]/}}
#pkgver=$_ver
pkgrel=1
pkgdesc='The Open Source toolkit for Secure Sockets Layer and Transport Layer Security'
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url='https://www.openssl.org'
license=('custom:BSD')
depends=('perl')
@@ -16,12 +16,10 @@ optdepends=('ca-certificates')
options=('!makeflags')
backup=('etc/ssl/openssl.cnf')
source=("https://www.openssl.org/source/${pkgname}-${_ver}.tar.gz"
- "https://www.openssl.org/source/${pkgname}-${_ver}.tar.gz.asc"
'fix-manpages.patch'
'no-rpath.patch'
'ca-dir.patch')
md5sums=('ae412727c8c15b67880aef7bd2999b2e'
- 'a3d90bc42253def61cd1c4237f1ce5f7'
'5bbc0655bda2af95bc8eb568963ce8ba'
'dc78d3d06baffc16217519242ce92478'
'3bf51be3a1bbd262be46dc619f92aa90')
@@ -29,14 +27,6 @@ md5sums=('ae412727c8c15b67880aef7bd2999b2e'
build() {
cd $srcdir/$pkgname-$_ver
- if [ "${CARCH}" == 'x86_64' ]; then
- openssltarget='linux-x86_64'
- optflags='enable-ec_nistp_64_gcc_128'
- elif [ "${CARCH}" == 'i686' ]; then
- openssltarget='linux-elf'
- optflags=''
- fi
-
# avoid conflicts with other man pages
# see http://www.linuxfromscratch.org/patches/downloads/openssl/
patch -p1 -i $srcdir/fix-manpages.patch
@@ -44,6 +34,17 @@ build() {
patch -p0 -i $srcdir/no-rpath.patch
# set ca dir to /etc/ssl by default
patch -p0 -i $srcdir/ca-dir.patch
+
+ case "${CARCH}" in
+ 'x86_64')
+ openssltarget='linux-x86_64'
+ optflags='enable-ec_nistp_64_gcc_128' ;;
+ 'i686')
+ openssltarget='linux-elf' ;;
+ 'mips64el')
+ openssltarget='linux-generic32' ;;
+ esac
+
# mark stack as non-executable: http://bugs.archlinux.org/task/12434
# workaround for PR#2771: OPENSSL_NO_TLS1_2_CLIENT
./Configure --prefix=/usr --openssldir=/etc/ssl --libdir=lib \
diff --git a/core/openssl/gnu-linux-mips64el-gcc.patch b/core/openssl/gnu-linux-mips64el-gcc.patch
new file mode 100644
index 000000000..412ea873f
--- /dev/null
+++ b/core/openssl/gnu-linux-mips64el-gcc.patch
@@ -0,0 +1,10 @@
+--- Configure.orig 2011-09-23 10:49:56.725704188 -0300
++++ Configure 2011-09-23 11:01:00.377697297 -0300
+@@ -337,6 +337,7 @@
+ # *-generic* is endian-neutral target, but ./config is free to
+ # throw in -D[BL]_ENDIAN, whichever appropriate...
+ "linux-generic32","gcc:-DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
++"gnu-linux-mips64el-gcc","gcc:-mabi=n32 -O3 -DTERMIO -Wall::-D_REENTRANT::-ldl:BN_LLONG MD2_CHAR RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR:${mips3_asm}:dlfcn:linux-shared:-fPIC::-mabi=n32:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR):::32",
+ "linux-ppc", "gcc:-DB_ENDIAN -DTERMIO -O3 -Wall::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_RISC1 DES_UNROLL:${ppc32_asm}:linux32:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
+ # It's believed that majority of ARM toolchains predefine appropriate -march.
+ # If you compiler does not, do complement config command line with one!
diff --git a/core/openvpn/PKGBUILD b/core/openvpn/PKGBUILD
index c5afc3912..cad8888fb 100644
--- a/core/openvpn/PKGBUILD
+++ b/core/openvpn/PKGBUILD
@@ -3,9 +3,9 @@
pkgname=openvpn
pkgver=2.2.2
-pkgrel=2
+pkgrel=2.1
pkgdesc="An easy-to-use, robust, and highly configurable VPN (Virtual Private Network)"
-arch=(i686 x86_64)
+arch=(i686 x86_64 'mips64el')
url="http://openvpn.net/index.php/open-source.html"
depends=('openssl' 'lzo2' 'iproute2')
license=('custom')
diff --git a/core/pam/PKGBUILD b/core/pam/PKGBUILD
index 1e7c611b7..347809f28 100644
--- a/core/pam/PKGBUILD
+++ b/core/pam/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=pam
pkgver=1.1.6
pkgrel=1
pkgdesc="PAM (Pluggable Authentication Modules) library"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('GPL2')
url="http://www.kernel.org/pub/linux/libs/pam/"
depends=('glibc' 'db' 'cracklib' 'libtirpc' 'pambase')
diff --git a/core/patch/PKGBUILD b/core/patch/PKGBUILD
index 5d7b9f06a..8174e80eb 100644
--- a/core/patch/PKGBUILD
+++ b/core/patch/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=patch
pkgver=2.7.1
pkgrel=2
pkgdesc="A utility to apply patch files to original sources"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.gnu.org/software/patch/patch.html"
license=('GPL')
groups=('base-devel')
diff --git a/core/pciutils/PKGBUILD b/core/pciutils/PKGBUILD
index 30462893c..021049505 100644
--- a/core/pciutils/PKGBUILD
+++ b/core/pciutils/PKGBUILD
@@ -4,7 +4,7 @@ pkgname=pciutils
pkgver=3.1.10
pkgrel=1
pkgdesc="PCI bus configuration space access library and tools"
-arch=(i686 x86_64)
+arch=(i686 x86_64 'mips64el')
license=('GPL2')
groups=('base')
url="http://mj.ucw.cz/sw/pciutils/"
diff --git a/core/pcre/PKGBUILD b/core/pcre/PKGBUILD
index 86269ade2..bf1bb10d2 100644
--- a/core/pcre/PKGBUILD
+++ b/core/pcre/PKGBUILD
@@ -7,7 +7,7 @@ pkgname=pcre
pkgver=8.32
pkgrel=1
pkgdesc="A library that implements Perl 5-style regular expressions"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.pcre.org/"
license=('BSD')
depends=('gcc-libs')
diff --git a/core/perl/PKGBUILD b/core/perl/PKGBUILD
index 821b0837c..08309dc5e 100644
--- a/core/perl/PKGBUILD
+++ b/core/perl/PKGBUILD
@@ -8,7 +8,7 @@ pkgname=perl
pkgver=5.16.2
pkgrel=2
pkgdesc="A highly capable, feature-rich programming language"
-arch=(i686 x86_64)
+arch=(i686 x86_64 'mips64el')
license=('GPL' 'PerlArtistic')
url="http://www.perl.org"
groups=('base')
diff --git a/core/pinentry/PKGBUILD b/core/pinentry/PKGBUILD
index b5c199b3c..280ef63fc 100644
--- a/core/pinentry/PKGBUILD
+++ b/core/pinentry/PKGBUILD
@@ -4,7 +4,7 @@ pkgname=pinentry
pkgver=0.8.2
pkgrel=1
pkgdesc="a collection of simple PIN or passphrase entry dialogs which utilize the Assuan protocol"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('GPL')
url="http://www.gnupg.org/aegypten2"
depends=('ncurses' 'libcap>=2.16')
diff --git a/core/pkg-config/PKGBUILD b/core/pkg-config/PKGBUILD
index a244d10f3..a803d7e6a 100644
--- a/core/pkg-config/PKGBUILD
+++ b/core/pkg-config/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=pkg-config
pkgver=0.28
pkgrel=1
pkgdesc="A system for managing library compile/link flags"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://pkgconfig.freedesktop.org/wiki/"
license=('GPL')
groups=('base-devel')
diff --git a/core/popt/PKGBUILD b/core/popt/PKGBUILD
index 96b902656..504665858 100644
--- a/core/popt/PKGBUILD
+++ b/core/popt/PKGBUILD
@@ -9,7 +9,7 @@ pkgname=popt
pkgver=1.16
pkgrel=5
pkgdesc="A commandline option parser"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://rpm5.org"
license=('custom')
depends=('glibc')
diff --git a/core/ppl/PKGBUILD b/core/ppl/PKGBUILD
index daa119661..8114e978d 100644
--- a/core/ppl/PKGBUILD
+++ b/core/ppl/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=ppl
pkgver=1.0
pkgrel=1
pkgdesc="A modern library for convex polyhedra and other numerical abstractions."
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://bugseng.com/products/ppl"
license=('GPL3')
depends=('gmp>=5.0')
diff --git a/core/ppp/PKGBUILD b/core/ppp/PKGBUILD
index 9b392bb2e..2e7f0f39e 100644
--- a/core/ppp/PKGBUILD
+++ b/core/ppp/PKGBUILD
@@ -4,7 +4,7 @@ pkgname=ppp
pkgver=2.4.5
pkgrel=5
pkgdesc="A daemon which implements the Point-to-Point Protocol for dial-up networking"
-arch=(i686 x86_64)
+arch=(i686 x86_64 'mips64el')
url="http://www.samba.org/ppp/"
license=('custom:GPL/BSD')
groups=('base')
diff --git a/core/pptpclient/PKGBUILD b/core/pptpclient/PKGBUILD
index b27c7d5bc..b20279bf3 100644
--- a/core/pptpclient/PKGBUILD
+++ b/core/pptpclient/PKGBUILD
@@ -4,9 +4,9 @@
pkgname=pptpclient
pkgver=1.7.2
-pkgrel=4
+pkgrel=4.1
pkgdesc="Client for the proprietary Microsoft Point-to-Point Tunneling Protocol, PPTP."
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://pptpclient.sourceforge.net/"
license=('GPL')
depends=('ppp' 'iproute2')
diff --git a/core/procinfo-ng/PKGBUILD b/core/procinfo-ng/PKGBUILD
index e63a20625..5ab52f563 100644
--- a/core/procinfo-ng/PKGBUILD
+++ b/core/procinfo-ng/PKGBUILD
@@ -4,9 +4,9 @@
pkgname=procinfo-ng
pkgver=2.0.304
-pkgrel=3
+pkgrel=3.2
pkgdesc="Displays useful information from /proc"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://procinfo-ng.sourceforge.net/"
license=('GPL2' 'LGPL2.1')
depends=('ncurses' 'perl')
diff --git a/core/procps-ng/PKGBUILD b/core/procps-ng/PKGBUILD
index deede7ef4..9b2c65949 100644
--- a/core/procps-ng/PKGBUILD
+++ b/core/procps-ng/PKGBUILD
@@ -8,9 +8,10 @@ pkgrel=1
pkgdesc='Utilities for monitoring your system and its processes'
url="http://gitorious.org/procps"
license=('GPL' 'LGPL')
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
groups=('base')
depends=('ncurses')
+makedepends=('git')
conflicts=('procps')
provides=('procps')
replaces=('procps')
diff --git a/core/psmisc/PKGBUILD b/core/psmisc/PKGBUILD
index 28e7909ec..ae7d1b23d 100644
--- a/core/psmisc/PKGBUILD
+++ b/core/psmisc/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=psmisc
pkgver=22.19
pkgrel=1
pkgdesc="Miscellaneous procfs tools"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://psmisc.sourceforge.net/index.html"
license=('GPL')
groups=('base')
diff --git a/core/pth/PKGBUILD b/core/pth/PKGBUILD
index 8ba1b8411..790da678f 100644
--- a/core/pth/PKGBUILD
+++ b/core/pth/PKGBUILD
@@ -3,9 +3,9 @@
pkgname=pth
pkgver=2.0.7
-pkgrel=4
+pkgrel=4.1
pkgdesc="The GNU Portable Threads."
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.gnu.org/software/pth/"
license=('LGPL')
depends=('glibc' 'awk')
diff --git a/core/readline/PKGBUILD b/core/readline/PKGBUILD
index 037b7e1d0..43282abe3 100644
--- a/core/readline/PKGBUILD
+++ b/core/readline/PKGBUILD
@@ -8,7 +8,7 @@ _patchlevel=004 #prepare for some patches
pkgver=$_basever.$_patchlevel
pkgrel=1
pkgdesc="GNU readline library"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://tiswww.case.edu/php/chet/readline/rltop.html"
license=('GPL')
depends=('glibc' 'ncurses')
diff --git a/core/reiserfsprogs/PKGBUILD b/core/reiserfsprogs/PKGBUILD
index ca73bf439..e6e708bbb 100644
--- a/core/reiserfsprogs/PKGBUILD
+++ b/core/reiserfsprogs/PKGBUILD
@@ -4,9 +4,9 @@
pkgname=reiserfsprogs
pkgver=3.6.21
-pkgrel=4
+pkgrel=4.1
pkgdesc="Reiserfs utilities"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.kernel.org/"
license=('GPL')
groups=('base')
diff --git a/core/rfkill/PKGBUILD b/core/rfkill/PKGBUILD
index 3ac08c05d..580296392 100644
--- a/core/rfkill/PKGBUILD
+++ b/core/rfkill/PKGBUILD
@@ -9,7 +9,7 @@ pkgrel=7
pkgdesc='Tool for enabling and disabling wireless devices'
url='http://linuxwireless.org/en/users/Documentation/rfkill'
license=('custom')
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
source=("http://wireless.kernel.org/download/${pkgname}/${pkgname}-${pkgver}.tar.bz2"
'service.unblock'
'service.block'
diff --git a/core/rpcbind/PKGBUILD b/core/rpcbind/PKGBUILD
index e536a2cbb..96385c96b 100644
--- a/core/rpcbind/PKGBUILD
+++ b/core/rpcbind/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=rpcbind
pkgver=0.2.0
pkgrel=9
pkgdesc="portmap replacement which supports RPC over various protocols"
-arch=(i686 x86_64)
+arch=(i686 x86_64 'mips64el')
depends=('bash' 'glibc' 'libtirpc')
url="http://rpcbind.sourceforge.net"
license=('custom')
diff --git a/core/run-parts/PKGBUILD b/core/run-parts/PKGBUILD
index f86f075ee..d37232a68 100644
--- a/core/run-parts/PKGBUILD
+++ b/core/run-parts/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=run-parts
pkgver=4.3.4
pkgrel=1
pkgdesc='run scripts or programs in a directory'
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url='http://packages.qa.debian.org/d/debianutils.html'
license=('GPL')
depends=('glibc')
diff --git a/core/sdparm/PKGBUILD b/core/sdparm/PKGBUILD
index d983deffd..b72eb2c23 100644
--- a/core/sdparm/PKGBUILD
+++ b/core/sdparm/PKGBUILD
@@ -5,9 +5,9 @@
pkgname=sdparm
pkgver=1.07
-pkgrel=1
+pkgrel=1.1
pkgdesc="An utility similar to hdparm but for SCSI devices"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://sg.danny.cz/sg/sdparm.html"
license=('BSD')
depends=('glibc')
diff --git a/core/sed/PKGBUILD b/core/sed/PKGBUILD
index 05d520bf4..4dcccd0e8 100644
--- a/core/sed/PKGBUILD
+++ b/core/sed/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=sed
pkgver=4.2.2
pkgrel=2
pkgdesc="GNU stream editor"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.gnu.org/software/sed"
license=('GPL3')
groups=('base' 'base-devel')
diff --git a/core/shadow/PKGBUILD b/core/shadow/PKGBUILD
index 79fb31f1b..ce03fa0b1 100644
--- a/core/shadow/PKGBUILD
+++ b/core/shadow/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=shadow
pkgver=4.1.5.1
pkgrel=4
pkgdesc="Password and account management tool suite with support for shadow files and PAM"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url='http://pkg-shadow.alioth.debian.org/'
license=('BSD')
groups=('base')
diff --git a/core/sudo/PKGBUILD b/core/sudo/PKGBUILD
index a92f789cf..37d8b9ac9 100644
--- a/core/sudo/PKGBUILD
+++ b/core/sudo/PKGBUILD
@@ -8,7 +8,7 @@ _sudover=1.8.6p5
pkgver=${_sudover/p/.p}
pkgrel=1
pkgdesc="Give certain users the ability to run some commands as root"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.sudo.ws/sudo/"
license=('custom')
depends=('glibc' 'pam')
diff --git a/core/sysfsutils/PKGBUILD b/core/sysfsutils/PKGBUILD
index 1fa9bc5f0..a76eb10bf 100644
--- a/core/sysfsutils/PKGBUILD
+++ b/core/sysfsutils/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=sysfsutils
pkgver=2.1.0
pkgrel=8
pkgdesc="System Utilities Based on Sysfs"
-arch=(i686 x86_64)
+arch=(i686 x86_64 'mips64el')
license=('GPL' 'LGPL')
url="http://linux-diag.sourceforge.net/Sysfsutils.html"
groups=('base')
diff --git a/core/systemd/PKGBUILD b/core/systemd/PKGBUILD
index 8bae20a2b..c79f893e7 100644
--- a/core/systemd/PKGBUILD
+++ b/core/systemd/PKGBUILD
@@ -5,13 +5,13 @@ pkgbase=systemd
pkgname=('systemd' 'systemd-sysvcompat')
pkgver=197
pkgrel=4
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.freedesktop.org/wiki/Software/systemd"
license=('GPL2' 'LGPL2.1' 'MIT')
makedepends=('acl' 'cryptsetup' 'dbus-core' 'docbook-xsl' 'gobject-introspection' 'gperf'
'gtk-doc' 'intltool' 'kmod' 'libcap' 'libgcrypt' 'libmicrohttpd' 'libxslt'
'linux-api-headers' 'pam' 'python' 'quota-tools' 'xz')
-options=('!libtool')
+options=('!libtool' '!makeflags' '!distcc')
source=("http://www.freedesktop.org/software/$pkgname/$pkgname-$pkgver.tar.xz"
'0001-dbus-fix-serialization-of-calendar-timers.patch'
'initcpio-hook-udev'
@@ -31,6 +31,8 @@ build() {
# hang onto this until we do the /{,s}bin merge
patch -Np1 <"$srcdir/use-split-usr-path.patch"
+ [ "$CARCH" = "mips64el" ] && CFLAGS+=" -mno-plt"
+
# fix assertion failure when using calendar timers
# upstream 3761902e2e120849c283106fd4b78b6adec7367e
patch -Np1 <"$srcdir/0001-dbus-fix-serialization-of-calendar-timers.patch"
diff --git a/core/sysvinit/PKGBUILD b/core/sysvinit/PKGBUILD
index 334bafded..b0bdb8f21 100644
--- a/core/sysvinit/PKGBUILD
+++ b/core/sysvinit/PKGBUILD
@@ -5,7 +5,7 @@ pkgbase=sysvinit
pkgname=('sysvinit-tools' 'sysvinit')
pkgver=2.88
pkgrel=9
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://savannah.nongnu.org/projects/sysvinit"
license=('GPL')
depends=('util-linux' 'coreutils' 'glibc' 'awk')
diff --git a/core/tar/PKGBUILD b/core/tar/PKGBUILD
index f064f08c1..17ae0414c 100644
--- a/core/tar/PKGBUILD
+++ b/core/tar/PKGBUILD
@@ -4,9 +4,9 @@
pkgname=tar
pkgver=1.26
-pkgrel=2
+pkgrel=2.1
pkgdesc="Utility used to store, backup, and transport files"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.gnu.org/software/tar/tar.html"
license=('GPL3')
groups=('base')
@@ -14,14 +14,17 @@ depends=('glibc' 'sh')
options=('!emptydirs')
install=tar.install
source=(ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz{,.sig}
- tar.1)
+ tar.1
+ gnulib-no-gets.patch)
md5sums=('0ced6f20b9fa1bea588005b5ad4b52c1'
'6618d5fe7785e138c27d7d6a24e998b2'
- 'e97e7343f4e23724b4c48bca2f033e38')
+ 'e97e7343f4e23724b4c48bca2f033e38'
+ '4408365a66887d65f4c8d1f416fb9d9f')
build() {
cd ${srcdir}/$pkgname-$pkgver
+ patch -p1 -i "$srcdir/gnulib-no-gets.patch"
./configure --prefix=/usr --libexecdir=/usr/lib/tar --bindir=/bin
make
}
diff --git a/core/tar/gnulib-no-gets.patch b/core/tar/gnulib-no-gets.patch
new file mode 100644
index 000000000..b26e3c0bb
--- /dev/null
+++ b/core/tar/gnulib-no-gets.patch
@@ -0,0 +1,16 @@
+diff -ru tar-1.26.orig/gnu/stdio.in.h tar-1.26/gnu/stdio.in.h
+--- tar-1.26.orig/gnu/stdio.in.h 2012-10-21 22:03:53.410910902 +0200
++++ tar-1.26/gnu/stdio.in.h 2012-10-21 22:04:07.945278072 +0200
+@@ -160,12 +160,6 @@
+ "use gnulib module fflush for portable POSIX compliance");
+ #endif
+
+-/* It is very rare that the developer ever has full control of stdin,
+- so any use of gets warrants an unconditional warning. Assume it is
+- always declared, since it is required by C89. */
+-#undef gets
+-_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
+-
+ #if @GNULIB_FOPEN@
+ # if @REPLACE_FOPEN@
+ # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
diff --git a/core/texinfo/PKGBUILD b/core/texinfo/PKGBUILD
index 0dc4ef81d..b46429998 100644
--- a/core/texinfo/PKGBUILD
+++ b/core/texinfo/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=texinfo
pkgver=4.13a
pkgrel=8
pkgdesc="Utilities to work with and produce manuals, ASCII text, and on-line documentation from a single source file"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.gnu.org/software/texinfo/"
license=('GPL3')
groups=('base' 'base-devel')
diff --git a/core/traceroute/PKGBUILD b/core/traceroute/PKGBUILD
index b0bff2380..76a48f766 100644
--- a/core/traceroute/PKGBUILD
+++ b/core/traceroute/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=traceroute
pkgver=2.0.19
pkgrel=1
pkgdesc="Tracks the route taken by packets over an IP network"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://traceroute.sourceforge.net/"
license=('GPL2')
depends=('glibc')
diff --git a/core/usbutils/PKGBUILD b/core/usbutils/PKGBUILD
index 08513e513..a28d19be6 100644
--- a/core/usbutils/PKGBUILD
+++ b/core/usbutils/PKGBUILD
@@ -7,7 +7,7 @@ pkgname=usbutils
pkgver=006
pkgrel=1
pkgdesc="USB Device Utilities"
-arch=(i686 x86_64)
+arch=(i686 x86_64 'mips64el')
license=('GPL')
groups=('base')
depends=('libusb' 'hwids')
diff --git a/core/util-linux/PKGBUILD b/core/util-linux/PKGBUILD
index e0aabed6c..3f8dece1b 100644
--- a/core/util-linux/PKGBUILD
+++ b/core/util-linux/PKGBUILD
@@ -7,7 +7,7 @@ pkgver=2.22.2
pkgrel=1
pkgdesc="Miscellaneous system utilities for Linux"
url="http://www.kernel.org/pub/linux/utils/util-linux/"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
groups=('base')
depends=('pam' 'shadow' 'coreutils' 'glibc')
# checkdepends=('bc')
diff --git a/core/vi/PKGBUILD b/core/vi/PKGBUILD
index cb27b8820..ca5eaf501 100644
--- a/core/vi/PKGBUILD
+++ b/core/vi/PKGBUILD
@@ -6,7 +6,7 @@ pkgver=050325
pkgrel=3
epoch=1
pkgdesc='The original ex/vi text editor.'
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url='http://ex-vi.sourceforge.net/'
license=('custom:ex')
depends=('ncurses')
diff --git a/core/wget/PKGBUILD b/core/wget/PKGBUILD
deleted file mode 100644
index bb30e7e22..000000000
--- a/core/wget/PKGBUILD
+++ /dev/null
@@ -1,45 +0,0 @@
-# $Id: PKGBUILD 138218 2011-09-19 05:03:16Z allan $
-# Maintainer: Allan McRae <allan@archlinux.org>
-# Contributor: Judd Vinet <jvinet@zeroflux.org>
-
-pkgname=wget
-pkgver=1.13.4
-pkgrel=1
-pkgdesc="A network utility to retrieve files from the Web"
-arch=('i686' 'x86_64')
-url="http://www.gnu.org/software/wget/wget.html"
-license=('GPL3')
-groups=('base')
-depends=('glibc' 'openssl')
-optdepends=('ca-certificates: HTTPS downloads')
-backup=('etc/wgetrc')
-install=wget.install
-source=(ftp://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz)
-md5sums=('7f518b3a71e9efd330e9a0c3714f8463')
-
-build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
-
- # Note : We do not build with --enable-nls, because there is a bug in wget causing
- # international domain names to be not properly converted to punycode if
- # the current locale is a UTF-8 one
- # See : http://lists.gnu.org/archive/html/bug-wget/2011-02/msg00026.html
-
- ./configure -with-ssl=openssl --prefix=/usr --sysconfdir=/etc
- make
-}
-
-package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- make DESTDIR="${pkgdir}" install
-
- cat >> "$pkgdir/etc/wgetrc" <<EOF
-
-# default root certs location
-ca_certificate=/etc/ssl/certs/ca-certificates.crt
-EOF
-
- # remove IRI option from wgetrc as it does not work (see above)
- sed -i '118,120d' $pkgdir/etc/wgetrc
-
-}
diff --git a/core/wget/wget.install b/core/wget/wget.install
deleted file mode 100644
index 8eb6a2c3f..000000000
--- a/core/wget/wget.install
+++ /dev/null
@@ -1,20 +0,0 @@
-infodir=usr/share/info
-filelist=(wget.info)
-
-post_install() {
- [ -x usr/bin/install-info ] || return 0
- for file in ${filelist[@]}; do
- install-info $infodir/$file $infodir/dir 2> /dev/null
- done
-}
-
-post_upgrade() {
- post_install $1
-}
-
-pre_remove() {
- [ -x usr/bin/install-info ] || return 0
- for file in ${filelist[@]}; do
- install-info --delete $infodir/$file $infodir/dir 2> /dev/null
- done
-}
diff --git a/core/which/PKGBUILD b/core/which/PKGBUILD
index 481f51316..ffa451e89 100644
--- a/core/which/PKGBUILD
+++ b/core/which/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=which
pkgver=2.20
pkgrel=6
pkgdesc="A utility to show the full path of commands"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.xs4all.nl/~carlo17/which"
license=('GPL3')
groups=('base' 'base-devel')
diff --git a/core/wireless_tools/PKGBUILD b/core/wireless_tools/PKGBUILD
index 6c377cc12..53ff7f242 100644
--- a/core/wireless_tools/PKGBUILD
+++ b/core/wireless_tools/PKGBUILD
@@ -9,7 +9,7 @@ pkgrel=7
pkgdesc='Tools allowing to manipulate the Wireless Extensions'
url='http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html'
license=('GPL')
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
source=("http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/${pkgname}.${pkgver}.tar.gz"
'dense.patch')
sha1sums=('22040ac1497f4c5f8ddeca365591b01ae3475710'
diff --git a/core/wpa_actiond/PKGBUILD b/core/wpa_actiond/PKGBUILD
index 825c0d011..72edc8776 100644
--- a/core/wpa_actiond/PKGBUILD
+++ b/core/wpa_actiond/PKGBUILD
@@ -4,7 +4,7 @@ pkgname=wpa_actiond
pkgver=1.3
pkgrel=1
pkgdesc="Daemon that connects to wpa_supplicant and handles connect and disconnect events"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://projects.archlinux.org/wpa_actiond.git/"
license=('GPL')
depends=('glibc' 'wpa_supplicant')
diff --git a/core/wpa_supplicant/PKGBUILD b/core/wpa_supplicant/PKGBUILD
index 83ced8ab1..80a58c795 100644
--- a/core/wpa_supplicant/PKGBUILD
+++ b/core/wpa_supplicant/PKGBUILD
@@ -6,7 +6,7 @@ pkgver=1.0
pkgrel=2
pkgdesc="A utility providing key negotiation for WPA wireless networks"
url="http://hostap.epitest.fi/wpa_supplicant"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
depends=('openssl' 'dbus-core' 'readline' 'libnl')
optdepends=('wpa_supplicant_gui: wpa_gui program')
license=('GPL')
diff --git a/core/xfsprogs/PKGBUILD b/core/xfsprogs/PKGBUILD
index 213b16a3d..c56832ad2 100644
--- a/core/xfsprogs/PKGBUILD
+++ b/core/xfsprogs/PKGBUILD
@@ -4,7 +4,7 @@ pkgname=xfsprogs
pkgver=3.1.10
pkgrel=1
pkgdesc="XFS filesystem utilities"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('LGPL')
url="http://oss.sgi.com/projects/xfs/"
groups=('base')
@@ -17,6 +17,7 @@ md5sums=('d6159f7a664d95b4c150d580399d4400')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
export OPTIMIZER="-march=${CARCH/_/-} -O1"
+ [ "$CARCH" = "mips64el" ] && export OPTIMIZER="-mabi=n32 -march=mips3 -mtune=loongson2f -O1"
export DEBUG=-DNDEBUG
./configure --prefix=/usr
make
diff --git a/core/xinetd/PKGBUILD b/core/xinetd/PKGBUILD
index 3ed7dee87..5bee80902 100644
--- a/core/xinetd/PKGBUILD
+++ b/core/xinetd/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=xinetd
pkgver=2.3.15
pkgrel=2
pkgdesc="A secure replacement for inetd"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.xinetd.org/"
license=('custom')
optdepends=('perl: for xconv.pl script')
@@ -27,7 +27,8 @@ md5sums=('77358478fd58efa6366accae99b8b04c'
build() {
cd $srcdir/$pkgname-$pkgver
sed -i "s#${prefix}/man#${prefix}/share/man#" configure
- ./configure --prefix=/usr --without-libwrap
+ ./configure --prefix=/usr --without-libwrap \
+ --build=${CHOST} --host=${CHOST}
make
}
diff --git a/core/xz/PKGBUILD b/core/xz/PKGBUILD
index ef2581b27..0c9e47585 100644
--- a/core/xz/PKGBUILD
+++ b/core/xz/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=xz
pkgver=5.0.4
pkgrel=1
pkgdesc='Library and command line tools for XZ and LZMA compressed files'
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url='http://tukaani.org/xz/'
license=('GPL' 'LGPL' 'custom')
depends=('sh')
diff --git a/core/zlib/PKGBUILD b/core/zlib/PKGBUILD
index e9a9866a7..dc3e18b8a 100644
--- a/core/zlib/PKGBUILD
+++ b/core/zlib/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=zlib
pkgver=1.2.7
pkgrel=1
pkgdesc='Compression library implementing the deflate compression method found in gzip and PKZIP'
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('custom')
url="http://www.zlib.net/"
depends=('glibc')