Commit e1b5ebf9 authored by Natanael Copa's avatar Natanael Copa

testing/vpopmail: new aport

inter7 virtual email domain management system
http://www.inter7.com/vpopmail/
parent 0ea3c910
# 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"
--- 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
#----------------------------------------------------------------------
#!/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;
--- 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@
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment