FreeBSD Bugzilla – Attachment 12930 Details for
Bug 24771
New port: security/op - 1.11
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
file.shar
file.shar (text/plain), 4.78 KB, created by
clefevre
on 2001-02-01 04:00:01 UTC
(
hide
)
Description:
file.shar
Filename:
MIME Type:
Creator:
clefevre
Created:
2001-02-01 04:00:01 UTC
Size:
4.78 KB
patch
obsolete
># 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 24771
: 12930