Fix packing list so a package can be created.

Install screenrc in /etc (but do not overright existing file).
Install latest screenrc and screencap in /usr/local/lib/screen for
reference (and so pkg_add knows where to get them from).
This commit is contained in:
marc 1998-04-14 20:34:21 +00:00
parent 4b50481e56
commit f4858a8a5f
3 changed files with 49 additions and 8 deletions

View File

@ -3,7 +3,7 @@
# Date created: 17 November 1997
# Whom: gene
#
# $OpenBSD: Makefile,v 1.3 1998/02/11 04:24:20 flipk Exp $
# $OpenBSD: Makefile,v 1.4 1998/04/14 20:34:21 marc Exp $
#
DISTNAME= screen-3.7.4
@ -21,11 +21,18 @@ post-install:
${SED} -ne '1,/Menu:/p' /usr/share/info/dir > ${PREFIX}/info/dir; \
fi
@install-info ${PREFIX}/info/screen.info ${PREFIX}/info/dir
@if [ -f ${PREFIX}/etc/screenrc ]; then \
echo "Copying ${PREFIX}/etc/screenrc to ${PREFIX}/etc/screenrc.old.";\
${CP} ${PREFIX}/etc/screenrc ${PREFIX}/etc/screenrc.old; \
fi
@echo "Installing ${PREFIX}/etc/screenrc."
${CP} ${WRKSRC}/etc/etcscreenrc ${PREFIX}/etc/screenrc
@${MKDIR} ${PREFIX}/lib/screen
@${INSTALL_DATA} ${WRKSRC}/etc/etcscreenrc ${PREFIX}/lib/screen/screenrc
@${INSTALL_DATA} ${WRKSRC}/terminfo/screencap ${PREFIX}/lib/screen
@${ECHO} ""
@${ECHO} "*** The latest version of the screenrc and screencap files"
@${ECHO} "*** can be found ${PREFIX}/lib/screen"
@if [ -f /etc/screenrc ]; then \
${ECHO} "*** Your /etc/screenrc has NOT been changed"; \
else \
cp ${PREFIX}/lib/screen/screenrc /etc; \
${ECHO} "*** screenrc has been copied into /etc"; \
fi
@${ECHO} ""
.include <bsd.port.mk>

View File

@ -0,0 +1,21 @@
--- configure.~1~ Fri May 2 07:37:26 1997
+++ configure Tue Apr 14 11:19:12 1998
@@ -3032,12 +3032,12 @@
{
test -n "$verbose" && \
-echo " defining" ETCSCREENRC to be "\"$prefix/etc/screenrc\""
-echo "#define" ETCSCREENRC "\"$prefix/etc/screenrc\"" >> confdefs.h
-DEFS="$DEFS -DETCSCREENRC=\"$prefix/etc/screenrc\""
-ac_sed_defs="${ac_sed_defs}\${ac_dA}ETCSCREENRC\${ac_dB}ETCSCREENRC\${ac_dC}\"$prefix/etc/screenrc\"\${ac_dD}
-\${ac_uA}ETCSCREENRC\${ac_uB}ETCSCREENRC\${ac_uC}\"$prefix/etc/screenrc\"\${ac_uD}
-\${ac_eA}ETCSCREENRC\${ac_eB}ETCSCREENRC\${ac_eC}\"$prefix/etc/screenrc\"\${ac_eD}
+echo " defining" ETCSCREENRC to be "\"/etc/screenrc\""
+echo "#define" ETCSCREENRC "\"/etc/screenrc\"" >> confdefs.h
+DEFS="$DEFS -DETCSCREENRC=\"/etc/screenrc\""
+ac_sed_defs="${ac_sed_defs}\${ac_dA}ETCSCREENRC\${ac_dB}ETCSCREENRC\${ac_dC}\"/etc/screenrc\"\${ac_dD}
+\${ac_uA}ETCSCREENRC\${ac_uB}ETCSCREENRC\${ac_uC}\"/etc/screenrc\"\${ac_uD}
+\${ac_eA}ETCSCREENRC\${ac_eB}ETCSCREENRC\${ac_eC}\"/etc/screenrc\"\${ac_eD}
"
}

View File

@ -1,7 +1,20 @@
bin/screen
bin/screen-3.7.4
@exec ln -sf %f %B/screen
@unexec rm -f %B/screen
man/man1/screen.1
@unexec install-info --delete %D/info/screen.info %D/info/dir
info/screen.info
@exec [ -f %D/info/dir ] || sed -ne '1,/Menu:/p' /usr/share/info/dir > %D/info/dir
@exec install-info %D/info/screen.info %D/info/dir
lib/screen/screencap
lib/screen/screenrc
@exec echo ""
@exec echo "*** The latest version of the screenrc and screencap files"
@exec echo "*** can be found %D/lib/screen"
@exec if [ -f /etc/screenrc ]; then echo "*** Your /etc/screenrc has NOT been changed"; else cp %B/%f /etc; echo "*** screenrc has been copied into /etc"; fi
@exec echo ""
@dirrm lib/screen
@unexec echo ""
@unexec echo "*** To completely uninstall this package you must also remove"
@unexec echo "*** the file /etc/screenrc by hand"
@unexec echo ""