head	1.4;
access;
symbols
	PRE_XORG_7:1.3
	RELEASE_4_EOL:1.3
	RELEASE_6_2_0:1.3
	RELEASE_6_1_0:1.3
	RELEASE_5_5_0:1.3
	RELEASE_6_0_0:1.3
	RELEASE_5_4_0:1.3
	RELEASE_4_11_0:1.3
	RELEASE_5_3_0:1.3
	RELEASE_4_10_0:1.3
	RELEASE_5_2_1:1.3
	RELEASE_5_2_0:1.3
	RELEASE_4_9_0:1.3
	RELEASE_5_1_0:1.3
	RELEASE_4_8_0:1.3
	RELEASE_5_0_0:1.3
	RELEASE_4_7_0:1.3
	RELEASE_4_6_2:1.3
	RELEASE_4_6_1:1.3
	RELEASE_4_6_0:1.3
	RELEASE_5_0_DP1:1.3
	RELEASE_4_5_0:1.3
	RELEASE_4_4_0:1.3
	RELEASE_4_3_0:1.2;
locks; strict;
comment	@# @;


1.4
date	2007.06.04.15.01.34;	author gabor;	state dead;
branches;
next	1.3;

1.3
date	2001.08.21.15.29.13;	author brian;	state Exp;
branches;
next	1.2;

1.2
date	2001.04.10.10.52.20;	author lioux;	state Exp;
branches;
next	1.1;

1.1
date	2001.04.07.02.13.54;	author will;	state Exp;
branches;
next	;


desc
@@


1.4
log
@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
@
text
@#!/bin/sh
# $FreeBSD: ports/security/op/pkg-install,v 1.3 2001/08/21 15:29:13 brian Exp $

[ $# != 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
@


1.3
log
@Tidy things up a bit

Submitted by: Cyrille Lefevre <clefevre@@citeweb.net> (maintainer)
@
text
@d2 1
a2 1
# $FreeBSD: ports/security/op/pkg-install,v 1.2 2001/04/10 10:52:20 lioux Exp $
@


1.2
log
@- Update maintainer email
- Replace some harcoded paths with tweakable variables
- Some naming conventions changes around Makefile
- Some additional patching
- Add some hackery to bypass fetch problems with
  coast sites
- Add $FreeBSD$ to PKGINSTALL and PLIST
- Deploy PORTDOCS technology inside PLIST

Discussed and worked with:	maintainer
@
text
@d2 1
a2 1
# $FreeBSD$
a8 1
SAMP_DIR=${CONF_DIR}
a14 1
SAMP_FILE=${CONF_FILE}
d21 1
a21 1
case $ACTION in
d28 1
a28 1
			${SAMP_DIR}/${SAMP_FILE}${SAMP_SUFX} \
d34 1
a34 1
	if ${CMP} -s ${SAMP_DIR}/${SAMP_FILE}${SAMP_SUFX} \
a42 1
	exit 0
a47 1

@


1.1
log
@Add op 1.11, a program to allow others to run commands as root (like
sudo but different).  Hey, CERIAS @@ Purdue wrote this.  Cool.

PR:		24771
Submitted by:	Cyrille Lefevre <clefevre@@citeweb.net>
@
text
@d2 1
@

