Index: head/audio/yell/Makefile =================================================================== --- head/audio/yell/Makefile (revision 303810) +++ head/audio/yell/Makefile (revision 303811) @@ -1,34 +1,32 @@ -# New ports collection makefile for: yell -# Date created: 10 August 2004 -# Whom: Emanuel Haupt -# # $FreeBSD$ -# PORTNAME= yell PORTVERSION= 1.1 CATEGORIES= audio MASTER_SITES= CRITICAL MAINTAINER= ehaupt@FreeBSD.org COMMENT= A command line pc speaker bell MAKE_JOBS_SAFE= yes PLIST_FILES= bin/yell ONLY_FOR_ARCHS= i386 amd64 -OPTIONS= SUID "Set the setuid bit on the yell program" off +OPTIONS_DEFINE= SUID +SUID_DESC= Use suid to allow execution as non root +.include + do-build: ${CC} ${WRKSRC}/yell.c ${CFLAGS} -o ${WRKSRC}/${PORTNAME} do-install: -.if defined(WITH_SUID) +.if ${PORT_OPTIONS:MSUID} ${INSTALL_PROGRAM} -m 4110 ${WRKSRC}/${PORTNAME} ${PREFIX}/bin .else ${INSTALL_PROGRAM} -m 0100 ${WRKSRC}/${PORTNAME} ${PREFIX}/bin .endif .include