1 |
commit: f0bf9e33b1b43f9e93200cc8b3cdc4733728ca2a |
2 |
Author: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 3 13:29:25 2018 +0000 |
4 |
Commit: Aaron Swenson <titanofold <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 3 13:34:04 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0bf9e33 |
7 |
|
8 |
dev-db/pgpool2: Remove litter from patch |
9 |
|
10 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
11 |
|
12 |
dev-db/pgpool2/pgpool2-9999.ebuild.orig | 104 -------------------------------- |
13 |
1 file changed, 104 deletions(-) |
14 |
|
15 |
diff --git a/dev-db/pgpool2/pgpool2-9999.ebuild.orig b/dev-db/pgpool2/pgpool2-9999.ebuild.orig |
16 |
deleted file mode 100644 |
17 |
index 5881c059c51..00000000000 |
18 |
--- a/dev-db/pgpool2/pgpool2-9999.ebuild.orig |
19 |
+++ /dev/null |
20 |
@@ -1,104 +0,0 @@ |
21 |
-# Copyright 1999-2018 Gentoo Foundation |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI=6 |
25 |
- |
26 |
-EGIT_REPO_URI="https://git.postgresql.org/git/pgpool2.git" |
27 |
- |
28 |
-POSTGRES_COMPAT=( 9.{3..6} {10..11} ) |
29 |
- |
30 |
-inherit autotools git-r3 postgres-multi |
31 |
- |
32 |
-DESCRIPTION="Connection pool server for PostgreSQL" |
33 |
-HOMEPAGE="http://www.pgpool.net/" |
34 |
-SRC_URI="" |
35 |
-LICENSE="BSD" |
36 |
-SLOT="0" |
37 |
- |
38 |
-KEYWORDS="" |
39 |
- |
40 |
-IUSE="doc memcached pam ssl static-libs" |
41 |
- |
42 |
-RDEPEND=" |
43 |
- ${POSTGRES_DEP} |
44 |
- net-libs/libnsl:0= |
45 |
- memcached? ( dev-libs/libmemcached ) |
46 |
- pam? ( sys-auth/pambase ) |
47 |
- ssl? ( dev-libs/openssl:* ) |
48 |
-" |
49 |
-DEPEND="${RDEPEND} |
50 |
- !!dev-db/pgpool |
51 |
- sys-devel/bison |
52 |
- virtual/pkgconfig |
53 |
- doc? ( |
54 |
- app-text/openjade |
55 |
- dev-libs/libxml2 |
56 |
- dev-libs/libxslt |
57 |
- ) |
58 |
-" |
59 |
- |
60 |
-pkg_setup() { |
61 |
- postgres_new_user pgpool |
62 |
- |
63 |
- postgres-multi_pkg_setup |
64 |
-} |
65 |
- |
66 |
-src_prepare() { |
67 |
- eapply \ |
68 |
- "${FILESDIR}/pgpool-configure-memcached.patch" \ |
69 |
- "${FILESDIR}/pgpool-configure-pam.patch" \ |
70 |
- "${FILESDIR}/pgpool-configure-pthread.patch" \ |
71 |
- "${FILESDIR}/pgpool_run_paths-9999.patch" |
72 |
- |
73 |
- eautoreconf |
74 |
- |
75 |
- postgres-multi_src_prepare |
76 |
-} |
77 |
- |
78 |
-src_configure() { |
79 |
- postgres-multi_foreach econf \ |
80 |
- --disable-rpath \ |
81 |
- --sysconfdir="${EROOT%/}/etc/${PN}" \ |
82 |
- --with-pgsql-includedir='/usr/include/postgresql-@PG_SLOT@' \ |
83 |
- --with-pgsql-libdir="/usr/$(get_libdir)/postgresql-@PG_SLOT@/$(get_libdir)" \ |
84 |
- $(use_enable static-libs static) \ |
85 |
- $(use_with memcached) \ |
86 |
- $(use_with pam) \ |
87 |
- $(use_with ssl openssl) |
88 |
-} |
89 |
- |
90 |
-src_compile() { |
91 |
- # Even though we're only going to do an install for the best slot |
92 |
- # available, the extension bits in src/sql need some things outside |
93 |
- # of that directory built, too. |
94 |
- postgres-multi_foreach emake |
95 |
- postgres-multi_foreach emake -C src/sql |
96 |
- use doc && postgres-multi_forbest emake DESTDIR="${D}" -C doc |
97 |
-} |
98 |
- |
99 |
-src_install() { |
100 |
- # We only need the best stuff installed |
101 |
- postgres-multi_forbest emake DESTDIR="${D}" install |
102 |
- |
103 |
- # Except for the extension and .so files that each PostgreSQL slot needs |
104 |
- postgres-multi_foreach emake DESTDIR="${D}" -C src/sql install |
105 |
- |
106 |
- newinitd "${FILESDIR}/${PN}.initd" ${PN} |
107 |
- newconfd "${FILESDIR}/${PN}.confd" ${PN} |
108 |
- |
109 |
- # Documentation! |
110 |
- dodoc NEWS TODO |
111 |
- use doc && postgres-multi_forbest emake DESTDIR="${D}" -C doc install |
112 |
- |
113 |
- # Examples and extras |
114 |
- # mv some files that get installed to /usr/share/pgpool-II so that |
115 |
- # they all wind up in the same place |
116 |
- mv "${ED%/}/usr/share/${PN/2/-II}" "${ED%/}/usr/share/${PN}" || die |
117 |
- into "/usr/share/${PN}" |
118 |
- dobin src/sample/{pgpool_recovery,pgpool_recovery_pitr,pgpool_remote_start} |
119 |
- insinto "/usr/share/${PN}" |
120 |
- doins src/sample/{{pcp,pgpool,pool_hba}.conf.sample*,pgpool.pam} |
121 |
- |
122 |
- # One more thing: Evil la files! |
123 |
- find "${ED}" -name '*.la' -exec rm -f {} + |
124 |
-} |