summaryrefslogtreecommitdiff
blob: 1acd867a81cdb160d644f4a21a7ac4c6e5fc4af2 (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
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=5
inherit eutils

DESCRIPTION="\"su\" wrapper which transfers X credentials"
HOMEPAGE="http://fgouget.free.fr/sux/sux-readme.shtml"
SRC_URI="http://fgouget.free.fr/sux/sux"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha amd64 arm ~arm64 ppc sparc x86"
IUSE=""

S="${WORKDIR}"

RDEPEND="x11-apps/xauth"

src_unpack() {
	cp "${DISTDIR}"/${A} .
}

src_prepare() {
	epatch \
		"${FILESDIR}"/${PN}-1.0-xauth-and-home.patch \
		"${FILESDIR}"/${P}-dash.patch
}

src_install() {
	dobin sux
}