diff options
Diffstat (limited to 'testing')
35 files changed, 947 insertions, 0 deletions
diff --git a/testing/amavisd-new/APKBUILD b/testing/amavisd-new/APKBUILD new file mode 100644 index 0000000000..ba60326be9 --- /dev/null +++ b/testing/amavisd-new/APKBUILD @@ -0,0 +1,47 @@ +# Contributor: Leonardo Arena <rnalrd@gmail.com> +# Maintainer: Leonardo Arena <rnalrd@gmail.com> +pkgname=amavisd-new +pkgver=2.6.3 +pkgrel=0 +pkgdesc="High-performance interface between mailer (MTA) and content checkers" +url="http://www.ijs.si/software/amavisd" +license="GPL-2" +depends="uclibc sed file perl perl-archive-zip perl-convert-tnef +perl-convert-uulib perl-mime-tools perl-mail-tools perl-net-server +perl-io-stringy perl-unix-syslog perl-db perl-mail-dkim" +makedepends="" +install="$pkgname.post-install" +subpackages="" +source="http://www.ijs.si/software/amavisd/$pkgname-$pkgver.tar.gz +$pkgname.post-install" + +build() { + cd "$srcdir/$pkgname-$pkgver" + + HOME=/var/amavis + QUARANTINE=$HOME/quarantine + USER=amavis + GROUP=amavis + DIRS="$HOME $HOME/tmp $HOME/var $HOME/db $HOME/home $QUARANTINE" + CONFIG=/etc/amavisd.conf + + for dir in $DIRS + do + if [ ! -d "${pkgdir}$dir" ]; then + mkdir -p ${pkgdir}$dir + fi + done + + install -m 755 -o root -D amavisd $pkgdir/usr/sbin/amavisd + sed -e "s:^.*\$MYHOME = .*$:\$MYHOME = '$HOME';:" \ + -e 's:^.*\$TEMPBASE = .*$:\$TEMPBASE = "\$MYHOME/tmp";:' \ + -e 's:^.*\$db_home = .*$:\$db_home = "$MYHOME/db";:' \ + -e "s:^.*\$QUARANTINEDIR = .*$:\$QUARANTINEDIR = '$QUARANTINE';:" \ + -e "s:^.*\$daemon_user = 'vscan';\(.*\)$:\$daemon_user = 'amavis';\1:" \ + -e "s:^.*\$daemon_group = 'vscan';\(.*\)$:\$daemon_group = 'amavis';\1:" < amavisd.conf > amavisd.conf.alpine + install -m 640 -o root -D amavisd.conf.alpine ${pkgdir}${CONFIG} + install -m 755 -D ../../amavisd.init $pkgdir/etc/init.d/amavisd +} + +md5sums="02b0bd38b40258841c60479603dc6842 amavisd-new-2.6.3.tar.gz +4b5cb0c750ab11d9d211a4e389545d6d amavisd-new.post-install" diff --git a/testing/amavisd-new/amavisd-new.post-install b/testing/amavisd-new/amavisd-new.post-install new file mode 100755 index 0000000000..56cad39f52 --- /dev/null +++ b/testing/amavisd-new/amavisd-new.post-install @@ -0,0 +1,14 @@ +#!/bin/sh + +HOME=/var/amavis +QUARANTINE=$HOME/quarantine +USER=amavis +GROUP=amavis +DIRS="$HOME $HOME/tmp $HOME/var $HOME/db $HOME/home $QUARANTINE" +CONFIG=/etc/amavisd.conf + +addgroup $USER +adduser -h $HOME -s /bin/false -G $GROUP -D $USER +chown -R $USER:$GROUP $HOME +chmod -R 750 $HOME +chown root:$GROUP $CONFIG diff --git a/testing/amavisd-new/amavisd.init b/testing/amavisd-new/amavisd.init new file mode 100644 index 0000000000..55a4654994 --- /dev/null +++ b/testing/amavisd-new/amavisd.init @@ -0,0 +1,21 @@ +#!/sbin/runscript + +depend() { + need net + use logger + use antivirus + before mta +} + +start() { + ebegin "Starting amavisd-new" + start-stop-daemon --start --quiet --name amavisd --pidfile /var/amavis/amavisd.pid \ + --exec /usr/sbin/amavisd + eend $? +} + +stop() { + ebegin "Stopping amavisd-new" + start-stop-daemon --stop --quiet --pidfile /var/run/amavis/amavisd.pid + eend $? +} diff --git a/testing/perl-archive-zip/APKBUILD b/testing/perl-archive-zip/APKBUILD new file mode 100644 index 0000000000..2f78683eec --- /dev/null +++ b/testing/perl-archive-zip/APKBUILD @@ -0,0 +1,26 @@ +# Contributor: Leonardo Arena <rnalrd@gmail.com> +# Maintainer: Leonardo Arena <rnalrd@gmail.com> +pkgname=perl-archive-zip +_realname=Archive-Zip +pkgver=1.26 +pkgrel=0 +pkgdesc="Provide a perl interface to ZIP archive files." +url="http://search.cpan.org/dist/Archive-Zip/" +license="GPL PerlArtistic" +depends="perl" +makedepends="perl-dev" +install= +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/$_realname-$pkgver.tar.gz" + +build() { + cd "$srcdir/$_realname-$pkgver" + + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + make || return 1 + make DESTDIR="$pkgdir" install + # creates file collision among perl modules + rm $pkgdir/usr/lib/perl5/5.10.0/i686-linux/perllocal.pod +} + +md5sums="a2e1cc1d99dbaebc41421295c93f61b5 Archive-Zip-1.26.tar.gz" diff --git a/testing/perl-convert-binhex/APKBUILD b/testing/perl-convert-binhex/APKBUILD new file mode 100644 index 0000000000..e0cc0b30d1 --- /dev/null +++ b/testing/perl-convert-binhex/APKBUILD @@ -0,0 +1,26 @@ +# Contributor: Leonardo Arena <rnalrd@gmail.com> +# Maintainer: Leonardo Arena <rnalrd@gmail.com> +pkgname=perl-convert-binhex +_realname=Convert-BinHex +pkgver=1.119 +pkgrel=0 +pkgdesc="Extract data from Macintosh BinHex files" +url="http://search.cpan.org/~eryq/Convert-BinHex-1.119/" +license="Unknown" +depends="perl" +makedepends="perl-dev" +install= +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/E/ER/ERYQ/$_realname-$pkgver.tar.gz" + +build() { + cd "$srcdir/$_realname-$pkgver" + + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + make || return 1 + make DESTDIR="$pkgdir" install + # creates file collision among perl modules + rm $pkgdir/usr/lib/perl5/5.10.0/i686-linux/perllocal.pod +} + +md5sums="ba70ad1772abac6270078f28197a7961 Convert-BinHex-1.119.tar.gz" diff --git a/testing/perl-convert-tnef/APKBUILD b/testing/perl-convert-tnef/APKBUILD new file mode 100644 index 0000000000..352e26e728 --- /dev/null +++ b/testing/perl-convert-tnef/APKBUILD @@ -0,0 +1,26 @@ +# Contributor: Leonardo Arena <rnalrd@gmail.com> +# Maintainer: Leonardo Arena <rnalrd@gmail.com> +pkgname=perl-convert-tnef +_realname=Convert-TNEF +pkgver=0.17 +pkgrel=0 +pkgdesc="Perl module to read TNEF files" +url="http://search.cpan.org/~dougw/Convert-TNEF-0.17/" +license="Unknown" +depends="perl" +makedepends="perl-dev" +install= +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/D/DO/DOUGW/$_realname-$pkgver.tar.gz" + +build() { + cd "$srcdir/$_realname-$pkgver" + + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + make || return 1 + make DESTDIR="$pkgdir" install + # creates file collision among perl modules + rm $pkgdir/usr/lib/perl5/5.10.0/i686-linux/perllocal.pod +} + +md5sums="31cddf42fae9495b4a686b17ec68d7e0 Convert-TNEF-0.17.tar.gz" diff --git a/testing/perl-convert-uulib/APKBUILD b/testing/perl-convert-uulib/APKBUILD new file mode 100644 index 0000000000..b35d517dea --- /dev/null +++ b/testing/perl-convert-uulib/APKBUILD @@ -0,0 +1,26 @@ +# Contributor: Leonardo Arena <rnalrd@gmail.com> +# Maintainer: Leonardo Arena <rnalrd@gmail.com> +pkgname=perl-convert-uulib +_realname=Convert-UUlib +pkgver=1.12 +pkgrel=0 +pkgdesc="Perl interface to the uulib library" +url="http://search.cpan.org/~mlehmann/Convert-UUlib-1.12/UUlib.pm" +license="Artistic GPL2" +depends="perl" +makedepends="perl-dev" +install= +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/$_realname-$pkgver.tar.gz" + +build() { + cd "$srcdir/$_realname-$pkgver" + + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + make || return 1 + make DESTDIR="$pkgdir" install + # creates file collision among perl modules + rm $pkgdir/usr/lib/perl5/5.10.0/i686-linux/perllocal.pod +} + +md5sums="360d29db09aa7692d8873b336b7ec9d7 Convert-UUlib-1.12.tar.gz" diff --git a/testing/perl-crypt-openssl-random/APKBUILD b/testing/perl-crypt-openssl-random/APKBUILD new file mode 100644 index 0000000000..0b1e8ea995 --- /dev/null +++ b/testing/perl-crypt-openssl-random/APKBUILD @@ -0,0 +1,26 @@ +# Contributor: Leonardo Arena <rnalrd@gmail.com> +# Maintainer: Leonardo Arena <rnalrd@gmail.com> +pkgname=perl-crypt-openssl-random +_realname=Crypt-OpenSSL-Random +pkgver=0.04 +pkgrel=0 +pkgdesc="RSA encoding and decoding, using the openSSL libraries" +url="http://search.cpan.org/~iroberts/Crypt-OpenSSL-Random-0.04/" +license="Unknown" +depends="perl" +makedepends="perl-dev openssl-dev" +install= +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/I/IR/IROBERTS/$_realname-$pkgver.tar.gz" + +build() { + cd "$srcdir/$_realname-$pkgver" + + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + make || return 1 + make DESTDIR="$pkgdir" install + # creates file collision among perl modules + rm $pkgdir/usr/lib/perl5/5.10.0/i686-linux/perllocal.pod +} + +md5sums="c56ac5dbdd46122eb9b8da59613b7b0a Crypt-OpenSSL-Random-0.04.tar.gz" diff --git a/testing/perl-crypt-openssl-rsa/APKBUILD b/testing/perl-crypt-openssl-rsa/APKBUILD new file mode 100644 index 0000000000..518464fbed --- /dev/null +++ b/testing/perl-crypt-openssl-rsa/APKBUILD @@ -0,0 +1,26 @@ +# Contributor: Leonardo Arena <rnalrd@gmail.com> +# Maintainer: Leonardo Arena <rnalrd@gmail.com> +pkgname=perl-crypt-openssl-rsa +_realname=Crypt-OpenSSL-RSA +pkgver=0.25 +pkgrel=0 +pkgdesc="RSA encoding and decoding, using the openSSL libraries" +url="http://search.cpan.org/~iroberts/Crypt-OpenSSL-RSA-0.25/" +license="Unknown" +depends="perl perl-crypt-openssl-random" +makedepends="perl-dev" +install= +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/I/IR/IROBERTS/$_realname-$pkgver.tar.gz" + +build() { + cd "$srcdir/$_realname-$pkgver" + + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + make || return 1 + make DESTDIR="$pkgdir" install + # creates file collision among perl modules + rm $pkgdir/usr/lib/perl5/5.10.0/i686-linux/perllocal.pod +} + +md5sums="fdf19c9093f47cffb851ae937d053c14 Crypt-OpenSSL-RSA-0.25.tar.gz" diff --git a/testing/perl-db/APKBUILD b/testing/perl-db/APKBUILD new file mode 100644 index 0000000000..929d587227 --- /dev/null +++ b/testing/perl-db/APKBUILD @@ -0,0 +1,26 @@ +# Contributor: Leonardo Arena <rnalrd@gmail.com> +# Maintainer: Leonardo Arena <rnalrd@gmail.com> +pkgname=perl-db +_realname=BerkeleyDB +pkgver=0.38 +pkgrel=0 +pkgdesc="Perl extension for Berkeley DB version 2, 3 or 4" +url="http://search.cpan.org/~pmqs/BerkeleyDB-0.38/" +license="GPL PerlArtistic" +depends="perl db" +makedepends="perl-dev db-dev" +install= +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/$_realname-$pkgver.tar.gz" + +build() { + cd "$srcdir/$_realname-$pkgver" + + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + make || return 1 + make DESTDIR="$pkgdir" install + # creates file collision among perl modules + rm $pkgdir/usr/lib/perl5/5.10.0/i686-linux/perllocal.pod +} + +md5sums="33a0c1a9d566a3f5fc71601a165d8335 BerkeleyDB-0.38.tar.gz" diff --git a/testing/perl-db_file/APKBUILD b/testing/perl-db_file/APKBUILD new file mode 100644 index 0000000000..7d3edc3ab1 --- /dev/null +++ b/testing/perl-db_file/APKBUILD @@ -0,0 +1,26 @@ +# Contributor: Leonardo Arena <rnalrd@gmail.com> +# Maintainer: Leonardo Arena <rnalrd@gmail.com> +pkgname=perl-db_file +_realname=DB_File +pkgver=1.820 +pkgrel=0 +pkgdesc="Perl5 access to Berkeley DB" +url="http://search.cpan.org/~pmqs/DB_File-1.820/" +license="GPL PerlArtistic" +depends="perl db" +makedepends="perl-dev db-dev" +install= +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/$_realname-$pkgver.tar.gz" + +build() { + cd "$srcdir/$_realname-$pkgver" + + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + make || return 1 + make DESTDIR="$pkgdir" install + # creates file collision among perl modules + rm $pkgdir/usr/lib/perl5/5.10.0/i686-linux/perllocal.pod +} + +md5sums="28979bee29d8075b0dffab02fe29df6e DB_File-1.820.tar.gz" diff --git a/testing/perl-digest-sha1/APKBUILD b/testing/perl-digest-sha1/APKBUILD new file mode 100644 index 0000000000..0b0909c5dc --- /dev/null +++ b/testing/perl-digest-sha1/APKBUILD @@ -0,0 +1,26 @@ +# Contributor: Leonardo Arena <rnalrd@gmail.com> +# Maintainer: Leonardo Arena <rnalrd@gmail.com> +pkgname=perl-digest-sha1 +_realname=Digest-SHA1 +pkgver=2.12 +pkgrel=0 +pkgdesc="Perl interface to the SHA-1 algorithm" +url="http://search.cpan.org/~gaas/Digest-SHA1-2.12/" +license="GPL PerlArtistic" +depends="perl" +makedepends="perl-dev" +install= +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/$_realname-$pkgver.tar.gz" + +build() { + cd "$srcdir/$_realname-$pkgver" + + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + make || return 1 + make DESTDIR="$pkgdir" install + # creates file collision among perl modules + rm $pkgdir/usr/lib/perl5/5.10.0/i686-linux/perllocal.pod +} + +md5sums="eeb0292868801a202bd7ead87b291374 Digest-SHA1-2.12.tar.gz" diff --git a/testing/perl-getopt-long/APKBUILD b/testing/perl-getopt-long/APKBUILD new file mode 100644 index 0000000000..431f52a989 --- /dev/null +++ b/testing/perl-getopt-long/APKBUILD @@ -0,0 +1,26 @@ +# Contributor: Leonardo Arena <rnalrd@gmail.com> +# Maintainer: Leonardo Arena <rnalrd@gmail.com> +pkgname=perl-getopt-long +_realname=Getopt-Long +pkgver=2.38 +pkgrel=0 +pkgdesc="Extended processing of command line options" +url="http://search.cpan.org/~jv/Getopt-Long-2.38/" +license="Unknown" +depends="perl" +makedepends="perl-dev" +install= +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/J/JV/JV/$_realname-$pkgver.tar.gz" + +build() { + cd "$srcdir/$_realname-$pkgver" + + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + make || return 1 + make DESTDIR="$pkgdir" install + # creates file collision among perl modules + rm $pkgdir/usr/lib/perl5/5.10.0/i686-linux/perllocal.pod +} + +md5sums="4d38c78300e79a7fde4700e88759c2b3 Getopt-Long-2.38.tar.gz" diff --git a/testing/perl-html-parser/APKBUILD b/testing/perl-html-parser/APKBUILD new file mode 100644 index 0000000000..fb7ea01255 --- /dev/null +++ b/testing/perl-html-parser/APKBUILD @@ -0,0 +1,26 @@ +# Contributor: Leonardo Arena <rnalrd@gmail.com> +# Maintainer: Leonardo Arena <rnalrd@gmail.com> +pkgname=perl-html-parser +_realname=HTML-Parser +pkgver=3.60 +pkgrel=0 +pkgdesc="Parse section of HTML documents" +url="http://search.cpan.org/~gaas/HTML-Parser-3.60/" +license="GPL PerlArtistic" +depends="perl" +makedepends="perl-dev" +install= +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/$_realname-$pkgver.tar.gz" + +build() { + cd "$srcdir/$_realname-$pkgver" + + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + make || return 1 + make DESTDIR="$pkgdir" install + # creates file collision among perl modules + rm $pkgdir/usr/lib/perl5/5.10.0/i686-linux/perllocal.pod +} + +md5sums="fb97ea7e5bd832b079d8660732f9d8d9 HTML-Parser-3.60.tar.gz" diff --git a/testing/perl-inline/APKBUILD b/testing/perl-inline/APKBUILD new file mode 100644 index 0000000000..f8e350c1da --- /dev/null +++ b/testing/perl-inline/APKBUILD @@ -0,0 +1,26 @@ +# Contributor: Leonardo Arena <rnalrd@gmail.com> +# Maintainer: Leonardo Arena <rnalrd@gmail.com> +pkgname=perl-inline +_realname=Inline +pkgver=0.45 +pkgrel=0 +pkgdesc="Write Perl subroutines in other programming languages" +url="http://search.cpan.org/~sisyphus/Inline-0.45/" +license="Unknown" +depends="perl" +makedepends="perl-dev" +install= +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/S/SI/SISYPHUS/$_realname-$pkgver.tar.gz" + +build() { + cd "$srcdir/$_realname-$pkgver" + + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + make || return 1 + make DESTDIR="$pkgdir" install + # creates file collision among perl modules + rm $pkgdir/usr/lib/perl5/5.10.0/i686-linux/perllocal.pod +} + +md5sums="63140a6c911f1576fdee71ba4457610f Inline-0.45.tar.gz" diff --git a/testing/perl-io-stringy/APKBUILD b/testing/perl-io-stringy/APKBUILD new file mode 100644 index 0000000000..f25ce2164c --- /dev/null +++ b/testing/perl-io-stringy/APKBUILD @@ -0,0 +1,26 @@ +# Contributor: Leonardo Arena <rnalrd@gmail.com> +# Maintainer: Leonardo Arena <rnalrd@gmail.com> +pkgname=perl-io-stringy +_realname=IO-stringy +pkgver=2.110 +pkgrel=0 +pkgdesc="A Perl module for I/O on in-core objects like strings and arrays" +url="http://search.cpan.org/~dskoll/IO-stringy-2.110/" +license="unknown" +depends="perl" +makedepends="perl-dev" +install= +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/D/DS/DSKOLL/$_realname-$pkgver.tar.gz" + +build() { + cd "$srcdir/$_realname-$pkgver" + + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + make || return 1 + make DESTDIR="$pkgdir" install + # creates file collision among perl modules + rm $pkgdir/usr/lib/perl5/5.10.0/i686-linux/perllocal.pod +} + +md5sums="2e6a976cfa5521e815c1fdf4006982de IO-stringy-2.110.tar.gz" diff --git a/testing/perl-mail-clamav/APKBUILD b/testing/perl-mail-clamav/APKBUILD new file mode 100644 index 0000000000..c8ef7ea723 --- /dev/null +++ b/testing/perl-mail-clamav/APKBUILD @@ -0,0 +1,26 @@ +# Contributor: Leonardo Arena <rnalrd@gmail.com> +# Maintainer: Leonardo Arena <rnalrd@gmail.com> +pkgname=perl-mail-clamav +_realname=Mail-ClamAV +pkgver=0.29 +pkgrel=0 +pkgdesc="Perl extension for the clamav virus scanner" +url="http://search.cpan.org/~converter/Mail-ClamAV-0.29/" +license="Unknown" +depends="perl clamav" +makedepends="perl-dev perl-inline perl-parse-recdescent clamav-dev" +install= +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/C/CO/CONVERTER/$_realname-$pkgver.tar.gz" + +build() { + cd "$srcdir/$_realname-$pkgver" + + sed -i -e 's%\(clamav-config --version\)%sh /usr/bin/\1%' Makefile.PL + + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + make -j1 || return 1 + make DESTDIR="$pkgdir" install +} + +md5sums="737ea1c041d9312cdcfe5b85eb45428e Mail-ClamAV-0.29.tar.gz" diff --git a/testing/perl-mail-dkim/APKBUILD b/testing/perl-mail-dkim/APKBUILD new file mode 100644 index 0000000000..7fc9d69ed3 --- /dev/null +++ b/testing/perl-mail-dkim/APKBUILD @@ -0,0 +1,26 @@ +# Contributor: Leonardo Arena <rnalrd@gmail.com> +# Maintainer: Leonardo Arena <rnalrd@gmail.com> +pkgname=perl-mail-dkim +_realname=Mail-DKIM +pkgver=0.36 +pkgrel=0 +pkgdesc="Signs/verifies Internet mail with DKIM/DomainKey signatures" +url="http://search.cpan.org/~jaslong/Mail-DKIM-0.36/" +license="unknown" +depends="perl perl-net-dns perl-net-ip perl-mail-tools perl-crypt-openssl-rsa" +makedepends="perl-dev" +install= +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/J/JA/JASLONG/$_realname-$pkgver.tar.gz" + +build() { + cd "$srcdir/$_realname-$pkgver" + + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + make || return 1 + make DESTDIR="$pkgdir" install + # creates file collision among perl modules + rm $pkgdir/usr/lib/perl5/5.10.0/i686-linux/perllocal.pod +} + +md5sums="b6681a7b3cc21c0976205d4ad616455d Mail-DKIM-0.36.tar.gz" diff --git a/testing/perl-mail-domainkeys/APKBUILD b/testing/perl-mail-domainkeys/APKBUILD new file mode 100644 index 0000000000..be3f83df06 --- /dev/null +++ b/testing/perl-mail-domainkeys/APKBUILD @@ -0,0 +1,26 @@ +# Contributor: Leonardo Arena <rnalrd@gmail.com> +# Maintainer: Leonardo Arena <rnalrd@gmail.com> +pkgname=perl-mail-domainkeys +_realname=Mail-DomainKeys +pkgver=1.0 +pkgrel=0 +pkgdesc="A perl implementation of DomainKeys" +url="http://search.cpan.org/~anthonyu/Mail-DomainKeys-1.0/" +license="Unknown" +depends="perl" +makedepends="perl-dev" +install= +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/A/AN/ANTHONYU/$_realname-$pkgver.tar.gz" + +build() { + cd "$srcdir/$_realname-$pkgver" + + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + make || return 1 + make DESTDIR="$pkgdir" install + # creates file collision among perl modules + rm $pkgdir/usr/lib/perl5/5.10.0/i686-linux/perllocal.pod +} + +md5sums="a4565f21ada263cf34c55f50d7eb9944 Mail-DomainKeys-1.0.tar.gz" diff --git a/testing/perl-mail-spamassassin/APKBUILD b/testing/perl-mail-spamassassin/APKBUILD new file mode 100644 index 0000000000..9c74bff5c3 --- /dev/null +++ b/testing/perl-mail-spamassassin/APKBUILD @@ -0,0 +1,25 @@ +# Contributor: Leonardo Arena <rnalrd@gmail.com> +# Maintainer: Leonardo Arena <rnalrd@gmail.com> +pkgname=perl-mail-spamassassin +_realname=Mail-SpamAssassin +pkgver=3.2.5 +pkgrel=0 +pkgdesc="Spam detector and markup engine" +url="http://search.cpan.org/~jmason/Mail-SpamAssassin-3.2.5/" +license="unknown" +depends="perl perl-digest-sha1 perl-html-parser perl-net-dns perl-db_file +perl-mail-spf razor" +makedepends="perl-dev" +install= +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/J/JM/JMASON/$_realname-$pkgver.tar.gz" + +build() { + cd "$srcdir/$_realname-$pkgver" + + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + make || return 1 + make DESTDIR="$pkgdir" install +} + +md5sums="7fdc1651d0371c4a7f95ac9ae6f828a6 Mail-SpamAssassin-3.2.5.tar.gz" diff --git a/testing/perl-mail-spf/APKBUILD b/testing/perl-mail-spf/APKBUILD new file mode 100644 index 0000000000..372398d65f --- /dev/null +++ b/testing/perl-mail-spf/APKBUILD @@ -0,0 +1,24 @@ +# Contributor: Leonardo Arena <rnalrd@gmail.com> +# Maintainer: Leonardo Arena <rnalrd@gmail.com> +pkgname=perl-mail-spf +_realname=Mail-SPF +pkgver=2.006 +pkgrel=0 +pkgdesc="An object-oriented implementation of Sender Policy Framework" +url="http://search.cpan.org/~jmehnle/Mail-SPF-v2.006/" +license="GPL PerlArtistic" +depends="perl" +makedepends="perl-dev" +install= +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/J/JM/JMEHNLE/mail-spf/$_realname-v$pkgver.tar.gz" + +build() { + cd "$srcdir/$_realname-v$pkgver" + + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + make || return 1 + make DESTDIR="$pkgdir" install +} + +md5sums="4da41591b612560627ddbc6026b047a3 Mail-SPF-v2.006.tar.gz" diff --git a/testing/perl-mail-tools/APKBUILD b/testing/perl-mail-tools/APKBUILD new file mode 100644 index 0000000000..0e133c30e7 --- /dev/null +++ b/testing/perl-mail-tools/APKBUILD @@ -0,0 +1,26 @@ +# Contributor: Leonardo Arena <rnalrd@gmail.com> +# Maintainer: Leonardo Arena <rnalrd@gmail.com> +pkgname=perl-mail-tools +_realname=MailTools +pkgver=2.04 +pkgrel=0 +pkgdesc="Manipulation of electronic mail addresses" +url="http://search.cpan.org/~markov/MailTools-2.04/" +license="GPL PerlArtistic" +depends="perl perl-time-date perl-test-pod" +makedepends="perl-dev" +install= +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/M/MA/MARKOV/$_realname-$pkgver.tar.gz" + +build() { + cd "$srcdir/$_realname-$pkgver" + + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + make || return 1 + make DESTDIR="$pkgdir" install + # creates file collision among perl modules + rm $pkgdir/usr/lib/perl5/5.10.0/i686-linux/perllocal.pod +} + +md5sums="d21ea4f375d1e5f3da6b0a4e8ba1e2c6 MailTools-2.04.tar.gz" diff --git a/testing/perl-mime-tools/APKBUILD b/testing/perl-mime-tools/APKBUILD new file mode 100644 index 0000000000..1bbfe33fec --- /dev/null +++ b/testing/perl-mime-tools/APKBUILD @@ -0,0 +1,26 @@ +# Contributor: Leonardo Arena <rnalrd@gmail.com> +# Maintainer: Leonardo Arena <rnalrd@gmail.com> +pkgname=perl-mime-tools +_realname=MIME-tools +pkgver=5.427 +pkgrel=0 +pkgdesc="Perl modules for parsing (and creating!) MIME entities" +url="http://search.cpan.org/~doneill/MIME-tools-5.427/" +license="PerlArtistic GPL" +depends="perl perl-io-stringy perl-mail-tools perl-convert-binhex" +makedepends="perl-dev" +install= +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/D/DO/DONEILL/$_realname-$pkgver.tar.gz" + +build() { + cd "$srcdir/$_realname-$pkgver" + + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + make || return 1 + make DESTDIR="$pkgdir" install + # creates file collision among perl modules + rm $pkgdir/usr/lib/perl5/5.10.0/i686-linux/perllocal.pod +} + +md5sums="4333caa7238cb9eafb5f7fb39fcbd8e7 MIME-tools-5.427.tar.gz" diff --git a/testing/perl-net-dns/APKBUILD b/testing/perl-net-dns/APKBUILD new file mode 100644 index 0000000000..2ce850ee4d --- /dev/null +++ b/testing/perl-net-dns/APKBUILD @@ -0,0 +1,26 @@ +# Contributor: Leonardo Arena <rnalrd@gmail.com> +# Maintainer: Leonardo Arena <rnalrd@gmail.com> +pkgname=perl-net-dns +_realname=Net-DNS +pkgver=0.65 +pkgrel=0 +pkgdesc="Perl interface to the DNS resolver" +url="http://search.cpan.org/dist/Archive-Zip/" +license="unknown" +depends="perl" +makedepends="perl-dev" +install= +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/O/OL/OLAF/$_realname-$pkgver.tar.gz" + +build() { + cd "$srcdir/$_realname-$pkgver" + + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + make || return 1 + make DESTDIR="$pkgdir" install + # creates file collision among perl modules + rm $pkgdir/usr/lib/perl5/5.10.0/i686-linux/perllocal.pod +} + +md5sums="54e5a12a20de39b954a93723927ac789 Net-DNS-0.65.tar.gz" diff --git a/testing/perl-net-ip/APKBUILD b/testing/perl-net-ip/APKBUILD new file mode 100644 index 0000000000..d959c43d0a --- /dev/null +++ b/testing/perl-net-ip/APKBUILD @@ -0,0 +1,26 @@ +# Contributor: Leonardo Arena <rnalrd@gmail.com> +# Maintainer: Leonardo Arena <rnalrd@gmail.com> +pkgname=perl-net-ip +_realname=Net-IP +pkgver=1.25 +pkgrel=0 +pkgdesc="Perl extension for manipulating IPv4/IPv6 addresses" +url="http://search.cpan.org/~manu/Net-IP-1.25/" +license="Unknown" +depends="perl" +makedepends="perl-dev" +install= +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/M/MA/MANU/$_realname-$pkgver.tar.gz" + +build() { + cd "$srcdir/$_realname-$pkgver" + + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + make || return 1 + make DESTDIR="$pkgdir" install + # creates file collision among perl modules + rm $pkgdir/usr/lib/perl5/5.10.0/i686-linux/perllocal.pod +} + +md5sums="a49c0b02a9b793ff60191cdafc0c202e Net-IP-1.25.tar.gz" diff --git a/testing/perl-net-server/APKBUILD b/testing/perl-net-server/APKBUILD new file mode 100644 index 0000000000..9e0bc32ca4 --- /dev/null +++ b/testing/perl-net-server/APKBUILD @@ -0,0 +1,26 @@ +# Contributor: Leonardo Arena <rnalrd@gmail.com> +# Maintainer: Leonardo Arena <rnalrd@gmail.com> +pkgname=perl-net-server +_realname=Net-Server +pkgver=0.97 +pkgrel=0 +pkgdesc="Extensible, general Perl server engine" +url="http://search.cpan.org/~rhandom/Net-Server-0.97/" +license="unknown" +depends="perl" +makedepends="perl-dev" +install= +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/R/RH/RHANDOM/$_realname-$pkgver.tar.gz" + +build() { + cd "$srcdir/$_realname-$pkgver" + + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + make || return 1 + make DESTDIR="$pkgdir" install + # creates file collision among perl modules + rm $pkgdir/usr/lib/perl5/5.10.0/i686-linux/perllocal.pod +} + +md5sums="f884b6c5b1d2698a82bbc7ba659690a1 Net-Server-0.97.tar.gz" diff --git a/testing/perl-parse-recdescent/APKBUILD b/testing/perl-parse-recdescent/APKBUILD new file mode 100644 index 0000000000..8ee87e58b7 --- /dev/null +++ b/testing/perl-parse-recdescent/APKBUILD @@ -0,0 +1,26 @@ +# Contributor: Leonardo Arena <rnalrd@gmail.com> +# Maintainer: Leonardo Arena <rnalrd@gmail.com> +pkgname=perl-parse-recdescent +_realname=Parse-RecDescent +pkgver=1.96.0 +pkgrel=0 +pkgdesc="Generate Recursive-Descent Parsers" +url="http://search.cpan.org/~dconway/Parse-RecDescent-1.96.0/" +license="Unknown" +depends="perl" +makedepends="perl-dev" +install= +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/D/DC/DCONWAY/$_realname-$pkgver.tar.gz" + +build() { + cd "$srcdir/$_realname-$pkgver" + + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + make || return 1 + make DESTDIR="$pkgdir" install + # creates file collision among perl modules + rm $pkgdir/usr/lib/perl5/5.10.0/i686-linux/perllocal.pod +} + +md5sums="373dc01e102d81d01a4fb1431c5ff3fb Parse-RecDescent-1.96.0.tar.gz" diff --git a/testing/perl-test-pod/APKBUILD b/testing/perl-test-pod/APKBUILD new file mode 100644 index 0000000000..df47aee249 --- /dev/null +++ b/testing/perl-test-pod/APKBUILD @@ -0,0 +1,26 @@ +# Contributor: Leonardo Arena <rnalrd@gmail.com> +# Maintainer: Leonardo Arena <rnalrd@gmail.com> +pkgname=perl-test-pod +_realname=Test-Pod +pkgver=1.26 +pkgrel=0 +pkgdesc="Check for POD errors in files" +url="http://search.cpan.org/~petdance/Test-Pod-1.26/" +license="Unknown" +depends="perl" +makedepends="perl-dev" +install= +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/P/PE/PETDANCE/$_realname-$pkgver.tar.gz" + +build() { + cd "$srcdir/$_realname-$pkgver" + + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + make || return 1 + make DESTDIR="$pkgdir" install + # creates file collision among perl modules + rm $pkgdir/usr/lib/perl5/5.10.0/i686-linux/perllocal.pod +} + +md5sums="2f259135656ac4549b65a4f14f07b7c6 Test-Pod-1.26.tar.gz" diff --git a/testing/perl-time-date/APKBUILD b/testing/perl-time-date/APKBUILD new file mode 100644 index 0000000000..1c02dfe164 --- /dev/null +++ b/testing/perl-time-date/APKBUILD @@ -0,0 +1,26 @@ +# Contributor: Leonardo Arena <rnalrd@gmail.com> +# Maintainer: Leonardo Arena <rnalrd@gmail.com> +pkgname=perl-time-date +_realname=TimeDate +pkgver=1.16 +pkgrel=0 +pkgdesc="Date formating subroutines" +url="http://search.cpan.org/~gbarr/TimeDate-1.16/" +license="Unknown" +depends="perl" +makedepends="perl-dev" +install= +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/G/GB/GBARR/$_realname-$pkgver.tar.gz" + +build() { + cd "$srcdir/$_realname-$pkgver" + + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + make || return 1 + make DESTDIR="$pkgdir" install + # creates file collision among perl modules + rm $pkgdir/usr/lib/perl5/5.10.0/i686-linux/perllocal.pod +} + +md5sums="b3cc35a7cabd106ac8829d2f2ff4bd9d TimeDate-1.16.tar.gz" diff --git a/testing/perl-unix-syslog/APKBUILD b/testing/perl-unix-syslog/APKBUILD new file mode 100644 index 0000000000..59ece194b0 --- /dev/null +++ b/testing/perl-unix-syslog/APKBUILD @@ -0,0 +1,27 @@ +# Contributor: Leonardo Arena <rnalrd@gmail.com> +# Maintainer: Leonardo Arena <rnalrd@gmail.com> +pkgname=perl-unix-syslog +_realname=Unix-Syslog +pkgver=1.1 +pkgrel=0 +pkgdesc="Perl interface to the UNIX syslog(3) calls" +url="http://search.cpan.org/~mharnisch/Unix-Syslog-1.1/" +license="unknown" +depends="perl" +makedepends="perl-dev" +install= +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/M/MH/MHARNISCH/$_realname-$pkgver.tar.gz" + +build() { + cd "$srcdir/$_realname-$pkgver" + + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor \ + PERL_ARCHLIB=/usr/lib/perl5/5.10.0/i686-linux || return 1 + make || return 1 + make DESTDIR="$pkgdir" install + # creates file collision among perl modules + rm $pkgdir/usr/lib/perl5/5.10.0/i686-linux/perllocal.pod +} + +md5sums="73d78e309fe9508ffc9a54d84d79aac9 Unix-Syslog-1.1.tar.gz" diff --git a/testing/perl-uri-escape/APKBUILD b/testing/perl-uri-escape/APKBUILD new file mode 100644 index 0000000000..4cd3b727e7 --- /dev/null +++ b/testing/perl-uri-escape/APKBUILD @@ -0,0 +1,26 @@ +# Contributor: Leonardo Arena <rnalrd@gmail.com> +# Maintainer: Leonardo Arena <rnalrd@gmail.com> +pkgname=perl-uri-escape +_realname=URI +pkgver=1.38 +pkgrel=0 +pkgdesc="Uniform Resource Identifiers (absolute and relative)" +url="http://search.cpan.org/~gaas/URI-1.38/" +license="GPL PerlArtistic" +depends="perl" +makedepends="perl-dev" +install= +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/$_realname-$pkgver.tar.gz" + +build() { + cd "$srcdir/$_realname-$pkgver" + + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + make || return 1 + make DESTDIR="$pkgdir" install + # creates file collision among perl modules + rm $pkgdir/usr/lib/perl5/5.10.0/i686-linux/perllocal.pod +} + +md5sums="35fba2715eb8ac56e8e30244ae69ff65 URI-1.38.tar.gz" diff --git a/testing/razor/APKBUILD b/testing/razor/APKBUILD new file mode 100644 index 0000000000..7034208641 --- /dev/null +++ b/testing/razor/APKBUILD @@ -0,0 +1,26 @@ +# Contributor: Leonardo Arena <rnalrd@gmail.com> +# Maintainer: Leonardo Arena <rnalrd@gmail.com> +pkgname=razor +_realname=razor-agents +pkgver=2.84 +pkgrel=0 +pkgdesc="Vipul's Razor is a distributed, collaborative spam detection and filtering network" +url="http://razor.sourceforge.net/" +license="Artistic" +depends="uclibc perl perl-digest-sha1 perl-getopt-long perl-uri-escape" +makedepends="perl-dev" +install= +subpackages="$pkgname-doc" +source="http://garr.dl.sourceforge.net/sourceforge/razor/$_realname-$pkgver.tar.bz2" + +build() { + cd "$srcdir/$_realname-$pkgver" + + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + make || return 1 + make DESTDIR="$pkgdir" install + # creates file collision among perl modules + rm $pkgdir/usr/lib/perl5/5.10.0/i686-linux/perllocal.pod +} + +md5sums="8b9a11a6ce020383c32c45d1530d77c2 razor-agents-2.84.tar.bz2" diff --git a/testing/spamassassin/APKBUILD b/testing/spamassassin/APKBUILD new file mode 100644 index 0000000000..cca771b77f --- /dev/null +++ b/testing/spamassassin/APKBUILD @@ -0,0 +1,28 @@ +# Contributor: Leonardo Arena <rnalrd@gmail.com> +# Maintainer: Leonardo Arena <rnalrd@gmail.com> +pkgname=spamassassin +_realname=Mail-SpamAssassin +pkgver=3.2.5 +pkgrel=0 +pkgdesc="The Powerful #1 Open-Source Spam Filter" +url="http://spamassassin.apache.org" +license="Apache" +depends="perl perl-digest-sha1 perl-html-parser perl-net-dns perl-db_file zlib" +makedepends="perl-dev zlib-dev" +install= +subpackages="$pkgname-doc" +source="http://www.apache.org/dist/spamassassin/source/$_realname-3.2.5.tar.gz" + +build() { + cd "$srcdir/$_realname-$pkgver" + + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + make || return 1 + make DESTDIR="$pkgdir" install + install -m755 -D ../../spamd.init $pkgdir/etc/init.d/spamd + install -m644 -D ../../spamd.conf $pkgdir/etc/conf.d/spamd.conf + # creates file collision among perl modules + rm $pkgdir/usr/lib/perl5/5.10.0/i686-linux/perllocal.pod +} + +md5sums="7fdc1651d0371c4a7f95ac9ae6f828a6 Mail-SpamAssassin-3.2.5.tar.gz" diff --git a/testing/spamassassin/spamd.conf b/testing/spamassassin/spamd.conf new file mode 100644 index 0000000000..b6fca036f2 --- /dev/null +++ b/testing/spamassassin/spamd.conf @@ -0,0 +1,46 @@ +# Config file for /etc/init.d/spamd + + +# ***WARNING*** +# spamd was not designed to listed to an untrusted network. spamd +# is vulnerable to DoS attacks (and eternal doom) if used to listen +# to an untrusted network. +# + + +# Some options: +# +# -c to create a per user configuration file +# -H [dir] to switch home dirs for helper apps, dir optional +# -i [ip] to listen on the specified IP, +# 127.0.0.1 if omitted, +# 0.0.0.0 (ie. all) if given without value; +# must be used in combination with -A to actually allow +# connections from anybody but localhost +# -m limit to set the number of children, default 5 +# -u user the user to run spamd as +# -L if you want to run no net tests +# +# for more help look in man spamd +# +# Note: if you plan on using the -u flag to spamd you will need to +# make sure the location of the PID file is writable by that user. +# This can be done by making the directory /var/run/spamd and +# changing the owner to the UID that runs spamd. You will then +# need to edit $pidfile in /etc/init.d/spamd. This should fix the +# problem with stop/restart in the init scripts. +# +# See http://bugs.gentoo.org/show_bug.cgi?id=70124 for a full +# explanation. + +SPAMD_OPTS="-m 5 -c -H" + +# spamd stores its pid in this file. If you use the -u option to +# run spamd under another user, you might need to adjust it. + +PIDFILE="/var/run/spamd.pid" + +# SPAMD_NICELEVEL lets you set the 'nice'ness of the running +# spamd process + +# SPAMD_NICELEVEL=5 diff --git a/testing/spamassassin/spamd.init b/testing/spamassassin/spamd.init new file mode 100644 index 0000000000..89723889f4 --- /dev/null +++ b/testing/spamassassin/spamd.init @@ -0,0 +1,39 @@ +#!/sbin/runscript +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/www/viewcvs.gentoo.org/raw_cvs/gentoo-x86/mail-filter/spamassassin/files/3.0.0-spamd.init,v 1.8 2008/05/14 21:25:56 sbriesen Exp $ + +# NB: Config is in /etc/conf.d/spamd + +# Provide a default location if they haven't in /etc/conf.d/spamd +PIDFILE=${PIDFILE:-/var/run/spamd.pid} + +opts="reload" + +depend() { + need net + before mta + use logger +} + +start() { + ebegin "Starting spamd" + start-stop-daemon --start --quiet \ + --name spamd \ + --nicelevel ${SPAMD_NICELEVEL:-0} \ + --exec /usr/sbin/spamd -- -d -r ${PIDFILE} \ + ${SPAMD_OPTS} + eend $? "Failed to start spamd" +} + +stop() { + ebegin "Stopping spamd" + start-stop-daemon --stop --quiet --pidfile ${PIDFILE} + eend $? "Failed to stop spamd" +} + +reload() { + ebegin "Reloading configuration" + kill -HUP $(< ${PIDFILE}) + eend $? +} |