Gentoo Archives: gentoo-commits

From: "Peter Volkov (pva)" <pva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-apps/postfixadmin: ChangeLog postfixadmin-2.3.3.ebuild
Date: Sat, 30 Apr 2011 19:25:28
Message-Id: 20110430191721.6EA2220054@flycatcher.gentoo.org
1 pva 11/04/30 19:17:21
2
3 Modified: ChangeLog
4 Added: postfixadmin-2.3.3.ebuild
5 Log:
6 Version bump, bug #363041, thank Per Pomsel for report.
7
8 (Portage version: 2.1.9.46/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.22 www-apps/postfixadmin/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/postfixadmin/ChangeLog?rev=1.22&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/postfixadmin/ChangeLog?rev=1.22&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/postfixadmin/ChangeLog?r1=1.21&r2=1.22
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/www-apps/postfixadmin/ChangeLog,v
20 retrieving revision 1.21
21 retrieving revision 1.22
22 diff -u -r1.21 -r1.22
23 --- ChangeLog 2 Jan 2011 22:26:46 -0000 1.21
24 +++ ChangeLog 30 Apr 2011 19:17:21 -0000 1.22
25 @@ -1,6 +1,11 @@
26 # ChangeLog for www-apps/postfixadmin
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/www-apps/postfixadmin/ChangeLog,v 1.21 2011/01/02 22:26:46 hwoarang Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/www-apps/postfixadmin/ChangeLog,v 1.22 2011/04/30 19:17:21 pva Exp $
30 +
31 +*postfixadmin-2.3.3 (30 Apr 2011)
32 +
33 + 30 Apr 2011; Peter Volkov <pva@g.o> +postfixadmin-2.3.3.ebuild:
34 + Version bump, bug #363041, thank Per Pomsel for report.
35
36 02 Jan 2011; Markos Chandras <hwoarang@g.o> postfixadmin-2.3.2.ebuild:
37 Stable on amd64 wrt bug #349266
38
39
40
41 1.1 www-apps/postfixadmin/postfixadmin-2.3.3.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/postfixadmin/postfixadmin-2.3.3.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/postfixadmin/postfixadmin-2.3.3.ebuild?rev=1.1&content-type=text/plain
45
46 Index: postfixadmin-2.3.3.ebuild
47 ===================================================================
48 # Copyright 1999-2011 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/www-apps/postfixadmin/postfixadmin-2.3.3.ebuild,v 1.1 2011/04/30 19:17:21 pva Exp $
51
52 EAPI="2"
53
54 inherit eutils webapp depend.php confutils
55
56 DESCRIPTION="Web Based Management tool for Postfix style virtual domains and users."
57 HOMEPAGE="http://postfixadmin.sourceforge.net"
58 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
59
60 LICENSE="GPL-2"
61 KEYWORDS="~amd64 ~x86"
62 IUSE="mysql postgres +vacation xmlrpc"
63
64 DEPEND="vacation? ( dev-perl/DBI
65 virtual/perl-MIME-Base64
66 dev-perl/MIME-EncWords
67 dev-perl/Email-Valid
68 dev-perl/Mail-Sender
69 dev-perl/log-dispatch
70 dev-perl/Log-Log4perl
71 dev-perl/MIME-Charset
72 mysql? ( dev-perl/DBD-mysql )
73 postgres? ( dev-perl/DBD-Pg ) )
74 xmlrpc? ( dev-php/ZendFramework[-minimal] )
75 dev-lang/php[session,unicode,imap,postgres?,xmlrpc?]"
76
77 RDEPEND="${DEPEND}"
78
79 need_httpd_cgi
80 need_php_httpd
81
82 pkg_setup() {
83 webapp_pkg_setup
84
85 confutils_require_any mysql postgres
86
87 if use mysql && ! PHPCHECKNODIE="yes" require_php_with_any_use mysql mysqli; then
88 die "Re-install ${PHP_PKG} with either mysql or mysqli"
89 fi
90
91 if use vacation; then
92 enewgroup vacation
93 enewuser vacation -1 -1 -1 vacation
94 fi
95 }
96
97 src_install() {
98 webapp_src_preinst
99
100 if use vacation; then
101 insinto /var/spool/vacation
102 newins VIRTUAL_VACATION/vacation.pl vacation.pl-${SLOT}
103 fowners vacation:vacation /var/spool/vacation/vacation.pl-${SLOT}
104 fperms 770 /var/spool/vacation/vacation.pl-${SLOT}
105 dodoc VIRTUAL_VACATION/FILTER_README
106 newdoc VIRTUAL_VACATION/INSTALL.TXT VIRTUAL_VACATION_INSTALL.TXT
107 rm -r VIRTUAL_VACATION/{vacation.pl,INSTALL.TXT,tests,FILTER_README}
108 fi
109
110 insinto /usr/share/doc/${PF}/
111 doins -r ADDITIONS
112
113 local docs="DOCUMENTS/*.txt INSTALL.TXT CHANGELOG.TXT"
114 dodoc ${docs}
115
116 rm -rf ${docs} DOCUMENTS/ GPL-LICENSE.TXT LICENSE.TXT debian/ tests/ ADDITIONS/
117
118 insinto "${MY_HTDOCSDIR}"
119 doins -r .
120
121 webapp_configfile "${MY_HTDOCSDIR}"/config.inc.php
122
123 webapp_postinst_txt en "${FILESDIR}"/postinstall-en-2.3.txt
124 webapp_src_install
125 }
126
127 pkg_postinst() {
128 webapp_pkg_postinst
129 if use vacation; then
130 # portage does not update owners of directories (feature :)
131 chown vacation:vacation "${ROOT}"/var/spool/vacation/
132 einfo "/var/spool/vacation/vacation.pl symlink was updated to:"
133 einfo "/var/spool/vacation/vacation.pl-${SLOT}"
134 ln -sf "${ROOT}"/var/spool/vacation/vacation.pl{-${SLOT},}
135 fi
136 }
137
138 pkg_postrm() {
139 # Make sure we don't leave broken vacation.pl symlink
140 find -L "${ROOT}"/var/spool/vacation/ -type l -delete
141 if [[ ! -e "${ROOT}"/var/spool/vacation/vacation.pl ]] &&
142 path_exists "${ROOT}"/var/spool/vacation/vacation.pl-*; then
143 ln -s $(LC_ALL=C ls -1 /var/spool/vacation/vacation.pl-* | tail -n1) \
144 "${ROOT}"/var/spool/vacation/vacation.pl
145 ewarn "/var/spool/vacation/vacation.pl was updated to point on most"
146 ewarn "recent verion, but please, do your own checks"
147 fi
148 }