summaryrefslogtreecommitdiff
path: root/net-mail/qmailadmin
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-mail/qmailadmin
reinit the tree, so we can have metadata
Diffstat (limited to 'net-mail/qmailadmin')
-rw-r--r--net-mail/qmailadmin/Manifest15
-rw-r--r--net-mail/qmailadmin/files/qmailadmin-1.2.12-quota-overflow.patch118
-rw-r--r--net-mail/qmailadmin/files/qmailadmin-1.2.15-quota-security.patch41
-rw-r--r--net-mail/qmailadmin/files/qmailadmin-1.2.9-maildir.patch11
-rw-r--r--net-mail/qmailadmin/metadata.xml17
-rw-r--r--net-mail/qmailadmin/qmailadmin-1.2.10.ebuild94
-rw-r--r--net-mail/qmailadmin/qmailadmin-1.2.12.ebuild85
-rw-r--r--net-mail/qmailadmin/qmailadmin-1.2.15-r1.ebuild90
-rw-r--r--net-mail/qmailadmin/qmailadmin-1.2.15.ebuild94
-rw-r--r--net-mail/qmailadmin/qmailadmin-1.2.16.ebuild98
10 files changed, 663 insertions, 0 deletions
diff --git a/net-mail/qmailadmin/Manifest b/net-mail/qmailadmin/Manifest
new file mode 100644
index 000000000000..82183a254cbb
--- /dev/null
+++ b/net-mail/qmailadmin/Manifest
@@ -0,0 +1,15 @@
+AUX qmailadmin-1.2.12-quota-overflow.patch 3613 SHA256 82bc168a1c52f26a02fdd568d6bea0323d4a7508241861cd523037fbcefbdddb SHA512 bc2550c86a97dad01558ec57f5ee01e49f1f76feb12cef85e7947fa25d0eaac064b401084972dc195116252bec5454115c432f8be4e9b1377eedbf007a3c4087 WHIRLPOOL 8939ae085f52bc4b5c736b39594ef77f95b0627404a2612fe37cad9e4e4d402f79e333159222bcd28dfe0e1446edbe16f90e98a27f0c8538f16219520b59ac69
+AUX qmailadmin-1.2.15-quota-security.patch 1820 SHA256 155dd74a9dffa752ad5a2f76e017d925d94861fc35d294e80f12ac9f7ca1c67c SHA512 bff16e5066f4090e307c971f0be772a9d3db1715cba75063e1e7a7d1760297d849ee54e2f22e6a4c27d369353ba9492f66111ecf2b9637ee57b29da337affa38 WHIRLPOOL c6a12e40856eef8e8c2ef2648f6edecd1b61f5e699d6f82da631becac4355feafffe1fb9a9afe691bf1781b3e74cfd024e619557d3c3a984c598c7e5c296a16d
+AUX qmailadmin-1.2.9-maildir.patch 253 SHA256 038e72a7770883e6418a10dfacd80d414ff504d554d798e2f42b5a2dadf98caf SHA512 e6d617db023af69d96e5d7d85ba7bbf24886b7b947feab333e4bd219c719351076396bf27b4de97e78a4888cdeabb0d989107133fe3dfcdcfbe92079c2f86045 WHIRLPOOL 6eaab49431fb1f403bc1c77835293d1e1637e0276387ca8f759f0fb5fefebcb15402d55afd5402f4929daf8b6ba995e6d751f29d4b43ebe3eca5b1331085d7ba
+DIST qmailadmin-1.2.10.tar.gz 390150 SHA256 24f27697c268a0031145d1fe3b597f0e3e55af41a09f5c6d499b6c2409ce771b SHA512 43dcd55b9b3458896398eada9a7d0b513cce5bde6edecb8ae54b6519509361dfab18c7600a3f94ff141b4a3b824e93b4a88a5db3e5a8980ddabf2e6dda8cfb47 WHIRLPOOL 7ab4afacb84b210507916b19ea35ab3280a5ea8289b10dcf8a3ba9e2c23467f2bc1f14cd5d5cda7d1ebf5d9fcceebd12a85877961580743d650826801221ada6
+DIST qmailadmin-1.2.12.tar.gz 400144 SHA256 926c6dd91540aed9b011e0c3623ed108acdb5ecc3d6cff8f08731c2f2bba42c4 SHA512 9fea49c3cab31606b37b9b827cd21ee852267e8c5555d96c48d52fc8388d7a3a862384cf18211c89c34525b84f866fa371a70a88386309e32dde1d7d8bb5b3ed WHIRLPOOL f681e817bc9eb96a25e2c73af3535ece35308472870d1a2348eec1c3c4c3b4a2462c791bb443319f10aad8795014c90eae291854cb9affac8cd9ebc8576db901
+DIST qmailadmin-1.2.15.tar.gz 385529 SHA256 3b8bb55a5e567497434c7cf9cbaf8cd73f85b8fa5c56b4bebdf7aef8b2c70db7 SHA512 0cf32916bd6ef47fce091d4a92203fb8b80e0c3349cf8af826c047ba778e7992bcb98002023219648c7aa1ab60fbb052d4726f12f44d68647e657fb3760b8347 WHIRLPOOL 4555e2ee3581f89a1fbcb2777546461cbbbd47ace7577579d5a5c6cb41cb20265e7a31c89d571ed5258e503937f9d5a8f56f34de2adfe59962f33c3ddf23fc5f
+DIST qmailadmin-1.2.16.tar.gz 388689 SHA256 89b72184e31bf2c88a169950a0804dc32389106735f0ab09800996c7be06260f SHA512 4afa18461d8bb91e7075f08f00f3e1ef030a01381d049e122d4c234f2b6db9884d4426e9f4c61d5257e55786228741a3b8ded1fbfb925611f536cedb9d61de91 WHIRLPOOL 397bf6a1158fa015bfe3348fafa063693e0558f8037c24ed93083b8a34cc3fc1425c34c7227ab8e193d5df05763ce19007b9490bfb8bca1ff80b218a11eec3a0
+EBUILD qmailadmin-1.2.10.ebuild 2621 SHA256 ef9e6cfce7ad793d012b4afdde214347fcfdf0c313ce7550bf67701d732a01c8 SHA512 837d3c59e9d0e41ad49c194fffafd44959ba56a4a639857e9a9031be33bb58f0b1f389175e98ed2252370beb8f733d90db6679d8e5682794e596f8ca068fcda4 WHIRLPOOL 95f27ab0c68d5faced073e448537f31aa8edca964cf5e7aaffc627026a20355a08dd09c0a8a9749ce760132f82e1d9817213a8c779490fe8f8901732b389690a
+EBUILD qmailadmin-1.2.12.ebuild 2145 SHA256 27e30766afad740fa40415e66e4ebab12c688d55ee70d5e5216d7d92014e127f SHA512 48a88219bfb7d255fd55a04741c47b1e70170690e7f78730339754320e2d459a7a51f79202f5a0902d1818468625648a68542de0402b5c405145a2e36c0d227a WHIRLPOOL 3b142bfc0a455a27570c600be696c8cb149afb546104b7a6fc61bd9a1141ed3009eca10179410d48aaefd289bd1a6af8a9373c050713cda1c4c7a9938ffc0d01
+EBUILD qmailadmin-1.2.15-r1.ebuild 2333 SHA256 af99c5ab93f45bc8961289e8dc269ab767d5430718c231e7b3e23f4e69e5fa29 SHA512 71bcf44644a28d2cf9d2e28882cb7fa9675200594004f81dfbe6ac4f5c931d9f5b99b83372caf305bc20e393460a38c464580985e9b2c77fcdcc404efb59bdff WHIRLPOOL b5de6dc95781b41274f41afae5646cab33e46acbadb6bc6ad79501ebcd770206bd64a431fe55b78827f12c4bc2d4af432024048bdc7c4783c450b9f74c04c98f
+EBUILD qmailadmin-1.2.15.ebuild 2482 SHA256 86c96fd4856102d3795f281761cc38e99eb76401841b77c4849cf3ac1e706ccd SHA512 eda201b2bd72c85e0f0a9bc6ef4ad2b6b413e19a43ef670ebed5617d0ba49efd772f482f4bd506ba73127e74989b960f2f92fd185c2b13284eb6e318292a4d43 WHIRLPOOL 5f82defe349aa8621e264c41e2efc29ba8eaa8d33092ff9e17368ae04c0d572a657ff8bcd017506aef271f44b989d3387c2f5766c3ba04cd371feb7ecde9477f
+EBUILD qmailadmin-1.2.16.ebuild 2751 SHA256 8fb50461f3aaf22f0e9c490a0838554f669658176d39b2257c585fbe7e01449a SHA512 2b90ccdb084551b3660f96642d704817eb9a6562057c179796cc109254b15b92c05bd800690379835c29dbeff86a4c6f6e7917804b996b51a76b7b14cd690f9a WHIRLPOOL 60008c28b1d6ec1688f7ef4123cf3e2cfae5c4a09244634961f02e10c084a018d003012c3e997e087ee0d601b489dc0fe2b6bad53728f4e570d3debd71dcfe7b
+MISC ChangeLog 2827 SHA256 842a3797f4224af3ce71da94e590ac250b844d99deddf3ec340f48ed2e65422d SHA512 204c547f417baee2b8a35fb9fe845a6ee8f4b06ff120215a7321055b24ac6c5399a3052f48a8f9948c3b3b632045e1ce535ccb6dc8bd01a8ddc8f29eb8b2203a WHIRLPOOL e823b1a8054e4b401ea62e6f1e484bf4b87f5a85481cc87a74e0c7d3737d20fcde07e777055418267b04519f0a368bca20b9f85a215642cfdd2a9a0e67526390
+MISC ChangeLog-2015 5939 SHA256 9aa42eb18ea57bbe31ec226423a4ecfd0fba4a984c5a333fbaf341025943dc76 SHA512 846b40b2710c4c0e31475aa8d39d40ee44c6fcc529d16d5be28b53f82b7619bc8c7ce948b4880846ebefe95c2ec7b54e6b76dd8502ea8fbfe7b8bc326c39534f WHIRLPOOL d56939e98647c132bf780401878bae1294be0108d4725fffcff201d61aa3da5d0847b1a7edf9e3ef167f8161302e7a16bb9a4b841b2acb244f7d4ddd0361b205
+MISC metadata.xml 494 SHA256 eb49992a408b6edb0e11223a05c19d1188ce9cbde9d4c52144b5a3e02a37971e SHA512 b2fbb40308df4de4d19781832a17557947033ab4b44f0ce6a6b8048c81d05ae8e67780970914e97e9774b190c57474ca20877c4d4f93c3d6357e7ec6f7535c5b WHIRLPOOL eeea99e923928277b98ddf668ad8848261730e930887bc6375c05a2bcdd1003a3c60887734b1ff238fbc3c244d6c962a3839f50169edfd168b53b3c2ef10801a
diff --git a/net-mail/qmailadmin/files/qmailadmin-1.2.12-quota-overflow.patch b/net-mail/qmailadmin/files/qmailadmin-1.2.12-quota-overflow.patch
new file mode 100644
index 000000000000..b4c5aa90248a
--- /dev/null
+++ b/net-mail/qmailadmin/files/qmailadmin-1.2.12-quota-overflow.patch
@@ -0,0 +1,118 @@
+diff -Nurp qmailadmin-1.2.12/util.c qmailadmin-1.2.12.new/util.c
+--- qmailadmin-1.2.12/util.c 2007-09-21 19:27:40.000000000 -0400
++++ qmailadmin-1.2.12.new/util.c 2009-07-11 01:54:02.000000000 -0400
+@@ -19,10 +19,11 @@
+
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <stddef.h>
++#include <errno.h>
+ #include <string.h>
+ #include <unistd.h>
+ #include <sys/stat.h>
+-#include <unistd.h>
+ #include <pwd.h>
+ #include <dirent.h>
+ #include <ctype.h>
+@@ -352,41 +353,70 @@ char *get_quota_used(char *dir) {
+ back to bytes for vpasswd file
+ return value: 0 for success, 1 for failure
+ */
+-int quota_to_bytes(char returnval[], char *quota) {
++int quota_to_bytes(char returnval[], const char *quota) {
+ double tmp;
++ int err = 0;
+
+ if (quota == NULL) { return 1; }
+- if ((tmp = atof(quota))) {
+- tmp *= 1048576;
+- sprintf(returnval, "%.0lf", tmp);
+- return 0;
++
++ /* first set errno to 0 to determine if an error occurs */
++ errno = 0;
++ tmp = strtod(quota, NULL);
++ err = errno;
++ if (err != 0) {
++ perror("quota_to_bytes");
++ return 1;
+ } else {
+- strcpy (returnval, "");
+- return 1;
++ tmp *= (1024*1024);
++ err = sprintf(returnval, "%.0lf", tmp);
++ if (err > 0) {
++ return 0;
++ } else {
++ returnval[0] = '\0';
++ return 1;
++ }
+ }
+ }
+ /* quota_to_megabytes: used to convert vpasswd representation of quota
+ to number of megabytes.
+ return value: 0 for success, 1 for failure
+ */
+-int quota_to_megabytes(char *returnval, char *quota) {
++int quota_to_megabytes(char *returnval, const char *quota) {
+ double tmp;
+- int i;
++ int err = 0;
++ size_t i;
+
+ if (quota == NULL) { return 1; }
+ i = strlen(quota);
++
++ errno = 0;
++ tmp = strtod(quota, NULL);
++ err = errno;
++ if (err != 0) {
++ perror("quota_to_megabytes");
++ return 1;
++ }
++
+ if ((quota[i-1] == 'M') || (quota[i-1] == 'm')) {
+- tmp = atol(quota); /* already in megabytes */
++ /* already in megabytes */
+ } else if ((quota[i-1] == 'K') || (quota[i-1] == 'k')) {
+- tmp = atol(quota) * 1024; /* convert kilobytes to megabytes */
+- } else if ((tmp = atol(quota))) {
+- tmp /= 1048576.0;
++ /* convert kilobytes to megabytes */
++ tmp *= 1024;
++ } else if (tmp != 0) {
++ /* convert bytes to megabytes */
++ tmp /= (1024*1024);
+ } else {
+- strcpy (returnval, "");
+- return 1;
++ returnval[0] = '\0';
++ return 1;
++ }
++
++ err = sprintf(returnval, "%.2lf", tmp);
++ if (err > 0) {
++ return 0;
++ } else {
++ returnval[0] = '\0';
++ return 1;
+ }
+- sprintf(returnval, "%.2lf", tmp);
+- return 0;
+ }
+
+ void print_user_index (char *action, int colspan, char *user, char *dom, time_t mytime)
+diff -Nurp qmailadmin-1.2.12/util.h qmailadmin-1.2.12.new/util.h
+--- qmailadmin-1.2.12/util.h 2007-09-21 19:27:40.000000000 -0400
++++ qmailadmin-1.2.12.new/util.h 2009-07-11 02:02:45.000000000 -0400
+@@ -25,8 +25,8 @@ void str_replace (char *, char, char);
+
+ void qmail_button(char *modu, char *command, char *user, char *dom, time_t mytime, char *png);
+
+-int quota_to_bytes(char[], char*); //jhopper prototype
+-int quota_to_megabytes(char[], char*); //jhopper prototype
++int quota_to_bytes(char[], const char*); //jhopper prototype
++int quota_to_megabytes(char[], const char*); //jhopper prototype
+
+ void print_user_index (char *action, int colspan, char *user, char *dom, time_t mytime);
+ char *cgiurl (char *action);
diff --git a/net-mail/qmailadmin/files/qmailadmin-1.2.15-quota-security.patch b/net-mail/qmailadmin/files/qmailadmin-1.2.15-quota-security.patch
new file mode 100644
index 000000000000..bf8ca4785dfd
--- /dev/null
+++ b/net-mail/qmailadmin/files/qmailadmin-1.2.15-quota-security.patch
@@ -0,0 +1,41 @@
+Previous patch did not fix the 32-bit overflow properly.
+This goes with the vpopmail 5.4.33 matching quota fix (in upstream).
+
+X-Gentoo-Bug: 269129
+Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
+
+diff -Nuar qmailadmin-1.2.15.orig/qmailadmin.h qmailadmin-1.2.15/qmailadmin.h
+--- qmailadmin-1.2.15.orig/qmailadmin.h 2013-05-30 23:42:27.689759997 +0000
++++ qmailadmin-1.2.15/qmailadmin.h 2013-05-30 23:44:33.870866242 +0000
+@@ -63,4 +63,4 @@
+ /* copied from maildirquota.c in vpopmail
+ * it really needs to get into vpopmail.h somehow
+ */
+-int readuserquota(const char* dir, long *sizep, int *cntp);
++//int readuserquota(const char* dir, storage_t *sizep, storage_t *cntp);
+diff -Nuar qmailadmin-1.2.15.orig/template.c qmailadmin-1.2.15/template.c
+--- qmailadmin-1.2.15.orig/template.c 2009-02-06 05:30:05.000000000 +0000
++++ qmailadmin-1.2.15/template.c 2013-05-30 23:45:47.319571080 +0000
+@@ -426,7 +426,7 @@
+ case 'Q':
+ vpw = vauth_getpw(ActionUser, Domain);
+ if (strncmp(vpw->pw_shell, "NOQUOTA", 2) != 0) {
+- long diskquota = 0;
+- int maxmsg = 0;
++ uint64_t diskquota = 0;
++ uint64_t maxmsg = 0;
+ char path[256];
+
+diff -Nuar qmailadmin-1.2.15.orig/user.c qmailadmin-1.2.15/user.c
+--- qmailadmin-1.2.15.orig/user.c 2009-05-02 19:13:29.000000000 +0000
++++ qmailadmin-1.2.15/user.c 2013-05-30 23:45:26.039946212 +0000
+@@ -170,7 +170,7 @@
+ (AdminType==USER_ADMIN && strcmp(pw->pw_name,Username)==0)))) {
+ if (AdminType==DOMAIN_ADMIN ||
+ (AdminType==USER_ADMIN && strcmp(pw->pw_name,Username)==0)) {
+- long diskquota = 0;
+- int maxmsg = 0;
++ uint64_t diskquota = 0;
++ uint64_t maxmsg = 0;
+
+ /* display account name and user name */
diff --git a/net-mail/qmailadmin/files/qmailadmin-1.2.9-maildir.patch b/net-mail/qmailadmin/files/qmailadmin-1.2.9-maildir.patch
new file mode 100644
index 000000000000..e2a8f49a5c1b
--- /dev/null
+++ b/net-mail/qmailadmin/files/qmailadmin-1.2.9-maildir.patch
@@ -0,0 +1,11 @@
+--- qmailadmin-1.2.9/qmailadmin.h
++++ qmailadmin-1.2.9/qmailadmin.h
+@@ -24,7 +24,7 @@
+ * it below.
+ */
+ #ifndef MAILDIR
+-#define MAILDIR "Maildir"
++#define MAILDIR ".maildir"
+ #endif
+
+ /* max # of forwards a user can set on the Modify User screen */
diff --git a/net-mail/qmailadmin/metadata.xml b/net-mail/qmailadmin/metadata.xml
new file mode 100644
index 000000000000..8510b6c0671f
--- /dev/null
+++ b/net-mail/qmailadmin/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>robbat2@gentoo.org</email>
+ </maintainer>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <use>
+ <flag name="maildrop">Filter spam using maildrop</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">qmailadmin</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-mail/qmailadmin/qmailadmin-1.2.10.ebuild b/net-mail/qmailadmin/qmailadmin-1.2.10.ebuild
new file mode 100644
index 000000000000..03103df34d1e
--- /dev/null
+++ b/net-mail/qmailadmin/qmailadmin-1.2.10.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils
+
+# TODO: convert this ebuild to use web-app.
+
+# the RESTRICT is because the vpopmail lib directory is locked down
+# and non-root can't access them.
+RESTRICT='userpriv'
+
+MY_PV="${PV/_rc/-rc}"
+MY_P="${PN}-${MY_PV}"
+DESCRIPTION="A web interface for managing a qmail system with virtual domains"
+HOMEPAGE="http://www.inter7.com/qmailadmin.html"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 arm ~hppa ppc s390 sh sparc x86"
+IUSE="maildrop"
+
+DEPEND="virtual/qmail
+ >=net-mail/vpopmail-5.3
+ net-mail/autorespond
+ maildrop? ( >=mail-filter/maildrop-2.0.1 )"
+RDEPEND="${DEPEND}"
+# apache and lighttpd both work, but there's no virtual yet
+# www-servers/apache"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${PN}-1.2.9-maildir.patch
+}
+
+src_compile() {
+ local dir_vpopmail="/var/vpopmail"
+ local dir_vhost="/var/www/localhost"
+ local dir_htdocs="${dir_vhost}/htdocs/${PN}"
+ local dir_htdocs_images="${dir_htdocs}/images"
+ local url_htdocs_images="/${PN}/images"
+ local dir_cgibin="${dir_vhost}/cgi-bin"
+ local url_cgibin="/cgi-bin/${PN}"
+ local dir_htdocs_htmlib="/usr/share/${PN}/htmllib"
+ local dir_qmail="/var/qmail"
+ local dir_true="/bin"
+ local dir_ezmlm="/usr/bin"
+ local dir_autorespond="/var/qmail/bin"
+
+ # Pass spam stuff through $@ so we get the quoting right
+ if use maildrop ; then
+ set -- --enable-modify-spam \
+ --enable-spam-command='|preline maildrop /etc/maildroprc'
+ else
+ set --
+ fi
+
+ econf \
+ --enable-valias \
+ --enable-vpopmaildir=${dir_vpopmail} \
+ --enable-htmldir=${dir_htdocs} \
+ --enable-imageurl=${url_htdocs_images} \
+ --enable-imagedir=${dir_htdocs_images} \
+ --enable-htmllibdir=${dir_htdocs_htmlib} \
+ --enable-qmaildir=${dir_qmail} \
+ --enable-true-path=${dir_true} \
+ --enable-ezmlmdir=${dir_ezmlm} \
+ --enable-cgibindir=${dir_cgibin} \
+ --enable-cgipath=${url_cgibin} \
+ --enable-autoresponder-path=${dir_autorespond} \
+ --enable-domain-autofill \
+ --enable-modify-quota \
+ --enable-no-cache \
+ --enable-maxusersperpage=50 \
+ --enable-maxaliasesperpage=50 \
+ --enable-vpopuser=vpopmail \
+ --enable-vpopgroup=vpopmail \
+ "$@" \
+ || die "econf failed"
+ emake || die
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die
+ dodoc AUTHORS INSTALL README.hooks BUGS TODO ChangeLog TRANSLATORS NEWS FAQ README contrib/*
+}
+
+pkg_postinst() {
+ elog "If you would like support for ezmlm mailing lists inside qmailadmin,"
+ elog "please emerge some variant of ezmlm-idx."
+}
diff --git a/net-mail/qmailadmin/qmailadmin-1.2.12.ebuild b/net-mail/qmailadmin/qmailadmin-1.2.12.ebuild
new file mode 100644
index 000000000000..72b043e6e48e
--- /dev/null
+++ b/net-mail/qmailadmin/qmailadmin-1.2.12.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit qmail eutils webapp
+
+# the RESTRICT is because the vpopmail lib directory is locked down
+# and non-root can't access them.
+RESTRICT="userpriv"
+
+MY_P=${P/_rc/-rc}
+
+DESCRIPTION="A web interface for managing a qmail system with virtual domains"
+HOMEPAGE="http://www.inter7.com/qmailadmin.html"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+WEBAPP_MANUAL_SLOT="yes"
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~s390 ~sh ~sparc ~x86"
+IUSE="maildrop"
+
+DEPEND="virtual/qmail
+ >=net-mail/vpopmail-5.3
+ net-mail/autorespond
+ maildrop? ( >=mail-filter/maildrop-2.0.1 )"
+
+S="${WORKDIR}"/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${PN}-1.2.9-maildir.patch
+}
+
+src_compile() {
+ # Pass spam stuff through $@ so we get the quoting right
+ if use maildrop ; then
+ set -- --enable-modify-spam \
+ --enable-spam-command='|preline maildrop /etc/maildroprc'
+ else
+ set --
+ fi
+
+ econf \
+ --enable-valias \
+ --enable-vpopmaildir=/var/vpopmail \
+ --enable-htmldir="${MY_HTDOCSDIR}" \
+ --enable-imagedir="${MY_HTDOCSDIR}"/images \
+ --enable-imageurl=/${PN}/images \
+ --enable-htmllibdir=/usr/share/${PN}/htmllib \
+ --enable-cgibindir="${MY_CGIBINDIR}" \
+ --enable-cgipath=/cgi-bin/${PN} \
+ --enable-qmaildir="${QMAIL_HOME}" \
+ --enable-autoresponder-path="${QMAIL_HOME}"/bin \
+ --enable-true-path=/bin \
+ --enable-ezmlmdir=/usr/bin \
+ --enable-domain-autofill \
+ --enable-modify-quota \
+ --enable-no-cache \
+ --enable-maxusersperpage=50 \
+ --enable-maxaliasesperpage=50 \
+ --enable-vpopuser=vpopmail \
+ --enable-vpopgroup=vpopmail \
+ "$@" \
+ || die "econf failed"
+
+ emake || die "make failed"
+}
+
+src_install() {
+ webapp_src_preinst
+
+ make DESTDIR="${D}" install || die "make install failed"
+
+ dodoc AUTHORS INSTALL README.hooks BUGS TODO ChangeLog \
+ TRANSLATORS NEWS FAQ README contrib/*
+
+ webapp_src_install
+}
+
+pkg_postinst() {
+ einfo "If you would like support for ezmlm mailing lists inside qmailadmin,"
+ einfo "please emerge some variant of ezmlm-idx."
+ webapp_pkg_postinst
+}
diff --git a/net-mail/qmailadmin/qmailadmin-1.2.15-r1.ebuild b/net-mail/qmailadmin/qmailadmin-1.2.15-r1.ebuild
new file mode 100644
index 000000000000..ac996e0daec4
--- /dev/null
+++ b/net-mail/qmailadmin/qmailadmin-1.2.15-r1.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit qmail eutils webapp autotools
+
+# the RESTRICT is because the vpopmail lib directory is locked down
+# and non-root can't access them.
+RESTRICT="userpriv"
+
+MY_P=${P/_rc/-rc}
+
+DESCRIPTION="A web interface for managing a qmail system with virtual domains"
+HOMEPAGE="http://www.inter7.com/qmailadmin.html"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+WEBAPP_MANUAL_SLOT="yes"
+KEYWORDS="amd64 arm ~hppa ia64 ppc s390 sh sparc x86"
+IUSE="maildrop"
+
+DEPEND="virtual/qmail
+ >=net-mail/vpopmail-5.4.33
+ net-mail/autorespond
+ maildrop? ( >=mail-filter/maildrop-2.0.1 )"
+
+S="${WORKDIR}"/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${PN}-1.2.9-maildir.patch
+ epatch "${FILESDIR}"/${PN}-1.2.12-quota-overflow.patch
+ epatch "${FILESDIR}"/${PN}-1.2.15-quota-security.patch
+ eautoreconf
+}
+
+src_compile() {
+ # Pass spam stuff through $@ so we get the quoting right
+ if use maildrop ; then
+ set -- --enable-modify-spam \
+ --enable-spam-command='|preline maildrop /etc/maildroprc'
+ else
+ set --
+ fi
+
+ econf \
+ --enable-valias \
+ --enable-vpopmaildir=/var/vpopmail \
+ --enable-htmldir="${MY_HTDOCSDIR}" \
+ --enable-imagedir="${MY_HTDOCSDIR}"/images \
+ --enable-imageurl=/${PN}/images \
+ --enable-htmllibdir=/usr/share/${PN}/htmllib \
+ --enable-cgibindir="${MY_CGIBINDIR}" \
+ --enable-cgipath=/cgi-bin/${PN} \
+ --enable-qmaildir="${QMAIL_HOME}" \
+ --enable-autoresponder-path="${QMAIL_HOME}"/bin \
+ --enable-true-path=/bin \
+ --enable-ezmlmdir=/usr/bin \
+ --enable-domain-autofill \
+ --enable-modify-quota \
+ --enable-no-cache \
+ --enable-trivial-password \
+ --enable-catchall \
+ --enable-maxusersperpage=50 \
+ --enable-maxaliasesperpage=50 \
+ --enable-vpopuser=vpopmail \
+ --enable-vpopgroup=vpopmail \
+ "$@" \
+ || die "econf failed"
+
+ emake || die "make failed"
+}
+
+src_install() {
+ webapp_src_preinst
+
+ make DESTDIR="${D}" install || die "make install failed"
+
+ dodoc AUTHORS INSTALL README.hooks BUGS TODO ChangeLog \
+ TRANSLATORS NEWS FAQ README contrib/*
+
+ webapp_src_install
+}
+
+pkg_postinst() {
+ einfo "If you would like support for ezmlm mailing lists inside qmailadmin,"
+ einfo "please emerge some variant of ezmlm-idx."
+ webapp_pkg_postinst
+}
diff --git a/net-mail/qmailadmin/qmailadmin-1.2.15.ebuild b/net-mail/qmailadmin/qmailadmin-1.2.15.ebuild
new file mode 100644
index 000000000000..03817b4d3ed0
--- /dev/null
+++ b/net-mail/qmailadmin/qmailadmin-1.2.15.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit qmail eutils webapp autotools
+
+# the RESTRICT is because the vpopmail lib directory is locked down
+# and non-root can't access them.
+RESTRICT="userpriv"
+
+MY_P=${P/_rc/-rc}
+
+DESCRIPTION="A web interface for managing a qmail system with virtual domains"
+HOMEPAGE="http://www.inter7.com/qmailadmin.html"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+WEBAPP_MANUAL_SLOT="yes"
+KEYWORDS="amd64 arm ~hppa ppc s390 sh sparc x86"
+IUSE="maildrop"
+
+DEPEND="virtual/qmail
+ >=net-mail/vpopmail-5.3
+ net-mail/autorespond
+ maildrop? ( >=mail-filter/maildrop-2.0.1 )"
+
+S="${WORKDIR}"/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${PN}-1.2.9-maildir.patch
+ epatch "${FILESDIR}"/${PN}-1.2.12-quota-overflow.patch
+ eautoreconf
+}
+
+src_compile() {
+ # Pass spam stuff through $@ so we get the quoting right
+ if use maildrop ; then
+ set -- --enable-modify-spam \
+ --enable-spam-command='|preline maildrop /etc/maildroprc'
+ else
+ set --
+ fi
+ # If vpopmail is built with mysql, we need to pick that up.
+ CFLAGS="${CFLAGS} $(</var/vpopmail/etc/inc_deps)"
+ LDFLAGS="${LDFLAGS} $(</var/vpopmail/etc/lib_deps)"
+
+ econf \
+ --enable-valias \
+ --enable-vpopmaildir=/var/vpopmail \
+ --enable-htmldir="${MY_HTDOCSDIR}" \
+ --enable-imagedir="${MY_HTDOCSDIR}"/images \
+ --enable-imageurl=/${PN}/images \
+ --enable-htmllibdir=/usr/share/${PN}/htmllib \
+ --enable-cgibindir="${MY_CGIBINDIR}" \
+ --enable-cgipath=/cgi-bin/${PN} \
+ --enable-qmaildir="${QMAIL_HOME}" \
+ --enable-autoresponder-path="${QMAIL_HOME}"/bin \
+ --enable-true-path=/bin \
+ --enable-ezmlmdir=/usr/bin \
+ --enable-domain-autofill \
+ --enable-modify-quota \
+ --enable-no-cache \
+ --enable-trivial-password \
+ --enable-catchall \
+ --enable-maxusersperpage=50 \
+ --enable-maxaliasesperpage=50 \
+ --enable-vpopuser=vpopmail \
+ --enable-vpopgroup=vpopmail \
+ LDFLAGS="${LDFLAGS}" \
+ CFLAGS="${CFLAGS}" \
+ "$@" \
+ || die "econf failed"
+
+ emake || die "make failed"
+}
+
+src_install() {
+ webapp_src_preinst
+
+ make DESTDIR="${D}" install || die "make install failed"
+
+ dodoc AUTHORS INSTALL README.hooks BUGS TODO ChangeLog \
+ TRANSLATORS NEWS FAQ README contrib/*
+
+ webapp_src_install
+}
+
+pkg_postinst() {
+ einfo "If you would like support for ezmlm mailing lists inside qmailadmin,"
+ einfo "please emerge some variant of ezmlm-idx."
+ webapp_pkg_postinst
+}
diff --git a/net-mail/qmailadmin/qmailadmin-1.2.16.ebuild b/net-mail/qmailadmin/qmailadmin-1.2.16.ebuild
new file mode 100644
index 000000000000..cf2bb9ac919e
--- /dev/null
+++ b/net-mail/qmailadmin/qmailadmin-1.2.16.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit qmail eutils webapp autotools
+
+# the RESTRICT is because the vpopmail lib directory is locked down
+# and non-root can't access them.
+RESTRICT="userpriv"
+
+MY_P=${P/_rc/-rc}
+
+DESCRIPTION="A web interface for managing a qmail system with virtual domains"
+HOMEPAGE="http://www.inter7.com/qmailadmin.html"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+WEBAPP_MANUAL_SLOT="yes"
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~s390 ~sh ~sparc ~x86"
+IUSE="maildrop"
+
+DEPEND="virtual/qmail
+ >=net-mail/vpopmail-5.4.33
+ net-mail/autorespond
+ maildrop? ( >=mail-filter/maildrop-2.0.1 )"
+
+S="${WORKDIR}"/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${PN}-1.2.9-maildir.patch
+ eautoreconf
+}
+
+src_compile() {
+ # Pass spam stuff through $@ so we get the quoting right
+ if use maildrop ; then
+ set -- --enable-modify-spam \
+ --enable-spam-command='|preline maildrop /etc/maildroprc'
+ else
+ set --
+ fi
+
+ econf \
+ --enable-valias \
+ --enable-vpopmaildir=/var/vpopmail \
+ --enable-htmldir="${MY_HTDOCSDIR}" \
+ --enable-imagedir="${MY_HTDOCSDIR}"/images \
+ --enable-imageurl=/${PN}/images \
+ --enable-htmllibdir=/usr/share/${PN}/htmllib \
+ --enable-cgibindir="${MY_CGIBINDIR}" \
+ --enable-cgipath=/cgi-bin/${PN} \
+ --enable-qmaildir="${QMAIL_HOME}" \
+ --enable-autoresponder-path="${QMAIL_HOME}"/bin \
+ --enable-true-path=/bin \
+ --enable-ezmlmdir=/usr/bin \
+ --enable-domain-autofill \
+ --enable-modify-quota \
+ --enable-no-cache \
+ --enable-trivial-password \
+ --enable-catchall \
+ --enable-maxusersperpage=50 \
+ --enable-maxaliasesperpage=50 \
+ --enable-vpopuser=vpopmail \
+ --enable-vpopgroup=vpopmail \
+ "$@" \
+ || die "econf failed"
+
+ emake || die "make failed"
+}
+
+src_install() {
+ webapp_src_preinst
+
+ make DESTDIR="${D}" install || die "make install failed"
+
+ dodoc AUTHORS INSTALL README.hooks BUGS TODO ChangeLog \
+ TRANSLATORS NEWS FAQ README contrib/*
+
+ webapp_src_install
+
+ # CGI needs to be able to read /etc/vpopmail.conf
+ # Which is 0640 root:vpopmail, as it contains passwords
+ cgi=/usr/share/webapps/${PN}/${PV}/hostroot/cgi-bin/qmailadmin
+ fowners root:vpopmail $cgi
+ fperms g+s $cgi
+}
+
+pkg_postinst() {
+ einfo "If you would like support for ezmlm mailing lists inside qmailadmin,"
+ einfo "please emerge some variant of ezmlm-idx."
+ webapp_pkg_postinst
+ einfo "For complete webapp-config support:"
+ einfo "1. Add this for the Apache cgi-bin dir: Options +ExecCGI -MultiViews +FollowSymLinks"
+ einfo "2. Run: webapp-config -I -h localhost -d qmailadmin $PN $PV"
+ einfo "3. Symlink: ln -s {/usr/share/webapps/${PN}/${PV}/hostroot,/var/www/localhost}/cgi-bin/${PN}"
+}