summaryrefslogtreecommitdiff
path: root/dev-db/set_user/set_user-4.1.0.ebuild
blob: 9b7d88b60f130cf314da3f030da761ca86bd37db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Copyright 2021-2024 Liguros Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
POSTGRES_COMPAT=( 14 15 16 17 18 )

inherit postgres

MY_PV=$(ver_rs 1- _)

DESCRIPTION="PostgreSQL extension allowing privilege escalation"
HOMEPAGE="https://github.com/pgaudit/set_user"
SRC_URI="https://github.com/pgaudit/set_user/archive/refs/tags/REL${MY_PV}.tar.gz"

LICENSE="PostgreSQL"
SLOT="0"
KEYWORDS="~amd64"

DEPEND="
	dev-db/postgresql
"
RDEPEND="${DEPEND}"

DOCS=( CHANGELOG.md README.md RELEASENOTES.md )

S="${WORKDIR}/${PN}-REL${MY_PV}"

src_compile() {
	emake USE_PGXS=1 PG_CONFIG=/usr/bin/pg_config
}

src_install() {
	emake DESTDIR="${D}" install USE_PGXS=1 PG_CONFIG=/usr/bin/pg_config
}