Diff tinc-1.0.36 with a tinc-1.1_pre18

/usr/portage/net-vpn/tinc/tinc-1.1_pre18.ebuild 2023-10-09 14:52:34.772368483 +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 4
EAPI=7
5
inherit systemd
5

  
6
MY_PV=${PV/_/}
7
MY_P=${PN}-${MY_PV}
8

  
9
inherit autotools systemd
6 10

  
7 11
DESCRIPTION="tinc is an easy to configure VPN implementation"
8 12
HOMEPAGE="https://www.tinc-vpn.org/"
9 13

  
10
SRC_URI="https://www.tinc-vpn.org/packages/${P}.tar.gz"
14
SRC_URI="https://www.tinc-vpn.org/packages/${MY_P}.tar.gz"
11 15

  
12 16
LICENSE="GPL-2"
13 17
SLOT="0"
14
KEYWORDS="amd64 ~arm ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
15
IUSE="+lzo uml vde +zlib"
18
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
19
IUSE="+lzo +ncurses +readline +ssl uml vde upnp +zlib"
16 20

  
17 21
DEPEND="
18
	dev-libs/openssl:0=
22
	ssl? (
23
		dev-libs/openssl:0=
24
	)
19 25
	lzo? ( dev-libs/lzo:2 )
26
	ncurses? ( sys-libs/ncurses:= )
27
	readline? ( sys-libs/readline:= )
28
	upnp? ( net-libs/miniupnpc )
20 29
	zlib? ( sys-libs/zlib )"
21 30
RDEPEND="${DEPEND}
22 31
	vde? ( net-misc/vde )"
32
S="${WORKDIR}/${MY_P}"
33

  
34
PATCHES+=(
35
	"${FILESDIR}"/tinc-1.1_pre16-r1-fix-paths.patch #560528
36
	"${FILESDIR}"/${PN}-1.1-tinfo.patch #621868
37
)
38

  
39
src_prepare() {
40
	default
41

  
42
	# Fix the static (failing UNKNOWN) version in the autoconf
43
	# NOTE: When updating the ebuild, make sure to check that this
44
	# line number hasn't changed in the upstream sources.
45
	sed -i "6d" configure.ac || die
46
	sed -i "6iAC_INIT([tinc], ${PVR})" configure.ac || die
47

  
48
        eautoreconf
49
}
23 50

  
24 51
src_configure() {
25 52
	econf \
26 53
		--enable-jumbograms \
54
		--enable-legacy-protocol \
27 55
		--disable-tunemu  \
56
		--with-systemd="$(systemd_get_systemunitdir)" \
28 57
		$(use_enable lzo) \
58
		$(use_enable ncurses curses) \
59
		$(use_enable readline) \
29 60
		$(use_enable uml) \
30 61
		$(use_enable vde) \
31
		$(use_enable zlib)
62
		$(use_enable zlib) \
63
		$(use_enable upnp miniupnpc) \
64
		$(use_with ssl openssl)
65
		#--without-libgcrypt \
32 66
}
33 67

  
34 68
src_install() {
......
37 71
	dodoc AUTHORS NEWS README THANKS
38 72
	doconfd "${FILESDIR}"/tinc.networks
39 73
	newconfd "${FILESDIR}"/tincd.conf tincd
40
	newinitd "${FILESDIR}"/tincd-r1 tincd
41
	systemd_newunit "${FILESDIR}"/tincd_at.service "tincd@.service"
74
	newinitd "${FILESDIR}"/tincd-r2 tincd
75
}
76

  
77
pkg_postinst() {
78
	elog "This package requires the tun/tap kernel device."
79
	elog "Look at http://www.tinc-vpn.org/ for how to configure tinc"
42 80
}
Thank you!