Adding ack, clamav, graphviz, kgraphviewer, konq-plugins, perl-file-next, update gtk-integration, kchmviewer

This commit is contained in:
abveritas 2011-01-14 19:31:50 +00:00
parent 8898dba2df
commit b0037af82e
16 changed files with 414 additions and 14 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
}

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
}

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

43
graphviz/PKGBUILD Normal file
View File

@ -0,0 +1,43 @@
#
# Chakra 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=graphviz
pkgver=2.26.3
pkgrel=1
pkgdesc="Creates acircular graph images"
arch=('i686' 'x86_64')
license=('CPL')
depends=('gd>=2.0.35' 'librsvg>=2.22.3' 'libxaw>=1.0.5' 'ghostscript>=9.00')
url="http://www.graphviz.org/"
options=('!libtool')
source=(${url}/pub/${pkgname}/stable/SOURCES/${pkgname}-${pkgver}.tar.gz)
install=graphviz.install
md5sums=('6f45946fa622770c45609778c0a982ee')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./configure --prefix=/usr --without-gnomeui --docdir=/usr/share/doc/gvkp \
--disable-tcl --disable-sharp --disable-ruby --disable-python \
--disable-lua --disable-guile --disable-perl || return 1
#--bindir=/bindir --libdir=/libdir --includedir=/includedir --mandir=/mandir \
#--infodir=/infodir \
#--docdir=/docdir --htmldir=/htmldir --dvidir=/dvidir \
#--pdfdir=/pdfdir --psdir=/psdir
make || return 1
make DESTDIR="${pkgdir}" install || return 1
#Fix a wrong file location for x86_64
rm -rf ${pkgdir}/usr/lib64
# Fix non-fhs doc files.
cd ${pkgdir}/usr/share
mkdir doc
mv graphviz/doc doc/graphviz
}

17
graphviz/graphviz.install Normal file
View File

@ -0,0 +1,17 @@
# arg 1: the new package version
post_install() {
# Create plugin config /usr/lib/graphviz/config6
rm -f usr/lib/graphviz/config{,6}
usr/bin/dot -c
}
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
post_install $1
}
# arg 1: the old package version
pre_remove() {
rm -f usr/lib/graphviz/config{,6}
}

View File

@ -5,12 +5,12 @@
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=gtk-integration
pkgver=2.0
pkgver=2.2
pkgrel=1
iconspkgver=2.5.0
widgetpkgver=1.0.0
_colors=3.0
cgcver=1.0
cgcver=1.2
pkgdesc="A bundles and Gtk apps integration package for Chakra GNU/Linux"
arch=('i686' 'x86_64')
@ -31,7 +31,7 @@ source=("http://download.tuxfamily.org/oxygenrefit2/oxygen-refit-2-$iconspkgver.
md5sums=('60f32f98d8d33d82db79b6bb934f0580'
'441398b4569ce0282c39e5c21cb16dfc'
'1eeebdee9afda81b462e909b7979886e')
'8c1942d6b57dc691996a3728bce3d115')
function create_install() {
cat > "${startdir}/${pkgname}.install" <<EOF

View File

@ -1,7 +1,7 @@
post_install() {
cat <<-'EOF'
GTK - Integration v2.0-1
GTK - Integration v2.2-1
You can install our aditional engines:
--------------------------------------

View File

@ -3,13 +3,12 @@
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# maintainer: Giuseppe Calà <jiveaxe@gmail.com>
# include global config
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')
@ -19,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
@ -36,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

35
kgraphviewer/PKGBUILD Normal file
View File

@ -0,0 +1,35 @@
#
# 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=kgraphviewer
pkgver=2.1.1
pkgrel=1
pkgdesc="A Graphviz dot graph file viewer for KDE"
arch=('i686' 'x86_64')
url='http://opendesktop.org/content/show.php?content=23999'
license=('GPL' 'FDL')
depends=('kdebase-runtime' 'kdepimlibs' 'graphviz')
makedepends=('cmake' 'automoc4' 'boost' 'docbook-xsl')
install=${pkgname}.install
source=("https://api.opensuse.org/public/source/home:milianw:kdeapps/${pkgname}/${pkgname}-${pkgver}.tar.gz")
md5sums=('6cc548221d8a741d13929993615c00f3')
build(){
cd ${srcdir}
mkdir build
cd build
cmake ../${pkgname}-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
cd ${srcdir}/build
make DESTDIR=${pkgdir} install
}

View File

@ -0,0 +1,11 @@
post_install() {
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
}
post_upgrade() {
post_install
}
post_remove() {
post_install
}

37
konq-plugins/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=konq-plugins
pkgver=svn1183577
pkgrel=1
pkgdesc="Extra plugins for Konqueror"
arch=('i686' 'x86_64')
url='http://www.kde.org'
license=('LGPL')
depends=('kdebase-konqueror' 'tidyhtml' 'kwebkitpart')
makedepends=('pkgconfig' 'cmake' 'automoc4' 'docbook-xsl')
install=${pkgname}.install
# svn co -q svn://websvn.kde.org:443/home/kde/trunk/extragear/base/konq-plugins
source=("ftp://ftp.archlinux.org/other/kde/${pkgname}-${pkgver}.tar.bz2")
md5sums=('7eef9995b5d71c1156922bd623aca5e1')
build() {
cd ${srcdir}
mkdir build
cd build
cmake ../${pkgname} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
cd ${srcdir}/build
make DESTDIR=${pkgdir} install
}

View File

@ -0,0 +1,11 @@
post_install() {
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
}
post_upgrade() {
post_install
}
post_remove() {
post_install
}

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
}