summaryrefslogtreecommitdiff
path: root/emulators/compat13
diff options
context:
space:
mode:
authorjlam <jlam>2003-08-30 18:57:03 +0000
committerjlam <jlam>2003-08-30 18:57:03 +0000
commite3cd26cc3782ed06138dcfb07278cac94a53ea17 (patch)
tree2010e95cf53b03688661a09732a530d750b9bef7 /emulators/compat13
parenteed1a8d9cbf91265ad86d0f2a2f6fe948e70debf (diff)
downloadpkgsrc-e3cd26cc3782ed06138dcfb07278cac94a53ea17.tar.gz
Convert to use bsd.pkg.install.mk.
Diffstat (limited to 'emulators/compat13')
-rw-r--r--emulators/compat13/DEINSTALL22
-rw-r--r--emulators/compat13/INSTALL24
-rw-r--r--emulators/compat13/Makefile23
3 files changed, 18 insertions, 51 deletions
diff --git a/emulators/compat13/DEINSTALL b/emulators/compat13/DEINSTALL
index dd423184d6c..71e6814ac9d 100644
--- a/emulators/compat13/DEINSTALL
+++ b/emulators/compat13/DEINSTALL
@@ -1,33 +1,21 @@
-#!/bin/sh
-#
-# $NetBSD: DEINSTALL,v 1.1 2001/10/31 23:52:24 zuntum Exp $
-
-PKGNAME=$1
-STAGE=$2
+# $NetBSD: DEINSTALL,v 1.2 2003/08/30 18:57:03 jlam Exp $
case ${STAGE} in
-DEINSTALL)
- ;;
POST-DEINSTALL)
MACHINE_ARCH=@MACHINE_ARCH@
COMPAT_LIBDIR=@COMPAT_LIBDIR@
if [ "${MACHINE_ARCH}" = "mipsel" ]
then
- rm -f ${PKG_PREFIX}/libexec/ld.so
- rmdir -p ${PKG_PREFIX}/libexec 2>/dev/null || true
+ ${RM} -f ${PKG_PREFIX}/libexec/ld.so
+ ${RMDIR} -p ${PKG_PREFIX}/libexec 2>/dev/null || ${TRUE}
fi
- rmdir -p ${PKG_PREFIX}/${COMPAT_LIBDIR} 2>/dev/null || true
+ ${RMDIR} -p ${PKG_PREFIX}/${COMPAT_LIBDIR} 2>/dev/null || ${TRUE}
# Regenerate the shared library cache. This should work on either
# a.out or on ELF with the 1.5 release.
#
- ( @LDCONFIG@ || true ) >/dev/null 2>&1
- ;;
-*)
- echo "Unexpected argument: ${STAGE}"
- exit 1
+ ( @LDCONFIG@ || ${TRUE} ) >/dev/null 2>&1
;;
esac
-exit 0
diff --git a/emulators/compat13/INSTALL b/emulators/compat13/INSTALL
index c71b3a8111f..f3e467cb325 100644
--- a/emulators/compat13/INSTALL
+++ b/emulators/compat13/INSTALL
@@ -1,20 +1,13 @@
-#!/bin/sh
-#
-# $NetBSD: INSTALL,v 1.1 2001/10/31 23:52:24 zuntum Exp $
-
-PKGNAME=$1
-STAGE=$2
+# $NetBSD: INSTALL,v 1.2 2003/08/30 18:57:03 jlam Exp $
case ${STAGE} in
-PRE-INSTALL)
- ;;
POST-INSTALL)
MACHINE_ARCH=@MACHINE_ARCH@
OBJECT_FMT=@OBJECT_FMT@
if [ "${MACHINE_ARCH}" = "mipsel" ]
then
- ln -sf ld.elf_so /usr/libexec/ld.so
+ ${LN} -sf ld.elf_so /usr/libexec/ld.so
fi
# Only create the symlink on certain platform/object combinations.
@@ -38,7 +31,7 @@ POST-INSTALL)
if [ -e /emul/$emul -o -L /emul/$emul ] || \
[ \( -e /emul -o -L /emul \) -a ! -d /emul ]
then
- cat <<EOF
+ ${CAT} <<EOF
==============================================================================
IMPORTANT: You must create a symbolic link from /emul/$emul
to ${PKG_PREFIX}/emul/$emul in order for this package to work
@@ -48,8 +41,8 @@ POST-INSTALL)
==============================================================================
EOF
else
- mkdir -p /emul
- ln -sf ${PKG_PREFIX}/emul/$emul /emul/$emul
+ ${MKDIR} -p /emul
+ ${LN} -sf ${PKG_PREFIX}/emul/$emul /emul/$emul
fi
fi
fi
@@ -57,11 +50,6 @@ EOF
# Regenerate the shared library cache. This should work on either
# a.out or on ELF with the 1.5 release.
#
- ( @LDCONFIG@ || true ) >/dev/null 2>&1
- ;;
-*)
- echo "Unexpected argument: ${STAGE}"
- exit 1
+ ( @LDCONFIG@ || ${TRUE} ) >/dev/null 2>&1
;;
esac
-exit 0
diff --git a/emulators/compat13/Makefile b/emulators/compat13/Makefile
index ce6437453ff..b1491833ff8 100644
--- a/emulators/compat13/Makefile
+++ b/emulators/compat13/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2003/07/17 21:35:22 grant Exp $
+# $NetBSD: Makefile,v 1.16 2003/08/30 18:57:03 jlam Exp $
#
DISTNAME= compat13-${MACHINE_ARCH}${PKGMINOR}
@@ -16,10 +16,14 @@ ONLY_FOR_PLATFORM= NetBSD-*-alpha NetBSD-*-arm NetBSD-*-arm32 \
NOT_FOR_PLATFORM= NetBSD-1.3*-*
NO_MTREE= # defined
+NO_BUILD= # defined
SHLIB_HANDLING= NO
+USE_PKGINSTALL= YES
-DEINSTALL_FILE= ${WRKDIR}/DEINSTALL
-INSTALL_FILE= ${WRKDIR}/INSTALL
+FILES_SUBST+= COMPAT_LIBDIR=${COMPAT_LIBDIR}
+FILES_SUBST+= MACHINE_ARCH=${MACHINE_ARCH}
+FILES_SUBST+= OBJECT_FMT=${OBJECT_FMT}
+FILES_SUBST+= LDCONFIG=${LDCONFIG}
.include "../../mk/bsd.prefs.mk"
@@ -43,21 +47,8 @@ PKGMINOR=
PLIST_SUBST+= COMPAT_LIBDIR=${COMPAT_LIBDIR}
-do-build:
- ${SED} -e "s,@MACHINE_ARCH@,${MACHINE_ARCH},g" \
- -e "s,@COMPAT_LIBDIR@,${COMPAT_LIBDIR},g" \
- -e "s,@LDCONFIG@,${LDCONFIG},g" \
- < ${PKGDIR}/DEINSTALL > ${DEINSTALL_FILE}
- ${SED} -e "s,@MACHINE_ARCH@,${MACHINE_ARCH},g" \
- -e "s,@OBJECT_FMT@,${OBJECT_FMT},g" \
- -e "s,@LDCONFIG@,${LDCONFIG},g" \
- < ${PKGDIR}/INSTALL > ${INSTALL_FILE}
-
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/${COMPAT_LIBDIR}
${INSTALL_DATA} ${WRKDIR}/lib*.so* ${PREFIX}/${COMPAT_LIBDIR}
-post-install:
- PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
-
.include "../../mk/bsd.pkg.mk"