Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 468868 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/dev-db/postgresql-server/postgresql-server-9.2.4.ebuild (-3 / +19 lines)
Lines 1-15 Link Here
1
# Copyright 1999-2013 Gentoo Foundation
1
# Copyright 1999-2013 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/postgresql-server-9.2.4.ebuild,v 1.12 2013/04/05 18:45:00 ago Exp $
3
# $Header: $
4
4
5
EAPI="5"
5
EAPI="5"
6
6
7
PYTHON_COMPAT=( python{2_{5,6,7},3_{1,2,3}} )
7
PYTHON_COMPAT=( python{2_{5,6,7},3_{1,2,3}} )
8
WANT_AUTOMAKE="none"
8
WANT_AUTOMAKE="none"
9
9
10
inherit autotools eutils flag-o-matic multilib pam prefix python-single-r1 user versionator
10
inherit autotools eutils flag-o-matic multilib pam prefix python-single-r1 systemd user versionator
11
11
12
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris"
12
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris"
13
13
14
SLOT="$(get_version_component_range 1-2)"
14
SLOT="$(get_version_component_range 1-2)"
15
15
Lines 91-96 Link Here
91
		-i "${WORKDIR}/postgresql.init" "${WORKDIR}/postgresql.confd" || \
91
		-i "${WORKDIR}/postgresql.init" "${WORKDIR}/postgresql.confd" || \
92
		die "SLOT sed failed"
92
		die "SLOT sed failed"
93
93
94
	cp "${FILESDIR}"/{postgresql.service,postgresql-check-db-dir} "${WORKDIR}"/
95
96
	sed -e "s|@SLOT@|${SLOT}|g" \
97
		-i "${WORKDIR}"/postgresql.service || \
98
		die "SLOT sed failed"
99
100
	sed -e "s|@SLOT@|${SLOT}|g" \
101
		-i "${WORKDIR}"/postgresql-check-db-dir || \
102
		die "SLOT sed failed"
103
94
	eautoconf
104
	eautoconf
95
}
105
}
96
106
Lines 147-152 Link Here
147
	newinitd "${WORKDIR}/postgresql.init" postgresql-${SLOT} || \
157
	newinitd "${WORKDIR}/postgresql.init" postgresql-${SLOT} || \
148
		die "Inserting conf failed"
158
		die "Inserting conf failed"
149
159
160
	systemd_newunit "${WORKDIR}"/postgresql.service postgresql-${SLOT}.service
161
	systemd_newtmpfilesd "${FILESDIR}"/postgresql.tmpfilesd postgresql-${SLOT}.conf
162
163
	insinto /usr/bin/
164
	newbin "${WORKDIR}"/postgresql-check-db-dir postgresql-${SLOT}-check-db-dir
165
150
	use pam && pamd_mimic system-auth postgresql-${SLOT} auth account session
166
	use pam && pamd_mimic system-auth postgresql-${SLOT} auth account session
151
167
152
	if use prefix ; then
168
	if use prefix ; then

Return to bug 468868