summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorsten Veller <tove@gentoo.org>2008-08-24 09:53:17 +0000
committerTorsten Veller <tove@gentoo.org>2008-08-24 09:53:17 +0000
commit5412f2057dc4966689a7a511ecc0358e8292f2b5 (patch)
treeb029f4f250c5ca483e2455d97ba0ccfe6e8cff5a /mail-mta
parentfix multilib-strict (bug #209558) and prestripped files (bug #209560) (diff)
downloadhistorical-5412f2057dc4966689a7a511ecc0358e8292f2b5.tar.gz
historical-5412f2057dc4966689a7a511ecc0358e8292f2b5.tar.bz2
historical-5412f2057dc4966689a7a511ecc0358e8292f2b5.zip
Removed mail-mta/xmail
Diffstat (limited to 'mail-mta')
-rw-r--r--mail-mta/xmail/ChangeLog160
-rw-r--r--mail-mta/xmail/Manifest8
-rw-r--r--mail-mta/xmail/files/15xmail1
-rw-r--r--mail-mta/xmail/files/xmail.confd19
-rw-r--r--mail-mta/xmail/files/xmail.initd97
-rw-r--r--mail-mta/xmail/files/xmailwizard65
-rw-r--r--mail-mta/xmail/metadata.xml5
-rw-r--r--mail-mta/xmail/xmail-1.22.ebuild144
8 files changed, 0 insertions, 499 deletions
diff --git a/mail-mta/xmail/ChangeLog b/mail-mta/xmail/ChangeLog
deleted file mode 100644
index 2202f9551cda..000000000000
--- a/mail-mta/xmail/ChangeLog
+++ /dev/null
@@ -1,160 +0,0 @@
-# ChangeLog for mail-mta/xmail
-# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/xmail/ChangeLog,v 1.24 2007/10/28 14:03:22 phreak Exp $
-
- 28 Oct 2007; Christian Heim <phreak@gentoo.org> xmail-1.22.ebuild:
- Include virtual/logger in RDEPEND, as the initscript already specifies 'need
- logger'.
-
- 22 Apr 2007; Andrej Kacian <ticho@gentoo.org> xmail-1.22.ebuild:
- Use newinitd, newconfd and doenvd. Bug #174266.
-
- 18 Mar 2007; Marius Mauch <genone@gentoo.org> xmail-1.22.ebuild:
- Replacing einfo with elog
-
- 22 Feb 2007; Piotr Jaroszyński <peper@gentoo.org> ChangeLog:
- Transition to Manifest2.
-
- 13 Sep 2006; <ticho@gentoo.org> -xmail-1.16-r1.ebuild, -xmail-1.20.ebuild,
- -xmail-1.21.ebuild:
- Security-wise cleanup. See bug #140514.
-
- 27 Apr 2006; Marien Zwart <marienz@gentoo.org> files/digest-xmail-1.16-r1,
- files/digest-xmail-1.20, files/digest-xmail-1.21, files/digest-xmail-1.22,
- Manifest:
- Fixing SHA256 digest, pass four
-
- 12 Dec 2005; Andrea Barisani <lcars@gentoo.org> xmail-1.22.ebuild:
- Stable on x86.
-
-*xmail-1.22 (10 Dec 2005)
-
- 10 Dec 2005; Andrea Barisani <lcars@gentoo.org> +xmail-1.22.ebuild:
- New version, fixes security issue CAN-2005-2943. Bug #109381.
-
- 23 Aug 2005; Andrej Kacian <ticho@gentoo.org> xmail-1.16-r1.ebuild,
- xmail-1.20.ebuild, xmail-1.21.ebuild:
- Use -1 for shell argument to enewuser. Bug #103421.
-
- 11 Jul 2005; Andrej Kacian <ticho@gentoo.org> xmail-1.21.ebuild:
- Stable on x86. Closes bug #97405, reported by Brian Dilks <bdilks at
- speakeasy.net>.
-
- 29 Jun 2005; Tuấn Văn <langthang@gentoo.org> xmail-1.21.ebuild:
- Fix issues in bug #96632. Thanks to Jakub Moc <jakub@gentoo.org> for
- the patch.
-
- 06 Jun 2005; Andrej Kacian <ticho@gentoo.org> -xmail-1.16.ebuild:
- Removed 1.16.
-
- 06 Jun 2005; Andrej Kacian <ticho@gentoo.org> files/xmail.initd:
- Fixed sed command in the initscript. Bug #91141, by <quinox_san_ at
- hotmail.com>.
-
-*xmail-1.21 (27 Jan 2005)
-
- 27 Jan 2005; Aaron Kulbe <superlag@gentoo.org> +xmail-1.21.ebuild:
- Version bump to 1.21.
-
- 06 Dec 2004; Andrej Kacian <ticho@gentoo.org> xmail-1.16-r1.ebuild,
- xmail-1.20.ebuild:
- Stable on x86.
-
- 23 Oct 2004; Jason Wever <weeve@gentoo.org> xmail-1.20.ebuild:
- Added ~sparc keyword.
-
- 01 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org> xmail-1.16-r1.ebuild,
- xmail-1.16.ebuild, xmail-1.20.ebuild:
- virtual/glibc -> virtual/libc
-
-*xmail-1.20 (28 Jun 2004)
-
- 28 Jun 2004; Cory Visi <merlin@gentoo.org> xmail-1.20.ebuild:
- version bump from 1.16-r1 to 1.20
-
-*xmail-1.16-r1 (28 Jun 2004)
-
- 28 Jun 2004; Cory Visi <merlin@gentoo.org> xmail-1.16-r1.ebuild:
- Fixes for Bug 25530, some contributions from Sergey Ivanov
- <seriv@parkheights.dyndns.org>
-
- 04 Jun 2004; David Holm <dholm@gentoo.org> xmail-1.16.ebuild:
- Added to ~ppc.
-
-*xmail-1.16 (30 May 2004)
-
- 30 May 2004; Robin H. Johnson <robbat2@gentoo.org> metadata.xml,
- xmail-1.16.ebuild, files/15xmail, files/xmail.confd, files/xmail.initd,
- files/xmailwizard:
- Moved from net-mail/xmail to mail-mta/xmail.
-
- 25 Feb 2004; Jason Wever <weeve@gentoo.org> xmail-1.16.ebuild:
- Added patch from bug #42771 so xmail builds again on sparc.
-
- 15 Dec 2003; <spider@gentoo.org> files/xmail.initd:
- QA: fixing chown user.group to user:group, bug #35127
-
- 17 Oct 2003; Nick Hadaway <raker@gentoo.org> xmail-1.16.ebuild:
- Marked stable for x86.
-
- 27 Jul 2003; Nick Hadaway <raker@gentoo.org> :
- Okay... both are now REALLY set to 29617.
-
- 25 Jul 2003; Nick Hadaway <raker@gentoo.org> files/xmailwizard:
- Changed port 6017 to 29617 in the wizard to match the confd defaults.
-
- 23 Jul 2003; Nick Hadaway <raker@gentoo.org> files/xmail.initd,
- files/xmail.confd:
- Made changes to the initd file as suggested on bug #24923.
- Thanks to Sergey Ivanov for working out the quirks with this build.
- Added a warn to postinst about needing iptables enabled in the kernel.
-
-*xmail-1.16 (21 Jul 2003)
-
- 21 Jul 2003; Nick Hadaway <raker@gentoo.org> xmail-1.16.ebuild:
- Version bump. Also fixed files/* so that there aren't any cr-lf
- remnants. Made xmailwizard executable.
-
-*xmail-1.15 (26 May 2003)
-
- 10 Jun 2003; Nick Hadaway <raker@gentoo.org> xmail-1.15.ebuild:
- Moved the useradd/groupadd routine to pkg_setup and added the
- PROVIDE="virtual/mta"
-
- 09 Jun 2003; Nick Hadaway <raker@gentoo.org> xmail-1.15.ebuild:
- Commented out the interactive portion of the ebuild and updated the
- groupadd/useradd portion.
-
- 26 May 2003; Sergey Ivanov <seriv@parkheights.dyndns.org> xmail-1.15.ebuild,
- xmail-1.15.ebuild, xmail.initd, xmail.confd, xmailwizard:
- Files updated to chroot XMail into /chroot/xmail, running as unprivileged user
-
-*XMail-1.14 (21 Mar 2003)
-
- 21 Mar 2003; Kevin Williams <kwilliams@sark.com> xmail-1.12.ebuild, files/xmailwizard, files/xmail.initd, files/xmail.confd, files/15xmail :
- ENV.D file for MAIL_ROOT variable,
- CONF.D file for XMail configuration,
- INIT.D script greatly simplified, uses CONF.D file variables,
- automated configuration script - separated from ebuild
-
- 07 Apr 2003; Sergey Ivanov <seriv@parkheights.dyndns.org> xmail-1.12-r0.ebuild,
- xmail-1.14-r0.ebuild, xmail.diff:
- Update ebuild and patch to be independent of version numbers.
-
-*XMail-1.12 (07 Feb 2003)
-
- 18 Feb 2003; Kevin Williams <kwilliams@sark.com> xmail-1.12.ebuild, xmail.diff:
- Initial import.
-
- 11 Mar 2003; Sergey Ivanov <seriv@parkheights.dyndns.org> xmail-1.12.ebuild, xmail.diff
- Updated ebuild and start/stop script to start and stop it by it's own
- control functions
-
- 13 Mar 2003; Sergey Ivanov <seriv@parkheights.dyndns.org> xmail-1.12.ebuild, xmail.diff
- Updated ebuild and start/stop script to according to debian's directory
- structure of XMail mailserver, thanks to Radim Kolar <hsn@cybermail.net>,
- see http://home.worldonline.cz/~cz210552/xmail.html
-
- 18 Mar 2003; Sergey Ivanov <seriv@parkheights.dyndns.org> xmail-1.12-r0.ebuild
- Fix some mistakes in interactive configure script of xmail and move mailboxes
- from /etc/xmail to /var/mail.
diff --git a/mail-mta/xmail/Manifest b/mail-mta/xmail/Manifest
deleted file mode 100644
index 672831e8cd9f..000000000000
--- a/mail-mta/xmail/Manifest
+++ /dev/null
@@ -1,8 +0,0 @@
-AUX 15xmail 24 RMD160 a756268e37cbdd188a502d3576c0ca5ff3852d7d SHA1 2d9cf706a23aae2d048bcad5cbdc00300748cc1d SHA256 6c72de94a699d62ef739e22436e7437b0303ba1a4b40046936ce72018b064975
-AUX xmail.confd 409 RMD160 2cf30115bcc0b013e43b2038312a8d24b5416597 SHA1 8f64b3164715fbac8343e670d529ad086237d4b2 SHA256 071618249229a7842132211603e43a94be5914f9f166fdc6ff2c689b719d07b8
-AUX xmail.initd 2802 RMD160 90a4c9336f59a69c14199df90d4b821f4dd5ebba SHA1 4be3c0825190092e7bd39bfaf9ffb1d0a37816ad SHA256 96c75cd53053978e2faccb79e442bc2b1fceab763be4214fc59f930d0a157efa
-AUX xmailwizard 2299 RMD160 513eb4b212c7aa469115f17beee9e2975194955a SHA1 87153804c243157aa27633c5da548a3cb8a159c4 SHA256 2373801cb55185483f5aeb143e2f475c5d6c913645f132f23b1bd600ee66309b
-DIST xmail-1.22.tar.gz 416738 RMD160 a5496326ef8b8fa6adc834b2f36727849150ed46 SHA1 f57d2c01a050eca3cd9de096c071a1658ace6830 SHA256 bbf4bf4be7fb50c5bb37533370c103e65f4dddb65d0a4885025a7294381adac6
-EBUILD xmail-1.22.ebuild 4216 RMD160 efde2c7efe4b114d83442c521a0987feeb35e8ff SHA1 ad556e43d38b33fa45f1a55505a5e25ed8ae7d71 SHA256 0152c6d1b8b88cc88efea5983af103660e9fc66e985baa4af37e6a9ce4e106b6
-MISC ChangeLog 6074 RMD160 6bb7cdcd5fedfb5aeab0d3888a260531dc98bc68 SHA1 43f2df70a3a7ba32619dc343531068b30708a9f0 SHA256 4344d83d2ffd333541204ba9a85742de1fc52001ccd5a357d700a0a7b3b0d39b
-MISC metadata.xml 161 RMD160 273e570423fa3cd9d3f15f7967a43307c8ee9661 SHA1 a1fecd2f7b169d621b88c6ccab9d758209fc8f19 SHA256 4ebf9a8f60040bfb95f13790c1d146a49c69f791f9c421e02a5d96fd6fcb2b32
diff --git a/mail-mta/xmail/files/15xmail b/mail-mta/xmail/files/15xmail
deleted file mode 100644
index 7274e2c13ba8..000000000000
--- a/mail-mta/xmail/files/15xmail
+++ /dev/null
@@ -1 +0,0 @@
-MAIL_ROOT=/var/MailRoot
diff --git a/mail-mta/xmail/files/xmail.confd b/mail-mta/xmail/files/xmail.confd
deleted file mode 100644
index 8092feee3caa..000000000000
--- a/mail-mta/xmail/files/xmail.confd
+++ /dev/null
@@ -1,19 +0,0 @@
-# all files are relative to this folder
-
-CHROOT="/chroot/xmail"
-MAIL_ROOT=/var/MailRoot
-export CHROOT MAIL_ROOT
-
-# variables for simplicity sake
-MAIL_NAME=XMail
-MAIL_EXEC=/var/MailRoot/bin/$MAIL_NAME
-MAIL_PID=/var/run/$MAIL_NAME.pid
-
-# set your options here
-
-MY_SMTP=29025
-MY_POP3=29110
-MY_FING=29079
-MY_CTRL=29617
-
-MAIL_CMD_LINE=" -Pl -Pp $MY_POP3 -Sl -Sp $MY_SMTP -Ql -Fl -Fp $MY_FING -Cl -Cp $MY_CTRL -Ll"
diff --git a/mail-mta/xmail/files/xmail.initd b/mail-mta/xmail/files/xmail.initd
deleted file mode 100644
index 4cef625af436..000000000000
--- a/mail-mta/xmail/files/xmail.initd
+++ /dev/null
@@ -1,97 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/xmail/files/xmail.initd,v 1.3 2005/06/06 13:22:45 ticho Exp $
-
-depend() {
- need net logger
- use dns
-}
-
-checkconfig() {
- if [ "$MAIL_NAME" == "" ] ; then
- eerror "MAIL_NAME not set - check your /etc/conf.d/xmail file."
- fi
- if [ "$MAIL_ROOT" == "" ] ; then
- eerror "MAIL_ROOT not set - check your /etc/conf.d/xmail file."
- fi
- if [ "$MAIL_PID" == "" ] ; then
- eerror "MAIL_PID not set - check your /etc/conf.d/xmail file."
- fi
- if [ "$MAIL_CMD_LINE" == "" ] ; then
- eerror "MAIL_CMD_LINE not set - check your /etc/conf.d/xmail file."
- fi
- if [ "$MAIL_EXEC" == "" ] ; then
- eerror "MAIL_EXEC not set - check your /etc/conf.d/xmail file."
- fi
- if [ ! -f ${CHROOT}${MAIL_EXEC} ] ; then
- eerror "$MAIL_EXEC not found!"
- fi
- set -e
- ulimit -c 20000
-
-
-}
-
-start() {
- checkconfig || return 1
- ebegin "Starting $MAIL_NAME"
- CHROOT=`sed -n 's/^[[:blank:]]\?CHROOT="\([^"]\+\)"/\1/p' /etc/conf.d/xmail 2>/dev/null`
- EXIST="no"
-
- if [ -z "${CHROOT}" -a ! -d "/chroot/xmail" ]; then
- CHROOT="/chroot/xmail"
- elif [ -d ${CHROOT} ]; then
- EXISTS="yes"
- fi
-
- if [ ! "$EXISTS" = yes ]; then
- einfo; einfo "Setting up the chroot directory..."
- mkdir -m 700 -p ${CHROOT}
- fi
-
- for subdir in dev lib var/run var/MailRoot tmp
- do
- if [ ! -d ${CHROOT}${subdir} ]
- then
- mkdir -p ${CHROOT}/${subdir}
- fi
- done
-
- if [ ! -c ${CHROOT}/dev/null ]
- then
- mknod ${CHROOT}/dev/null c `\
- ls -Ll /dev/null |\
- awk '{print sub(",","",$5) " " $6}'`
- fi
-
- cp -R -u /etc/xmail/* ${CHROOT}${MAIL_ROOT}
-
- chown -R xmail:xmail ${CHROOT}
-
- cp `ldd ${CHROOT}${MAIL_ROOT}/bin/XMail |\
- sed -n 's/[[:blank:]]*\([^=]*\=>\)\? \([^(]*\).*/\2/p;'` ${CHROOT}/lib/
- start-stop-daemon --start -c xmail -r ${CHROOT} \
- --startas ${MAIL_EXEC} --pidfile=${MAIL_PID} -- \
- ${MAIL_CMD_LINE}
- /sbin/iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 110 -j REDIRECT --to-ports 29110
- /sbin/iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 25 -j REDIRECT --to-ports 29025
- /sbin/iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 79 -j REDIRECT --to-ports 29079
-
- eend $? "Failed to start $MAIL_NAME"
-}
-
-stop() {
- ebegin "Stopping $MAIL_NAME"
- /sbin/iptables -t nat -D PREROUTING -i eth0 -p tcp --dport 110 -j REDIRECT --to-ports 29110
- /sbin/iptables -t nat -D PREROUTING -i eth0 -p tcp --dport 25 -j REDIRECT --to-ports 29025
- /sbin/iptables -t nat -D PREROUTING -i eth0 -p tcp --dport 79 -j REDIRECT --to-ports 29079
- start-stop-daemon --stop --quiet --pidfile=${CHROOT}${MAIL_PID} --name $MAIL_NAME --retry 120 --oknodo --signal 2
-
- cd ${CHROOT}${MAIL_ROOT}
- for i in *\.tab
- do
- cp -u -f $i /etc/xmail/
- done
- eend $? "Failed to stop $MAIL_NAME"
-}
diff --git a/mail-mta/xmail/files/xmailwizard b/mail-mta/xmail/files/xmailwizard
deleted file mode 100644
index 6a6dc5540bf2..000000000000
--- a/mail-mta/xmail/files/xmailwizard
+++ /dev/null
@@ -1,65 +0,0 @@
-#!/bin/sh
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License, v2
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/xmail/files/xmailwizard,v 1.2 2004/07/14 22:38:29 agriffis Exp $
-
-MAIL_ROOT=/chroot/xmail/var/MailRoot
-MAIL_CONF=/etc/xmail
-echo "Configuring XMail server ..."
-echo ""
-read -p "Create CtrlClnt login name: " LOGIN
-echo ""
-PASSWD1=1
-until
- read -s -p "Enter CtrlClnt password: " PASSWD
- echo ""
- read -s -p "Enter password again: " PASSWD1
- echo ""
- [ $PASSWD1 == $PASSWD ]
-do
- echo "Passwords do not match, please try again!"
-done
-read -p "Enter fully-qualified domain name (e.g. xmailserver.org): " MYDN
-echo ""
-## process with files
-echo -e "\"$LOGIN\"\t\"`$MAIL_ROOT/bin/XMCrypt $PASSWD`\"\n" >$MAIL_CONF/ctrlaccounts.tab
-cp $MAIL_CONF/server.tab $MAIL_CONF/server.tab.orig
-sed -e "s:xmailserver.test:$MYDN:" <$MAIL_CONF/server.tab.orig >$MAIL_CONF/server.tab
-cp /etc/mail/aliases $MAIL_CONF/aliases.tab
-perl -n -i'.orig' -e "if (!/^\$/ and ! /^#/) {s/: */\t/;s/^/${MYDN}\t/;print}" $MAIL_CONF/aliases.tab
-/etc/init.d/xmail start
-NETSTAT=`netstat -an | grep -c ":29617"`
-while [ $NETSTAT -eq 0 ]; do
- echo "XMail Ctrl server not yet running ... sleeping 10 seconds."
- sleep 10
- NETSTAT=`netstat -an | grep -c ":29617"`
-done
-$MAIL_ROOT/bin/CtrlClnt -n 29617 -s localhost -u $LOGIN -p $PASSWD domainadd $MYDN
-read -n 1 -p "Do you want to add mailusers to $MYDN domain? (y/n): " YESNO
-echo ""
-while [ $YESNO == 'Y' -o $YESNO == 'y' ]
-do
- read -p "Enter mailuser login: " USER
- echo ""
- PASS=1
- until
- read -s -p "Enter mailuser password: " PASS
- echo ""
- read -s -p "Enter password again: " PASS1
- echo ""
- [ "$PASS" == "$PASS1" ]
- do
- echo "Passwords do not match, please try again!"
- done
- $MAIL_ROOT/bin/CtrlClnt -n 29617 -s localhost -u $LOGIN -p $PASSWD useradd $MYDN $USER $PASS U
- read -n 1 -p "Do you want to add more mailusers to $MYDN domain? (y/n): " YESNO
- echo ""
-done
-/etc/init.d/xmail stop
-NETSTAT=`netstat -an | grep -c ":29617"`
-while [ $NETSTAT -ne 0 ]; do
- echo "There is(are) still $NETSTAT open connection(s) ... sleeping 10 seconds."
- sleep 10
- NETSTAT=`netstat -an | grep -c ":29617"`
-done
-echo "Edit the MAIL_CMD_LINE property in /etc/conf.d/xmail to configure logging, TCP/IP bindings, threads, etc."
diff --git a/mail-mta/xmail/metadata.xml b/mail-mta/xmail/metadata.xml
deleted file mode 100644
index 51f94e3fbe0e..000000000000
--- a/mail-mta/xmail/metadata.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-<herd>net-mail</herd>
-</pkgmetadata>
diff --git a/mail-mta/xmail/xmail-1.22.ebuild b/mail-mta/xmail/xmail-1.22.ebuild
deleted file mode 100644
index 5858943baa6b..000000000000
--- a/mail-mta/xmail/xmail-1.22.ebuild
+++ /dev/null
@@ -1,144 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/xmail/xmail-1.22.ebuild,v 1.6 2007/10/28 14:03:22 phreak Exp $
-
-inherit eutils linux-info
-
-DESCRIPTION="The world's fastest email server"
-HOMEPAGE="http://www.xmailserver.org/"
-SRC_URI="http://www.xmailserver.org/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="x86 ~ppc ~sparc"
-IUSE=""
-
-DEPEND="virtual/libc
- >=sys-apps/sed-4"
-RDEPEND="net-firewall/iptables
- virtual/logger"
-PROVIDE="virtual/mta"
-
-pkg_setup() {
-
- linux-info_pkg_setup
-
- if ! (linux_chkconfig_present NETFILTER); then
- eerror "${P} requires netfilter/iptables support enabled in kernel!"
- eerror
- eerror "Recompile your kernel with CONFIG_NETFILTER and CONFIG_IP_NF_TARGET_REDIRECT"
- eerror "support enabled and reboot. Then try to emerge ${P} again."
- die "Kernel without CONFIG_NETFILTER detected!"
- fi
-
- if ! (linux_chkconfig_present IP_NF_TARGET_REDIRECT); then
- eerror "${P} requires CONFIG_IP_NF_TARGET_REDIRECT support to be enabled in kernel!"
- eerror "Recompile your kernel with netfilter REDIRECT target support enabled."
- eerror
- eerror "Reboot will be required if compiled directly into kernel."
- eerror "If reboot is not desired you should choose a module instead and run"
- eerror "make modules && make modules_install"
- die "Kernel without CONFIG_IP_NF_TARGET_REDIRECT detected!"
- fi
-
- enewgroup xmail
- enewuser xmail -1 -1 /dev/null xmail
-}
-
-src_compile() {
- sed -i -e "s:^CFLAGS = -O2:CFLAGS=$CFLAGS:g" Makefile.lnx
-
- # Makefile does not setup dependencies properly to handle parallel build
- emake -j1 -f Makefile.lnx || die
-
- sed -e "s:/var/MailRoot:/chroot/xmail/var/MailRoot:g" sendmail.sh > sendmail.sh.new
-}
-
-src_install() {
- einfo "Setting up directory hierarchy"
- diropts -m 700 -o xmail -g xmail
- dodir /etc/xmail
- keepdir /chroot/xmail/var/MailRoot/bin
- dodir /etc/xmail/tabindex
- dodir /etc/xmail/dnscache/mx
- dodir /etc/xmail/dnscache/ns
- dodir /etc/xmail/spool/local
- dodir /etc/xmail/spool/temp
- dodir /etc/xmail/logs
-
- for i in cmdaliases custdomains domains filters pop3linklocks\
- pop3links pop3locks userauth
- do
- keepdir /etc/xmail/${i}
- done
-
- for i in pop3 smtp
- do
- keepdir /etc/xmail/userauth/${i}
- done
- rm -f ${D}/etc/xmail/userauth/.keep
-
- einfo "Installing the XMail initial configuration"
- insopts -o xmail -g xmail -m 600
- cd ${S}/MailRoot
- insinto /etc/xmail
- doins server.tab ctrl.ipmap.tab dnsroots finger.ipmap.tab\
- message.id pop3.ipmap.tab smtp.ipmap.tab\
- userdef.tab
-
- for i in mailusers extaliases domains mailusers aliases \
- aliasdomain extaliases pop3links smtpauth smtpextauth \
- smtpfwd smtprelay smtpgw spam-address spammers ctrlaccounts \
- filters.in filters.out
- do
- touch ${D}/etc/xmail/${i}.tab
- fowners xmail:xmail /etc/xmail/${i}.tab
- fperms 600 /etc/xmail/${i}.tab
- done
-
- einfo "Installing the XMail documentation"
- dodoc ${S}/docs/*
- dodoc ${S}/gpl.txt
- dodoc ${S}/ToDo.txt
-
- einfo "Installing the XMail software"
- doenvd ${FILESDIR}/15xmail
- newinitd ${FILESDIR}/xmail.initd xmail
- newconfd ${FILESDIR}/xmail.confd xmail
- cd ${S}/bin
- exeopts -o xmail -g xmail -m 4700
- exeinto /usr/sbin
- newexe sendmail sendmail.xmail
- exeopts -o root -g root -m 755
- newexe ../sendmail.sh.new sendmail
- exeopts -o xmail -g xmail -m 700
- exeinto /chroot/xmail/var/MailRoot/bin
- doexe CtrlClnt XMail XMCrypt MkUsers
-}
-
-pkg_postinst() {
- rm -f /etc/xmail/cmdaliases/.keep
- rm -f /etc/xmail/custdomains/.keep
- rm -f /etc/xmail/domains/.keep
- rm -f /etc/xmail/filters/.keep
- rm -f /etc/xmail/pop3linklocks/.keep
- rm -f /etc/xmail/pop3links/.keep
- rm -f /etc/xmail/pop3locks/.keep
- rm -f /etc/xmail/userauth/pop3/.keep
- rm -f /etc/xmail/userauth/smtp/.keep
-
- #read -n 1 -p "Do you want to configure XMail now (y/n)? " YESNO
- #echo ""
- #if [ $YESNO == 'Y' -o $YESNO == 'y' ] ; then
- # sh ${FILESDIR}/xmailwizard
- #else
- # einfo "You can quickly configure XMail by running ${FILESDIR}/xmailwizard."
- #fi
-
- elog "You can quickly configure XMail by running ${FILESDIR}/xmailwizard."
-
- ewarn
- ewarn "Make sure you have iptables/netfilter with connection tracking"
- ewarn "and the REDIRECT target enabled in your kernel!"
- ewarn
-}