diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-04-28 20:01:07 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-04-28 20:01:07 +0000 |
commit | 27d44119e7e106f32a4b4b25539a57a35cc68823 (patch) | |
tree | 8462df47de7a523e2debd710ebc0516911e33a43 /sysutils/open | |
parent | f3184698839707db08f51b1529956b01b49932cf (diff) | |
download | ports-27d44119e7e106f32a4b4b25539a57a35cc68823.tar.gz ports-27d44119e7e106f32a4b4b25539a57a35cc68823.zip |
Notes
Diffstat (limited to 'sysutils/open')
-rw-r--r-- | sysutils/open/Makefile | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/sysutils/open/Makefile b/sysutils/open/Makefile index a2c727543af2..68cb2ec87fb4 100644 --- a/sysutils/open/Makefile +++ b/sysutils/open/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: open -# Date created: 10 Feb 2004 -# Whom: Max Khon <fjoe@FreeBSD.org> -# +# Created by: Max Khon <fjoe@FreeBSD.org> # $FreeBSD$ -# PORTNAME= open PORTVERSION= 1.4 @@ -18,15 +14,16 @@ COMMENT= Open opens a new vt and runs a command on it ALL_TARGET= open MAN1= open.1 PLIST_FILES= bin/open -OPTIONS= SETUID "Install setuid open binary" off +OPTIONS_DEFINE= SETUID +SETUID_DESC= Install setuid open binary PKGMESSAGE= ${WRKDIR}/pkg-message -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> do-install: ${INSTALL_PROGRAM} ${WRKSRC}/open ${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/open.1 ${PREFIX}/man/man1 -.if defined(WITH_SETUID) +.if ${PORT_OPTIONS:MSETUID} ${CHMOD} u+s ${PREFIX}/bin/open .else @${SED} -e 's|%%PREFIX%%|${PREFIX}|g' \ @@ -34,4 +31,4 @@ do-install: @${CAT} ${PKGMESSAGE} .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> |