pkgsrc/misc/screen/Makefile
jlam 5b62763c63 Teach the +SHELLS helper script to not create an /etc/shells file if
one doesn't exist.  From now on, we only add the listed PKG_SHELL to
the /etc/shells file if it already exists.  This fixes PR pkg/27162.
2005-09-20 04:23:48 +00:00

46 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.60 2005/09/20 04:23:48 jlam Exp $
DISTNAME= screen-4.0.2
PKGREVISION= 3
CATEGORIES= misc shells
MASTER_SITES= ftp://ftp.uni-erlangen.de/pub/utilities/screen/ \
${MASTER_SITE_GNU:=screen/}
MAINTAINER= kim@tac.nyc.ny.us
HOMEPAGE= http://www.gnu.org/software/screen/screen.html
COMMENT= Multi-screen window manager
PKG_INSTALLATION_TYPES= overwrite pkgviews
NOT_FOR_PLATFORM= Interix-*-* # user auth and username size fixes needed
USE_PKGINSTALL= YES
INFO_FILES= screen.info
PLIST_SUBST= DISTNAME=${DISTNAME}
GNU_CONFIGURE= # defined
CONFIGURE_ARGS+= --with-sys-screenrc=${PKG_SYSCONFDIR}/screenrc
CONFIGURE_ARGS+= --enable-telnet
PKG_SHELL= bin/screen
.include "../../mk/bsd.prefs.mk"
post-patch:
@for file in etc/etcscreenrc doc/screen.1; do \
${MV} ${WRKSRC}/$$file ${WRKSRC}/$$file.orig; \
${SED} ${FILES_SUBST_SED} \
${WRKSRC}/$$file.orig > ${WRKSRC}/$$file; \
done
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/screen
${INSTALL_DATA} ${WRKSRC}/etc/etcscreenrc \
${PREFIX}/share/examples/screen/screenrc
.if ${OPSYS} == "SunOS"
cd ${WRKSRC}/terminfo && \
${SETENV} TERMINFO=${PREFIX}/share/lib/terminfo \
/usr/5bin/tic screeninfo.src
.endif
.include "../../mk/bsd.pkg.mk"