Date: Sat, 18 Dec 2004 23:19:27 +0000 (GMT) From: Trevor Johnson <trevor@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/75241: new port linux_base-rh-9 Message-ID: <20041218231927.2188A16A4D0@hub.freebsd.org> Resent-Message-ID: <200412182320.iBINKOaL018218@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 75241 >Category: ports >Synopsis: new port linux_base-rh-9 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Sat Dec 18 23:20:24 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Trevor Johnson >Release: >Organization: >Environment: >Description: This is a new Linux base port with packages from Red Hat Linux 9. It should be repo-copied from ports/emulators/linux_base-8. >How-To-Repeat: N/A >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # . # ./files # ./files/yp.conf # ./Makefile # ./pkg-descr # ./pkg-install # ./pkg-message # ./distinfo # echo c - . mkdir -p . > /dev/null 2>&1 echo c - ./files mkdir -p ./files > /dev/null 2>&1 echo x - ./files/yp.conf sed 's/^X//' >./files/yp.conf << 'END-of-./files/yp.conf' X# sample yp.conf file X# X# Legal entries are: X# X# domainname <domain> Override the default YP domain X# (If not set uses the one from X# the getdomainname() syscall) X# X# ypserver <grape> [<domain>] Define which host to contact X# for YP service. If the <domain> X# argument is included then this X# host service the specified YP X# domain. X#domainname my.domain X#ypserver localhost END-of-./files/yp.conf echo x - ./Makefile sed 's/^X//' >./Makefile << 'END-of-./Makefile' X# New ports collection makefile for: linux_base-rh-9 X# Date created: 2004-11-15 X# Whom: Xin Li X# based on linux_base-8 port by Marcel Moolenaar, Trevor Johnson and others X# X# $FreeBSD$ X# X XPORTNAME= linux_base-rh XPORTVERSION= 9 XCATEGORIES= emulators linux XMASTER_SITES= ${MASTER_SITE_REDHAT_LINUX} \ X ${MASTER_SITE_REDHAT_LINUX:S/$/:new/} XMASTER_SITE_SUBDIR= \ X ${PORTVERSION}/${LANG}/os/i386/RedHat/RPMS \ X updates/${PORTVERSION}/${LANG}/os/i386/:new XDISTFILES= glibc-common-2.3.2-11.9.i386.rpm \ X glibc-2.3.2-11.9.i386.rpm \ X redhat-release-9-3.i386.rpm \ X setup-2.5.25-1.noarch.rpm \ X filesystem-2.2.1-3.i386.rpm \ X basesystem-8.0-2.noarch.rpm \ X zlib-1.1.4-8.i386.rpm \ X libattr-2.2.0-1.i386.rpm \ X libacl-2.2.3-1.i386.rpm \ X elfutils-libelf-0.76-3.i386.rpm \ X bzip2-libs-1.0.2-8.i386.rpm \ X termcap-11.0.1-16.noarch.rpm \ X db4-4.0.14-20.i386.rpm \ X gdbm-1.8.0-20.i386.rpm \ X glib-1.2.10-10.i386.rpm \ X libtermcap-2.0.8-35.i386.rpm \ X bash-2.05b-20.1.i386.rpm \ X bzip2-1.0.2-8.i386.rpm \ X compat-libstdc++-7.3-2.96.118.i386.rpm \ X ncurses-5.3-4.i386.rpm \ X info-4.3-5.i386.rpm \ X pcre-3.9-10.i386.rpm \ X findutils-4.1.7-9.i386.rpm \ X grep-2.5.1-7.i386.rpm \ X coreutils-4.5.3-19.0.2.i386.rpm:new \ X popt-1.8-0.69.i386.rpm \ X readline-4.3-5.i386.rpm \ X setserial-2.17-12.i386.rpm \ X libstdc++-3.2.2-5.i386.rpm \ X slang-1.4.5-16.i386.rpm \ X glibc-utils-2.3.2-11.9.i386.rpm \ X rpm-4.2-0.69.i386.rpm \ X libgcc-3.2.2-5.i386.rpm \ X freetype-2.1.3-6.i386.rpm X XMAINTAINER= ports@FreeBSD.org XCOMMENT= Base set of packages needed in Linux mode (only for i386) X XEXTRACT_DEPENDS= rpm:${PORTSDIR}/archivers/rpm X XCONFLICTS= cle_base-* linux_base-6* linux_base-7* linux_base-8* \ X linux_base-deb* linux_base-gen* XRESTRICTED= "binaries under GNU GPL without accompanying source" XONLY_FOR_ARCHS= amd64 i386 XDIST_SUBDIR= rpm/i386/rh9 XPREFIX= ${LINUXBASE} XNO_BUILD= yes XNO_FILTER_SHLIBS= yes XNO_MTREE= yes XPLIST= ${WRKDIR}/pkg-plist X X# Red Hat 9 is only available in English. XLANG= en X X.ifdef USE_LINUX X.error You have `USE_LINUX' variable defined either in environment or in make(1) arguments. Please undefine and try again. X.endif X X.include <bsd.port.pre.mk> X XDBPATH= /var/lib/rpm XRPM= LC_ALL=C rpm XRPMFLAGS= --root ${WRKSRC} --dbpath ${DBPATH} --nodeps \ X --replacepkgs --ignoreos --ignorearch XRPMDIR= ${DISTDIR}/${DIST_SUBDIR} X XREMOVE_DIRS= boot dev home initrd root tmp var/tmp usr/local usr/tmp XREMOVE_FILES= bin/df bin/su etc/exports etc/group etc/localtime \ X etc/motd etc/passwd etc/printcap etc/services \ X etc/protocols XBRAND_FILES= bin/rpm sbin/ldconfig sbin/sln X X.if (${ARCH} == "amd64") XLATEST_LINK:= ${LATEST_LINK:C/linux/linux32/} XFALLBACK_ELF_MIB= kern.elf32.fallback_brand X.else XFALLBACK_ELF_MIB= kern.fallback_elf_brand X.endif XLINUX_ELF= 3 XPREVIOUS_ELF!= /sbin/sysctl -n ${FALLBACK_ELF_MIB} X Xdo-extract: X# X# Handle the loading of the linux loadable kernel module if required. X @${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL X X @${MKDIR} ${WRKSRC}/${DBPATH} ${WRKSRC}/var/tmp ${WRKSRC}/lib X @cd ${WRKSRC}/lib && ${LN} -sf libtermcap.so.2.0.8 libtermcap.so.2 X @${RPM} --initdb --root ${WRKSRC} --dbpath ${DBPATH} X# X# Make sure we have a /dev/null in the chrooted environment. X @${MKDIR} ${WRKSRC}/dev X @${RM} -f ${WRKSRC}/dev/null X @mknod ${WRKSRC}/dev/null c 2 2 X @${CHMOD} 666 ${WRKSRC}/dev/null X# X# Install all packages. Ignore dependencies just like the Red Hat installer. X# Also, set the ELF fallback brand to Linux, so that we don't have to do X# anything special to run staticly linked binaries. X @/sbin/sysctl -w ${FALLBACK_ELF_MIB}=${LINUX_ELF} X @for R in ${DISTFILES:S/:new//}; do \ X ${ECHO} $$R; \ X ${RPM} -U ${RPMFLAGS} ${RPMDIR}/$$R; \ X done X @for F in ${BRAND_FILES}; do \ X ${BRANDELF} -t Linux ${WRKSRC}/$$F; \ X done X @/sbin/sysctl -w ${FALLBACK_ELF_MIB}=${PREVIOUS_ELF} X# X# Install yp.conf as a hint to NIS users and make sure there's a X# mtab in etc, albeit an empty one. This is needed in a couple of X# cases. Most notably staroffice6. X# X ${INSTALL} ${COPY} -m 644 ${FILESDIR}/yp.conf ${WRKSRC}/etc X ${TOUCH} ${WRKSRC}/etc/mtab X# X# Finish X# X @for D in ${REMOVE_DIRS}; do \ X ${RM} -rf ${WRKSRC}/$$D; \ X done X @for F in ${REMOVE_FILES}; do \ X ${RM} -f ${WRKSRC}/$$F; \ X done X @${LN} -sf /var/tmp ${WRKSRC}/usr/tmp X Xpre-install: X ${RM} -f ${PLIST} X cd ${WRKSRC} && ${FIND} -s . -type f -o -type l | \ X ${CUT} -c3-999 >> ${PLIST} \ X && ${FIND} -d * -type d | ${SED} -e 's:^:@dirrm :' >> ${PLIST} X Xdo-install: X cd ${WRKSRC} && ${FIND} * | ${CPIO} -dlmp ${PREFIX} X ${FIND} ${PREFIX} -type d -exec ${CHMOD} 755 \{\} \; X Xpost-install: X @${ECHO} '' X @fmt ${PKGMESSAGE} X @${ECHO} '' X X.include <bsd.port.post.mk> END-of-./Makefile echo x - ./pkg-descr sed 's/^X//' >./pkg-descr << 'END-of-./pkg-descr' XThis port contains packages from a near-minimal installation of Red Hat Linux X9.0. These packages, in conjunction with the linux module, form the basis of Xthe Linux compatibility environment. X XThis port is only available for the i386 architecture. If you use an Alpha Xcomputer, please install the linux_base port instead of this one. X XIf you want to run X11 applications, install the x11/linux-XFree86-libs port. END-of-./pkg-descr echo x - ./pkg-install sed 's/^X//' >./pkg-install << 'END-of-./pkg-install' X#!/bin/sh X# an installation script for linux_base X Xcase "$2" in XPRE-INSTALL) X if [ -z "`kldstat -v | grep -E 'linux(aout|elf)'`" ]; then X echo 'Linux mode is not enabled.' X echo 'Loading linux kernel module now...' X if ! kldload linux; then X echo 'The linux kernel module could not be loaded.' X echo 'Please enable linux mode manually and retry.' X exit 1 X fi X fi X if [ -n "`mount | grep -w ^linprocfs`" ]; then X echo 'Un-mounting linprocfs...' X umount linprocfs X fi X if [ -n "`mount | grep -w ^linproc`" ]; then X echo 'Un-mounting linproc...' X umount linproc X fi X ;; XPOST-INSTALL) X if [ -n "`grep -w ^linprocfs /etc/fstab`" ]; then X echo 'Re-mounting linprocfs...' X mount linprocfs X fi X if [ -n "`grep -w ^linprocfs /etc/fstab`" ]; then X echo 'Re-mounting linproc...' X mount linproc X fi X ;; XDEINSTALL) X if [ -n "`mount | grep -w ^linprocfs`" ]; then X echo 'Un-mounting linprocfs...' X umount linprocfs X fi X if [ -n "`mount | grep -w ^linproc`" ]; then X echo 'Un-mounting linproc...' X umount linproc X fi X ;; Xesac X Xexit 0 END-of-./pkg-install echo x - ./pkg-message sed 's/^X//' >./pkg-message << 'END-of-./pkg-message' XThis software is based in part on the work of the FreeType Team. XSee <URL:http://www.freetype.org/>. X XInstallation of the Linux base system is Xfinished. The Linux kernel mode, which Xmust be enabled for Linux binaries to run, Xis now enabled. Linux mode can be enabled Xpermanently with the linux_enable variable Xof rc.conf(5). X XWhen using NIS, don't forget to edit Xyp.conf in /compat/linux/etc. END-of-./pkg-message echo x - ./distinfo sed 's/^X//' >./distinfo << 'END-of-./distinfo' XMD5 (rpm/i386/rh9/glibc-common-2.3.2-11.9.i386.rpm) = f63000e72fc1adc2c23d4de3ba9ca2a0 XSIZE (rpm/i386/rh9/glibc-common-2.3.2-11.9.i386.rpm) = 12422695 XMD5 (rpm/i386/rh9/glibc-2.3.2-11.9.i386.rpm) = d923d7a9a5ac6c25cb51517b23843f78 XSIZE (rpm/i386/rh9/glibc-2.3.2-11.9.i386.rpm) = 3240600 XMD5 (rpm/i386/rh9/redhat-release-9-3.i386.rpm) = 4002643ba2e2077ccc22ef616d69c9fe XSIZE (rpm/i386/rh9/redhat-release-9-3.i386.rpm) = 515869 XMD5 (rpm/i386/rh9/setup-2.5.25-1.noarch.rpm) = 0adc91fc02ea439db469bd27ee6609de XSIZE (rpm/i386/rh9/setup-2.5.25-1.noarch.rpm) = 28208 XMD5 (rpm/i386/rh9/filesystem-2.2.1-3.i386.rpm) = 897e20be2729051cae7a5bc32efb6b3f XSIZE (rpm/i386/rh9/filesystem-2.2.1-3.i386.rpm) = 14341 XMD5 (rpm/i386/rh9/basesystem-8.0-2.noarch.rpm) = 64bc91a544ed3b175e617df2b6683eec XSIZE (rpm/i386/rh9/basesystem-8.0-2.noarch.rpm) = 2673 XMD5 (rpm/i386/rh9/zlib-1.1.4-8.i386.rpm) = c8e2f95e60e75fcfe51dba704c5a6f11 XSIZE (rpm/i386/rh9/zlib-1.1.4-8.i386.rpm) = 33793 XMD5 (rpm/i386/rh9/libattr-2.2.0-1.i386.rpm) = 6a69d08708521afac968d8ef8e72577d XSIZE (rpm/i386/rh9/libattr-2.2.0-1.i386.rpm) = 6608 XMD5 (rpm/i386/rh9/libacl-2.2.3-1.i386.rpm) = f7b521696dfd920f2ae12410af148025 XSIZE (rpm/i386/rh9/libacl-2.2.3-1.i386.rpm) = 12927 XMD5 (rpm/i386/rh9/elfutils-libelf-0.76-3.i386.rpm) = 1f4a143c12634884ce2a36eef141e6b3 XSIZE (rpm/i386/rh9/elfutils-libelf-0.76-3.i386.rpm) = 34806 XMD5 (rpm/i386/rh9/bzip2-libs-1.0.2-8.i386.rpm) = 996ac1deed904c7d75960b31dfe61b01 XSIZE (rpm/i386/rh9/bzip2-libs-1.0.2-8.i386.rpm) = 32169 XMD5 (rpm/i386/rh9/termcap-11.0.1-16.noarch.rpm) = 2392055e8d44522ac95a050b6c30079b XSIZE (rpm/i386/rh9/termcap-11.0.1-16.noarch.rpm) = 242197 XMD5 (rpm/i386/rh9/db4-4.0.14-20.i386.rpm) = 5fec52fddea8e7cd88cfaa34839cc4b3 XSIZE (rpm/i386/rh9/db4-4.0.14-20.i386.rpm) = 4744842 XMD5 (rpm/i386/rh9/gdbm-1.8.0-20.i386.rpm) = 819986ab928712c2c3c9324d74b360b8 XSIZE (rpm/i386/rh9/gdbm-1.8.0-20.i386.rpm) = 26370 XMD5 (rpm/i386/rh9/glib-1.2.10-10.i386.rpm) = 24d900aaab3ca9561f7ff2d7e3a206bb XSIZE (rpm/i386/rh9/glib-1.2.10-10.i386.rpm) = 136340 XMD5 (rpm/i386/rh9/libtermcap-2.0.8-35.i386.rpm) = 26883bbee99b436059bd8db85426f3d4 XSIZE (rpm/i386/rh9/libtermcap-2.0.8-35.i386.rpm) = 12318 XMD5 (rpm/i386/rh9/bash-2.05b-20.1.i386.rpm) = fa2aa425bd39ba4a9857dba700227dea XSIZE (rpm/i386/rh9/bash-2.05b-20.1.i386.rpm) = 755065 XMD5 (rpm/i386/rh9/bzip2-1.0.2-8.i386.rpm) = ca663b78121235bdaafeced854e8e966 XSIZE (rpm/i386/rh9/bzip2-1.0.2-8.i386.rpm) = 47737 XMD5 (rpm/i386/rh9/compat-libstdc++-7.3-2.96.118.i386.rpm) = 7cea2aefd79016d6ca14f7b5d05a6a2c XSIZE (rpm/i386/rh9/compat-libstdc++-7.3-2.96.118.i386.rpm) = 1054177 XMD5 (rpm/i386/rh9/ncurses-5.3-4.i386.rpm) = e941b37d22dc9ac4a8c37960c5fa337f XSIZE (rpm/i386/rh9/ncurses-5.3-4.i386.rpm) = 886637 XMD5 (rpm/i386/rh9/info-4.3-5.i386.rpm) = 8ce01d5cf0287d8cb012bce443679658 XSIZE (rpm/i386/rh9/info-4.3-5.i386.rpm) = 144807 XMD5 (rpm/i386/rh9/pcre-3.9-10.i386.rpm) = b545fff04823c776e37142764e31613c XSIZE (rpm/i386/rh9/pcre-3.9-10.i386.rpm) = 45326 XMD5 (rpm/i386/rh9/findutils-4.1.7-9.i386.rpm) = be0e80cec36c3eabf172d5003dd79466 XSIZE (rpm/i386/rh9/findutils-4.1.7-9.i386.rpm) = 103469 XMD5 (rpm/i386/rh9/grep-2.5.1-7.i386.rpm) = 0606cd6f5516817fe56d6bcc8afe179a XSIZE (rpm/i386/rh9/grep-2.5.1-7.i386.rpm) = 170719 XMD5 (rpm/i386/rh9/coreutils-4.5.3-19.0.2.i386.rpm) = da3fc5f54917452a4fa704330e193e24 XSIZE (rpm/i386/rh9/coreutils-4.5.3-19.0.2.i386.rpm) = 2413694 XMD5 (rpm/i386/rh9/popt-1.8-0.69.i386.rpm) = 8d827ac879feb6bd5a4055a9338d86a1 XSIZE (rpm/i386/rh9/popt-1.8-0.69.i386.rpm) = 65810 XMD5 (rpm/i386/rh9/readline-4.3-5.i386.rpm) = c7b7159668d3272083585737a93628eb XSIZE (rpm/i386/rh9/readline-4.3-5.i386.rpm) = 178841 XMD5 (rpm/i386/rh9/setserial-2.17-12.i386.rpm) = 512d62454070b7f34096ef0d0f04be22 XSIZE (rpm/i386/rh9/setserial-2.17-12.i386.rpm) = 20893 XMD5 (rpm/i386/rh9/libstdc++-3.2.2-5.i386.rpm) = 09ffb26f39e27232d3c385f5fbc1ef1d XSIZE (rpm/i386/rh9/libstdc++-3.2.2-5.i386.rpm) = 248680 XMD5 (rpm/i386/rh9/slang-1.4.5-16.i386.rpm) = 0d14e5eb9d08928cac8af3227d601d78 XSIZE (rpm/i386/rh9/slang-1.4.5-16.i386.rpm) = 164841 XMD5 (rpm/i386/rh9/glibc-utils-2.3.2-11.9.i386.rpm) = 4b0ac6d087c47ccf6a4ccde80ffff337 XSIZE (rpm/i386/rh9/glibc-utils-2.3.2-11.9.i386.rpm) = 53354 XMD5 (rpm/i386/rh9/rpm-4.2-0.69.i386.rpm) = 521141f6fe9a3443d7f89627a6f8c71e XSIZE (rpm/i386/rh9/rpm-4.2-0.69.i386.rpm) = 2105385 XMD5 (rpm/i386/rh9/libgcc-3.2.2-5.i386.rpm) = 91cae96d5ac2f19b20cb0c07906aed06 XSIZE (rpm/i386/rh9/libgcc-3.2.2-5.i386.rpm) = 39962 XMD5 (rpm/i386/rh9/freetype-2.1.3-6.i386.rpm) = 64597ef3568d30982be5c0779f062ff2 XSIZE (rpm/i386/rh9/freetype-2.1.3-6.i386.rpm) = 656843 END-of-./distinfo exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041218231927.2188A16A4D0>