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

This commit is contained in:
Daniele 2011-01-15 20:26:48 +00:00
commit d060a4a245
22 changed files with 362 additions and 100 deletions

31
ack/PKGBUILD Normal file
View File

@ -0,0 +1,31 @@
#
# Chakra 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=ack
pkgver=1.94
pkgrel=1
pkgdesc="A Perl-based grep replacement, aimed at programmers with large trees of heterogeneous source code"
arch=('any')
url="http://betterthangrep.com/"
license=('GPL' 'PerlArtistic')
depends=('perl-file-next')
options=('!emptydirs')
source=(http://search.cpan.org/CPAN/authors/id/P/PE/PETDANCE/$pkgname-$pkgver.tar.gz)
md5sums=('dcf68e56bab0d394370fa102c7f08cb0')
build() {
cd "$srcdir/$pkgname-$pkgver"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
}

View File

@ -7,7 +7,7 @@
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=calibre
pkgver=0.7.38
pkgver=0.7.40
pkgrel=1
pkgdesc="E-book library management application"
arch=('i686' 'x86_64')
@ -20,7 +20,7 @@ depends=('python2' 'python-imaging' 'libusb' 'pyqt' 'python-mechanize'
makedepends=('python-distribute')
install=calibre.install
source=(http://downloads.sourceforge.net/project/calibre/${pkgver}/${pkgname}-${pkgver}.tar.gz)
md5sums=('ca2bb7fd8d3e74f3d954ad3f42737f53')
md5sums=('b443a70d8d24afb30561d88deb8716d6')
build() {
cd "${pkgname}"

View File

@ -7,7 +7,7 @@
# include global config
pkgname=cherokee
pkgver=1.0.15
pkgver=1.0.16
pkgrel=1
pkgdesc="A very fast, flexible and easy to configure Web Server"
arch=('i686' 'x86_64')
@ -29,7 +29,7 @@ source=(http://www.cherokee-project.com/download/1.0/$pkgver/cherokee-$pkgver.ta
cherokee.rc
cherokee.logrotate)
options=('!libtool')
md5sums=('58ae1ee594390d19fd9c556bf8d52408'
md5sums=('d9ace1e79237ea60198dafe52cb172d1'
'a2d2b69c6220fab57cda4f531b680f9f'
'8d69341bd4002bffd69c6e82ff6c905f')

55
clamav/PKGBUILD Normal file
View File

@ -0,0 +1,55 @@
#
# Apps Packages for Chakra, part of chakra-project.org
#
# contributor (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=clamav
pkgver=0.96.5
pkgrel=1
pkgdesc='Anti-virus toolkit for Unix'
arch=('i686' 'x86_64')
depends=('bzip2' 'zlib' 'libtool')
options=(!libtool)
install="$pkgname.install"
license=('GPL')
backup=('etc/clamav/clamd.conf' 'etc/clamav/freshclam.conf' 'etc/conf.d/clamav')
url='http://www.clamav.net/'
source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz"
'clamav'
'clamav.confd'
'clamav.logrotate'
'config.patch')
sha1sums=('a7253e30d40e0c03964a60ed589b356a115b26c5'
'7f15f0b13a1c11235bc99ef0add01efd8a442f07'
'cb116cdab49a810381a515cbcfb6a6c148547f07'
'be3310d2b41a68ce06e33c84ab68ffe59fdce104'
'701a61571788d10ff7af01597785835c6bfea918')
build() {
cd "$srcdir/$pkgname-$pkgver"
patch -p1 < ../config.patch
./configure --prefix=/usr --sysconfdir=/etc/clamav \
--with-dbdir=/var/lib/clamav --disable-clamav
make
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
# make sure conf files get installed, cause make install
# doesn't do that if clamav is already installed upon building.
install -D -m644 etc/clamd.conf "$pkgdir/etc/clamav/clamd.conf"
install -D -m644 etc/freshclam.conf "$pkgdir/etc/clamav/freshclam.conf"
install -D -m644 ../clamav.logrotate "$pkgdir/etc/logrotate.d/clamav"
install -D -m644 ../clamav.confd "$pkgdir/etc/conf.d/clamav"
install -D -m755 ../clamav "$pkgdir/etc/rc.d/clamav"
# un-distribute databases to require freshclam
rm "$pkgdir"/var/lib/clamav/*.cvd
}

72
clamav/clamav Normal file
View File

@ -0,0 +1,72 @@
#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
# source application-specific settings
[ -f /etc/conf.d/clamav ] && . /etc/conf.d/clamav
PID_FC=`pidof -o %PPID /usr/bin/freshclam`
PID_CD=`pidof -o %PPID /usr/sbin/clamd`
case "$1" in
start)
# if clamd isn't started first, notifyclamd fails at times
if [ "$START_CLAMD" == "yes" ]; then
stat_busy "Starting ClamD"
[ -z "$PID_CD" ] && /usr/sbin/clamd
if [ $? -gt 0 ]; then
stat_fail
else
add_daemon clamav
stat_done
fi
fi
# give clamd enough time to start
sleep 1
if [ "$START_FRESHCLAM" == "yes" ]; then
stat_busy "Starting FreshClam"
[ -z "$PID_FC" ] && /usr/bin/freshclam -p /var/run/clamav/freshclam.pid -d $FRESHCLAM_OPTS
if [ $? -gt 0 ]; then
stat_fail
else
add_daemon clamav
stat_done
fi
fi
;;
stop)
if [ "$START_CLAMD" == "yes" ]; then
stat_busy "Stopping ClamD"
[ -n "$PID_CD" ] && kill $PID_CD &> /dev/null
if [ $? -gt 0 ]; then
stat_fail
else
rm_daemon clamav
stat_done
fi
fi
if [ "$START_FRESHCLAM" == "yes" ]; then
stat_busy "Stopping FreshClam"
[ -n "$PID_FC" ] && kill $PID_FC &> /dev/null
if [ $? -gt 0 ]; then
stat_fail
else
rm_daemon clamav
stat_done
fi
fi
;;
restart)
$0 stop
# will not start if not fully stopped, so sleep
sleep 2
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
esac
exit 0

8
clamav/clamav.confd Normal file
View File

@ -0,0 +1,8 @@
# clamav startup script config options
# change these to "yes" to start
START_FRESHCLAM="no"
START_CLAMD="no"
# Options to pass to freshclam (man freshclam for more info).
FRESHCLAM_OPTS="-c 12"

14
clamav/clamav.install Normal file
View File

@ -0,0 +1,14 @@
post_install() {
getent group clamav &>/dev/null || groupadd -r -g 64 clamav >/dev/null
getent passwd clamav &>/dev/null || useradd -r -u 64 -g clamav -d /dev/null -s /bin/false -c "Clam AntiVirus" clamav >/dev/null
install -d /var/{log,run}/clamav
chown clamav:root /var/{log,run}/clamav
chown -R clamav:clamav /var/lib/clamav
}
post_remove() {
getent passwd clamav &>/dev/null && userdel clamav >/dev/null
getent group clamav &>/dev/null && groupdel clamav >/dev/null
return 0
}

8
clamav/clamav.logrotate Normal file
View File

@ -0,0 +1,8 @@
/var/log/clamav/clamd.log /var/log/clamav/freshclam.log {
create 644 clamav clamav
sharedscripts
postrotate
/bin/kill -HUP `cat /var/run/clamav/clamd.pid 2>/dev/null` 2> /dev/null || true
/bin/kill -HUP `cat /var/run/clamav/freshclam.pid 2>/dev/null` 2> /dev/null || true
endscript
}

30
clamav/config.patch Normal file
View File

@ -0,0 +1,30 @@
diff -arU 0 old/etc/clamd.conf new/etc/clamd.conf
--- old/etc/clamd.conf 2010-12-02 19:31:21.773357389 +0100
+++ new/etc/clamd.conf 2010-12-02 19:31:45.873357389 +0100
@@ -14 +14 @@
-#LogFile /tmp/clamd.log
+LogFile /var/log/clamav/clamd.log
@@ -34 +34 @@
-#LogTime yes
+LogTime yes
@@ -61 +61 @@
-#PidFile /var/run/clamd.pid
+PidFile /var/run/clamav/clamd.pid
@@ -65 +65 @@
-#TemporaryDirectory /var/tmp
+TemporaryDirectory /tmp
@@ -80 +80 @@
-#LocalSocket /tmp/clamd.socket
+LocalSocket /var/lib/clamav/clamd.sock
@@ -190 +190 @@
-#User clamav
+User clamav
diff -arU 0 old/etc/freshclam.conf new/etc/freshclam.conf
--- old/etc/freshclam.conf 2010-12-02 19:31:21.773357389 +0100
+++ new/etc/freshclam.conf 2010-12-02 19:31:51.190024057 +0100
@@ -17 +17 @@
-#UpdateLogFile /var/log/freshclam.log
+UpdateLogFile /var/log/clamav/freshclam.log
@@ -121 +121 @@
-#NotifyClamd /path/to/clamd.conf
+NotifyClamd /etc/clamav/clamd.conf

View File

@ -1,5 +1,5 @@
#!/bin/bash
cd $1
../makepkg -sr
rm -r pkg src *.pkg.*
../makepkg -sr --noconfirm
rm -rf pkg src *.pkg.*
cd ..

View File

@ -4,51 +4,47 @@
# 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=gtk-integration
pkgver=1.4
pkgrel=2
pkgver=2.1
pkgrel=1
iconspkgver=2.5.0
widgetpkgver=1.0.0
chthemever=0.3.1
widgetpkgver=1.0.1
_colors=3.0
cgcver=1.1
pkgdesc="A bundles and gtk apps integration package for Chakra GNU/Linux"
pkgdesc="A bundles and Gtk apps integration package for Chakra GNU/Linux"
arch=('i686' 'x86_64')
url=("http://www.nanolx.org/home/item/75-oxygen-refit"
"http://kde-look.org/content/show.php/gtk-oxygen-engine?content=129715"
"http://plasmasturm.org/programs/gtk-chtheme/"
"http://code.google.com/p/princeamds-code/")
"http://kde-look.org/content/show.php/gtk-oxygen-engine?content=129715")
license=('LGPL3' 'GPL')
depends=('kdelibs' 'qt' 'oxygen-icons' 'python2' 'gtk2' 'pygtk')
makedepends=('gcc' 'cmake' 'findutils' 'imagemagick' 'liblqr')
provides=('gtk-integration' 'oxygenrefit2-icon-theme' 'gtk-oxygen-engine' 'gtk-chtheme' 'gtk-icon-theme-changer')
conflicts=('oxygenrefit2-icon-theme' 'gtk-oxygen-engine' 'gtk-oxygen-engine-git' 'gtk-chtheme' 'gtk-icon-theme-changer')
depends=('kdelibs' 'qt' 'oxygen-icons' 'cairo')
makedepends=('gcc' 'cmake' 'findutils' 'imagemagick' 'liblqr' 'gtk2')
provides=('gtk-integration' 'oxygenrefit2-icon-theme' 'oxygen-gtk')
conflicts=('oxygenrefit2-icon-theme' 'oxygen-gtk')
source=("http://download.tuxfamily.org/oxygenrefit2/oxygen-refit-2-$iconspkgver.tar.bz2"
"ftp://ftp.caliu.cat/pub/mirrors/kde/stable/oxygen-gtk/1.0.0/src/oxygen-gtk-$widgetpkgver.tar.bz2"
"http://plasmasturm.org/programs/gtk-chtheme/gtk-chtheme-$chthemever.tar.bz2"
"http://chakra-project.org/sources/gtk-integration/gtk-icon-theme-changer.tar.gz")
"ftp://ftp.caliu.cat/pub/mirrors/kde/stable/oxygen-gtk/$widgetpkgver/src/oxygen-gtk-$widgetpkgver.tar.bz2"
"http://chakra-project.org/sources/gtk-integration/chakra-gtk-config-${cgcver}.tar.gz")
md5sums=('60f32f98d8d33d82db79b6bb934f0580'
'441398b4569ce0282c39e5c21cb16dfc'
'f688053bf26dd6c4f1cd0bf2ee33de2a'
'fb9519061e9cf26577d34b02171c256b')
'39b3b951e6adfb5aebeebb23c073d42c'
'cefdee8f6b696f5829c6566a375a4da0')
function create_install() {
cat > "${startdir}/${pkgname}.install" <<EOF
post_install() {
cat <<-'EOF'
# GTK - Integration v$pkgver-$pkgrel
#
# If you want GTK+ apps or bundles run with root privileges to be themed as well
# copy your \`~/.gtkrc-2.0-kde4' file to \`/root/gtkrc-2.0'
#
# sudo cp ~/.gtkrc-2.0-kde4 /root/.gtkrc-2.0
GTK - Integration v$pkgver-$pkgrel
You can install our aditional engines:
--------------------------------------
gtk-integration-engine-molecule
gtk-integration-engine-qtcurve
EOF
}
@ -80,24 +76,13 @@ function build() {
make || return 1
make DESTDIR=${pkgdir} install
# Gtk-ChTheme
cd ${srcdir}/gtk-chtheme-$chthemever
sed -i 's|-DGTK.*||' Makefile
sed -i 's|theme_list(g_.*|&\n\tread_theme_list(g_strconcat(g_get_user_data_dir(), "/themes", NULL));|' main.c
make || return 1
install -Dm755 gtk-chtheme ${pkgdir}/usr/bin/gtk-chtheme || return 1
#Gtk-Icon-Theme-Changer
cd ${srcdir}
cp -a gtk-icon-theme-changer/gtk-icon-themes.py ${pkgdir}/usr/bin/gtk-icon-theme-changer
chmod -R 755 "$pkgdir"
}
function package() {
# Additional desktop files
cd ${startdir}
install -Dm 644 gtk-chtheme.desktop ${pkgdir}/usr/share/applications/gtk-chtheme.desktop || return 1
install -Dm 644 gtk-icon-theme-changer.desktop ${pkgdir}/usr/share/applications/gtk-icon-theme-changer.desktop || return 1
# Chakra-Gtk-Config
cd ${srcdir}/chakra-gtk-config-${cgcver}
rm -rf build
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr .. || return 1
make || return 1
make DESTDIR=${pkgdir} install
# Create the install file
create_install

View File

@ -1,14 +0,0 @@
[Desktop Entry]
Categories=System;
Comment=Change the appearance of GTK apps
Comment[ca]=Canvieu l'aparença de les aplicacions GTK
Comment[de]=Ändere das Erscheinungsbild der GTK-Programme
Comment[es]=Cambie el aspecto de los programas GTK
Exec=gtk-chtheme
Icon=/usr/share/icons/oxygen/48x48/apps/preferences-desktop-theme.png
Name=GTK Change Theme
StartupNotify=true
Terminal=false
Type=Application
X-KDE-SubstituteUID=false

View File

@ -1,13 +0,0 @@
[Desktop Entry]
Categories=System;
Comment=Change the icon theme used by your GTK apps
Comment[ca]=Canvieu el tema d'icones de les aplicacions GTK
Comment[es]=Cambie el tema de iconos de los programas GTK
Exec=/usr/bin/gtk-icon-theme-changer
Icon=/usr/share/icons/oxygen/48x48/apps/preferences-desktop-icons.png
Name=GTK Icon Theme Changer
StartupNotify=true
Terminal=false
Type=Application
X-KDE-SubstituteUID=false

View File

@ -1,11 +1,13 @@
post_install() {
cat <<-'EOF'
# GTK - Integration v1.4-2
#
# If you want GTK+ apps or bundles run with root privileges to be themed as well
# copy your `~/.gtkrc-2.0-kde4' file to `/root/gtkrc-2.0'
#
# sudo cp ~/.gtkrc-2.0-kde4 /root/.gtkrc-2.0
GTK - Integration v2.1-1
You can install our aditional engines:
--------------------------------------
gtk-integration-engine-molecule
gtk-integration-engine-qtcurve
EOF
}

View File

@ -8,7 +8,7 @@
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=kchmviewer
pkgver=5.2
pkgver=5.3
pkgrel=1
pkgdesc="A .chm files (MS HTML help file format) viewer"
arch=('i686' 'x86_64')
@ -18,16 +18,16 @@ depends=('chmlib' 'kdelibs' 'qt' 'xdg-utils')
makedepends=('automoc4' 'cmake')
options=('libtool')
install=${pkgname}.install
source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz"
'kchmview-build-fix.diff')
md5sums=('9798c7f949d1137949e69a8c226415f9'
'555b08c8aca9883e7916dc1fe11a8aea')
source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz")
#'kchmview-build-fix.diff')
md5sums=('619bae91bcaf9cc81d9907f0d593798f')
#'555b08c8aca9883e7916dc1fe11a8aea')
build() {
cd build-${pkgver}
cd "${srcdir}/${pkgname}-${pkgver}"
# got patch from http://bugs.gentoo.org/320191
patch -Np1 -i ${srcdir}/kchmview-build-fix.diff
#patch -Np1 -i ${srcdir}/kchmview-build-fix.diff
cmake . -DCMAKE_INSTALL_PREFIX=/usr
@ -35,12 +35,12 @@ build() {
}
package() {
cd build-${pkgver}
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR=${pkgdir} install
#icon file
install -D -m644 ${srcdir}/build-${pkgver}/packages/${pkgname}.png \
install -D -m644 ${srcdir}/${pkgname}-${pkgver}/packages/${pkgname}.png \
${pkgdir}/usr/share/pixmaps/${pkgname}.png
#msits.protocol file provided by kdegraphics package

View File

@ -5,17 +5,17 @@
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=kile
pkgver=2.1b4
pkgver=2.1b5
pkgrel=1
pkgdesc="A user friendly TeX/LaTeX frontend for KDE."
arch=("i686" "x86_64")
license=('GPL2')
url="http://kile.sourceforge.net/"
depends=('kdelibs' 'texlive-core')
depends=('kdelibs' 'texlive-core' 'docbook-xsl')
makedepends=('cmake' 'automoc4')
install=kile.install
source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2")
md5sums=('8585c196b7bff68c5cffb924a98b8783')
md5sums=('281ca92d32424671242509e514f20c8c')
build() {
cd ${srcdir}

View File

@ -9,7 +9,7 @@ source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=lastfmsubmitd
pkgver=1.0.6
pkgrel=2
pkgrel=3
pkgdesc="A Last.fm 'plugin' client for MPD, implemented in Python."
arch=(i686 x86_64)
url="http://www.red-bean.com/~decklin/software/lastfmsubmitd/"

37
perl-file-next/PKGBUILD Normal file
View File

@ -0,0 +1,37 @@
#
# Chakra 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=perl-file-next
_pkgname=File-Next
pkgver=1.06
pkgrel=1
pkgdesc='File::Next - File-finding iterator'
arch=('any')
license=('GPL' 'PerlArtistic')
url="http://search.cpan.org/dist/${_pkgname}"
depends=('perl>=5.10.0')
options=(!emptydirs)
source=(http://search.cpan.org/CPAN/authors/id/P/PE/PETDANCE/${_pkgname}-$pkgver.tar.gz)
md5sums=('8d901b18e40c477acd18a6ea0fd7de64')
build() {
cd "$srcdir/${_pkgname}-$pkgver"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
package() {
cd "$srcdir/${_pkgname}-$pkgver"
make install DESTDIR="$pkgdir"
find "$pkgdir" -name perllocal.pod -delete
find "$pkgdir" -name .packlist -delete
}

12
rsibreak/ChangeLog Normal file
View File

@ -0,0 +1,12 @@
2010-09-15 Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
* 0.10-2 :
'docbook-xml' added as makedependency.
2010-09-13 Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
* 0.10-1 :
Imported from AUR.
Fixed.
Gentoo patch applied.
Added ChangeLog.

35
rsibreak/PKGBUILD Normal file
View File

@ -0,0 +1,35 @@
#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=rsibreak
pkgver=0.11
pkgrel=1
pkgdesc="A small utility to help prevent Repetive Strain Injury."
arch=('i686' 'x86_64')
url="http://www.rsibreak.org/"
license=('GPL2')
depends=('libxss' 'kdelibs' 'oxygen-icons')
makedepends=('automoc4' 'cmake' 'docbook-xsl')
# options=('libtool')
changelog=ChangeLog
source=("http://www.rsibreak.org/files/$pkgname-$pkgver.tar.bz2")
md5sums=('d5dd540efd18900aa508eee381bcaafd')
build() {
cd $srcdir/$pkgname-$pkgver
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
..
make
}
package() {
cd $srcdir/$pkgname-$pkgver/build
make DESTDIR=$pkgdir install
}

View File

@ -8,7 +8,7 @@ source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=sigil
_pkgname=Sigil
pkgver=0.3.3
pkgver=0.3.4
pkgrel=1
pkgdesc="A multi-platform WYSIWYG ebook editor. It is designed to edit books in ePub format. "
arch=('i686' 'x86_64')
@ -19,7 +19,7 @@ makedepends=('cmake')
install=sigil.install
source=(http://${pkgname}.googlecode.com/files/${_pkgname}-${pkgver}-Code.zip
${pkgname}.desktop)
md5sums=('a8573e877f3bcf250ee29bd934939e35'
md5sums=('6f83a8ee12d6f5918fe50b8314e63760'
'3034d3948eb01804db7a71f89a3eba7d')
build() {