diff options
author | jlam <jlam@pkgsrc.org> | 2006-06-23 15:52:34 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2006-06-23 15:52:34 +0000 |
commit | 25fdd20adf998fd0a79218b42213eb61cda7513b (patch) | |
tree | ac91c604353837acaf85e1631f2c8125f270bd93 /emulators/darwin_lib | |
parent | 0d5ac9d04194da3fa1b9d2b3b74752a517c1ac5e (diff) | |
download | pkgsrc-25fdd20adf998fd0a79218b42213eb61cda7513b.tar.gz |
* Strip out unnecessary path components in the PLIST so that check-files
isn't confused by the "pkg_info -qL" output.
* Add a MESSAGE file noting what should be added to the kernel config
file in order to use darwin_lib.
* Add an INSTALL script that creates the /emul/darwin symlink needed by
NetBSD to use darwin_lib.
Bump the PKGREVISION to 2. This fixes the error noted in the bulk build
results:
http://mail-index.netbsd.org/pkgsrc-bulk/2006/06/20/0000.html
Diffstat (limited to 'emulators/darwin_lib')
-rw-r--r-- | emulators/darwin_lib/INSTALL | 30 | ||||
-rw-r--r-- | emulators/darwin_lib/MESSAGE | 7 | ||||
-rw-r--r-- | emulators/darwin_lib/Makefile | 27 |
3 files changed, 49 insertions, 15 deletions
diff --git a/emulators/darwin_lib/INSTALL b/emulators/darwin_lib/INSTALL new file mode 100644 index 00000000000..ef08760521b --- /dev/null +++ b/emulators/darwin_lib/INSTALL @@ -0,0 +1,30 @@ +# $NetBSD: INSTALL,v 1.1 2006/06/23 15:52:34 jlam Exp $ + +case "${STAGE}" in +POST-INSTALL) + emulsubdir=darwin + + emuldir="/emul/$emulsubdir" + pkgemuldir="${PKG_PREFIX}/emul/$emulsubdir" + + emuldir_pwd=`cd $emuldir 2>/dev/null && ${PWD_CMD}` + pkgemuldir_pwd=`cd $pkgemuldir 2>/dev/null && ${PWD_CMD}` + + if ${TEST} "$emuldir_pwd" != "$pkgemuldir_pwd"; then + if ${TEST} -e $emuldir -o -L $emuldir; then + ${CAT} << EOF +============================================================================== +You must create a symbolic link for ${PKGNAME} to work properly: + + $pkgemuldir -> $emuldir + +It seems there is something else located at $emuldir. +============================================================================== +EOF + else + ${MKDIR} -p `${DIRNAME} $emuldir` && + ${LN} -fs $pkgemuldir $emuldir + fi + fi + ;; +esac diff --git a/emulators/darwin_lib/MESSAGE b/emulators/darwin_lib/MESSAGE new file mode 100644 index 00000000000..3cd1f419dbc --- /dev/null +++ b/emulators/darwin_lib/MESSAGE @@ -0,0 +1,7 @@ +============================================================================== +$NetBSD: MESSAGE,v 1.1 2006/06/23 15:52:34 jlam Exp $ + +Do not forget to include EXEC_MACHO, COMPAT_MACH, and COMPAT_DARWIN +in your kernel configuration file. Darwin binaries require these +options in order to work. +============================================================================== diff --git a/emulators/darwin_lib/Makefile b/emulators/darwin_lib/Makefile index 073b85f6199..5116c38c289 100644 --- a/emulators/darwin_lib/Makefile +++ b/emulators/darwin_lib/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.5 2006/02/05 23:09:00 joerg Exp $ +# $NetBSD: Makefile,v 1.6 2006/06/23 15:52:34 jlam Exp $ DISTNAME= darwin_lib-6.6.2 -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= emulators MASTER_SITES= http://www.opendarwin.org/downloads/6.6.2/RPMS/ \ http://www.opendarwin.org/downloads/6.6.2/RPMS/${DARWIN_ARCH}/ @@ -21,28 +21,25 @@ BUILD_DEPENDS+= rpm2pkg>=1.3:../../pkgtools/rpm2pkg ONLY_FOR_PLATFORM= NetBSD-1.6Z*-powerpc NetBSD-1.6Z*-i386 \ NetBSD-[2-9]*-powerpc NetBSD-[2-9]*-i386 -PLIST_SRC= ${WRKDIR}/PLIST_DYNAMIC +PLIST_SRC= ${WRKDIR}/.PLIST_SRC DARWIN_ARCH= ${MACHINE_ARCH:C/powerpc/ppc/} RPM2PKG= rpm2pkg -RPMARGS= -d ${PREFIX} -f ${PLIST_SRC} -p emul/darwin -i ./Developer \ - -i ./usr/X11R6/lib/X11/doc/html -i ./usr/share/man \ - -i ./usr/include -i ./usr/X11R6/man -i ./usr/X11R6/include \ - -i ./usr/local/include -i ./usr/local/man -.for TEMP in ${DISTFILES} -RPMARGS+= ${DISTDIR}/${TEMP} -.endfor +RPMARGS= -d ${PREFIX} -f ${WRKDIR}/PLIST_RPM2PKG -p emul/darwin \ + -i ./Developer -i ./usr/X11R6/lib/X11/doc/html \ + -i ./usr/share/man -i ./usr/include -i ./usr/X11R6/man \ + -i ./usr/X11R6/include -i ./usr/local/include \ + -i ./usr/local/man \ + ${DISTFILES:S/^/${DISTDIR}\//} EXTRACT_ONLY= # empty NO_BUILD= yes do-install: - ${RM} -f ${WRKDIR}/PLIST_DYNAMIC + ${RM} -f ${WRKDIR}/PLIST_RPM2PKG ${RPM2PKG} ${RPMARGS} - ${MKDIR} /emul - # Avoid a symlink left from a previous installation - ${TEST} -L /emul/darwin && ${RM} /emul/darwin || ${TRUE} - ${LN} -sf ${PREFIX}/emul/darwin /emul/darwin + ${SED} -e "s|^\./||" -e "s|/\./|/|g" -e "s|/+|/|g" \ + ${WRKDIR}/PLIST_RPM2PKG > ${PLIST_SRC} .include "../../mk/bsd.pkg.mk" |