summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--amavisd-new/PKGBUILD47
-rw-r--r--amavisd-new/amavisd77
-rw-r--r--amavisd-new/amavisd-new.install35
-rw-r--r--awstats/cron.awstats6
-rw-r--r--docbook2odf/PKGBUILD41
-rw-r--r--perl-compress-zlib/PKGBUILD27
-rw-r--r--perl-unix-syslog/PKGBUILD32
-rw-r--r--perl-unix-syslog/perl-unix-syslog.install19
8 files changed, 284 insertions, 0 deletions
diff --git a/amavisd-new/PKGBUILD b/amavisd-new/PKGBUILD
new file mode 100644
index 0000000..88f8c3d
--- /dev/null
+++ b/amavisd-new/PKGBUILD
@@ -0,0 +1,47 @@
+# Contributor: Piotr Beling <qwak@stud.ics.p.lodz.pl>
+# Based on amavisd-new by:
+# Contributor: Wael Nasreddine <wael@phoenixlinux.org>
+# Maintainer: Guillermo A. Amaral <me@guillermoamaral.com> (thewonka)
+
+pkgname='amavisd-new'
+pkgver='2.6.4'
+pkgrel=2
+pkgdesc='A high-performance interface between mailer (MTA) and content checkers. Written in Perl for maintainability.'
+url='http://www.ijs.si/software/amavisd/'
+arch=('any')
+privides=('amavisdnew')
+conflicts=('amavisdnew')
+replaces=('amavisdnew')
+backup=('etc/amavisd/amavisd.conf')
+depends=('perl' 'perl-mime-tools' 'perl-archive-tar' 'perl-archive-zip' 'perl-compress-zlib' 'perl-net-server' 'perl-io-stringy' 'perl-berkeleydb' 'perl-unix-syslog' 'perl-convert-tnef' 'perl-convert-uulib' 'perl-crypt-openssl-rsa')
+#'perl-mail-dkim>0.31' #enable it when possible
+source=("http://www.ijs.si/software/amavisd/amavisd-new-${pkgver}.tar.gz" 'amavisd')
+install=${pkgname}.install
+license=('GPL')
+
+build()
+{
+ cd ${startdir}/src/amavisd-new-${pkgver}
+
+ sed -i \
+ -e "s/\\\$daemon_user = 'vscan'/\\\$daemon_user = 'amavis'/g" \
+ -e "s/\\\$daemon_group = 'vscan'/\\\$daemon_group = 'amavis'/g" \
+ -e "sX# \\\$MYHOME = '/var/amavis'X\\\$MYHOME = '/home/amavis'Xg" \
+ -e "sX\\\$QUARANTINEDIR = '/var/virusmails'X\\\$QUARANTINEDIR = '/home/amavis/quarantine'Xg" \
+ amavisd.conf
+
+ #must disable dkim ver. now becouse perl dkim package in comunity is old
+ sed -i \
+ -e "s/\\\$enable_dkim_verification = 1/\\\$enable_dkim_verification = 0/g" \
+ -e "s/\\\$enable_dkim_signing = 1/\\\$enable_dkim_signing = 0/g" \
+ amavisd.conf
+
+ install -D -m755 amavisd ${startdir}/pkg/usr/sbin/amavisd || return 1
+ install -D -m644 amavisd.conf ${startdir}/pkg/etc/amavisd/amavisd.conf || return 1
+ install -D -m644 amavisd.conf-default ${startdir}/pkg/etc/amavisd/amavisd.conf-default || return 1
+ install -D -m644 amavisd.conf-sample ${startdir}/pkg/etc/amavisd/amavisd.conf-sample || return 1
+ install -D -m755 ${startdir}/src/amavisd ${startdir}/pkg/etc/rc.d/amavisd || return 1
+}
+
+md5sums=('03d31657f14cd64c1cb38786214234b4'
+ '160b24ef7742babe70832ecdc44fcd52')
diff --git a/amavisd-new/amavisd b/amavisd-new/amavisd
new file mode 100644
index 0000000..3061535
--- /dev/null
+++ b/amavisd-new/amavisd
@@ -0,0 +1,77 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+DAEMON_CONF="/etc/amavisd/amavisd.conf"
+
+PID=`pidof -o %PPID amavisd`
+
+case "$1" in
+
+ start)
+
+ stat_busy "Starting amavisd"
+
+ [ -z "$PID" ] && /usr/sbin/amavisd -c ${DAEMON_CONF} &> /dev/null
+
+ if [ $? -gt 0 ]; then
+
+ stat_fail
+
+ else
+
+ add_daemon amavisd
+
+ stat_done
+
+ fi
+
+ ;;
+
+ stop)
+
+ stat_busy "Stopping amavisd"
+
+ [ ! -z "$PID" ] && kill $PID &> /dev/null
+
+ if [ $? -gt 0 ]; then
+
+ stat_fail
+
+ else
+
+ rm_daemon amavisd
+ stat_done
+
+ fi
+
+ ;;
+
+ restart)
+
+ $0 stop
+
+ sleep 3
+
+ $0 start
+
+ ;;
+
+ reload)
+
+ stat_busy "Reloading amavisd"
+
+ /usr/sbin/amavisd -c ${DAEMON_CONF} reload
+
+ stat_done
+
+ ;;
+
+ *)
+ echo "usage: $0 {start|stop|restart|reload}"
+ ;;
+
+esac
+
+exit 0
diff --git a/amavisd-new/amavisd-new.install b/amavisd-new/amavisd-new.install
new file mode 100644
index 0000000..afa5b2e
--- /dev/null
+++ b/amavisd-new/amavisd-new.install
@@ -0,0 +1,35 @@
+post_install()
+{
+
+ [ -z "`grep '^amavis::' /etc/group`" ] && groupadd -g 333 amavis >& /dev/null
+
+ [ -z "`grep '^amavis:' /etc/passwd`" ] && useradd -u 333 -d /home/amavis -g amavis -s /bin/false amavis
+
+ [ ! -d /home/amavis ] && mkdir /home/amavis
+
+ [ ! -d /home/amavis/tmp ] && mkdir /home/amavis/tmp
+
+ [ ! -d /home/amavis/var ] && mkdir /home/amavis/var
+
+ [ ! -d /home/amavis/db ] && mkdir /home/amavis/db
+
+ [ ! -d /home/amavis/quarantine ] && mkdir /home/amavis/quarantine
+
+ chown -R amavis:amavis /home/amavis
+
+ chmod -R 750 /home/amavis
+
+}
+
+post_upgrade()
+{
+
+ post_install
+
+}
+
+op=$1
+
+shift
+
+$op $*
diff --git a/awstats/cron.awstats b/awstats/cron.awstats
new file mode 100644
index 0000000..ccec1cf
--- /dev/null
+++ b/awstats/cron.awstats
@@ -0,0 +1,6 @@
+#!/bin/sh
+/usr/share/awstats/tools/awstats_updateall.pl now \
+ -configdir=/etc/awstats \
+ -awstatsprog=/srv/http/awstats/cgi-bin/awstats.pl > /dev/null
+
+chmod -R og+r /var/lib/awstats
diff --git a/docbook2odf/PKGBUILD b/docbook2odf/PKGBUILD
new file mode 100644
index 0000000..cdeff81
--- /dev/null
+++ b/docbook2odf/PKGBUILD
@@ -0,0 +1,41 @@
+# Contributor: Mathieu Clabaut <mathieu.clabaut@gmail.com>
+pkgname=docbook2odf
+pkgver=0.244
+pkgrel=2
+pkgdesc="toolkit that automaticaly converts DocBook to OASIS OpenDocument"
+arch=(i686 x86_64)
+url="http://open.comsultia.com/docbook2odf/"
+license=('GPL2')
+depends=('libxslt' 'perl-xml-libxslt' 'zip' 'perl-archive-zip')
+makedepends=()
+provides=('docbook2odf')
+conflicts=()
+replaces=()
+backup=()
+install=
+source=(http://open.comsultia.com/docbook2odf/dwn/${pkgname}-${pkgver}.tar.gz)
+md5sums=('3b285dc4d6298beb12818a350776751f')
+
+noextract=()
+build() {
+ src=$startdir/src/docbook2odf-${pkgver}
+ dst=$startdir/pkg
+ mkdir -p "$dst/usr/share/docbook2odf/examples"
+ mkdir -p "$dst/usr/bin"
+ mkdir -p "$dst/usr/share/applications"
+ mkdir -p "$dst/usr/share/man/man1"
+ install -m0644 $src/bindings/desktop/*.desktop $dst/usr/share/applications
+ install -m0644 $src/docs/docbook2odf.1 $dst/usr/share/man/man1/
+ install -m0644 $src/examples/* $dst/usr/share/docbook2odf/examples
+ install -m0755 $src/utils/docbook2odf $dst/usr/bin
+ dst=$dst/usr/share/docbook2odf/xsl
+ mkdir -p $dst/document-content
+ install -m0644 $src/xsl/* $dst/
+ install -m0644 $src/xsl/document-content/* $dst/document-content/
+ mkdir -p $dst/document-styles
+ install -m0644 $src/xsl/document-styles/* $dst/document-styles/
+ mkdir -p $dst/overlay
+ install -m0644 $src/xsl/overlay/* $dst/overlay/
+ mkdir -p $dst/common
+ install -m0644 $src/xsl/common/* $dst/common/
+}
diff --git a/perl-compress-zlib/PKGBUILD b/perl-compress-zlib/PKGBUILD
new file mode 100644
index 0000000..ed9d427
--- /dev/null
+++ b/perl-compress-zlib/PKGBUILD
@@ -0,0 +1,27 @@
+pkgname=perl-compress-zlib
+_realname=Compress-Zlib
+pkgver=2.015
+pkgrel=1
+pkgdesc="Perl interface to zlib compression library"
+arch=(i686 x86_64)
+license=('PerlArtistic')
+url="http://search.cpan.org/dist/${_realname}/"
+depends=('perl>=5.10.0')
+options=(!emptydirs)
+#http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/Compress-Zlib-2.015.tar.gz
+source=(http://www.cpan.org/authors/id/P/PM/PMQS/${_realname}-${pkgver}.tar.gz)
+replaces=('compress-zlib')
+provides=('compress-zlib')
+md5sums=('689ba2cc399b019d0bf76a0575c32947')
+
+build() {
+ cd ${srcdir}/${_realname}-${pkgver}
+ # install module in vendor directories.
+ perl Makefile.PL INSTALLDIRS=vendor || return 1
+ make || return 1
+ make install DESTDIR=${pkgdir} || return 1
+
+ # remove perllocal.pod and .packlist
+ find ${pkgdir} -name perllocal.pod -delete
+ find ${pkgdir} -name .packlist -delete
+}
diff --git a/perl-unix-syslog/PKGBUILD b/perl-unix-syslog/PKGBUILD
new file mode 100644
index 0000000..b6be3de
--- /dev/null
+++ b/perl-unix-syslog/PKGBUILD
@@ -0,0 +1,32 @@
+# Contributor: Piotr Beling <qwak@w8.pl>
+# Contributor: Wael Nasreddine <wael@phoenixlinux.org>
+# Maintainer: Guillermo A. Amaral <me@guillermoamaral.com> (thewonka)
+
+pkgname='perl-unix-syslog'
+pkgver='0.100'
+pkgrel='2'
+pkgdesc='Perl interface to the UNIX syslog calls.'
+url='http://search.cpan.org/~mharnisch/Unix-Syslog-0.100/'
+arch=('i686' 'x86_64')
+depends=('perl>=5.8.4')
+source=("http://search.cpan.org/CPAN/authors/id/M/MH/MHARNISCH/Unix-Syslog-${pkgver}.tar.gz")
+md5sums=('655d2e04a043b3e92d1bb47caf8e8a3b')
+install="${pkgname}.install"
+
+build()
+{
+
+ cd ${startdir}/src/Unix-Syslog-${pkgver}
+
+ eval $(perl -V:archname)
+
+ perl Makefile.PL INSTALLARCHLIB=/usr/lib/perl5/current/${archname} INSTALLSITELIB=/usr/lib/perl5/site_perl/current INSTALLSITEARCH=/usr/lib/perl5/site_perl/current/${archname}
+
+ make || return 1
+
+ make DESTDIR=${startdir}/pkg install || return 1
+
+ find ${startdir}/pkg -name '.packlist' -exec rm -f {} \;
+ find ${startdir}/pkg -name 'perllocal.pod' -exec rm -f {} \;
+
+}
diff --git a/perl-unix-syslog/perl-unix-syslog.install b/perl-unix-syslog/perl-unix-syslog.install
new file mode 100644
index 0000000..641c385
--- /dev/null
+++ b/perl-unix-syslog/perl-unix-syslog.install
@@ -0,0 +1,19 @@
+post_install()
+{
+
+ echo -n "module test... "
+
+ perl -mUnix::Syslog -e "exit 0;" 2> /dev/null && echo 'pass.' || echo 'fail.'
+
+}
+
+post_upgrade()
+{
+ post_install
+}
+
+op=$1
+
+shift
+
+$op $*