head	1.21;
access;
symbols
	RELEASE_8_3_0:1.20
	RELEASE_9_0_0:1.20
	RELEASE_7_4_0:1.20
	RELEASE_8_2_0:1.20
	RELEASE_6_EOL:1.20
	RELEASE_8_1_0:1.20
	RELEASE_7_3_0:1.20
	RELEASE_8_0_0:1.20
	RELEASE_7_2_0:1.20
	PRE_XORG_7:1.17
	RELEASE_4_EOL:1.16
	RELEASE_6_2_0:1.16
	RELEASE_6_1_0:1.15
	RELEASE_5_5_0:1.15
	RELEASE_6_0_0:1.14
	RELEASE_5_4_0:1.14
	RELEASE_4_11_0:1.13
	RELEASE_5_3_0:1.13
	RELEASE_4_10_0:1.13
	RELEASE_5_2_1:1.12
	RELEASE_5_2_0:1.12
	RELEASE_4_9_0:1.10
	RELEASE_5_1_0:1.9
	RELEASE_4_8_0:1.9
	RELEASE_5_0_0:1.8
	RELEASE_4_7_0:1.8
	RELEASE_4_6_2:1.7
	RELEASE_4_6_1:1.7
	RELEASE_4_6_0:1.7
	RELEASE_5_0_DP1:1.6
	RELEASE_4_5_0:1.6
	RELEASE_4_4_0:1.5
	RELEASE_4_3_0:1.2;
locks; strict;
comment	@# @;


1.21
date	2012.11.17.06.01.09;	author svnexp;	state Exp;
branches;
next	1.20;

1.20
date	2009.03.27.09.53.31;	author ehaupt;	state Exp;
branches;
next	1.19;

1.19
date	2008.09.30.14.03.37;	author ehaupt;	state Exp;
branches;
next	1.18;

1.18
date	2007.06.04.15.01.34;	author gabor;	state dead;
branches;
next	1.17;

1.17
date	2007.02.27.06.34.06;	author linimon;	state Exp;
branches;
next	1.16;

1.16
date	2006.05.13.04.15.09;	author edwin;	state Exp;
branches;
next	1.15;

1.15
date	2005.09.01.07.18.37;	author linimon;	state Exp;
branches;
next	1.14;

1.14
date	2005.03.03.19.52.30;	author pav;	state Exp;
branches;
next	1.13;

1.13
date	2003.12.23.21.54.31;	author krion;	state Exp;
branches;
next	1.12;

1.12
date	2003.10.15.13.03.15;	author edwin;	state Exp;
branches;
next	1.11;

1.11
date	2003.10.15.04.55.42;	author kris;	state Exp;
branches;
next	1.10;

1.10
date	2003.09.09.15.52.56;	author osa;	state Exp;
branches;
next	1.9;

1.9
date	2003.02.21.13.26.48;	author knu;	state Exp;
branches;
next	1.8;

1.8
date	2002.06.24.04.44.16;	author ijliao;	state Exp;
branches;
next	1.7;

1.7
date	2002.05.17.22.22.53;	author sada;	state Exp;
branches;
next	1.6;

1.6
date	2002.01.17.23.13.37;	author dwcjr;	state Exp;
branches;
next	1.5;

1.5
date	2001.08.21.17.56.15;	author brian;	state Exp;
branches;
next	1.4;

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

1.3
date	2001.06.09.12.59.34;	author roam;	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.21
log
@Switch exporter over
@
text
@# New ports collection makefile for:	op
# Date created:				30 Sep 2008
# Whom:					Emanuel Haupt <ehaupt@@FreeBSD.org>
#
# $FreeBSD: head/security/op/Makefile 300897 2012-07-14 14:29:18Z beat $
#

PORTNAME=	op
PORTVERSION=	1.32
CATEGORIES=	security
MASTER_SITES=	http://swapoff.org/files/op/ \
		CRITICAL

MAINTAINER=	ehaupt@@FreeBSD.org
COMMENT=	Controlled privilege escalation tool

GNU_CONFIGURE=	yes
MAKE_JOBS_SAFE=	yes

MAN1=		op.1

post-install:
	${MKDIR} ${PREFIX}/etc/op.d
	${INSTALL_DATA} -m 0600 ${WRKSRC}/${PORTNAME}.conf \
		${PREFIX}/etc/${PORTNAME}.conf.sample

.if !exists(${PREFIX}/etc/${PORTNAME}.conf)
	${INSTALL_DATA} -m 0600 ${WRKSRC}/${PORTNAME}.conf ${PREFIX}/etc
.endif

.include <bsd.port.mk>
@


1.20
log
@Mark MAKE_JOBS_SAFE
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.19
log
@Add op 1.32, controlled privilege escalation tool
@
text
@d18 1
@


1.18
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
@d1 3
a3 3
# New ports collection makefile for:    op
# Date created:         Monday 29 January 2001
# Whom:                 Cyrille Lefevre <clefevre@@citeweb.net>
d5 1
a5 1
# $FreeBSD: ports/security/op/Makefile,v 1.17 2007/02/27 06:34:06 linimon Exp $
d9 1
a9 2
PORTVERSION=	1.11
PORTREVISION=	4
d11 2
a12 1
MASTER_SITES=	# disappeared
d14 2
a15 2
MAINTAINER=	ports@@FreeBSD.org
COMMENT=	Allow others to run commands as root (like sudo but different)
d17 1
a17 2
DEPRECATED=		no longer available from any mastersite
EXPIRATION_DATE=	2007-04-27
d19 1
a19 56
# 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
#
d21 4
a24 1
post-install: install-samp-files install-conf-file install-doc-files
d26 2
a27 14
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
d30 1
a30 1
.include <bsd.port.post.mk>
@


1.17
log
@Reset inactive maintainer; mark this as deprecated since it is no longer
fetchable from any mastersite.

Hat:		portmgr
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.16
log
@Remove USE_REINPLACE from all categories starting with S
@
text
@d12 1
a12 4
MASTER_SITES=	ftp://ftp.cerias.purdue.edu/pub/tools/%SUBDIR%/ \
		ftp://ftp.hacktic.nl/pub/security/coast.cs.purdue.edu/%SUBDIR%/ \
		ftp://ftp.nask.pl/pub/mirror/coast.cs.purdue.edu/%SUBDIR%/
MASTER_SITE_SUBDIR=	unix/sysutils/${PORTNAME}
d14 1
a14 1
MAINTAINER=	scs@@umich.edu
d17 3
@


1.15
log
@Remove mastersite which has gone away.
@
text
@a22 1
USE_REINPLACE=	yes
@


1.14
log
@- Put lex.l back under #if 0

PR:		ports/77394
Submitted by:	Christopher Sean Hilton <chris@@vindaloo.com>
Approved by:	maintainer timeout (19 days)
@
text
@a12 1
		ftp://ftp.rge.com/pub/security/cerias/tools/%SUBDIR%/ \
@


1.13
log
@- Give maintainership to Steve Simmons <scs@@umich.edu>
- Setgid added in addition to setgroups

PR:		60516
Submitted by:	maintainer
@
text
@d10 1
a10 1
PORTREVISION=	3
@


1.12
log
@unbreak port by eliminating varargs.h
informed maintainer.
@
text
@d10 1
a10 1
PORTREVISION=	2
d18 1
a18 1
MAINTAINER=	cyrille.lefevre@@laposte.net
@


1.11
log
@BROKEN on 5.x: does not compile
@
text
@d10 1
a10 1
PORTREVISION=	1
a51 4

.if ${OSVERSION} >= 501000
BROKEN=		"Does not compile"
.endif
@


1.10
log
@Security update with following changes:
Makefile: PLIST_SUB added (CONF_DIR), fix ${NOPORTDOCS}, bump ${PORTREVISION}
pkg-plist: etc -> %%CONF_DIR%%, utilize ${DOCSDIR}
Setuid misplaced (security fix) for main.c
Thanks to cyrill@@econ.krasnoyarsk.su for submitting this patch.

Also makes portlint happy.

Submitted by:	Clement Laforet <sheepkiller@@cultdeadsheep.org> (maintainer)
PR:		56614
@
text
@d51 6
d101 1
a101 1
.include <bsd.port.mk>
@


1.9
log
@De-pkg-comment.
@
text
@d10 1
d14 1
a14 1
	ftp://ftp.hacktic.nl/pub/security/coast.cs.purdue.edu/%SUBDIR%/ \
d33 2
d88 1
a88 1
.if !defined(NOPORTSDOC)
d90 2
a91 2
.for file in ${DOC_FILES}
	@@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}/${file}
@


1.8
log
@${PERL} -> ${REINPLACE_CMD}

PR:		39746
Submitted by:	Cyrille Lefevre <cyrille.lefevre@@laposte.net> (maintainer)
@
text
@d18 1
@


1.7
log
@honor CFLAGS.
PR:	ports/37112
Submitted by:	maintainer
@
text
@d22 1
d61 2
a62 2
	@@${PERL} -pi.fbsd \
		-e 's|(install)|$$1 -c| if (!/:/);s|CFLAGS=|CFLAGS+=|' \
d66 2
a67 2
	@@${PERL} -pi.fbsd \
		-e 's|^|#| if (!/^#|DEFAULT|MAGIC/);s|/usr/ucb:||' \
@


1.6
log
@Update maintainer's email address
Update a few MASTER_SITES

PR:		34012
Submitted by:	maintainer
@
text
@d60 2
a61 1
	@@${PERL} -pi.fbsd -e 's|(install)|$$1 -c| if (!/:/);' \
d65 2
a66 1
	@@${PERL} -pi.fbsd -e 's|^|#| if (!/^#|DEFAULT|MAGIC/);s|/usr/ucb:||;' \
@


1.5
log
@Forced commit to describe the last change in better detail:

	ftp.cso.uiuc.edu deleted (no more a coast mirror).
	maintainer address change.
	extra unneeded variables cleanup.
	fetch hack deleted.
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/op/Makefile,v 1.4 2001/08/21 15:29:13 brian Exp $
d17 1
a17 1
MAINTAINER=	clefevre@@citeweb.net
@


1.4
log
@Tidy things up a bit

Submitted by: Cyrille Lefevre <clefevre@@citeweb.net> (maintainer)
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/op/Makefile,v 1.3 2001/06/09 12:59:34 roam Exp $
@


1.3
log
@Change maintainer's email address: clefevre@@poboxes.com -> clefevre@@redirect.to

PR:		27867
Submitted by:	maintainer
@
text
@d5 1
a5 1
# $FreeBSD$
a11 1
		ftp://ftp.cso.uiuc.edu/pub/security/coast/%SUBDIR%/ \
d13 1
a13 1
		ftp://ftp.hacktic.nl/pub/security/coast.cs.purdue.edu/%SUBDIR%/ \
d17 1
a17 1
MAINTAINER=	clefevre@@redirect.to
a18 1
#
a28 1
PLIST_SUB=	DOCDIR="${DOC_SUBDIR}"
a33 1
#
a39 1

a40 3
SAMP_DIR=	${CONF_DIR}
DOC_SUBDIR=	share/doc/${PKGBASE}
DOC_DIR=	${PREFIX}/${DOC_SUBDIR}
a42 1
SAMP_FILE=	${CONF_FILE}
a45 1
#
a53 1
#
a66 1
#
d74 1
a74 1
		${SAMP_DIR}/${SAMP_FILE}${SAMP_SUFX}
d82 1
a82 1
	@@${MKDIR} ${DOC_DIR}
d84 1
a84 1
	@@${INSTALL_DATA} ${WRKSRC}/${file} ${DOC_DIR}/${file}
d88 1
a88 19
.include <bsd.port.pre.mk>

# some sketchy hackery
FETCH_CMD_INTERIOR!=	${ECHO} ${FETCH_CMD} | ${SED} -E -e "s!(.+/)?fetch(.+/|\s+.*)?!!"

# only enable the hack if FETCH_CMD is fetch
.if ! ${FETCH_CMD_INTERIOR}
# coast sites dislike $USER@@localhost...
FETCH_ENV=	FTP_PASSWORD=${FTP_PASSWORD}

AWK?=		awk
IFCONFIG?=	ifconfig

# well, this is a hack to make fetch happy on coast sites, ugh!
HOSTIPADDR=	${IFCONFIG} | ${AWK} '/inet /{print $$2; exit}'
FTP_PASSWORD?=	${USER}@@`${HOSTIPADDR}`
.endif

.include <bsd.port.post.mk>
@


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
@d5 1
a5 1
# $FreeBSD: ports/security/op/Makefile,v 1.1 2001/04/07 02:13:54 will Exp $
d18 1
a18 1
MAINTAINER=	clefevre@@poboxes.com
@


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
@d5 1
a5 1
# $FreeBSD$
d18 1
a18 1
MAINTAINER=	clefevre@@citeweb.net
d21 1
a21 1
# Clobal variables
d25 2
a26 2
MAKE_ARGS+=	BASE="${PREFIX}" \
		OPTS='-Dbsdi -DOP_ACCESS=\"${PREFIX}/etc/op.access\"' \
d31 1
d41 2
d45 4
a48 2
SAMP_DIR=	${PREFIX}/etc
DOC_DIR=	${PREFIX}/share/doc/${PKGBASE}
a54 2
CO?=		co

d68 1
a68 1
post-patch: patch-install patch-conf-file
d70 2
a71 2
patch-install:
	@@${PERL} -pi.fbsd -e 's/(install)/$$1 -c/ if (!/:/);' \
d75 1
a75 1
	@@${PERL} -pi.fbsd -e 's/^/#/ if (!/^#|DEFAULT|MAGIC/);' \
d100 19
a118 1
.include <bsd.port.mk>
@

