Diff ssmtp-2.64-r5 with a ssmtp-2.64_p11-r1

/usr/portage/mail-mta/ssmtp/ssmtp-2.64_p11-r1.ebuild 2023-10-09 14:52:31.592368403 +0300
1
# Copyright 1999-2022 Gentoo Authors
1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6
PATCHSET=4
6
MY_PATCHSET=4
7 7
WANT_AUTOMAKE=none
8

  
9 8
inherit autotools
10 9

  
11 10
DESCRIPTION="Extremely simple MTA to get mail off the system to a Mailhub"
12 11
HOMEPAGE="ftp://ftp.debian.org/debian/pool/main/s/ssmtp/"
13 12
SRC_URI="
14
	mirror://debian/pool/main/s/ssmtp/${P/-/_}.orig.tar.bz2
15
	https://dev.gentoo.org/~pinkbyte/distfiles/patches/${P}-patches-${PATCHSET}.tar.xz
13
	mirror://debian/pool/main/s/ssmtp/${PN}_$(ver_cut 1-2).orig.tar.bz2
14
	mirror://debian/pool/main/s/ssmtp/${PN}_${PV/_p/-}.debian.tar.xz
15
	https://dev.gentoo.org/~pinkbyte/distfiles/patches/${PN}-$(ver_cut 1-2)-patches-${MY_PATCHSET}.tar.xz
16 16
"
17
S="${WORKDIR}"/${PN}-$(ver_cut 1-2)
17 18

  
18 19
LICENSE="GPL-2"
19 20
SLOT="0"
20 21
KEYWORDS="~alpha amd64 arm arm64 hppa ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
21
IUSE="ipv6 +ssl gnutls +mta"
22
IUSE="+ssl gnutls +mta"
23
REQUIRED_USE="gnutls? ( ssl )"
22 24

  
23 25
DEPEND="
24 26
	!prefix? ( acct-group/ssmtp )
25 27
	ssl? (
26 28
		gnutls? ( net-libs/gnutls[openssl] )
27
		!gnutls? (
28
			dev-libs/openssl:0=
29
		)
29
		!gnutls? ( dev-libs/openssl:= )
30 30
	)
31 31
"
32 32
RDEPEND="
......
47 47
	)
48 48
"
49 49

  
50
REQUIRED_USE="gnutls? ( ssl )"
51

  
52 50
src_prepare() {
53
	default
51
	drop_debian_patch() {
52
		rm "${WORKDIR}"/debian/patches/${1} || die
53
		sed -i -e "/^${1}/d" "${WORKDIR}"/debian/patches/series || die
54
	}
55

  
56
	drop_gentoo_patch() {
57
		rm "${WORKDIR}"/patches/${1} || die
58
	}
59

  
60
	# Forces gnutls with no optionality (drops openssl support)
61
	drop_debian_patch 01-374327-use-gnutls.patch
62

  
63
	# Included in Debian patchset
64
	# TODO: Drop these with new patch tarball
65
	drop_gentoo_patch 0090_all_debian-remote-addr.patch
66
	drop_gentoo_patch 0100_all_ldflags.patch
67
	drop_gentoo_patch 0130_all_garbage-writes.patch
68

  
69
	PATCHES+=(
70
		# Debian patchset
71
		$(awk '{print $1}' "${WORKDIR}"/debian/patches/series | sed -e "s:^:${WORKDIR}/debian/patches/:")
72

  
73
		# Gentoo patchset
74
		"${WORKDIR}"/patches
75
	)
54 76

  
55
	eapply "${WORKDIR}"/patches/0010_all_maxsysuid.patch
56
	eapply "${WORKDIR}"/patches/0020_all_from-format-fix.patch
57
	eapply "${WORKDIR}"/patches/0030_all_authpass.patch
58
	eapply "${WORKDIR}"/patches/0040_all_darwin7.patch
59
	eapply "${WORKDIR}"/patches/0050_all_strndup.patch
60
	eapply "${WORKDIR}"/patches/0060_all_opessl_crypto.patch
61
	eapply "${WORKDIR}"/patches/0070_all_solaris-basename.patch
62
	eapply "${WORKDIR}"/patches/0080_all_gnutls.patch
63
	eapply "${WORKDIR}"/patches/0090_all_debian-remote-addr.patch
64
	eapply "${WORKDIR}"/patches/0100_all_ldflags.patch
65
	eapply "${WORKDIR}"/patches/0110_all_stdint.patch
66
	eapply "${WORKDIR}"/patches/0120_all_aliases.patch
67
	eapply -p0 "${WORKDIR}"/patches/0130_all_garbage-writes.patch
77
	default
68 78

  
69 79
	# let's start by not using configure.in anymore as future autoconf
70 80
	# versions will not support it.
......
76 86
src_configure() {
77 87
	local myeconfargs=(
78 88
		--sysconfdir="${EPREFIX}"/etc/ssmtp
79
		$(use_enable ssl) $(use_with gnutls)
80
		$(use_enable ipv6 inet6)
89
		$(use_enable ssl)
90
		$(use_with gnutls)
91
		--enable-inet6
81 92
		--enable-md5auth
82 93
	)
83 94

  
Thank you!