Commit 95d092c8 authored by Manuel's avatar Manuel

Merge branch 'testing' of gitorious.org:chakra-packages/platform into testing

parents 16b24f63 0f0a4d99
# $Id: PKGBUILD 52155 2009-09-16 11:08:07Z allan $
# Maintainer: Andreas Radke <andyrtr at archlinux.org>
# Committer: Judd Vinet <jvinet@zeroflux.org>
pkgname=gnupg
pkgver=1.4.10
pkgrel=2
pkgdesc="GNU Privacy Guard - a PGP replacement tool"
arch=('i686' 'x86_64')
license=('GPL3')
depends=('zlib' 'bzip2' 'libldap>=2.4.18' 'libusb' 'curl>=7.16.2' 'readline>=6.0.00')
source=(ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt/gnupg/$pkgname-$pkgver.tar.bz2)
install=gnupg.install
url="http://www.gnupg.org/"
md5sums=('dcf7ed712997888d616e029637bfc303')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
./configure --prefix=/usr --libexecdir=/usr/lib # docdir can't be set properly
make || return 1
ln -s ${pkgname}-${pkgver}/scripts ..
make DESTDIR=${pkgdir} install || return 1
# fix fileconflict with gnupg2 pkg
rm ${pkgdir}/usr/share/man/man1/gpg-zip.1
}
info_dir=/usr/share/info
info_files=(gnupg1.info)
post_install() {
[ -x usr/bin/install-info ] || return 0
for f in ${info_files[@]}; do
usr/bin/install-info ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
done
}
post_upgrade() {
post_install $1
}
pre_remove() {
[ -x usr/bin/install-info ] || return 0
for f in ${info_files[@]}; do
usr/bin/install-info --delete ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
done
}
# vim:set ts=2 sw=2 et:
#
# Core Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=groff
pkgver=1.21
pkgrel=2
pkgdesc="GNU troff text-formatting system"
arch=(i686 x86_64)
url="http://www.gnu.org/software/groff/groff.html"
license=('GPL')
depends=('perl' 'gcc-libs' 'texinfo')
makedepends=('netpbm' 'psutils' 'ghostscript')
optdepends=('netpbm: for use together with man -H command interaction in browsers'
'psutils: for use together with man -H command interaction in browsers')
source=(ftp://ftp.gnu.org/gnu/groff/groff-$pkgver.tar.gz
site.tmac)
install=groff.install
md5sums=('8b8cd29385b97616a0f0d96d0951c5bf'
'a1fedafd7863b37968d32ad9ae1d8c13')
build() {
cd $srcdir/$pkgname-$pkgver
./configure --prefix=/usr --without-x
mkdir -p $pkgdir/usr
make
}
package() {
cd $srcdir/$pkgname-$pkgver
make prefix=$pkgdir/usr install
cd $pkgdir/usr/bin
# needed for xman
ln -s eqn geqn
ln -s tbl gtbl
ln -s soelim zsoelim
rm -rf $pkgdir/usr/lib/groff/site-tmac
# Fix some issues when encoding to utf8 man pages
# The output chars don't match keyboard chars...
cat $srcdir/site.tmac >> \
$pkgdir/usr/share/groff/site-tmac/man.local
cat $srcdir/site.tmac >> \
$pkgdir/usr/share/groff/site-tmac/mdoc.local
}
infodir=/usr/share/info
filelist=(groff.info groff.info-1 groff.info-2 groff.info-3)
post_install() {
for file in ${filelist[@]}; do
install-info $infodir/$file $infodir/dir 2> /dev/null
done
}
post_upgrade() {
post_install $1
}
pre_remove() {
for file in ${filelist[@]}; do
install-info --delete $infodir/$file $infodir/dir 2> /dev/null
done
}
# vim:set ts=2 sw=2 et:
.
.if n \{\
. \" Character translations for non-keyboard
. \" characters - to make them searchable
. if '\*[.T]'utf8' \{\
. char \- \N'45'
. char - \N'45'
. char ' \N'39'
. char \' \N'39'
. \}
.
. \" Shut off SGR by default (groff colors)
. \" Require GROFF_SGR envvar defined to turn it on
. if '\V[GROFF_SGR]'' \
. output x X tty: sgr 0
.\}
# $Id: PKGBUILD 67994 2010-02-10 11:34:11Z giovanni $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Paul Mattal <paul@mattal.com>
pkgname=help2man
pkgver=1.38.2
pkgrel=1
pkgdesc="Conversion tool to create man files"
arch=('i686' 'x86_64')
url="http://www.gnu.org/software/help2man/"
license=('GPL')
depends=('perl-locale-gettext')
source=(http://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz
help2man-1.37.1-respect-LDFLAGS.patch)
md5sums=('426671c6fe79e5ef2233303367eab5a6'
'6f80dfd75b46c6bfbc2eeb5516771096')
build() {
# Fix Build
export MAKEFLAGS="-j1"
cd "${srcdir}/${pkgname}-${pkgver}"
patch -Np1 -i ${srcdir}/help2man-1.37.1-respect-LDFLAGS.patch || return 1
./configure --prefix=/usr \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--libdir=/lib
make || return 1
echo "build done"
make DESTDIR="${pkgdir}" install || return 1
}
--- a/Makefile.in 2009-11-14 07:21:34.000000000 +0100
+++ b/Makefile.in 2010-02-10 12:23:35.000000000 +0100
@@ -103,7 +103,7 @@
preload: $(preload).so
$(preload).so: $(srcdir)/$(preload).c
- $(CC) $(CFLAGS) -o $@ -fPIC -shared $? $(LIBS)
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ -fPIC -shared $? $(LIBS)
man: $(target).1
$(target).1: $(srcdir)/$(target).PL $(srcdir)/$(target).h2m
# $Id: PKGBUILD 26973 2009-02-15 00:05:10Z jgc $
# Maintainer: Jan de Groot <jgc@archlinux.org>
pkgname=libcroco
pkgver=0.6.2
pkgrel=1
pkgdesc="GNOME CSS2 parsing and manipulation toolkit"
arch=('x86_64' 'i686')
depends=('glib2>=2.18.4' 'libxml2>=2.7.3')
makedepends=('intltool' 'pkgconfig')
license=('LGPL')
options=('!libtool')
source=(http://ftp.gnome.org/pub/gnome/sources/${pkgname}/0.6/${pkgname}-${pkgver}.tar.bz2)
url="http://www.gnome.org"
md5sums=('1429c597aa4b75fc610ab3a542c99209')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./configure --prefix=/usr --disable-static || return 1
make || return 1
make DESTDIR="${pkgdir}" install || return 1
}
# $Id: $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
# Contributor: ice-man <icemanf@gmail.com>
# Contributor: sergeantspoon <sergeantspoon@archlinux.us>
pkgname=libssh
pkgver=0.4.1
pkgrel=3
pkgdesc="Library for accessing ssh client services through C libraries"
url="http://www.libssh.org/"
license=('LGPL')
arch=('i686' 'x86_64')
depends=('openssl')
makedepends=('cmake') #'doxygen'
source=(http://www.libssh.org/files/$pkgname-$pkgver.tar.gz)
md5sums=('258402bf1fabf664daeba4e5fc7a8d09')
build() {
cd ${srcdir}
mkdir build
cd build
cmake ../${pkgname}-${pkgver} \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release || return 1
make || return 1
}
package(){
cd ${srcdir}/build
make DESTDIR=${pkgdir} install || return 1
}
#
# Platform packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=libssh2
pkgver=1.2.7
pkgrel=1
pkgdesc="A library implementing the SSH2 protocol as defined by Internet Drafts"
url="http://www.libssh2.org/"
arch=('i686' 'x86_64')
license=('BSD')
depends=('openssl')
makedepends=('zlib')
options=('!libtool')
source=("http://www.libssh2.org/download/$pkgname-$pkgver.tar.gz")
md5sums=('a5d78344886f1282e4008c09bf568076')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
./configure --prefix=/usr || return 1
make || return 1
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install || return 1
install -Dm644 COPYING \
${pkgdir}/usr/share/licenses/${pkgname}/LICENSE || return 1
}
# $Id: PKGBUILD 79849 2010-05-08 12:19:42Z jgc $
# Maintainer: Jan de Groot <jgc@archlinux.org>
pkgname=libusb-compat
pkgver=0.1.3
pkgrel=1
depends=('libusb' 'sh')
pkgdesc="Library to enable user space application programs to communicate with USB devices."
arch=(i686 x86_64)
url="http://libusb.sourceforge.net/"
license=('LGPL')
source=(http://downloads.sourceforge.net/libusb/libusb-compat-0.1/$pkgname-$pkgver/${pkgname}-${pkgver}.tar.bz2)
options=('!libtool')
md5sums=('570ac2ea085b80d1f74ddc7c6a93c0eb')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
./configure --prefix=/usr
make
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
}
=== modified file 'src/straycats.c'
--- src/straycats.c 2011-01-10 20:08:22 +0000
+++ src/straycats.c 2011-06-04 06:34:51 +0000
@@ -177,6 +177,7 @@
char *lang, *page_encoding;
char *mandir_base;
pipecmd *col_cmd;
+ char *col_locale;
char *fullpath;
/* we have a straycat. Need to filter it and get
@@ -226,6 +227,12 @@
col_cmd = pipecmd_new_argstr
(get_def_user ("col", COL));
pipecmd_arg (col_cmd, "-bx");
+ col_locale = find_charset_locale ("UTF-8");
+ if (col_locale) {
+ pipecmd_setenv (col_cmd, "LC_CTYPE",
+ col_locale);
+ free (col_locale);
+ }
pipeline_command (decomp, col_cmd);
fullpath = canonicalize_file_name (catdir);
#
# Core Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=man-db
pkgver=2.6.0
pkgrel=2
pkgdesc="A utility for reading man pages"
arch=('i686' 'x86_64')
url="http://www.nongnu.org/man-db/"
license=('GPL' 'LGPL')
depends=( 'bash' 'gdbm' 'zlib' 'groff' 'libpipeline')
optdepends=('less' 'gzip')
backup=('etc/man_db.conf'
'etc/cron.daily/man-db')
conflicts=('man')
provides=('man')
replaces=('man')
install=${pkgname}.install
source=(http://savannah.nongnu.org/download/man-db/$pkgname-$pkgver.tar.gz
1361_1360.diff
#http://launchpad.net/man-db/main/${pkgver}/+download/${pkgname}-${pkgver}.tar.gz
convert-mans man-db.cron.daily)
md5sums=('a6485560fa3c11c5b7df346ed5520adb'
'9a816cf0f9a1c2594491bbdba53fe64a'
'2b7662a7d5b33fe91f9f3e034361a2f6'
'd30c39ae47560304471b5461719e0f03')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
patch -Np0 -i $srcdir/1361_1360.diff
./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib \
--with-db=gdbm --disable-setuid --enable-mandirs=GNU \
--with-sections="1 n l 8 3 0 2 5 4 9 6 7"
make
}
check() {
cd ${srcdir}/${pkgname}-${pkgver}
make check
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
# part of groff pkg
rm -f ${pkgdir}/usr/bin/zsoelim
# script from LFS to convert manpages, see
# http://www.linuxfromscratch.org/lfs/view/6.4/chapter06/man-db.html
install -D -m755 ${srcdir}/convert-mans ${pkgdir}/usr/bin/convert-mans
#install whatis cron script
install -D -m744 ${srcdir}/man-db.cron.daily ${pkgdir}/etc/cron.daily/man-db
}
#!/bin/sh -e
FROM="$1"
TO="$2"
shift ; shift
while [ $# -gt 0 ]
do
FILE="$1"
shift
iconv -f "$FROM" -t "$TO" "$FILE" >.tmp.iconv
mv .tmp.iconv "$FILE"
done
#!/bin/sh
# nicenesses range from -20 (most favorable scheduling) to 19 (least favorable)
NICE=19
# 0 for none, 1 for real time, 2 for best-effort, 3 for idle
IONICE_CLASS=2
# 0-7 (for IONICE_CLASS 1 and 2 only), 0=highest, 7=lowest
IONICE_PRIORITY=7
UPDATEMANDB="/usr/bin/mandb --quiet"
# Update the "whatis" database
#/usr/sbin/makewhatis -u -w
# taken from Debian
# man-db cron daily
set -e
if ! [ -d /var/cache/man ]; then
# Recover from deletion, per FHS.
mkdir -p /var/cache/man
chmod 755 /var/cache/man
fi
# regenerate man database
if [ -x /usr/bin/nice ]; then
UPDATEMANDB="/usr/bin/nice -n ${NICE:-19} ${UPDATEMANDB}"
fi
if [ -x /usr/bin/ionice ]; then
UPDATEMANDB="/usr/bin/ionice -c ${IONICE_CLASS:-2} -n ${IONICE_PRIORITY:-7} ${UPDATEMANDB}"
fi
${UPDATEMANDB}
exit 0
post_install() {
echo "it's recommended to create an initial"
echo "database running as root:"
echo "\"/usr/bin/mandb --quiet\""
}
post_upgrade() {
if [ "`vercmp $2 2.5.3-2`" -lt 0 ]; then
echo "systemuser \"man\" is no more required"
echo "run \"userdel man\". please also"
echo "chown root:root /var/cache/man"
fi
}
post_remove() {
rm -rf /var/cache/man
}
#
# Platform Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=mpd
pkgver=0.16.3
pkgrel=1
pkgdesc="Music daemon that plays MP3, FLAC, and Ogg Vorbis files"
arch=('i686' 'x86_64')
license=('GPL')
url="http://mpd.wikia.com/wiki/Server"
depends=('libao' 'ffmpeg' 'libmodplug' 'audiofile' 'libshout' 'libmad' 'curl' 'faad2'
'sqlite3' 'jack' 'libmms' 'wavpack' 'libmpcdec' 'avahi' 'libid3tag'
'libpulse')
makedepends=('pkgconfig' 'doxygen')
install=${pkgname}.install
source=("http://downloads.sourceforge.net/musicpd/${pkgname}-${pkgver}.tar.bz2"
'mpd'
'mpd-0.16.3_ffmpeg_sigsegv.patch')
md5sums=('6e708c02b0e8c288aec855eecf441a5a'
'e5669c2bff4031928531e52475addeb1'
'9a730957e213c62339e9335971e4b85e')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
./configure --prefix=/usr \
--sysconfdir=/etc \
--enable-lastfm \
--enable-jack \
--enable-pulse \
--enable-documentation \
--disable-libwrap \
--disable-cue \
--disable-sidplay
patch -Np1 -i $srcdir/mpd-0.16.3_ffmpeg_sigsegv.patch
make
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
# set ours dirs in mpd.conf file
sed -i 's|^music_directory.*$|#music_directory "path_to_your_music_collection"|1' doc/mpdconf.example
sed -i 's|playlist_directory.*$|playlist_directory "/var/lib/mpd/playlists"|1' doc/mpdconf.example
sed -i 's|db_file.*$|db_file "/var/lib/mpd/mpd.db"|1' doc/mpdconf.example
sed -i 's|log_file.*$|log_file "/var/log/mpd/mpd.log"|1' doc/mpdconf.example
sed -i 's|error_file.*$|error_file "/var/log/mpd/mpd.error"|1' doc/mpdconf.example
sed -i 's|#pid_file.*$|pid_file "/var/run/mpd/mpd.pid"|1' doc/mpdconf.example
sed -i 's|#state_file.*$|state_file "/var/lib/mpd/mpdstate"|1' doc/mpdconf.example
sed -i 's|#user.*$|user "mpd"|1' doc/mpdconf.example
install -Dm644 doc/mpdconf.example ${pkgdir}/usr/share/mpd/mpd.conf.example
install -Dm755 ${srcdir}/mpd ${pkgdir}/etc/rc.d/mpd
install -d ${pkgdir}/var/{lib/mpd/playlists,log/mpd}
}
\ No newline at end of file
#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
case "$1" in
start)
stat_busy "Starting Music Player Daemon"
[ ! -d /var/run/mpd ] && install -d -g 45 -o 45 /var/run/mpd
/usr/bin/mpd /etc/mpd.conf &> /dev/null
if [ $? -gt 0 ]; then
stat_fail
else
add_daemon mpd
stat_done
fi
;;
stop)
stat_busy "Stopping Music Player Daemon"
/usr/bin/mpd --kill /etc/mpd.conf &> /dev/null
if [ $? -gt 0 ]; then
stat_fail
else
rm_daemon mpd
stat_done
fi
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
esac
exit 0
diff -ur mpd-0.16.3.orig/src/decoder/ffmpeg_decoder_plugin.c mpd-0.16.3/src/decoder/ffmpeg_decoder_plugin.c
--- mpd-0.16.3.orig/src/decoder/ffmpeg_decoder_plugin.c 2011-06-04 17:36:33.000000000 +0300
+++ mpd-0.16.3/src/decoder/ffmpeg_decoder_plugin.c 2011-06-24 18:18:51.840218251 +0300
@@ -321,7 +321,7 @@
}
//ffmpeg works with ours "fileops" helper
- AVFormatContext *format_context;
+ AVFormatContext *format_context = NULL;
if (av_open_input_stream(&format_context, stream->io, input->uri,
input_format, NULL) != 0) {
g_warning("Open failed\n");
@@ -470,7 +470,7 @@
if (stream == NULL)
return NULL;
- AVFormatContext *f;
+ AVFormatContext *f = NULL;
if (av_open_input_stream(&f, stream->io, is->uri,
input_format, NULL) != 0) {
mpd_ffmpeg_stream_close(stream);
post_install() {
post_upgrade
echo "==> Create a configuration file /etc/mpd.conf before using MPD (example: /usr/share/mpd/mpd.conf.example)"
}
post_upgrade() {
getent group "mpd" &>/dev/null || groupadd -r -g 45 mpd 1>/dev/null
getent passwd "mpd" &>/dev/null || useradd -r -u 45 -g mpd -d "/var/lib/mpd" -s "/bin/true" -G "audio" mpd 1>/dev/null
for dir in /var/{lib,log}/mpd; do
chown -R mpd:mpd "$dir" 1>/dev/null
done
}
post_remove() {
getent passwd "mpd" &>/dev/null && userdel mpd 1>/dev/null
getent group "mpd" &>/dev/null && groupdel mpd 1>/dev/null
[ -f etc/mpd.conf ] && mv etc/mpd.conf etc/mpd.conf.pacsave 1>/dev/null
}
\ No newline at end of file
......@@ -8,21 +8,21 @@
_kernver="2.6.35-CHAKRA-LTS"
pkgname=nvidia-173xx-lts
pkgver=173.14.30
pkgver=173.14.31
pkgrel=1
pkgdesc="NVIDIA drivers for kernel26, 173xx branch."
arch=('i686' 'x86_64')
[ "$CARCH" = "i686" ] && ARCH=x86
[ "$CARCH" = "x86_64" ] && ARCH=x86_64
url="http://www.nvidia.com/"
depends=('kernel26' 'nvidia-173xx-utils')
makedepends=('kernel26-headers')
depends=('kernel26-lts' 'nvidia-173xx-utils')
makedepends=('kernel26-lts-headers')
conflicts=('nvidia-96xx' 'nvidia' 'nvidia-173xx')
license=('custom')
install=nvidia.install
source=("http://download.nvidia.com/XFree86/Linux-$ARCH/${pkgver}/NVIDIA-Linux-$ARCH-${pkgver}-pkg0.run")
md5sums=('665f9f730c18ab24a997e0e14b863262')
[ "$CARCH" = "x86_64" ] && md5sums=('8c47463ae14a2f742d0fa00160456745')
md5sums=('01cd3b91196cd4495f56c34494f310b5')
[ "$CARCH" = "x86_64" ] && md5sums=('d53e8faf8ac90ad98b8998f25f121535')
build() {