diff options
Diffstat (limited to 'security/sudosh3')
-rw-r--r-- | security/sudosh3/Makefile | 39 | ||||
-rw-r--r-- | security/sudosh3/distinfo | 3 | ||||
-rw-r--r-- | security/sudosh3/files/patch-src-getopt.c | 11 | ||||
-rw-r--r-- | security/sudosh3/files/patch-src::Makefile.in | 11 | ||||
-rw-r--r-- | security/sudosh3/files/patch-src::sudosh.c | 129 | ||||
-rw-r--r-- | security/sudosh3/pkg-descr | 13 | ||||
-rw-r--r-- | security/sudosh3/pkg-plist | 5 |
7 files changed, 0 insertions, 211 deletions
diff --git a/security/sudosh3/Makefile b/security/sudosh3/Makefile deleted file mode 100644 index 9d6e0ee7cbf8..000000000000 --- a/security/sudosh3/Makefile +++ /dev/null @@ -1,39 +0,0 @@ -# Ports collection Makefile for: sudosh -# Date created: 10/28/2004 -# Whom: cy@FreeBSD.org -# -# $FreeBSD$ -# - -PORTNAME= sudosh2 -PORTVERSION= 1.0.2 -CATEGORIES= security -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED} -MASTER_SITE_SUBDIR= ${PORTNAME:S/_/-/} -DISTNAME= ${PORTNAME}-${PORTVERSION} -EXTRACT_SUFX= .tbz2 - -MAINTAINER= cy@FreeBSD.org -COMMENT= Second version of the sudo shell -CONFLICTS= sudosh-* - -USE_BZIP2= yes -RUN_DEPENDS= sudo:${PORTSDIR}/security/sudo - -GNU_CONFIGURE= yes - -CONFIGURE_ARGS= --bindir="${PREFIX}/bin" -CONFIGURE_ARGS+= --sysconfdir="${PREFIX}/etc" -CONFIGURE_ARGS+= --program-transform-name='' -.if defined(SUDOSH_LOGDIR) -CONFIGURE_ARGS+= --with-logdir="${SUDOSH_LOGDIR}" -.else -CONFIGURE_ARGS+= --with-logdir=/var/log/sudosh -.endif -CONFIGURE_ENV= LDFLAGS="-lutil" - -MAN1= sudosh.1 -MAN5= sudosh.conf.5 -MAN8= sudosh-replay.8 - -.include <bsd.port.mk> diff --git a/security/sudosh3/distinfo b/security/sudosh3/distinfo deleted file mode 100644 index 06d0138b2b69..000000000000 --- a/security/sudosh3/distinfo +++ /dev/null @@ -1,3 +0,0 @@ -MD5 (sudosh2-1.0.2.tbz2) = 594525a29be7fd328b80f3291eac4aca -SHA256 (sudosh2-1.0.2.tbz2) = 70298502c3f1998118d90b2b5298a6ca2595ebca3e695e7871f68d792d2b3299 -SIZE (sudosh2-1.0.2.tbz2) = 167113 diff --git a/security/sudosh3/files/patch-src-getopt.c b/security/sudosh3/files/patch-src-getopt.c deleted file mode 100644 index ba8dff15118d..000000000000 --- a/security/sudosh3/files/patch-src-getopt.c +++ /dev/null @@ -1,11 +0,0 @@ ---- src/getopt.c.orig 2007-12-21 13:03:26.000000000 -0800 -+++ src/getopt.c 2008-09-26 13:45:11.958473185 -0700 -@@ -195,6 +195,8 @@ - /* gcc with -traditional declares the built-in strlen to return int, - and has done so at least since version 2.4.5. -- rms. */ - extern int strlen(const char *); -+#else -+#include <string.h> - #endif /* not __STDC__ */ - #endif /* __GNUC__ */ - diff --git a/security/sudosh3/files/patch-src::Makefile.in b/security/sudosh3/files/patch-src::Makefile.in deleted file mode 100644 index 81fcafdbceb1..000000000000 --- a/security/sudosh3/files/patch-src::Makefile.in +++ /dev/null @@ -1,11 +0,0 @@ ---- src/Makefile.in.orig Sun Jun 12 19:33:29 2005 -+++ src/Makefile.in Wed Oct 26 06:59:17 2005 -@@ -427,7 +427,8 @@ - - install-sudosh.conf: - test -z "$(sysconfdir)" || $(mkdir_p) "$(DESTDIR)$(sysconfdir)" - test -f $(sysconfdir)/sudosh.conf || $(INSTALL) -o 0 -g 0 -m 0444 '$(srcdir)/sudosh.conf' '$(sysconfdir)/sudosh.conf' -+ $(INSTALL) -o 0 -g 0 -m 0444 '$(srcdir)/sudosh.conf' '$(sysconfdir)/sudosh.conf.sample' - - install: install-am install-sudosh.conf - # Tell versions [3.59,3.63) of GNU make to not export all variables. diff --git a/security/sudosh3/files/patch-src::sudosh.c b/security/sudosh3/files/patch-src::sudosh.c deleted file mode 100644 index 0c79a345cfc4..000000000000 --- a/security/sudosh3/files/patch-src::sudosh.c +++ /dev/null @@ -1,129 +0,0 @@ ---- src/sudosh.c.orig Sun Jun 12 19:35:07 2005 -+++ src/sudosh.c Fri Jan 5 14:14:05 2007 -@@ -28,6 +28,13 @@ - - #define WRITE(a, b, c) do_write(a, b, c, __FILE__, __LINE__) - -+#ifdef __FreeBSD__ -+#include <sys/types.h> -+#include <sys/ioctl.h> -+#include <libutil.h> -+#include <sys/param.h> -+#endif -+ - static struct termios termorig; - static struct winsize winorig; - -@@ -545,19 +552,43 @@ - { - char *sname; - -+#ifdef __FreeBSD__ -+#define PTYLEN 16 -+ char sname_area[PTYLEN]; -+ struct termios tt; -+ struct winsize win; -+ -+ sname = sname_area; -+ if (tcgetattr(STDIN_FILENO, &tt) == -1) -+ { -+ perror ("tcgetattr"); -+ return -1; -+ } -+ if (ioctl(STDIN_FILENO, TIOCGWINSZ, &win) == -1) -+ { -+ perror ("ioctl"); -+ return -1; -+ } -+ if (openpty(&p->mfd, &p->sfd, sname, &tt, &win) == -1) { -+#else - if ((p->mfd = open ("/dev/ptmx", O_RDWR)) == -1) - { - if ((p->mfd = open ("/dev/ptc", O_RDWR)) == -1) - { -+#endif - perror ("Cannot open cloning master pty"); - return -1; -+#ifndef __FreeBSD__ - } -+#endif - } - -+#if !defined(__FreeBSD_version) || (defined(__FreeBSD_version) && __FreeBSD_version >= 500000) - (void) unlockpt (p->mfd); - (void) grantpt (p->mfd); - - sname = (char *) ptsname (p->mfd); -+#endif - - if ((p->sfd = open (sname, O_RDWR)) == -1) - { -@@ -619,9 +650,14 @@ - for (i = 3; i < 100; ++i) - close (i); - -+#ifdef __FreeBSD__ -+ (void) tcsetattr(0, TCSADRAIN, &termorig); -+ (void) login_tty(pst->sfd); -+#else - #ifdef TCSETS - (void) ioctl (0, TCSETS, &termorig); - #endif -+#endif - (void) ioctl (0, TIOCSWINSZ, &winorig); - - setuid (getuid ()); -@@ -663,6 +699,13 @@ - { - static struct termios termnew; - -+#ifdef __FreeBSD__ -+ if (tcgetattr(ttyfd, &termorig) == -1) -+ { -+ perror ("tcgetattr failed"); -+ exit (EXIT_FAILURE); -+ } -+#else - #ifdef TCGETS - if (ioctl (ttyfd, TCGETS, &termorig) == -1) - { -@@ -670,6 +713,7 @@ - exit (EXIT_FAILURE); - } - #endif -+#endif - - if (ioctl (ttyfd, TIOCGWINSZ, &winorig) == -1) - { -@@ -677,6 +721,11 @@ - exit (EXIT_FAILURE); - } - -+#ifdef __FreeBSD__ -+ (void) cfmakeraw(&termnew); -+ termnew.c_lflag &= ~ECHO; -+ (void) tcsetattr(ttyfd, TCSAFLUSH, &termnew); -+#else - termnew.c_cc[VEOF] = 1; - termnew.c_iflag = BRKINT | ISTRIP | IXON | IXANY; - termnew.c_oflag = 0; -@@ -686,13 +735,19 @@ - #ifdef TCSETS - (void) ioctl (ttyfd, TCSETS, &termnew); - #endif -+#endif - } - - static void - bye (int signum) - { -+ -+#ifdef __FreeBSD__ -+ (void) tcsetattr(0, TCSADRAIN, &termorig); -+#else - #ifdef TCSETS - (void) ioctl (0, TCSETS, &termorig); -+#endif - #endif - - close (timing.fd); diff --git a/security/sudosh3/pkg-descr b/security/sudosh3/pkg-descr deleted file mode 100644 index 28218a76ad11..000000000000 --- a/security/sudosh3/pkg-descr +++ /dev/null @@ -1,13 +0,0 @@ -Sudosh2 is a tool which can provide systems administrators with extensive -auditing of user shell usage. - -There are two distinct modes of operation for sudosh2: as a filter for sudo, -and directly as a login shell. In either case, you will be able to audit -user sessions by replaying them to your screen, much like a VCR. - -Sudosh2 is a fork of sudosh (by Douglas Hanks). He stopped updating sudosh -in 2005, and this fork was created in 2007. Sudosh2 is licensed with the -Open Source License v2.0. - -http://sourceforge.net/projects/sudosh2/ -http://www.shortcutsolutions.net/software/40-software-development/55-introduction-to-sudosh2.html diff --git a/security/sudosh3/pkg-plist b/security/sudosh3/pkg-plist deleted file mode 100644 index 43d308b7d677..000000000000 --- a/security/sudosh3/pkg-plist +++ /dev/null @@ -1,5 +0,0 @@ -@unexec test -f %D/etc/sudosh.conf && cmp %D/etc/sudosh.conf.sample %D/etc/sudosh.conf > /dev/null 2>&1 && rm %D/etc/sudosh.conf && echo %D/etc/sudosh.conf has been removed; test -f %D/etc/sudosh.conf && echo %D/etc/sudosh.conf has not been removed; true -bin/sudosh -bin/sudosh-replay -etc/sudosh.conf.sample -@exec test -f %D/etc/sudosh.conf || cp %D/etc/sudosh.conf.sample %D/etc/sudosh.conf |