aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/open/Makefile
blob: a2c727543af23fc251854cd117a910d78550bbf9 (plain) (blame)
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
34
35
36
37
# New ports collection makefile for:    open
# Date created:             10 Feb 2004
# Whom:                 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
MAN1=       open.1
PLIST_FILES=    bin/open
OPTIONS=    SETUID "Install setuid open binary" off
PKGMESSAGE= ${WRKDIR}/pkg-message

.include <bsd.port.pre.mk>

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/open ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/open.1 ${PREFIX}/man/man1
.if defined(WITH_SETUID)
    ${CHMOD} u+s ${PREFIX}/bin/open
.else
    @${SED} -e 's|%%PREFIX%%|${PREFIX}|g' \
        ${FILESDIR}/pkg-message.in > ${PKGMESSAGE}
    @${CAT} ${PKGMESSAGE}
.endif

.include <bsd.port.post.mk>