aboutsummaryrefslogtreecommitdiff
path: root/security/op
diff options
context:
space:
mode:
authorGabor Kovesdan <gabor@FreeBSD.org>2007-06-04 15:01:37 +0000
committerGabor Kovesdan <gabor@FreeBSD.org>2007-06-04 15:01:37 +0000
commita5a79ff2eb02a4d87fb1bf524f7336eab2f9fbff (patch)
treea13a57b4e26d656ceb1da7cde0dfe17b5628920c /security/op
parentab1e846e494f36f2399bcd78cc94df0190a805d1 (diff)
downloadports-a5a79ff2eb02a4d87fb1bf524f7336eab2f9fbff.tar.gz
ports-a5a79ff2eb02a4d87fb1bf524f7336eab2f9fbff.zip
Remove expired ports:
2007-04-27 security/op: no longer available from any mastersite 2007-05-15 shells/bash2: Old, unmaintained version, use shells/bash instead 2007-05-19 sysutils/xperfmon: irrelevant for supported FreeBSD releases
Notes
Notes: svn path=/head/; revision=192717
Diffstat (limited to 'security/op')
-rw-r--r--security/op/Makefile95
-rw-r--r--security/op/distinfo3
-rw-r--r--security/op/files/patch-defs.h9
-rw-r--r--security/op/files/patch-lex.l33
-rw-r--r--security/op/files/patch-main.c100
-rw-r--r--security/op/pkg-descr5
-rw-r--r--security/op/pkg-install50
-rw-r--r--security/op/pkg-plist6
8 files changed, 0 insertions, 301 deletions
diff --git a/security/op/Makefile b/security/op/Makefile
deleted file mode 100644
index c94a4c39dfcd..000000000000
--- a/security/op/Makefile
+++ /dev/null
@@ -1,95 +0,0 @@
-# New ports collection makefile for: op
-# Date created: Monday 29 January 2001
-# Whom: Cyrille Lefevre <clefevre@citeweb.net>
-#
-# $FreeBSD$
-#
-
-PORTNAME= op
-PORTVERSION= 1.11
-PORTREVISION= 4
-CATEGORIES= security
-MASTER_SITES= # disappeared
-
-MAINTAINER= ports@FreeBSD.org
-COMMENT= Allow others to run commands as root (like sudo but different)
-
-DEPRECATED= no longer available from any mastersite
-EXPIRATION_DATE= 2007-04-27
-
-# Global variables
-#
-
-BINMODE= 4555
-MAKE_ARGS= BASE="${PREFIX}" \
- OPTS='-Dbsdi -DOP_ACCESS=\"${CONF_DIR}/${CONF_FILE}\"' \
- LIBS='-ll -lcrypt' \
- BINOWN=${BINOWN} BINGRP=${BINGRP} BINMODE=${BINMODE} \
- MANOWN=${MANOWN} MANGRP=${MANGRP} MANMODE=${MANMODE}
-ALL_TARGET= ${PORTNAME}
-
-PLIST_SUB= CONF_DIR="${CONF_DIR:S,^${PREFIX}/,,}"
-
-MAN8= op.8
-
-PKGDEINSTALL= ${PKGINSTALL}
-
-# Local variables
-#
-
-CO?= co
-
-RCS_SUBDIR= RCS
-CONF_DIR= ${PREFIX}/etc
-
-CONF_FILE= op.access
-SAMP_SUFX= .sample
-DOC_FILES= README op.paper
-
-.include <bsd.port.pre.mk>
-
-# Post-extract
-#
-
-post-extract: checkout-files
-
-checkout-files:
- @cd ${WRKSRC} && ${CO} -q ${RCS_SUBDIR}/*
-
-# Post-patch
-#
-
-post-patch: patch-makefile patch-conf-file
-
-patch-makefile:
- @${REINPLACE_CMD} \
- -e '/:/!s|\(install\)|\1 -c|;s|CFLAGS=|CFLAGS+=|' \
- ${WRKSRC}/Makefile
-
-patch-conf-file:
- @${REINPLACE_CMD} -E \
- -e '/^#|DEFAULT|MAGIC/!s|^|#|;s|/usr/ucb:||' \
- ${WRKSRC}/${CONF_FILE}
-
-# Post-install
-#
-
-post-install: install-samp-files install-conf-file install-doc-files
-
-install-samp-files:
- @${INSTALL_DATA} ${WRKSRC}/${CONF_FILE} \
- ${CONF_DIR}/${CONF_FILE}${SAMP_SUFX}
-
-install-conf-file:
- @${SETENV} PKG_PREFIX=${PREFIX} ${SH} \
- ${PKGINSTALL} ${PKGNAME} POST-INSTALL
-
-install-doc-files:
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
-.for f in ${DOC_FILES}
- @${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
-.endfor
-.endif
-
-.include <bsd.port.post.mk>
diff --git a/security/op/distinfo b/security/op/distinfo
deleted file mode 100644
index 1fd4e68aebf3..000000000000
--- a/security/op/distinfo
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 (op-1.11.tar.gz) = 9790452f1adfe08e08ea2fa0d015b1b3
-SHA256 (op-1.11.tar.gz) = f6478cc1a5e13426802f6553d6ad28d26d232697bbfeace5e7741e7bbea43408
-SIZE (op-1.11.tar.gz) = 49217
diff --git a/security/op/files/patch-defs.h b/security/op/files/patch-defs.h
deleted file mode 100644
index a953a8d8c372..000000000000
--- a/security/op/files/patch-defs.h
+++ /dev/null
@@ -1,9 +0,0 @@
---- defs.h.orig Sun Nov 23 01:11:52 1997
-+++ defs.h Tue Jan 30 09:45:22 2001
-@@ -19,4 +19,6 @@
- extern cmd_t *First, *Build();
-
- #define MAXSTRLEN 256
-+#ifndef OP_ACCESS
- #define OP_ACCESS "/usr/local/etc/op.access"
-+#endif
diff --git a/security/op/files/patch-lex.l b/security/op/files/patch-lex.l
deleted file mode 100644
index 293eb09be96f..000000000000
--- a/security/op/files/patch-lex.l
+++ /dev/null
@@ -1,33 +0,0 @@
---- lex.l.orig Thu Mar 3 20:47:59 2005
-+++ lex.l Thu Mar 3 20:49:11 2005
-@@ -10,10 +10,11 @@
- /* +-------------------------------------------------------------------+ */
-
- #include <stdio.h>
--#include <varargs.h>
-+#include <stdarg.h>
- #include <ctype.h>
- #include "defs.h"
-
-+static int addarg();
- static cmd_t *newcmd();
- char *savestr();
-
-@@ -47,15 +48,12 @@
- #include <sys/stat.h>
- #include <syslog.h>
-
--msg(va_alist)
-- va_dcl
-+msg (char *s, ...)
- {
- #if 0
- va_list ap;
-- char *s;
-
-- va_start(ap);
-- s = va_arg(ap, char *);
-+ va_start(ap,s);
- fprintf(stderr,"line %d: ",yyline);
- vfprintf(stderr, s, ap);
- fputc('\n', stderr);
diff --git a/security/op/files/patch-main.c b/security/op/files/patch-main.c
deleted file mode 100644
index a7bff8d77e9e..000000000000
--- a/security/op/files/patch-main.c
+++ /dev/null
@@ -1,100 +0,0 @@
---- main.c.orig Mon Dec 22 23:26:47 2003
-+++ main.c Mon Dec 22 23:27:23 2003
-@@ -9,7 +9,7 @@
- /* +-------------------------------------------------------------------+ */
-
- #include <stdio.h>
--#include <varargs.h>
-+#include <stdarg.h>
- #include <syslog.h>
- #include <pwd.h>
- #include <grp.h>
-@@ -51,6 +51,7 @@
- extern char *getpass(), *crypt();
-
- char *Progname;
-+int fatal(char *s, ...);
- char *format_cmd();
- char *GetCode();
- cmd_t *Find();
-@@ -170,14 +171,11 @@
- return Go(new, num, argc, argv);
- }
-
--fatal(va_alist)
-- va_dcl
-+fatal(char *s,...)
- {
- va_list ap;
-- char *s;
-
-- va_start(ap);
-- s = va_arg(ap, char *);
-+ va_start(ap,s);
- vfprintf(stderr, s, ap);
- fputc('\n', stderr);
- va_end(ap);
-@@ -448,35 +446,28 @@
- char *cp, *np;
- struct passwd *pw;
- struct group *gr;
-- int ngroups, gidset[256];
-+ int ngroups = 0, gidset[256];
- int curenv = 0, curarg = 0;
- char *new_envp[MAXENV];
- char *new_argv[MAXARG];
- char str[MAXSTRLEN], buf[4*MAXSTRLEN];
-
-- if ((cp = FindOpt(cmd, "uid")) == NULL) {
-- if (setuid(0) < 0)
-- fatal("Unable to set uid to default", cp);
-- } else {
-- if ((pw = getpwnam(cp)) == NULL) {
-- if (setuid(atoi(cp)) < 0)
-- fatal("Unable to set uid to %s", cp);
-- }
-- if (setuid(pw->pw_uid) < 0)
-- fatal("Unable to set uid to %s", cp);
-- }
--
- if ((cp = FindOpt(cmd, "gid")) == NULL) {
-- ; /* don't have a default */
-+ if (setgid(0) < 0)
-+ fatal("Unable to set gid to default", cp);
- } else {
- for (cp=GetField(cp, str); cp!=NULL; cp=GetField(cp, str)) {
-- if ((gr = getgrnam(cp)) != NULL)
-+ if ((gr = getgrnam(str)) != NULL)
- gidset[ngroups++] = gr->gr_gid;
-+ else
-+ gidset[ngroups++] = atoi(str);
- }
- if (ngroups == 0)
-- fatal("Unable to setgid to any group");
-+ fatal("Unable to set gid to any group");
- if (setgroups(ngroups, gidset) < 0)
-- fatal("Set group failed");
-+ fatal("Unable to set auxiliary groups");
-+ if (setgid(gidset[0]) < 0)
-+ fatal("Unable to set gid to %s", gidset[0]);
- }
-
- if ((cp = FindOpt(cmd, "umask")) == NULL) {
-@@ -533,6 +524,17 @@
- new_envp[curenv++] = environ[i];
- }
- new_envp[curenv] = NULL;
-+
-+ if ((cp = FindOpt(cmd, "uid")) == NULL) {
-+ if (setuid(0) < 0)
-+ fatal("Unable to set uid to default", cp);
-+ } else {
-+ if ((pw = getpwnam(cp)) == NULL) {
-+ if (setuid(atoi(cp)) < 0)
-+ fatal("Unable to set uid to %s", cp);
-+ } else if (setuid(pw->pw_uid) < 0)
-+ fatal("Unable to set uid to %s", cp);
-+ }
-
- if (strcmp("MAGIC_SHELL", cmd->args[0]) == 0) {
- for (i = 0; environ[i] != NULL; i++)
diff --git a/security/op/pkg-descr b/security/op/pkg-descr
deleted file mode 100644
index c05d3cef1d1b..000000000000
--- a/security/op/pkg-descr
+++ /dev/null
@@ -1,5 +0,0 @@
-The `op' tool provides a flexible means for system administrators to
-grant trusted users access to certain root operations without having
-to give them full superuser privileges. Different sets of users
-may access different operations, and the security-related aspects
-of environment of each operation can be carefully controlled
diff --git a/security/op/pkg-install b/security/op/pkg-install
deleted file mode 100644
index 3a974814cbf3..000000000000
--- a/security/op/pkg-install
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/bin/sh
-# $FreeBSD$
-
-[ $# != 2 ] && exit 1
-PKGNAME=$1
-ACTION=$2
-
-CONF_DIR=${PKG_PREFIX}/etc
-
-CONF_FILE=op.access
-CONF_OWN=root
-CONF_GRP=wheel
-CONF_MODE=400
-
-SAMP_SUFX=.sample
-
-INSTALL=install
-CMP=cmp
-RM=rm
-
-case "$ACTION" in
-
-POST-INSTALL)
- if [ -f ${CONF_DIR}/${CONF_FILE} ]; then
- echo "$PKGNAME: Will not overwrite existing ${CONF_DIR}/${CONF_FILE} file."
- else
- ${INSTALL} -c -o ${CONF_OWN} -g ${CONF_GRP} -m ${CONF_MODE} \
- ${CONF_DIR}/${CONF_FILE}${SAMP_SUFX} \
- ${CONF_DIR}/${CONF_FILE}
- fi
- ;;
-
-DEINSTALL)
- if ${CMP} -s ${CONF_DIR}/${CONF_FILE}${SAMP_SUFX} \
- ${CONF_DIR}/${CONF_FILE}; then
- ${RM} -f ${CONF_DIR}/${CONF_FILE}
- else
- echo "$PKGNAME: Will not remove existing ${CONF_DIR}/${CONF_FILE} file."
- fi
- ;;
-
-PRE-INSTALL|POST-DEINSTALL)
- ;;
-
-*)
- exit 1
- ;;
-esac
-
-exit
diff --git a/security/op/pkg-plist b/security/op/pkg-plist
deleted file mode 100644
index a277e064f7ea..000000000000
--- a/security/op/pkg-plist
+++ /dev/null
@@ -1,6 +0,0 @@
-@comment $FreeBSD$
-bin/op
-%%CONF_DIR%%/op.access.sample
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/op.paper
-%%PORTDOCS%%@dirrm %%DOCSDIR%%