Diff qmailadmin-1.2.15-r2 with a qmailadmin-1.2.16-r1

/usr/portage/net-mail/qmailadmin/qmailadmin-1.2.16-r1.ebuild 2023-10-09 14:52:34.620368479 +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 5

  
6
WEBAPP_MANUAL_SLOT="yes"
7
inherit autotools qmail webapp
6
inherit qmail webapp autotools
8 7

  
9 8
MY_P=${P/_rc/-rc}
10 9

  
......
14 13

  
15 14
LICENSE="GPL-2"
16 15
SLOT="0"
17
KEYWORDS="amd64 arm ~hppa ~ia64 ~s390 sparc x86"
16
WEBAPP_MANUAL_SLOT="yes"
17
KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~s390 ~sparc ~x86"
18 18
IUSE="maildrop"
19 19
# the RESTRICT is because the vpopmail lib directory is locked down
20 20
# and non-root can't access them.
21 21
RESTRICT="userpriv"
22 22

  
23
RDEPEND="
24
	net-mail/autorespond
25
	>=net-mail/vpopmail-5.4.33
26
	virtual/libcrypt:=
23
RDEPEND="virtual/libcrypt:=
27 24
	virtual/qmail
25
	>=net-mail/vpopmail-5.4.33
26
	net-mail/autorespond
28 27
	maildrop? ( >=mail-filter/maildrop-2.0.1 )"
29 28
DEPEND="${RDEPEND}"
30 29

  
......
32 31

  
33 32
src_prepare() {
34 33
	eapply "${FILESDIR}"/${PN}-1.2.9-maildir.patch
35
	eapply "${FILESDIR}"/${PN}-1.2.12-quota-overflow.patch
36
	eapply "${FILESDIR}"/${PN}-1.2.15-quota-security.patch
37 34
	eapply_user
38 35
	eautoreconf
39 36
}
......
82 79
	default
83 80

  
84 81
	webapp_src_install
82

  
83
	# CGI needs to be able to read /etc/vpopmail.conf
84
	# Which is 0640 root:vpopmail, as it contains passwords
85
	cgi="${MY_CGIBINDIR}"/qmailadmin
86
	fowners root:vpopmail ${cgi}
87
	fperms g+s ${cgi}
85 88
}
86 89

  
87 90
pkg_postinst() {
88 91
	einfo "If you would like support for ezmlm mailing lists inside qmailadmin,"
89 92
	einfo "please emerge some variant of ezmlm-idx."
90 93
	webapp_pkg_postinst
94
	einfo "For complete webapp-config support:"
95
	einfo "1. Add this for the Apache cgi-bin dir: Options +ExecCGI -MultiViews +FollowSymLinks"
96
	einfo "2. Run: webapp-config -I -h localhost -d qmailadmin ${PN} ${PV}"
97
	einfo "3. Symlink: ln -s {/usr/share/webapps/${PN}/${PV}/hostroot,/var/www/localhost}/cgi-bin/${PN}"
91 98
}
Thank you!