summaryrefslogtreecommitdiff
path: root/~coadde
diff options
context:
space:
mode:
Diffstat (limited to '~coadde')
-rw-r--r--~coadde/cross-binutils/PKGBUILD406
-rw-r--r--~coadde/cross-binutils/aarch64-unknown-elf-binutils-multilib.install16
-rw-r--r--~coadde/cross-binutils/aarch64-unknown-elf-binutils.install16
-rw-r--r--~coadde/cross-binutils/aarch64-unknown-linux-gnu-binutils-multilib.install16
-rw-r--r--~coadde/cross-binutils/aarch64-unknown-linux-gnu-binutils.install16
-rw-r--r--~coadde/cross-binutils/aarch64_be-unknown-elf-binutils-multilib.install16
-rw-r--r--~coadde/cross-binutils/aarch64_be-unknown-elf-binutils.install16
-rw-r--r--~coadde/cross-binutils/aarch64_be-unknown-linux-gnu-binutils-multilib.install16
-rw-r--r--~coadde/cross-binutils/aarch64_be-unknown-linux-gnu-binutils.install16
-rw-r--r--~coadde/cross-binutils/arm-unknown-eabi-binutils.install16
-rw-r--r--~coadde/cross-binutils/arm5tel-unknown-linux-gnueabi.install16
-rw-r--r--~coadde/cross-binutils/arm6l-unknown-linux-gnueabi.install16
-rw-r--r--~coadde/cross-binutils/arm7l-unknown-linux-gnueabi.install16
-rw-r--r--~coadde/cross-binutils/armeb-unknown-eabi-binutils.install16
-rw-r--r--~coadde/cross-binutils/armeb-unknown-linux-gnueabi.install16
-rw-r--r--~coadde/cross-binutils/binutils.install17
-rw-r--r--~coadde/cross-binutils/i386-unknown-elf-binutils.install16
-rw-r--r--~coadde/cross-binutils/i586-pc-gnu-binutils.install16
-rw-r--r--~coadde/cross-binutils/i586-pc-linux-gnu-binutils.install16
-rw-r--r--~coadde/cross-binutils/i686-pc-gnu-binutils.install16
-rw-r--r--~coadde/cross-binutils/i686-pc-linux-gnu-binutils.install16
-rw-r--r--~coadde/cross-binutils/i786-pc-gnu-binutils.install16
-rw-r--r--~coadde/cross-binutils/i786-pc-linux-gnu-binutils.install16
-rw-r--r--~coadde/cross-binutils/ia64-unknown-linux-gnu-binutils-multilib.install16
-rw-r--r--~coadde/cross-binutils/ia64-unknown-linux-gnu-binutils.install16
-rw-r--r--~coadde/cross-binutils/lm32-unknown-elf-binutils.install16
-rw-r--r--~coadde/cross-binutils/lm32-unknown-linux-gnu-binutils.install16
-rw-r--r--~coadde/cross-binutils/m68k-unknown-elf-binutils.install16
-rw-r--r--~coadde/cross-binutils/mips-unknown-elf-binutils.install16
-rw-r--r--~coadde/cross-binutils/mips64-unknown-elf-binutils-multilib.install16
-rw-r--r--~coadde/cross-binutils/mips64-unknown-elf-binutils.install16
-rw-r--r--~coadde/cross-binutils/mips64-unknown-linux-gnu-binutils-multilib.install16
-rw-r--r--~coadde/cross-binutils/mips64-unknown-linux-gnu-binutils.install16
-rw-r--r--~coadde/cross-binutils/mips64el-unknown-elf-binutils-multilib.install16
-rw-r--r--~coadde/cross-binutils/mips64el-unknown-elf-binutils.install16
-rw-r--r--~coadde/cross-binutils/mips64el-unknown-linux-gnu-binutils-multilib.install16
-rw-r--r--~coadde/cross-binutils/mips64el-unknown-linux-gnu-binutils.install16
-rw-r--r--~coadde/cross-binutils/mipsel-unknown-elf-binutils.install16
-rw-r--r--~coadde/cross-binutils/or32-unknown-elf-binutils.install16
-rw-r--r--~coadde/cross-binutils/or32-unknown-linux-gnu-binutils.install16
-rw-r--r--~coadde/cross-binutils/powerpc-unknown-eabi-binutils.install16
-rw-r--r--~coadde/cross-binutils/powerpc-unknown-elf-binutils.install16
-rw-r--r--~coadde/cross-binutils/powerpc-unknown-linux-gnu-binutils.install16
-rw-r--r--~coadde/cross-binutils/powerpc-unknown-linux-gnueabi-binutils.install16
-rw-r--r--~coadde/cross-binutils/powerpc64-unknown-eabi-binutils-multilib.install16
-rw-r--r--~coadde/cross-binutils/powerpc64-unknown-eabi-binutils.install16
-rw-r--r--~coadde/cross-binutils/powerpc64-unknown-elf-binutils-multilib.install16
-rw-r--r--~coadde/cross-binutils/powerpc64-unknown-elf-binutils.install16
-rw-r--r--~coadde/cross-binutils/powerpc64-unknown-linux-gnu-binutils.install16
-rw-r--r--~coadde/cross-binutils/powerpc64-unknown-linux-gnueabi-binutils.install16
-rw-r--r--~coadde/cross-binutils/powerpc64le-unknown-eabi-binutils-multilib.install16
-rw-r--r--~coadde/cross-binutils/powerpc64le-unknown-eabi-binutils.install16
-rw-r--r--~coadde/cross-binutils/powerpc64le-unknown-elf-binutils-multilib.install16
-rw-r--r--~coadde/cross-binutils/powerpc64le-unknown-elf-binutils.install16
-rw-r--r--~coadde/cross-binutils/powerpc64le-unknown-linux-gnu-binutils.install16
-rw-r--r--~coadde/cross-binutils/powerpc64le-unknown-linux-gnueabi-binutils.install16
-rw-r--r--~coadde/cross-binutils/powerpcle-unknown-eabi-binutils.install16
-rw-r--r--~coadde/cross-binutils/powerpcle-unknown-elf-binutils.install16
-rw-r--r--~coadde/cross-binutils/powerpcle-unknown-linux-gnu-binutils.install16
-rw-r--r--~coadde/cross-binutils/powerpcle-unknown-linux-gnueabi-binutils.install16
-rw-r--r--~coadde/cross-binutils/s390-unknown-linux-gnu-binutils.install16
-rw-r--r--~coadde/cross-binutils/s390x-unknown-linux-gnu-binutils.install16
-rw-r--r--~coadde/cross-binutils/sh-unknown-elf-binutils.install16
-rw-r--r--~coadde/cross-binutils/sh4-unknown-linux-gnu-binutils.install16
-rw-r--r--~coadde/cross-binutils/sh4l-unknown-linux-gnu-binutils.install16
-rw-r--r--~coadde/cross-binutils/sh64-unknown-elf-binutils-multilib.install16
-rw-r--r--~coadde/cross-binutils/sh64-unknown-elf-binutils.install16
-rw-r--r--~coadde/cross-binutils/sh64-unknown-linux-gnu-binutils-multilib.install16
-rw-r--r--~coadde/cross-binutils/sh64-unknown-linux-gnu-binutils.install16
-rw-r--r--~coadde/cross-binutils/sh64l-unknown-elf-binutils-multilib.install16
-rw-r--r--~coadde/cross-binutils/sh64l-unknown-elf-binutils.install16
-rw-r--r--~coadde/cross-binutils/sh64l-unknown-linux-gnu-binutils-multilib.install16
-rw-r--r--~coadde/cross-binutils/sh64l-unknown-linux-gnu-binutils.install16
-rw-r--r--~coadde/cross-binutils/shl-unknown-elf-binutils.install16
-rw-r--r--~coadde/cross-binutils/sparc-unknown-linux-gnu-binutils.install16
-rw-r--r--~coadde/cross-binutils/sparc64-unknown-linux-gnu-binutils-multilib.install16
-rw-r--r--~coadde/cross-binutils/sparc64-unknown-linux-gnu-binutils.install16
-rw-r--r--~coadde/cross-binutils/spu-unknown-elf-binutils.install16
-rw-r--r--~coadde/cross-binutils/x86_64-unknown-elf-binutils-multilib.install16
-rw-r--r--~coadde/cross-binutils/x86_64-unknown-elf-binutils.install16
-rw-r--r--~coadde/cross-binutils/x86_64-unknown-gnu-binutils-multilib.install16
-rw-r--r--~coadde/cross-binutils/x86_64-unknown-gnu-binutils.install16
-rw-r--r--~coadde/cross-binutils/x86_64-unknown-linux-gnu-binutils-multilib.install16
-rw-r--r--~coadde/cross-binutils/x86_64-unknown-linux-gnu-binutils.install16
-rw-r--r--~coadde/cross-binutils/xtensa-unknown-elf-binutils-ath9k-htc.install16
-rw-r--r--~coadde/cross-binutils/xtensa-unknown-elf-binutils.install16
-rw-r--r--~coadde/mariadb/PKGBUILD141
-rw-r--r--~coadde/mariadb/mariadb.install26
-rwxr-xr-x~coadde/mariadb/mariadbd77
-rw-r--r--~coadde/mariadb/my.cnf145
-rw-r--r--~coadde/mariadb/mysql.install26
-rw-r--r--~coadde/mariadb/mysqld77
92 files changed, 2259 insertions, 0 deletions
diff --git a/~coadde/cross-binutils/PKGBUILD b/~coadde/cross-binutils/PKGBUILD
new file mode 100644
index 000000000..9c22f62af
--- /dev/null
+++ b/~coadde/cross-binutils/PKGBUILD
@@ -0,0 +1,406 @@
+# Maintainer: Márcio Silva <coadde@lavabit.com>
+# Contributor: André Silva <emulatorman@parabola.nu>
+
+# toolchain build order: linux-api-headers->glibc->binutils->gcc->binutils->glibc
+
+# +-------------+-------------+-----------------------------------------------------------+-----------+---------+
+# | -march | CARCH | CHOST (_target) | Multilib | QEMU |
+# +-------------+-------------+-------------+----------+----------------------------------+-----------+---------+
+# | _arch | _CARCH | _host | _machine | _system (GNU/*) | _multilib | - |
+# +-------------+-------------+-------------+----------+----------------------------------+-----------+---------+
+# | mips64el | mips64el | mips64el | unknown | linux-gnu|elf | yes | sys |
+# | mips64 | mips64 | mips64 | unknown | linux-gnu|elf | yes | sys |
+# | * | mipsel | mipsel | unknown | elf | no | bin/sys |
+# | * | mips | mips | unknown | elf | no | bin/sys |
+# | x86_64 | x86_64 | x86_64 | unknown | linux-gnu|gnu<|elf | yes | bin/sys |
+# | i[5-7]86 | i[5-7]86 | i[5-7]86 | pc | linux-gnu|gnu| | no | bin/sys |
+# | * | i386 | i386 | unknown | elf | no | bin/sys |
+# | armv8-a | aarch64 | aarch64 | unknown | linux-gnu|elf | yes | - |
+# | armv8-a | aarch64_be | aarch64_be | unknown | linux-gnu|elf | yes | - |
+# | armv7-a | armv7h | armv7l | unknown | linux-gnueabihf | no | bin/sys |
+# | armv6 | armv6h | armv6l | unknown | linux-gnueabihf | no | bin/sys |
+# | armv5te | arm | armv5tel | unknown | linux-gnueabi | no | bin/sys |
+# | * | arm | arm | unknown | eabi | no | bin/sys |
+# | arm | armeb | armeb | unknown | linux-gnueabi|eabi | no | bin |
+# | sparc64 | sparc64 | sparc64 | unknown | linux-gnu | yes | bin/sys |
+# | sparc | sparc | sparc | unknown | linux-gnu | no | bin/sys |
+# | - | ia64 | ia64 | unknown | linux-gnu | yes | - |
+# | - | s390 | s390 | unknown | linux-gnu | no | - |
+# | - | s390x | s390x | unknown | linux-gnu | no | bin/sys |
+# | powerpc64 | powerpc64 | powerpc64 | unknown | linux-gnu|linux-gnueabi|elf|eabi | yes | bin/sys |
+# | powerpc64le | powerpc64le | powerpc64le | unknown | linux-gnu|linux-gnueabi|elf|eabi | yes | - |
+# | powerpc | powerpc | powerpc | unknown | linux-gnu|linux-gnueabi|elf|eabi | no | bin/sys |
+# | powerpcle | powerpcle | powerpcle | unknown | linux-gnu|linux-gnueabi|elf|eabi | no | - |
+# | - | spu | spu | unknown | elf | no | - |
+# | - | sh64 | sh64 | unknown | linux-gnu|elf | yes | - |
+# | - | sh64l | sh64l | unknown | linux-gnu|elf | yes | - |
+# | - | sh4 | sh4 | unknown | linux-gnu | no | bin/sys |
+# | - | sh4l | sh4l | unknown | linux-gnu | no | bin/sys |
+# | - | sh | sh | unknown | elf | no | - @ |
+# | - | shl | shl | unknown | elf | no | - @ |
+# | - | xtensa | xtensa | unknown | elf | no | sys |
+# | * | m68k | m68k | unknown | elf | no | bin/sys |
+# | - | lm32 | lm32 | unknown | linux-gnu|elf | no | sys |
+# | - | or32 | or32 | unknown | linux-gnu<|elf< | no | bin/sys |
+# +-------------+-------------+-------------+----------+----------------------------------+-----------+---------+
+
+# For "DOSBox"
+# +-------------+-------------+-------------+----------+----------------------------------+-----------+---------+
+# | * | i386 | i386 | pc | msdosdjgpp | no | bin/sys |
+# +-------------+-------------+-------------+----------+----------------------------------+-----------+---------+
+
+# For "Wine"
+# +-------------+-------------+-------------+----------+----------------------------------+-----------+---------+
+# | * | x86_64 | x86_64 | unknown | mingw64 | yes | bin/sys |
+# | * | i386 | i386 | unknown | mingw32 | no | bin/sys |
+# +-------------+-------------+-------------+----------+----------------------------------+-----------+---------+
+
+# * : Any supported by architecture.
+# - : None.
+# @ : bin/sys (Only sh4 and sh4l support)
+# < : I will support it. (future)
+
+_carch_list=('mips64el' 'mips64' 'x86_64' 'i786' 'i686' 'i586' 'i486' 'i386' 'aarch64' 'aarch64_be'
+ 'armv7l' 'armv6l' 'armv5tel' 'armeb' 'sparc64' 'sparc' 'ia64' 's390' 's390x'
+ 'powerpc64' 'powerpc64le' 'powerpc' 'powerpcle' 'sh64' 'sh64l' 'sh4' 'sh4l' 'lm32' 'or32')
+_multilib_list=('mips64el' 'mips64' 'x86_64' 'aarch64' 'aarch64_be' 'sparc64' 'ia64' 'powerpc64' 'powerpc64le''sh64' 'sh64l')
+
+#---------------------------------------------------------------------------------------------------------------------------------------------
+
+### Base FLAGS: ###
+# For custom name.
+_pkgname="binutils"
+_pkgver="2.23.2"
+_pkgrel="2"
+# For binutils-common ("${_pkgname}-common${_pkgflag}${_verflag}") release.
+_pkgrelb="2"
+# For _target-binutils ("${_target}-${_pkgname}${_multilib_name}${_ath9k_htc_name}${_pkgflag}${_verflag}") release.
+_pkgrelc="2"
+# For older version.
+_add_version_name="no"
+# For custom pkg.
+_pkgflag=""
+
+### Architecture FLAGS: ###
+# CARCH flag
+_CARCH="mips64"
+# CHOST flags
+_host="${_CARCH}"
+_machine="unknown"
+_system="linux-gnu"
+# Multilib flag
+_multilib="yes"
+
+### Patch FLAGS: ###
+_patch_ath9k_htc_fw="no"
+
+#---------------------------------------------------------------------------------------------------------------------------------------------
+
+# For older version.
+[[ ${_add_version_name} == yes ]] && _verflag="-v${_pkgver}"
+
+# For Architecture.
+_target="${_host}-${_machine}-${_system}"
+
+# For "_patch_ath9k_htc_fw"
+[[ ${_CARCH} != xtensa ]] && _patch_ath9k_htc_fw="no"
+[[ ${_patch_ath9k_htc_fw} == "yes" ]] && {
+ _ath9k_htc_name="-ath9k-htc"
+ _ath9k_htc_desc=" adapted for ath9k-htc firmware"
+ _multilib="no"
+}
+
+# For "_multilib"
+[[ ${_CARCH} != $(echo ${_multilib_list[@]} | sed 's| |\n|g' | grep -x ${_CARCH}) ]] && _multilib="no"
+[[ ${_multilib} == "yes" ]] && {
+ _multilib_name="-multilib"
+ _multilib_desc=" for multilib"
+}
+
+#---------------------------------------------------------------------------------------------------------------------------------------------
+
+pkgname=(
+ "${_target}-${_pkgname}${_multilib_name}${_ath9k_htc_name}${_pkgflag}${_verflag}"
+ "${_pkgname}-common${_pkgflag}${_verflag}"
+)
+pkgver=${_pkgver}
+pkgrel=${_pkgrel}
+arch=("${_carch_list[@]}")
+url="http://www.gnu.org/software/${_pkgname}/"
+license=('GPL2')
+groups=('cross-devel')
+checkdepends=('dejagnu' 'bc')
+# Make sure we compile this with {$CHOST-,}gcc-multilib
+[[ ${_multilib} == "yes" ]] && makedepends=('gcc-multilib') # makedepends=("$CHOST-gcc-multilib")
+options=('!libtool' '!distcc' '!ccache')
+source=(ftp://ftp.gnu.org/gnu/${_pkgname}/${_pkgname}-${pkgver}.tar.bz2{,.sig}
+ ${_pkgname}-2.23.2-texinfo-5.0.patch)
+md5sums=('4f8fa651e35ef262edc01d60fb45702e'
+ 'dfde4428f08d91f309cdcfe92bf28d08'
+ '34e439ce23213a91e2af872dfbb5094c')
+
+[[ ${_patch_ath9k_htc_fw} == "yes" ]] && {
+ source+=("_patch_ath9k_htc_fw.patch::https://raw.github.com/qca/open-ath9k-htc-firmware/1.3.2/local/patches/${_pkgname}.patch")
+ md5sums+=('7077126d96e9a755a0eaddb5505efe68')
+}
+
+#---------------------------------------------------------------------------------------------------------------------------------------------
+
+prepare() {
+ cd ${srcdir}/${_pkgname}-${pkgver}
+
+ msg "http://sourceware.org/git/?p=${_pkgname}.git;a=patch;h=e02bf935"
+ msg "http://sourceware.org/git/?p=${_pkgname}.git;a=patch;h=935f8542"
+ patch -p1 -i ${srcdir}/${_pkgname}-2.23.2-texinfo-5.0.patch
+
+ [[ ${_patch_ath9k_htc_fw} == "yes" ]] && {
+ patch -p1 -i ${srcdir}/_patch_ath9k_htc_fw.patch
+ }
+
+ msg "hack! - libiberty configure tests for header files using" "$CPP $CPPFLAGS"
+ sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
+
+ mkdir -v ${srcdir}/${_pkgname}-build
+}
+
+#---------------------------------------------------------------------------------------------------------------------------------------------
+
+build() {
+ cd ${srcdir}/${_pkgname}-build
+
+ [[ $CARCH != ${_CARCH} ]] && _TARGET="--target=${_target}"
+ if [[ ${_CARCH} == $(echo ${_multilib_list[@]} | sed 's| |\n|g' | grep -x ${_CARCH}) ]]; then
+ _LIB_PATH="--with-lib-path=/usr/lib:/usr/lib32:/usr/local/lib:/usr/local/lib32:/usr/${_target}/lib:/usr/${_target}/lib32"
+ else
+ _LIB_PATH="--with-lib-path=/usr/lib:/usr/local/lib:/usr/${_target}/lib"
+ fi
+
+ if [[ ${_multilib} == "yes" ]]; then
+ _MULTILIB='--enable-multilib'
+ else
+ _MULTILIB='--disable-multilib'
+ fi
+
+ ${srcdir}/${_pkgname}-${pkgver}/configure --prefix=/opt/${pkgname[0]/${_verflag}/}/${pkgver} \
+ $_TARGET $_LIB_PATH \
+ --program-prefix=${_target}- \
+ --program-suffix=${_multilib_name}${_ath9k_htc_name}-${pkgver} \
+ --with-bugurl=https://labs.parabola.nu/ \
+ --enable-ld=default --enable-gold \
+ --enable-plugins --enable-threads \
+ --with-pic --enable-shared \
+ --disable-werror ${_MULTILIB}
+ # !!! Disabled, due which problematic libretools (prepare() and build() with --bindir, --includedir and --datarootdir)" !!!
+ #--bindir=/usr/bin --includedir=/usr/include --datarootdir=/usr/share \
+
+ msg "Check the host environment and makes sure all the necessary tools are available"
+ make configure-host
+
+ make tooldir=/opt/${pkgname[0]/${_verflag}/}/${pkgver}
+}
+
+#---------------------------------------------------------------------------------------------------------------------------------------------
+
+check() {
+ cd ${srcdir}/${_pkgname}-build
+
+ msg "Unset LDFLAGS as testsuite makes assumptions about which ones are active"
+ msg "do not abort on errors - manually check log files"
+ make LDFLAGS="" -k check || true
+}
+
+#---------------------------------------------------------------------------------------------------------------------------------------------
+
+_target-binutils() {
+ pkgrel=${_pkgrelc}
+ pkgdesc="A set of programs to assemble and manipulate binary and object files${_multilib_desc}${_ath9k_htc_desc}. (${_target} architecture)"
+ depends=('glibc>=2.17' 'zlib' "${_pkgname}-common")
+ [[ $CHOST == ${_target} ]] && provides=("${_pkgname}=${pkgver}")
+ if [[ ${_multilib} == "yes" ]]; then
+ groups+=('multilib-devel')
+ else
+ groups+=('base-devel')
+ fi
+ groups+=("${_target}-devel")
+ install="${_target}-${_pkgname}${_multilib_name}${_ath9k_htc_name}.install"
+
+ cd ${srcdir}/${_pkgname}-build
+ make prefix=${pkgdir}/opt/${pkgname/${_verflag}/}/${pkgver} tooldir=${pkgdir}/opt/${pkgname/${_verflag}/}/${pkgver} install
+
+ # temp #
+ msg "!!! Move 'bin', 'include' and 'share' dir to /usr, !!!"
+ msg "!!! due which problematic libretools ('prepare()' and 'build()' with --bindir, --includedir and --datarootdir) !!!"
+ install -vd ${pkgdir}/usr
+ if [[ $CARCH == ${_CARCH} ]]; then
+ mv -v ${pkgdir}/{opt/${pkgname}/${pkgver}/{bin,include,share},usr}
+ else
+ mv -v ${pkgdir}/{opt/${pkgname}/${pkgver}/{bin,$CHOST/${_target}/include,share},usr}
+ fi
+ # temp #
+
+ [[ $CARCH != ${_CARCH} ]] && {
+ msg "Move 'lib' files and directories, and remove architecture directories"
+ mv -v ${pkgdir}/opt/${pkgname/${_verflag}/}/${pkgver}/{$CHOST/${_target}/lib/*,lib}
+ rmdir -v ${pkgdir}/opt/${pkgname/${_verflag}/}/${pkgver}/$CHOST/{${_target}/{lib,},}
+ }
+
+ msg "Change lib-path on ldscripts files"
+ sed -i "/^SEARCH_DIR/ s|/${pkgver}/${_target}/lib|/${pkgver}/lib|g;
+ /^SEARCH_DIR/ s|/${pkgver}/lib|/${pkgver}/lib32|g;
+ /^SEARCH_DIR/ s|/${pkgver}/lib3264|/${pkgver}/lib|g;
+ /^SEARCH_DIR/ s|/${pkgver}/lib32x32|/${pkgver}/lib|g;
+ " ${pkgdir}/opt/${pkgname/${_verflag}/}/${pkgver}/lib/ldscripts/*
+
+ _removebin=(ar as nm objcopy objdump ranlib strip)
+ for _rbin in ${_removebin[@]}; do
+ msg "Remove conflicting binaries"
+ rm -v ${pkgdir}/usr/bin/${_rbin[@]}
+ done
+
+ msg "Create links for libraries"
+ install -vd ${pkgdir}/{usr/${_target},etc/ld.so.conf.d}
+ ln -vs ../lib ${pkgdir}/usr/${_target}/lib
+ echo /opt/${pkgname/${_verflag}/}/${pkgver}/lib > ${pkgdir}/etc/ld.so.conf.d/${pkgname}-${pkgver}.conf
+
+ msg "Install PIC libiberty.a"
+ install -vm644 libiberty/pic/libiberty.a ${pkgdir}/opt/${pkgname/${_verflag}/}/${pkgver}/lib
+
+ msg "Remove unnecessaries manuals and create links for manuals"
+ _man=$(ls -1A ${pkgdir}/usr/share/man/man1)
+ for _man_stage1 in ${_man[@]}; do
+ _man_stage2=${_man_stage1/${_multilib_name}${_ath9k_htc_name}-${pkgver}/}
+ _manuals=${_man_stage2/${_target}-/}
+ rm -v ${pkgdir}/usr/share/man/man1/${_man_stage1}
+ ln -vs ${_manuals}.gz ${pkgdir}/usr/share/man/man1/${_man_stage1}.gz
+ done
+
+ msg "Remove unnecessaries files and directories"
+ rm -vr ${pkgdir}/usr/{include,share/{info,locale}}
+}
+
+#---------------------------------------------------------------------------------------------------------------------------------------------
+
+# GNU/Linux-libre
+package_mips64el-unknown-linux-gnu-binutils() { _target-binutils; }
+package_mips64el-unknown-linux-gnu-binutils-multilib() { _target-binutils; }
+package_mips64-unknown-linux-gnu-binutils() { _target-binutils; }
+package_mips64-unknown-linux-gnu-binutils-multilib() { _target-binutils; }
+package_x86_64-unknown-linux-gnu-binutils() { _target-binutils; }
+package_x86_64-unknown-linux-gnu-binutils-multilib() { _target-binutils; }
+package_i786-pc-linux-gnu-binutils() { _target-binutils; }
+package_i686-pc-linux-gnu-binutils() { _target-binutils; }
+package_i586-pc-linux-gnu-binutils() { _target-binutils; }
+package_aarch64-unknown-linux-gnu-binutils() { _target-binutils; }
+package_aarch64-unknown-linux-gnu-binutils-multilib() { _target-binutils; }
+package_aarch64_be-unknown-linux-gnu-binutils() { _target-binutils; }
+package_aarch64_be-unknown-linux-gnu-binutils-multilib() { _target-binutils; }
+package_arm7l-unknown-linux-gnueabi-binutils() { _target-binutils; }
+package_arm6l-unknown-linux-gnueabi-binutils() { _target-binutils; }
+package_arm5tel-unknown-linux-gnueabi-binutils() { _target-binutils; }
+package_armeb-unknown-linux-gnueabi-binutils() { _target-binutils; }
+package_sparc64-unknown-linux-gnu-binutils() { _target-binutils; }
+package_sparc64-unknown-linux-gnu-binutils-multilib() { _target-binutils; }
+package_sparc-unknown-linux-gnu-binutils() { _target-binutils; }
+package_ia64-unknown-linux-gnu-binutils() { _target-binutils; }
+package_ia64-unknown-linux-gnu-binutils-multilib() { _target-binutils; }
+package_s390-unknown-linux-gnu-binutils() { _target-binutils; }
+package_s390x-unknown-linux-gnu-binutils() { _target-binutils; }
+package_sparc64-unknown-linux-gnu-binutils() { _target-binutils; }
+package_sparc64-unknown-linux-gnu-binutils-multilib() { _target-binutils; }
+package_powerpc64-unknown-linux-gnu-binutils() { _target-binutils; }
+package_powerpc64-unknown-linux-gnu-binutils-multilib() { _target-binutils; }
+package_powerpc64le-unknown-linux-gnu-binutils() { _target-binutils; }
+package_powerpc64le-unknown-linux-gnu-binutils-multilib() { _target-binutils; }
+package_powerpc-unknown-linux-gnu-binutils() { _target-binutils; }
+package_powerpcle-unknown-linux-gnu-binutils() { _target-binutils; }
+package_sh64-unknown-linux-gnu-binutils() { _target-binutils; }
+package_sh64-unknown-linux-gnu-binutils-multilib() { _target-binutils; }
+package_sh64l-unknown-linux-gnu-binutils() { _target-binutils; }
+package_sh64l-unknown-linux-gnu-binutils-multilib() { _target-binutils; }
+package_sh4-unknown-linux-gnu-binutils() { _target-binutils; }
+package_sh4l-unknown-linux-gnu-binutils() { _target-binutils; }
+package_lm32-unknown-linux-gnu-binutils() { _target-binutils; }
+package_or32-unknown-linux-gnu-binutils() { _target-binutils; }
+
+# GNU
+package_x86_64-unknown-gnu-binutils() { _target-binutils; }
+package_x86_64-unknown-gnu-binutils-multilib() { _target-binutils; }
+package_i786-pc-gnu-binutils() { _target-binutils; }
+package_i686-pc-gnu-binutils() { _target-binutils; }
+package_i586-pc-gnu-binutils() { _target-binutils; }
+
+# ELF or EABI only
+package_mips64el-unknown-elf-binutils() { _target-binutils; }
+package_mips64el-unknown-elf-binutils-multilib() { _target-binutils; }
+package_mips64-unknown-elf-binutils() { _target-binutils; }
+package_mips64-unknown-elf-binutils-multilib() { _target-binutils; }
+package_mipsel-unknown-elf-binutils() { _target-binutils; }
+package_mips-unknown-elf-binutils() { _target-binutils; }
+package_x86_64-unknown-elf-binutils() { _target-binutils; }
+package_x86_64-unknown-elf-binutils-multilib() { _target-binutils; }
+package_i386-unknown-elf-binutils() { _target-binutils; }
+package_aarch64-unknown-elf-binutils() { _target-binutils; }
+package_aarch64-unknown-elf-binutils-multilib() { _target-binutils; }
+package_aarch64_be-unknown-elf-binutils() { _target-binutils; }
+package_aarch64_be-unknown-elf-binutils-multilib() { _target-binutils; }
+package_arm-unknown-eabi-binutils() { _target-binutils; }
+package_armeb-unknown-eabi-binutils() { _target-binutils; }
+package_powerpc64-unknown-elf-binutils() { _target-binutils; }
+package_powerpc64-unknown-elf-binutils-multilib() { _target-binutils; }
+package_powerpc64-unknown-eabi-binutils() { _target-binutils; }
+package_powerpc64-unknown-eabi-binutils-multilib() { _target-binutils; }
+package_powerpc64le-unknown-elf-binutils() { _target-binutils; }
+package_powerpc64le-unknown-elf-binutils-multilib() { _target-binutils; }
+package_powerpc64le-unknown-eabi-binutils() { _target-binutils; }
+package_powerpc64le-unknown-eabi-binutils-multilib() { _target-binutils; }
+package_powerpc-unknown-elf-binutils() { _target-binutils; }
+package_powerpc-unknown-eabi-binutils() { _target-binutils; }
+package_powerpcle-unknown-elf-binutils() { _target-binutils; }
+package_powerpcle-unknown-eabi-binutils() { _target-binutils; }
+package_spu-unknown-elf-binutils() { _target-binutils; }
+package_sh64-unknown-elf-binutils() { _target-binutils; }
+package_sh64-unknown-elf-binutils-multilib() { _target-binutils; }
+package_sh64l-unknown-elf-binutils() { _target-binutils; }
+package_sh64l-unknown-elf-binutils-multilib() { _target-binutils; }
+package_sh-unknown-elf-binutils() { _target-binutils; }
+package_shl-unknown-elf-binutils() { _target-binutils; }
+package_xtensa-unknown-elf-binutils() { _target-binutils; }
+package_xtensa-unknown-elf-binutils-ath9k_htc() { _target-binutils; }
+package_m68k-unknown-elf-binutils() { _target-binutils; }
+package_lm32-unknown-elf-binutils() { _target-binutils; }
+package_or32-unknown-elf-binutils() { _target-binutils; }
+
+#---------------------------------------------------------------------------------------------------------------------------------------------
+
+package_binutils-common() {
+ pkgrel=${_pkgrelb}
+ pkgdesc="A set of programs to assemble and manipulate binary and object files. (headers, docs and locales files only)"
+ arch=('any')
+ depends=('linktools')
+ install="${_pkgname}.install"
+
+ cd ${srcdir}/${_pkgname}-build
+ make prefix=${pkgdir}/opt/${pkgname/${_verflag}/}/${pkgver} tooldir=${pkgdir}/opt/${pkgname/${_verflag}/}/${pkgver} install
+
+ [[ $CARCH != ${_CARCH} ]] && {
+ msg "Move 'include' files and directories"
+ mv -v ${pkgdir}/opt/${pkgname/${_verflag}/}/${pkgver}/{$CHOST/${_target}/include,}
+ }
+
+ msg "Add some useful headers"
+ install -vm644 ${srcdir}/${_pkgname}-${pkgver}/include/{demangle,libiberty}.h ${pkgdir}/opt/${pkgname/${_verflag}/}/${pkgver}/include
+
+ msg "Remove unnecessaries files and directories"
+ rm -vr ${pkgdir}/opt/${pkgname/${_verflag}/}/${pkgver}/{bin,lib}
+ [[ $CARCH != ${_CARCH} ]] && {
+ rm -vr ${pkgdir}/opt/${pkgname/${_verflag}/}/${pkgver}/$CHOST
+ }
+
+ msg "Rename manuals"
+ _man=$(ls -1A ${pkgdir}/opt/${pkgname/${_verflag}/}/${pkgver}/share/man/man1)
+ for _man_stage1 in ${_man[@]}; do
+ _man_stage2=${_man_stage1/${_multilib_name}${_ath9k_htc_name}-${pkgver}/}
+ _manuals=${_man_stage2/${_target}-/}
+ mv -v ${pkgdir}/opt/${pkgname/${_verflag}/}/${pkgver}/share/man/man1/{${_man_stage1},${_manuals}}
+ done
+}
diff --git a/~coadde/cross-binutils/aarch64-unknown-elf-binutils-multilib.install b/~coadde/cross-binutils/aarch64-unknown-elf-binutils-multilib.install
new file mode 100644
index 000000000..e2cb3892c
--- /dev/null
+++ b/~coadde/cross-binutils/aarch64-unknown-elf-binutils-multilib.install
@@ -0,0 +1,16 @@
+_pkgname=aarch64-unknown-elf-binutils-multilib
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/aarch64-unknown-elf-binutils.install b/~coadde/cross-binutils/aarch64-unknown-elf-binutils.install
new file mode 100644
index 000000000..7546e29a1
--- /dev/null
+++ b/~coadde/cross-binutils/aarch64-unknown-elf-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=aarch64-unknown-elf-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/aarch64-unknown-linux-gnu-binutils-multilib.install b/~coadde/cross-binutils/aarch64-unknown-linux-gnu-binutils-multilib.install
new file mode 100644
index 000000000..6f986cd41
--- /dev/null
+++ b/~coadde/cross-binutils/aarch64-unknown-linux-gnu-binutils-multilib.install
@@ -0,0 +1,16 @@
+_pkgname=aarch64-unknown-linux-gnu-binutils-multilib
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/aarch64-unknown-linux-gnu-binutils.install b/~coadde/cross-binutils/aarch64-unknown-linux-gnu-binutils.install
new file mode 100644
index 000000000..96d20da4a
--- /dev/null
+++ b/~coadde/cross-binutils/aarch64-unknown-linux-gnu-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=aarch64-unknown-linux-gnu-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/aarch64_be-unknown-elf-binutils-multilib.install b/~coadde/cross-binutils/aarch64_be-unknown-elf-binutils-multilib.install
new file mode 100644
index 000000000..ae71b8f32
--- /dev/null
+++ b/~coadde/cross-binutils/aarch64_be-unknown-elf-binutils-multilib.install
@@ -0,0 +1,16 @@
+_pkgname=aarch64_be-unknown-elf-binutils-multilib
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/aarch64_be-unknown-elf-binutils.install b/~coadde/cross-binutils/aarch64_be-unknown-elf-binutils.install
new file mode 100644
index 000000000..886d38ddc
--- /dev/null
+++ b/~coadde/cross-binutils/aarch64_be-unknown-elf-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=aarch64_be-unknown-elf-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/aarch64_be-unknown-linux-gnu-binutils-multilib.install b/~coadde/cross-binutils/aarch64_be-unknown-linux-gnu-binutils-multilib.install
new file mode 100644
index 000000000..21e87d4a6
--- /dev/null
+++ b/~coadde/cross-binutils/aarch64_be-unknown-linux-gnu-binutils-multilib.install
@@ -0,0 +1,16 @@
+_pkgname=aarch64_be-unknown-linux-gnu-binutils-multilib
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/aarch64_be-unknown-linux-gnu-binutils.install b/~coadde/cross-binutils/aarch64_be-unknown-linux-gnu-binutils.install
new file mode 100644
index 000000000..7c040a1d1
--- /dev/null
+++ b/~coadde/cross-binutils/aarch64_be-unknown-linux-gnu-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=aarch64_be-unknown-linux-gnu-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/arm-unknown-eabi-binutils.install b/~coadde/cross-binutils/arm-unknown-eabi-binutils.install
new file mode 100644
index 000000000..2a5ac8d12
--- /dev/null
+++ b/~coadde/cross-binutils/arm-unknown-eabi-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=arm-unknown-eabi-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/arm5tel-unknown-linux-gnueabi.install b/~coadde/cross-binutils/arm5tel-unknown-linux-gnueabi.install
new file mode 100644
index 000000000..f1053cd1e
--- /dev/null
+++ b/~coadde/cross-binutils/arm5tel-unknown-linux-gnueabi.install
@@ -0,0 +1,16 @@
+_pkgname=arm5tel-unknown-linux-gnueabi-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/arm6l-unknown-linux-gnueabi.install b/~coadde/cross-binutils/arm6l-unknown-linux-gnueabi.install
new file mode 100644
index 000000000..fa11d3f92
--- /dev/null
+++ b/~coadde/cross-binutils/arm6l-unknown-linux-gnueabi.install
@@ -0,0 +1,16 @@
+_pkgname=arm6l-unknown-linux-gnueabi-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/arm7l-unknown-linux-gnueabi.install b/~coadde/cross-binutils/arm7l-unknown-linux-gnueabi.install
new file mode 100644
index 000000000..4e9ca080f
--- /dev/null
+++ b/~coadde/cross-binutils/arm7l-unknown-linux-gnueabi.install
@@ -0,0 +1,16 @@
+_pkgname=arm7l-unknown-linux-gnueabi-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/armeb-unknown-eabi-binutils.install b/~coadde/cross-binutils/armeb-unknown-eabi-binutils.install
new file mode 100644
index 000000000..363e4b477
--- /dev/null
+++ b/~coadde/cross-binutils/armeb-unknown-eabi-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=armeb-unknown-eabi-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/armeb-unknown-linux-gnueabi.install b/~coadde/cross-binutils/armeb-unknown-linux-gnueabi.install
new file mode 100644
index 000000000..75fa9f797
--- /dev/null
+++ b/~coadde/cross-binutils/armeb-unknown-linux-gnueabi.install
@@ -0,0 +1,16 @@
+_pkgname=armeb-unknown-linux-gnueabi-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/binutils.install b/~coadde/cross-binutils/binutils.install
new file mode 100644
index 000000000..9de0533ee
--- /dev/null
+++ b/~coadde/cross-binutils/binutils.install
@@ -0,0 +1,17 @@
+infodir=usr/share/info
+filelist=(as.info bfd.info binutils.info gprof.info ld.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
+ 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
+ done
+}
+
diff --git a/~coadde/cross-binutils/i386-unknown-elf-binutils.install b/~coadde/cross-binutils/i386-unknown-elf-binutils.install
new file mode 100644
index 000000000..572ecca6e
--- /dev/null
+++ b/~coadde/cross-binutils/i386-unknown-elf-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=i386-unknown-elf-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/i586-pc-gnu-binutils.install b/~coadde/cross-binutils/i586-pc-gnu-binutils.install
new file mode 100644
index 000000000..6e4dac15d
--- /dev/null
+++ b/~coadde/cross-binutils/i586-pc-gnu-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=i586-pc-gnu-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/i586-pc-linux-gnu-binutils.install b/~coadde/cross-binutils/i586-pc-linux-gnu-binutils.install
new file mode 100644
index 000000000..f14abdfaa
--- /dev/null
+++ b/~coadde/cross-binutils/i586-pc-linux-gnu-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=i586-pc-linux-gnu-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/i686-pc-gnu-binutils.install b/~coadde/cross-binutils/i686-pc-gnu-binutils.install
new file mode 100644
index 000000000..1fbfac209
--- /dev/null
+++ b/~coadde/cross-binutils/i686-pc-gnu-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=i686-pc-gnu-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/i686-pc-linux-gnu-binutils.install b/~coadde/cross-binutils/i686-pc-linux-gnu-binutils.install
new file mode 100644
index 000000000..a0498ff51
--- /dev/null
+++ b/~coadde/cross-binutils/i686-pc-linux-gnu-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=i686-pc-linux-gnu-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/i786-pc-gnu-binutils.install b/~coadde/cross-binutils/i786-pc-gnu-binutils.install
new file mode 100644
index 000000000..f77927c8d
--- /dev/null
+++ b/~coadde/cross-binutils/i786-pc-gnu-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=i786-pc-gnu-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/i786-pc-linux-gnu-binutils.install b/~coadde/cross-binutils/i786-pc-linux-gnu-binutils.install
new file mode 100644
index 000000000..b6422d2ce
--- /dev/null
+++ b/~coadde/cross-binutils/i786-pc-linux-gnu-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=i786-pc-linux-gnu-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/ia64-unknown-linux-gnu-binutils-multilib.install b/~coadde/cross-binutils/ia64-unknown-linux-gnu-binutils-multilib.install
new file mode 100644
index 000000000..a31a76a41
--- /dev/null
+++ b/~coadde/cross-binutils/ia64-unknown-linux-gnu-binutils-multilib.install
@@ -0,0 +1,16 @@
+_pkgname=ia64-unknown-linux-gnu-binutils-multilib
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/ia64-unknown-linux-gnu-binutils.install b/~coadde/cross-binutils/ia64-unknown-linux-gnu-binutils.install
new file mode 100644
index 000000000..9853a7dce
--- /dev/null
+++ b/~coadde/cross-binutils/ia64-unknown-linux-gnu-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=ia64-unknown-linux-gnu-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/lm32-unknown-elf-binutils.install b/~coadde/cross-binutils/lm32-unknown-elf-binutils.install
new file mode 100644
index 000000000..c2481ba1f
--- /dev/null
+++ b/~coadde/cross-binutils/lm32-unknown-elf-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=lm32-unknown-elf-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/lm32-unknown-linux-gnu-binutils.install b/~coadde/cross-binutils/lm32-unknown-linux-gnu-binutils.install
new file mode 100644
index 000000000..e59746dd4
--- /dev/null
+++ b/~coadde/cross-binutils/lm32-unknown-linux-gnu-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=lm32-unknown-linux-gnu-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/m68k-unknown-elf-binutils.install b/~coadde/cross-binutils/m68k-unknown-elf-binutils.install
new file mode 100644
index 000000000..b45dcea38
--- /dev/null
+++ b/~coadde/cross-binutils/m68k-unknown-elf-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=m68k-unknown-elf-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/mips-unknown-elf-binutils.install b/~coadde/cross-binutils/mips-unknown-elf-binutils.install
new file mode 100644
index 000000000..f8dd9a4ad
--- /dev/null
+++ b/~coadde/cross-binutils/mips-unknown-elf-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=mips-unknown-elf-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/mips64-unknown-elf-binutils-multilib.install b/~coadde/cross-binutils/mips64-unknown-elf-binutils-multilib.install
new file mode 100644
index 000000000..e24e260f6
--- /dev/null
+++ b/~coadde/cross-binutils/mips64-unknown-elf-binutils-multilib.install
@@ -0,0 +1,16 @@
+_pkgname=mips64-unknown-elf-binutils-multilib
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/mips64-unknown-elf-binutils.install b/~coadde/cross-binutils/mips64-unknown-elf-binutils.install
new file mode 100644
index 000000000..8e5e0a192
--- /dev/null
+++ b/~coadde/cross-binutils/mips64-unknown-elf-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=mips64-unknown-elf-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/mips64-unknown-linux-gnu-binutils-multilib.install b/~coadde/cross-binutils/mips64-unknown-linux-gnu-binutils-multilib.install
new file mode 100644
index 000000000..7ae20c93c
--- /dev/null
+++ b/~coadde/cross-binutils/mips64-unknown-linux-gnu-binutils-multilib.install
@@ -0,0 +1,16 @@
+_pkgname=mips64-unknown-linux-gnu-binutils-multilib
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/mips64-unknown-linux-gnu-binutils.install b/~coadde/cross-binutils/mips64-unknown-linux-gnu-binutils.install
new file mode 100644
index 000000000..3da7b37e3
--- /dev/null
+++ b/~coadde/cross-binutils/mips64-unknown-linux-gnu-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=mips64-unknown-linux-gnu-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/mips64el-unknown-elf-binutils-multilib.install b/~coadde/cross-binutils/mips64el-unknown-elf-binutils-multilib.install
new file mode 100644
index 000000000..201c805dd
--- /dev/null
+++ b/~coadde/cross-binutils/mips64el-unknown-elf-binutils-multilib.install
@@ -0,0 +1,16 @@
+_pkgname=mips64el-unknown-elf-binutils-multilib
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/mips64el-unknown-elf-binutils.install b/~coadde/cross-binutils/mips64el-unknown-elf-binutils.install
new file mode 100644
index 000000000..ab338a443
--- /dev/null
+++ b/~coadde/cross-binutils/mips64el-unknown-elf-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=mips64el-unknown-elf-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/mips64el-unknown-linux-gnu-binutils-multilib.install b/~coadde/cross-binutils/mips64el-unknown-linux-gnu-binutils-multilib.install
new file mode 100644
index 000000000..cff96a72a
--- /dev/null
+++ b/~coadde/cross-binutils/mips64el-unknown-linux-gnu-binutils-multilib.install
@@ -0,0 +1,16 @@
+_pkgname=mips64el-unknown-linux-gnu-binutils-multilib
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/mips64el-unknown-linux-gnu-binutils.install b/~coadde/cross-binutils/mips64el-unknown-linux-gnu-binutils.install
new file mode 100644
index 000000000..21b4a2af2
--- /dev/null
+++ b/~coadde/cross-binutils/mips64el-unknown-linux-gnu-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=mips64el-unknown-linux-gnu-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/mipsel-unknown-elf-binutils.install b/~coadde/cross-binutils/mipsel-unknown-elf-binutils.install
new file mode 100644
index 000000000..87c99efcf
--- /dev/null
+++ b/~coadde/cross-binutils/mipsel-unknown-elf-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=mipsel-unknown-elf-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/or32-unknown-elf-binutils.install b/~coadde/cross-binutils/or32-unknown-elf-binutils.install
new file mode 100644
index 000000000..92833bd5d
--- /dev/null
+++ b/~coadde/cross-binutils/or32-unknown-elf-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=or32-unknown-elf-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/or32-unknown-linux-gnu-binutils.install b/~coadde/cross-binutils/or32-unknown-linux-gnu-binutils.install
new file mode 100644
index 000000000..8427c5c91
--- /dev/null
+++ b/~coadde/cross-binutils/or32-unknown-linux-gnu-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=or32-unknown-linux-gnu-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/powerpc-unknown-eabi-binutils.install b/~coadde/cross-binutils/powerpc-unknown-eabi-binutils.install
new file mode 100644
index 000000000..eed9a2c98
--- /dev/null
+++ b/~coadde/cross-binutils/powerpc-unknown-eabi-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=powerpc-unknown-eabi-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/powerpc-unknown-elf-binutils.install b/~coadde/cross-binutils/powerpc-unknown-elf-binutils.install
new file mode 100644
index 000000000..fbd5f0556
--- /dev/null
+++ b/~coadde/cross-binutils/powerpc-unknown-elf-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=powerpc-unknown-elf-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/powerpc-unknown-linux-gnu-binutils.install b/~coadde/cross-binutils/powerpc-unknown-linux-gnu-binutils.install
new file mode 100644
index 000000000..b7e544e48
--- /dev/null
+++ b/~coadde/cross-binutils/powerpc-unknown-linux-gnu-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=powerpc-unknown-linux-gnu-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/powerpc-unknown-linux-gnueabi-binutils.install b/~coadde/cross-binutils/powerpc-unknown-linux-gnueabi-binutils.install
new file mode 100644
index 000000000..5667c84e2
--- /dev/null
+++ b/~coadde/cross-binutils/powerpc-unknown-linux-gnueabi-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=powerpc-unknown-linux-gnueabi-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/powerpc64-unknown-eabi-binutils-multilib.install b/~coadde/cross-binutils/powerpc64-unknown-eabi-binutils-multilib.install
new file mode 100644
index 000000000..0c1b1d7b8
--- /dev/null
+++ b/~coadde/cross-binutils/powerpc64-unknown-eabi-binutils-multilib.install
@@ -0,0 +1,16 @@
+_pkgname=powerpc64-unknown-eabi-binutils-multilib
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/powerpc64-unknown-eabi-binutils.install b/~coadde/cross-binutils/powerpc64-unknown-eabi-binutils.install
new file mode 100644
index 000000000..2e3ca0474
--- /dev/null
+++ b/~coadde/cross-binutils/powerpc64-unknown-eabi-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=powerpc64-unknown-eabi-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/powerpc64-unknown-elf-binutils-multilib.install b/~coadde/cross-binutils/powerpc64-unknown-elf-binutils-multilib.install
new file mode 100644
index 000000000..4000bde4f
--- /dev/null
+++ b/~coadde/cross-binutils/powerpc64-unknown-elf-binutils-multilib.install
@@ -0,0 +1,16 @@
+_pkgname=powerpc64-unknown-elf-binutils-multilib
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/powerpc64-unknown-elf-binutils.install b/~coadde/cross-binutils/powerpc64-unknown-elf-binutils.install
new file mode 100644
index 000000000..f9d4ff394
--- /dev/null
+++ b/~coadde/cross-binutils/powerpc64-unknown-elf-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=powerpc64-unknown-elf-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/powerpc64-unknown-linux-gnu-binutils.install b/~coadde/cross-binutils/powerpc64-unknown-linux-gnu-binutils.install
new file mode 100644
index 000000000..15a8c37c5
--- /dev/null
+++ b/~coadde/cross-binutils/powerpc64-unknown-linux-gnu-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=powerpc64-unknown-linux-gnu-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/powerpc64-unknown-linux-gnueabi-binutils.install b/~coadde/cross-binutils/powerpc64-unknown-linux-gnueabi-binutils.install
new file mode 100644
index 000000000..28e4914c6
--- /dev/null
+++ b/~coadde/cross-binutils/powerpc64-unknown-linux-gnueabi-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=powerpc64-unknown-linux-gnueabi-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/powerpc64le-unknown-eabi-binutils-multilib.install b/~coadde/cross-binutils/powerpc64le-unknown-eabi-binutils-multilib.install
new file mode 100644
index 000000000..0b6f6c848
--- /dev/null
+++ b/~coadde/cross-binutils/powerpc64le-unknown-eabi-binutils-multilib.install
@@ -0,0 +1,16 @@
+_pkgname=powerpc64le-unknown-eabi-binutils-multilib
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/powerpc64le-unknown-eabi-binutils.install b/~coadde/cross-binutils/powerpc64le-unknown-eabi-binutils.install
new file mode 100644
index 000000000..3798f1bfe
--- /dev/null
+++ b/~coadde/cross-binutils/powerpc64le-unknown-eabi-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=powerpc64le-unknown-eabi-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/powerpc64le-unknown-elf-binutils-multilib.install b/~coadde/cross-binutils/powerpc64le-unknown-elf-binutils-multilib.install
new file mode 100644
index 000000000..1e30719bf
--- /dev/null
+++ b/~coadde/cross-binutils/powerpc64le-unknown-elf-binutils-multilib.install
@@ -0,0 +1,16 @@
+_pkgname=powerpc64le-unknown-elf-binutils-multilib
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/powerpc64le-unknown-elf-binutils.install b/~coadde/cross-binutils/powerpc64le-unknown-elf-binutils.install
new file mode 100644
index 000000000..891b7f85b
--- /dev/null
+++ b/~coadde/cross-binutils/powerpc64le-unknown-elf-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=powerpc64le-unknown-elf-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/powerpc64le-unknown-linux-gnu-binutils.install b/~coadde/cross-binutils/powerpc64le-unknown-linux-gnu-binutils.install
new file mode 100644
index 000000000..f8872d8e1
--- /dev/null
+++ b/~coadde/cross-binutils/powerpc64le-unknown-linux-gnu-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=powerpc64le-unknown-linux-gnu-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/powerpc64le-unknown-linux-gnueabi-binutils.install b/~coadde/cross-binutils/powerpc64le-unknown-linux-gnueabi-binutils.install
new file mode 100644
index 000000000..ae20ca33c
--- /dev/null
+++ b/~coadde/cross-binutils/powerpc64le-unknown-linux-gnueabi-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=powerpc64le-unknown-linux-gnueabi-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/powerpcle-unknown-eabi-binutils.install b/~coadde/cross-binutils/powerpcle-unknown-eabi-binutils.install
new file mode 100644
index 000000000..850610fc6
--- /dev/null
+++ b/~coadde/cross-binutils/powerpcle-unknown-eabi-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=powerpcle-unknown-eabi-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/powerpcle-unknown-elf-binutils.install b/~coadde/cross-binutils/powerpcle-unknown-elf-binutils.install
new file mode 100644
index 000000000..24e07a7ec
--- /dev/null
+++ b/~coadde/cross-binutils/powerpcle-unknown-elf-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=powerpcle-unknown-elf-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/powerpcle-unknown-linux-gnu-binutils.install b/~coadde/cross-binutils/powerpcle-unknown-linux-gnu-binutils.install
new file mode 100644
index 000000000..b681acc4b
--- /dev/null
+++ b/~coadde/cross-binutils/powerpcle-unknown-linux-gnu-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=powerpcle-unknown-linux-gnu-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/powerpcle-unknown-linux-gnueabi-binutils.install b/~coadde/cross-binutils/powerpcle-unknown-linux-gnueabi-binutils.install
new file mode 100644
index 000000000..6559cdd29
--- /dev/null
+++ b/~coadde/cross-binutils/powerpcle-unknown-linux-gnueabi-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=powerpcle-unknown-linux-gnueabi-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/s390-unknown-linux-gnu-binutils.install b/~coadde/cross-binutils/s390-unknown-linux-gnu-binutils.install
new file mode 100644
index 000000000..0a583f543
--- /dev/null
+++ b/~coadde/cross-binutils/s390-unknown-linux-gnu-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=s390-unknown-linux-gnu-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/s390x-unknown-linux-gnu-binutils.install b/~coadde/cross-binutils/s390x-unknown-linux-gnu-binutils.install
new file mode 100644
index 000000000..dc576d75e
--- /dev/null
+++ b/~coadde/cross-binutils/s390x-unknown-linux-gnu-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=s390x-unknown-linux-gnu-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/sh-unknown-elf-binutils.install b/~coadde/cross-binutils/sh-unknown-elf-binutils.install
new file mode 100644
index 000000000..20d123559
--- /dev/null
+++ b/~coadde/cross-binutils/sh-unknown-elf-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=sh-unknown-elf-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/sh4-unknown-linux-gnu-binutils.install b/~coadde/cross-binutils/sh4-unknown-linux-gnu-binutils.install
new file mode 100644
index 000000000..5843ac274
--- /dev/null
+++ b/~coadde/cross-binutils/sh4-unknown-linux-gnu-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=sh4-unknown-linux-gnu-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/sh4l-unknown-linux-gnu-binutils.install b/~coadde/cross-binutils/sh4l-unknown-linux-gnu-binutils.install
new file mode 100644
index 000000000..f97168df0
--- /dev/null
+++ b/~coadde/cross-binutils/sh4l-unknown-linux-gnu-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=sh4l-unknown-linux-gnu-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/sh64-unknown-elf-binutils-multilib.install b/~coadde/cross-binutils/sh64-unknown-elf-binutils-multilib.install
new file mode 100644
index 000000000..1f11dabbb
--- /dev/null
+++ b/~coadde/cross-binutils/sh64-unknown-elf-binutils-multilib.install
@@ -0,0 +1,16 @@
+_pkgname=sh64-unknown-elf-binutils-multilib
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/sh64-unknown-elf-binutils.install b/~coadde/cross-binutils/sh64-unknown-elf-binutils.install
new file mode 100644
index 000000000..04ee63c8c
--- /dev/null
+++ b/~coadde/cross-binutils/sh64-unknown-elf-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=sh64-unknown-elf-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/sh64-unknown-linux-gnu-binutils-multilib.install b/~coadde/cross-binutils/sh64-unknown-linux-gnu-binutils-multilib.install
new file mode 100644
index 000000000..451eedb44
--- /dev/null
+++ b/~coadde/cross-binutils/sh64-unknown-linux-gnu-binutils-multilib.install
@@ -0,0 +1,16 @@
+_pkgname=sh64-unknown-linux-gnu-binutils-multilib
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/sh64-unknown-linux-gnu-binutils.install b/~coadde/cross-binutils/sh64-unknown-linux-gnu-binutils.install
new file mode 100644
index 000000000..2af6a7268
--- /dev/null
+++ b/~coadde/cross-binutils/sh64-unknown-linux-gnu-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=sh64-unknown-linux-gnu-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/sh64l-unknown-elf-binutils-multilib.install b/~coadde/cross-binutils/sh64l-unknown-elf-binutils-multilib.install
new file mode 100644
index 000000000..6e01ac61e
--- /dev/null
+++ b/~coadde/cross-binutils/sh64l-unknown-elf-binutils-multilib.install
@@ -0,0 +1,16 @@
+_pkgname=sh64l-unknown-elf-binutils-multilib
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/sh64l-unknown-elf-binutils.install b/~coadde/cross-binutils/sh64l-unknown-elf-binutils.install
new file mode 100644
index 000000000..ab95b36ec
--- /dev/null
+++ b/~coadde/cross-binutils/sh64l-unknown-elf-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=sh64l-unknown-elf-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/sh64l-unknown-linux-gnu-binutils-multilib.install b/~coadde/cross-binutils/sh64l-unknown-linux-gnu-binutils-multilib.install
new file mode 100644
index 000000000..71c191e1c
--- /dev/null
+++ b/~coadde/cross-binutils/sh64l-unknown-linux-gnu-binutils-multilib.install
@@ -0,0 +1,16 @@
+_pkgname=sh64l-unknown-linux-gnu-binutils-multilib
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/sh64l-unknown-linux-gnu-binutils.install b/~coadde/cross-binutils/sh64l-unknown-linux-gnu-binutils.install
new file mode 100644
index 000000000..cbe5c788a
--- /dev/null
+++ b/~coadde/cross-binutils/sh64l-unknown-linux-gnu-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=sh64l-unknown-linux-gnu-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/shl-unknown-elf-binutils.install b/~coadde/cross-binutils/shl-unknown-elf-binutils.install
new file mode 100644
index 000000000..cdb30916b
--- /dev/null
+++ b/~coadde/cross-binutils/shl-unknown-elf-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=shl-unknown-elf-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/sparc-unknown-linux-gnu-binutils.install b/~coadde/cross-binutils/sparc-unknown-linux-gnu-binutils.install
new file mode 100644
index 000000000..f3dfca2d3
--- /dev/null
+++ b/~coadde/cross-binutils/sparc-unknown-linux-gnu-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=sparc-unknown-linux-gnu-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/sparc64-unknown-linux-gnu-binutils-multilib.install b/~coadde/cross-binutils/sparc64-unknown-linux-gnu-binutils-multilib.install
new file mode 100644
index 000000000..d0aff2a85
--- /dev/null
+++ b/~coadde/cross-binutils/sparc64-unknown-linux-gnu-binutils-multilib.install
@@ -0,0 +1,16 @@
+_pkgname=sparc64-unknown-linux-gnu-binutils-multilib
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/sparc64-unknown-linux-gnu-binutils.install b/~coadde/cross-binutils/sparc64-unknown-linux-gnu-binutils.install
new file mode 100644
index 000000000..2d24404e5
--- /dev/null
+++ b/~coadde/cross-binutils/sparc64-unknown-linux-gnu-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=sparc64-unknown-linux-gnu-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/spu-unknown-elf-binutils.install b/~coadde/cross-binutils/spu-unknown-elf-binutils.install
new file mode 100644
index 000000000..204d4bfb2
--- /dev/null
+++ b/~coadde/cross-binutils/spu-unknown-elf-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=spu-unknown-elf-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/x86_64-unknown-elf-binutils-multilib.install b/~coadde/cross-binutils/x86_64-unknown-elf-binutils-multilib.install
new file mode 100644
index 000000000..dcf66e30a
--- /dev/null
+++ b/~coadde/cross-binutils/x86_64-unknown-elf-binutils-multilib.install
@@ -0,0 +1,16 @@
+_pkgname=x86_64-unknown-elf-binutils-multilib
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/x86_64-unknown-elf-binutils.install b/~coadde/cross-binutils/x86_64-unknown-elf-binutils.install
new file mode 100644
index 000000000..779e65ab3
--- /dev/null
+++ b/~coadde/cross-binutils/x86_64-unknown-elf-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=x86_64-unknown-elf-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/x86_64-unknown-gnu-binutils-multilib.install b/~coadde/cross-binutils/x86_64-unknown-gnu-binutils-multilib.install
new file mode 100644
index 000000000..7c682ba82
--- /dev/null
+++ b/~coadde/cross-binutils/x86_64-unknown-gnu-binutils-multilib.install
@@ -0,0 +1,16 @@
+_pkgname=x86_64-unknown-gnu-binutils-multilib
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/x86_64-unknown-gnu-binutils.install b/~coadde/cross-binutils/x86_64-unknown-gnu-binutils.install
new file mode 100644
index 000000000..102a11fd0
--- /dev/null
+++ b/~coadde/cross-binutils/x86_64-unknown-gnu-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=x86_64-unknown-gnu-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/x86_64-unknown-linux-gnu-binutils-multilib.install b/~coadde/cross-binutils/x86_64-unknown-linux-gnu-binutils-multilib.install
new file mode 100644
index 000000000..96140638c
--- /dev/null
+++ b/~coadde/cross-binutils/x86_64-unknown-linux-gnu-binutils-multilib.install
@@ -0,0 +1,16 @@
+_pkgname=x86_64-unknown-linux-gnu-binutils-multilib
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/x86_64-unknown-linux-gnu-binutils.install b/~coadde/cross-binutils/x86_64-unknown-linux-gnu-binutils.install
new file mode 100644
index 000000000..299a9675f
--- /dev/null
+++ b/~coadde/cross-binutils/x86_64-unknown-linux-gnu-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=x86_64-unknown-linux-gnu-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/xtensa-unknown-elf-binutils-ath9k-htc.install b/~coadde/cross-binutils/xtensa-unknown-elf-binutils-ath9k-htc.install
new file mode 100644
index 000000000..643379261
--- /dev/null
+++ b/~coadde/cross-binutils/xtensa-unknown-elf-binutils-ath9k-htc.install
@@ -0,0 +1,16 @@
+_pkgname=xtensa-unknown-elf-binutils-ath9k-htc
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/cross-binutils/xtensa-unknown-elf-binutils.install b/~coadde/cross-binutils/xtensa-unknown-elf-binutils.install
new file mode 100644
index 000000000..120b40b1b
--- /dev/null
+++ b/~coadde/cross-binutils/xtensa-unknown-elf-binutils.install
@@ -0,0 +1,16 @@
+_pkgname=xtensa-unknown-elf-binutils
+
+post_install() {
+ linktools set $_pkgname
+ linktools update binutils
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [[ $_pkgname == $(linktools check) ]] && {
+ linktools unset
+ }
+}
diff --git a/~coadde/mariadb/PKGBUILD b/~coadde/mariadb/PKGBUILD
new file mode 100644
index 000000000..256b6e9ae
--- /dev/null
+++ b/~coadde/mariadb/PKGBUILD
@@ -0,0 +1,141 @@
+# $Id$
+# Maintainer:
+# Contributor: Andrea Scarpino <andrea@archlinux.org>
+# Contributor: Douglas Soares de Andrade <douglas@archlinux.org>
+# Maintainer (Parabola): Márcio Silva <coadde@lavabit.com>
+
+falsename=mysql
+_falsename=MySQL
+pkgbase=mariadb
+_pkgbase=MariaDB
+pkgname=("lib${pkgbase}client" "${pkgbase}-clients" "${pkgbase}")
+pkgver=5.5.23
+pkgrel=1.5
+arch=('i686' 'x86_64' 'mips64el')
+license=('GPL')
+url="http://www.${pkgbase}.org/"
+makedepends=('cmake' 'openssl' 'zlib')
+options=('!libtool')
+source=("http://mirror.aarnet.edu.au/pub/${_pkgbase}/${pkgbase}-${pkgver}/kvm-tarbake-jaunty-x86/${pkgbase}-${pkgver}.tar.gz"
+ "${falsename}d"
+ 'my.cnf')
+md5sums=('7074fa091b3c1489f45a5ddf12cd5e6f'
+ '2234207625baa29b2ff7d7b4f088abce'
+ '1c949c0dbea5206af0db14942d9927b6')
+
+build() {
+ cd "${srcdir}"
+ mkdir build
+ cd build
+
+ # CFLAGS/CXXFLAGS as suggested upstream
+ CFLAGS="-fPIC ${CFLAGS} -fno-strict-aliasing -DBIG_JOINS=1 -fomit-frame-pointer" \
+ CXXFLAGS="-fPIC ${CXXFLAGS} -fno-strict-aliasing -DBIG_JOINS=1 -felide-constructors -fno-rtti" \
+
+ cmake ../${pkgbase}-${pkgver} \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DSYSCONFDIR=/etc/${falsename} \
+ -DMYSQL_DATADIR=/var/lib/${falsename} \
+ -DMYSQL_UNIX_ADDR=/var/run/${falsename}/${falsename}.sock \
+ -DDEFAULT_CHARSET=utf8 \
+ -DDEFAULT_COLLATION=utf8_unicode_ci \
+ -DENABLED_LOCAL_INFILE=ON \
+ -DINSTALL_INFODIR=share/${falsename}/docs \
+ -DINSTALL_MANDIR=share/man \
+ -DINSTALL_PLUGINDIR=/usr/lib/${falsename}/plugin \
+ -DINSTALL_SCRIPTDIR=bin \
+ -DINSTALL_INCLUDEDIR=include/${falsename} \
+ -DINSTALL_DOCREADMEDIR=share/${falsename} \
+ -DINSTALL_SUPPORTFILESDIR=share/${falsename} \
+ -DINSTALL_MYSQLSHAREDIR=share/${falsename} \
+ -DINSTALL_DOCDIR=share/${falsename}/docs \
+ -DINSTALL_SHAREDIR=share/${falsename} \
+ -DWITH_READLINE=ON \
+ -DWITH_ZLIB=system \
+ -DWITH_SSL=system \
+ -DWITH_LIBWRAP=OFF \
+ -DWITH_MYSQLD_LDFLAGS="${LDFLAGS}" \
+ -DWITH_EXTRA_CHARSETS=complex \
+ -DWITH_EMBEDDED_SERVER=ON \
+ -DWITH_INNOBASE_STORAGE_ENGINE=1 \
+ -DWITH_PARTITION_STORAGE_ENGINE=1 \
+ -DWITH_PBXT_STORAGE_ENGINE=1 \
+ -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 \
+ -DWITHOUT_ARCHIVE_STORAGE_ENGINE=1 \
+ -DWITHOUT_BLACKHOLE_STORAGE_ENGINE=1 \
+ -DWITHOUT_FEDERATED_STORAGE_ENGINE=1
+
+ make
+}
+
+package_libmariadbclient(){
+ pkgdesc="${_pkgbase} client libraries (branch of ${_falsename})"
+ depends=('openssl')
+ conflicts=("lib${falsename}client")
+ provides=("lib${falsename}client=${pkgver}")
+
+ cd "${srcdir}"/build
+ for dir in include lib${falsename} lib${falsename}d libservices; do
+ make -C ${dir} DESTDIR="${pkgdir}" install
+ done
+
+ install -d "${pkgdir}"/usr/bin
+ install -m755 scripts/${falsename}_config "${pkgdir}"/usr/bin/
+ install -d "${pkgdir}"/usr/share/man/man1
+ for man in ${falsename}_config ${falsename}_client_test_embedded ${falsename}test_embedded; do
+ install -m644 "${srcdir}"/${pkgbase}-${pkgver}/man/$man.1 "${pkgdir}"/usr/share/man/man1/$man.1
+ done
+}
+
+package_mariadb-clients(){
+ pkgdesc="${_pkgbase} client tools (branch of ${_falsename})"
+ depends=("lib${pkgbase}client")
+ conflicts=("${falsename}-clients")
+ provides=("${falsename}-clients=${pkgver}")
+
+ cd "${srcdir}"/build
+ make -C client DESTDIR="${pkgdir}" install
+
+ # install man pages
+ install -d "${pkgdir}"/usr/share/man/man1
+ for man in ${falsename} ${falsename}admin ${falsename}check ${falsename}dump ${falsename}import ${falsename}show ${falsename}slap; do
+ install -m644 "${srcdir}"/${pkgbase}-${pkgver}/man/$man.1 "${pkgdir}"/usr/share/man/man1/$man.1
+ done
+
+ # provided by mariadb
+ rm "${pkgdir}"/usr/bin/{${falsename}_{plugin,upgrade},${falsename}binlog,${falsename}test}
+}
+
+package_mariadb(){
+ pkgdesc="A fast SQL database server branch of ${_falsename} - ${_pkgbase}"
+ backup=("etc/${pkgbase}/my.cnf")
+ install=${falsename}.install
+ depends=("${pkgbase}-clients")
+ optdepends=('perl-dbi' "perl-dbd-${falsename}")
+ conflicts=("${falsename}")
+ provides=("${falsename}=${pkgver}")
+ options=('emptydirs')
+
+ cd "${srcdir}"/build
+ make DESTDIR="${pkgdir}" install
+
+ install -Dm644 "${srcdir}"/my.cnf "${pkgdir}"/etc/${falsename}/my.cnf
+ install -Dm755 "${srcdir}"/${falsename}d "${pkgdir}"/etc/rc.d/${falsename}d
+
+ # provided by libmariadbclient
+ rm "${pkgdir}"/usr/bin/{${falsename}_config,${falsename}_client_test_embedded,${falsename}test_embedded}
+ rm "${pkgdir}"/usr/lib/lib${falsename}*
+ rm -r "${pkgdir}"/usr/include/
+ rm "${pkgdir}"/usr/share/man/man1/{${falsename}_config,${falsename}_client_test_embedded,${falsename}test_embedded}.1
+
+ # provided by mariadb-clients
+ rm "${pkgdir}"/usr/bin/{${falsename},${falsename}admin,${falsename}check,${falsename}dump,${falsename}import,${falsename}show,${falsename}slap}
+ rm "${pkgdir}"/usr/share/man/man1/{${falsename},${falsename}admin,${falsename}check,${falsename}dump,${falsename}import,${falsename}show,${falsename}slap}.1
+
+ # not needed
+ rm -r "${pkgdir}"/usr/{data,${falsename}-test,sql-bench}
+ rm "${pkgdir}"/usr/share/man/man1/${falsename}-test-run.pl.1
+
+ install -dm700 "${pkgdir}"/var/lib/${falsename}
+}
diff --git a/~coadde/mariadb/mariadb.install b/~coadde/mariadb/mariadb.install
new file mode 100644
index 000000000..f56a0dcaa
--- /dev/null
+++ b/~coadde/mariadb/mariadb.install
@@ -0,0 +1,26 @@
+post_install(){
+ groupadd -g 89 mysql &>/dev/null
+ useradd -u 89 -g mysql -d /var/lib/mariadb -s /bin/false mysql &>/dev/null
+ /usr/bin/mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mariadb
+ chown -R mysql:mysql /var/lib/mariadb &>/dev/null
+}
+
+post_upgrade(){
+ getent group mysql >/dev/null 2>&1 || groupadd -g 89 mysql &>/dev/null
+ getent passwd mysql >/dev/null 2>&1 || useradd -u 89 -g mysql -d /var/lib/mariadb -s /bin/false mysql &>/dev/null
+
+ if [ "$(vercmp $2 5.5)" -lt 0 ]; then
+ echo " >> "
+ echo " >> Major version update. Consider restart the service, and then running mysql_upgrade after it."
+ echo " >> "
+ fi
+}
+
+post_remove(){
+ if getent passwd mysql >/dev/null 2>&1; then
+ userdel mysql
+ fi
+ if getent group mysql >/dev/null 2>&1; then
+ groupdel mysql
+ fi
+}
diff --git a/~coadde/mariadb/mariadbd b/~coadde/mariadb/mariadbd
new file mode 100755
index 000000000..3ae612096
--- /dev/null
+++ b/~coadde/mariadb/mariadbd
@@ -0,0 +1,77 @@
+#!/bin/bash
+
+# general config
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+getPID() {
+ echo $(pgrep -u mysql mysqld 2>/dev/null);
+}
+
+case "$1" in
+ start)
+ stat_busy "Starting MariaDB Server"
+ [ ! -d /var/run/mariadb ] && install -d -g mysql -o mysql /var/run/mariadb &>/dev/null
+ if [ -z "$(getPID)" ]; then
+ /usr/bin/mysqld_safe --user=mysql &>/dev/null &
+ if [ $? -gt 0 ]; then
+ stat_fail
+ exit 1
+ else
+ timeo=30
+ while [ $timeo -gt 0 ]; do
+ response=`/usr/bin/mysqladmin -uUNKNOWN_USER ping 2>&1` && break
+ echo "$response" | grep -q "mysqld is alive" && break
+ sleep 1
+ let timeo=${timeo}-1
+ done
+ if [ $timeo -eq 0 ]; then
+ stat_fail
+ exit 1
+ else
+ echo $(getPID) > /var/run/mariadb/mariadb.pid
+ add_daemon mysqld
+ stat_done
+ fi
+ fi
+ else
+ stat_fail
+ exit 1
+ fi
+ ;;
+
+ stop)
+ stat_busy "Stopping MariaDB Server"
+ if [ ! -z "$(getPID)" ]; then
+ timeo=30
+ kill $(getPID) &> /dev/null
+ if [ $? -gt 0 ]; then
+ stat_fail
+ exit 1
+ fi
+ while [ ! -z "$(getPID)" -a $timeo -gt 0 ]; do
+ sleep 1
+ let timeo=${timeo}-1
+ done
+ if [ -z "$(getPID)" ]; then
+ rm -f /var/run/mariadb/mariadb.pid &>/dev/null
+ rm_daemon mysqld
+ stat_done
+ else
+ stat_fail
+ exit 1
+ fi
+ else
+ stat_fail
+ exit 1
+ fi
+ ;;
+
+ restart)
+ $0 stop
+ $0 start
+ ;;
+ *)
+ echo "usage: $0 {start|stop|restart}"
+esac
+exit 0
diff --git a/~coadde/mariadb/my.cnf b/~coadde/mariadb/my.cnf
new file mode 100644
index 000000000..9a41b4fc3
--- /dev/null
+++ b/~coadde/mariadb/my.cnf
@@ -0,0 +1,145 @@
+# MySQL config file for medium systems.
+#
+# This is for a system with little memory (32M - 64M) where MySQL plays
+# an important part, or systems up to 128M where MySQL is used together with
+# other programs (such as a web server)
+#
+# MySQL programs look for option files in a set of
+# locations which depend on the deployment platform.
+# You can copy this option file to one of those
+# locations. For information about these locations, see:
+# http://dev.mysql.com/doc/mysql/en/option-files.html
+#
+# In this file, you can use all long options that a program supports.
+# If you want to know which options a program supports, run the program
+# with the "--help" option.
+
+# The following options will be passed to all MySQL clients
+[client]
+#password = your_password
+port = 3306
+socket = /var/run/mysqld/mysqld.sock
+
+# Here follows entries for some specific programs
+
+# The MySQL server
+[mysqld]
+port = 3306
+socket = /var/run/mysqld/mysqld.sock
+datadir = /var/lib/mysql
+skip-external-locking
+key_buffer_size = 16M
+max_allowed_packet = 1M
+table_open_cache = 64
+sort_buffer_size = 512K
+net_buffer_length = 8K
+read_buffer_size = 256K
+read_rnd_buffer_size = 512K
+myisam_sort_buffer_size = 8M
+
+# Don't listen on a TCP/IP port at all. This can be a security enhancement,
+# if all processes that need to connect to mysqld run on the same host.
+# All interaction with mysqld must be made via Unix sockets or named pipes.
+# Note that using this option without enabling named pipes on Windows
+# (via the "enable-named-pipe" option) will render mysqld useless!
+#
+skip-networking
+
+# Replication Master Server (default)
+# binary logging is required for replication
+log-bin=mysql-bin
+
+# binary logging format - mixed recommended
+binlog_format=mixed
+
+# required unique id between 1 and 2^32 - 1
+# defaults to 1 if master-host is not set
+# but will not function as a master if omitted
+server-id = 1
+
+# Replication Slave (comment out master section to use this)
+#
+# To configure this host as a replication slave, you can choose between
+# two methods :
+#
+# 1) Use the CHANGE MASTER TO command (fully described in our manual) -
+# the syntax is:
+#
+# CHANGE MASTER TO MASTER_HOST=<host>, MASTER_PORT=<port>,
+# MASTER_USER=<user>, MASTER_PASSWORD=<password> ;
+#
+# where you replace <host>, <user>, <password> by quoted strings and
+# <port> by the master's port number (3306 by default).
+#
+# Example:
+#
+# CHANGE MASTER TO MASTER_HOST='125.564.12.1', MASTER_PORT=3306,
+# MASTER_USER='joe', MASTER_PASSWORD='secret';
+#
+# OR
+#
+# 2) Set the variables below. However, in case you choose this method, then
+# start replication for the first time (even unsuccessfully, for example
+# if you mistyped the password in master-password and the slave fails to
+# connect), the slave will create a master.info file, and any later
+# change in this file to the variables' values below will be ignored and
+# overridden by the content of the master.info file, unless you shutdown
+# the slave server, delete master.info and restart the slaver server.
+# For that reason, you may want to leave the lines below untouched
+# (commented) and instead use CHANGE MASTER TO (see above)
+#
+# required unique id between 2 and 2^32 - 1
+# (and different from the master)
+# defaults to 2 if master-host is set
+# but will not function as a slave if omitted
+#server-id = 2
+#
+# The replication master for this slave - required
+#master-host = <hostname>
+#
+# The username the slave will use for authentication when connecting
+# to the master - required
+#master-user = <username>
+#
+# The password the slave will authenticate with when connecting to
+# the master - required
+#master-password = <password>
+#
+# The port the master is listening on.
+# optional - defaults to 3306
+#master-port = <port>
+#
+# binary logging - not required for slaves, but recommended
+#log-bin=mysql-bin
+
+# Uncomment the following if you are using InnoDB tables
+#innodb_data_home_dir = /var/lib/mysql
+#innodb_data_file_path = ibdata1:10M:autoextend
+#innodb_log_group_home_dir = /var/lib/mysql
+# You can set .._buffer_pool_size up to 50 - 80 %
+# of RAM but beware of setting memory usage too high
+#innodb_buffer_pool_size = 16M
+#innodb_additional_mem_pool_size = 2M
+# Set .._log_file_size to 25 % of buffer pool size
+#innodb_log_file_size = 5M
+#innodb_log_buffer_size = 8M
+#innodb_flush_log_at_trx_commit = 1
+#innodb_lock_wait_timeout = 50
+
+[mysqldump]
+quick
+max_allowed_packet = 16M
+
+[mysql]
+no-auto-rehash
+# Remove the next comment character if you are not familiar with SQL
+#safe-updates
+
+[myisamchk]
+key_buffer_size = 20M
+sort_buffer_size = 20M
+read_buffer = 2M
+write_buffer = 2M
+
+[mysqlhotcopy]
+interactive-timeout
diff --git a/~coadde/mariadb/mysql.install b/~coadde/mariadb/mysql.install
new file mode 100644
index 000000000..9a4479215
--- /dev/null
+++ b/~coadde/mariadb/mysql.install
@@ -0,0 +1,26 @@
+post_install(){
+ groupadd -g 89 mysql &>/dev/null
+ useradd -u 89 -g mysql -d /var/lib/mysql -s /bin/false mysql &>/dev/null
+ usr/bin/mysql_install_db --user=mysql --basedir=/usr
+ chown -R mysql:mysql var/lib/mysql &>/dev/null
+}
+
+post_upgrade(){
+ getent group mysql >/dev/null 2>&1 || groupadd -g 89 mysql &>/dev/null
+ getent passwd mysql >/dev/null 2>&1 || useradd -u 89 -g mysql -d /var/lib/mysql -s /bin/false mysql &>/dev/null
+
+ if [ "$(vercmp $2 5.5)" -lt 0 ]; then
+ echo " >> "
+ echo " >> Major version update. Consider restart the service, and then running mysql_upgrade after it."
+ echo " >> "
+ fi
+}
+
+post_remove(){
+ if getent passwd mysql >/dev/null 2>&1; then
+ userdel mysql
+ fi
+ if getent group mysql >/dev/null 2>&1; then
+ groupdel mysql
+ fi
+}
diff --git a/~coadde/mariadb/mysqld b/~coadde/mariadb/mysqld
new file mode 100644
index 000000000..1ac88a7cc
--- /dev/null
+++ b/~coadde/mariadb/mysqld
@@ -0,0 +1,77 @@
+#!/bin/bash
+
+# general config
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+getPID() {
+ echo $(pgrep -u mysql mysqld 2>/dev/null);
+}
+
+case "$1" in
+ start)
+ stat_busy "Starting MySQL Server"
+ [ ! -d /var/run/mysqld ] && install -d -g mysql -o mysql /var/run/mysqld &>/dev/null
+ if [ -z "$(getPID)" ]; then
+ /usr/bin/mysqld_safe --user=mysql &>/dev/null &
+ if [ $? -gt 0 ]; then
+ stat_fail
+ exit 1
+ else
+ timeo=30
+ while [ $timeo -gt 0 ]; do
+ response=`/usr/bin/mysqladmin -uUNKNOWN_USER ping 2>&1` && break
+ echo "$response" | grep -q "mysqld is alive" && break
+ sleep 1
+ let timeo=${timeo}-1
+ done
+ if [ $timeo -eq 0 ]; then
+ stat_fail
+ exit 1
+ else
+ echo $(getPID) > /var/run/mysqld/mysqld.pid
+ add_daemon mysqld
+ stat_done
+ fi
+ fi
+ else
+ stat_fail
+ exit 1
+ fi
+ ;;
+
+ stop)
+ stat_busy "Stopping MySQL Server"
+ if [ ! -z "$(getPID)" ]; then
+ timeo=30
+ kill $(getPID) &> /dev/null
+ if [ $? -gt 0 ]; then
+ stat_fail
+ exit 1
+ fi
+ while [ ! -z "$(getPID)" -a $timeo -gt 0 ]; do
+ sleep 1
+ let timeo=${timeo}-1
+ done
+ if [ -z "$(getPID)" ]; then
+ rm -f /var/run/mysqld/mysqld.pid &>/dev/null
+ rm_daemon mysqld
+ stat_done
+ else
+ stat_fail
+ exit 1
+ fi
+ else
+ stat_fail
+ exit 1
+ fi
+ ;;
+
+ restart)
+ $0 stop
+ $0 start
+ ;;
+ *)
+ echo "usage: $0 {start|stop|restart}"
+esac
+exit 0