summaryrefslogtreecommitdiff
path: root/libre
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@parabola.nu>2013-06-03 11:41:39 -0300
committerNicolás Reynolds <fauno@parabola.nu>2013-06-03 11:41:39 -0300
commite175a6a319b5392f499b6f679f89f8346d8dd799 (patch)
treeaa84ee61b39ef860b4169e81369c545a9a732658 /libre
parent6370ae5c715a94a0390b77d10adb6e8ee3b39ef9 (diff)
parent8bc9d00dfcde0f3b844917713b3d31749ce51b50 (diff)
Merge branch 'master' of vparabola:abslibre
Diffstat (limited to 'libre')
-rw-r--r--libre/bbswitch-libre/PKGBUILD6
-rw-r--r--libre/blender-libre/PKGBUILD14
-rw-r--r--libre/cgminer-libre/PKGBUILD10
-rw-r--r--libre/claws-mail-libre/PKGBUILD126
-rw-r--r--libre/gummiboot/PKGBUILD22
-rw-r--r--libre/gummiboot/gummiboot.install4
-rw-r--r--libre/gummiboot/parabola.conf2
-rw-r--r--libre/iceweasel-l10n/PKGBUILD2
-rw-r--r--libre/mkisolinux/PKGBUILD13
-rwxr-xr-xlibre/mkisolinux/mkisolinux1
-rw-r--r--libre/mkisolinux/mkisolinux.conf2
-rw-r--r--libre/mksyslinux/PKGBUILD26
-rw-r--r--libre/mksyslinux/boot.msg15
-rwxr-xr-xlibre/mksyslinux/mksyslinux143
-rw-r--r--libre/mksyslinux/mksyslinux.conf34
-rw-r--r--libre/mksyslinux/options.msg6
16 files changed, 319 insertions, 107 deletions
diff --git a/libre/bbswitch-libre/PKGBUILD b/libre/bbswitch-libre/PKGBUILD
index fe5469dd0..2dc83cb5e 100644
--- a/libre/bbswitch-libre/PKGBUILD
+++ b/libre/bbswitch-libre/PKGBUILD
@@ -5,9 +5,9 @@
_pkgname=bbswitch
pkgname=bbswitch-libre
-pkgver=0.6
+pkgver=0.7
_extramodules=extramodules-3.9-LIBRE # Don't forget to update bbswitch.install
-pkgrel=8
+pkgrel=1
pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus laptops (built for the linux-libre kernel package)"
arch=('i686' 'x86_64' 'mips64el')
url=("http://github.com/Bumblebee-Project/bbswitch")
@@ -19,7 +19,7 @@ conflicts=$_pkgname
provides=$_pkgname=$pkgver
install=bbswitch.install
source=("https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz")
-md5sums=('c5496e3225c8e70d02a24bfd8a50faf6')
+md5sums=('b9df5ea40109ef9766448a0577c798e6')
build() {
cd ${srcdir}/${_pkgname}-${pkgver}
diff --git a/libre/blender-libre/PKGBUILD b/libre/blender-libre/PKGBUILD
index a82766f1d..f226b76fd 100644
--- a/libre/blender-libre/PKGBUILD
+++ b/libre/blender-libre/PKGBUILD
@@ -10,10 +10,11 @@ else
pkgname=blender-libre
_spndesc=''
fi
-epoch=7
-pkgver=2.67
+epoch=8
+pkgver=2.67a
+_jpgver=1.5
_pyver=3.3
-pkgrel=2
+pkgrel=1
pkgdesc="Fully integrated 3D graphics creation suite, without nonfree povray and cuda support$_spndesc"
arch=(
i686
@@ -58,7 +59,7 @@ conflicts=${_pkgname%-$_pkgflag}
replaces=${_pkgname%-$_pkgflag}
install=$_pkgname.install
source=http://download.${_pkgname%-$_pkgflag}.org/source/${_pkgname%-$_pkgflag}-$pkgver.tar.gz
-sha512sums=678ff15b4c7aa5695ac31189c2532d959867dfd003d101a52fc8e294b2d7bc5a4699844db9fa6cc6f5e825aa5ba2da37cec0dc56bfd2686957eca075bf935f44
+sha512sums=1336ed00ab51c581ab5b8ef6ace04b3684290b287745de3260e4072e3527501bf62472057c4c521533678b2529b7d0c2dca93d0ca3854e29d82443a78d5c4061
prepare() {
mkdir cd $srcdir/${_pkgname%-$_pkgflag}-$pkgver/build
@@ -67,12 +68,13 @@ prepare() {
build() {
cd $srcdir/${_pkgname%-$_pkgflag}-$pkgver/build
- [[ $CARCH != x86_64 ]] && DSUPPORT_SSE2_BUILD='-DSUPPORT_SSE2_BUILD=OFF'
+ [[ $CARCH == i686 ]] && DSUPPORT_SSE2_BUILD='-DSUPPORT_SSE2_BUILD=OFF'
setarch $CARCH cmake ..\
-DCMAKE_BUILD_TYPE=Release\
-DCMAKE_INSTALL_PREFIX=/usr\
-DOPENIMAGEIO_ROOT_DIR=/usr\
+ -DOPENJPEG_INCLUDE_DIR=/usr/include/openjpeg-$_jpgver\
-DPYTHON_INCLUDE_DIRS=/usr/include/python${_pyver}m\
-DPYTHON_LIBPATH=/usr/lib\
-DPYTHON_LIBRARY=python${_pyver}m\
@@ -85,7 +87,7 @@ build() {
-DWITH_CYCLES_OSL=ON\
-DWITH_FFTW3=ON\
-DWITH_GAMEENGINE=ON\
- -DWITH_IMAGE_REDCODE=OFF\
+ -DWITH_IMAGE_REDCODE=ON\
-DWITH_INSTALL_PORTABLE=OFF\
-DWITH_JACK=ON\
-DWITH_MOD_OCEANSIM=ON\
diff --git a/libre/cgminer-libre/PKGBUILD b/libre/cgminer-libre/PKGBUILD
index 575ea2d55..2db7dbbc5 100644
--- a/libre/cgminer-libre/PKGBUILD
+++ b/libre/cgminer-libre/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 90344 2013-05-11 16:51:20Z fyan $
+# $Id: PKGBUILD 92066 2013-05-31 05:55:37Z fyan $
# Maintainer: Felix Yan <felixonmars@gmail.com>
# Contributor: monson <holymonson@gmail.com>
# Contributor: Thomas Dziedzic < gostrc at gmail >
@@ -7,7 +7,7 @@
pkgname=cgminer-libre
_pkgflag=libre
-pkgver=3.1.1
+pkgver=3.2.0
pkgrel=1
pkgdesc="Multi-threaded multi-pool GPU, FPGA and ASIC miner for bitcoin and derivative coins, without nonfree OpenCL recommendation"
url='http://forum.bitcoin.org/index.php?topic=28402.0'
@@ -18,7 +18,7 @@ makedepends=('opencl-headers')
provides=(${pkgname%-$_pkgflag}=$pkgver)
conflicts=${pkgname%-$_pkgflag}
replaces=${pkgname%-$_pkgflag}
-source=("https://github.com/ckolivas/${pkgname%-$_pkgflag}/archive/v$pkgver.tar.gz"
+source=("http://ck.kolivas.org/apps/${pkgname%-$_pkgflag}/${pkgname%-$_pkgflag}-${pkgver}.tar.bz2"
"${pkgname%-$_pkgflag}.conf.d"
"${pkgname%-$_pkgflag}.service")
backup=("etc/conf.d/${pkgname%-$_pkgflag}" "etc/${pkgname%-$_pkgflag}.conf")
@@ -34,7 +34,7 @@ build() {
# Here you may want to use custom CFLAGS
#export CFLAGS="-O2 -march=native -mtune=native -msse2"
- ./autogen.sh
+ #./autogen.sh
./configure --prefix=/usr --enable-scrypt --disable-adl
make
@@ -51,6 +51,6 @@ package() {
install -Dm644 ${pkgname%-$_pkgflag}.conf "$pkgdir"/etc/${pkgname%-$_pkgflag}.conf
}
-sha512sums=('f95db6ab14fe35ed19c1af152c6eb979787e966afad250252053bf11abe8293dfe857a7a2abfd9e33b60a190b310193a03151eb67a9db255a2a929660278ad62'
+sha512sums=('e96b874fd53c771535098c1077200b5ab88aa628383f7af56f861c952a534283942ce34647f279bf4229bfc3a0114f81a7ae3deca4e8e7931d7551fdb75c68c0'
'99c38bc395848f9712ce172343d31f5c60f5d8ac1cfe2f48df8f3ec6c488fc275763a79c5ef36b99f32faa465b5a65284b38e8a63ef9b144075ee13971313b41'
'3317b60c6b1f14c47d8ee636113ef40a4023ab14054129de80a37947b381fd2b647a7053f4e1bb639efa225a514e862fa531908714c34040dda2d6221dde7f5f')
diff --git a/libre/claws-mail-libre/PKGBUILD b/libre/claws-mail-libre/PKGBUILD
index ee7019130..2a0ce65ce 100644
--- a/libre/claws-mail-libre/PKGBUILD
+++ b/libre/claws-mail-libre/PKGBUILD
@@ -2,88 +2,70 @@
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
# Maintainer (Parabola): Márcio Silva <coadde@lavabit.com>
-pkgbase=claws-mail
pkgname=claws-mail-libre
-pkgflag=-libre
-pkgver=3.9.0
-pkgrel=2
+_pkgflag=libre
+_pkgname=${pkgname%-$_pkgflag}
+pkgver=3.9.1
+pkgrel=3
pkgdesc='A GTK+ based e-mail client, without nonfree PalmOS handheld devices support'
-arch=(
- i686
- x86_64
- mips64el
-)
-license=GPL3
-url="http://www.$pkgbase.org"
-depends=(
- db
- dbus-glib
- desktop-file-utils
- enchant
- gnutls
- gpgme
- gtk2
- hicolor-icon-theme
- 'libetpan>=1.1'
- libsm
- startup-notification
-)
-makedepends=(
- bogofilter
- compface
- spamassassin
-)
-[ "$CARCH" != "mips64el" ] && makedepends+=(valgrind)
-optdepends=(
- 'python2: needed for some tools'
- 'perl: needed for some tools'
- 'spamassassin: adds support for spamfiltering'
- 'bogofilter: adds support for spamfiltering'
-)
-provides=(
- claws
- $pkgbase=$pkgver
-)
-conflicts=(
- $pkgbase
-)
-replaces=(
- $pkgbase
- sylpheed-claws
-)
-options=(
- '!libtool'
-)
-install=$pkgbase.install
-source=(
- http://downloads.sourceforge.net/sourceforge/sylpheed-claws/$pkgbase-$pkgver.tar.bz2
-)
-md5sums=(
- 4c5ac7b21f0ed17d0f6404124c2229a4
-)
+arch=('i686' 'x86_64' 'mips64el')
+license=('GPL3')
+url="http://www.$_pkgname.org"
+depends=('gtk2' 'gnutls' 'startup-notification' 'enchant'
+ 'gpgme' 'libetpan>=1.1' 'libsm' 'db' 'dbus-glib' 'hicolor-icon-theme' 'desktop-file-utils')
+makedepends=('compface' 'spamassassin' 'bogofilter'
+ # dependencies for plugins
+ 'libsoup' 'libgdata' 'webkitgtk2' 'libnotify' 'libcanberra' 'poppler-glib' 'pygtk')
+ #'libchamplain' needed for geolocation plugin, disabled for now - most time it's not compatible with current gnome releases
+[ "$CARCH" != "mips64el" ] && makedepends+=('valgrind')
+optdepends=('python2: needed for some tools and python plugin'
+ 'perl: needed for some tools and perl plugin'
+ 'spamassassin: adds support for spamfiltering'
+ 'bogofilter: adds support for spamfiltering'
+ 'libnotify: for notification plugin'
+ 'libcanberra: for notification plugin'
+ 'dbus: for notification plugin'
+ 'libxml2: for gtkhtml2_viewer and rssyl plugins'
+ 'curl: for gtkhtml2_viewer, vcalendar, rssyl and spamreport plugins'
+ 'libarchive: for archive plugin and various other plugins'
+ 'libytnef: for tnef_parse plugin'
+ 'webkitgtk2: for the fancy webkit html plugin'
+ 'libsoup: for the fancy webkit html plugin'
+ 'libgdata: for gdata plugin'
+ 'poppler-glib: for pdf viewer plugin'
+ 'ghostscript: for pdf viewer plugin')
+replaces=("$_pkgname" "sylpheed-claws" "$_pkgname-extra-plugins")
+conflicts=("$_pkgname" "$_pkgname-extra-plugins")
+provides=("$_pkgname=$pkgver" 'claws')
+options=(!libtool)
+install=$_pkgname.install
+source=(http://downloads.sourceforge.net/sourceforge/sylpheed-claws/$_pkgname-$pkgver.tar.bz2{,.asc})
+md5sums=('8adc734912ff1b83545cb12850100473'
+ 'SKIP')
build() {
- cd $srcdir/$pkgbase-$pkgver
+ cd $srcdir/$_pkgname-$pkgver
+ # fixes for python2
+ export PYTHON="/usr/bin/python2"
sed -i 's@^#!.*python.*@#!/usr/bin/python2@' tools/*.py
+ sed -i 's:python -c:python2 -c:g' configure
- ./configure --prefix=/usr\
- --disable-dillo-viewer-plugin\
- --disable-static\
- --enable-bogofilter-plugin\
- --enable-crash-dialog\
- --enable-enchant\
- --enable-gnutls\
- --enable-jpilot\
- --enable-ldap\
- --enable-pgpmime-plugin\
- --enable-spamassassin-plugin
-
+ ./configure --prefix=/usr --disable-static \
+ --enable-enchant \
+ --enable-gnutls \
+ --enable-ldap \
+ --enable-crash-dialog \
+ --enable-pgpmime-plugin \
+ --enable-spamassassin-plugin \
+ --enable-bogofilter-plugin \
+ --enable-jpilot \
+ #--help
make
}
package() {
- cd $srcdir/$pkgbase-$pkgver
+ cd $srcdir/$_pkgname-$pkgver
make DESTDIR=$pkgdir install
# build and install extra tools
@@ -91,6 +73,6 @@ package() {
make
# all executables and .conf files ; only top directory
find -maxdepth 1 -type f -and -perm /111 -or -name '*.conf' | while read i ; do
- install -D -m755 $i $pkgdir/usr/lib/$pkgbase/tools/$i
+ install -D -m755 $i $pkgdir/usr/lib/$_pkgname/tools/$i
done
}
diff --git a/libre/gummiboot/PKGBUILD b/libre/gummiboot/PKGBUILD
index 8ce0f23cf..1195912e8 100644
--- a/libre/gummiboot/PKGBUILD
+++ b/libre/gummiboot/PKGBUILD
@@ -1,29 +1,30 @@
-# $Id$
+# $Id: PKGBUILD 186011 2013-05-20 13:11:55Z tomegun $
# Maintainer: Tom Gundersen <teg@jklm.no>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
# Contributor: Keshav P R <(the.ridikulus.rat) (aatt) (gemmaeiil) (ddoott) (ccoomm)>
# Contributor: Mantas Mikulėnas <grawity@gmail.com>
+# Maintainer (Parabola): André Silva <emulatorman@lavabit.com>
pkgname="gummiboot"
-pkgver="29"
-pkgrel="1.1"
-pkgdesc="Simple text-mode UEFI Boot Manager, Parabola rebranded"
+pkgver="31"
+pkgrel="1"
+pkgdesc="Simple text-mode UEFI Boot Manager (Parabola rebranded)"
url="http://freedesktop.org/wiki/Software/gummiboot"
arch=('x86_64' 'i686' 'mips64el')
license=('LGPL2.1')
-makedepends=('gnu-efi-libs' 'docbook-xsl')
+makedepends=('gnu-efi-libs' 'docbook-xsl' 'git')
depends=('util-linux')
conflicts=('gummiboot-efi')
provides=('gummiboot-efi')
replaces=('gummiboot-efi')
options=('!strip')
-source=("ftp://ftp.archlinux.org/other/packages/${pkgname}/${pkgname}-${pkgver}.tar.xz"
+source=("git://anongit.freedesktop.org/${pkgname}#tag=${pkgver}"
'loader.conf'
'parabola.conf')
install="gummiboot.install"
build() {
- cd "${srcdir}/${pkgname}-${pkgver}/"
+ cd ${srcdir}/${pkgname}
./autogen.sh
./configure --sysconfdir=/etc --libexecdir=/usr/lib --libdir=/usr/lib
@@ -36,9 +37,10 @@ package() {
install -D -m0644 "${srcdir}/loader.conf" "${pkgdir}/usr/lib/gummiboot/loader/loader.conf"
install -D -m0644 "${srcdir}/parabola.conf" "${pkgdir}/usr/lib/gummiboot/loader/entries/parabola.conf"
- cd "${srcdir}/${pkgname}-${pkgver}/"
+ cd ${srcdir}/${pkgname}
+
make DESTDIR="${pkgdir}" install
}
-md5sums=('7e133411b805ce6fb5dd3e3bd08b88a2'
+md5sums=('SKIP'
'3d700d13aec5ab1b78a921eaf22e5bfa'
- '9f770584795496c0e3409679eaf7be3b')
+ '36ee74767ac8734dede1cbd0f4f275d7')
diff --git a/libre/gummiboot/gummiboot.install b/libre/gummiboot/gummiboot.install
index 770087361..20861d4c8 100644
--- a/libre/gummiboot/gummiboot.install
+++ b/libre/gummiboot/gummiboot.install
@@ -1,5 +1,7 @@
post_install() {
- echo ":: Run '/usr/bin/gummiboot install' to enable gummiboot"
+ mkdir -p /boot/EFI/gummiboot
+ /usr/bin/gummiboot update
+ echo ":: Run '/usr/bin/gummiboot install' to make gummiboot your default bootloader"
}
post_upgrade() {
diff --git a/libre/gummiboot/parabola.conf b/libre/gummiboot/parabola.conf
index bbb6dddfa..111072ea2 100644
--- a/libre/gummiboot/parabola.conf
+++ b/libre/gummiboot/parabola.conf
@@ -1,4 +1,4 @@
-## This is just an exmaple config file.
+## This is just an example config file.
## Please edit the paths and kernel parameters according to your system.
title Parabola GNU/Linux-libre
diff --git a/libre/iceweasel-l10n/PKGBUILD b/libre/iceweasel-l10n/PKGBUILD
index 3c3d957a4..298d740cc 100644
--- a/libre/iceweasel-l10n/PKGBUILD
+++ b/libre/iceweasel-l10n/PKGBUILD
@@ -23,7 +23,7 @@ pkgname=($(for lang in ${_langpacks[@]}
do echo $pkgbase-$lang | tr A-Z a-z
done))
pkgver=$_debver.$_debrel
-pkgrel=1
+pkgrel=2
pkgdesc="Language packs for Debian Iceweasel."
arch=('any')
diff --git a/libre/mkisolinux/PKGBUILD b/libre/mkisolinux/PKGBUILD
index 1c02bb01b..7c9ab6cc4 100644
--- a/libre/mkisolinux/PKGBUILD
+++ b/libre/mkisolinux/PKGBUILD
@@ -2,8 +2,8 @@
# Maintainer : Tobias Powalowski <tpowa@archlinux.org>
pkgname=mkisolinux
-pkgver=2013.03
-pkgrel=2
+pkgver=2013.05
+pkgrel=1
pkgdesc="Advanced, modular isolinux bootcd image creation utility (Parabola rebranded)"
arch=(any)
license=('GPL')
@@ -12,10 +12,7 @@ depends=('mkinitcpio' 'cdrkit' 'syslinux' 'pciutils')
replaces=('mkbootcd')
backup=(etc/mkisolinux.conf)
source=('boot.msg' 'mkisolinux' 'mkisolinux.conf' 'options.msg')
-md5sums=('945d5f5d74f37718c8c9d518bfd5698d'
- 'e28b82502ae44087852ea6bfac398d5c'
- '456eba83dfba319f8132c89e7ba42ce5'
- 'ae0007d6679b5a575b2a9e5ac3664baf')
+
package()
{
@@ -25,3 +22,7 @@ package()
install -D -m644 boot.msg "$pkgdir/usr/share/mkisolinux/boot.msg"
install -D -m644 options.msg "$pkgdir/usr/share/mkisolinux/options.msg"
}
+md5sums=('945d5f5d74f37718c8c9d518bfd5698d'
+ '384aac3786506ff96ec3d1147bcacfe5'
+ '3cc23d74d7e4378d1be431d68a71a173'
+ 'ae0007d6679b5a575b2a9e5ac3664baf')
diff --git a/libre/mkisolinux/mkisolinux b/libre/mkisolinux/mkisolinux
index 0cb53e81e..ce1187d2a 100755
--- a/libre/mkisolinux/mkisolinux
+++ b/libre/mkisolinux/mkisolinux
@@ -65,7 +65,6 @@ install -m755 /usr/lib/syslinux/isolinux.bin ${TEMPDIR}/${BOOTDIRNAME}/isolinux.
for i in /usr/lib/syslinux/*.c32; do
install -m644 $i ${TEMPDIR}/${BOOTDIRNAME}/$(basename $i)
done
-install -m644 /lib/modules/$(uname -r)/modules.pcimap ${TEMPDIR}/${BOOTDIRNAME}/modules.pcimap
install -m644 /usr/share/hwdata/pci.ids ${TEMPDIR}/${BOOTDIRNAME}/pci.ids
# create syslinux.cfg
echo ":: Creating syslinux.cfg ..."
diff --git a/libre/mkisolinux/mkisolinux.conf b/libre/mkisolinux/mkisolinux.conf
index 83d36219d..4af6f098c 100644
--- a/libre/mkisolinux/mkisolinux.conf
+++ b/libre/mkisolinux/mkisolinux.conf
@@ -2,7 +2,7 @@
# Rebranded for Parabola by André Silva <emulatorman@lavabit.com>
# config file of mkisolinux
-# DEFAULT kernel boot options like root=/dev/hda3 etc.
+# DEFAULT kernel boot options like root=/dev/sda3 etc.
# add your root= option, if you boot from a disk device
# and don't want to add it by hand on each boot
KERNEL_BOOT_OPTIONS=""
diff --git a/libre/mksyslinux/PKGBUILD b/libre/mksyslinux/PKGBUILD
new file mode 100644
index 000000000..16d595f12
--- /dev/null
+++ b/libre/mksyslinux/PKGBUILD
@@ -0,0 +1,26 @@
+# $Id: PKGBUILD 186874 2013-05-31 13:27:18Z tpowa $
+# Maintainer : Tobias Powalowski <tpowa@archlinux.org>
+
+pkgname=mksyslinux
+pkgver=2013.05
+pkgrel=1
+pkgdesc="Advanced, modular syslinux boot image creation utility (Parabola rebranded)"
+arch=(any)
+license=('GPL')
+url="https://parabolagnulinux.org/"
+depends=('mkinitcpio' 'syslinux' 'pciutils')
+backup=(etc/mksyslinux.conf)
+source=('boot.msg' 'mksyslinux' 'mksyslinux.conf' 'options.msg')
+
+package()
+{
+ cd "$srcdir/"
+ install -D -m755 mksyslinux "$pkgdir/usr/bin/mksyslinux"
+ install -D -m644 mksyslinux.conf "$pkgdir/etc/mksyslinux.conf"
+ install -D -m644 boot.msg "$pkgdir/usr/share/mksyslinux/boot.msg"
+ install -D -m644 options.msg "$pkgdir/usr/share/mksyslinux/options.msg"
+}
+md5sums=('287aad9693ca8061495e248c41ba43a7'
+ 'd958575945e4ce8a9002bd056e2f14be'
+ '1f1e2d80e28b087e4103282bc5c44071'
+ 'ae0007d6679b5a575b2a9e5ac3664baf')
diff --git a/libre/mksyslinux/boot.msg b/libre/mksyslinux/boot.msg
new file mode 100644
index 000000000..15476f2bd
--- /dev/null
+++ b/libre/mksyslinux/boot.msg
@@ -0,0 +1,15 @@
+
+
+------------------------------------------------------------------------------
+Parabola GNU/Linux-libre
+SYSLINUX BOOT
+created with 'mksyslinux' by Tobias Powalowski <tpowa@archlinux.org>
+rebranded for Parabola by André Silva <emulatorman@lavabit.com>
+
+Press ENTER or type 'parabola' to boot image.
+
+If you wish to change your defaults to boot into your existing system,
+type 'vmlinuz initrd=initrd.img <any_other_boot_option>'
+Use the F2 key for troubleshooting and options.
+------------------------------------------------------------------------------
+
diff --git a/libre/mksyslinux/mksyslinux b/libre/mksyslinux/mksyslinux
new file mode 100755
index 000000000..4db771f83
--- /dev/null
+++ b/libre/mksyslinux/mksyslinux
@@ -0,0 +1,143 @@
+#! /bin/sh
+# Created by Tobias Powalowski <tpowa@archlinux.org>
+# Settings
+APPNAME=$(basename "${0}")
+CONFIG="/etc/mksyslinux.conf"
+export TEMPDIR=$(mktemp /tmp/mksyslinux.XXX)
+TMPDIR=$(mktemp -d /tmp/mksyslinux-image.XXX)
+BOOTDIRNAME=boot/syslinux
+
+usage ()
+{
+ echo "${APPNAME}: usage"
+ echo "WRITING TO DEVICE:"
+ echo "- PREPARATION: Your device must have a bootable first partition in FAT16 format!"
+ echo "- ATTENTION: The MBR of your DEVICE will be overwritten! You have been warned!"
+ echo ""
+ echo "CREATING AN IMAGE FILE:"
+ echo "- For creating an image file use the -i=IMAGEFILE switch"
+ echo "- use 'dd if=<yourimage> of=<yourdevice>' to write to your device afterwards."
+ echo ""
+ echo "PARAMETERS:"
+ echo " -d=DEVICE Your DEVICE first partition from /dev/xxx tree to install"
+ echo " -i=IMAGENAME Your IMAGENAME"
+ echo " -c=CONFIG Use CONFIG file. default: /etc/mksyslinux.conf"
+ echo " -h This message."
+ exit 1
+}
+
+[ "$1" == "" ] && usage && exit 1
+
+
+while [ $# -gt 0 ]; do
+ case $1 in
+ -c=*|--c=*) CONFIG="$(echo $1 | awk -F= '{print $2;}')" ;;
+ -d=*|--d=*) DEVICE="$(echo $1 | awk -F= '{print $2;}')" ;;
+ -i=*|--i=*) IMAGENAME="$(echo $1 | awk -F= '{print $2;}')" ;;
+ -h|--h|?) usage ;;
+ *) usage ;;
+ esac
+ shift
+done
+
+if [ ! -f "${CONFIG}" ]; then
+ echo "config file '${CONFIG}' cannot be found, aborting..."
+ exit 1
+fi
+
+if [ "${IMAGENAME}" = "" ]; then
+ if [ "${DEVICE}" = "" ]; then
+ echo "ERROR: No DEVICE name specified, please use the -d option"
+ exit 1
+ fi
+fi
+
+if ! [ $UID -eq 0 ]; then
+ echo "ERROR: only works when run as root!"
+ exit 1
+fi
+
+. "${CONFIG}"
+# export for mkinitcpio
+[ -n "${APPENDBOOTMESSAGE}" ] && export APPENDBOOTMESSAGE
+[ -n "${APPENDBOOTMESSAGE_SYSLINUX}" ] && export APPENDBOOTMESSAGE_SYSLINUX
+[ -n "${APPENDOPTIONSBOOTMESSAGE}" ] && export APPENDOPTIONSBOOTMESSAGE
+
+MBRDEVICE="$(echo ${DEVICE} | sed -e 's/[0-9]//g')"
+
+export RUNPROGRAM="${APPNAME}"
+[ "${BOOTMESSAGE}" = "" ] && export BOOTMESSAGE=$(mktemp /tmp/bootmessage.XXXX)
+[ "${OPTIONSBOOTMESSAGE}" = "" ] && export OPTIONSBOOTMESSAGE=$(mktemp /tmp/optionsbootmessage.XXXX)
+export USEKERNEL=${VERSION}
+# begin script
+[ -e ${TEMPDIR} ] && rm -r ${TEMPDIR}
+mkdir -p ${TEMPDIR}/$BOOTDIRNAME
+echo ":: Mounting ${DEVICE} ..."
+if ! [ "${IMAGENAME}" = "" ]; then
+ modprobe loop
+else
+ mount ${DEVICE} ${TEMPDIR} || exit 1
+fi
+# prepare syslinux bootloader
+install -m755 /usr/lib/syslinux/isolinux.bin ${TEMPDIR}/${BOOTDIRNAME}/isolinux.bin
+for i in /usr/lib/syslinux/*.c32; do
+ install -m644 $i ${TEMPDIR}/${BOOTDIRNAME}/$(basename $i)
+done
+install -m644 /usr/share/hwdata/pci.ids ${TEMPDIR}/${BOOTDIRNAME}/pci.ids
+
+# create syslinux.cfg
+echo ":: Creating syslinux.cfg ..."
+if [ "${SYSLINUXCFG}" = "" ]; then
+ [ -e ${TEMPDIR}/${BOOTDIRNAME}/syslinux.cfg ] && rm ${TEMPDIR}/${BOOTDIRNAME}/syslinux.cfg
+ echo "prompt ${PROMPT}" >> ${TEMPDIR}/${BOOTDIRNAME}/syslinux.cfg
+ echo "timeout ${TIMEOUT}" >> ${TEMPDIR}/${BOOTDIRNAME}/syslinux.cfg
+ echo "display boot.msg" >> ${TEMPDIR}/${BOOTDIRNAME}/syslinux.cfg
+ echo "F1 boot.msg" >> ${TEMPDIR}/${BOOTDIRNAME}/syslinux.cfg
+ echo "F2 options.msg" >> ${TEMPDIR}/${BOOTDIRNAME}/syslinux.cfg
+ echo "default parabola" >> ${TEMPDIR}/${BOOTDIRNAME}/syslinux.cfg
+ echo "label parabola" >> ${TEMPDIR}/${BOOTDIRNAME}/syslinux.cfg
+ echo "kernel /boot/vmlinuz" >> ${TEMPDIR}/${BOOTDIRNAME}/syslinux.cfg
+ echo "append initrd=/boot/initrd.img ${KERNEL_BOOT_OPTIONS}" >> ${TEMPDIR}/${BOOTDIRNAME}/syslinux.cfg
+else
+ sed "s|@@PROMPT@@|${PROMPT}|g;s|@@TIMEOUT@@|${TIMEOUT}|g;s|@@KERNEL_BOOT_OPTIONS@@|${KERNEL_BOOT_OPTIONS}|g" \
+ ${SYSLINUXCFG} > ${TEMPDIR}/${BOOTDIRNAME}/syslinux.cfg
+fi
+[ ! -s ${TEMPDIR}/syslinux.cfg ] && echo "No syslinux.cfg found" && exit 1
+echo ":: Calling mkinitcpio CONFIG=${MKINITCPIO_CONFIG} KERNEL=${VERSION} ..."
+# generate initramdisk
+echo ":: Creating initramdisk ..."
+ mkinitcpio -c ${MKINITCPIO_CONFIG} -k ${VERSION} -g ${TEMPDIR}/boot/initrd.img
+echo ":: Using ${KERNEL} as image kernel ..."
+ install -m644 ${KERNEL} ${TEMPDIR}/boot/vmlinuz
+ install -m644 ${BOOTMESSAGE} ${TEMPDIR}/${BOOTDIRNAME}/boot.msg
+ install -m644 ${OPTIONSBOOTMESSAGE} ${TEMPDIR}/${BOOTDIRNAME}/options.msg
+ [ ! -s ${TEMPDIR}/${BOOTDIRNAME}/boot.msg ] && echo 'ERROR:no boot.msg found, aborting!' && exit 1
+ [ ! -s ${TEMPDIR}/${BOOTDIRNAME}/options.msg ] && echo 'ERROR:no options.msg found, aborting!' && exit 1
+if ! [ "${IMAGENAME}" = "" ]; then
+ # ext2 overhead's upper bound is 6%
+ # empirically tested up to 1GB
+ rootsize=$(du -bs ${TEMPDIR}|cut -f1)
+ IMGSZ=$(( (${rootsize}*106)/100/512 + 1)) # image size in sectors
+ # create the filesystem image file
+ dd if=/dev/zero of="${IMAGENAME}" bs=512 count="${IMGSZ}"
+ # create a filesystem on the image
+ mkfs.vfat "${IMAGENAME}"
+ mount -o loop ${IMAGENAME} ${TMPDIR} || exit 1
+ cp -r "${TEMPDIR}"/* "$TMPDIR"
+ umount ${TMPDIR}
+else
+ echo ":: Unmounting ${DEVICE} ..."
+ umount ${TEMPDIR} || exit 1
+fi
+if ! [ "${IMAGENAME}" = "" ]; then
+ echo ":: Installing SYSLINUX on ${IMAGENAME} ..."
+ syslinux ${IMAGENAME} && echo "Installation completed."
+else
+ echo ":: Installing MBR on ${MBRDEVICE} ..."
+ cat ${MBR} > ${MBRDEVICE}
+ echo ":: Installing SYSLINUX on ${DEVICE} ..."
+ syslinux -o offset ${DEVICE} && echo "Installation completed."
+fi
+# clean /tmp
+rm -r ${TEMPDIR}
+! [ ${IMAGENAME} = "" ] && rm -r ${TMPDIR}
diff --git a/libre/mksyslinux/mksyslinux.conf b/libre/mksyslinux/mksyslinux.conf
new file mode 100644
index 000000000..ab2d4978a
--- /dev/null
+++ b/libre/mksyslinux/mksyslinux.conf
@@ -0,0 +1,34 @@
+# Created by Tobias Powalowski <tpowa@archlinux.org>
+# Rebranded for Parabola by André Silva <emulatorman@lavabit.com>
+# config file of mksyslinux
+
+# DEFAULT kernel boot options like root=/dev/sda3 etc.
+# add your root= option, if you boot from a disk device
+# and don't want to add it by hand on each boot
+KERNEL_BOOT_OPTIONS=""
+
+# mkinitcpio config file, defaulted to stock config file
+MKINITCPIO_CONFIG="/etc/mkinitcpio.conf"
+
+# kernel version, defaulted to build for runtime kernel
+VERSION="$(uname -r)"
+
+# kernel image, defaulted to stock libre kernel
+KERNEL="/boot/vmlinuz-linux-libre"
+
+# boot message files
+BOOTMESSAGE="/usr/share/mksyslinux/boot.msg"
+OPTIONSBOOTMESSAGE="/usr/share/mksyslinux/options.msg"
+
+syslinux.cfg file to use
+SYSLINUXCFG=""
+
+# Prompt on boot, 1=yes 0=no
+PROMPT="1"
+
+# Timeout, 30 seconds to fix usb keyboard issues
+# 0 means wait for prompt
+TIMEOUT="300"
+
+# default MBR
+MBR="/usr/lib/syslinux/mbr.bin"
diff --git a/libre/mksyslinux/options.msg b/libre/mksyslinux/options.msg
new file mode 100644
index 000000000..16c6b2eda
--- /dev/null
+++ b/libre/mksyslinux/options.msg
@@ -0,0 +1,6 @@
+------------------------------------------------------------------------------
+Parabola GNU/Linux-libre options and troubleshooting:
+
+- If your system hangs during the boot process, any combinations of the
+ boot options noapic acpi=off pci=routeirq nosmp nomsi may be useful.
+------------------------------------------------------------------------------