2010-05-07 14:02:43 +02:00
|
|
|
# $NetBSD: Makefile,v 1.83 2010/05/07 12:02:43 jmmv Exp $
|
1997-10-11 23:47:45 +02:00
|
|
|
|
2006-10-29 16:08:27 +01:00
|
|
|
DISTNAME= screen-4.0.3
|
2010-05-07 14:02:43 +02:00
|
|
|
PKGREVISION= 4
|
2005-08-01 13:36:29 +02:00
|
|
|
CATEGORIES= misc shells
|
1999-08-10 11:18:01 +02:00
|
|
|
MASTER_SITES= ftp://ftp.uni-erlangen.de/pub/utilities/screen/ \
|
2007-05-24 01:46:08 +02:00
|
|
|
http://people.freebsd.org/~cy/distfiles/
|
|
|
|
# ${MASTER_SITE_GNU:=screen/}
|
1997-10-11 23:47:45 +02:00
|
|
|
|
2005-02-21 23:37:03 +01:00
|
|
|
MAINTAINER= kim@tac.nyc.ny.us
|
2000-09-01 16:39:51 +02:00
|
|
|
HOMEPAGE= http://www.gnu.org/software/screen/screen.html
|
2001-02-17 18:52:59 +01:00
|
|
|
COMMENT= Multi-screen window manager
|
2009-10-30 13:02:46 +01:00
|
|
|
LICENSE= gnu-gpl-v2
|
1997-10-11 23:47:45 +02:00
|
|
|
|
2004-01-05 12:53:39 +01:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
2006-11-02 18:59:37 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
2004-01-05 12:53:39 +01:00
|
|
|
|
2009-03-05 10:59:12 +01:00
|
|
|
.include "options.mk"
|
|
|
|
|
2004-10-12 01:46:15 +02:00
|
|
|
NOT_FOR_PLATFORM= Interix-*-* # user auth and username size fixes needed
|
|
|
|
|
2005-10-24 01:09:59 +02:00
|
|
|
PLIST_SUBST+= DISTNAME=${DISTNAME:Q}
|
1997-10-11 23:47:45 +02:00
|
|
|
|
2005-09-28 21:35:36 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2002-11-15 00:24:23 +01:00
|
|
|
CONFIGURE_ARGS+= --with-sys-screenrc=${PKG_SYSCONFDIR}/screenrc
|
|
|
|
CONFIGURE_ARGS+= --enable-telnet
|
2002-05-31 10:40:24 +02:00
|
|
|
|
2005-08-01 12:27:59 +02:00
|
|
|
PKG_SHELL= bin/screen
|
2007-05-24 01:49:24 +02:00
|
|
|
INFO_FILES= YES
|
2005-08-01 12:27:59 +02:00
|
|
|
|
2001-03-02 15:56:15 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2002-11-15 00:24:23 +01:00
|
|
|
|
2006-01-19 03:01:18 +01:00
|
|
|
SUBST_CLASSES+= paths
|
|
|
|
SUBST_FILES.paths= etc/etcscreenrc doc/screen.1
|
|
|
|
SUBST_SED.paths+= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g'
|
|
|
|
SUBST_SED.paths+= -e 's,@EXAMPLES@,${PREFIX}/share/examples/screen,g'
|
|
|
|
SUBST_STAGE.paths= post-patch
|
2002-12-23 14:13:02 +01:00
|
|
|
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST_VARS+= terminfo
|
2006-04-06 01:06:33 +02:00
|
|
|
.if (${OPSYS} == "SunOS") && exists(/usr/5bin/tic)
|
2006-09-21 22:23:38 +02:00
|
|
|
INSTALLATION_DIRS+= share/lib/terminfo
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.terminfo= yes
|
2006-04-06 01:06:33 +02:00
|
|
|
post-install: screen-terminfo
|
|
|
|
.endif
|
|
|
|
|
2008-03-17 20:03:35 +01:00
|
|
|
.if empty(UNPRIVILEGED:M[Yy][Ee][Ss])
|
|
|
|
SPECIAL_PERMS+= bin/${DISTNAME} ${SETUID_ROOT_PERMS}
|
|
|
|
.endif
|
|
|
|
|
1997-10-11 23:47:45 +02:00
|
|
|
post-install:
|
2006-11-02 18:59:37 +01:00
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/screen
|
2002-11-15 00:24:23 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/etcscreenrc \
|
2006-11-02 18:59:37 +01:00
|
|
|
${DESTDIR}${PREFIX}/share/examples/screen/etcscreenrc
|
2005-12-28 18:53:24 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/screenrc \
|
2006-11-02 18:59:37 +01:00
|
|
|
${DESTDIR}${PREFIX}/share/examples/screen/screenrc
|
2007-02-15 15:47:09 +01:00
|
|
|
.if !empty(UNPRIVILEGED:M[Yy][Ee][Ss])
|
|
|
|
chmod -s ${DESTDIR}${PREFIX}/bin/${DISTNAME}
|
|
|
|
.endif
|
2006-04-06 01:06:33 +02:00
|
|
|
|
|
|
|
.PHONY: screen-terminfo
|
|
|
|
screen-terminfo:
|
2002-11-15 00:24:23 +01:00
|
|
|
cd ${WRKSRC}/terminfo && \
|
2008-06-06 19:14:01 +02:00
|
|
|
${SETENV} TERMINFO=${DESTDIR}${PREFIX}/share/lib/terminfo \
|
2002-11-15 00:24:23 +01:00
|
|
|
/usr/5bin/tic screeninfo.src
|
1997-10-11 23:47:45 +02:00
|
|
|
|
2008-03-17 20:03:35 +01:00
|
|
|
.include "../../mk/termcap.buildlink3.mk"
|
1998-04-15 12:38:15 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|