mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
33 lines
870 B
Makefile
33 lines
870 B
Makefile
# Created by: Max Khon <fjoe@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
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/ \
|
|
${MASTER_SITE_LOCAL:S^$^fjoe/^}
|
|
|
|
MAINTAINER= fjoe@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>
|