blob: 14f77d1d6278515d79702a9c3453b677e09449f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$
PORTNAME= yell
PORTVERSION= 1.1
CATEGORIES= audio
MASTER_SITES= CRITICAL
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Command-line pc speaker bell
PLIST_FILES= bin/yell
ONLY_FOR_ARCHS= i386 amd64
OPTIONS_DEFINE= SUID
SUID_DESC= Use suid to allow execution as non root
.include <bsd.port.options.mk>
do-build:
${CC} ${WRKSRC}/yell.c ${CFLAGS} -o ${WRKSRC}/${PORTNAME}
do-install:
.if ${PORT_OPTIONS:MSUID}
${INSTALL_PROGRAM} -m 4110 ${WRKSRC}/${PORTNAME} \
${STAGEDIR}/${PREFIX}/bin
.else
${INSTALL_PROGRAM} -m 0100 ${WRKSRC}/${PORTNAME} \
${STAGEDIR}/${PREFIX}/bin
.endif
.include <bsd.port.mk>
|