summaryrefslogtreecommitdiff
path: root/app-misc/ttysnoop
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-09-16 09:32:48 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-09-16 09:32:48 +0100
commit9ee6d97c2883d42f204a533a8bc1f4562df778fb (patch)
treeb690ddc0ca30f1472887edbb0b8313629bfcbbb2 /app-misc/ttysnoop
parentb17a3ef12038de50228bade1f05502c74e135321 (diff)
gentoo resync : 16.09.2020
Diffstat (limited to 'app-misc/ttysnoop')
-rw-r--r--app-misc/ttysnoop/Manifest6
-rw-r--r--app-misc/ttysnoop/files/pinkbyte_masking.patch4
-rw-r--r--app-misc/ttysnoop/files/ttysnoop-makefile.patch27
-rw-r--r--app-misc/ttysnoop/ttysnoop-0.12d.ebuild32
4 files changed, 38 insertions, 31 deletions
diff --git a/app-misc/ttysnoop/Manifest b/app-misc/ttysnoop/Manifest
index d201b6423922..5c33499194a7 100644
--- a/app-misc/ttysnoop/Manifest
+++ b/app-misc/ttysnoop/Manifest
@@ -1,5 +1,5 @@
-AUX pinkbyte_masking.patch 1028 BLAKE2B 8aaeb707d1ff8ec5325bfd27636fdcfdb78d486b8f9c1213ee0578762017468748239adc54d7f1c27f1feb8f076137bddc701ef4f1356f965b25b158ef7c9a0c SHA512 a4adede6ceeea84ccf760805fb4f7044fa06fcc00291556bcaf61b8be81256d10751e3efd7e35c8b26897d98878da6dc17d526cd335aee5bb91762cd129225f1
-AUX ttysnoop-makefile.patch 1004 BLAKE2B b0233a65382023260cb78d095be0ca298c2d43365f9488fd3c6f255acca10d3f9c9ffd2d9e3af5f711baa86da8932fac5b19909dd7437a1a049a95c226bf6ca2 SHA512 f5e8f5764ecfd7174646801650f63ed5608dd5ce1d5e321419ff5318946ed03b61f2e25108d9d5c9dbce95eb4b788c74543cc57b0ba57d430e6ddc519e73321d
+AUX pinkbyte_masking.patch 960 BLAKE2B b42c754ea33c41bfa1c6ca5c529af30c1fe05473accbb4be195e1d5d30944e4a38e4175226b16cd9d3560707135b9cc8056374b3e87a4a937515fd8cae8e8764 SHA512 20e6d3d8d909bdd9795e52c5e46ed6ca60a6a8448027cf011d8f77a2201fb44d49ba5b73d8a9e3c682c187fd88efb30ded531a2efb8183ae764cf6d2a5bfa38c
+AUX ttysnoop-makefile.patch 1085 BLAKE2B 6578ff063cc6b4e3d48085761deffdb8de1b98324f6c8ae08fbd46bb9b45cf968bbf5e9d14930ae23666c08656f10d695ef5022f384875122917b8c4c63373a5 SHA512 eab5831d6d744e5fb9f5a3105c773872f0c6995a917169c162bccf829ce9dbd63dcd28360ee99faf08cf7aaec034df02d73c21d7dae0f004779ac66519aab419
DIST ttysnoop-0.12d.k26.tar.gz 9376 BLAKE2B 114c260de72c4909b97fb47d3ec8b22cf2406df433f708299098df7a7b1315ada8babd81c62ae3a12775fb2393c6548d24457df85523663223960390bb2891c1 SHA512 9ac90ce08e170442718ca4871b7cb569acd8a594e63a56a6889ff0852be93a6ae8e7a212ba1064e74286043dad5a27af5d8588cb3b1ea297db4bf7fa10c66665
-EBUILD ttysnoop-0.12d.ebuild 833 BLAKE2B 3bd50bd067edc0105d8c52dbe6bc5753f846096b682a5146a911237ebc37160591ce10a841013b15397fc884418552b3478e5a35e0fbed23dd8470262d1c947e SHA512 cdebbedcedf584bbbdb4d24a80b97deaff7c60b47ef5f6dfcc518acef7c03fd410d8015b092cd322e74f6f718d4fdb717430dca4b64a3859106c5ed65da23f86
+EBUILD ttysnoop-0.12d.ebuild 765 BLAKE2B 9efaac8d581419cdb97b2e0282345317035691cdd3e3f7fb069ee388d4336c01f4b4bb2b4e14d9d546f1db19803d4a6f23e2ea5a0faf4df769ef3633c49cd1fd SHA512 3a6aaee1f956f5d329c6969f2128a16363e68735d6e3dfd6fa36b04e39d6387c869287125c9b98fd95ea300835523f808d71ce57bd30cd7c675655dd8b6af49e
MISC metadata.xml 247 BLAKE2B 61049845c1ffb66aea9959f984983735ad8d7d9d37aab6da3a19951bbf8d67af657cacde1701da8a3dd93b0704c10430d511bea11d56bf98702950f0707436ec SHA512 96c55c2979dd6a4c4761fce9b5a0be387b11fcf197ef903d8680ae82f01a2caea93b1238bed1ac96d3eb250744e2149a507e0424ac017b4324f0806a54e72c4a
diff --git a/app-misc/ttysnoop/files/pinkbyte_masking.patch b/app-misc/ttysnoop/files/pinkbyte_masking.patch
index a0539c239b04..8d944b21e3af 100644
--- a/app-misc/ttysnoop/files/pinkbyte_masking.patch
+++ b/app-misc/ttysnoop/files/pinkbyte_masking.patch
@@ -1,5 +1,5 @@
---- ttysnoops.c 2009-08-13 17:11:30.705202250 +0400
-+++ ttysnoops.c 2009-08-13 17:17:29.989201055 +0400
+--- a/ttysnoops.c
++++ b/ttysnoops.c
@@ -18,6 +18,7 @@
v0.12d 8-4-98 Carl Declerck - updated #includes a bit
k26 28-5-00 Vinicius Anselmo - added sound alert (demoniac) created by Stas
diff --git a/app-misc/ttysnoop/files/ttysnoop-makefile.patch b/app-misc/ttysnoop/files/ttysnoop-makefile.patch
index 54d04dd40a29..ba8d702e9e6e 100644
--- a/app-misc/ttysnoop/files/ttysnoop-makefile.patch
+++ b/app-misc/ttysnoop/files/ttysnoop-makefile.patch
@@ -1,6 +1,15 @@
---- Makefile 2004-06-07 04:27:40.000000000 +0400
-+++ Makefile 2011-07-21 11:50:22.580167326 +0400
-@@ -11,7 +11,7 @@
+--- a/Makefile
++++ b/Makefile
+@@ -2,8 +2,6 @@
+ # Makefile for the ttysnoop programs
+ #
+
+-CC = gcc
+-
+ # Without shadow support
+
+ #CCOPTS = -O2
+@@ -11,7 +9,7 @@
# For shadow support
@@ -9,28 +18,28 @@
LIBS = -lcrypt
#LIBS = -lshadow
-@@ -24,19 +24,19 @@
+@@ -24,19 +22,19 @@
all: ttysnoops ttysnoop
ttysnoops: $(SERVEROBJS)
- $(CC) $(SERVEROBJS) -o ttysnoops $(LIBS)
-+ $(CC) $(SERVEROBJS) -o ttysnoops $(LDFLAGS) $(LIBS)
++ $(CC) $(LDFLAGS) $(SERVEROBJS) -o ttysnoops $(LIBS)
ttysnoop: $(CLIENTOBJS)
- $(CC) $(CLIENTOBJS) -o ttysnoop $(LIBS)
-+ $(CC) $(CLIENTOBJS) -o ttysnoop $(LDFLAGS) $(LIBS)
++ $(CC) $(LDFLAGS) $(CLIENTOBJS) -o ttysnoop $(LIBS)
ttysnoops.o: $(SERVERSRCS) $(INCLUDES)
- $(CC) $(CCOPTS) -c -o ttysnoops.o $(SERVERSRCS)
-+ $(CC) $(CCOPTS) $(CFLAGS) -c -o ttysnoops.o $(SERVERSRCS)
++ $(CC) $(CCOPTS) $(CPPFLAGS) $(CFLAGS) -c -o ttysnoops.o $(SERVERSRCS)
ttysnoop.o: $(CLIENTSRCS) $(INCLUDES)
- $(CC) $(CCOPTS) -c -o ttysnoop.o $(CLIENTSRCS)
-+ $(CC) $(CCOPTS) $(CFLAGS) -c -o ttysnoop.o $(CLIENTSRCS)
++ $(CC) $(CCOPTS) $(CPPFLAGS) $(CFLAGS) -c -o ttysnoop.o $(CLIENTSRCS)
common.o: common.c common.h
- $(CC) $(CCOPTS) -c -o common.o common.c
-+ $(CC) $(CCOPTS) $(CFLAGS) -c -o common.o common.c
++ $(CC) $(CCOPTS) $(CPPFLAGS) $(CFLAGS) -c -o common.o common.c
clean:
rm -f *.o core ttysnoop ttysnoops
diff --git a/app-misc/ttysnoop/ttysnoop-0.12d.ebuild b/app-misc/ttysnoop/ttysnoop-0.12d.ebuild
index 400e1e6c2c64..ccbb8cd23f2c 100644
--- a/app-misc/ttysnoop/ttysnoop-0.12d.ebuild
+++ b/app-misc/ttysnoop/ttysnoop-0.12d.ebuild
@@ -1,11 +1,11 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI="4"
+EAPI=7
MY_P="${P}.k26"
-inherit eutils toolchain-funcs
+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"
@@ -14,30 +14,28 @@ SRC_URI="http://sysd.org/stas/files/active/0/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE=""
-
-RDEPEND=""
-DEPEND="${RDEPEND}"
S="${WORKDIR}/${MY_P}"
-DOCS="README snooptab.dist"
-
-src_prepare() {
- epatch "${FILESDIR}"/pinkbyte_masking.patch
- epatch "${FILESDIR}"/"${PN}"-makefile.patch
-}
+PATCHES=(
+ "${FILESDIR}"/pinkbyte_masking.patch
+ "${FILESDIR}"/"${PN}"-makefile.patch
+)
-src_compile() {
- emake CC="$(tc-getCC)"
+src_configure() {
+ tc-export CC
}
src_install() {
dodir /var/spool/ttysnoop
+ keepdir /var/spool/ttysnoop
+
fperms o= /var/spool/ttysnoop
- dodoc ${DOCS}
- dosbin ttysnoop
- dosbin ttysnoops
+
+ dosbin ttysnoop ttysnoops
+
+ dodoc README snooptab.dist
+
doman ttysnoop.8
insinto /etc
newins snooptab.dist snooptab