o add install and deinstall scripts to handle /etc/screenrc
o call install script from makefile o remove install/uninstall messages from packing list THIS PORT IS NOW FROZEN
This commit is contained in:
parent
df198abbb3
commit
76f12f1c2b
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.8 1999/03/25 02:09:36 marc Exp $
|
||||
# $OpenBSD: Makefile,v 1.9 1999/04/09 03:15:18 marc Exp $
|
||||
#
|
||||
|
||||
DISTNAME= screen-3.7.6
|
||||
@ -26,15 +26,6 @@ post-install:
|
||||
@${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} ""
|
||||
@PKG_PREFIX="${PREFIX}" ${SH} ${PKGDIR}/INSTALL ${DISTNAME} POST-INSTALL
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
24
misc/screen/pkg/DEINSTALL
Normal file
24
misc/screen/pkg/DEINSTALL
Normal file
@ -0,0 +1,24 @@
|
||||
# $OpenBSD: DEINSTALL,v 1.1 1999/04/09 03:15:19 marc Exp $
|
||||
#
|
||||
# screen de-installation
|
||||
|
||||
set -e
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
PREFIX=${PKG_PREFIX:-/usr/local}
|
||||
SCREENRC=/etc/screenrc
|
||||
|
||||
if [ -f ${SCREENRC} ]; then
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "| To completely deinstall the $1 package you need to perform"
|
||||
echo "| this step as root:"
|
||||
echo "|"
|
||||
echo "| rm -f ${SCREENRC}"
|
||||
echo "|"
|
||||
echo "| Do not do this if you plan on re-installing $1"
|
||||
echo "| at some future time."
|
||||
echo "+---------------"
|
||||
echo
|
||||
fi
|
||||
|
||||
exit 0
|
78
misc/screen/pkg/INSTALL
Normal file
78
misc/screen/pkg/INSTALL
Normal file
@ -0,0 +1,78 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: INSTALL,v 1.1 1999/04/09 03:15:19 marc Exp $
|
||||
#
|
||||
# Pre/post-installation setup of screen
|
||||
|
||||
# exit on errors, use a sane path and install prefix
|
||||
#
|
||||
set -e
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
PREFIX=${PKG_PREFIX:-/usr/local}
|
||||
SCREENRC=/etc/screenrc
|
||||
|
||||
# Function: tell the user what s/he needs to do to use the port just installed
|
||||
#
|
||||
do_notice()
|
||||
{
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "| The file ${SCREENRC} exists on your system. It has"
|
||||
echo "| NOT been updated. Please look at the file "
|
||||
echo "| ${PREFIX}/lib/screen/screenrc"
|
||||
echo "| and add any desired (but missing) entries into your"
|
||||
echo "| current ${SCREENRC}"
|
||||
}
|
||||
|
||||
# Function: install the screenrc where it is supposed to be.
|
||||
#
|
||||
do_install()
|
||||
{
|
||||
cp ${PREFIX}/lib/screen/screenrc /etc
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "| The file ${SCREENRC} has been created on your system."
|
||||
echo "| You may want to verify/edit its contents"
|
||||
}
|
||||
|
||||
# Function: tell people about the screencap file
|
||||
#
|
||||
do_screencap()
|
||||
{
|
||||
echo "|"
|
||||
echo "| The file ${PREFIX}/lib/screen/screencap contains a"
|
||||
echo "| termcap like description of the screen virtual terminal."
|
||||
echo "| You may use it to update your terminal database."
|
||||
echo "| See termcap(5)."
|
||||
echo "+---------------"
|
||||
echo
|
||||
}
|
||||
|
||||
# verify proper execution
|
||||
#
|
||||
if [ $# -ne 2 ]; then
|
||||
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Verify/process the command
|
||||
#
|
||||
case $2 in
|
||||
PRE-INSTALL)
|
||||
: nothing to pre-install for this port
|
||||
;;
|
||||
POST-INSTALL)
|
||||
if [ -f ${SCREENRC} ]; then
|
||||
do_notice $1
|
||||
else
|
||||
do_install $1
|
||||
fi
|
||||
do_screencap $1
|
||||
;;
|
||||
*)
|
||||
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
@ -8,13 +8,4 @@ info/screen.info
|
||||
@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 ""
|
||||
|
Loading…
Reference in New Issue
Block a user