Gentoo Archives: gentoo-commits

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