From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- libre/aif-libre/PKGBUILD | 37 + libre/audacious-plugins-libre/PKGBUILD | 83 + libre/aufs2-libre/PKGBUILD | 67 + libre/aufs2-libre/aufs2-libre.install | 12 + libre/aufs2-libre/aufs2-module-2.6.36.patch | 47 + libre/aufs2-libre/create-tarball.sh | 14 + libre/ffmpeg-libre/PKGBUILD | 57 + libre/filesystem/PKGBUILD | 95 + libre/filesystem/crypttab | 33 + libre/filesystem/filesystem.install | 59 + libre/filesystem/fstab | 6 + libre/filesystem/group | 30 + libre/filesystem/gshadow | 30 + libre/filesystem/host.conf | 8 + libre/filesystem/hosts | 9 + libre/filesystem/issue | 3 + libre/filesystem/ld.so.conf | 7 + libre/filesystem/modprobe.d.usb-load-ehci-first | 2 + libre/filesystem/motd | 0 libre/filesystem/nsswitch.conf | 19 + libre/filesystem/passwd | 7 + libre/filesystem/profile | 27 + libre/filesystem/resolv.conf | 8 + libre/filesystem/securetty | 15 + libre/filesystem/shadow | 7 + libre/filesystem/shells | 9 + libre/ghostscript-libre/PKGBUILD | 67 + libre/ghostscript-libre/gs_bug691759and691760.diff | 215 + libre/ghostscript-libre/svn_rev11948.diff | 16 + libre/grub2/05_archtheme | 6 + libre/grub2/20_memtest86+ | 27 + libre/grub2/PKGBUILD | 204 + libre/grub2/archlinux_grub2_mkconfig_fixes.patch | 93 + libre/grub2/grub.cfg | 26 + libre/grub2/grub.default | 42 + libre/grub2/grub2.install | 30 + libre/gstreamer0.10-bad-libre/PKGBUILD | 54 + .../gstreamer0.10-bad-plugins.install | 11 + libre/icecat-i18n/PKGBUILD | 627 +++ libre/icecat/PKGBUILD | 120 + libre/icecat/arch-linux-wiki.xml | 12 + libre/icecat/duck-duck-go-lite.xml | 8 + libre/icecat/duck-duck-go-ssl.xml | 8 + libre/icecat/firefox-version.patch | 12 + libre/icecat/firefox.js | 1072 +++++ libre/icecat/icecat-safe.desktop | 78 + libre/icecat/icecat.desktop | 78 + libre/icecat/icecat.install | 21 + libre/icecat/internet-archive.xml | 12 + libre/icecat/jamendo-en.xml | 12 + libre/icecat/logless-search.xml | 8 + libre/icecat/mozconfig | 64 + libre/icecat/mozilla-firefox-1.0-lang.patch | 12 + libre/icecat/python2.7.patch | 11 + libre/icecat/region.properties | 23 + libre/icecat/scroogle-ssl-english.xml | 14 + libre/icecat/xulrunner-copy-stub.patch | 11 + libre/icecat/yacy.xml | 9 + libre/initscripts/PKGBUILD | 36 + libre/initscripts/initscripts.install | 7 + libre/initscripts/parabola-branding.patch | 52 + libre/initscripts/wireless.conf.d | 12 + libre/kernel26-libre-lts/PKGBUILD | 227 + libre/kernel26-libre-lts/config.i686 | 4769 ++++++++++++++++++++ libre/kernel26-libre-lts/config.x86_64 | 4577 +++++++++++++++++++ .../kernel26-libre-lts/kernel26-libre-lts.install | 147 + libre/kernel26-libre-lts/kernel26-lts.preset | 17 + libre/kernel26-libre-lts/libata-alignment.patch | 48 + libre/kernel26-libre-manpages/PKGBUILD | 31 + libre/libretools/PKGBUILD | 58 + libre/libretools/libretools.install | 36 + libre/libui-sh/PKGBUILD | 25 + libre/licenses-libre/PKGBUILD | 114 + libre/licenses-libre/ZopePublicLicense.txt | 54 + libre/licenses-libre/cc-by-3.0.txt | 60 + libre/licenses-libre/cc-by-sa-3.0.txt | 63 + libre/licenses-libre/cc-readme.txt | 10 + libre/licenses-libre/cddl-1.0.txt | 377 ++ libre/licenses-libre/cpl-1.0.txt | 217 + libre/licenses-libre/eclipse-1.0.txt | 88 + libre/licenses-libre/perlartistic.txt | 151 + libre/licenses-libre/python-2.txt | 193 + libre/mplayer-libre/PKGBUILD | 59 + libre/mplayer-libre/mplayer.desktop | 21 + libre/mplayer-libre/mplayer.install | 11 + libre/mplayer-libre/mplayer.png | Bin 0 -> 1982 bytes libre/mplayer-vaapi-libre/PKGBUILD | 82 + libre/mplayer-vaapi-libre/mplayer-vaapi.install | 9 + libre/mplayer-vaapi-libre/mplayer.desktop | 21 + libre/mplayer-vaapi-libre/mplayer.png | Bin 0 -> 1982 bytes libre/mplayer-vaapi-libre/patch-fixes.patch | 131 + libre/p7zip-libre/9.04-makefile.patch | 19 + libre/p7zip-libre/PKGBUILD | 51 + libre/pacman-mirrorlist-libre/PKGBUILD | 37 + libre/pacman-mirrorlist-libre/mirrorlist | 4 + libre/psutils-libre/PKGBUILD | 31 + libre/python-reportlab-libre/PKGBUILD | 39 + libre/python-reportlab-libre/free-fonts.patch | 144 + libre/seamonkey-libre/PKGBUILD | 56 + libre/seamonkey-libre/gnuzilla-addons.patch | 29 + libre/seamonkey-libre/mozconfig | 30 + libre/seamonkey-libre/python27.patch | 11 + libre/seamonkey-libre/seamonkey-2.0-lang.patch | 11 + libre/seamonkey-libre/seamonkey-appversion.patch | 12 + libre/seamonkey-libre/seamonkey.desktop | 11 + libre/sqlite3/PKGBUILD | 87 + libre/sqlite3/license.txt | 33 + libre/thunderbird-libre/PKGBUILD | 83 + libre/thunderbird-libre/gnuzilla-addons.patch | 36 + libre/thunderbird-libre/mozconfig | 38 + libre/thunderbird-libre/python2.7.patch | 11 + libre/thunderbird-libre/thunderbird-3.0-lang.patch | 11 + .../thunderbird-libre/thunderbird-appversion.patch | 12 + .../thunderbird-preferences.patch | 30 + .../thunderbird-shared-error.patch | 15 + libre/thunderbird-libre/thunderbird.desktop | 13 + libre/thunderbird-libre/thunderbird.install | 11 + libre/thunderbird-libre/xulrunner-png14.patch | 11 + libre/ttf-thai-libre/PKGBUILD | 27 + libre/ttf-thai-libre/ttf.install | 15 + libre/unrar-libre/PKGBUILD | 29 + libre/xchat-libre/ChangeLog | 49 + libre/xchat-libre/PKGBUILD | 41 + libre/xchat-libre/remove-non-free-suggestion.patch | 12 + libre/xorg-fonts-100dpi-libre/PKGBUILD | 40 + libre/xorg-fonts-100dpi-libre/xfonts.install | 20 + libre/xorg-fonts-75dpi-libre/PKGBUILD | 37 + libre/xorg-fonts-75dpi-libre/xfonts.install | 20 + libre/xorg-fonts-type1-libre/PKGBUILD | 36 + libre/xorg-fonts-type1-libre/xfonts.install | 20 + libre/your-freedom/PKGBUILD | 32 + libre/your-freedom/your-freedom.install | 32 + 132 files changed, 16683 insertions(+) create mode 100644 libre/aif-libre/PKGBUILD create mode 100644 libre/audacious-plugins-libre/PKGBUILD create mode 100644 libre/aufs2-libre/PKGBUILD create mode 100644 libre/aufs2-libre/aufs2-libre.install create mode 100644 libre/aufs2-libre/aufs2-module-2.6.36.patch create mode 100644 libre/aufs2-libre/create-tarball.sh create mode 100644 libre/ffmpeg-libre/PKGBUILD create mode 100644 libre/filesystem/PKGBUILD create mode 100644 libre/filesystem/crypttab create mode 100644 libre/filesystem/filesystem.install create mode 100644 libre/filesystem/fstab create mode 100644 libre/filesystem/group create mode 100644 libre/filesystem/gshadow create mode 100644 libre/filesystem/host.conf create mode 100644 libre/filesystem/hosts create mode 100644 libre/filesystem/issue create mode 100644 libre/filesystem/ld.so.conf create mode 100644 libre/filesystem/modprobe.d.usb-load-ehci-first create mode 100644 libre/filesystem/motd create mode 100644 libre/filesystem/nsswitch.conf create mode 100644 libre/filesystem/passwd create mode 100644 libre/filesystem/profile create mode 100644 libre/filesystem/resolv.conf create mode 100644 libre/filesystem/securetty create mode 100644 libre/filesystem/shadow create mode 100644 libre/filesystem/shells create mode 100644 libre/ghostscript-libre/PKGBUILD create mode 100644 libre/ghostscript-libre/gs_bug691759and691760.diff create mode 100644 libre/ghostscript-libre/svn_rev11948.diff create mode 100644 libre/grub2/05_archtheme create mode 100644 libre/grub2/20_memtest86+ create mode 100644 libre/grub2/PKGBUILD create mode 100644 libre/grub2/archlinux_grub2_mkconfig_fixes.patch create mode 100644 libre/grub2/grub.cfg create mode 100644 libre/grub2/grub.default create mode 100644 libre/grub2/grub2.install create mode 100644 libre/gstreamer0.10-bad-libre/PKGBUILD create mode 100644 libre/gstreamer0.10-bad-libre/gstreamer0.10-bad-plugins.install create mode 100644 libre/icecat-i18n/PKGBUILD create mode 100644 libre/icecat/PKGBUILD create mode 100644 libre/icecat/arch-linux-wiki.xml create mode 100644 libre/icecat/duck-duck-go-lite.xml create mode 100644 libre/icecat/duck-duck-go-ssl.xml create mode 100644 libre/icecat/firefox-version.patch create mode 100644 libre/icecat/firefox.js create mode 100644 libre/icecat/icecat-safe.desktop create mode 100644 libre/icecat/icecat.desktop create mode 100644 libre/icecat/icecat.install create mode 100644 libre/icecat/internet-archive.xml create mode 100644 libre/icecat/jamendo-en.xml create mode 100644 libre/icecat/logless-search.xml create mode 100644 libre/icecat/mozconfig create mode 100644 libre/icecat/mozilla-firefox-1.0-lang.patch create mode 100644 libre/icecat/python2.7.patch create mode 100644 libre/icecat/region.properties create mode 100644 libre/icecat/scroogle-ssl-english.xml create mode 100644 libre/icecat/xulrunner-copy-stub.patch create mode 100644 libre/icecat/yacy.xml create mode 100644 libre/initscripts/PKGBUILD create mode 100644 libre/initscripts/initscripts.install create mode 100644 libre/initscripts/parabola-branding.patch create mode 100644 libre/initscripts/wireless.conf.d create mode 100644 libre/kernel26-libre-lts/PKGBUILD create mode 100644 libre/kernel26-libre-lts/config.i686 create mode 100644 libre/kernel26-libre-lts/config.x86_64 create mode 100644 libre/kernel26-libre-lts/kernel26-libre-lts.install create mode 100644 libre/kernel26-libre-lts/kernel26-lts.preset create mode 100644 libre/kernel26-libre-lts/libata-alignment.patch create mode 100644 libre/kernel26-libre-manpages/PKGBUILD create mode 100644 libre/libretools/PKGBUILD create mode 100644 libre/libretools/libretools.install create mode 100644 libre/libui-sh/PKGBUILD create mode 100644 libre/licenses-libre/PKGBUILD create mode 100644 libre/licenses-libre/ZopePublicLicense.txt create mode 100644 libre/licenses-libre/cc-by-3.0.txt create mode 100644 libre/licenses-libre/cc-by-sa-3.0.txt create mode 100644 libre/licenses-libre/cc-readme.txt create mode 100644 libre/licenses-libre/cddl-1.0.txt create mode 100644 libre/licenses-libre/cpl-1.0.txt create mode 100644 libre/licenses-libre/eclipse-1.0.txt create mode 100644 libre/licenses-libre/perlartistic.txt create mode 100644 libre/licenses-libre/python-2.txt create mode 100644 libre/mplayer-libre/PKGBUILD create mode 100644 libre/mplayer-libre/mplayer.desktop create mode 100644 libre/mplayer-libre/mplayer.install create mode 100644 libre/mplayer-libre/mplayer.png create mode 100644 libre/mplayer-vaapi-libre/PKGBUILD create mode 100644 libre/mplayer-vaapi-libre/mplayer-vaapi.install create mode 100644 libre/mplayer-vaapi-libre/mplayer.desktop create mode 100644 libre/mplayer-vaapi-libre/mplayer.png create mode 100644 libre/mplayer-vaapi-libre/patch-fixes.patch create mode 100644 libre/p7zip-libre/9.04-makefile.patch create mode 100644 libre/p7zip-libre/PKGBUILD create mode 100644 libre/pacman-mirrorlist-libre/PKGBUILD create mode 100644 libre/pacman-mirrorlist-libre/mirrorlist create mode 100644 libre/psutils-libre/PKGBUILD create mode 100644 libre/python-reportlab-libre/PKGBUILD create mode 100644 libre/python-reportlab-libre/free-fonts.patch create mode 100644 libre/seamonkey-libre/PKGBUILD create mode 100644 libre/seamonkey-libre/gnuzilla-addons.patch create mode 100644 libre/seamonkey-libre/mozconfig create mode 100644 libre/seamonkey-libre/python27.patch create mode 100644 libre/seamonkey-libre/seamonkey-2.0-lang.patch create mode 100644 libre/seamonkey-libre/seamonkey-appversion.patch create mode 100644 libre/seamonkey-libre/seamonkey.desktop create mode 100644 libre/sqlite3/PKGBUILD create mode 100644 libre/sqlite3/license.txt create mode 100644 libre/thunderbird-libre/PKGBUILD create mode 100644 libre/thunderbird-libre/gnuzilla-addons.patch create mode 100644 libre/thunderbird-libre/mozconfig create mode 100644 libre/thunderbird-libre/python2.7.patch create mode 100644 libre/thunderbird-libre/thunderbird-3.0-lang.patch create mode 100644 libre/thunderbird-libre/thunderbird-appversion.patch create mode 100644 libre/thunderbird-libre/thunderbird-preferences.patch create mode 100644 libre/thunderbird-libre/thunderbird-shared-error.patch create mode 100644 libre/thunderbird-libre/thunderbird.desktop create mode 100644 libre/thunderbird-libre/thunderbird.install create mode 100644 libre/thunderbird-libre/xulrunner-png14.patch create mode 100644 libre/ttf-thai-libre/PKGBUILD create mode 100644 libre/ttf-thai-libre/ttf.install create mode 100644 libre/unrar-libre/PKGBUILD create mode 100644 libre/xchat-libre/ChangeLog create mode 100644 libre/xchat-libre/PKGBUILD create mode 100644 libre/xchat-libre/remove-non-free-suggestion.patch create mode 100644 libre/xorg-fonts-100dpi-libre/PKGBUILD create mode 100644 libre/xorg-fonts-100dpi-libre/xfonts.install create mode 100644 libre/xorg-fonts-75dpi-libre/PKGBUILD create mode 100644 libre/xorg-fonts-75dpi-libre/xfonts.install create mode 100644 libre/xorg-fonts-type1-libre/PKGBUILD create mode 100644 libre/xorg-fonts-type1-libre/xfonts.install create mode 100644 libre/your-freedom/PKGBUILD create mode 100644 libre/your-freedom/your-freedom.install (limited to 'libre') diff --git a/libre/aif-libre/PKGBUILD b/libre/aif-libre/PKGBUILD new file mode 100644 index 000000000..82809afdf --- /dev/null +++ b/libre/aif-libre/PKGBUILD @@ -0,0 +1,37 @@ +# $Id$ +# Maintainer: Dieter Plaetinck + +pkgname=aif-libre +pkgver=2011.02.13 +pkgrel=1 +pkgdesc="The ArchLinux Installation Framework (Parabola Rebranded)" +arch=('any') +url="http://projects.parabolagnulinux.org/aif.git/" +license=('GPL3') +depends=('util-linux-ng' 'bash' 'pacman' 'coreutils' 'grub' 'grep' 'mkinitcpio' 'awk' 'sed' 'libui-sh') +optdepends=('cryptsetup: for encryption support' + 'lvm2: for LVM support' + 'dhcpd: for dhcp networking support' + 'e2fsprogs: Ext support' + 'jfsutils: JFS support' + 'reiserfsprogs: ReiserFS support' + 'xfsprogs: XFS support' + 'ntp: setting date with NTP' + 'dialog: for ncurses support' + ) +replaces=('aif') +conflicts=('aif') +provides=('aif') +source=(http://projects.parabolagnulinux.org/aif.git/snapshot/aif-${pkgver}-parabola.tar.bz2) +md5sums=('8727035c4bbadd24275aa3a27db88643') + +build() { + + cd $srcdir/aif-$pkgver-parabola/ + + make DESTDIR="$pkgdir/" install + +} + +# vim:set ts=2 sw=2 et: + diff --git a/libre/audacious-plugins-libre/PKGBUILD b/libre/audacious-plugins-libre/PKGBUILD new file mode 100644 index 000000000..aca8c9a8d --- /dev/null +++ b/libre/audacious-plugins-libre/PKGBUILD @@ -0,0 +1,83 @@ +# $Id$ +# Contributor: Alexander Fehr +# Contributor: William Rea + +pkgname=audacious-plugins-libre +pkgver=2.4.4 +pkgrel=2 +pkgdesc='Plugins for Audacious without unfree plugins' +arch=('i686' 'x86_64') +url='http://audacious-media-player.org/' +license=('GPL') +provides=("audacious-plugins=$pkgver") +replaces=("${pkgname%-libre}") +conflicts=("${pkgname%-libre}") + +makedepends=("audacious>=${pkgver}" + 'alsa-lib' 'pulseaudio' 'jack' 'lame' 'libvorbis' 'flac' + 'faad2' 'ffmpeg' 'fluidsynth' 'libcdio' 'libsidplay' 'wavpack' + 'libnotify' 'lirc-utils' 'curl' 'libmtp' + 'neon' 'libmms' 'libcue') + +optdepends=('alsa-lib: Advanced Linux Sound Arch. output' + 'pulseaudio: PulseAudio output' + 'jack: Jack Audio Connection Kit output' + 'lame: FileWriter MP3 output' + 'libvorbis: Vorbis input, FileWriter Vorbis output' + 'flac: FLAC input, FileWriter FLAC output' + + 'faad2: AAC input' + 'ffmpeg: ffaudio input' + 'fluidsynth: MIDI FluidSynth backend input' + 'libcdio: CD Digital Audio input' + 'libsidplay: Commodore 64 audio input' + 'wavpack: WavPack input' + + 'libnotify: libnotify OSD' + 'lirc-utils: LIRC' + 'curl: AudioScrobbler Client' + 'libmtp: Upload to MTP device' + + 'neon: neon-based http transport' + 'libmms: libmms-based mms transport' + 'libcue: CUE playlist format') + +source=("http://repo.parabolagnulinux.org/other/$pkgname-$pkgver.tar.gz") + +# Source PKGBUILD and run this function from the shell +mksource(){ + tmpdir=$(mktemp -d /tmp/audacious-XXXX) + pushd $tmpdir >/dev/null + wget "http://distfiles.atheme.org/${pkgname%-libre}-$pkgver.tgz" -O - -q | tar xzf - + + rm -rvf ${pkgname%-libre}-$pkgver/src/{u,p}sf/ + + mv -v ${pkgname%-libre}-$pkgver ${pkgname}-$pkgver + + tar czf ${pkgname}-${pkgver}.tar.gz ${pkgname}-${pkgver}/ + + echo "You can find the sources at $tmpdir" + + popd >/dev/null +} + +build() { + cd "$srcdir/$pkgname-$pkgver" + ./configure \ + --build=$CHOST \ + --host=$CHOST \ + --target=$CHOST \ + --prefix=/usr \ + --enable-chardet \ + --enable-amidiplug \ + --disable-adplug \ + --disable-psf + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir" install +} + +md5sums=('df761a2d07e2ad1221c5fe61fa32dcb0') diff --git a/libre/aufs2-libre/PKGBUILD b/libre/aufs2-libre/PKGBUILD new file mode 100644 index 000000000..7e092717b --- /dev/null +++ b/libre/aufs2-libre/PKGBUILD @@ -0,0 +1,67 @@ +# $Id: PKGBUILD 110689 2011-02-21 15:30:22Z tpowa $ +# Maintainer: Paul Mattal + +pkgname=aufs2-libre +pkgver=2.6.37_20110124 +pkgrel=3 +#_kernver=${pkgver%_*}-LIBRE +_kernver=2.6.37-LIBRE +pkgdesc="Another Unionfs Implementation for the Linux-Libre kernel" +arch=('i686' 'x86_64') +url="http://aufs.sourceforge.net/" +license=('GPL2') +depends=('kernel26-libre>=2.6.37.3' 'kernel26-libre<2.6.38') +makedepends=('kernel26-libre-headers>=2.6.37' 'kernel26-libre-headers<2.6.38') +replaces=('aufs' 'aufs2') +conflicts=('aufs2') +provides=("aufs2=$pkgver") +install=${pkgname}.install +source=("ftp://ftp.archlinux.org/other/aufs2/${pkgname%-libre}-${pkgver}.tar.gz") +options=('!makeflags') + +build() { + cd ${srcdir}/${pkgname%-libre}-${pkgver} + #patch -Np1 -i ../aufs2-module-2.6.36.patch + sed -i 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \ + config.mk || return 1 + sed -i 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \ + config.mk || return 1 + sed -i 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \ + config.mk || return 1 + sed -i 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \ + config.mk || return 1 + sed -i 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \ + config.mk || return 1 + sed -i 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \ + config.mk || return 1 + sed -i 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' \ + config.mk || return 1 + if [ "${CARCH}" = "x86_64" ]; then + inot64=" y" + else + inot64="" + fi + sed -i "s|CONFIG_AUFS_INO_T_64 =.*|CONFIG_AUFS_INO_T_64 =${inot64}|" \ + config.mk + # build, sed fixes are from gentoo portage build + sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile + sed -i "s:__user::g" include/linux/aufs_type.h + make KDIR=/usr/src/linux-${_kernver} +} + +package() { + cd ${srcdir}/${pkgname%-libre}-${pkgver} + install -D -m644 fs/aufs/aufs.ko \ + $pkgdir/lib/modules/${_kernver}/kernel/fs/aufs/aufs.ko + # tweak the install script for the right kernel version + sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" \ + $startdir/$pkgname.install + # install include files + install -D -m 644 include/linux/aufs_type.h $pkgdir/usr/include/linux/aufs_type.h + # gzip -9 all modules to safe 100MB + find "$pkgdir" -name '*.ko' -exec gzip -9 {} \; +} + +md5sums=('fa64d7893490ef9c82310ebd5f730443') + +md5sums=('fa64d7893490ef9c82310ebd5f730443') diff --git a/libre/aufs2-libre/aufs2-libre.install b/libre/aufs2-libre/aufs2-libre.install new file mode 100644 index 000000000..4c95ad76e --- /dev/null +++ b/libre/aufs2-libre/aufs2-libre.install @@ -0,0 +1,12 @@ +post_install() { + KERNEL_VERSION=2.6.37-ARCH + depmod $KERNEL_VERSION +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} diff --git a/libre/aufs2-libre/aufs2-module-2.6.36.patch b/libre/aufs2-libre/aufs2-module-2.6.36.patch new file mode 100644 index 000000000..3b43f7aed --- /dev/null +++ b/libre/aufs2-libre/aufs2-module-2.6.36.patch @@ -0,0 +1,47 @@ +diff --git a/ubuntu/aufs/branch.c b/ubuntu/aufs/branch.c +index cd4463c..ff6b158 100644 +--- a/fs/aufs/branch.c ++++ b/fs/aufs/branch.c +@@ -22,6 +22,8 @@ + + #include + #include ++#include ++#include + #include "aufs.h" + + /* +@@ -851,7 +853,8 @@ static int au_br_mod_files_ro(struct super_block *sb, aufs_bindex_t bindex) + goto out; + + /* no need file_list_lock() since sbinfo is locked? defered? */ +- list_for_each_entry(file, &sb->s_files, f_u.fu_list) { ++ lg_global_lock(files_lglock); ++ do_file_list_for_each_entry(sb, file) { + if (special_file(file->f_dentry->d_inode->i_mode)) + continue; + +@@ -861,6 +864,7 @@ static int au_br_mod_files_ro(struct super_block *sb, aufs_bindex_t bindex) + err = -EBUSY; + FiMustNoWaiters(file); + fi_read_unlock(file); ++ lg_global_unlock(files_lglock); + goto out_free; + } + +@@ -889,10 +893,13 @@ static int au_br_mod_files_ro(struct super_block *sb, aufs_bindex_t bindex) + if (p) { + a = p; + a[n++] = hf; +- } else ++ } else { ++ lg_global_unlock(files_lglock); + goto out_free; ++ } + } +- } ++ } while_file_list_for_each_entry; ++ lg_global_unlock(files_lglock); + + err = 0; + if (n) diff --git a/libre/aufs2-libre/create-tarball.sh b/libre/aufs2-libre/create-tarball.sh new file mode 100644 index 000000000..a460a8b3b --- /dev/null +++ b/libre/aufs2-libre/create-tarball.sh @@ -0,0 +1,14 @@ +#!/bin/sh +AUFS2VERSION="-37" +KERNELVERSION=2.6.37 +GITSNAPSHOT=20110124 +# aufs2 (no -xx) for the latest -rc version. +git clone http://git.c3sl.ufpr.br/pub/scm/aufs/aufs2-standalone.git aufs2-standalone.git +cd aufs2-standalone.git +git checkout origin/aufs2.1${AUFS2VERSION} +#git checkout origin/aufs2.1 +#*** apply "aufs2-base.patch" and "aufs2-standalone.patch" to your kernel source files. +cd .. +rm -rf aufs2-${KERNELVERSION}_${GITSNAPSHOT} +cp -a aufs2-standalone.git aufs2-${KERNELVERSION}_${GITSNAPSHOT} +tar -czf aufs2-${KERNELVERSION}_${GITSNAPSHOT}.tar.gz --exclude=.git aufs2-${KERNELVERSION}_${GITSNAPSHOT} diff --git a/libre/ffmpeg-libre/PKGBUILD b/libre/ffmpeg-libre/PKGBUILD new file mode 100644 index 000000000..dc5725eff --- /dev/null +++ b/libre/ffmpeg-libre/PKGBUILD @@ -0,0 +1,57 @@ +# $Id: PKGBUILD 85265 2010-07-11 10:15:18Z ibiru $ +# Maintainer : Ionut Biru +# Contributor: Tom Newsom +# Contributor: Paul Mattal +# Maintainer for Parabola GNU/Linux: Omar Botta + +pkgname=ffmpeg-libre +pkgver=20110330 +pkgrel=1 +pkgdesc="Complete and free Internet live audio and video broadcasting solution for Linux/Unix. Libre version without faac" +arch=('i686' 'x86_64') +url="http://ffmpeg.org/" +license=('GPL') +depends=('bzip2' 'lame' 'sdl' 'libvorbis' 'xvidcore' 'zlib' 'x264' 'libtheora' 'opencore-amr' 'alsa-lib' 'libvdpau' 'libxfixes' 'schroedinger' 'libvpx' 'libva' 'openjpeg') +makedepends=('yasm' 'git') +#git clone git://git.videolan.org/ffmpeg.git +source=(ftp://ftp.archlinux.org/other/ffmpeg/ffmpeg-${pkgver}.tar.xz) +md5sums=('dd682a876a496b9f9ae8afb3b3b70389') +#source=(http://ffmpeg.org/releases//releases/ffmpeg-${pkgver}.tar.bz2) +provides=('ffmpeg') +conflicts=('ffmpeg') +replaces=("ffmpeg=$pkgver") + +build() { + cd "$srcdir/${pkgname%-libre}" + + ./configure \ + --prefix=/usr \ + --enable-gpl \ + --enable-libmp3lame \ + --enable-libvorbis \ + --disable-libfaac \ + --enable-libxvid \ + --enable-libx264 \ + --enable-libvpx \ + --enable-libtheora \ + --enable-postproc \ + --enable-shared \ + --enable-x11grab \ + --enable-libopencore_amrnb \ + --enable-libopencore_amrwb \ + --enable-libschroedinger \ + --enable-libopenjpeg \ + --enable-version3 \ + --disable-nonfree \ + --enable-runtime-cpudetect \ + --disable-debug # libfaac is nonfree + + make + make tools/qt-faststart + make doc/ff{mpeg,play,server}.1 + + make DESTDIR="$pkgdir" install install-man + install -D -m755 tools/qt-faststart "$pkgdir/usr/bin/qt-faststart" +} + +# vim:set ts=2 sw=2 et: diff --git a/libre/filesystem/PKGBUILD b/libre/filesystem/PKGBUILD new file mode 100644 index 000000000..bdfbee155 --- /dev/null +++ b/libre/filesystem/PKGBUILD @@ -0,0 +1,95 @@ +# $Id: PKGBUILD 103015 2010-12-14 07:09:05Z pierre $ +# Maintainer: Pierre Schmitz +# Maintainer (Parabola): fauno + +pkgname=filesystem +pkgver=2010.12 +pkgrel=2 +pkgdesc='Base filesystem for Parabola' +arch=('any') +license=('GPL') +url='http://parabolagnulinux.org' +groups=('base') +install='filesystem.install' +depends=('iana-etc' 'bash' 'coreutils') +backup=('etc/fstab' 'etc/crypttab' 'etc/group' 'etc/hosts' 'etc/ld.so.conf' 'etc/passwd' + 'etc/shadow' 'etc/gshadow' 'etc/resolv.conf' 'etc/motd' 'etc/nsswitch.conf' + 'etc/shells' 'etc/host.conf' 'etc/securetty' 'etc/profile' 'etc/issue') +source=('group' 'issue' 'nsswitch.conf' 'securetty' 'host.conf' 'ld.so.conf' + 'passwd' 'shadow' 'fstab' 'crypttab' 'hosts' 'motd' 'resolv.conf' 'shells' + 'gshadow' 'profile' 'modprobe.d.usb-load-ehci-first') +md5sums=('75c7e1770305e1f3b75c52785c137611' + '140787c0dc6f3f1272cfd381b92b0155' + '13753e4e0964f3652b0cc60a28528bdf' + '4c4540eeb748bf1f71d631b8c1dcf0b3' + 'f28150d4c0b22a017be51b9f7f9977ed' + '6e488ffecc8ba142c0cf7e2d7aeb832e' + '8a9042a2cedf6b6b47eb8973f14289cb' + 'b8355d9d2782f424f4cedcf682651be0' + 'ef40305da5803ca69d22e428ffc2ab9b' + 'e5d8323a4dbee7a6d0d2a19cbf4b819f' + '7bc65f234dfb6abf24e7c3b03e86f4ff' + 'd41d8cd98f00b204e9800998ecf8427e' + '6f48288b6fcaf0065fcb7b0e525413e0' + '40dac0de4c6b99c8ca97effbd7527c84' + '59768b5f4080b96b67bcde5f66984ad5' + '51ac5c337236235bf8fe85a9b07b6db1' + '8098ffd9fbf890468d3198277596b85a') + +package() { + cd ${srcdir} + + # + # setup root filesystem + # + for d in bin boot dev etc home lib/modules media mnt sbin usr var opt srv/http sys; do + install -d -m755 ${pkgdir}/${d} + done + install -d -m555 ${pkgdir}/proc + install -d -m0750 ${pkgdir}/root + install -d -m1777 ${pkgdir}/tmp + # vsftpd won't run with write perms on /srv/ftp + install -d -m555 -g ftp ${pkgdir}/srv/ftp + + # setup /etc + install -d ${pkgdir}/etc/{ld.so.conf.d,skel,profile.d} + for f in fstab group host.conf hosts issue ld.so.conf motd nsswitch.conf passwd resolv.conf securetty shells profile; do + install -m644 ${srcdir}/${f} ${pkgdir}/etc/ + done + for f in gshadow shadow crypttab; do + install -m600 ${srcdir}/${f} ${pkgdir}/etc/ + done + touch ${pkgdir}/etc/arch-release + install -D -m644 ${srcdir}/modprobe.d.usb-load-ehci-first ${pkgdir}/etc/modprobe.d/usb-load-ehci-first.conf + + # setup /var + for d in cache/man local opt run log/old lib/misc empty; do + install -d -m755 ${pkgdir}/var/${d} + done + install -d -m1777 ${pkgdir}/var/{lock,tmp,spool/mail} + # allow setgid games to write scores + install -d -m775 -g games ${pkgdir}/var/games + ln -s spool/mail ${pkgdir}/var/mail + # prevent pacman from removing directory (FS#16886) + touch ${pkgdir}/var/empty/.keep + + + # + # setup /usr hierarchy + # + for d in bin include lib sbin share/misc src; do + install -d -m755 ${pkgdir}/usr/${d} + done + for d in $(seq 8); do + install -d -m755 ${pkgdir}/usr/share/man/man${d} + done + + + # + # setup /usr/local hierarchy + # + for d in bin etc games include lib man sbin share src; do + install -d -m755 ${pkgdir}/usr/local/${d} + done + ln -s ../man ${pkgdir}/usr/local/share/man +} diff --git a/libre/filesystem/crypttab b/libre/filesystem/crypttab new file mode 100644 index 000000000..dd6994b5a --- /dev/null +++ b/libre/filesystem/crypttab @@ -0,0 +1,33 @@ +# crypttab: Mappings for encrypted partitions +# +# Each mapped device will be created in /dev/mapper, so your /etc/fstab +# should use the /dev/mapper/{NAME} paths for encrypted devices. +# +# Each PASSWORD field can be an absolute pathname to a key file (starting +# with a slash, recommended) or a literal string that will be used as +# a passphrase. To use special characters in the passphrase, surround it +# by quotes, the usual bash quoting rules apply. +# There are two special keywords that cannot be used as passphrases: +# - ASK ask for a passphrase on boot +# - SWAP use a random key and create a swapspace afterwards +# WARNING: use the SWAP keyword carefully, as it overwrites the data +# on the specified partition +# +# To create a key file: +# hashalot -n 32 ripemd160 >/etc/crytfs.key +# or +# dd if=/dev/urandom of=/etc/cryptfs.key bs=256 count=1 +# +# To pass additional options to cryptsetup for non-LUKS partitions, use the +# fourth column. +# +# NOTE: Do not list your root (/) partition here, it must be set up +# beforehand by the initramfs (/etc/mkinitcpio.conf). + + +# NAME SOURCE DEVICE PASSWORD OPTIONS +#home /dev/hda4 mypassword +#data1 /dev/hda3 "my \"password\"" +#data2 /dev/hda5 /etc/cryptfs.key +#swap /dev/hdx4 SWAP -c aes-cbc-essiv:sha256 -s 256 +#vol /dev/hdb7 ASK diff --git a/libre/filesystem/filesystem.install b/libre/filesystem/filesystem.install new file mode 100644 index 000000000..4b2b261a4 --- /dev/null +++ b/libre/filesystem/filesystem.install @@ -0,0 +1,59 @@ +post_install() { + [ -f var/log/lastlog ] || : >var/log/lastlog + [ -f var/log/wtmp ] || : >var/log/wtmp + [ -f var/run/utmp ] || : >var/run/utmp + [ -f var/log/btmp ] || (: >var/log/btmp && bin/chmod 600 var/log/btmp) + # workaround for bug #7194 + # readded due to bug #9465 + # please do not remove! + bin/chmod 1777 var/spool/mail tmp var/tmp var/lock +} + +# args: [options] +_addgroup() { + if ! bin/grep -q "^$1:" etc/group; then + usr/sbin/groupadd ${@} >/dev/null + fi +} + +# args: [options] +_adduser() { + if ! bin/grep -q "^$1:" etc/passwd; then + usr/sbin/useradd ${@} >/dev/null + fi +} + +post_upgrade() { + post_install + + _addgroup optical -g 93 + _addgroup audio -g 92 + _addgroup video -g 91 + _addgroup floppy -g 94 + _addgroup storage -g 95 + _addgroup log -g 19 + _addgroup power -g 98 + _addgroup network -g 90 + _addgroup games -g 50 + _addgroup uucp -g 14 + _addgroup http -g 33 + _adduser http -u 33 -d /srv/http -g http -s /bin/false http + _addgroup scanner -g 96 + _addgroup rfkill -g 24 + + # sync gshadow to group (fixes FS#19869 + if ! bin/grep -q '^rfkill:' etc/gshadow; then + usr/sbin/grpconv >/dev/null + fi + + if ! bin/grep -q '^include /etc/ld.so.conf.d/\*.conf$' etc/ld.so.conf; then + bin/echo 'include /etc/ld.so.conf.d/*.conf' >> etc/ld.so.conf + fi + + # set "Last password change" > 0; otherwise su $user wont work + for user in bin daemon mail ftp http nobody; do + if LANG=C usr/bin/chage -l ${user} | bin/grep -q 'password must be changed'; then + usr/bin/chage -d 14871 ${user} + fi + done +} diff --git a/libre/filesystem/fstab b/libre/filesystem/fstab new file mode 100644 index 000000000..a23e7955b --- /dev/null +++ b/libre/filesystem/fstab @@ -0,0 +1,6 @@ +# +# /etc/fstab: static file system information +# +# +devpts /dev/pts devpts defaults 0 0 +shm /dev/shm tmpfs nodev,nosuid 0 0 diff --git a/libre/filesystem/group b/libre/filesystem/group new file mode 100644 index 000000000..4bd635c47 --- /dev/null +++ b/libre/filesystem/group @@ -0,0 +1,30 @@ +root:x:0:root +bin:x:1:root,bin,daemon +daemon:x:2:root,bin,daemon +sys:x:3:root,bin +adm:x:4:root,daemon +tty:x:5: +disk:x:6:root +lp:x:7:daemon +mem:x:8: +kmem:x:9: +wheel:x:10:root +ftp:x:11: +mail:x:12: +uucp:x:14: +log:x:19:root +locate:x:21: +rfkill:x:24: +smmsp:x:25: +http:x:33: +games:x:50: +network:x:90: +video:x:91: +audio:x:92: +optical:x:93: +floppy:x:94: +storage:x:95: +scanner:x:96: +power:x:98: +nobody:x:99: +users:x:100: diff --git a/libre/filesystem/gshadow b/libre/filesystem/gshadow new file mode 100644 index 000000000..06b488fe9 --- /dev/null +++ b/libre/filesystem/gshadow @@ -0,0 +1,30 @@ +root:::root +bin:::root,bin,daemon +daemon:::root,bin,daemon +sys:::root,bin +adm:::root,daemon +tty::: +disk:::root +lp:::daemon +mem::: +kmem::: +wheel:::root +ftp::: +mail::: +uucp::: +log:::root +locate::: +rfkill:x:: +smmsp::: +http::: +games::: +network:x:: +video:x:: +audio::: +optical::: +floppy:x:: +storage:x:: +scanner:x:: +power:x:: +nobody::: +users::: diff --git a/libre/filesystem/host.conf b/libre/filesystem/host.conf new file mode 100644 index 000000000..cf52fe561 --- /dev/null +++ b/libre/filesystem/host.conf @@ -0,0 +1,8 @@ +# +# /etc/host.conf +# + +order hosts,bind +multi on + +# End of file diff --git a/libre/filesystem/hosts b/libre/filesystem/hosts new file mode 100644 index 000000000..1747f9196 --- /dev/null +++ b/libre/filesystem/hosts @@ -0,0 +1,9 @@ +# +# /etc/hosts: static lookup table for host names +# + +# +127.0.0.1 localhost.localdomain localhost +::1 localhost.localdomain localhost + +# End of file diff --git a/libre/filesystem/issue b/libre/filesystem/issue new file mode 100644 index 000000000..323abdbf7 --- /dev/null +++ b/libre/filesystem/issue @@ -0,0 +1,3 @@ + +Parabola GNU/Linux-libre \r (\n) (\l) + diff --git a/libre/filesystem/ld.so.conf b/libre/filesystem/ld.so.conf new file mode 100644 index 000000000..dfac45683 --- /dev/null +++ b/libre/filesystem/ld.so.conf @@ -0,0 +1,7 @@ +# +# /etc/ld.so.conf +# + +include /etc/ld.so.conf.d/*.conf + +# End of file diff --git a/libre/filesystem/modprobe.d.usb-load-ehci-first b/libre/filesystem/modprobe.d.usb-load-ehci-first new file mode 100644 index 000000000..3b5db0e7a --- /dev/null +++ b/libre/filesystem/modprobe.d.usb-load-ehci-first @@ -0,0 +1,2 @@ +install ohci_hcd /sbin/modprobe ehci_hcd ; /sbin/modprobe --ignore-install ohci_hcd $CMDLINE_OPTS +install uhci_hcd /sbin/modprobe ehci_hcd ; /sbin/modprobe --ignore-install uhci_hcd $CMDLINE_OPTS diff --git a/libre/filesystem/motd b/libre/filesystem/motd new file mode 100644 index 000000000..e69de29bb diff --git a/libre/filesystem/nsswitch.conf b/libre/filesystem/nsswitch.conf new file mode 100644 index 000000000..6e459adb6 --- /dev/null +++ b/libre/filesystem/nsswitch.conf @@ -0,0 +1,19 @@ +# Begin /etc/nsswitch.conf + +passwd: files +group: files +shadow: files + +publickey: files + +hosts: files dns +networks: files + +protocols: files +services: files +ethers: files +rpc: files + +netgroup: files + +# End /etc/nsswitch.conf diff --git a/libre/filesystem/passwd b/libre/filesystem/passwd new file mode 100644 index 000000000..a4a24e34f --- /dev/null +++ b/libre/filesystem/passwd @@ -0,0 +1,7 @@ +root:x:0:0:root:/root:/bin/bash +bin:x:1:1:bin:/bin:/bin/false +daemon:x:2:2:daemon:/sbin:/bin/false +mail:x:8:12:mail:/var/spool/mail:/bin/false +ftp:x:14:11:ftp:/srv/ftp:/bin/false +http:x:33:33:http:/srv/http:/bin/false +nobody:x:99:99:nobody:/:/bin/false diff --git a/libre/filesystem/profile b/libre/filesystem/profile new file mode 100644 index 000000000..ccc07a4e5 --- /dev/null +++ b/libre/filesystem/profile @@ -0,0 +1,27 @@ +# /etc/profile + +#Set our umask +umask 022 + +# Set our default path +PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin" +export PATH + +# Load profiles from /etc/profile.d +if test -d /etc/profile.d/; then + for profile in /etc/profile.d/*.sh; do + test -r $profile && . $profile + done + unset profile +fi + +# Source global bash config +if test "$PS1" && test "$BASH" && test -r /etc/bash.bashrc; then + . /etc/bash.bashrc +fi + +# Termcap is outdated, old, and crusty, kill it. +unset TERMCAP + +# Man is much better than us at figuring this out +unset MANPATH diff --git a/libre/filesystem/resolv.conf b/libre/filesystem/resolv.conf new file mode 100644 index 000000000..cecafba03 --- /dev/null +++ b/libre/filesystem/resolv.conf @@ -0,0 +1,8 @@ +# +# /etc/resolv.conf +# + +#search +#nameserver + +# End of file diff --git a/libre/filesystem/securetty b/libre/filesystem/securetty new file mode 100644 index 000000000..5a2235ce7 --- /dev/null +++ b/libre/filesystem/securetty @@ -0,0 +1,15 @@ +# +# /etc/securetty +# + +console +tty1 +tty2 +tty3 +tty4 +tty5 +tty6 +ttyS0 +hvc0 + +# End of file diff --git a/libre/filesystem/shadow b/libre/filesystem/shadow new file mode 100644 index 000000000..ccab68d33 --- /dev/null +++ b/libre/filesystem/shadow @@ -0,0 +1,7 @@ +root::14871:::::: +bin:x:14871:::::: +daemon:x:14871:::::: +mail:x:14871:::::: +ftp:x:14871:::::: +http:x:14871:::::: +nobody:x:14871:::::: diff --git a/libre/filesystem/shells b/libre/filesystem/shells new file mode 100644 index 000000000..ff9e38348 --- /dev/null +++ b/libre/filesystem/shells @@ -0,0 +1,9 @@ +# +# /etc/shells +# + +/bin/sh +/bin/bash +/bin/dash + +# End of file diff --git a/libre/ghostscript-libre/PKGBUILD b/libre/ghostscript-libre/PKGBUILD new file mode 100644 index 000000000..4c2e4f7ec --- /dev/null +++ b/libre/ghostscript-libre/PKGBUILD @@ -0,0 +1,67 @@ +# $Id$ +# Maintainer: AndyRTR +# Maintainer (Parabola): xihh + +pkgname=ghostscript-libre +pkgver=9.02 +pkgrel=1 +pkgdesc="An interpreter for the PostScript language without non-free files" +arch=('i686' 'x86_64') +license=('GPL3') #non free files removed +depends=('libxt' 'libcups' 'fontconfig' 'jasper' 'zlib' 'libpng' 'libjpeg' 'libtiff') +makedepends=('gtk2' 'gnutls') +optdepends=('texlive-core: needed for dvipdf' + 'gtk2: needed for gsx') +conflicts=('ghostscript') +replaces=('ghostscript-lrpng' 'ghostscript') +provides=('ghostscript-lprng' "ghostscript=$pkgver") +url="http://www.ghostscript.com/" +source=(http://downloads.ghostscript.com/public/ghostscript-${pkgver}.tar.bz2) +options=('!libtool' '!makeflags') +md5sums=('f67151444bd56a7904579fc75a083dd6') + +build() { + cd ${srcdir}/ghostscript-${pkgver} + + # force it to use system-libs + rm -rf jpeg libpng zlib jasper expat tiff + # delete non-free packages + grep -l "are not altered" Resource/CMap/* | xargs rm -fv + + ./configure --prefix=/usr \ + --enable-dynamic \ + --with-ijs \ + --with-jbig2dec \ + --with-omni \ + --with-x \ + --with-drivers=ALL\ + --with-fontpath=/usr/share/fonts/Type1:/usr/share/fonts \ + --disable-compile-inits # needed for linking with system-zlib + make + + # Build IJS + cd ${srcdir}/ghostscript-${pkgver}/ijs + ./autogen.sh + ./configure --prefix=/usr --enable-shared --disable-static + make +} + +package() { + cd ${srcdir}/ghostscript-${pkgver} + make DESTDIR=${pkgdir} \ + cups_serverroot=${pkgdir}/etc/cups \ + cups_serverbin=${pkgdir}/usr/lib/cups install soinstall + + # install missing doc files # http://bugs.archlinux.org/task/18023 + install -m 644 ${srcdir}/ghostscript-${pkgver}/doc/{Ps2ps2.htm,gs-vms.hlp,gsdoc.el,pscet_status.txt} ${pkgdir}/usr/share/ghostscript/$pkgver/doc/ + + mkdir -p ${pkgdir}/usr/share/licenses/${pkgname} + install -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/ + + # remove unwanted localized man-pages + rm -rf $pkgdir/usr/share/man/[^man1]* + + # install IJS + cd ${srcdir}/ghostscript-${pkgver}/ijs + make DESTDIR=${pkgdir} install +} diff --git a/libre/ghostscript-libre/gs_bug691759and691760.diff b/libre/ghostscript-libre/gs_bug691759and691760.diff new file mode 100644 index 000000000..ca394427a --- /dev/null +++ b/libre/ghostscript-libre/gs_bug691759and691760.diff @@ -0,0 +1,215 @@ +Modified: trunk/gs/base/gdevnfwd.c +=================================================================== +--- trunk/gs/base/gdevnfwd.c 2011-01-06 23:48:14 UTC (rev 12004) ++++ trunk/gs/base/gdevnfwd.c 2011-01-07 04:49:42 UTC (rev 12005) +@@ -1117,3 +1117,29 @@ + { + return 0; + } ++ ++bool ++fwd_uses_fwd_cmap_procs(gx_device * dev) ++{ ++ const gx_cm_color_map_procs *pprocs; ++ ++ pprocs = dev_proc(dev, get_color_mapping_procs)(dev); ++ if (pprocs == &FwdDevice_cm_map_procs) { ++ return true; ++ } ++ return false; ++} ++ ++const gx_cm_color_map_procs* ++fwd_get_target_cmap_procs(gx_device * dev) ++{ ++ const gx_cm_color_map_procs *pprocs; ++ gx_device_forward * const fdev = (gx_device_forward *)dev; ++ gx_device * const tdev = fdev->target; ++ ++ pprocs = dev_proc(tdev, get_color_mapping_procs(tdev)); ++ while (pprocs == &FwdDevice_cm_map_procs) { ++ pprocs = fwd_get_target_cmap_procs(tdev); ++ } ++ return pprocs; ++} +\ No newline at end of file + +Modified: trunk/gs/base/gdevp14.c +=================================================================== +--- trunk/gs/base/gdevp14.c 2011-01-06 23:48:14 UTC (rev 12004) ++++ trunk/gs/base/gdevp14.c 2011-01-07 04:49:42 UTC (rev 12005) +@@ -900,7 +900,11 @@ + nos->parent_color_info_procs->num_components, 1, + false, false, true, tos->planestride, + tos->rowstride, num_rows, num_cols); +- /* Transform the data */ ++ /* Transform the data. Since the pdf14 device should be ++ using RGB, CMYK or Gray buffers, this transform ++ does not need to worry about the cmap procs of ++ the target device. Those are handled when we do ++ the pdf14 put image operation */ + gscms_transform_color_buffer(icc_link, &input_buff_desc, + &output_buff_desc, tos->data, + new_data_buf); + +Modified: trunk/gs/base/gxcmap.c +=================================================================== +--- trunk/gs/base/gxcmap.c 2011-01-06 23:48:14 UTC (rev 12004) ++++ trunk/gs/base/gxcmap.c 2011-01-07 04:49:42 UTC (rev 12005) +@@ -31,6 +31,7 @@ + #include "gsicc_manage.h" + #include "gdevdevn.h" + #include "gsicc_cache.h" ++#include "gscms.h" + + /* Structure descriptor */ + public_st_device_color(); +@@ -1744,3 +1745,37 @@ + + } + } ++ ++bool ++gx_device_uses_std_cmap_procs(gx_device * dev) ++{ ++ const gx_cm_color_map_procs *pprocs; ++ ++ if (dev->device_icc_profile != NULL) { ++ pprocs = dev_proc(dev, get_color_mapping_procs)(dev); ++ /* Check if they are forwarding procs */ ++ if (fwd_uses_fwd_cmap_procs(dev)) { ++ pprocs = fwd_get_target_cmap_procs(dev); ++ } ++ switch(dev->device_icc_profile->data_cs) { ++ case gsGRAY: ++ if (pprocs == &DeviceGray_procs) { ++ return true; ++ } ++ break; ++ case gsRGB: ++ if (pprocs == &DeviceRGB_procs) { ++ return true; ++ } ++ break; ++ case gsCMYK: ++ if (pprocs == &DeviceCMYK_procs) { ++ return true; ++ } ++ break; ++ default: ++ break; ++ } ++ } ++ return false; ++} + +Modified: trunk/gs/base/gxcmap.h +=================================================================== +--- trunk/gs/base/gxcmap.h 2011-01-06 23:48:14 UTC (rev 12004) ++++ trunk/gs/base/gxcmap.h 2011-01-07 04:49:42 UTC (rev 12005) +@@ -284,5 +284,11 @@ + * [0,1] + */ + frac gx_unit_frac(float fvalue); ++/* Determine if the device is using the standard color mapping procs. In ++ such a case, we can make use of the faster icc color conversions for ++ images */ ++bool gx_device_uses_std_cmap_procs(gx_device * dev); ++bool fwd_uses_fwd_cmap_procs(gx_device * dev); ++const gx_cm_color_map_procs* fwd_get_target_cmap_procs(gx_device * dev); + + #endif /* gxcmap_INCLUDED */ + +Modified: trunk/gs/base/gxi12bit.c +=================================================================== +--- trunk/gs/base/gxi12bit.c 2011-01-06 23:48:14 UTC (rev 12004) ++++ trunk/gs/base/gxi12bit.c 2011-01-07 04:49:42 UTC (rev 12005) +@@ -113,6 +113,8 @@ + irender_proc_t + gs_image_class_2_fracs(gx_image_enum * penum) + { ++ bool std_cmap_procs; ++ + if (penum->bps > 8) { + if (penum->use_mask_color) { + /* Convert color mask values to fracs. */ +@@ -122,9 +124,14 @@ + penum->mask_color.values[i] = + bits2frac(penum->mask_color.values[i], 12); + } ++ /* If the device has some unique color mapping procs due to its color space, ++ then we will need to use those and go through pixel by pixel instead ++ of blasting through buffers. This is true for example with many of ++ the color spaces for CUPs */ ++ std_cmap_procs = gx_device_uses_std_cmap_procs(penum->dev); + if ( (gs_color_space_get_index(penum->pcs) == gs_color_space_index_DeviceN && + penum->pcs->cmm_icc_profile_data == NULL) || penum->use_mask_color || +- penum->bps != 16 || ++ penum->bps != 16 || !std_cmap_procs || + gs_color_space_get_index(penum->pcs) == gs_color_space_index_DevicePixel) { + /* DevicePixel color space used in mask from 3x type. Basically + a simple color space that just is scaled to the device bit + +Modified: trunk/gs/base/gxicolor.c +=================================================================== +--- trunk/gs/base/gxicolor.c 2011-01-06 23:48:14 UTC (rev 12004) ++++ trunk/gs/base/gxicolor.c 2011-01-07 04:49:42 UTC (rev 12005) +@@ -97,6 +97,8 @@ + irender_proc_t + gs_image_class_4_color(gx_image_enum * penum) + { ++ bool std_cmap_procs; ++ + if (penum->use_mask_color) { + /* + * Scale the mask colors to match the scaling of each sample to +@@ -128,8 +130,14 @@ + penum->mask_color.mask = 0; + penum->mask_color.test = ~0; + } ++ /* If the device has some unique color mapping procs due to its color space, ++ then we will need to use those and go through pixel by pixel instead ++ of blasting through buffers. This is true for example with many of ++ the color spaces for CUPs */ ++ std_cmap_procs = gx_device_uses_std_cmap_procs(penum->dev); + if ( (gs_color_space_get_index(penum->pcs) == gs_color_space_index_DeviceN && +- penum->pcs->cmm_icc_profile_data == NULL) || penum->use_mask_color ) { ++ penum->pcs->cmm_icc_profile_data == NULL) || penum->use_mask_color || ++ !std_cmap_procs) { + return &image_render_color_DeviceN; + } else { + /* Set up the link now */ + +Modified: trunk/gs/base/gxiscale.c +=================================================================== +--- trunk/gs/base/gxiscale.c 2011-01-06 23:48:14 UTC (rev 12004) ++++ trunk/gs/base/gxiscale.c 2011-01-07 04:49:42 UTC (rev 12005) +@@ -104,6 +104,13 @@ + != penum->dev->color_info.num_components) { + use_icc = false; + } ++ /* If the device has some unique color mapping procs due to its color space, ++ then we will need to use those and go through pixel by pixel instead ++ of blasting through buffers. This is true for example with many of ++ the color spaces for CUPs */ ++ if(!gx_device_uses_std_cmap_procs(penum->dev)) { ++ use_icc = false; ++ } + /* + * USE_CONSERVATIVE_INTERPOLATION_RULES is normally NOT defined since + * the MITCHELL digital filter seems OK as long as we are going out to + +Modified: trunk/gs/base/lib.mak +=================================================================== +--- trunk/gs/base/lib.mak 2011-01-06 23:48:14 UTC (rev 12004) ++++ trunk/gs/base/lib.mak 2011-01-07 04:49:42 UTC (rev 12005) +@@ -602,7 +602,7 @@ + $(gxalpha_h) $(gxcspace_h) $(gxfarith_h) $(gxfrac_h)\ + $(gxdcconv_h) $(gxdevice_h) $(gxcmap_h) $(gsnamecl_h) $(gxlum_h)\ + $(gzstate_h) $(gxdither_h) $(gxcdevn_h) $(string__h)\ +- $(gsicc_manage_h) $(gdevdevn_h) $(gsicc_cache_h) ++ $(gsicc_manage_h) $(gdevdevn_h) $(gsicc_cache_h) $(gscms_h) + $(GLCC) $(GLO_)gxcmap.$(OBJ) $(C_) $(GLSRC)gxcmap.c + + $(GLOBJ)gxcpath.$(OBJ) : $(GLSRC)gxcpath.c $(GXERR)\ + diff --git a/libre/ghostscript-libre/svn_rev11948.diff b/libre/ghostscript-libre/svn_rev11948.diff new file mode 100644 index 000000000..92abb0d98 --- /dev/null +++ b/libre/ghostscript-libre/svn_rev11948.diff @@ -0,0 +1,16 @@ +Modified: trunk/gs/base/gximag3x.c +=================================================================== +--- trunk/gs/base/gximag3x.c 2010-12-10 19:50:53 UTC (rev 11947) ++++ trunk/gs/base/gximag3x.c 2010-12-11 23:02:25 UTC (rev 11948) +@@ -241,7 +241,9 @@ + const gs_image3x_mask_t *pixm = + (i == 0 ? &pim->Opacity : &pim->Shape); + +- *(gs_data_image_t *)&mask[i].image = pixm->MaskDict; ++ /* Use memcpy because direct assignment breaks ANSI aliasing */ ++ /* rules and causes SEGV with gcc 4.5.1 */ ++ memcpy(&mask[i].image, &pixm->MaskDict, sizeof(pixm->MaskDict)); + mask[i].image.type = type1; + mask[i].image.BitsPerComponent = pixm->MaskDict.BitsPerComponent; + } + diff --git a/libre/grub2/05_archtheme b/libre/grub2/05_archtheme new file mode 100644 index 000000000..4d1b6fb20 --- /dev/null +++ b/libre/grub2/05_archtheme @@ -0,0 +1,6 @@ +#!/bin/bash -e + +cat << EOF +set menu_color_normal=light-blue/black +set menu_color_highlight=light-cyan/blue +EOF diff --git a/libre/grub2/20_memtest86+ b/libre/grub2/20_memtest86+ new file mode 100644 index 000000000..41ca11f02 --- /dev/null +++ b/libre/grub2/20_memtest86+ @@ -0,0 +1,27 @@ +#! /bin/sh -e +######################################################## +# This script generates a memtest86+ entry on grub.cfg # +# if memtest is installed on the system. # +######################################################## + +prefix=/usr +exec_prefix=${prefix} +libdir=${exec_prefix}/lib + +. ${libdir}/grub/grub-mkconfig_lib + +MEMTEST86_IMAGE="/boot/memtest86+/memtest.bin" +CLASS="--class memtest86 --class gnu --class tool" + +if [ -e $MEMTEST86_IMAGE ] && is_path_readable_by_grub $MEMTEST86_IMAGE; then + # image exists, create menu entry + echo "Found memtest86+ image: $MEMTEST86_IMAGE" >&2 + cat << EOF +menuentry "Memory test (memtest86+)" $CLASS { +EOF + prepare_grub_to_access_device `${grub_probe} --target=device $MEMTEST86_IMAGE` | sed -e "s/^/ /" + cat << EOF + linux16 (\$root)`make_system_path_relative_to_its_root $MEMTEST86_IMAGE` +} +EOF +fi diff --git a/libre/grub2/PKGBUILD b/libre/grub2/PKGBUILD new file mode 100644 index 000000000..6d884dcea --- /dev/null +++ b/libre/grub2/PKGBUILD @@ -0,0 +1,204 @@ +# Maintainer: Ronald van Haren +# Contributor: Keshav P R + +# _grub2_rev=3072 + +_grub2_lua_ver=19 +_grub2_gpxe_ver=12 +_grub2_ntldr_ver=13 +_grub2_915_ver=6 + +pkgname=('grub2-common' 'grub2-bios' 'grub2-efi-i386') +pkgbase="grub2" +pkgver='1.99~rc1' +pkgrel=4 +url="http://www.gnu.org/software/grub/" +arch=('i686' 'x86_64') +license=('GPL3') +makedepends=('bdf-unifont' 'python2' 'xz' 'autogen' 'texinfo' 'help2man' 'gettext' 'device-mapper') +options=(strip purge docs zipman !emptydirs) + +source=("ftp://alpha.gnu.org/gnu/grub/grub-${pkgver}.tar.gz" + "ftp://ftp.archlinux.org/other/grub2/grub2_extras_lua_r${_grub2_lua_ver}.tar.xz" + "ftp://ftp.archlinux.org/other/grub2/grub2_extras_gpxe_r${_grub2_gpxe_ver}.tar.xz" + "ftp://ftp.archlinux.org/other/grub2/grub2_extras_ntldr-img_r${_grub2_ntldr_ver}.tar.xz" + "ftp://ftp.archlinux.org/other/grub2/grub2_extras_915resolution_r${_grub2_915_ver}.tar.xz" + 'archlinux_grub2_mkconfig_fixes.patch' + 'grub.default' + 'grub.cfg' + '20_memtest86+' + '05_archtheme') + +noextract=("grub2_extras_lua_r${_grub2_lua_ver}.tar.xz" + "grub2_extras_gpxe_r${_grub2_gpxe_ver}.tar.xz" + "grub2_extras_ntldr-img_r${_grub2_ntldr_ver}.tar.xz" + "grub2_extras_915resolution_r${_grub2_915_ver}.tar.xz") + + +build() { + # set architecture dependent variables + if [ "${CARCH}" = "x86_64" ] ; then + _EFIEMU="--enable-efiemu" + else + _EFIEMU="--disable-efiemu" + fi + _HOST="${CARCH}" + + build_grub2-common_and_bios + build_grub2-efi +} + +build_grub2-common_and_bios() { + # copy the source for building the common/bios package + cp -r ${srcdir}/grub-${pkgver} ${srcdir}/grub2_bios-${pkgver} + + ## Apply Archlinux specific fixes to enable grub2-mkconfig detect Arch kernels and initramfs + cd ${srcdir}/grub2_bios-${pkgver} + patch -Np1 -i ${srcdir}/archlinux_grub2_mkconfig_fixes.patch + + # add the grub-extra sources + export GRUB_CONTRIB=${srcdir}/grub2_bios-${pkgver}/grub2-extras/ + install -d ${srcdir}/grub2_bios-${pkgver}/grub2-extras + bsdtar xf ${srcdir}/grub2_extras_lua_r${_grub2_lua_ver}.tar.xz \ + -C ${srcdir}/grub2_bios-${pkgver}/grub2-extras + bsdtar xf ${srcdir}/grub2_extras_gpxe_r${_grub2_gpxe_ver}.tar.xz \ + -C ${srcdir}/grub2_bios-${pkgver}/grub2-extras + bsdtar xf ${srcdir}/grub2_extras_ntldr-img_r${_grub2_ntldr_ver}.tar.xz \ + -C ${srcdir}/grub2_bios-${pkgver}/grub2-extras + bsdtar xf ${srcdir}/grub2_extras_915resolution_r${_grub2_915_ver}.tar.xz \ + -C ${srcdir}/grub2_bios-${pkgver}/grub2-extras + + ## Need to use python2 + sed -i 's|python|python2|' ${srcdir}/grub2_bios-${pkgver}/autogen.sh + + # start the actual build process + cd ${srcdir}/grub2_bios-${pkgver} + ./autogen.sh + + ## fix unifont.bdf location so grub-mkfont can create *.pf2 files + sed -i 's|/usr/share/fonts/unifont|/usr/share/fonts/misc|' ${srcdir}/grub2_bios-${pkgver}/configure + +# mkdir ${srcdir}/grub2_bios-${pkgver}/BUILD_BIOS +# cd ${srcdir}/grub2_bios-${pkgver}/BUILD_BIOS + + CFLAGS="" ./configure \ + --with-platform=pc --enable-mm-debug \ + ${_EFIEMU} --host=${CARCH}-unknown-linux-gnu \ + --enable-grub-mkfont --prefix=/usr \ + --bindir=/bin --sbindir=/sbin \ + --mandir=/usr/share/man --infodir=/usr/share/info \ + --sysconfdir=/etc --enable-nls \ + --program-transform-name=s,grub,grub, + CFLAGS="" make +} + +build_grub2-efi() { + # copy the source for building the efi package + cp -r ${srcdir}/grub-${pkgver} ${srcdir}/grub2_efi-${pkgver} + + # add the grub-extra sources + export GRUB_CONTRIB=${srcdir}/grub2_efi-${pkgver}/grub2-extras/ + install -d ${srcdir}/grub2_efi-${pkgver}/grub2-extras + bsdtar xf ${srcdir}/grub2_extras_lua_r${_grub2_lua_ver}.tar.xz \ + -C ${srcdir}/grub2_efi-${pkgver}/grub2-extras + bsdtar xf ${srcdir}/grub2_extras_gpxe_r${_grub2_gpxe_ver}.tar.xz \ + -C ${srcdir}/grub2_efi-${pkgver}/grub2-extras + + ## Need to use python2 + sed -i 's|python|python2|' ${srcdir}/grub2_efi-${pkgver}/autogen.sh + + # start the actual build process + cd ${srcdir}/grub2_efi-${pkgver} + ./autogen.sh + + CFLAGS="" ./configure \ + --with-platform=efi --target=i386 \ + --enable-mm-debug --disable-efiemu \ + --host=${CARCH}-unknown-linux-gnu \ + --prefix=/usr --bindir=/bin \ + --sbindir=/sbin --mandir=/usr/share/man \ + --infodir=/usr/share/info --sysconfdir=/etc \ + --enable-nls --program-transform-name=s,grub,grub, + CFLAGS="" make +} + +package_grub2-common() { + pkgdesc="The GNU GRand Unified Bootloader version 2 - Files common for all platforms" + install="grub2.install" + depends=('xz' 'freetype2' 'device-mapper') + conflicts=('grub') + backup=('boot/grub/grub.cfg' 'etc/default/grub' 'etc/grub.d/40_custom') + cd ${srcdir}/grub2_bios-${pkgver} + make DESTDIR=${pkgdir} install + + ## install grub2-extras ntldr-img's grubinst as /sbin/grubinst + install -Dm755 ${srcdir}/grub2_bios-${pkgver}/grub-core/grubinst ${pkgdir}/sbin/grubinst + + install -Dm755 ${pkgdir}/sbin/grub-install ${pkgdir}/sbin/grub_bios-install + install -Dm755 ${pkgdir}/sbin/grub-install ${pkgdir}/sbin/grub_efi_x86_64-install + install -Dm755 ${pkgdir}/sbin/grub-install ${pkgdir}/sbin/grub_efi_i386-install + + sed -i "s|^\(target_cpu\)=.*|\1=i386|; \ + s|^\(platform\)=.*|\1=pc|" \ + ${pkgdir}/sbin/grub_bios-install + + sed -i "s|^\(target_cpu\)=.*|\1=x86_64|; \ + s|^\(platform\)=.*|\1=efi|" \ + ${pkgdir}/sbin/grub_efi_x86_64-install + + sed -i "s|^\(target_cpu\)=.*|\1=i386|; \ + s|^\(platform\)=.*|\1=efi|" \ + ${pkgdir}/sbin/grub_efi_i386-install + + ## install extra /etc/grub.d/ files + install -Dm755 ${srcdir}/05_archtheme ${pkgdir}/etc/grub.d/05_archtheme + install -Dm755 ${srcdir}/20_memtest86+ ${pkgdir}/etc/grub.d/20_memtest86+ + + ## install /etc/default/grub (used by grub-mkconfig) + install -Dm644 ${srcdir}/grub.default ${pkgdir}/etc/default/grub + + ## install grub.cfg (needed so it doesn't get removed on upgrading because it was previously here) + install -Dm644 ${srcdir}/grub.cfg ${pkgdir}/boot/grub/grub.cfg + + # remove platform specific files + rm -rf ${pkgdir}/usr/lib/grub/i386-pc/ +} + +package_grub2-bios() { + pkgdesc="The GNU GRand Unified Bootloader version 2 - Built for PC BIOS" + depends=(grub2-common=${pkgver}) + replaces=('grub2') + provides=('grub2') + + cd ${srcdir}/grub2_bios-${pkgver} + make DESTDIR=${pkgdir} install + + ## remove non platform-specific files + rm -rf ${pkgdir}/{boot,bin,sbin,etc,usr/share} + rm ${pkgdir}/usr/lib/grub/{grub-mkconfig_lib,update-grub_lib} +} + +package_grub2-efi-i386() { + + pkgdesc="The GNU GRand Unified Bootloader version 2 - i386 UEFI version" + depends=("grub2-common=${pkgver}" 'dosfstools') + optdepends=('efibootmgr') + + cd ${srcdir}/grub2_efi-${pkgver} + make DESTDIR=${pkgdir} install + + ## remove non platform-specific files + rm -rf ${pkgdir}/{boot,bin,sbin,etc,usr/share} + rm ${pkgdir}/usr/lib/grub/{grub-mkconfig_lib,update-grub_lib} +} + +md5sums=('fd602ffaada5ba7939d0ea47091841a5' + '21b709f119e0bef1c51978d757e885dc' + '9e0944f3e63586dc4242fd8b7977e3c4' + '0a124ffc9835100ba0e7de7a0ac1c389' + '0016761d429e6a77b90d09ed6ee8a47d' + '93f0f96911451e86014e04f96e13462f' + '50123c37cf145a98aba4ffb0fc4efba1' + '7cb90ebb04b856ded6ae171c3658fba2' + '5a07e04c4ecb8ed145d54fec3043e0d5' + 'e143ae2e453b7c3ced309667df30da55') diff --git a/libre/grub2/archlinux_grub2_mkconfig_fixes.patch b/libre/grub2/archlinux_grub2_mkconfig_fixes.patch new file mode 100644 index 000000000..62acd2ee8 --- /dev/null +++ b/libre/grub2/archlinux_grub2_mkconfig_fixes.patch @@ -0,0 +1,93 @@ +diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in +index b041a38..6f31dce 100644 +--- a/util/grub-mkconfig.in ++++ b/util/grub-mkconfig.in +@@ -252,6 +252,8 @@ export GRUB_DEFAULT \ + GRUB_THEME \ + GRUB_GFXPAYLOAD_LINUX \ + GRUB_DISABLE_OS_PROBER \ ++ GRUB_COLOR_NORMAL \ ++ GRUB_COLOR_HIGHLIGHT \ + GRUB_INIT_TUNE \ + GRUB_SAVEDEFAULT \ + GRUB_BADRAM +diff --git a/util/grub.d/00_header.in b/util/grub.d/00_header.in +index 420b3f3..79fd4fb 100644 +--- a/util/grub.d/00_header.in ++++ b/util/grub.d/00_header.in +@@ -100,6 +100,14 @@ cat <