2001-04-06 22:13:55 -04:00
|
|
|
# New ports collection makefile for: op
|
|
|
|
# Date created: Monday 29 January 2001
|
|
|
|
# Whom: Cyrille Lefevre <clefevre@citeweb.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= op
|
|
|
|
PORTVERSION= 1.11
|
2005-03-03 14:52:30 -05:00
|
|
|
PORTREVISION= 4
|
2001-04-06 22:13:55 -04:00
|
|
|
CATEGORIES= security
|
|
|
|
MASTER_SITES= ftp://ftp.cerias.purdue.edu/pub/tools/%SUBDIR%/ \
|
2003-09-09 11:52:56 -04:00
|
|
|
ftp://ftp.hacktic.nl/pub/security/coast.cs.purdue.edu/%SUBDIR%/ \
|
2001-04-06 22:13:55 -04:00
|
|
|
ftp://ftp.nask.pl/pub/mirror/coast.cs.purdue.edu/%SUBDIR%/
|
|
|
|
MASTER_SITE_SUBDIR= unix/sysutils/${PORTNAME}
|
|
|
|
|
2003-12-23 16:54:31 -05:00
|
|
|
MAINTAINER= scs@umich.edu
|
2003-02-21 08:28:59 -05:00
|
|
|
COMMENT= Allow others to run commands as root (like sudo but different)
|
2001-04-06 22:13:55 -04:00
|
|
|
|
2001-04-10 06:52:20 -04:00
|
|
|
# Global variables
|
2001-04-06 22:13:55 -04:00
|
|
|
#
|
|
|
|
|
|
|
|
BINMODE= 4555
|
2001-04-10 06:52:20 -04:00
|
|
|
MAKE_ARGS= BASE="${PREFIX}" \
|
|
|
|
OPTS='-Dbsdi -DOP_ACCESS=\"${CONF_DIR}/${CONF_FILE}\"' \
|
2001-04-06 22:13:55 -04:00
|
|
|
LIBS='-ll -lcrypt' \
|
|
|
|
BINOWN=${BINOWN} BINGRP=${BINGRP} BINMODE=${BINMODE} \
|
|
|
|
MANOWN=${MANOWN} MANGRP=${MANGRP} MANMODE=${MANMODE}
|
|
|
|
ALL_TARGET= ${PORTNAME}
|
|
|
|
|
2003-09-09 11:52:56 -04:00
|
|
|
PLIST_SUB= CONF_DIR="${CONF_DIR:S,^${PREFIX}/,,}"
|
|
|
|
|
2001-04-06 22:13:55 -04:00
|
|
|
MAN8= op.8
|
|
|
|
|
|
|
|
PKGDEINSTALL= ${PKGINSTALL}
|
|
|
|
|
|
|
|
# Local variables
|
|
|
|
#
|
|
|
|
|
2001-04-10 06:52:20 -04:00
|
|
|
CO?= co
|
|
|
|
|
2001-04-06 22:13:55 -04:00
|
|
|
RCS_SUBDIR= RCS
|
2001-04-10 06:52:20 -04:00
|
|
|
CONF_DIR= ${PREFIX}/etc
|
2001-04-06 22:13:55 -04:00
|
|
|
|
|
|
|
CONF_FILE= op.access
|
|
|
|
SAMP_SUFX= .sample
|
|
|
|
DOC_FILES= README op.paper
|
|
|
|
|
2003-10-15 00:59:50 -04:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2001-04-06 22:13:55 -04:00
|
|
|
# Post-extract
|
|
|
|
#
|
|
|
|
|
|
|
|
post-extract: checkout-files
|
|
|
|
|
|
|
|
checkout-files:
|
|
|
|
@cd ${WRKSRC} && ${CO} -q ${RCS_SUBDIR}/*
|
|
|
|
|
|
|
|
# Post-patch
|
|
|
|
#
|
|
|
|
|
2001-04-10 06:52:20 -04:00
|
|
|
post-patch: patch-makefile patch-conf-file
|
2001-04-06 22:13:55 -04:00
|
|
|
|
2001-04-10 06:52:20 -04:00
|
|
|
patch-makefile:
|
2002-06-24 00:44:17 -04:00
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
-e '/:/!s|\(install\)|\1 -c|;s|CFLAGS=|CFLAGS+=|' \
|
2001-04-06 22:13:55 -04:00
|
|
|
${WRKSRC}/Makefile
|
|
|
|
|
|
|
|
patch-conf-file:
|
2002-06-24 00:44:17 -04:00
|
|
|
@${REINPLACE_CMD} -E \
|
|
|
|
-e '/^#|DEFAULT|MAGIC/!s|^|#|;s|/usr/ucb:||' \
|
2001-04-06 22:13:55 -04:00
|
|
|
${WRKSRC}/${CONF_FILE}
|
|
|
|
|
|
|
|
# Post-install
|
|
|
|
#
|
|
|
|
|
|
|
|
post-install: install-samp-files install-conf-file install-doc-files
|
|
|
|
|
|
|
|
install-samp-files:
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${CONF_FILE} \
|
2001-08-21 11:29:13 -04:00
|
|
|
${CONF_DIR}/${CONF_FILE}${SAMP_SUFX}
|
2001-04-06 22:13:55 -04:00
|
|
|
|
|
|
|
install-conf-file:
|
|
|
|
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} \
|
|
|
|
${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
|
|
|
|
|
|
|
install-doc-files:
|
2003-09-09 11:52:56 -04:00
|
|
|
.if !defined(NOPORTDOCS)
|
2001-08-21 11:29:13 -04:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2003-09-09 11:52:56 -04:00
|
|
|
.for f in ${DOC_FILES}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
|
2001-04-06 22:13:55 -04:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2003-10-15 00:59:50 -04:00
|
|
|
.include <bsd.port.post.mk>
|