summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenedikt Boehm <hollow@gentoo.org>2008-04-06 18:19:24 +0000
committerBenedikt Boehm <hollow@gentoo.org>2008-04-06 18:19:24 +0000
commit4570bb2eb6c5882de20b89d88dcc413e632339cc (patch)
tree296bef891d5276043636b3733ce94b5197fc783d /mail-mta
parentAdded ~ppc; bug #195815 (diff)
downloadgentoo-2-4570bb2eb6c5882de20b89d88dcc413e632339cc.tar.gz
gentoo-2-4570bb2eb6c5882de20b89d88dcc413e632339cc.tar.bz2
gentoo-2-4570bb2eb6c5882de20b89d88dcc413e632339cc.zip
version bump; conversion to qmail.eclass; fixes #207657
(Portage version: 2.1.4.4)
Diffstat (limited to 'mail-mta')
-rw-r--r--mail-mta/mini-qmail/ChangeLog10
-rw-r--r--mail-mta/mini-qmail/files/1.06-exit.patch18
-rw-r--r--mail-mta/mini-qmail/files/config-mini38
-rw-r--r--mail-mta/mini-qmail/metadata.xml8
-rw-r--r--mail-mta/mini-qmail/mini-qmail-1.06.ebuild63
5 files changed, 131 insertions, 6 deletions
diff --git a/mail-mta/mini-qmail/ChangeLog b/mail-mta/mini-qmail/ChangeLog
index e307c6a5ed31..dcb1bf572680 100644
--- a/mail-mta/mini-qmail/ChangeLog
+++ b/mail-mta/mini-qmail/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for mail-mta/mini-qmail
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/mini-qmail/ChangeLog,v 1.9 2007/12/03 21:37:50 robbat2 Exp $
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/mini-qmail/ChangeLog,v 1.10 2008/04/06 18:19:23 hollow Exp $
+
+*mini-qmail-1.06 (06 Apr 2008)
+
+ 06 Apr 2008; Benedikt Böhm <hollow@gentoo.org> +files/1.06-exit.patch,
+ +files/config-mini, metadata.xml, +mini-qmail-1.06.ebuild:
+ version bump; conversion to qmail.eclass; fixes #207657
03 Dec 2007; Robin H. Johnson <robbat2@gentoo.org> mini-qmail-1.05.ebuild,
mini-qmail-1.05-r1.ebuild:
diff --git a/mail-mta/mini-qmail/files/1.06-exit.patch b/mail-mta/mini-qmail/files/1.06-exit.patch
new file mode 100644
index 000000000000..e0e7dea0f324
--- /dev/null
+++ b/mail-mta/mini-qmail/files/1.06-exit.patch
@@ -0,0 +1,18 @@
+Index: netqmail-1.06/qmail-pw2u.c
+===================================================================
+--- netqmail-1.06.orig/qmail-pw2u.c
++++ netqmail-1.06/qmail-pw2u.c
+@@ -1,3 +1,4 @@
++#include <unistd.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include "substdio.h"
+Index: netqmail-1.06/qmail-qmtpd.c
+===================================================================
+--- netqmail-1.06.orig/qmail-qmtpd.c
++++ netqmail-1.06/qmail-qmtpd.c
+@@ -1,3 +1,4 @@
++#include <unistd.h>
+ #include "stralloc.h"
+ #include "substdio.h"
+ #include "qmail.h"
diff --git a/mail-mta/mini-qmail/files/config-mini b/mail-mta/mini-qmail/files/config-mini
new file mode 100644
index 000000000000..009026e2c091
--- /dev/null
+++ b/mail-mta/mini-qmail/files/config-mini
@@ -0,0 +1,38 @@
+
+case $# in
+ 0|1|2|3|4)
+ echo 'config-mini: usage: config-mini me defaultdom plusdom idhost qmqpserver ...' 1>&2
+ exit 100
+ ;;
+ esac
+
+me="$1"; shift
+defaultdomain="$1"; shift
+plusdomain="$1"; shift
+idhost="$1"; shift
+
+echo Putting "$me" into control/me...
+echo "$me" > QMAIL/control/me
+chmod 644 QMAIL/control/me
+
+echo Putting "$defaultdomain" into control/defaultdomain...
+echo "$defaultdomain" > QMAIL/control/defaultdomain
+chmod 644 QMAIL/control/defaultdomain
+
+echo Putting "$plusdomain" into control/plusdomain...
+echo "$plusdomain" > QMAIL/control/plusdomain
+chmod 644 QMAIL/control/plusdomain
+
+echo Putting "$idhost" into control/idhost...
+echo "$idhost" > QMAIL/control/idhost
+chmod 644 QMAIL/control/idhost
+
+cp /dev/null QMAIL/control/qmqpservers
+for qmqpserver in "$@"
+ do
+ echo Putting "$qmqpserver" into control/qmqpservers...
+ echo "$qmqpserver" >> QMAIL/control/qmqpservers
+ chmod 644 QMAIL/control/qmqpservers
+ done
+
+exit 0
diff --git a/mail-mta/mini-qmail/metadata.xml b/mail-mta/mini-qmail/metadata.xml
index c42295f69acd..4f23b826fd0f 100644
--- a/mail-mta/mini-qmail/metadata.xml
+++ b/mail-mta/mini-qmail/metadata.xml
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<herd>qmail</herd>
-<maintainer>
- <email>vapier@gentoo.org</email>
-</maintainer>
+ <herd>qmail</herd>
+ <maintainer>
+ <email>vapier@gentoo.org</email>
+ </maintainer>
</pkgmetadata>
diff --git a/mail-mta/mini-qmail/mini-qmail-1.06.ebuild b/mail-mta/mini-qmail/mini-qmail-1.06.ebuild
new file mode 100644
index 000000000000..d043aa4e37b6
--- /dev/null
+++ b/mail-mta/mini-qmail/mini-qmail-1.06.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/mini-qmail/mini-qmail-1.06.ebuild,v 1.1 2008/04/06 18:19:23 hollow Exp $
+
+GENQMAIL_PV=20080406
+
+inherit eutils qmail
+
+DESCRIPTION="a small null client that forwards mail via QMQP to a full qmail server"
+HOMEPAGE="
+ http://netqmail.org
+ http://cr.yp.to/qmail/mini.html
+ http://qmail.org
+"
+SRC_URI="mirror://qmail/netqmail-${PV}.tar.gz
+ http://dev.gentoo.org/~hollow/distfiles/${GENQMAIL_F}"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~sparc ~x86"
+IUSE="mailwrapper"
+
+DEPEND=""
+RDEPEND="
+ mailwrapper? ( net-mail/mailwrapper )
+ !mailwrapper? ( !virtual/mta )
+ ${DEPEND}
+"
+PROVIDE="
+ virtual/mta
+ virtual/mda
+"
+
+S="${WORKDIR}"/netqmail-${PV}
+
+src_unpack() {
+ genqmail_src_unpack
+
+ unpack netqmail-${PV}.tar.gz
+ cd "${S}"
+
+ epatch "${FILESDIR}"/${PV}-exit.patch
+
+ ht_fix_file Makefile*
+
+ qmail_src_postunpack
+}
+
+src_compile() {
+ qmail_src_compile
+}
+
+qmail_base_install_hook() {
+ dosym qmail-qmqpc "${QMAIL_HOME}"/bin/qmail-queue
+ exeinto "${QMAIL_HOME}"/bin
+ doexe "${FILESDIR}"/config-mini
+}
+
+src_install() {
+ qmail_base_install
+ qmail_man_install
+ qmail_sendmail_install
+}