summaryrefslogtreecommitdiffstats
path: root/app-misc/sshsleeper/sshsleeper-0.1.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc/sshsleeper/sshsleeper-0.1.ebuild')
-rw-r--r--app-misc/sshsleeper/sshsleeper-0.1.ebuild37
1 files changed, 37 insertions, 0 deletions
diff --git a/app-misc/sshsleeper/sshsleeper-0.1.ebuild b/app-misc/sshsleeper/sshsleeper-0.1.ebuild
new file mode 100644
index 0000000..ca464ab
--- /dev/null
+++ b/app-misc/sshsleeper/sshsleeper-0.1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header:
+
+inherit eutils toolchain-funcs flag-o-matic
+
+DESCRIPTION="just a sleep app to be used for ssh backdoors"
+HOMEPAGE="http://dside.dyndns.org/"
+
+LICENSE="GPL"
+SLOT="0"
+KEYWORDS="x86 amd64"
+
+
+
+src_compile() {
+ gcc -o ${PN} "${FILESDIR}"/${PN}.c
+}
+
+src_install() {
+ dobin ${PN}
+
+ dodir /etc
+ echo "duration 14400" > "${D}"/etc/sshsleeper.conf
+
+ dodir /var/lib/sshsleeper
+ dodir /var/lib/sshsleeper/.ssh
+}
+
+pkg_postinst() {
+ enewuser sleep 601 /usr/bin/sshsleeper /var/lib/sshsleeper nogroup -K PASS_MAX_DAYS=31
+ fowners sleep.nogroup /var/lib/sshsleeper
+ fowners sleep.nogroup /var/lib/sshsleeper/.ssh
+
+ einfo ""
+ einfo "Please, add sshsleaper to /etc/shells"
+}