Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

9
misc/splitvt/DESCR Normal file
View File

@@ -0,0 +1,9 @@
Splitvt splits the screen into two windows, each running a shell, so you
can do and see two things at once.
Using special keys, the focus may be changed from one window to another.
Other features include cut & pasting between windows, and the ability to
the terminal.
Note: users may want to take a look at /usr/bin/window (see ``man window'')
for a Free/NetBSD native version this type of program.

18
misc/splitvt/Makefile Normal file
View File

@@ -0,0 +1,18 @@
# $NetBSD: Makefile,v 1.21 2012/10/08 09:57:38 asau Exp $
DISTNAME= splitvt-1.6.6
CATEGORIES= misc
MASTER_SITES= ${MASTER_SITE_SUNSITE:=utils/console/}
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Run two shells in a split window/terminal
BUILD_TARGET=
HAS_CONFIGURE= yes
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/splitvt ${DESTDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/splitvt.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.include "../../mk/bsd.pkg.mk"

3
misc/splitvt/PLIST Normal file
View File

@@ -0,0 +1,3 @@
@comment $NetBSD: PLIST,v 1.2 2009/06/12 19:09:37 rillig Exp $
bin/splitvt
man/man1/splitvt.1

10
misc/splitvt/distinfo Normal file
View File

@@ -0,0 +1,10 @@
$NetBSD: distinfo,v 1.6 2013/01/11 00:00:49 joerg Exp $
SHA1 (splitvt-1.6.6.tar.gz) = 8073f4998ae0d772deecc583b61ea7cb92f7186b
RMD160 (splitvt-1.6.6.tar.gz) = 014a9990ef41414b8488e10c24354bfc9588c4f8
Size (splitvt-1.6.6.tar.gz) = 64797 bytes
SHA1 (patch-aa) = ee16f9bb4b04d65c41ff71a6bc961bf3838e3648
SHA1 (patch-ab) = 047b5fceb89fa952780c0d62a20291399e6370f8
SHA1 (patch-ac) = b98a3c94d27799a4b9d94ccfef0d2de343becdf1
SHA1 (patch-ad) = ee36e355d76630d734a84ebca0b0531a8cef6b96
SHA1 (patch-cut-paste.c) = f1dc6f569580789ae3bb90633b619047302abdbd

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-aa,v 1.1 2005/11/10 18:25:42 joerg Exp $
--- splitvt.c.orig 2005-11-10 18:17:36.000000000 +0000
+++ splitvt.c
@@ -102,7 +102,7 @@ main(argc, argv)
int argc;
char *argv[];
{
- extern int errno, optind;
+ extern int optind;
extern char *optarg;
int i, len, maxfds, numready;

View File

@@ -0,0 +1,45 @@
$NetBSD: patch-ab,v 1.2 2008/07/25 03:38:01 tonnerre Exp $
--- vtmouse.c.orig 2007-04-01 19:58:22.000000000 +0200
+++ vtmouse.c
@@ -83,7 +83,7 @@ int main(int argc, char *argv[])
#endif
/* I/O streams default to stdin and stdout. */
-static FILE *xt_input, *xt_output;
+static FILE *xt_input = NULL, *xt_output = NULL;
static int have_xterm=0;
static int set_title=0;
static char *old_title=NULL;
@@ -120,6 +120,9 @@ static char *get_xtitle()
static void set_xtitle(titlebar)
char *titlebar;
{
+ if (xt_output == NULL)
+ xt_output = stdout;
+
fprintf(xt_output, "\033]0;%s\07", titlebar);
fflush(xt_output);
}
@@ -168,6 +171,11 @@ struct event *X_event;
window *thiswin;
#endif
+ if (xt_input == NULL)
+ xt_input = stdin;
+ if (xt_output == NULL)
+ xt_output = stdout;
+
X_event->happening=0;
if ( have_xterm ) {
@@ -279,6 +287,9 @@ struct event *X_event;
void event_quit()
{
+ if (xt_output == NULL)
+ xt_output = stdout;
+
if ( have_xterm ) {
#ifdef REPORT_SELECTION
fprintf(xt_output, "\033[?1001l");

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ac,v 1.1 2005/11/10 18:25:42 joerg Exp $
--- parserc.c.orig 2005-11-10 18:22:31.000000000 +0000
+++ parserc.c
@@ -154,8 +154,6 @@ char *args[];
static int safe_chdir(directory)
char *directory;
{
- extern int errno;
-
char *subdir=NULL;
struct stat sb;
int nslashes=0, chdir_ret;

View File

@@ -0,0 +1,42 @@
$NetBSD: patch-ad,v 1.1 2008/07/25 03:38:01 tonnerre Exp $
--- misc.c.orig 2007-04-01 19:56:30.000000000 +0200
+++ misc.c
@@ -108,8 +108,17 @@ int win; /* 0 for upper, 1 for lower */
/* "touch" the tty so 'w' reports proper idle times */
(void) utime(get_ttyname(), NULL);
+ /* Set our gid to our real gid if necessary */
+ if (setgid(getgid()) != 0) {
+ perror("setgid");
+ exit(EXIT_FAILURE);
+ }
+
/* Set our uid to our real uid if necessary */
- (void) setuid(getuid());
+ if (setuid(getuid()) != 0) {
+ perror("setgid");
+ exit(EXIT_FAILURE);
+ }
/* Run the requested program, with possible leading dash. */
execvp(((*argv[0] == '-') ? argv[0]+1 : argv[0]), argv);
@@ -876,8 +885,17 @@ char *type;
}
close(pipe_fds[0]); close(pipe_fds[1]);
+ /* Set our gid to our real gid if necessary */
+ if (setgid(getgid()) != 0) {
+ perror("setgid");
+ exit(EXIT_FAILURE);
+ }
+
/* Set our uid to our real uid if necessary */
- (void) setuid(getuid());
+ if (setuid(getuid()) != 0) {
+ perror("setuid");
+ exit(EXIT_FAILURE);
+ }
/* Run the requested program */
argv[0]="/bin/sh";

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-cut-paste.c,v 1.1 2013/01/11 00:00:50 joerg Exp $
--- cut-paste.c.orig 2013-01-10 22:43:42.000000000 +0000
+++ cut-paste.c
@@ -312,7 +312,7 @@ int len;
default: break;
}
}
- return; /* Hopefully, we never reach here */
+ return NULL; /* Hopefully, we never reach here */
}