diff options
author | trevor <trevor@FreeBSD.org> | 2003-10-12 13:47:42 +0800 |
---|---|---|
committer | trevor <trevor@FreeBSD.org> | 2003-10-12 13:47:42 +0800 |
commit | 8b09cf0cba17254022f50feb140995df32acbaea (patch) | |
tree | 07521825deedac407bb1f1d7168c65d5cd9404fe /devel/linux_devtools | |
parent | 5c057ff02c145fde8135c5f8a27773686988d437 (diff) | |
download | freebsd-ports-gnome-8b09cf0cba17254022f50feb140995df32acbaea.tar.gz freebsd-ports-gnome-8b09cf0cba17254022f50feb140995df32acbaea.tar.zst freebsd-ports-gnome-8b09cf0cba17254022f50feb140995df32acbaea.zip |
Add linux_devtools 8.0.
Diffstat (limited to 'devel/linux_devtools')
-rw-r--r-- | devel/linux_devtools/Makefile | 107 | ||||
-rw-r--r-- | devel/linux_devtools/distinfo | 13 | ||||
-rw-r--r-- | devel/linux_devtools/pkg-descr | 5 | ||||
-rw-r--r-- | devel/linux_devtools/pkg-install | 18 |
4 files changed, 143 insertions, 0 deletions
diff --git a/devel/linux_devtools/Makefile b/devel/linux_devtools/Makefile new file mode 100644 index 000000000000..5f14e465a206 --- /dev/null +++ b/devel/linux_devtools/Makefile @@ -0,0 +1,107 @@ +# New ports collection makefile for: linux_devtools +# Date created: Jul 9, 1999 +# Whom: marcel@FreeBSD.org +# +# $FreeBSD$ +# + +PORTNAME= linux_devtools +PORTVERSION= 8.0 +CATEGORIES= devel emulators linux +MASTER_SITES= ${MASTER_SITE_REDHAT_LINUX} +MASTER_SITE_SUBDIR= ${PORTVERSION}/${LANG}/os/${MACHINE_ARCH}/RedHat/RPMS +DISTFILES= glibc-devel-2.2.93-5.i386.rpm \ + compat-libstdc++-devel-7.3-2.96.110.i386.rpm \ + libstdc++-devel-3.2-7.i386.rpm \ + make-3.79.1-14.i386.rpm \ + binutils-2.13.90.0.2-2.i386.rpm \ + cpp-3.2-7.i386.rpm \ + gcc-3.2-7.i386.rpm \ + gcc-c++-3.2-7.i386.rpm \ + gcc-g77-3.2-7.i386.rpm \ + gdb-5.2.1-4.i386.rpm \ + rpm-build-4.1-1.06.i386.rpm \ + rpm-devel-4.1-1.06.i386.rpm +EXTRACT_ONLY= + +PATCH_SITES= ${MASTER_SITE_REDHAT_LINUX} +PATCH_SITE_SUBDIR= updates/${PORTVERSION}/${LANG}/os/${MACHINE_ARCH} +PATCHFILES= ${UPDATES} + +MAINTAINER= trevor@FreeBSD.org +COMMENT= Packages needed for doing development in Linux mode + +EXTRACT_DEPENDS= rpm:${PORTSDIR}/archivers/rpm +RUN_DEPENDS= ${LINUXBASE}/lib/libc-2.3.2.so:${PORTSDIR}/emulators/linux_base-8 + +RESTRICTED= "binaries under GNU GPL without accompanying source" + +ONLY_FOR_ARCHS= i386 +CONFLICTS= linux_devtools-* +USE_LINUX= yes +DIST_SUBDIR= rpm/${MACHINE_ARCH}/${PORTVERSION} +PREFIX= ${LINUXBASE} +NO_BUILD= yes +NO_FILTER_SHLIBS= yes +NO_MTREE= yes +PLIST= ${WRKDIR}/pkg-plist + +# Let's avoid hardcoding 'en' as the language. +LANG= en + +.include <bsd.port.pre.mk> + +UPDATES= XFree86-devel-4.2.1-21.i386.rpm + +DBPATH= /var/lib/rpm +RPM= LC_ALL=C rpm +RPMFLAGS= --root ${LINUXBASE} --dbpath ${DBPATH} --nodeps \ + --replacepkgs --ignoreos +RPMDIR= ${DISTDIR}/${DIST_SUBDIR} + +REMOVE_DIRS= dev tmp var/tmp +REMOVE_FILES= + +do-patch: + @${DO_NADA} + +pre-install: + ${RM} -rf ${WRKSRC}/tmp + ${MKDIR} ${WRKSRC}/tmp +.for ii in ${DISTFILES} ${PATCHFILES} + cd ${WRKSRC}/tmp; rpm2cpio < ${DISTDIR}/${DIST_SUBDIR}/${ii} | cpio -id +.endfor + cd ${WRKSRC}/tmp; ${FIND} * -type f -o -type l > ${PLIST}; \ + ${FIND} -d * -type d | ${SED} -e 's:^:@dirrm :'>> ${PLIST} + ${RM} -rf ${WRKSRC}/tmp + +do-install: + @${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL + @${MKDIR} ${LINUXBASE}/tmp + @${MKDIR} ${LINUXBASE}/var/tmp + @${MKDIR} ${LINUXBASE}/dev + @${RM} -f ${LINUXBASE}/dev/null + @mknod ${LINUXBASE}/dev/null c 2 2 + @${CHMOD} 666 ${LINUXBASE}/dev/null +# +# Install all packages. + @for R in ${DISTFILES}; do \ + ${ECHO_MSG} $$R; \ + ${RPM} -U ${RPMFLAGS} ${RPMDIR}/$$R; \ + done +# +# Install updates + @for R in ${PATCHFILES}; do \ + ${ECHO_MSG} $$R; \ + ${RPM} -U ${RPMFLAGS} ${RPMDIR}/$$R; \ + done +# +# Finish + @for D in ${REMOVE_DIRS}; do \ + ${RM} -rf ${LINUXBASE}/$$D; \ + done + @for F in ${REMOVE_FILES}; do \ + ${RM} ${LINUXBASE}/$$F; \ + done + +.include <bsd.port.post.mk> diff --git a/devel/linux_devtools/distinfo b/devel/linux_devtools/distinfo new file mode 100644 index 000000000000..f4d990bb2b3f --- /dev/null +++ b/devel/linux_devtools/distinfo @@ -0,0 +1,13 @@ +MD5 (rpm/i386/8.0/XFree86-devel-4.2.1-21.i386.rpm) = 7ab86737a76f07d8f1321b435f164546 +MD5 (rpm/i386/8.0/binutils-2.13.90.0.2-2.i386.rpm) = 283b1eec57dbf332a3b262c4e6c70254 +MD5 (rpm/i386/8.0/compat-libstdc++-devel-7.3-2.96.110.i386.rpm) = aef050b20d1ee7f4e4c3361a6f0d5af6 +MD5 (rpm/i386/8.0/cpp-3.2-7.i386.rpm) = 80ad54bc870510eee464a405f3383b1d +MD5 (rpm/i386/8.0/gcc-3.2-7.i386.rpm) = b626e31beaef6135c172370cae61bd67 +MD5 (rpm/i386/8.0/gcc-c++-3.2-7.i386.rpm) = 4abf1c11fa2c4bd74dae94bd7d204f15 +MD5 (rpm/i386/8.0/gcc-g77-3.2-7.i386.rpm) = 59c850b758c1ce9dd6023e46dd9cddfe +MD5 (rpm/i386/8.0/gdb-5.2.1-4.i386.rpm) = deac4ffa132cc71a2d3b162afdd9f18f +MD5 (rpm/i386/8.0/glibc-devel-2.2.93-5.i386.rpm) = b6324ccb082d61fd8419a340c5e98307 +MD5 (rpm/i386/8.0/libstdc++-devel-3.2-7.i386.rpm) = 8eee18be94c23439282bebbc02cd4604 +MD5 (rpm/i386/8.0/make-3.79.1-14.i386.rpm) = 1d31756f4f48f85c8ef4a7a861ffc6c5 +MD5 (rpm/i386/8.0/rpm-build-4.1-1.06.i386.rpm) = a6cc55182420e370ddbad6536e0297fe +MD5 (rpm/i386/8.0/rpm-devel-4.1-1.06.i386.rpm) = dc6385128ffc4057cffa5ac66da9ab7c diff --git a/devel/linux_devtools/pkg-descr b/devel/linux_devtools/pkg-descr new file mode 100644 index 000000000000..0a4fb9015e25 --- /dev/null +++ b/devel/linux_devtools/pkg-descr @@ -0,0 +1,5 @@ +The linux_devtools port contains a selection of packages necessary +for doing development in Linux mode. + +- Marcel +marcel@FreeBSD.org diff --git a/devel/linux_devtools/pkg-install b/devel/linux_devtools/pkg-install new file mode 100644 index 000000000000..43cdb121f0c4 --- /dev/null +++ b/devel/linux_devtools/pkg-install @@ -0,0 +1,18 @@ +#!/bin/sh +# installation script for linux_devtools + +case "$2" in +PRE-INSTALL) + if [ -z "`kldstat -v | grep -E 'linux(aout|elf)'`" ]; then + echo 'Linux mode is not enabled.' + echo 'Loading Linux kernel module now...' + if ! kldload linux; then + echo 'The Linux kernel module could not be loaded.' + echo 'Please enable Linux mode manually and retry.' + exit 1 + fi + fi + ;; +esac + +exit 0 |