diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2020-06-20 10:43:07 +0200 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2020-06-25 19:14:15 +0100 |
commit | af7c0ac4002cfe8101ca4888eaaaaa26f3cacf70 (patch) | |
tree | 98e6833b665ca44f9c4517c3e491b0ba6db854e7 /eclass | |
parent | x11-libs/gtk+: stable 3.24.20 for sparc, bug #728924 (diff) | |
download | gentoo-af7c0ac4002cfe8101ca4888eaaaaa26f3cacf70.tar.gz gentoo-af7c0ac4002cfe8101ca4888eaaaaa26f3cacf70.tar.bz2 gentoo-af7c0ac4002cfe8101ca4888eaaaaa26f3cacf70.zip |
qmail.eclass: clean up and make it work with upcoming notqmail changes
The split in the install functions was needed for packages like miniqmail, that
only installed a subset of the functions. It has meanwhile been removed from
tree.
In turn notqmail is going to drop some obsolete programs from the installation.
Most documentation files also have been renamed to *.md.
Signed-off-by: Rolf Eike Beer <eike@sf-mail.de>
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/qmail.eclass | 54 |
1 files changed, 26 insertions, 28 deletions
diff --git a/eclass/qmail.eclass b/eclass/qmail.eclass index a78c118c89ed..21f317fd34a2 100644 --- a/eclass/qmail.eclass +++ b/eclass/qmail.eclass @@ -117,8 +117,7 @@ qmail_spp_src_unpack() { # @FUNCTION: qmail_src_postunpack # @DESCRIPTION: -# Unpack common config files, apply custom patches if supplied and -# set built configuration (CFLAGS, LDFLAGS, etc) +# Unpack common config files, and set built configuration (CFLAGS, LDFLAGS, etc) qmail_src_postunpack() { cd "${S}" @@ -144,33 +143,27 @@ qmail_base_install() { einfo "Setting up basic directory hierarchy" diropts -o root -g qmail -m 755 keepdir "${QMAIL_HOME}"/{,bin,control} - - einfo "Installing basic qmail software" - insinto "${QMAIL_HOME}"/bin - - insopts -o root -g qmail -m 755 - doins datemail elq forward maildir2mbox maildirmake \ - maildirwatch mailsubj pinq predate qail \ - qmail-{inject,qmqpc,showctl} sendmail - - einfo "Adding env.d entry for qmail" - doenvd "${GENQMAIL_S}"/conf/99qmail - - declare -F qmail_base_install_hook >/dev/null && \ - qmail_base_install_hook -} - -qmail_full_install() { - einfo "Setting up full directory hierarchy" keepdir "${QMAIL_HOME}"/users diropts -o alias -g qmail -m 755 keepdir "${QMAIL_HOME}"/alias + einfo "Adding env.d entry for qmail" + doenvd "${GENQMAIL_S}"/conf/99qmail + einfo "Installing all qmail software" + insinto "${QMAIL_HOME}"/bin + insopts -o root -g qmail -m 755 - doins bouncesaying condredirect config-fast except preline qbiff \ - qmail-{qmqpd,qmtpd,qread,qstat,smtpd,tcpok,tcpto} \ - qreceipt qsmhook tcp-env + doins bouncesaying condredirect config-fast datemail except forward maildir2mbox \ + maildirmake mailsubj predate preline qbiff \ + qmail-{inject,qmqpc,qmqpd,qmtpd,qread,qstat,smtpd,tcpok,tcpto,showctl} \ + qreceipt sendmail tcp-env + + # obsolete tools, install if they are still present + for i in elq maildirwatch pinq qail qsmhook; do + [[ -x ${i} ]] && doins ${i} + done + use pop3 && doins qmail-pop3d insopts -o root -g qmail -m 711 @@ -183,8 +176,8 @@ qmail_full_install() { insopts -o qmailq -g qmail -m 4711 doins qmail-queue - declare -F qmail_full_install_hook >/dev/null && \ - qmail_full_install_hook + declare -F qmail_base_install_hook >/dev/null && \ + qmail_base_install_hook } qmail_config_install() { @@ -207,8 +200,14 @@ qmail_man_install() { into /usr doman *.[1578] - dodoc BLURB* CHANGES FAQ INSTALL* PIC* README* REMOVE* SECURITY \ - SENDMAIL* TEST* THANKS* THOUGHTS UPGRADE VERSION* + dodoc BLURB* INSTALL* PIC* README* REMOVE* \ + SENDMAIL* TEST* THANKS* VERSION* + # notqmail converted the files to markdown + if [ -f CHANGES ]; then + dodoc CHANGES FAQ SECURITY THOUGHTS UPGRADE + else + dodoc CHANGES.md FAQ.md SECURITY.md THOUGHTS.md UPGRADE.md + fi declare -F qmail_man_install_hook >/dev/null && \ qmail_man_install_hook @@ -334,7 +333,6 @@ qmail_ssl_install() { qmail_src_install() { export GROUP_ROOT="$(id -gn root)" qmail_base_install - qmail_full_install qmail_config_install qmail_man_install qmail_sendmail_install |