Gentoo Archives: gentoo-commits

From: "Miroslav Šulc" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/postfixadmin/
Date: Wed, 02 Mar 2022 21:42:47
Message-Id: 1646257362.29c6f40f25a018c770b9c423399f28fddd98236b.fordfrog@gentoo
1 commit: 29c6f40f25a018c770b9c423399f28fddd98236b
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 2 21:42:32 2022 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 2 21:42:42 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29c6f40f
7
8 www-apps/postfixadmin: bump to 3.3.11
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
12
13 www-apps/postfixadmin/Manifest | 1 +
14 www-apps/postfixadmin/postfixadmin-3.3.11.ebuild | 105 +++++++++++++++++++++++
15 2 files changed, 106 insertions(+)
16
17 diff --git a/www-apps/postfixadmin/Manifest b/www-apps/postfixadmin/Manifest
18 index 186ff67a45aa..e552120ae35c 100644
19 --- a/www-apps/postfixadmin/Manifest
20 +++ b/www-apps/postfixadmin/Manifest
21 @@ -1 +1,2 @@
22 DIST postfixadmin-3.3.10.tar.gz 1868307 BLAKE2B 489cac00205dbac9d1995f83a38a1817dfa207b2fd858ef87c0f4f3c45018759f6b2510e44da51f550df4182b0677cba346fd10a7fc3d4183672ebf70e64dd81 SHA512 b922ef08cbb3338e7581a78abb3077e92401019bea584710816615ab019a8cf678b22dbb068d0321550e2298f6a235b8a245c44c9f7eef02bb6b49b696225a2f
23 +DIST postfixadmin-3.3.11.tar.gz 1869783 BLAKE2B 21aecab15e75918908cf57450ce6458ae74b1077fac96c58891bc18fea33916cecb4fc7347204aba358f35c5e82348ceddc9e7ab83369c96172fd10a7f24dc3d SHA512 84b22fd1d162f723440fbfb9e20c01d7ddc7481556e340a80fda66658687878fd1668d164a216daed9badf4d2e308c958b0f678f7a4dc6a2af748e435a066072
24
25 diff --git a/www-apps/postfixadmin/postfixadmin-3.3.11.ebuild b/www-apps/postfixadmin/postfixadmin-3.3.11.ebuild
26 new file mode 100644
27 index 000000000000..c6881c4b2bf9
28 --- /dev/null
29 +++ b/www-apps/postfixadmin/postfixadmin-3.3.11.ebuild
30 @@ -0,0 +1,105 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit webapp
37 +
38 +DESCRIPTION="Web Based Management tool for Postfix style virtual domains and users"
39 +HOMEPAGE="http://postfixadmin.sourceforge.net"
40 +SRC_URI="https://github.com/postfixadmin/postfixadmin/archive/${P}.tar.gz"
41 +S="${WORKDIR}/${PN}-${P}"
42 +
43 +LICENSE="GPL-2"
44 +KEYWORDS="~amd64 ~ppc ~x86"
45 +IUSE="+mysql postgres +vacation"
46 +REQUIRED_USE="|| ( mysql postgres )"
47 +
48 +DEPEND="
49 + dev-lang/php:*[unicode,imap,postgres?]
50 + vacation? (
51 + acct-group/vacation
52 + acct-user/vacation
53 + dev-perl/DBI
54 + dev-perl/Email-Sender
55 + dev-perl/Email-Valid
56 + dev-perl/Log-Dispatch
57 + dev-perl/Log-Log4perl
58 + dev-perl/MIME-Charset
59 + dev-perl/MIME-EncWords
60 + mysql? ( dev-perl/DBD-mysql )
61 + postgres? ( dev-perl/DBD-Pg )
62 + )
63 +"
64 +
65 +RDEPEND="
66 + ${DEPEND}
67 + virtual/httpd-php
68 + mysql? ( || ( dev-lang/php[mysqli] dev-lang/php[mysql] ) )
69 +"
70 +
71 +need_httpd_cgi
72 +
73 +pkg_setup() {
74 + webapp_pkg_setup
75 +}
76 +
77 +src_install() {
78 + webapp_src_preinst
79 +
80 + if use vacation; then
81 + insinto /var/spool/vacation
82 + newins VIRTUAL_VACATION/vacation.pl vacation.pl-${SLOT}
83 + fowners vacation:vacation /var/spool/vacation/vacation.pl-${SLOT}
84 + fperms 770 /var/spool/vacation/vacation.pl-${SLOT}
85 + dodoc VIRTUAL_VACATION/FILTER_README
86 + newdoc VIRTUAL_VACATION/INSTALL.md VIRTUAL_VACATION_INSTALL.md
87 + rm -r VIRTUAL_VACATION/{vacation.pl,INSTALL.md,tests,FILTER_README} || die
88 + fi
89 +
90 + dodoc -r ADDITIONS
91 +
92 + local docs="DOCUMENTS/*.txt INSTALL.TXT CHANGELOG.TXT"
93 + dodoc ${docs}
94 +
95 + rm -rf ${docs} DOCUMENTS/ GPL-LICENSE.TXT LICENSE.TXT debian/ tests/ ADDITIONS/
96 +
97 + insinto "${MY_HTDOCSDIR}"
98 + doins -r .
99 +
100 + webapp_configfile "${MY_HTDOCSDIR}"/config.inc.php
101 +
102 + webapp_postinst_txt en "${FILESDIR}"/postinstall-en-2.3.txt
103 + webapp_src_install
104 +}
105 +
106 +pkg_postinst() {
107 + webapp_pkg_postinst
108 +
109 + einfo "Please note that if upgrading from version prior to 3.3.0,"
110 + einfo "existing setup_password will no longer work and you will"
111 + einfo "need to generate new one. See instructions in setup.php."
112 +
113 + if use vacation; then
114 + # portage does not update owners of directories (feature :)
115 + chown vacation:vacation "${ROOT}"/var/spool/vacation/
116 + einfo
117 + einfo "/var/spool/vacation/vacation.pl symlink was updated to:"
118 + einfo "/var/spool/vacation/vacation.pl-${SLOT}"
119 + ln -sf "${ROOT}"/var/spool/vacation/vacation.pl{-${SLOT},} || die
120 + fi
121 +}
122 +
123 +pkg_postrm() {
124 + # Make sure we don't leave broken vacation.pl symlink
125 + find -L "${ROOT}"/var/spool/vacation/ -type l -delete
126 + local shopt_save=$(shopt -p nullglob)
127 + shopt -s nullglob
128 + local vacation=( "${ROOT}"/var/spool/vacation/vacation.pl-* )
129 + ${shopt_save}
130 + if [[ ! -e "${ROOT}"/var/spool/vacation/vacation.pl && -n ${vacation[@]} ]]; then
131 + ln -s "${vacation[-1]}" "${ROOT}"/var/spool/vacation/vacation.pl || die
132 + ewarn "/var/spool/vacation/vacation.pl was updated to point on most"
133 + ewarn "recent verion, but please, do your own checks"
134 + fi
135 +}