summaryrefslogtreecommitdiff
blob: ccbb8cd23f2c3d7b0ce4371cbb568c6de4c0d1a5 (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
34
35
36
37
38
39
40
41
42
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

MY_P="${P}.k26"

inherit toolchain-funcs

DESCRIPTION="Tool to snoop on login tty's through another tty-device or pseudo-tty"
HOMEPAGE="http://sysd.org/stas/node/35"
SRC_URI="http://sysd.org/stas/files/active/0/${MY_P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"

S="${WORKDIR}/${MY_P}"

PATCHES=(
	"${FILESDIR}"/pinkbyte_masking.patch
	"${FILESDIR}"/"${PN}"-makefile.patch
)

src_configure() {
	tc-export CC
}

src_install() {
	dodir /var/spool/ttysnoop
	keepdir /var/spool/ttysnoop

	fperms o= /var/spool/ttysnoop

	dosbin ttysnoop ttysnoops

	dodoc README snooptab.dist

	doman ttysnoop.8
	insinto /etc
	newins snooptab.dist snooptab
}