Diff coturn-4.5.2-r1 with a coturn-4.6.0

/usr/portage/net-im/coturn/coturn-4.6.0.ebuild 2023-10-09 14:52:34.444368475 +0300
4 4
EAPI=7
5 5

  
6 6
inherit toolchain-funcs systemd tmpfiles
7

  
7 8
DESCRIPTION="coturn TURN server project"
8 9
HOMEPAGE="https://github.com/coturn/coturn"
9 10

  
10
if [ ${PV} = 9999 ]; then
11
	EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
11
if [[ ${PV} == *9999 ]]; then
12
	EGIT_REPO_URI="https://github.com/coturn/coturn.git"
12 13
	inherit git-r3
13
#	S="${WORKDIR}/${PN}-master"
14
	#S="${WORKDIR}/${PN}-master"
14 15
else
16
	SRC_URI="https://github.com/coturn/coturn/archive/${PV}.tar.gz -> ${P}.tar.gz"
15 17
	KEYWORDS="~amd64 ~x86"
16
	SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
17 18
fi
18 19

  
19 20
LICENSE="BSD"
20 21
SLOT="0"
21 22
IUSE="mongodb mysql postgres redis sqlite"
22
RDEPEND="acct-group/turnserver
23

  
24
RDEPEND="
25
	acct-group/turnserver
23 26
	acct-user/turnserver
24 27
	>dev-libs/libevent-2.1.8:=
25 28
	dev-libs/openssl:=
......
27 30
	mysql?  ( dev-db/mysql-connector-c:= )
28 31
	postgres? ( dev-db/postgresql:* )
29 32
	redis? ( dev-libs/hiredis:= )
30
	sqlite? ( dev-db/sqlite )"
33
	sqlite? ( dev-db/sqlite )
34
"
31 35
DEPEND="${RDEPEND}"
32 36
BDEPEND="virtual/pkgconfig"
33 37

  
34 38
PATCHES=(
35 39
	"${FILESDIR}"/${PN}-4.5.2-respect-TMPDIR.patch
40
	"${FILESDIR}"/${P}-openssl3.patch
36 41
)
37 42

  
38 43
src_configure() {
39
	if [ -n "${AR}" ]; then
44
	if [[ -n "${AR}" ]]; then
40 45
		sed 's:ARCHIVERCMD="ar -r":ARCHIVERCMD="${AR} -r":g' -i "${S}/configure"
41 46
	fi
47

  
42 48
	sed 's:MANPREFIX}/man/:MANPREFIX}/:g' -i "${S}/Makefile.in" || die "sed for mandir failed"
43 49
	sed 's:#log-file=/var/tmp/turn.log:log-file=/var/log/turnserver.log:' \
44 50
	    -i "${S}/examples/etc/turnserver.conf"  || die "sed for logdir failed"
......
46 52
	    || die "sed for simple-log failed"
47 53
	sed '/INSTALL_DIR} examples\/script/a \	\${INSTALL_DIR} examples\/ca \${DESTDIR}${EXAMPLESDIR}' \
48 54
	    -i "${S}/Makefile.in" || die "sed for example ca failed"
55

  
49 56
	if ! use mongodb; then
50 57
		export TURN_NO_MONGO=yes
51 58
	fi
......
73 80

  
74 81
src_install() {
75 82
	default
83

  
76 84
	newinitd "${FILESDIR}/turnserver.init" turnserver
85

  
77 86
	insinto /etc/logrotate.d
78 87
	newins "${FILESDIR}/logrotate.${PN}" "${PN}"
88

  
79 89
	systemd_dounit "${FILESDIR}/${PN}.service"
80 90
	dotmpfiles "${FILESDIR}/${PN}.conf"
81 91
}
82 92

  
83 93
pkg_postinst() {
84
	tmpfiles_process "${PN}.conf"
85
	elog "You need to copy /etc/turnserver.conf.default to"
86
	elog "/etc/turnserver.conf and do your settings there."
94
	tmpfiles_process ${PN}.conf
95

  
96
	elog "You need to copy ${EROOT}/etc/turnserver.conf.default to"
97
	elog "${EROOT}/etc/turnserver.conf and do your settings there."
87 98
}
Thank you!