summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-27 03:42:08 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-27 03:42:08 +0000
commite6531dd4850f92ec40f5d9b911f83f10e6b94543 (patch)
tree07452e68e1b25421e2323387af078842858691d9 /mail-mta/mini-qmail
parentMark 2.7.3 stable on alpha #120486 (diff)
downloadgentoo-2-e6531dd4850f92ec40f5d9b911f83f10e6b94543.tar.gz
gentoo-2-e6531dd4850f92ec40f5d9b911f83f10e6b94543.tar.bz2
gentoo-2-e6531dd4850f92ec40f5d9b911f83f10e6b94543.zip
Touchup the build system to build just the mini parts and not require any qmail users #114818 by rhumbliner.
(Portage version: 2.1_pre3-r1)
Diffstat (limited to 'mail-mta/mini-qmail')
-rw-r--r--mail-mta/mini-qmail/ChangeLog11
-rw-r--r--mail-mta/mini-qmail/files/digest-mini-qmail-1.05-r12
-rw-r--r--mail-mta/mini-qmail/mini-qmail-1.05-r1.ebuild88
3 files changed, 99 insertions, 2 deletions
diff --git a/mail-mta/mini-qmail/ChangeLog b/mail-mta/mini-qmail/ChangeLog
index 089e6f9b0d50..755a70816167 100644
--- a/mail-mta/mini-qmail/ChangeLog
+++ b/mail-mta/mini-qmail/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for mail-mta/mini-qmail
-# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/mini-qmail/ChangeLog,v 1.5 2004/07/20 14:03:37 tomk Exp $
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/mini-qmail/ChangeLog,v 1.6 2006/01/27 03:42:08 vapier Exp $
+
+*mini-qmail-1.05-r1 (27 Jan 2006)
+
+ 27 Jan 2006; Mike Frysinger <vapier@gentoo.org>
+ +mini-qmail-1.05-r1.ebuild:
+ Touchup the build system to build just the mini parts and not require any
+ qmail users #114818 by rhumbliner.
20 Jul 2004; <tomk@gentoo.org> mini-qmail-1.05.ebuild:
Added third party mirror to SRC_URI
diff --git a/mail-mta/mini-qmail/files/digest-mini-qmail-1.05-r1 b/mail-mta/mini-qmail/files/digest-mini-qmail-1.05-r1
new file mode 100644
index 000000000000..a59f96075ed4
--- /dev/null
+++ b/mail-mta/mini-qmail/files/digest-mini-qmail-1.05-r1
@@ -0,0 +1,2 @@
+MD5 4c03848af9d37e281f3b82cc59230d9b netqmail-1.05.tar.gz 252264
+MD5 b51028ea791f991817ad18078660ce62 mini-qmail-kit-0.52.tar.gz 6174
diff --git a/mail-mta/mini-qmail/mini-qmail-1.05-r1.ebuild b/mail-mta/mini-qmail/mini-qmail-1.05-r1.ebuild
new file mode 100644
index 000000000000..c832b4aa66e0
--- /dev/null
+++ b/mail-mta/mini-qmail/mini-qmail-1.05-r1.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2006 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.05-r1.ebuild,v 1.1 2006/01/27 03:42:08 vapier Exp $
+
+inherit eutils toolchain-funcs fixheadtails
+
+MINI_VER=0.52
+DESCRIPTION="a small null client that forwards mail via QMQP to a full qmail server"
+HOMEPAGE="http://www.qmail.org/ http://cr.yp.to/qmail/mini.html"
+SRC_URI="mirror://qmail/netqmail-${PV}.tar.gz
+ http://www.din.or.jp/~ushijima/mini-qmail-kit/mini-qmail-kit-${MINI_VER}.tar.gz"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="amd64 arm hppa mips ppc sparc x86"
+IUSE=""
+
+DEPEND="sys-apps/groff"
+RDEPEND="!virtual/mta"
+PROVIDE="virtual/mta
+ virtual/mda"
+
+S=${WORKDIR}/mini-qmail-kit-${MINI_VER}
+
+src_unpack() {
+ unpack netqmail-${PV}.tar.gz
+ unpack mini-qmail-kit-${MINI_VER}.tar.gz
+
+ cd "${S}"
+ epatch "${FILESDIR}"/${PV}-config-mini-help.patch
+ sed -i \
+ -e "/^qmail=/s:=.*:=${WORKDIR}/netqmail-${PV}/netqmail-${PV}:" \
+ Makefile.mini || die
+
+ cd "${WORKDIR}"/netqmail-${PV}
+ ./collate.sh || die "patching failed"
+
+ cd netqmail-${PV}
+ echo -n "$(tc-getCC) ${CFLAGS}" > "${S}"/conf-cc
+ echo -n "$(tc-getCC) ${LDFLAGS}" > "${S}"/conf-ld
+ ht_fix_file Makefile
+}
+
+src_compile() {
+ emake -f Makefile.mini || die "mini prep failed"
+ emake mini || die "make mini failed"
+}
+
+src_install() {
+ einfo "Setting up directory hierarchy ..."
+ keepdir /var/mini-qmail/control
+
+ dodoc INSTALL README
+
+ exeinto /var/mini-qmail/bin
+ doexe qmail-qmqpc forward qmail-inject \
+ sendmail predate datemail mailsubj \
+ qmail-showctl maildirmake maildir2mbox \
+ maildirwatch qail elq pinq \
+ || die "doexe failed"
+ dosym qmail-qmqpc /var/mini-qmail/bin/qmail-queue
+ newexe config-mini.sh config-mini
+ dosed "s:QMAIL:/var/mini-qmail/:g" /var/mini-qmail/bin/config-mini
+
+ doman qmail-qmqpc.8 forward.1 qmail-inject.8 \
+ mailsubj.1 qmail-showctl.8 maildirmake.1 \
+ maildir2mbox.1 maildirwatch.1 qmail-queue.8 \
+ qmail.7
+
+ einfo "Adding env.d entry for qmail"
+ doenvd "${FILESDIR}"/99qmail
+
+ einfo "Creating sendmail replacement ..."
+ diropts -m 755
+ dodir /usr/sbin /usr/lib
+ dosym /var/mini-qmail/bin/sendmail /usr/sbin/sendmail
+ dosym /var/mini-qmail/bin/sendmail /usr/lib/sendmail
+}
+
+pkg_postinst() {
+ einfo "In order for mini-qmail to work, you need to setup"
+ einfo "the QMQP server information."
+ einfo
+ einfo "You can setup the values in /var/mini-qmail/control yourself,"
+ einfo "or use the utility /var/mini-qmail/bin/config-mini"
+ einfo "To find out what values to put in what files, see the install"
+ einfo "section of http://cr.yp.to/qmail/mini.html"
+}