mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
These bits are now known as linux_base.
This commit is contained in:
parent
bba7159bd2
commit
467c113c68
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=60195
@ -1,178 +0,0 @@
|
||||
# New ports collection makefile for: linux_base
|
||||
# Date created: Oct 3, 2001
|
||||
# Whom: marcel@FreeBSD.org
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= linux_base
|
||||
PORTVERSION= 7.1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= emulators linux
|
||||
MASTER_SITES= ${RPM_MIRRORS:S/__DIR__/${STDDIR}/g}
|
||||
DISTFILES= ${RPM_GLIBC_COMMON} \
|
||||
redhat-release-7.1-1.noarch.rpm \
|
||||
${RPM_SETUP} \
|
||||
filesystem-2.0.7-1.noarch.rpm \
|
||||
basesystem-7.0-2.noarch.rpm \
|
||||
${RPM_GLIBC} \
|
||||
termcap-11.0.1-8.noarch.rpm \
|
||||
db1-1.85-5.${MACHINE_ARCH}.rpm \
|
||||
db3-3.1.17-7.${MACHINE_ARCH}.rpm \
|
||||
${RPM_GDBM} \
|
||||
glib-1.2.9-1.${MACHINE_ARCH}.rpm \
|
||||
libtermcap-2.0.8-26.${MACHINE_ARCH}.rpm \
|
||||
bash-2.04-21.${MACHINE_ARCH}.rpm \
|
||||
${RPM_BZIP2} \
|
||||
${RPM_LIBSTDCXX} \
|
||||
${RPM_COMPAT_LIBSTDCXX} \
|
||||
ncurses-5.2-8.${MACHINE_ARCH}.rpm \
|
||||
info-4.0-20.${MACHINE_ARCH}.rpm \
|
||||
fileutils-4.0.36-4.${MACHINE_ARCH}.rpm \
|
||||
grep-2.4.2-5.${MACHINE_ARCH}.rpm \
|
||||
popt-1.6.2-8.${MACHINE_ARCH}.rpm \
|
||||
readline-4.1-9.${MACHINE_ARCH}.rpm \
|
||||
${RPM_SETSERIAL} \
|
||||
slang-1.4.2-2.${MACHINE_ARCH}.rpm \
|
||||
sh-utils-2.0-13.${MACHINE_ARCH}.rpm \
|
||||
rpm-4.0.2-8.${MACHINE_ARCH}.rpm \
|
||||
${RPM_FREETYPE} \
|
||||
${RPM_XFREE86_LIBS}
|
||||
EXTRACT_ONLY=
|
||||
|
||||
PATCH_SITES= ${RPM_MIRRORS:S/__DIR__/${UPDDIR}/g}
|
||||
PATCHFILES= ${UPDATES}
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
|
||||
BUILD_DEPENDS= rpm:${PORTSDIR}/archivers/rpm
|
||||
|
||||
ONLY_FOR_ARCHS= alpha i386
|
||||
LATEST_LINK= linux_base-7
|
||||
DIST_SUBDIR= rpm
|
||||
PREFIX= ${LINUXBASE}
|
||||
NO_BUILD= yes
|
||||
NO_FILTER_SHLIBS= yes
|
||||
NO_MTREE= yes
|
||||
PLIST= ${PKGDIR}/pkg-plist.${MACHINE_ARCH}
|
||||
MD5_FILE= ${MASTERDIR}/distinfo.${MACHINE_ARCH}
|
||||
|
||||
# Let's avoid hardcoding 'en' as the language.
|
||||
LANG= en
|
||||
|
||||
# XXX - Increase the number of mirrors. Favor those that also hold
|
||||
# the IA-64 packages.
|
||||
RPM_MIRRORS= \
|
||||
ftp://ftp.redhat.com/pub/redhat/__DIR__/ \
|
||||
ftp://ftp.nluug.nl/site/ftp.redhat.com/redhat/__DIR__/ \
|
||||
ftp://ftp.mirror.ac.uk/sites/ftp.redhat.com/pub/redhat/__DIR__/
|
||||
|
||||
STDDIR= linux/${PORTVERSION}/${LANG}/os/${MACHINE_ARCH}/RedHat/RPMS
|
||||
UPDDIR= linux/updates/${PORTVERSION}/${LANG}/os/${MACHINE_ARCH}
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
UPDATES= zlib-1.1.3-25.7.${MACHINE_ARCH}.rpm
|
||||
.if (${MACHINE_ARCH} == "i386")
|
||||
RPM_BZIP2= bzip2-1.0.1-3.i386.rpm
|
||||
RPM_FREETYPE= freetype-2.0.1-4.i386.rpm
|
||||
RPM_GDBM= gdbm-1.8.0-5.i386.rpm
|
||||
RPM_GLIBC= glibc-2.2.2-10.i386.rpm
|
||||
RPM_GLIBC_COMMON= glibc-common-2.2.2-10.i386.rpm
|
||||
RPM_LIBSTDCXX=
|
||||
RPM_COMPAT_LIBSTDCXX= compat-libstdc++-6.2-2.9.0.14.i386.rpm
|
||||
RPM_SETSERIAL= setserial-2.17-2.i386.rpm
|
||||
RPM_SETUP= setup-2.4.7-1.noarch.rpm
|
||||
RPM_XFREE86_LIBS= XFree86-libs-4.0.3-5.i386.rpm
|
||||
UPDATES+= libstdc++-2.96-85.i386.rpm
|
||||
.else
|
||||
RPM_BZIP2= bzip2-1.0.1-4.alpha.rpm
|
||||
RPM_FREETYPE= freetype-2.0.1-5.alpha.rpm
|
||||
RPM_GDBM= gdbm-1.8.0-6.alpha.rpm
|
||||
RPM_GLIBC= glibc-2.2.3-11.alpha.rpm
|
||||
RPM_GLIBC_COMMON= glibc-common-2.2.3-11.alpha.rpm
|
||||
RPM_LIBSTDCXX= libstdc++-2.96-87.alpha.rpm
|
||||
RPM_COMPAT_LIBSTDCXX=
|
||||
RPM_SETSERIAL= setserial-2.17-3.alpha.rpm
|
||||
RPM_SETUP= setup-2.4.7-2.noarch.rpm
|
||||
RPM_XFREE86_LIBS= XFree86-libs-4.0.3-21.alpha.rpm
|
||||
UPDATES+=
|
||||
.endif
|
||||
|
||||
DBPATH= /var/lib/rpm
|
||||
RPM= LC_ALL=C rpm
|
||||
RPMFLAGS= --root ${LINUXBASE} --dbpath ${DBPATH} --nodeps \
|
||||
--replacepkgs --ignoreos --ignorearch
|
||||
RPMDIR= ${DISTDIR}/${DIST_SUBDIR}
|
||||
|
||||
REMOVE_DIRS= boot dev home root tmp var/tmp usr/local usr/tmp
|
||||
REMOVE_FILES= bin/df bin/su etc/exports etc/group etc/localtime \
|
||||
etc/motd etc/passwd etc/printcap etc/services \
|
||||
etc/protocols
|
||||
BRAND_FILES= bin/rpm sbin/ldconfig sbin/sln
|
||||
|
||||
FALLBACK_ELF_MIB= kern.fallback_elf_brand
|
||||
LINUX_ELF= 3
|
||||
PREVIOUS_ELF!= /sbin/sysctl -n ${FALLBACK_ELF_MIB}
|
||||
|
||||
do-patch:
|
||||
@${DO_NADA}
|
||||
|
||||
pre-install:
|
||||
#
|
||||
# Handle the loading of the linux loadable kernel module if required.
|
||||
@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${LINUXBASE}/${DBPATH}
|
||||
@${MKDIR} ${LINUXBASE}/var/tmp
|
||||
@${RPM} --initdb --root ${LINUXBASE} --dbpath ${DBPATH}
|
||||
#
|
||||
# Make sure we have a /dev/null in the chrooted environment.
|
||||
@${MKDIR} ${LINUXBASE}/dev
|
||||
@${RM} -f ${LINUXBASE}/dev/null
|
||||
@mknod ${LINUXBASE}/dev/null c 2 2
|
||||
@${CHMOD} 666 ${LINUXBASE}/dev/null
|
||||
#
|
||||
# Install all packages. Ignore dependencies just like the Red Hat installer.
|
||||
# Also, set the ELF fallback brand to Linux, so that we don't have to do
|
||||
# anything special to run staticly linked binaries.
|
||||
@/sbin/sysctl -w ${FALLBACK_ELF_MIB}=${LINUX_ELF}
|
||||
@for R in ${DISTFILES}; do \
|
||||
${ECHO} $$R; \
|
||||
${RPM} -U ${RPMFLAGS} ${RPMDIR}/$$R; \
|
||||
done
|
||||
@for F in ${BRAND_FILES}; do \
|
||||
brandelf -t Linux ${LINUXBASE}/$$F; \
|
||||
done
|
||||
#
|
||||
# Install updates
|
||||
@for R in ${PATCHFILES}; do \
|
||||
${ECHO} $$R; \
|
||||
${RPM} -U ${RPMFLAGS} ${RPMDIR}/$$R; \
|
||||
done
|
||||
@/sbin/sysctl -w ${FALLBACK_ELF_MIB}=${PREVIOUS_ELF}
|
||||
#
|
||||
# Install yp.conf as a hint to NIS users and make sure there's a
|
||||
# mtab in etc, albeit an empty one. This is needed in a couple of
|
||||
# cases. Most notably staroffice6.
|
||||
#
|
||||
${INSTALL} ${COPY} -m 644 ${FILESDIR}/yp.conf ${LINUXBASE}/etc
|
||||
${TOUCH} ${LINUXBASE}/etc/mtab
|
||||
#
|
||||
# Finish
|
||||
#
|
||||
@for D in ${REMOVE_DIRS}; do \
|
||||
${RM} -rf ${LINUXBASE}/$$D; \
|
||||
done
|
||||
@for F in ${REMOVE_FILES}; do \
|
||||
${RM} -f ${LINUXBASE}/$$F; \
|
||||
done
|
||||
@${LN} -s /var/tmp ${LINUXBASE}/usr/tmp
|
||||
|
||||
post-install:
|
||||
@${ECHO} ''
|
||||
@fmt ${PKGMESSAGE}
|
||||
@${ECHO} ''
|
||||
|
||||
.include <bsd.port.post.mk>
|
@ -1,28 +0,0 @@
|
||||
MD5 (rpm/glibc-common-2.2.3-11.alpha.rpm) = 054a3cb7b59aba71a8cedffe9c5a56e8
|
||||
MD5 (rpm/redhat-release-7.1-1.noarch.rpm) = db4e20d62c96ae3cd7fb3d9da89f0ec0
|
||||
MD5 (rpm/setup-2.4.7-2.noarch.rpm) = ce6ded4c40f0475353291c0207db96d4
|
||||
MD5 (rpm/filesystem-2.0.7-1.noarch.rpm) = c82cd42bdf4e8becfef3701f0f246270
|
||||
MD5 (rpm/basesystem-7.0-2.noarch.rpm) = 9d4e753ef487d62e1672f52ef190447a
|
||||
MD5 (rpm/glibc-2.2.3-11.alpha.rpm) = 1d82b09d5ca53bcf1203a06c2e1f6635
|
||||
MD5 (rpm/termcap-11.0.1-8.noarch.rpm) = ee5eb175910c60f95119e8af912e4846
|
||||
MD5 (rpm/db1-1.85-5.alpha.rpm) = 3d81e088f11af780cb951be465a0a94f
|
||||
MD5 (rpm/db3-3.1.17-7.alpha.rpm) = 0f7ac3c351be032ec99679c715cca722
|
||||
MD5 (rpm/gdbm-1.8.0-6.alpha.rpm) = c43eeb86838ea28190cb264977d6e62c
|
||||
MD5 (rpm/glib-1.2.9-1.alpha.rpm) = 3c71cf189dd310f1e2d826924520ef7d
|
||||
MD5 (rpm/libtermcap-2.0.8-26.alpha.rpm) = 4f3edb4ed13d577b8862fe616069dd4f
|
||||
MD5 (rpm/bash-2.04-21.alpha.rpm) = 73bbf905d7a634807a38eb3b48dfcaae
|
||||
MD5 (rpm/bzip2-1.0.1-4.alpha.rpm) = c9ad4c80f6f070b6aa40a8c55e656b28
|
||||
MD5 (rpm/libstdc++-2.96-87.alpha.rpm) = 346adbb46e8c18a709ea5413952291e5
|
||||
MD5 (rpm/ncurses-5.2-8.alpha.rpm) = dbab55c9afe8a985e809acbc9643dbf4
|
||||
MD5 (rpm/info-4.0-20.alpha.rpm) = 52e8ee5655060917f87809f627999c58
|
||||
MD5 (rpm/fileutils-4.0.36-4.alpha.rpm) = 0b1906b9fc61388b25372af9392478f7
|
||||
MD5 (rpm/grep-2.4.2-5.alpha.rpm) = 334f786c785cf8d4a114403834387089
|
||||
MD5 (rpm/popt-1.6.2-8.alpha.rpm) = 81eb662170e8ee31e46a81d2d373f674
|
||||
MD5 (rpm/readline-4.1-9.alpha.rpm) = f60382b65c68cfe0cb93f7ac0daebee7
|
||||
MD5 (rpm/setserial-2.17-3.alpha.rpm) = 2f315b205d19e34382dfc442c2af9ab9
|
||||
MD5 (rpm/slang-1.4.2-2.alpha.rpm) = 5e6c0c4560a2585e0b9f2eb1e7cb6ddd
|
||||
MD5 (rpm/sh-utils-2.0-13.alpha.rpm) = d8206bfdeb0e723555a167ba363d4368
|
||||
MD5 (rpm/rpm-4.0.2-8.alpha.rpm) = de97b0fda240f422fa2a67dd0729d775
|
||||
MD5 (rpm/freetype-2.0.1-5.alpha.rpm) = 3dfb1fad9d16c1e9114f474ebb8fa849
|
||||
MD5 (rpm/XFree86-libs-4.0.3-21.alpha.rpm) = 7e0f11ac8258f550959df98f81146d9e
|
||||
MD5 (rpm/zlib-1.1.3-25.7.alpha.rpm) = 73352503d0864dbfa6db5369002fb0a1
|
@ -1,29 +0,0 @@
|
||||
MD5 (rpm/glibc-common-2.2.2-10.i386.rpm) = 56b4d08be8f8420552a725d1ffb42de6
|
||||
MD5 (rpm/redhat-release-7.1-1.noarch.rpm) = 50c7e24be0727971a1253bb75d30a1ed
|
||||
MD5 (rpm/setup-2.4.7-1.noarch.rpm) = 4a4819c1e86d61a9ca67a5b4feb375b7
|
||||
MD5 (rpm/filesystem-2.0.7-1.noarch.rpm) = c82cd42bdf4e8becfef3701f0f246270
|
||||
MD5 (rpm/basesystem-7.0-2.noarch.rpm) = 9d4e753ef487d62e1672f52ef190447a
|
||||
MD5 (rpm/glibc-2.2.2-10.i386.rpm) = 793707fbedd03992ba2e4783721193dc
|
||||
MD5 (rpm/termcap-11.0.1-8.noarch.rpm) = ee5eb175910c60f95119e8af912e4846
|
||||
MD5 (rpm/db1-1.85-5.i386.rpm) = 648f8ceec0ae49723beef68546e0c900
|
||||
MD5 (rpm/db3-3.1.17-7.i386.rpm) = 61cd34ed0205dc63cdb6faf7ada0c7eb
|
||||
MD5 (rpm/gdbm-1.8.0-5.i386.rpm) = 5bbffa7878bbe03dd27434c5a77ae88c
|
||||
MD5 (rpm/glib-1.2.9-1.i386.rpm) = 63a7a9d22c1d2f38a59c919ffda35c9c
|
||||
MD5 (rpm/libtermcap-2.0.8-26.i386.rpm) = 52a57b5fa1f146adf3dcf4f552a8e5b8
|
||||
MD5 (rpm/bash-2.04-21.i386.rpm) = 99a6c7fd6730e97697f658b007dbd927
|
||||
MD5 (rpm/bzip2-1.0.1-3.i386.rpm) = 2f6c5671617dcd0a7facc84d4428841a
|
||||
MD5 (rpm/compat-libstdc++-6.2-2.9.0.14.i386.rpm) = 5cf1e116fd22b5117e78df717068a244
|
||||
MD5 (rpm/ncurses-5.2-8.i386.rpm) = ca4b2077429920820489d40800e5a803
|
||||
MD5 (rpm/info-4.0-20.i386.rpm) = 4600aeee40e404584c30f2b94fc6eed8
|
||||
MD5 (rpm/fileutils-4.0.36-4.i386.rpm) = bb2c343c6df36d9bdde4bea8dd6ca111
|
||||
MD5 (rpm/grep-2.4.2-5.i386.rpm) = b396f18d1275296b1419844505e49f98
|
||||
MD5 (rpm/popt-1.6.2-8.i386.rpm) = e5c1e64d01fd1f6ab6200df8bc114420
|
||||
MD5 (rpm/readline-4.1-9.i386.rpm) = 35b6eae1b87503a686af6a577f1d86d3
|
||||
MD5 (rpm/setserial-2.17-2.i386.rpm) = 283ecf92b4bb47bd8b3a0bf436797b45
|
||||
MD5 (rpm/slang-1.4.2-2.i386.rpm) = 08f61ae541a0c802b5f0de2ec72e6b84
|
||||
MD5 (rpm/sh-utils-2.0-13.i386.rpm) = c0cb76287553e7f43234af45994d7d41
|
||||
MD5 (rpm/zlib-1.1.3-25.7.i386.rpm) = 1c2a98b53ec5bd716b48d71643705055
|
||||
MD5 (rpm/rpm-4.0.2-8.i386.rpm) = 7c19ebfcbb9079ce77b9aa2d33c26ff2
|
||||
MD5 (rpm/freetype-2.0.1-4.i386.rpm) = d0343a9d5f1d91ec254903ed164251cd
|
||||
MD5 (rpm/XFree86-libs-4.0.3-5.i386.rpm) = 227caaee9e10162b6500e6e9544726b3
|
||||
MD5 (rpm/libstdc++-2.96-85.i386.rpm) = c55761de27efcd655352d983b63b71a4
|
@ -1,15 +0,0 @@
|
||||
# sample yp.conf file
|
||||
#
|
||||
# Legal entries are:
|
||||
#
|
||||
# domainname <domain> Override the default YP domain
|
||||
# (If not set uses the one from
|
||||
# the getdomainname() syscall)
|
||||
#
|
||||
# ypserver <grape> [<domain>] Define which host to contact
|
||||
# for YP service. If the <domain>
|
||||
# argument is included then this
|
||||
# host service the specified YP
|
||||
# domain.
|
||||
#domainname my.domain
|
||||
#ypserver localhost
|
@ -1 +0,0 @@
|
||||
The base set of packages needed in Linux mode
|
@ -1,6 +0,0 @@
|
||||
The linux_base port contains a selection of the packages from a minimal
|
||||
Red Hat Linux installation. These packages, in conjunction with the linux
|
||||
module, form the basis of the linux compatibility environment.
|
||||
|
||||
- Marcel
|
||||
marcel@FreeBSD.org
|
@ -1,18 +0,0 @@
|
||||
#!/bin/sh
|
||||
# an installation script for linux_base
|
||||
|
||||
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
|
@ -1,9 +0,0 @@
|
||||
Installation of the Linux base system is
|
||||
finished. The Linux kernel mode, which
|
||||
must be enabled for Linux binaries to run,
|
||||
is now enabled. Linux mode can be enabled
|
||||
permanently with the linux_enable variable
|
||||
of rc.conf(5).
|
||||
|
||||
When using NIS, don't forget to edit
|
||||
yp.conf in /compat/linux/etc.
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user