Subject: pkg/11953: new package: emulators/osf1
To: None <gnats-bugs@gnats.netbsd.org>
From: None <eric@cirr.com>
List: netbsd-bugs
Date: 01/13/2001 21:04:20
>Number:         11953
>Category:       pkg
>Synopsis:       new package: emulators/osf1
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 13 21:04:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Eric Schnoebelen
>Release:        pkgsrc-20010109
>Organization:
	Central Iowa (Model) Railroad, Plano, TX, US
>Environment:
System: NetBSD slurpee 1.5 NetBSD 1.5 (SLURPEE) #3: Sat Jan 6 18:07:58 CST 2001 eric@slurpee:/home/slurpee/eric/work/usr/src/sys/arch/alpha/compile/SLURPEE alpha


>Description:
	New package: osf1 emulator libraries from a released Compaq
	rpm for Linux/alpha.
>How-To-Repeat:
>Fix:
# shell archive of new package submitted in line:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	Makefile
#	files
#	pkg
#	files/md5
#	pkg/COMMENT
#	pkg/DESCR
#	pkg/INSTALL
#	pkg/PLIST
#
echo x - Makefile
sed 's/^X//' >Makefile << 'END-of-Makefile'
X# $NetBSD$
X
XDISTNAME=	netscape-4.7-3.alpha
XPKGNAME=	osf1-1.0
XCATEGORIES=	emulators
XMASTER_SITES=	ftp://ftp.support.compaq.com/private/alpha-tools-software/netscape/
XEXTRACT_SUFX=	.rpm
X
XMAINTAINER=	eric@cirr.com
XHOMEPAGE=	http://www.support.compaq.com/alpha-tools/software/index.html
X
XBUILD_DEPENDS+=		rpm2cpio:../../misc/rpm
X
XONLY_FOR_PLATFORM=      NetBSD-*-alpha
X
X# ????
X# RESTRICTED=	COMPAQ Licensed Software
X# NO_BIN_ON_CDROM=${RESTRICTED}
X# NO_BIN_ON_FTP=  ${RESTRICTED}
X
XEMUL=		osf1
XEMULSUBDIR=	emul/${EMUL}
XEMULDIR=	${PREFIX}/${EMULSUBDIR}
X
XEXTRACT_ONLY=	# empty
XNO_CONFIGURE=	yes
XNO_PATCH=	yes
X
XEMULDIR=	${PREFIX}/${EMULSUBDIR}
XPLIST_SRC=	${WRKDIR}/PLIST
XINSTALL_FILE=	${WRKDIR}/INSTALL
XINCLUDELIST=	${WRKDIR}/INCLUDE
XCPIOLIST=	${WRKDIR}/CPIOLIST
XCHECK_SHLIBS=	no
X
Xdo-build:
X	${SED} -e 's#_@EMULDIR@_#${EMULDIR}#g' \
X	       -e 's#_@EMULSUBDIR@_#${EMULSUBDIR}/#g' \
X		    <${PKGDIR}/PLIST >${PLIST_SRC}
X	${SED} -e 's#_@EMULDIR@_##g' \
X	       -e 's#_@EMULSUBDIR@_##g' \
X	       -e 's#^@dirrm[ ][ ]*##' \
X	       -e '/^@comment/d' \
X		    <${PKGDIR}/PLIST >${INCLUDELIST}
X	${SED} -e 's#_@EMUL@_#${EMUL}#g' \
X	       -e 's#_@EMULDIR@_#${EMULDIR}#g' \
X	       -e 's#_@EMULSUBDIR@_#${EMULSUBDIR}#g' \
X		    <${PKGDIR}/INSTALL >${INSTALL_FILE}
X
Xdo-install:
X	${MKDIR} ${EMULDIR}
X	for f in ${DISTFILES} ; do \
X	    (cd ${EMULDIR}; rpm2cpio ${DISTDIR}/$$f | \
X		    cpio -i -d -E ${INCLUDELIST});\
X	done
X	(cd ${EMULDIR}; ${MKDIR} usr/lib/X11)
X	(cd ${EMULDIR}/usr/lib/X11; ${LN} -s ${X11BASE}/lib/X11/locale .)
X
Xpost-install:
X	PKG_PREFIX="${PREFIX}" ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
X
X.include "../../mk/bsd.pkg.mk"
END-of-Makefile
echo c - files
mkdir -p files > /dev/null 2>&1
echo c - pkg
mkdir -p pkg > /dev/null 2>&1
echo x - files/md5
sed 's/^X//' >files/md5 << 'END-of-files/md5'
X$NetBSD$
X
XMD5 (netscape-4.7-3.alpha.rpm) = d46395644f8ac585a51d57b23c08328e
END-of-files/md5
echo x - pkg/COMMENT
sed 's/^X//' >pkg/COMMENT << 'END-of-pkg/COMMENT'
XDEC/Compaq OSF-1/Tru64 compatibility package
END-of-pkg/COMMENT
echo x - pkg/DESCR
sed 's/^X//' >pkg/DESCR << 'END-of-pkg/DESCR'
XDEC Tru64/OSF1 compatibility package based upon the Tru64/OSF1
Xshared libraries provided by Compaq to support running Netscape on
XLinux/Alpha.
X
XThis package supports running Tru64/OSF1 binaries that do not make use
Xof MACH system calls.
END-of-pkg/DESCR
echo x - pkg/INSTALL
sed 's/^X//' >pkg/INSTALL << 'END-of-pkg/INSTALL'
X#!/bin/sh
X# $NetBSD$
X
Xemul=_@EMUL@_
Xif [ "$2" != "POST-INSTALL" ]; then exit 0; fi
X
Xcat <<EOF
X==============================================================================
X
XDo not forget to include COMPAT_OSF1 in your kernel configuration
Xfile.  (OSF/1 binaries require this option in order to work.)
XEOF
X
Xif [ "`cd /etc && cd ${PKG_PREFIX}/emul/$emul 2>/dev/null && pwd -P`" != \
X     "`cd / && cd /emul/$emul 2>/dev/null && pwd -P`" ]; then
X	if [ -e /emul/$emul -o -L /emul/$emul ] || \
X	   [ \( -e /emul -o -L /emul \) -a ! -d /emul ]; then
X		cat <<-EOF
X
X		IMPORTANT:  You must create a symbolic link from /emul/$emul to
X		${PKG_PREFIX}/emul/$emul in order for this package to work properly.
X		(It seems there is something else located at /emul/$emul.)
X		EOF
X	else
X		mkdir -p /emul
X		ln -sf ${PKG_PREFIX}/emul/$emul /emul/$emul
X	fi
Xfi
X
Xcat <<EOF
X
X==============================================================================
XEOF
END-of-pkg/INSTALL
echo x - pkg/PLIST
sed 's/^X//' >pkg/PLIST << 'END-of-pkg/PLIST'
X@comment $NetBSD$
X_@EMULSUBDIR@_usr/shlib/libots.so
X_@EMULSUBDIR@_usr/shlib/libm.so
X_@EMULSUBDIR@_usr/shlib/libexc.so
X_@EMULSUBDIR@_usr/shlib/libdnet_stub.so
X_@EMULSUBDIR@_usr/shlib/libcxx.so
X_@EMULSUBDIR@_usr/shlib/libc.so
X_@EMULSUBDIR@_usr/shlib/libXt.so
X_@EMULSUBDIR@_usr/shlib/libXmu.so
X_@EMULSUBDIR@_usr/shlib/libXm.so
X_@EMULSUBDIR@_usr/shlib/libXext.so
X_@EMULSUBDIR@_usr/shlib/libX11.so
X_@EMULSUBDIR@_usr/shlib/libSM.so
X_@EMULSUBDIR@_usr/shlib/libICE.so
X_@EMULSUBDIR@_usr/shlib/LICENSE
X@dirrm _@EMULSUBDIR@_usr/shlib
X_@EMULSUBDIR@_usr/lib/X11/locale
X@dirrm _@EMULSUBDIR@_usr/lib/X11
X@dirrm _@EMULSUBDIR@_usr/lib
X@dirrm _@EMULSUBDIR@_usr
X_@EMULSUBDIR@_sbin/loader
X@dirrm _@EMULSUBDIR@_sbin
X_@EMULSUBDIR@_etc/svc.conf
X_@EMULSUBDIR@_etc/sia/siainitgood
X_@EMULSUBDIR@_etc/sia/matrix.conf
X_@EMULSUBDIR@_etc/sia/bsd_matrix.conf
X_@EMULSUBDIR@_etc/sia/OSFC2_matrix.conf
X@dirrm _@EMULSUBDIR@_etc/sia
X@dirrm _@EMULSUBDIR@_etc
X@dirrm _@EMULSUBDIR@_
END-of-pkg/PLIST
exit
>Release-Note:
>Audit-Trail:
>Unformatted: