Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Feb 2001 04:49:46 +0100 (CET)
From:      Cyrille Lefevre <clefevre@citeweb.net>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/24771: New port: security/op - 1.11
Message-ID:  <200102010349.f113nkH34933@gits.dyndns.org>

next in thread | raw e-mail | index | archive | help

>Number:         24771
>Category:       ports
>Synopsis:       New port: security/op - 1.11
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 31 20:00:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Cyrille Lefevre
>Release:        FreeBSD 4.2-STABLE i386
>Organization:
ACME
>Environment:

FreeBSD gits 4.2-STABLE FreeBSD 4.2-STABLE #7: Tue Jan 23 07:33:34 CET 2001     root@gits:/disk2/4.x-stable/src/sys/compile/CUSTOM  i386

>Description:

	like sudo but different.

>How-To-Repeat:

	n/a

>Fix:


# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	op/pkg-descr
#	op/pkg-comment
#	op/pkg-install
#	op/distinfo
#	op/Makefile
#	op/pkg-plist
#	op/files/patch-defs.h
#
echo x - op/pkg-descr
sed 's/^X//' >op/pkg-descr << 'END-of-op/pkg-descr'
XThe `op' tool provides a flexible means for system administrators to
Xgrant trusted users access to certain root operations without having
Xto give them full superuser privileges. Different sets of users
Xmay access different operations, and the security-related aspects
Xof environment of each operation can be carefully controlled
END-of-op/pkg-descr
echo x - op/pkg-comment
sed 's/^X//' >op/pkg-comment << 'END-of-op/pkg-comment'
XAllow others to run commands as root (like sudo but different)
END-of-op/pkg-comment
echo x - op/pkg-install
sed 's/^X//' >op/pkg-install << 'END-of-op/pkg-install'
X#!/bin/sh
X
X[ $# != 2 ] && exit 1
XPKGNAME=$1
XACTION=$2
X
XCONF_DIR=${PKG_PREFIX}/etc
XSAMP_DIR=${CONF_DIR}
X
XCONF_FILE=op.access
XCONF_OWN=root
XCONF_GRP=wheel
XCONF_MODE=400
X
XSAMP_FILE=${CONF_FILE}
XSAMP_SUFX=.sample
X
XINSTALL=install
XCMP=cmp
XRM=rm
X
Xcase $ACTION in
X
XPOST-INSTALL)
X	if [ -f ${CONF_DIR}/${CONF_FILE} ]; then
X		echo "$PKGNAME: Will not overwrite existing ${CONF_DIR}/${CONF_FILE} file."
X	else
X		${INSTALL} -c -o ${CONF_OWN} -g ${CONF_GRP} -m ${CONF_MODE} \
X			${SAMP_DIR}/${SAMP_FILE}${SAMP_SUFX} \
X			${CONF_DIR}/${CONF_FILE}
X	fi
X	;;
X
XDEINSTALL)
X	if ${CMP} -s ${SAMP_DIR}/${SAMP_FILE}${SAMP_SUFX} \
X		  ${CONF_DIR}/${CONF_FILE}; then
X		${RM} -f ${CONF_DIR}/${CONF_FILE}
X	else
X		echo "$PKGNAME: Will not remove existing ${CONF_DIR}/${CONF_FILE} file."
X	fi
X	;;
X
XPRE-INSTALL|POST-DEINSTALL)
X	exit 0
X	;;
X
X*)
X	exit 1
X	;;
X
Xesac
X
Xexit
END-of-op/pkg-install
echo x - op/distinfo
sed 's/^X//' >op/distinfo << 'END-of-op/distinfo'
XMD5 (op-1.11.tar.gz) = 9790452f1adfe08e08ea2fa0d015b1b3
END-of-op/distinfo
echo x - op/Makefile
sed 's/^X//' >op/Makefile << 'END-of-op/Makefile'
X# New ports collection makefile for:    op
X# Date created:         Monday 29 January 2001
X# Whom:                 Cyrille Lefevre <clefevre@citeweb.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	op
XPORTVERSION=	1.11
XCATEGORIES=	security
XMASTER_SITES=	ftp://coast.cs.purdue.edu/pub/tools/%SUBDIR%/ \
X		ftp://ftp.cerias.purdue.edu/pub/tools/%SUBDIR%/ \
X		ftp://ftp.cso.uiuc.edu/pub/security/coast/%SUBDIR%/ \
X		ftp://ftp.rge.com/pub/security/cerias/tools/%SUBDIR%/ \
X		ftp://ftp.hacktic.nl/pub/security/coast.cs.purdue.edu/%SUBDIR%/ \
X		ftp://ftp.nask.pl/pub/mirror/coast.cs.purdue.edu/%SUBDIR%/
XMASTER_SITE_SUBDIR=	unix/sysutils/${PORTNAME}
X
XFETCH_CMD=	ftp
X
XMAINTAINER=	clefevre@citeweb.net
X
X#
X# Clobal variables
X#
X
XBINMODE=	4555
XMAKE_ARGS+=	BASE="$${PREFIX}" \
X		OPTS='-Dbsdi -DOP_ACCESS=\"${PREFIX}/etc/op.access\"' \
X		LIBS='-ll -lcrypt' \
X		BINOWN=${BINOWN} BINGRP=${BINGRP} BINMODE=${BINMODE} \
X		MANOWN=${MANOWN} MANGRP=${MANGRP} MANMODE=${MANMODE}
XALL_TARGET=	${PORTNAME}
X
XMAN8=		op.8
X
XPKGDEINSTALL=	${PKGINSTALL}
X
X#
X# Local variables
X#
X
XRCS_SUBDIR=	RCS
X
XSAMP_DIR=	${PREFIX}/etc
XDOC_DIR=	${PREFIX}/share/doc/${PKGBASE}
X
XCONF_FILE=	op.access
XSAMP_FILE=	${CONF_FILE}
XSAMP_SUFX=	.sample
XDOC_FILES=	README op.paper
X
XCO?=		co
X
X#
X# Post-extract
X#
X
Xpost-extract: checkout-files
X
Xcheckout-files:
X	@cd ${WRKSRC} && ${CO} -q ${RCS_SUBDIR}/*
X
X#
X# Post-patch
X#
X
Xpost-patch: patch-install patch-conf-file
X
Xpatch-install:
X	@${PERL} -pi.fbsd -e 's/(install)/$$1 -c/ if (!/:/);' \
X		${WRKSRC}/Makefile
X
Xpatch-conf-file:
X	@${PERL} -pi.fbsd -e 's/^/#/ if (!/^#|DEFAULT|MAGIC/);' \
X		${WRKSRC}/${CONF_FILE}
X
X#
X# Post-install
X#
X
Xpost-install: install-samp-files install-conf-file install-doc-files
X
Xinstall-samp-files:
X	@${INSTALL_DATA} ${WRKSRC}/${CONF_FILE} \
X		${SAMP_DIR}/${SAMP_FILE}${SAMP_SUFX}
X
Xinstall-conf-file:
X	@${SETENV} PKG_PREFIX=${PREFIX} ${SH} \
X		${PKGINSTALL} ${PKGNAME} POST-INSTALL
X
Xinstall-doc-files:
X.if !defined(NOPORTSDOC)
X	@${MKDIR} ${DOC_DIR}
X.for file in ${DOC_FILES}
X	@${INSTALL_DATA} ${WRKSRC}/${file} ${DOC_DIR}/${file}
X.endfor
X.endif
X
X.include <bsd.port.mk>
END-of-op/Makefile
echo x - op/pkg-plist
sed 's/^X//' >op/pkg-plist << 'END-of-op/pkg-plist'
Xbin/op
Xetc/op.access.sample
Xshare/doc/op/README
Xshare/doc/op/op.paper
END-of-op/pkg-plist
echo x - op/files/patch-defs.h
sed 's/^X//' >op/files/patch-defs.h << 'END-of-op/files/patch-defs.h'
X--- defs.h.orig	Sun Nov 23 01:11:52 1997
X+++ defs.h	Tue Jan 30 09:45:22 2001
X@@ -19,4 +19,6 @@
X extern cmd_t	*First, *Build();
X 
X #define MAXSTRLEN	256
X+#ifndef OP_ACCESS
X #define OP_ACCESS	"/usr/local/etc/op.access"
X+#endif
END-of-op/files/patch-defs.h
exit


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102010349.f113nkH34933>