aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-09-21 20:16:06 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-09-21 20:16:06 +0000
commite1b5ebf9bc57e9eff1f082664cf88fbe4e9b554d (patch)
treed48d05093a6643516deabee1f268ebf4fd90f35a
parent0ea3c910afb7428ac63516dc0ab0dc1614a51c21 (diff)
downloadaports-e1b5ebf9bc57e9eff1f082664cf88fbe4e9b554d.tar.bz2
aports-e1b5ebf9bc57e9eff1f082664cf88fbe4e9b554d.tar.xz
testing/vpopmail: new aport
inter7 virtual email domain management system http://www.inter7.com/vpopmail/
-rw-r--r--testing/vpopmail/APKBUILD54
-rw-r--r--testing/vpopmail/vpopmail-5.4.9-access.violation.patch27
-rwxr-xr-xtesting/vpopmail/vpopmail-Maildir-dotmaildir-fix.sh43
-rw-r--r--testing/vpopmail/vpopmail-lazy.patch10
4 files changed, 134 insertions, 0 deletions
diff --git a/testing/vpopmail/APKBUILD b/testing/vpopmail/APKBUILD
new file mode 100644
index 0000000000..5dc94999f2
--- /dev/null
+++ b/testing/vpopmail/APKBUILD
@@ -0,0 +1,54 @@
+# Contributor: Nathan Angelacos <nangel@tetrasec.net>
+# Maintainer: Nathan Angelacos <nangel@tetrasec.net>
+pkgname=vpopmail
+pkgver=5.4.28
+pkgrel=0
+pkgdesc="inter7 virtual email domain management system"
+url="http://www.inter7.com/vpopmail/"
+license="GPL"
+depends=""
+makedepends="bash autoconf automake"
+install=
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
+ vpopmail-5.4.9-access.violation.patch
+ vpopmail-lazy.patch
+ "
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ for i in ../*.patch; do
+ patch -p1 -i $i || return 1
+ done
+ aclocal && autoconf && automake || return 1
+
+ unset CHOST
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc/vpopmail \
+ --mandir=/usr/share/man \
+ --enable-non-root-build \
+ --enable-qmaildir=/tmp \
+ --enable-qmail-newu=/bin/true \
+ --enable-qmail-inject=/bin/true \
+ --enable-qmail-newmrh=/bin/true \
+ --enable-vpopuser=vpopmail \
+ --enable-vpopgroup=vpopmail \
+ --enable-many-domains \
+ --enable-file-locking \
+ --enable-file-sync \
+ --enable-md5-passwords \
+ --enable-logging \
+ --enable-auth-logging \
+ --enable-log-name=vpopmail \
+ --disable-tcpserver-file \
+ --disable-roaming-users \
+ || return 1
+ make || return 1
+ make DESTDIR="$pkgdir" install
+
+}
+
+md5sums="8b44fb9c62d4ef96b29143863b577abb vpopmail-5.4.28.tar.gz
+76a1cf57780abbbdcc07e7312e532704 vpopmail-5.4.9-access.violation.patch
+c87be7ba2d6d2efd4a8f12e8879de326 vpopmail-lazy.patch"
diff --git a/testing/vpopmail/vpopmail-5.4.9-access.violation.patch b/testing/vpopmail/vpopmail-5.4.9-access.violation.patch
new file mode 100644
index 0000000000..9c450cbfa0
--- /dev/null
+++ b/testing/vpopmail/vpopmail-5.4.9-access.violation.patch
@@ -0,0 +1,27 @@
+--- a/configure.in 2004-06-30 22:11:08.000000000 -0700
++++ b/configure.in 2004-08-22 16:45:36.279473008 -0700
+@@ -463,16 +463,16 @@
+ if test ! -d $vpopmaildir
+ then
+ AC_MSG_WARN( creating $vpopmaildir )
+- mkdir -p $vpopmaildir
+- chown $vpopmailuid $vpopmaildir
+- chgrp $vpopmailgid $vpopmaildir
+- chmod 755 $vpopmaildir
++ mkdir -p "$pkgdir"/$vpopmaildir
++ chown $vpopmailuid "$pkgdir"/$vpopmaildir
++ chgrp $vpopmailgid "$pkgdir"/$vpopmaildir
++ chmod 755 "$pkgdir"/$vpopmaildir
+ fi
+ AC_MSG_WARN( making a vpopmail etc directory )
+- mkdir $vpopmaildir/etc
+- chown $vpopmailuid "$vpopmaildir"/etc
+- chgrp $vpopmailgid "$vpopmaildir"/etc
+- chmod 755 "$vpopmaildir"/etc
++ mkdir "$pkgdir"/$vpopmaildir/etc
++ chown $vpopmailuid "$pkgdir"/$vpopmaildir/etc
++ chgrp $vpopmailgid "$pkgdir"/$vpopmaildir/etc
++ chmod 755 "$pkgdir"/$vpopmaildir/etc
+ fi
+
+ #----------------------------------------------------------------------
diff --git a/testing/vpopmail/vpopmail-Maildir-dotmaildir-fix.sh b/testing/vpopmail/vpopmail-Maildir-dotmaildir-fix.sh
new file mode 100755
index 0000000000..fb289aba5a
--- /dev/null
+++ b/testing/vpopmail/vpopmail-Maildir-dotmaildir-fix.sh
@@ -0,0 +1,43 @@
+#!/bin/bash
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-mail/vpopmail/files/vpopmail-Maildir-dotmaildir-fix.sh,v 1.2 2004/10/19 17:55:24 robbat2 Exp $
+# Written by Robin H. Johnson, robbat2@gentoo.org
+
+OLDNAME='Maildir'
+NEWNAME='.maildir'
+SEARCHPATH=/var/vpopmail/domains/
+MINDEPTH=3
+# If you have a very large vpopmail deployment, you may need to increase MAXDEPTH.
+MAXDEPTH=6
+
+if [ "${1}" == '--revert' ]; then
+ SEARCHNAME="${NEWNAME}"
+ REPLACENAME="${OLDNAME}"
+else
+ SEARCHNAME="${OLDNAME}"
+ REPLACENAME="${NEWNAME}"
+fi
+
+echo "Doing '${SEARCHNAME}' '${REPLACENAME}' changeover"
+echo find ${SEARCHPATH} -name "${SEARCHNAME}" -maxdepth $MAXDEPTH -mindepth $MINDEPTH -type d
+for i in `find ${SEARCHPATH} -name "${SEARCHNAME}" -maxdepth $MAXDEPTH -mindepth $MINDEPTH -type d`; do
+ foundname=${i/${SEARCHNAME}*}${SEARCHNAME}
+ base="`dirname $i`"
+ todoname=${base}/${REPLACENAME}
+ #echo "$foundname -> $todoname"
+ echo "Fixing `echo $base | sed -e "s|${SEARCHPATH}||g"`"
+ chmod +t $base
+ if [ -L ${todoname} ]; then
+ echo Removing symlink "${todoname}"
+ rm ${todoname}
+ fi
+ if [ -e ${todoname} ]; then
+ echo "Error! Cannot move ${i} as destination exists!"
+ continue
+ fi
+ mv "${foundname}" "${todoname}"
+ ln -s "${todoname}" "${foundname}"
+ chown vpopmail:vpopmail "${foundname}"
+ chmod -t $base
+done;
diff --git a/testing/vpopmail/vpopmail-lazy.patch b/testing/vpopmail/vpopmail-lazy.patch
new file mode 100644
index 0000000000..7db04f8af4
--- /dev/null
+++ b/testing/vpopmail/vpopmail-lazy.patch
@@ -0,0 +1,10 @@
+--- a/Makefile.am 2005-11-18 03:19:43.000000000 +0100
++++ b/Makefile.am 2005-11-18 03:20:18.000000000 +0100
+@@ -33,6 +33,7 @@
+
+ vchkpw_SOURCES = vchkpw.c md5.c hmac_md5.c
+ vchkpw_LDADD = libvpopmail.a @auth_libs@
++vchkpw_LDFLAGS = -Wl,-z,now
+
+ vchangepw_SOURCES = vchangepw.c
+ vchangepw_LDADD = libvpopmail.a @auth_libs@