Add linux_devtools 8.0.

This commit is contained in:
Trevor Johnson 2003-10-12 05:47:42 +00:00
parent ae9332a8b2
commit 6c7f7bf102
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=90886
6 changed files with 145 additions and 0 deletions

1
LEGAL
View file

@ -165,6 +165,7 @@ libudbc ports/databases/libudbc Downloading and redistribution
terms are unclear.
limewire ports/net/limewire No redistribution allowed
linux-agsatellite ports/net/linux-agsatellite Unsure of licensing issues
linux_devtools ports/devel/linux_devtools GPL binaries
linux-divx4linux ports/multimedia/linux-divx4linux Restrictive copyright
linux-eagle ports/cad/linux-eagle Non-commercial usage only &
ports/german/linux-eagle Sale for profit not permitted

View file

@ -404,6 +404,7 @@
SUBDIR += linux-understand_ada
SUBDIR += linux-understand_c
SUBDIR += linux-understand_java
SUBDIR += linux_devtools
SUBDIR += linux_devtools-6
SUBDIR += linux_devtools-7
SUBDIR += linux_kdump

View file

@ -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>

View file

@ -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

View file

@ -0,0 +1,5 @@
The linux_devtools port contains a selection of packages necessary
for doing development in Linux mode.
- Marcel
marcel@FreeBSD.org

View file

@ -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