-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Somewhat updated redhat_base port by jasoni@ that goes into
emulators/redhat/base. Also gets rid of RPM database. - Add emulators/redhat/motif. - Factor out common definitions into Makefile.inc.
- Loading branch information
Christian Weisgerber
committed
Sep 16, 2001
1 parent
e58a8c4
commit 12d5548
Showing
13 changed files
with
3,954 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# $OpenBSD: Makefile,v 1.1.1.1 2001/09/16 16:47:32 naddy Exp $ | ||
|
||
SUBDIR += base | ||
SUBDIR += motif | ||
|
||
.include <bsd.port.subdir.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# $OpenBSD: Makefile.inc,v 1.1.1.1 2001/09/16 16:47:32 naddy Exp $ | ||
|
||
ONLY_FOR_ARCHS= i386 | ||
|
||
CATEGORIES= emulators | ||
NEED_VERSION= 1.456 | ||
|
||
PERMIT_PACKAGE_CDROM= Yes | ||
PERMIT_PACKAGE_FTP= Yes | ||
PERMIT_DISTFILES_CDROM= Yes | ||
PERMIT_DISTFILES_FTP= Yes | ||
|
||
MASTER_SITES= ftp://ftp.redhat.com/pub/%SUBDIR%/ \ | ||
ftp://ftp.sourceforge.net/pub/mirrors/redhat/%SUBDIR%/ \ | ||
ftp://ftp.funet.fi/pub/mirrors/ftp.redhat.com/pub/%SUBDIR%/ \ | ||
ftp://ftp.uni-bayreuth.de/pub/redhat.com/%SUBDIR%/ | ||
|
||
DIST_SUBDIR= rpm | ||
EXTRACT_ONLY= | ||
|
||
BUILD_DEPENDS= rpm2cpio::misc/rpm | ||
|
||
NO_BUILD= Yes | ||
|
||
PREFIX= ${LOCALBASE}/emul/redhat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# $OpenBSD: Makefile,v 1.1.1.1 2001/09/16 16:47:32 naddy Exp $ | ||
|
||
COMMENT= "Linux compatibility package based on RedHat 6.2" | ||
|
||
PKGNAME= redhat_base-6.2p2 | ||
|
||
MAINTAINER= Jason Ish <[email protected]> | ||
|
||
MASTER_SITES0= ${MASTER_SITES:S@%SUBDIR%@${MASTER_SITE_SUBDIR0}@} | ||
MASTER_SITE_SUBDIR= redhat/linux/6.2/en/os/i386/RedHat/RPMS | ||
MASTER_SITE_SUBDIR0= redhat/linux/updates/6.2/en/os/i386/ | ||
|
||
DISTFILES= ${RPMS} | ||
|
||
RPMDIR= ${FULLDISTDIR} | ||
|
||
RPMS= ldconfig-1.9.5-16.i386.rpm \ | ||
glibc-2.1.3-22.i386.rpm:0 \ | ||
termcap-10.2.7-9.noarch.rpm \ | ||
libtermcap-2.0.8-20.i386.rpm \ | ||
bash-1.14.7-23.6x.i386.rpm:0 \ | ||
ncurses-5.0-12.i386.rpm:0 \ | ||
zlib-1.1.3-6.i386.rpm \ | ||
fileutils-4.0-21.i386.rpm \ | ||
binutils-2.9.5.0.22-6.i386.rpm \ | ||
libstdc++-2.9.0-30.i386.rpm \ | ||
sh-utils-2.0-5.i386.rpm \ | ||
readline-2.2.1-6.i386.rpm \ | ||
rpm-4.0.2-6x.i386.rpm:0 \ | ||
XFree86-libs-3.3.6-20.i386.rpm \ | ||
xpm-3.4k-2.i386.rpm \ | ||
glib-1.2.6-3.i386.rpm \ | ||
gtk+-1.2.6-7.i386.rpm \ | ||
ld.so-1.9.5-13.i386.rpm \ | ||
libc-5.3.12-31.i386.rpm \ | ||
libjpeg-6b-10.i386.rpm \ | ||
libpng-1.0.5-3.i386.rpm | ||
|
||
REMOVE_DIRS= /usr/doc /usr/info /usr/man /usr/share/zoneinfo | ||
REMOVE_FILES= /etc/localtime | ||
|
||
pre-install: | ||
@${INSTALL_DATA_DIR} ${PREFIX} | ||
|
||
do-install: | ||
.for rpm in ${RPMS:S/:0//} | ||
@cd ${PREFIX}; rpm2cpio ${RPMDIR}/${rpm} | cpio -id | ||
.endfor | ||
|
||
# Get rid of some unnecessary files and directories. | ||
.for D in ${REMOVE_DIRS} | ||
@rm -rf ${PREFIX}/${D} | ||
.endfor | ||
.for F in ${REMOVE_FILES} | ||
@rm -f ${PREFIX}/${F} | ||
.endfor | ||
|
||
# copy in ld.so.conf | ||
${INSTALL_DATA} ${FILESDIR}/ld.so.conf ${PREFIX}/etc | ||
|
||
# run elf2olf on a few binaries known not to run as elf | ||
@elf2olf -o linux ${PREFIX}/sbin/ldconfig | ||
@elf2olf -o linux ${PREFIX}/bin/rpm | ||
|
||
# run ldconfig | ||
-chroot ${PREFIX} /sbin/ldconfig | ||
|
||
post-install: | ||
# remove setuid root bits | ||
@find ${PREFIX} -perm -4000 -exec chmod u-s {} \; | ||
|
||
.include <bsd.port.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/usr/lib | ||
/usr/X11R6/lib | ||
/usr/i486-linux-libc5/lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
MD5 (rpm/XFree86-libs-3.3.6-20.i386.rpm) = fc4bf8a9aa7f1544d23c77704b915876 | ||
MD5 (rpm/basesystem-6.0-4.noarch.rpm) = ad37c3eff0cc6b8417910252e045ff15 | ||
MD5 (rpm/bash-1.14.7-23.6x.i386.rpm) = 9fe492b13c08e7993a918d0395fda486 | ||
MD5 (rpm/binutils-2.9.5.0.22-6.i386.rpm) = bf4c8a00c8b066d8fffdc40747dcf6fa | ||
MD5 (rpm/filesystem-1.3.5-1.noarch.rpm) = 13592687f133dc1fd039d61e1e90bb36 | ||
MD5 (rpm/fileutils-4.0-21.i386.rpm) = 6065a2e043dced58c3a2b1824771d07f | ||
MD5 (rpm/glib-1.2.6-3.i386.rpm) = 1f1d4fccb4f4b20a09275a49844c1ad4 | ||
MD5 (rpm/glibc-2.1.3-22.i386.rpm) = b841df797bf42585476f30b1ba489e30 | ||
MD5 (rpm/gtk+-1.2.6-7.i386.rpm) = d46e7a6a2301a1ce3e9c421ccc0b0117 | ||
MD5 (rpm/ld.so-1.9.5-13.i386.rpm) = ef41819eed40143b048b988138d99cdf | ||
MD5 (rpm/ldconfig-1.9.5-16.i386.rpm) = f8538a36c0ff452b1758943e1ba9945a | ||
MD5 (rpm/libc-5.3.12-31.i386.rpm) = e540ab65530070175887a6fa7096541b | ||
MD5 (rpm/libjpeg-6b-10.i386.rpm) = 34ed914219cd8e7ac92d2f326bb2cf84 | ||
MD5 (rpm/libpng-1.0.5-3.i386.rpm) = 6be91c0fa1d17f096c5444e8cb2fe79c | ||
MD5 (rpm/libstdc++-2.9.0-30.i386.rpm) = 29ca50829f6d43c63d8fcc827b3daceb | ||
MD5 (rpm/libtermcap-2.0.8-20.i386.rpm) = 39fb51ccd3c8f2c85a146c8596a05c89 | ||
MD5 (rpm/ncurses-5.0-12.i386.rpm) = d401a0317132c114a75dfeefb881f66c | ||
MD5 (rpm/readline-2.2.1-6.i386.rpm) = d0e08590389caf394ea74f9aa72e3b2d | ||
MD5 (rpm/redhat-release-6.2-1.noarch.rpm) = 9801b2c8a375ae747c0e6c6c6448df53 | ||
MD5 (rpm/rpm-4.0.2-6x.i386.rpm) = 0fb05fb1600edcb55fbcbbdb1edb40d8 | ||
MD5 (rpm/setup-2.1.8-1.noarch.rpm) = 76761cae697cc2f57065da133a33f4be | ||
MD5 (rpm/sh-utils-2.0-5.i386.rpm) = 058999d972e6b2deb384701a9985c9fe | ||
MD5 (rpm/termcap-10.2.7-9.noarch.rpm) = fdcf07f55dab0784fa06d61d2c12ba72 | ||
MD5 (rpm/xpm-3.4k-2.i386.rpm) = bd2141c224b8ff99695b41cbc5550d66 | ||
MD5 (rpm/zlib-1.1.3-6.i386.rpm) = 2042a6164d3cc497dcaa821b834ce179 | ||
RMD160 (rpm/XFree86-libs-3.3.6-20.i386.rpm) = 1d8c7e817995c4945ed4d85fe6769f0544097ef4 | ||
RMD160 (rpm/basesystem-6.0-4.noarch.rpm) = ace60f86fdacf384ad8d5c4861724d8c8622ef3c | ||
RMD160 (rpm/bash-1.14.7-23.6x.i386.rpm) = e7dcf4761bd79cb318cdc0c4b4575d828c7039b5 | ||
RMD160 (rpm/binutils-2.9.5.0.22-6.i386.rpm) = f786d40a26f3c1a6550175e4f1927d3fcdc9ee2b | ||
RMD160 (rpm/filesystem-1.3.5-1.noarch.rpm) = 49a1333ac7de76c54e5cd5d18a1ffee30da367f3 | ||
RMD160 (rpm/fileutils-4.0-21.i386.rpm) = 3e463817e553f9f116517a67b344e9308e5d176e | ||
RMD160 (rpm/glib-1.2.6-3.i386.rpm) = 40e1f7a89674859a2b19d09a3ea6b797e6717d85 | ||
RMD160 (rpm/glibc-2.1.3-22.i386.rpm) = a601cfad39c207dd6ee1843c8a86d1f9ebadb8bd | ||
RMD160 (rpm/gtk+-1.2.6-7.i386.rpm) = a61813086640070568822930fb21aeaf7293aa16 | ||
RMD160 (rpm/ld.so-1.9.5-13.i386.rpm) = 859a9248ecbb11a32c86651c40ca29a99d2ec9ca | ||
RMD160 (rpm/ldconfig-1.9.5-16.i386.rpm) = a179fa437d9ed8d9a8229a0e449ebab5e9e84527 | ||
RMD160 (rpm/libc-5.3.12-31.i386.rpm) = 12ae2c645ab945d7ab039f2286f72c7291178d2e | ||
RMD160 (rpm/libjpeg-6b-10.i386.rpm) = 44db9025896879e0e1e05c7e3d6dd34efbcd3997 | ||
RMD160 (rpm/libpng-1.0.5-3.i386.rpm) = 7943c4802f8c2ab87e76d54f816f07fcef17c000 | ||
RMD160 (rpm/libstdc++-2.9.0-30.i386.rpm) = 406d75782f1ad2d331ce2da2d7a340e26e97c620 | ||
RMD160 (rpm/libtermcap-2.0.8-20.i386.rpm) = bb6eed5ababcf22c6bc039b199c3d49d01da8ff2 | ||
RMD160 (rpm/ncurses-5.0-12.i386.rpm) = ded3a91a5c20a48493c2f5dff9fc76114f5d27bf | ||
RMD160 (rpm/readline-2.2.1-6.i386.rpm) = 8e532df49c6d58b77e3242ca4d4a89b6b60405a3 | ||
RMD160 (rpm/redhat-release-6.2-1.noarch.rpm) = 631aeab0fcd4401d1b820d029fc1cba2c26e7970 | ||
RMD160 (rpm/rpm-4.0.2-6x.i386.rpm) = ea34e485ac58b81348cd72b403739866983afc37 | ||
RMD160 (rpm/setup-2.1.8-1.noarch.rpm) = 8e247cb869ab7e579e4855aa1ece0cd387f29258 | ||
RMD160 (rpm/sh-utils-2.0-5.i386.rpm) = 46ea8937694dc9048667fa4ed9a25770bea96c2c | ||
RMD160 (rpm/termcap-10.2.7-9.noarch.rpm) = 197e7dbad5824587cc668985b50aae4954c0ed30 | ||
RMD160 (rpm/xpm-3.4k-2.i386.rpm) = 94905460df12bf4630191b761906c9dc2fffbdce | ||
RMD160 (rpm/zlib-1.1.3-6.i386.rpm) = fe019c7a0c1703b1f8b1c5d1726c978c515c0b66 | ||
SHA1 (rpm/XFree86-libs-3.3.6-20.i386.rpm) = f83022c6957793a84f811d4e8209cdfe0655bb71 | ||
SHA1 (rpm/basesystem-6.0-4.noarch.rpm) = c9e79b22f32168822f9256c369de264e0866f4dd | ||
SHA1 (rpm/bash-1.14.7-23.6x.i386.rpm) = 9171410f0f6bb420e7bcde070ff0b2c23e1a5ca7 | ||
SHA1 (rpm/binutils-2.9.5.0.22-6.i386.rpm) = 0c9fbae6ce5d04f4432dbbcd9f7a7a1969c84f91 | ||
SHA1 (rpm/filesystem-1.3.5-1.noarch.rpm) = a1e2d934ec8a800e6e558022d11c0ed511b219d3 | ||
SHA1 (rpm/fileutils-4.0-21.i386.rpm) = 6a85248af9bcb2abcf0e02803c01d3d47e99183c | ||
SHA1 (rpm/glib-1.2.6-3.i386.rpm) = bd5bf73979f108da48fa2e75a82dacbc5c039a6e | ||
SHA1 (rpm/glibc-2.1.3-22.i386.rpm) = 672e1693de85a931b265ff1132a8b5acaabcd4cc | ||
SHA1 (rpm/gtk+-1.2.6-7.i386.rpm) = 1b9ea97b4021f58192c0c0fe12317fc1786c36ab | ||
SHA1 (rpm/ld.so-1.9.5-13.i386.rpm) = 6b62ca9e98834af087037ea7d3dabd1a90b2167a | ||
SHA1 (rpm/ldconfig-1.9.5-16.i386.rpm) = a6c2ec339683a79f58f40d79823b3d6d92d21666 | ||
SHA1 (rpm/libc-5.3.12-31.i386.rpm) = a3174052c64c9a52d3674cc00a9ef8ee1da6e603 | ||
SHA1 (rpm/libjpeg-6b-10.i386.rpm) = 6b159a1d795e22e4a7fd88234304ae7f00946ee5 | ||
SHA1 (rpm/libpng-1.0.5-3.i386.rpm) = 4117609171867b9efc03db8cbb2fd8381cebd7c1 | ||
SHA1 (rpm/libstdc++-2.9.0-30.i386.rpm) = 1a346f8b86540ef0e191c5387e2d8e39fb94e7fb | ||
SHA1 (rpm/libtermcap-2.0.8-20.i386.rpm) = c57485eaf955d4d1b239b5f07a6dddfcc360bdb6 | ||
SHA1 (rpm/ncurses-5.0-12.i386.rpm) = a07da8e1950e1870b7ba4ed45e40a7e11f97c364 | ||
SHA1 (rpm/readline-2.2.1-6.i386.rpm) = 7f82194408581add4193d0c3869c68d27fde7e34 | ||
SHA1 (rpm/redhat-release-6.2-1.noarch.rpm) = c60419f85a11c5d9815c4e66d3e21d43d8bd19b3 | ||
SHA1 (rpm/rpm-4.0.2-6x.i386.rpm) = 61b2aa7d8f9ea9d8fa35da97d0cfb87ca54d16d5 | ||
SHA1 (rpm/setup-2.1.8-1.noarch.rpm) = a0a7a2aadd0d715dfff8462ca6b4d79b25f07d29 | ||
SHA1 (rpm/sh-utils-2.0-5.i386.rpm) = e6379ca22e54781492618d66b027eb5140580498 | ||
SHA1 (rpm/termcap-10.2.7-9.noarch.rpm) = 5556ccae5de704b381b1f440675588a55797d7a1 | ||
SHA1 (rpm/xpm-3.4k-2.i386.rpm) = 819359ef6a519caac42cb555d03be46da6459de8 | ||
SHA1 (rpm/zlib-1.1.3-6.i386.rpm) = 23d3173383a8a0e428a1627a74616cdfe376a55c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/sh | ||
# $OpenBSD: DEINSTALL,v 1.1.1.1 2001/09/16 16:47:32 naddy Exp $ | ||
# | ||
# redhat_base de-installation | ||
|
||
set -e | ||
PATH=/bin:/usr/bin:/sbin:/usr/sbin | ||
PREFIX=${PKG_PREFIX:-/usr/local/emul/redhat} | ||
|
||
if [ -L /emul/linux -a x`readlink /emul/linux` = x"$PREFIX" ]; then | ||
rm -f /emul/linux | ||
fi | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
The redhat_base package is created from selected RedHat | ||
RPM's to create an environment suitable to run many Linux | ||
applications. | ||
|
||
The kernel option 'COMPAT_LINUX' is required to run Linux | ||
binaries. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
#!/bin/sh | ||
# $OpenBSD: INSTALL,v 1.1.1.1 2001/09/16 16:47:32 naddy Exp $ | ||
# | ||
# Pre/post-installation setup of redhat_base | ||
|
||
# exit on errors, use a sane path and install prefix | ||
# | ||
set -e | ||
PATH=/bin:/usr/bin:/sbin:/usr/sbin | ||
PREFIX=${PKG_PREFIX:-/usr/local/emul/redhat} | ||
|
||
# Function: tell the user what s/he needs to do to use the port just installed | ||
# | ||
do_notice_top() | ||
{ | ||
echo | ||
echo "+---------------" | ||
echo "|" | ||
} | ||
|
||
do_notice_link() | ||
{ | ||
echo "| /emul/linux already exists but it's not a symlink to $PREFIX." | ||
echo "|" | ||
echo "| To make this port active you must make /emul/linux a symlink to" | ||
echo "| $PREFIX." | ||
echo "|" | ||
} | ||
|
||
do_notice_bottom() | ||
{ | ||
echo "| Installation of $1 complete. See compat_linux(8)" | ||
echo "| for more information." | ||
echo "|" | ||
echo "+---------------" | ||
echo | ||
} | ||
|
||
# verify proper execution | ||
# | ||
if [ $# -ne 2 ]; then | ||
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2 | ||
exit 1 | ||
fi | ||
|
||
# Verify/process the command | ||
# | ||
case $2 in | ||
PRE-INSTALL) | ||
install -d -o root -g bin -m 755 /emul | ||
install -d -o root -g bin -m 755 $PREFIX | ||
;; | ||
POST-INSTALL) | ||
do_notice_top | ||
|
||
if [ -e /emul/linux ]; then | ||
if [ x`readlink /emul/linux` != x"$PREFIX" ]; then | ||
do_notice_link | ||
fi | ||
else | ||
ln -sf $PREFIX /emul/linux | ||
fi | ||
|
||
do_notice_bottom $1 | ||
;; | ||
*) | ||
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2 | ||
exit 1 | ||
;; | ||
esac | ||
|
||
exit 0 |
Oops, something went wrong.