blob: fcdc6dc1e1853655ad0d37bc0de65f860fb4d9ed (
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
|
# Created by: Max Khon <fjoe@FreeBSD.org>
PORTNAME= open
PORTVERSION= 1.4
CATEGORIES= sysutils
MASTER_SITES= ftp://ftp.hs-niederrhein.de/pub/linux/src/ \
ftp://ftp.uni-bremen.de/pub/mirrors/sunsite/utils/console/ \
LOCAL/fjoe
MAINTAINER= ports@FreeBSD.org
COMMENT= Open opens a new vt and runs a command on it
ALL_TARGET= open
PLIST_FILES= bin/open man/man1/open.1.gz
OPTIONS_DEFINE= SETUID
SETUID_DESC= Install setuid open binary
PKGMESSAGE= ${WRKDIR}/pkg-message
.include <bsd.port.options.mk>
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/open ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/open.1 ${STAGEDIR}${MANPREFIX}/man/man1
.if ${PORT_OPTIONS:MSETUID}
${CHMOD} u+s ${STAGEDIR}${PREFIX}/bin/open
.else
@${SED} -e 's|%%PREFIX%%|${PREFIX}|g' \
${FILESDIR}/pkg-message.in > ${PKGMESSAGE}
.endif
.include <bsd.port.mk>
|