Date: Tue, 11 Jan 2005 21:01:31 +0000 (GMT) From: Trevor Johnson <trevor@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/76119: new port linux_base-suse-9.2 Message-ID: <20050111210131.7D48C16A4CF@hub.freebsd.org> Resent-Message-ID: <200501112110.j0BLAC2H089664@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 76119 >Category: ports >Synopsis: new port linux_base-suse-9.2 >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: Tue Jan 11 21:10:11 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Trevor Johnson >Release: >Organization: >Environment: >Description: new linux_base port derived from SuSE Linux 9.2--also see PR 75296 >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: # # linux_base-suse-9.2/ # linux_base-suse-9.2/files # linux_base-suse-9.2/files/yp.conf # linux_base-suse-9.2/distinfo # linux_base-suse-9.2/pkg-descr # linux_base-suse-9.2/pkg-install # linux_base-suse-9.2/pkg-message # linux_base-suse-9.2/Makefile # echo c - linux_base-suse-9.2/ mkdir -p linux_base-suse-9.2/ > /dev/null 2>&1 echo c - linux_base-suse-9.2/files mkdir -p linux_base-suse-9.2/files > /dev/null 2>&1 echo x - linux_base-suse-9.2/files/yp.conf sed 's/^X//' >linux_base-suse-9.2/files/yp.conf << 'END-of-linux_base-suse-9.2/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-linux_base-suse-9.2/files/yp.conf echo x - linux_base-suse-9.2/distinfo sed 's/^X//' >linux_base-suse-9.2/distinfo << 'END-of-linux_base-suse-9.2/distinfo' XMD5 (rpm/i386/suse/9.2/suse-release-9.2-3.1.i586.rpm) = ac6e730255eb40a269c535e26d9f0219 XSIZE (rpm/i386/suse/9.2/suse-release-9.2-3.1.i586.rpm) = 3397 XMD5 (rpm/i386/suse/9.2/glibc-locale-2.3.3-118.i586.rpm) = d65119224f0af88a2b5cf91ba988f044 XSIZE (rpm/i386/suse/9.2/glibc-locale-2.3.3-118.i586.rpm) = 10421947 XMD5 (rpm/i386/suse/9.2/glibc-2.3.3-118.i586.rpm) = a8bcf2dace372a79446d2550f0faca1f XSIZE (rpm/i386/suse/9.2/glibc-2.3.3-118.i586.rpm) = 2164164 XMD5 (rpm/i386/suse/9.2/filesystem-9.2-2.1.i586.rpm) = f6a00e58f0b994bfa67fb30cbce20b08 XSIZE (rpm/i386/suse/9.2/filesystem-9.2-2.1.i586.rpm) = 42160 XMD5 (rpm/i386/suse/9.2/libattr-2.4.16-2.i586.rpm) = d8588c8d751478edfd36054118a7313b XSIZE (rpm/i386/suse/9.2/libattr-2.4.16-2.i586.rpm) = 11229 XMD5 (rpm/i386/suse/9.2/db-4.2.52-90.i586.rpm) = 961cb3b22d52329d248f112b1a36eb22 XSIZE (rpm/i386/suse/9.2/db-4.2.52-90.i586.rpm) = 1546961 XMD5 (rpm/i386/suse/9.2/compat-gdbm-1.8.0-4.i586.rpm) = 0880c0f33dc54990e03282d4132f95c7 XSIZE (rpm/i386/suse/9.2/compat-gdbm-1.8.0-4.i586.rpm) = 33781 XMD5 (rpm/i386/suse/9.2/glib-1.2.10-589.i586.rpm) = 7d54a19381166a8de96792d650fdc44d XSIZE (rpm/i386/suse/9.2/glib-1.2.10-589.i586.rpm) = 125083 XMD5 (rpm/i386/suse/9.2/bash-3.0-8.2.i586.rpm) = e0153fb04671465c652ace59d2c322e0 XSIZE (rpm/i386/suse/9.2/bash-3.0-8.2.i586.rpm) = 718905 XMD5 (rpm/i386/suse/9.2/ncurses-5.4-65.i586.rpm) = d5a6534ed6bf21e27710b035a5b3e423 XSIZE (rpm/i386/suse/9.2/ncurses-5.4-65.i586.rpm) = 793431 XMD5 (rpm/i386/suse/9.2/readline-5.0-1.2.i586.rpm) = 44b6eb67921d1833682d1b3fc26fb19a XSIZE (rpm/i386/suse/9.2/readline-5.0-1.2.i586.rpm) = 173935 XMD5 (rpm/i386/suse/9.2/zlib-1.2.1-74.i586.rpm) = fd6300d65994f13b479161cb6930f6c9 XSIZE (rpm/i386/suse/9.2/zlib-1.2.1-74.i586.rpm) = 63579 XMD5 (rpm/i386/suse/9.2/bzip2-1.0.2-347.i586.rpm) = 8468ec523c33d4559fb967ec916c2628 XSIZE (rpm/i386/suse/9.2/bzip2-1.0.2-347.i586.rpm) = 221859 XMD5 (rpm/i386/suse/9.2/libzio-0.1-4.i586.rpm) = 277f05b2ecd45a2b0088c7e045124297 XSIZE (rpm/i386/suse/9.2/libzio-0.1-4.i586.rpm) = 17991 XMD5 (rpm/i386/suse/9.2/info-4.7-6.i586.rpm) = fabe2a1b37575d3ea6847626b067fade XSIZE (rpm/i386/suse/9.2/info-4.7-6.i586.rpm) = 151079 XMD5 (rpm/i386/suse/9.2/grep-2.5.1-431.i586.rpm) = f2f1d59e5c9a4ec81e5c8d67698b991c XSIZE (rpm/i386/suse/9.2/grep-2.5.1-431.i586.rpm) = 170613 XMD5 (rpm/i386/suse/9.2/desktop-file-utils-0.7-2.1.i586.rpm) = 53c1872498adea24084ffe12b167aab3 XSIZE (rpm/i386/suse/9.2/desktop-file-utils-0.7-2.1.i586.rpm) = 174729 XMD5 (rpm/i386/suse/9.2/coreutils-5.2.1-32.i586.rpm) = f5f8fed7738007df5db3374a2d61c148 XSIZE (rpm/i386/suse/9.2/coreutils-5.2.1-32.i586.rpm) = 1984866 XMD5 (rpm/i386/suse/9.2/popt-1.7-190.i586.rpm) = 248ef2cc0513b505eab464e4641f45ed XSIZE (rpm/i386/suse/9.2/popt-1.7-190.i586.rpm) = 56646 XMD5 (rpm/i386/suse/9.2/insserv-1.00.5-6.2.i586.rpm) = 8f8543ac0be6e1b16034c9cfb8c40292 XSIZE (rpm/i386/suse/9.2/insserv-1.00.5-6.2.i586.rpm) = 25559 XMD5 (rpm/i386/suse/9.2/setserial-2.17-579.i586.rpm) = 189d00077f799b6cb16596ca0466d1a6 XSIZE (rpm/i386/suse/9.2/setserial-2.17-579.i586.rpm) = 23993 XMD5 (rpm/i386/suse/9.2/libstdc++-3.3.4-11.i586.rpm) = eb835b4422a99a18f4ab80ea6eb25b2f XSIZE (rpm/i386/suse/9.2/libstdc++-3.3.4-11.i586.rpm) = 307043 XMD5 (rpm/i386/suse/9.2/slang-1.4.9-123.i586.rpm) = fdc940570ada56f5f219b9b987e8e9c2 XSIZE (rpm/i386/suse/9.2/slang-1.4.9-123.i586.rpm) = 234160 XMD5 (rpm/i386/suse/9.2/libacl-2.2.25-2.i586.rpm) = 33e666756aff6b7d18bb2df6d85bebcf XSIZE (rpm/i386/suse/9.2/libacl-2.2.25-2.i586.rpm) = 18746 XMD5 (rpm/i386/suse/9.2/libselinux-1.16-3.i586.rpm) = d96ae07933f3c96efbdb67c78e2f861f XSIZE (rpm/i386/suse/9.2/libselinux-1.16-3.i586.rpm) = 60838 XMD5 (rpm/i386/suse/9.2/rpm-4.1.1-191.i586.rpm) = e9f77ab26547660a2189e9a4113fbbfc XSIZE (rpm/i386/suse/9.2/rpm-4.1.1-191.i586.rpm) = 2195082 XMD5 (rpm/i386/suse/9.2/libgcc-3.3.4-11.i586.rpm) = 2e94704e5d4d7dcf00dffa133cfa18de XSIZE (rpm/i386/suse/9.2/libgcc-3.3.4-11.i586.rpm) = 54112 XMD5 (rpm/i386/suse/9.2/termcap-2.0.8-878.i586.rpm) = b88f9fc04f343c10e6a5c867b3e1f519 XSIZE (rpm/i386/suse/9.2/termcap-2.0.8-878.i586.rpm) = 60970 END-of-linux_base-suse-9.2/distinfo echo x - linux_base-suse-9.2/pkg-descr sed 's/^X//' >linux_base-suse-9.2/pkg-descr << 'END-of-linux_base-suse-9.2/pkg-descr' XThis port contains packages from a near-minimal installation of SuSE Linux X9.2. These packages, in conjunction with the linux module, form the basis of Xthe Linux compatibility environment. X XThis port is available for the i386 architecture and experimentally for amd64. XIf you use an Alpha computer, please install the linux_base or Xlinux_base-gentoo-stage1 port instead. X XWWW: http://www.novell.com/linux/suse/index.html END-of-linux_base-suse-9.2/pkg-descr echo x - linux_base-suse-9.2/pkg-install sed 's/^X//' >linux_base-suse-9.2/pkg-install << 'END-of-linux_base-suse-9.2/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-linux_base-suse-9.2/pkg-install echo x - linux_base-suse-9.2/pkg-message sed 's/^X//' >linux_base-suse-9.2/pkg-message << 'END-of-linux_base-suse-9.2/pkg-message' XInstallation of the Linux base system is finished. The Linux kernel mode, which Xmust be enabled for Linux binaries to run, is now enabled. Linux mode can be Xenabled permanently with the linux_enable variable of rc.conf(5). X XWhen using NIS, be sure to edit yp.conf in /compat/linux/etc/. X XYou may wish to create and populate /compat/linux/dev/ if you plan to chroot Xinto your Linux installation. END-of-linux_base-suse-9.2/pkg-message echo x - linux_base-suse-9.2/Makefile sed 's/^X//' >linux_base-suse-9.2/Makefile << 'END-of-linux_base-suse-9.2/Makefile' X# New ports collection makefile for: linux_base-suse-9.2 X# Date created: 2005-01-11 X# Whom: trevor X# based on ports/emulators/linux_base by Marcel Moolenaar and others X# X# $FreeBSD$ X# X XPORTNAME= linux_base-suse XPORTVERSION= 9.2 XCATEGORIES= emulators linux XMASTER_SITES= ${MASTER_SITE_SUSE} ${MASTER_SITE_SUSE:S/$/:update/} XMASTER_SITE_SUBDIR= i386/9.2/suse/i586 i386/update/9.2/rpm/i586/:update XDISTFILES= \ X suse-release-9.2-3.1.i586.rpm \ X glibc-locale-2.3.3-118.i586.rpm \ X glibc-2.3.3-118.i586.rpm \ X filesystem-9.2-2.1.i586.rpm \ X libattr-2.4.16-2.i586.rpm \ X db-4.2.52-90.i586.rpm \ X compat-gdbm-1.8.0-4.i586.rpm \ X glib-1.2.10-589.i586.rpm \ X bash-3.0-8.2.i586.rpm:update \ X ncurses-5.4-65.i586.rpm \ X readline-5.0-1.2.i586.rpm:update \ X zlib-1.2.1-74.i586.rpm \ X bzip2-1.0.2-347.i586.rpm \ X libzio-0.1-4.i586.rpm \ X info-4.7-6.i586.rpm \ X grep-2.5.1-431.i586.rpm \ X desktop-file-utils-0.7-2.1.i586.rpm \ X coreutils-5.2.1-32.i586.rpm \ X popt-1.7-190.i586.rpm \ X insserv-1.00.5-6.2.i586.rpm \ X setserial-2.17-579.i586.rpm \ X libstdc++-3.3.4-11.i586.rpm \ X slang-1.4.9-123.i586.rpm \ X libacl-2.2.25-2.i586.rpm \ X libselinux-1.16-3.i586.rpm \ X rpm-4.1.1-191.i586.rpm \ X libgcc-3.3.4-11.i586.rpm \ X termcap-2.0.8-878.i586.rpm X XMAINTAINER= trevor@FreeBSD.org XCOMMENT= Basic packages for Linux mode from SUSE 9.2/i386 X XEXTRACT_DEPENDS= rpm:${PORTSDIR}/archivers/rpm X XCONFLICTS= linux_base-6* linux_base-7* linux_base-debian* \ X linux_base-gentoo* linux_base-rh-9* linux_base-suse-9.1* X XRESTRICTED= "binaries under GNU GPL without accompanying source" XONLY_FOR_ARCHS= amd64 i386 XDIST_SUBDIR= rpm/i386/suse/9.2 XPREFIX= ${LINUXBASE} XNO_FILTER_SHLIBS= yes XNO_MTREE= yes XPLIST= ${WRKDIR}/pkg-plist X X.undef USE_LINUX X X.include <bsd.port.pre.mk> XDBPATH= /var/lib/rpm XRPM= LC_ALL=C rpm XRPMFLAGS= --root ${WRKSRC} --dbpath ${DBPATH} --nodeps \ X --replacepkgs --ignoreos --ignorearch XRPMDIR= ${DISTDIR}/${DIST_SUBDIR} 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 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 @${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# 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 statically linked binaries. X @/sbin/sysctl -w ${FALLBACK_ELF_MIB}=${LINUX_ELF} X @for R in ${DISTFILES:S/:update//}; 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 an X# mtab in etc, albeit an empty one. This is needed in a couple of X# cases, notably staroffice6. X# X ${INSTALL} ${COPY} -m 644 ${FILESDIR}/yp.conf ${WRKSRC}/etc X ${TOUCH} ${WRKSRC}/etc/mtab ${WRKSRC}/etc/host.conf 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 Xdo-build: X# X# Generate packing list. X cd ${WRKSRC} && ${FIND} -s * -type f -o -type l > ${PLIST} \ X && ${FIND} -d * -type d | ${SED} -e 's:^:@dirrm :' >> ${PLIST} X Xdo-install: X# X# Try to hard-link the contents of the work directory to the installation X# directory. If hard-linking is possible (installing to the same mount point), X# no disk space is consumed in the installation step. The fallback is to copy, X# and cpio is noisy in this case. X cd ${WRKSRC} && ${FIND} * | ${CPIO} -dlmp ${PREFIX} X ${FIND} ${PREFIX} -type d -exec ${CHMOD} 755 \{\} \; X Xpost-install: X @fmt ${PKGMESSAGE} X X.include <bsd.port.post.mk> END-of-linux_base-suse-9.2/Makefile exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050111210131.7D48C16A4CF>