o add INSTALL script to spit out installation message
o call install script from Makefile o add dummy target to ensure sources get fetched o remove duplicate install message from Makefile and packing list
This commit is contained in:
parent
01eb432f0f
commit
c3c36688d1
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.10 1999/03/28 23:11:53 brad Exp $
|
||||
# $OpenBSD: Makefile,v 1.11 1999/04/08 18:46:40 marc Exp $
|
||||
# $NetBSD: Makefile,v 1.10 1998/04/24 09:07:55 agc Exp $
|
||||
# $FreeBSD Id: Makefile,v 1.19 1997/12/04 17:34:28 asami Exp $
|
||||
|
||||
@ -10,15 +10,18 @@ NO_CDROM= "GPL: must distribute with source"
|
||||
|
||||
MAINTAINER= brad@openbsd.org
|
||||
|
||||
MASTER_SITES= ${MASTER_SITE_LOCAL} \
|
||||
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
||||
|
||||
PREFIX= /emul/linux
|
||||
NO_MTREE= yes
|
||||
NO_BUILD= yes
|
||||
NO_EXTRACT= yes
|
||||
NO_PATCH= yes
|
||||
NO_WRKDIR= yes
|
||||
NO_CONFIGURE= yes
|
||||
NO_PACKAGE= yes
|
||||
|
||||
do-extract:
|
||||
@: do nothing, we just want to make sure the port is fetched
|
||||
|
||||
pre-install:
|
||||
@[ -d ${PREFIX} ] || ${MKDIR} ${PREFIX}
|
||||
@ -34,9 +37,6 @@ post-install:
|
||||
-@${RMDIR} ${PREFIX}/usr/local/lib ${PREFIX}/usr/local
|
||||
${MKDIR} ${PREFIX}/usr/lib/zoneinfo
|
||||
${LN} -sf /etc/localtime ${PREFIX}/usr/lib/zoneinfo/localtime
|
||||
@${ECHO} "***"
|
||||
@${ECHO} "*** Installation complete. See compat_linux(8)"
|
||||
@${ECHO} "*** for more information."
|
||||
@${ECHO} "***"
|
||||
@PKG_PREFIX="${PREFIX}" ${SH} ${PKGDIR}/INSTALL ${DISTNAME} POST-INSTALL
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
47
emulators/linux_lib/pkg/INSTALL
Normal file
47
emulators/linux_lib/pkg/INSTALL
Normal file
@ -0,0 +1,47 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: INSTALL,v 1.1 1999/04/08 18:46:40 marc Exp $
|
||||
#
|
||||
# Pre/post-installation setup of linux_lib
|
||||
|
||||
# Function: tell the user what s/he needs to do to use the port just installed
|
||||
#
|
||||
do_notice()
|
||||
{
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "| Installation of $1 complete. See compat_linux(8)"
|
||||
echo "| for more information."
|
||||
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}
|
||||
PIDFILE=/var/run/sshd.pid
|
||||
|
||||
# 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)
|
||||
do_notice $1
|
||||
;;
|
||||
*)
|
||||
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -915,7 +915,3 @@ var/X11R6/lib/rgb.txt
|
||||
@dirrm var/X11R6/lib
|
||||
@dirrm var/X11R6
|
||||
@dirrm var
|
||||
@exec echo "***"
|
||||
@exec echo "*** Installation complete. See compat_linux(8)"
|
||||
@exec echo "*** for more information."
|
||||
@exec echo "***"
|
||||
|
Loading…
Reference in New Issue
Block a user