1999-07-21 11:16:13 +00:00
|
|
|
# New ports collection makefile for: linux_devtools
|
|
|
|
# Date created: Jul 9, 1999
|
|
|
|
# Whom: marcel@FreeBSD.org
|
1996-11-26 23:15:07 +00:00
|
|
|
#
|
1999-08-25 05:57:29 +00:00
|
|
|
# $FreeBSD$
|
1996-11-26 23:15:07 +00:00
|
|
|
#
|
|
|
|
|
2000-04-11 21:30:15 +00:00
|
|
|
PORTNAME= linux_devtools
|
|
|
|
PORTVERSION= 6.1
|
2000-02-28 08:34:04 +00:00
|
|
|
CATEGORIES= devel emulators linux
|
2000-01-05 23:31:57 +00:00
|
|
|
MASTER_SITES= ${RPM_MIRRORS:S/__DIR__/${STDDIR}/g}
|
|
|
|
DISTFILES= ${RPM_KERNEL_HEADERS} \
|
|
|
|
${RPM_GLIBC_DEVEL} \
|
|
|
|
make-3.77-6.${MACHINE_ARCH}.rpm \
|
|
|
|
cpp-1.1.2-24.${MACHINE_ARCH}.rpm \
|
|
|
|
egcs-1.1.2-24.${MACHINE_ARCH}.rpm \
|
|
|
|
egcs-c++-1.1.2-24.${MACHINE_ARCH}.rpm \
|
|
|
|
egcs-g77-1.1.2-24.${MACHINE_ARCH}.rpm \
|
|
|
|
${RPM_GDB} \
|
|
|
|
${RPM_X_DEVEL}
|
|
|
|
|
|
|
|
PATCH_SITES= ${RPM_MIRRORS:S/__DIR__/${UPDDIR}/g}
|
|
|
|
PATCHFILES=
|
1996-11-26 23:15:07 +00:00
|
|
|
|
1999-07-21 11:16:13 +00:00
|
|
|
MAINTAINER= marcel@FreeBSD.org
|
1996-11-26 23:15:07 +00:00
|
|
|
|
2000-02-17 13:08:16 +00:00
|
|
|
BUILD_DEPENDS= rpm:${PORTSDIR}/misc/rpm
|
1999-07-21 11:16:13 +00:00
|
|
|
RUN_DEPENDS= \
|
|
|
|
${PREFIX}/etc/redhat-release:${PORTSDIR}/emulators/linux_base
|
1999-01-06 04:27:56 +00:00
|
|
|
|
2000-01-05 23:31:57 +00:00
|
|
|
ONLY_FOR_ARCHS= alpha i386
|
1999-07-21 11:16:13 +00:00
|
|
|
DIST_SUBDIR= rpm
|
|
|
|
PREFIX= /compat/linux
|
|
|
|
EXTRACT_ONLY=
|
|
|
|
NO_BUILD= yes
|
1998-10-13 02:20:19 +00:00
|
|
|
NO_FILTER_SHLIBS= yes
|
1999-07-21 11:16:13 +00:00
|
|
|
NO_MTREE= yes
|
2000-01-05 23:31:57 +00:00
|
|
|
PLIST= ${PKGDIR}/PLIST.${MACHINE_ARCH}
|
|
|
|
|
|
|
|
RPM_MIRRORS= \
|
2000-05-14 05:40:52 +00:00
|
|
|
ftp://ftp.freesoftware.com/pub/linux/redhat/__DIR__/ \
|
2000-01-05 23:31:57 +00:00
|
|
|
ftp://ftp.redhat.com/redhat/__DIR__/ \
|
|
|
|
ftp://ftp.infomagic.com/pub/mirrors/linux/RedHat/__DIR__/ \
|
|
|
|
ftp://ftp.crc.ca/mirrors/by-site/ftp.redhat.com/redhat/__DIR__/ \
|
|
|
|
ftp://ftp.nluug.nl/site/ftp.redhat.com/redhat/__DIR__/ \
|
|
|
|
ftp://mirror.nucba.ac.jp/mirror/redhat/__DIR__/ \
|
|
|
|
ftp://ftp.is.co.za/linux/distributions/redhat/__DIR__/ \
|
|
|
|
ftp://mirror.aarnet.edu.au/pub/linux/redhat/__DIR__/
|
1999-07-21 11:16:13 +00:00
|
|
|
|
2000-08-21 23:25:30 +00:00
|
|
|
STDDIR= old-releases/redhat-6.1/${MACHINE_ARCH}/RedHat/RPMS
|
2000-01-05 23:31:57 +00:00
|
|
|
UPDDIR= updates/6.1/${MACHINE_ARCH}
|
1999-07-21 11:16:13 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2000-01-05 23:31:57 +00:00
|
|
|
.if (${MACHINE_ARCH} == "i386")
|
|
|
|
RPM_GDB= gdb-4.18-4.i386.rpm
|
|
|
|
RPM_GLIBC_DEVEL= glibc-devel-2.1.2-11.i386.rpm
|
|
|
|
RPM_KERNEL_HEADERS= kernel-headers-2.2.12-20.i386.rpm
|
|
|
|
RPM_X_DEVEL= XFree86-devel-3.3.5-3.i386.rpm
|
1999-07-21 11:16:13 +00:00
|
|
|
.else
|
2000-01-05 23:31:57 +00:00
|
|
|
RPM_GDB= gdb-4.18-5.alpha.rpm
|
|
|
|
RPM_GLIBC_DEVEL= glibc-devel-2.1.2-17.alpha.rpm
|
|
|
|
RPM_KERNEL_HEADERS= kernel-headers-2.2.13-0.9.alpha.rpm
|
|
|
|
RPM_X_DEVEL= XFree86-devel-3.3.5-17.alpha.rpm
|
1999-07-21 11:16:13 +00:00
|
|
|
.endif
|
1998-10-12 18:53:09 +00:00
|
|
|
|
1999-07-21 11:16:13 +00:00
|
|
|
DBPATH= /var/lib/rpm
|
2000-01-05 23:31:57 +00:00
|
|
|
RPMFLAGS= --ignoreos --root ${PREFIX} --dbpath ${DBPATH} \
|
|
|
|
--replacepkgs
|
1999-07-21 11:16:13 +00:00
|
|
|
RPMDIR= ${DISTDIR}/${DIST_SUBDIR}
|
1996-11-26 23:15:07 +00:00
|
|
|
|
1999-07-21 11:16:13 +00:00
|
|
|
REMOVE_DIRS= /dev /tmp /var/tmp
|
2000-01-05 23:31:57 +00:00
|
|
|
REMOVE_FILES= /boot/kernel.h
|
1998-08-23 01:50:27 +00:00
|
|
|
|
1999-08-11 18:46:08 +00:00
|
|
|
.if ${OSVERSION} <= 320001
|
1999-07-21 11:16:13 +00:00
|
|
|
#
|
|
|
|
# Hack to let the rpm installer run. The actual kernel change occurred after
|
|
|
|
# 400008 on 4.0-current and well after 320001, but we'll assume people running
|
|
|
|
# -current and -stable stay reasonably up-to-date.
|
|
|
|
#
|
|
|
|
# Define this if you get messages that look like
|
|
|
|
#
|
|
|
|
# --
|
|
|
|
# ELF interpreter /compat/linux/lib/ld-linux.so.2 not found
|
|
|
|
# execution of script failed
|
|
|
|
# --
|
|
|
|
#
|
|
|
|
NEEDLOADLINK= true
|
|
|
|
.endif
|
1996-11-26 23:15:07 +00:00
|
|
|
|
2000-01-05 23:31:57 +00:00
|
|
|
do-patch:
|
|
|
|
@${DO_NADA}
|
|
|
|
|
2000-08-15 10:22:36 +00:00
|
|
|
pre-install:
|
|
|
|
@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
|
|
|
|
1996-11-26 23:15:07 +00:00
|
|
|
do-install:
|
1999-07-21 11:16:13 +00:00
|
|
|
#
|
|
|
|
# Setup a chroot'able environment
|
|
|
|
#
|
|
|
|
@${MKDIR} ${PREFIX}/tmp
|
|
|
|
@${MKDIR} ${PREFIX}/var/tmp
|
|
|
|
@${MKDIR} ${PREFIX}/dev
|
|
|
|
@${RM} -f ${PREFIX}/dev/null
|
|
|
|
@mknod ${PREFIX}/dev/null c 2 2
|
1999-08-22 19:01:07 +00:00
|
|
|
@${CHMOD} 666 ${PREFIX}/dev/null
|
1999-07-21 11:16:13 +00:00
|
|
|
.if defined(NEEDLOADLINK)
|
|
|
|
@${MKDIR} ${PREFIX}/compat
|
|
|
|
@${LN} -s / ${PREFIX}/compat/linux
|
|
|
|
.endif
|
|
|
|
#
|
|
|
|
# Install all packages.
|
|
|
|
#
|
|
|
|
@for R in ${DISTFILES}; do \
|
|
|
|
${ECHO} $$R; \
|
2000-01-10 13:04:34 +00:00
|
|
|
rpm -U ${RPMFLAGS} ${RPMDIR}/$$R; \
|
2000-01-05 23:31:57 +00:00
|
|
|
done
|
|
|
|
#
|
|
|
|
# Install updates
|
|
|
|
#
|
|
|
|
@for R in ${PATCHFILES}; do \
|
|
|
|
${ECHO} $$R; \
|
|
|
|
rpm -U ${RPMFLAGS} ${RPMDIR}/$$R; \
|
1999-07-21 11:16:13 +00:00
|
|
|
done
|
|
|
|
#
|
|
|
|
# Finish
|
|
|
|
#
|
|
|
|
.if defined(NEEDLOADLINK)
|
|
|
|
@${RM} -rf ${PREFIX}/compat
|
|
|
|
.endif
|
|
|
|
@for D in ${REMOVE_DIRS}; do \
|
|
|
|
${RM} -rf ${PREFIX}/$$D; \
|
|
|
|
done
|
|
|
|
@for F in ${REMOVE_FILES}; do \
|
2000-01-05 23:31:57 +00:00
|
|
|
${RM} -f ${PREFIX}/$$F; \
|
1999-07-21 11:16:13 +00:00
|
|
|
done
|
1996-11-26 23:15:07 +00:00
|
|
|
|
1999-07-21 11:16:13 +00:00
|
|
|
.include <bsd.port.post.mk>
|