summaryrefslogtreecommitdiff
path: root/net-mail/mailbase
diff options
context:
space:
mode:
Diffstat (limited to 'net-mail/mailbase')
-rw-r--r--net-mail/mailbase/Manifest9
-rw-r--r--net-mail/mailbase/files/aliases33
-rw-r--r--net-mail/mailbase/files/common-pamd7
-rw-r--r--net-mail/mailbase/files/common-pamd-include7
-rw-r--r--net-mail/mailbase/files/mailcap25
-rw-r--r--net-mail/mailbase/mailbase-1.1.ebuild69
-rw-r--r--net-mail/mailbase/mailbase-1.ebuild68
-rw-r--r--net-mail/mailbase/metadata.xml8
8 files changed, 226 insertions, 0 deletions
diff --git a/net-mail/mailbase/Manifest b/net-mail/mailbase/Manifest
new file mode 100644
index 000000000000..91261a0d32ab
--- /dev/null
+++ b/net-mail/mailbase/Manifest
@@ -0,0 +1,9 @@
+AUX aliases 809 SHA256 41fffc461dfa6a8c36564698b4d9eaabaf280dbc446b3e7f3af4820930e687d6 SHA512 748dcdd4da9deba0a5c0925b67d98bb0e46d3ef651bb97a4be2ac34a683a9090bd11e5e3c28b69d0309f806a4f60aa826e4d940e7549ac636196cd2ac4bbef2d WHIRLPOOL df43ef804c3ee035f3caa8fec55ddc77d1f66acbd21df6e059599289c9e47e4c81a772d8f2cc05fea240e9b64dfffea682b674d9d73f47c58fb78a93a9057682
+AUX common-pamd 308 SHA256 605c0a13bd80b931805d9b8b32db7e86122797da502c267804fee2a39984c45f SHA512 5b7d878969e644aac8aa9355e1a8ff9e2a9c1b07edb5a62c694bd7a4f87961242db7c85b1030540c9ad733a4d3d4c5367a047a188b21517d1d077bec6e620ec7 WHIRLPOOL 210fd35e73731305d0d9b2967c9f1e7315d4ce0a7e99194347af235405e80eab9155b2cf6354d2dd2d900122094069521cb0984f82aab5f89cc6e7ebd908cedb
+AUX common-pamd-include 245 SHA256 dd3922c06f0164d2307c3af793f05c897782af2dc28c53bda2298e3ee4446ec7 SHA512 3516815034b419bf4fd57a43536e7a25b820013d5339cb818bbbee3f0e8e26651f6b4aefae0177240219e05010ba8a2aaf6d0337220cf176801992204c3216f0 WHIRLPOOL 05bd675bedb677a396dc1369e85d7a0888380ce1009d2d96fe7730ffc01c588ac6635daab73840276bc7fe47186a7fb7fe9e34c7109196617cd13e9a18f33466
+AUX mailcap 2235 SHA256 99dcf0c43b9aa26625a8ff7e375e13f85cc0d677a93e90da62a868d8a2162cda SHA512 1461deb4f065c0d1778acbbcb1e08db821740de0363d3905a569d45d459a76d8813ef1c2c052d6e84b4b9b5576c89e524ecf44a9fffd8e05e91f85eb917557b0 WHIRLPOOL 888c53ea5a2623f3f8bf5d4ac91aac2ff8f78528be8c8b2c4fd8c3b77fd8a7e7d295c0a0ebc31d881d9226a758b43183fd269704c015526f7d45acbed577ee34
+EBUILD mailbase-1.1.ebuild 1661 SHA256 e392db663df885f3fc537e696b646166dc2dfc264932e8f6518f885411eea0f4 SHA512 85c9fbb1cf3ee6fb0725d810bb81eb5304e63b38dd5c9ec80006c26610ba02d632cc365d8ec04771c641642a26c58744f009a8ee3f5313fa92814901a5b25047 WHIRLPOOL 8264734772bb9f09932893f7c806657506c0e284fd2744dbe8a08fdf55c500a092bf29a421a9552a61a848e48ef38e208ceea8e69a36529f56494eca19eb7680
+EBUILD mailbase-1.ebuild 1612 SHA256 681b19c82a19a4603a0655b5278d905482d50881f3ceb1b1ff9826b549a66261 SHA512 ecc5194b4e35b628e9527883795f34c458550b4400ce97d37524bb0b92487f7607dd08c011f042fbfcece3cbe03d57f2476140b2436414c759e016bf096c2f4e WHIRLPOOL cad11a7c80bf8ede4b3af95eb5865710116769bf555dcf0e97fc48993f30e928d5e17251a3d5b93a8f2ac2f16fbd532647369cd1ff4c0594d9f84d4d75d1ed0a
+MISC ChangeLog 2596 SHA256 25a86e46333014b6f9926c1e52b1543a28e54c3f40a3500ba356d223e21a1783 SHA512 47b88459b8c20722eb47499b0df8f2b40ccf9dbb2c57175f36d57d5da06afe6fd0682b62e125824ee08b19e5cbb9ea7092f7c6d390ff1d0331ad3d834cd8c7e4 WHIRLPOOL 5bda8cca116cdae34a8bf0f4e5a803001127ebef92ffb2065afba8b05806a97ffac68e4dd1d5075065624cccdcd5aa12410efdf1d6aa8052ab24d9f5f264577e
+MISC ChangeLog-2015 10572 SHA256 2ae91142f066be1c583a63ccefd27d9294c94b2cf4679c23c072c82ab11e9565 SHA512 d10ff250d2a49a5bbe031b23638087512b21d9b5a3af33afc0aa80d54fc2456c980a909e1017fb543f7e24c763a15b1737cb1492f32592f51bdc4a002a184df1 WHIRLPOOL 1f60a694e34c48a338ea392cd916325900870994a38d776338f645c9be1bc722a26f5afbb750c8343327791a412889260f8d3d37f6340251c761f74f75800b85
+MISC metadata.xml 240 SHA256 f0e0bb7a24c4b1ff6b6a8a3e9315245c298499c03fbda429c0f775ec6a5396af SHA512 97824dbce22630efb21e647b55212b7a8a19d8e38b5bf05cb0b8078530bbbaaf4dc91284e2a11beab7dfcfb779df82b87b49d11a746c7a4f6dc71f2fda8942db WHIRLPOOL a7adfcb24489ae67a43a59d8350a70b20874fb03de95681c5b516a741d95422560a433f641de5a7222cf5d3500333e215055ec0cb3844e7abc6d6a836de97357
diff --git a/net-mail/mailbase/files/aliases b/net-mail/mailbase/files/aliases
new file mode 100644
index 000000000000..ea8350591659
--- /dev/null
+++ b/net-mail/mailbase/files/aliases
@@ -0,0 +1,33 @@
+# Basic system aliases -- these MUST be present.
+MAILER-DAEMON: postmaster
+postmaster: root
+
+# General redirections for pseudo accounts.
+adm: root
+bin: root
+daemon: root
+exim: root
+lp: root
+mail: root
+named: root
+nobody: root
+postfix: root
+
+# Well-known aliases -- these should be filled in!
+# root:
+# operator:
+
+# Standard RFC2142 aliases
+abuse: postmaster
+ftp: root
+hostmaster: root
+news: usenet
+noc: root
+security: root
+usenet: root
+uucp: root
+webmaster: root
+www: webmaster
+
+# trap decode to catch security attacks
+# decode: /dev/null
diff --git a/net-mail/mailbase/files/common-pamd b/net-mail/mailbase/files/common-pamd
new file mode 100644
index 000000000000..5464207607c8
--- /dev/null
+++ b/net-mail/mailbase/files/common-pamd
@@ -0,0 +1,7 @@
+# Provided by mailbase (dont remove this line!)
+# Standard pam.d file for mail service packages.
+
+auth required pam_nologin.so
+auth required pam_stack.so service=system-auth
+account required pam_stack.so service=system-auth
+session required pam_stack.so service=system-auth
diff --git a/net-mail/mailbase/files/common-pamd-include b/net-mail/mailbase/files/common-pamd-include
new file mode 100644
index 000000000000..f8ebe560fdb6
--- /dev/null
+++ b/net-mail/mailbase/files/common-pamd-include
@@ -0,0 +1,7 @@
+# Provided by mailbase (dont remove this line!)
+# Standard pam.d file for mail service packages.
+
+auth required pam_nologin.so
+auth include system-auth
+account include system-auth
+session include system-auth
diff --git a/net-mail/mailbase/files/mailcap b/net-mail/mailbase/files/mailcap
new file mode 100644
index 000000000000..7c42a55cf635
--- /dev/null
+++ b/net-mail/mailbase/files/mailcap
@@ -0,0 +1,25 @@
+
+text/plain; less '%s'; needsterminal
+application/x-troff-man; /usr/bin/nroff -mandoc -Tlatin1; copiousoutput; print=/usr/bin/nroff -mandoc -Tlatin1 | print text/plain:-
+text/plain; shownonascii iso-8859-1 '%s'; description="Plain ASCII Text"; test=test "$(echo %{charset} | tr "[A-Z]" "[a-z]")" = iso-8859-1 -a "$DISPLAY" != ""
+text/richtext; shownonascii iso-8859-1 -e richtext -p '%s'; description="Richtext"; copiousoutput; test=test "$(echo %{charset} | tr "[A-Z]" "[a-z]")" = iso-8859-1 -a "$DISPLAY" != ""
+text/enriched; shownonascii iso-8859-1 -e richtext -e -p '%s'; description="Enriched Text"; copiousoutput; test=test "$(echo %{charset} | tr "[A-Z]" "[a-z]")" = iso-8859-1 -a "$DISPLAY" != ""
+message/partial; showpartial '%s' %{id} %{number} %{total}; description="An incomplete message"
+message/external-body; showexternal '%s' %{access-type} %{name} %{site} %{directory} %{mode} %{server}; needsterminal; description="A reference to data stored in an external location"; composetyped="extcompose '%s"'
+audio/basic; /usr/lib/mime/playaudio '%s'; description=Basic uLaw Audio; nametemplate=%s.au
+application/x-tar; /bin/tar tvf -; print=/bin/tar tvf - | print text/plain:-; copiousoutput
+application/x-gtar; /bin/tar tvzf -; print=/bin/tar tvzf - | print text/plain:-; copiousoutput
+text/plain; more '%s'; needsterminal
+application/xrx; view=xrx '%s'; description="remote X application"; test=test "$DISPLAY"; nametemplate=%s.rx
+text/richtext; richtext '%s'; description="Richtext"; copiousoutput
+text/enriched; richtext -e '%s'; description="Enriched Text"; copiousoutput
+text/plain; gview '%s'; edit=gvim -f '%s'; compose=gvim -f '%s'; test=test "$DISPLAY" != ""
+text/plain; view '%s'; edit=vim '%s'; compose=vim '%s'; needsterminal
+text/html; /usr/bin/lynx -force_html '%s'; needsterminal; description=HTML Text; nametemplate=%s.html
+text/*; less '%s'; needsterminal
+text/html; /usr/bin/lynx -dump -force_html '%s'; copiousoutput; description=HTML Text; nametemplate=%s.html
+text/*; gview '%s'; edit=gvim -f '%s'; compose=gvim -f '%s'; test=test "$DISPLAY" != ""
+text/*; view '%s'; edit=vim '%s'; compose=vim '%s'; needsterminal
+text/*; more '%s'; needsterminal
+*/*; less '%s'; needsterminal
+*/*; false; print=lpr '%s'
diff --git a/net-mail/mailbase/mailbase-1.1.ebuild b/net-mail/mailbase/mailbase-1.1.ebuild
new file mode 100644
index 000000000000..27f616b73131
--- /dev/null
+++ b/net-mail/mailbase/mailbase-1.1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit pam eutils user
+
+DESCRIPTION="MTA layout package"
+SRC_URI=""
+HOMEPAGE="https://www.gentoo.org/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
+IUSE="pam"
+
+RDEPEND="pam? ( virtual/pam )"
+
+S=${WORKDIR}
+
+pkg_setup() {
+ enewgroup mail 12
+ enewuser mail 8 -1 /var/spool/mail mail
+ enewuser postmaster 14 -1 /var/spool/mail
+}
+
+src_install() {
+ dodir /etc/mail
+ insinto /etc/mail
+ doins "${FILESDIR}"/aliases || die
+ insinto /etc
+ doins "${FILESDIR}"/mailcap || die
+
+ keepdir /var/spool/mail
+ fowners root:mail /var/spool/mail
+ fperms 03775 /var/spool/mail
+ dosym /var/spool/mail /var/mail
+
+ newpamd "${FILESDIR}"/common-pamd-include pop
+ newpamd "${FILESDIR}"/common-pamd-include imap
+ if use pam ; then
+ local p
+ for p in pop3 pop3s pops ; do
+ dosym pop /etc/pam.d/${p} || die
+ done
+ for p in imap4 imap4s imaps ; do
+ dosym imap /etc/pam.d/${p} || die
+ done
+ fi
+}
+
+get_permissions_oct() {
+ if [[ ${USERLAND} = GNU ]] ; then
+ stat -c%a "${ROOT}$1"
+ elif [[ ${USERLAND} = BSD ]] ; then
+ stat -f%p "${ROOT}$1" | cut -c 3-
+ fi
+}
+
+pkg_postinst() {
+ if [[ "$(get_permissions_oct /var/spool/mail)" != "3775" ]] ; then
+ echo
+ ewarn "Your ${ROOT}var/spool/mail/ directory permissions differ from"
+ ewarn " those which mailbase wants to set it to (03775)."
+ ewarn " If you did not change them on purpose, consider running:"
+ ewarn
+ ewarn " chown root:mail ${ROOT}var/spool/mail/"
+ ewarn " chmod 03775 ${ROOT}var/spool/mail/"
+ echo
+ fi
+}
diff --git a/net-mail/mailbase/mailbase-1.ebuild b/net-mail/mailbase/mailbase-1.ebuild
new file mode 100644
index 000000000000..b7b4232af149
--- /dev/null
+++ b/net-mail/mailbase/mailbase-1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit pam eutils user
+
+DESCRIPTION="MTA layout package"
+SRC_URI=""
+HOMEPAGE="https://www.gentoo.org/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
+IUSE="pam"
+
+RDEPEND="pam? ( virtual/pam )"
+
+S=${WORKDIR}
+
+pkg_setup() {
+ enewgroup mail 12
+ enewuser mail 8 -1 /var/spool/mail mail
+ enewuser postmaster 14 -1 /var/spool/mail
+}
+
+src_install() {
+ dodir /etc/mail
+ insinto /etc/mail
+ doins "${FILESDIR}"/aliases || die
+ insinto /etc
+ doins "${FILESDIR}"/mailcap || die
+
+ keepdir /var/spool/mail
+ fowners root:mail /var/spool/mail
+ fperms 0775 /var/spool/mail
+ dosym /var/spool/mail /var/mail
+
+ newpamd "${FILESDIR}"/common-pamd-include pop
+ newpamd "${FILESDIR}"/common-pamd-include imap
+ if use pam ; then
+ local p
+ for p in pop3 pop3s pops ; do
+ dosym pop /etc/pam.d/${p} || die
+ done
+ for p in imap4 imap4s imaps ; do
+ dosym imap /etc/pam.d/${p} || die
+ done
+ fi
+}
+
+get_permissions_oct() {
+ if [[ ${USERLAND} = GNU ]] ; then
+ stat -c%a "${ROOT}$1"
+ elif [[ ${USERLAND} = BSD ]] ; then
+ stat -f%p "${ROOT}$1" | cut -c 3-
+ fi
+}
+
+pkg_postinst() {
+ if [[ "$(get_permissions_oct /var/spool/mail)" != "775" ]] ; then
+ echo
+ ewarn "Your ${ROOT}/var/spool/mail/ directory permissions differ from"
+ ewarn " those which mailbase set when you first installed it (0775)."
+ ewarn " If you did not change them on purpose, consider running:"
+ ewarn
+ ewarn " chmod 0775 ${ROOT}/var/spool/mail/"
+ echo
+ fi
+}
diff --git a/net-mail/mailbase/metadata.xml b/net-mail/mailbase/metadata.xml
new file mode 100644
index 000000000000..9a6d80e5da48
--- /dev/null
+++ b/net-mail/mailbase/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+</maintainer>
+</pkgmetadata>