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

10
sysutils/skill/DESCR Normal file
View File

@@ -0,0 +1,10 @@
`skill' is a program which sends signals to processes given
any combination of user names, ttys, commands, and pids. `snice' is
a program which changes the priority of processes (given the same).
It's actually one program which examines argv to determine what action
is to be taken on matching processes. It is similar to kill(1) and
renice(8), however the command line is completely order independent.
There are also verbose, search, and interactive modes of operation.
The name `skill' stems from `SuperKILL', but if you use it under `csh',
you may discover another reason for calling it `skill' (hint "s!!").

51
sysutils/skill/Makefile Normal file
View File

@@ -0,0 +1,51 @@
# $NetBSD: Makefile,v 1.26 2012/10/23 19:51:23 asau Exp $
#
DISTNAME= skill-4.1.4
CATEGORIES= sysutils
MASTER_SITES= ftp://ftp.flux.utah.edu/pub/skill/
EXTRACT_SUFX= .tgz
MAINTAINER= kim@tac.nyc.ny.us
HOMEPAGE= http://mysite.verizon.net/jforys/jeffware.html
COMMENT= Signal processes given user names, ttys, commands, or pids
NOT_FOR_PLATFORM+= Interix-*-* # currently no machdep support
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD"
MAKE_ENV+= OSTYPE=nbsd-44
.elif ${OPSYS} == "Darwin"
MAKE_ENV+= OSTYPE=nbsd-44
.elif ${OPSYS} == "DragonFly"
MAKE_ENV+= OSTYPE=nbsd-44
CPPFLAGS+= -DHAS_STRERROR=1
.elif ${OPSYS} == "SunOS"
BINMODE= 02555
MAKE_ENV+= OSTYPE=sys-5r4 BINGRP=sys CPPFLAGS=
.elif ${OPSYS} == "FreeBSD"
MAKE_ENV+= OSTYPE=nbsd-44
.elif ${OPSYS} == "Linux"
MAKE_ENV+= OSTYPE=linux-1
CPPFLAGS+= -DHAS_STRERROR=1
.elif ${OPSYS} == "IRIX"
MAKE_ENV+= OSTYPE=irix5
.elif ${OPSYS} == "OSF"
MAKE_ENV+= OSTYPE=mach-3
.elif ${OPSYS} == "AIX"
MAKE_ENV+= OSTYPE=aix-3
.elif ${OPSYS} == "HPUX"
MAKE_ENV+= OSTYPE=hpux-10
.endif
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
pre-install:
${INSTALL_PROGRAM} ${WRKSRC}/skill ${DESTDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/skill.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
${RM} -f ${DESTDIR}${PREFIX}/bin/snice ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/snice.1
${LN} -s skill ${DESTDIR}${PREFIX}/bin/snice
${LN} -s skill.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/snice.1
.include "../../mk/bsd.pkg.mk"

5
sysutils/skill/PLIST Normal file
View File

@@ -0,0 +1,5 @@
@comment $NetBSD: PLIST,v 1.1 2001/10/31 22:53:47 zuntum Exp $
bin/skill
bin/snice
man/man1/skill.1
man/man1/snice.1

9
sysutils/skill/distinfo Normal file
View File

@@ -0,0 +1,9 @@
$NetBSD: distinfo,v 1.12 2008/08/02 22:35:03 dholland Exp $
SHA1 (skill-4.1.4.tgz) = 8a8dff9dbf9f1aa382887c142ac4dc205d7ddbf3
RMD160 (skill-4.1.4.tgz) = e28e035879ecb66b6117133caf7ad05f00758371
Size (skill-4.1.4.tgz) = 46349 bytes
SHA1 (patch-aa) = 559a2cfec2c9395b88009042f50a017ffecd13d4
SHA1 (patch-ab) = 20b64bdea73d123c3b10c086e7224f6bd67a04fd
SHA1 (patch-ac) = 630a47e6088cde6a4bb6f220164ceb32f3634e9c
SHA1 (patch-ad) = 3459279d2bd09ac4007ffcd1bad19f67ed348944

View File

@@ -0,0 +1,69 @@
$NetBSD: patch-aa,v 1.12 2007/10/27 02:52:23 obache Exp $
--- Makefile.orig 2007-05-04 20:57:23.000000000 +0000
+++ Makefile
@@ -62,15 +62,15 @@ PREFIX= /usr/local
# CONFIGURE: Set location of executable, it's group and mode.
BINDIR= ${PREFIX}/bin
-BINGRP= wheel
-BINMOD= 555
+#BINGRP= wheel
+#BINMOD= 555
# CONFIGURE: Set location of man directory and man page suffix.
MANDIR= ${PREFIX}/man/man1
MANSFX= 1
# CONFIGURE(Config): Select an OSTYPE for your machine from the list above.
-OSTYPE= nbsd-44
+#OSTYPE= nbsd-44
# CONFIGURE(Config): Add any OS-specific options here.
COPTS=
@@ -82,7 +82,7 @@ SRCS= main.c argparse.c getproc.c
OBJS= main.o argparse.o getproc.o
HDRS= conf.h
-CFLAGS= -O ${COPTS}
+CFLAGS+=${COPTS}
all: skill
@@ -96,23 +96,23 @@ getproc.c:
${OBJS}: ${HDRS}
install: skill
- -test -d ${DESTDIR}/${BINDIR} || mkdir -p -m 755 ${DESTDIR}/${BINDIR}
- -test -d ${DESTDIR}/${MANDIR} || mkdir -p -m 755 ${DESTDIR}/${MANDIR}
+# -test -d ${DESTDIR}/${BINDIR} || mkdir -p -m 755 ${DESTDIR}/${BINDIR}
+# -test -d ${DESTDIR}/${MANDIR} || mkdir -p -m 755 ${DESTDIR}/${MANDIR}
#(SysV) filepriv -d ${DESTDIR}/${BINDIR}/skill
- rm -f ${DESTDIR}/${BINDIR}/skill ${DESTDIR}/${MANDIR}/skill.${MANSFX}
- rm -f ${DESTDIR}/${BINDIR}/snice ${DESTDIR}/${MANDIR}/snice.${MANSFX}
+# rm -f ${DESTDIR}/${BINDIR}/skill ${DESTDIR}/${MANDIR}/skill.${MANSFX}
+# rm -f ${DESTDIR}/${BINDIR}/snice ${DESTDIR}/${MANDIR}/snice.${MANSFX}
# install -c -g ${BINGRP} -m ${BINMOD} -s skill ${DESTDIR}/${BINDIR}
- cp skill ${DESTDIR}/${BINDIR}/skill
- strip ${DESTDIR}/${BINDIR}/skill
- chgrp ${BINGRP} ${DESTDIR}/${BINDIR}/skill
- chmod ${BINMOD} ${DESTDIR}/${BINDIR}/skill
- ln ${DESTDIR}/${BINDIR}/skill ${DESTDIR}/${BINDIR}/snice
+# cp skill ${DESTDIR}/${BINDIR}/skill
+# strip ${DESTDIR}/${BINDIR}/skill
+# chgrp ${BINGRP} ${DESTDIR}/${BINDIR}/skill
+# chmod ${BINMOD} ${DESTDIR}/${BINDIR}/skill
+# ln ${DESTDIR}/${BINDIR}/skill ${DESTDIR}/${BINDIR}/snice
#(SysV) filepriv -f dacread ${DESTDIR}/${BINDIR}/skill
# install -c -m 644 skill.1 ${DESTDIR}/${MANDIR}/skill.${MANSFX}
- cp skill.1 ${DESTDIR}/${MANDIR}/skill.${MANSFX}
- chmod 644 ${DESTDIR}/${MANDIR}/skill.${MANSFX}
- ln ${DESTDIR}/${MANDIR}/skill.${MANSFX}\
- ${DESTDIR}/${MANDIR}/snice.${MANSFX}
+# cp skill.1 ${DESTDIR}/${MANDIR}/skill.${MANSFX}
+# chmod 644 ${DESTDIR}/${MANDIR}/skill.${MANSFX}
+# ln ${DESTDIR}/${MANDIR}/skill.${MANSFX}\
+# ${DESTDIR}/${MANDIR}/snice.${MANSFX}
config Config: FRC
./Config

View File

@@ -0,0 +1,41 @@
$NetBSD: patch-ab,v 1.13 2007/10/27 02:52:23 obache Exp $
--- main.c.orig 2007-05-04 20:56:20.000000000 +0000
+++ main.c
@@ -44,8 +44,18 @@ const char *CopyrightVersion = "%s %s\n\
#include "conf.h"
#include <stdio.h>
+#ifdef __STDC__
+#include <stdlib.h>
+#endif
#include <errno.h>
#include <pwd.h>
+#ifdef __NetBSD__
+#include <sys/sysctl.h>
+#endif
+
+#ifndef KI_MAXCOMLEN /* Pre NetBSD/1.5. Missing on !NetBSD */
+#define KI_MAXCOMLEN 24
+#endif
/*
* Processes which could not be checked -- usually due to permission
@@ -137,7 +147,7 @@ main(argc, argv)
for (i = 0; i < CmdIndx; i++) {
cmdp = (CmdList + i);
if ((cmdp->flags & CMD_FLAG_EXACT) != 0 &&
- STREQU(CMD, cmdp->cmd.cmdstr))
+ STRNEQU(CMD, cmdp->cmd.cmdstr, KI_MAXCOMLEN-8))
break;
else if ((cmdp->flags & CMD_FLAG_REGEX) != 0 &&
RegexMatch(CMD, cmdp) != 0)
@@ -384,8 +394,6 @@ Usage(error)
char *
SysErr()
{
- extern int errno;
-
#if defined(HAS_STRERROR) || defined(_LP64)
char *se = strerror(errno);
return((se==NULL)? "unknown error": se);

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-ac,v 1.2 2007/10/28 04:16:15 obache Exp $
--- argparse.c.orig 2005-04-06 23:43:29.000000000 +0000
+++ argparse.c
@@ -50,6 +50,10 @@ int Aflag = 0, Fflag = 0, Iflag = 0, Nfl
*/
int SigsPerLine = 16;
+#ifdef __STDC__
+#include <stdlib.h>
+#endif
+
/*
* ArgParse(argc, argv)
*

View File

@@ -0,0 +1,12 @@
$NetBSD: patch-ad,v 1.1 2008/08/02 22:35:03 dholland Exp $
--- machdep/nbsd-44.c~ 2005-04-06 19:49:35.000000000 -0400
+++ machdep/nbsd-44.c 2008-08-02 18:35:05.000000000 -0400
@@ -36,6 +36,7 @@
#include <signal.h>
#include <stdlib.h>
#include <ctype.h>
+#include <errno.h>
#include <sys/resource.h>