Fake
This commit is contained in:
parent
49f6d23c9f
commit
d98b880f4d
@ -3,11 +3,12 @@
|
||||
# Date created: 17 November 1997
|
||||
# Whom: gene
|
||||
#
|
||||
# $OpenBSD: Makefile,v 1.8 2000/03/23 05:33:36 turan Exp $
|
||||
# $OpenBSD: Makefile,v 1.9 2000/03/26 01:10:38 espie Exp $
|
||||
#
|
||||
|
||||
DISTNAME= scsh-0.5.1
|
||||
CATEGORIES= shells lang
|
||||
NEED_VERSION= 1.233
|
||||
|
||||
MASTER_SITES= ftp://ftp-swiss.ai.mit.edu/pub/su/scsh/
|
||||
STRIP=
|
||||
@ -19,22 +20,17 @@ PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= "required to notify authors"
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
|
||||
HAS_CONFIGURE= Yes
|
||||
CONFIGURE_ARGS= --prefix='$${DESTDIR}${PREFIX}' --sysconfdir='$${DESTDIR}/etc'
|
||||
ALL_TARGET= enough
|
||||
FAKE= Yes
|
||||
MAN1= scsh.1
|
||||
|
||||
post-install:
|
||||
(cd ${WRKSRC} ; \
|
||||
${INSTALL_DATA} README RELEASE NEWS COPYING ${PREFIX}/lib/scsh/doc)
|
||||
cd ${WRKSRC} && \
|
||||
${INSTALL_DATA} README RELEASE NEWS COPYING ${PREFIX}/lib/scsh/doc
|
||||
rm -f ${PREFIX}/share/doc/scsh
|
||||
ln -fs ${PREFIX}/lib/scsh/doc ${PREFIX}/share/doc/scsh
|
||||
@echo
|
||||
@echo "Finished installing $(DISTNAME)"
|
||||
@echo "To complete the install, you should notify the system"
|
||||
@echo "that $(PREFIX)/bin/scsh is a valid shell by adding it to"
|
||||
@echo "/etc/shells."
|
||||
@echo "If you are unfamiliar with this file, consult the shells(5)"
|
||||
@echo "manual page."
|
||||
ln -fs ${TRUEPREFIX}/lib/scsh/doc ${PREFIX}/share/doc/scsh
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
21
shells/scsh/pkg/DEINSTALL
Normal file
21
shells/scsh/pkg/DEINSTALL
Normal file
@ -0,0 +1,21 @@
|
||||
# $OpenBSD: DEINSTALL,v 1.1 2000/03/26 01:10:39 espie Exp $
|
||||
#
|
||||
# zsh de-installation
|
||||
|
||||
set -e
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
PREFIX=${PKG_PREFIX:-/usr/local}
|
||||
|
||||
if grep -q ${PREFIX}/bin/scsh /etc/shells; then
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "| To completely deinstall the $1 package you need to edit"
|
||||
echo "| /etc/shells and remove this line:"
|
||||
echo "|"
|
||||
echo "| ${PREFIX}/bin/scsh"
|
||||
echo "|"
|
||||
echo "+---------------"
|
||||
echo
|
||||
fi
|
||||
|
||||
exit 0
|
52
shells/scsh/pkg/INSTALL
Normal file
52
shells/scsh/pkg/INSTALL
Normal file
@ -0,0 +1,52 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: INSTALL,v 1.1 2000/03/26 01:10:39 espie Exp $
|
||||
#
|
||||
# Pre/post-installation setup of es
|
||||
|
||||
# Function: tell the user what s/he needs to do to use the port just installed
|
||||
#
|
||||
do_notice()
|
||||
{
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "| For proper use of $1 you should notify the system"
|
||||
echo "| that ${PREFIX}/bin/scsh is a valid shell by adding it to the"
|
||||
echo "| the file /etc/shells. If you are unfamiliar with this file"
|
||||
echo "| consult the shells(5) manual page"
|
||||
echo "+---------------"
|
||||
echo
|
||||
}
|
||||
|
||||
# exit on errors, use a sane path and install prefix
|
||||
#
|
||||
set -e
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
PREFIX=${PKG_PREFIX:-/usr/local}
|
||||
|
||||
# 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 grep -q ${PREFIX}/bin/scsh /etc/shells; then
|
||||
:
|
||||
else
|
||||
do_notice $1
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
Loading…
Reference in New Issue
Block a user