/[gentoo-x86]/www-apps/postfixadmin/postfixadmin-2.2.1.1.ebuild
Gentoo

Contents of /www-apps/postfixadmin/postfixadmin-2.2.1.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Tue Jun 26 12:12:11 2012 UTC (10 months, 3 weeks ago) by mabi
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
version bump. this is a security release (bug #400971). also take advantage of EAPI4. remove older ebuilds. commit with approval from sec-team.

(Portage version: 2.2.0_alpha110/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/www-apps/postfixadmin/postfixadmin-2.2.1.1.ebuild,v 1.4 2010/03/22 20:56:39 jlec Exp $
4
5 inherit eutils webapp depend.php confutils
6
7 DESCRIPTION="Web Based Management tool for Postfix style virtual domains and users."
8 HOMEPAGE="http://postfixadmin.sourceforge.net"
9 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
10 RESTRICT="mirror"
11
12 LICENSE="GPL-2"
13 KEYWORDS="~amd64 ~x86"
14 IUSE="mysql postgres"
15
16 DEPEND=">=dev-lang/perl-5.0
17 dev-perl/DBI
18 mysql? ( dev-perl/DBD-mysql )
19 postgres? ( dev-perl/DBD-Pg )"
20 RDEPEND="${DEPEND}"
21
22 need_httpd_cgi
23 need_php_httpd
24
25 pkg_setup() {
26 webapp_pkg_setup
27
28 confutils_require_any mysql postgres
29
30 if use mysql; then
31 enewgroup vacation
32 enewuser vacation -1 -1 -1 vacation
33 fi
34 }
35
36 src_unpack() {
37 unpack ${A}
38 cd "${S}"
39 ecvs_clean
40
41 mv VIRTUAL_VACATION/INSTALL.TXT VIRTUAL_VACATION_INSTALL.TXT
42 }
43
44 src_install() {
45 webapp_src_preinst
46
47 # virtual vacation only works with MySQL
48 if use mysql; then
49 diropts -m0770 -o vacation -g vacation
50 dodir /var/spool/vacation
51 keepdir /var/spool/vacation
52 insinto /var/spool/vacation
53 insopts -m770 -o vacation -g vacation
54 doins "${S}"/VIRTUAL_VACATION/vacation.pl
55
56 diropts -m775 -o root -g root
57 insopts -m644 -o root -g root
58 fi
59
60 local docs="DOCUMENTS/BACKUP_MX.txt CHANGELOG.TXT INSTALL.TXT
61 DOCUMENTS/LANGUAGE.txt DOCUMENTS/UPGRADE.txt
62 VIRTUAL_VACATION_INSTALL.TXT"
63 dodoc ${docs}
64
65 insinto "${MY_HTDOCSDIR}"
66 doins -r .
67
68 for FILE in ${docs} GPL-LICENSE.TXT LICENSE.TXT ADDITIONS/ debian/
69 do
70 rm -rf ${FILE}
71 done
72
73 webapp_configfile "${MY_HTDOCSDIR}"/config.inc.php
74
75 webapp_postinst_txt en "${FILESDIR}"/postinstall-en-2.2.0.txt
76 webapp_src_install
77 }

  ViewVC Help
Powered by ViewVC 1.1.13