From: | "Ole Markus With (olemarkus)" <olemarkus@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in app-admin/eselect-php: eselect-php-0.7.1-r1.ebuild |
Date: | Sat, 27 Jul 2013 11:04:48 |
Message-Id: | 20130727110445.25A5C21710@flycatcher.gentoo.org |
1 | olemarkus 13/07/27 11:04:45 |
2 | |
3 | Added: eselect-php-0.7.1-r1.ebuild |
4 | Log: |
5 | Revbump providing preliminary systemd support |
6 | |
7 | (Portage version: 2.1.12.2/cvs/Linux x86_64, signed Manifest commit with key C4A92BF5) |
8 | |
9 | Revision Changes Path |
10 | 1.1 app-admin/eselect-php/eselect-php-0.7.1-r1.ebuild |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/eselect-php/eselect-php-0.7.1-r1.ebuild?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/eselect-php/eselect-php-0.7.1-r1.ebuild?rev=1.1&content-type=text/plain |
14 | |
15 | Index: eselect-php-0.7.1-r1.ebuild |
16 | =================================================================== |
17 | # Copyright 1999-2013 Gentoo Foundation |
18 | # Distributed under the terms of the GNU General Public License v2 |
19 | # $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-php/eselect-php-0.7.1-r1.ebuild,v 1.1 2013/07/27 11:04:45 olemarkus Exp $ |
20 | |
21 | EAPI=5 |
22 | |
23 | inherit depend.apache systemd |
24 | |
25 | DESCRIPTION="PHP eselect module" |
26 | HOMEPAGE="http://www.gentoo.org" |
27 | SRC_URI="http://dev.gentoo.org/~olemarkus/eselect-php/eselect-php-${PV}.bz2" |
28 | |
29 | LICENSE="GPL-2" |
30 | SLOT="0" |
31 | KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" |
32 | IUSE="fpm apache2" |
33 | |
34 | DEPEND=">=app-admin/eselect-1.2.4 |
35 | !<dev-lang/php-5.3.23-r1:5.3 |
36 | !<dev-lang/php-5.4.13-r1:5.4 |
37 | !<dev-lang/php-5.5.0_beta1-r2:5.5 |
38 | " |
39 | RDEPEND="${DEPEND}" |
40 | |
41 | S="${WORKDIR}" |
42 | |
43 | want_apache |
44 | |
45 | src_install() { |
46 | mv eselect-php-${PV} php.eselect |
47 | insinto /usr/share/eselect/modules/ |
48 | doins php.eselect |
49 | |
50 | if use apache2 ; then |
51 | insinto "${APACHE_MODULES_CONFDIR#${EPREFIX}}" |
52 | newins "${FILESDIR}/70_mod_php5.conf-apache2" \ |
53 | "70_mod_php5.conf" |
54 | fi |
55 | |
56 | if use fpm ; then |
57 | dodir "/etc/init.d" |
58 | insinto "/etc/init.d" |
59 | newinitd "${FILESDIR}/php-fpm.init" "php-fpm" |
60 | systemd_newunit "${FILESDIR}/php-fpm_at.service" "php-fpm@.service" |
61 | systemd_dotmpfilesd "${FILESDIR}/php-fpm.conf" |
62 | exeinto /usr/libexec |
63 | doexe "${FILESDIR}/php-fpm-launcher" |
64 | fi |
65 | } |