Skip to content

Commit

Permalink
mail-mta/netqmail: fix build without ssl
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/649854
Closes: https://bugs.gentoo.org/674688
Signed-off-by: Rolf Eike Beer <[email protected]>
Closes: gentoo#12630
Signed-off-by: Joonas Niilola <[email protected]>
  • Loading branch information
DerDakon authored and juippis committed Aug 10, 2019
1 parent 09d33f6 commit bb7f219
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 20 deletions.
14 changes: 8 additions & 6 deletions mail-mta/netqmail/netqmail-1.06-r4.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,14 @@ src_prepare() {
ht_fix_file Makefile*

if ! use vanilla; then
# This patch contains relative paths and needs to be cleaned up.
sed 's~^--- ../../~--- ~g' \
<"${DISTDIR}"/${QMAIL_TLS_F} \
>"${T}"/${QMAIL_TLS_F} || die
use ssl && epatch "${T}"/${QMAIL_TLS_F}
use ssl && epatch "${DISTDIR}"/${QMAIL_TLS_CVE}
if use ssl; then
# This patch contains relative paths and needs to be cleaned up.
sed 's~^--- ../../~--- ~g' \
< "${DISTDIR}"/${QMAIL_TLS_F} \
> "${T}"/${QMAIL_TLS_F} || die
epatch "${T}"/${QMAIL_TLS_F}
epatch "${DISTDIR}"/${QMAIL_TLS_CVE}
fi
use highvolume && epatch "${DISTDIR}"/${QMAIL_BIGTODO_F}

if use qmail-spp; then
Expand Down
16 changes: 9 additions & 7 deletions mail-mta/netqmail/netqmail-1.06-r5.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,14 @@ src_prepare() {
ht_fix_file Makefile*

if ! use vanilla; then
# This patch contains relative paths and needs to be cleaned up.
sed 's~^--- ../../~--- ~g' \
<"${DISTDIR}"/${QMAIL_TLS_F} \
>"${T}"/${QMAIL_TLS_F} || die
use ssl && epatch "${T}"/${QMAIL_TLS_F}
use ssl && epatch "${DISTDIR}"/${QMAIL_TLS_CVE}
if use ssl; then
# This patch contains relative paths and needs to be cleaned up.
sed 's~^--- ../../~--- ~g' \
< "${DISTDIR}"/${QMAIL_TLS_F} \
> "${T}"/${QMAIL_TLS_F} || die
epatch "${T}"/${QMAIL_TLS_F}
epatch "${DISTDIR}"/${QMAIL_TLS_CVE}
fi
use highvolume && epatch "${DISTDIR}"/${QMAIL_BIGTODO_F}

if use qmail-spp; then
Expand All @@ -127,7 +129,7 @@ src_prepare() {

cd "${WORKDIR}" || die
epatch "${FILESDIR}"/use-new-path-for-functions.sh.patch
epatch "${FILESDIR}"/qmail-smtputf8.patch
use ssl && epatch "${FILESDIR}"/qmail-smtputf8.patch
cd - || die

qmail_src_postunpack
Expand Down
16 changes: 9 additions & 7 deletions mail-mta/netqmail/netqmail-1.06-r6.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,14 @@ src_prepare() {
ht_fix_file Makefile*

if ! use vanilla; then
# This patch contains relative paths and needs to be cleaned up.
sed 's~^--- ../../~--- ~g' \
<"${DISTDIR}"/${QMAIL_TLS_F} \
>"${T}"/${QMAIL_TLS_F} || die
use ssl && epatch "${T}"/${QMAIL_TLS_F}
use ssl && epatch "${DISTDIR}"/${QMAIL_TLS_CVE}
if use ssl; then
# This patch contains relative paths and needs to be cleaned up.
sed 's~^--- ../../~--- ~g' \
< "${DISTDIR}"/${QMAIL_TLS_F} \
> "${T}"/${QMAIL_TLS_F} || die
epatch "${T}"/${QMAIL_TLS_F}
epatch "${DISTDIR}"/${QMAIL_TLS_CVE}
fi
use highvolume && epatch "${DISTDIR}"/${QMAIL_BIGTODO_F}

if use qmail-spp; then
Expand All @@ -127,7 +129,7 @@ src_prepare() {

cd "${WORKDIR}" || die
epatch "${FILESDIR}"/use-new-path-for-functions.sh.patch
epatch "${FILESDIR}"/qmail-smtputf8.patch
use ssl && epatch "${FILESDIR}"/qmail-smtputf8.patch
cd - || die

qmail_src_postunpack
Expand Down

0 comments on commit bb7f219

Please sign in to comment.