Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Dec 2004 10:38:38 +0000 (GMT)
From:      Trevor Johnson <trevor@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/75296: new port linux_base-suse-9.1
Message-ID:  <20041220103838.52FD016A4CF@hub.freebsd.org>
Resent-Message-ID: <200412201040.iBKAeL4s045419@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         75296
>Category:       ports
>Synopsis:       new port linux_base-suse-9.1
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 20 10:40:21 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Trevor Johnson
>Release:        
>Organization:
>Environment:
>Description:
new Linux base port using packages from SUSE Linux 9.1
>How-To-Repeat:
The SUSE Linux distribution is RPM-based, so it integrates well
with ports such as linux-gtk which install an RPM package.  Unlike
Red Hat Linux 6, 7, 8, and 9, security updates for SUSE--and new
releases of the distribution itself--are still issued.

>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.1
#	linux_base-suse-9.1/files
#	linux_base-suse-9.1/files/CVS
#	linux_base-suse-9.1/files/CVS/Root
#	linux_base-suse-9.1/files/CVS/Repository
#	linux_base-suse-9.1/files/CVS/Entries
#	linux_base-suse-9.1/files/yp.conf
#	linux_base-suse-9.1/pkg-descr
#	linux_base-suse-9.1/pkg-install
#	linux_base-suse-9.1/pkg-message
#	linux_base-suse-9.1/Makefile
#	linux_base-suse-9.1/distinfo
#
echo c - linux_base-suse-9.1
mkdir -p linux_base-suse-9.1 > /dev/null 2>&1
echo c - linux_base-suse-9.1/files
mkdir -p linux_base-suse-9.1/files > /dev/null 2>&1
echo c - linux_base-suse-9.1/files/CVS
mkdir -p linux_base-suse-9.1/files/CVS > /dev/null 2>&1
echo x - linux_base-suse-9.1/files/CVS/Root
sed 's/^X//' >linux_base-suse-9.1/files/CVS/Root << 'END-of-linux_base-suse-9.1/files/CVS/Root'
X/home/ncvs
END-of-linux_base-suse-9.1/files/CVS/Root
echo x - linux_base-suse-9.1/files/CVS/Repository
sed 's/^X//' >linux_base-suse-9.1/files/CVS/Repository << 'END-of-linux_base-suse-9.1/files/CVS/Repository'
Xports/emulators/linux_base-8/files
END-of-linux_base-suse-9.1/files/CVS/Repository
echo x - linux_base-suse-9.1/files/CVS/Entries
sed 's/^X//' >linux_base-suse-9.1/files/CVS/Entries << 'END-of-linux_base-suse-9.1/files/CVS/Entries'
X/yp.conf/1.2/Tue Nov 21 07:23:24 2000//
XD
END-of-linux_base-suse-9.1/files/CVS/Entries
echo x - linux_base-suse-9.1/files/yp.conf
sed 's/^X//' >linux_base-suse-9.1/files/yp.conf << 'END-of-linux_base-suse-9.1/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.1/files/yp.conf
echo x - linux_base-suse-9.1/pkg-descr
sed 's/^X//' >linux_base-suse-9.1/pkg-descr << 'END-of-linux_base-suse-9.1/pkg-descr'
XThis port contains packages from a near-minimal installation of SUSE Linux
X9.1.  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 Linux X11 applications, please install the
Xx11/linux-XFree86-libs port.
END-of-linux_base-suse-9.1/pkg-descr
echo x - linux_base-suse-9.1/pkg-install
sed 's/^X//' >linux_base-suse-9.1/pkg-install << 'END-of-linux_base-suse-9.1/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.1/pkg-install
echo x - linux_base-suse-9.1/pkg-message
sed 's/^X//' >linux_base-suse-9.1/pkg-message << 'END-of-linux_base-suse-9.1/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-linux_base-suse-9.1/pkg-message
echo x - linux_base-suse-9.1/Makefile
sed 's/^X//' >linux_base-suse-9.1/Makefile << 'END-of-linux_base-suse-9.1/Makefile'
X# New ports collection makefile for:	linux_base-suse-9.1
X# Date created:				2004-12-19
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.1
XCATEGORIES=		emulators linux
XMASTER_SITES=		${MASTER_SITE_SUSE}
XMASTER_SITE_SUBDIR=	i386/9.1/suse/i586
XDISTFILES=	suse-release-9.1-0.i586.rpm \
X		glibc-locale-2.3.3-98.i586.rpm \
X		glibc-2.3.3-98.i586.rpm \
X		filesystem-9.1-0.i586.rpm \
X		libattr-2.4.12-56.i586.rpm \
X		db-4.2.52-85.i586.rpm \
X		gdbm-1.8.3-225.i586.rpm \
X		glib-1.2.10-586.i586.rpm \
X		bash-2.05b-305.i586.rpm \
X		ncurses-5.4-59.i586.rpm \
X		readline-4.3-306.i586.rpm \
X		zlib-1.2.1-70.i586.rpm \
X		info-4.6-61.i586.rpm \
X		grep-2.5.1-416.i586.rpm \
X		desktop-file-utils-0.3.0.cvs20030807-221.i586.rpm \
X		coreutils-5.2.1-23.i586.rpm \
X		popt-1.7-176.i586.rpm \
X		insserv-1.00.2-85.i586.rpm \
X		setserial-2.17-577.i586.rpm \
X		libstdc++-3.3.3-41.i586.rpm \
X		slang-1.4.9-121.i586.rpm \
X		bzip2-1.0.2-344.i586.rpm \
X		libacl-2.2.21-54.i586.rpm \
X		libselinux-1.8-16.i586.rpm \
X		rpm-4.1.1-177.i586.rpm \
X		libgcc-3.3.3-41.i586.rpm \
X		termcap-2.0.8-876.i586.rpm \
X		freetype2-2.1.7-53.i586.rpm
X
XMAINTAINER=	trevor@FreeBSD.org
XCOMMENT=	Basic packages for Linux mode from SUSE 9.1/i386
X
XEXTRACT_DEPENDS=	rpm:${PORTSDIR}/archivers/rpm
X
XCONFLICTS=	linux_base-6* linux_base-7* linux_base-deb* linux_base-gen*
XRESTRICTED=		"binaries under GNU GPL without accompanying source"
XONLY_FOR_ARCHS=		i386
XDIST_SUBDIR=		rpm/${MACHINE_ARCH}/suse
XPREFIX=			${LINUXBASE}
XNO_BUILD=		yes
XNO_FILTER_SHLIBS=	yes
XNO_MTREE=		yes
XPLIST=			${WRKDIR}/pkg-plist
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>
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# 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 ${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
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-linux_base-suse-9.1/Makefile
echo x - linux_base-suse-9.1/distinfo
sed 's/^X//' >linux_base-suse-9.1/distinfo << 'END-of-linux_base-suse-9.1/distinfo'
XMD5 (rpm/i386/suse/suse-release-9.1-0.i586.rpm) = 64c7f2a65b24be66745ab2ee1b5e89b4
XSIZE (rpm/i386/suse/suse-release-9.1-0.i586.rpm) = 3030
XMD5 (rpm/i386/suse/glibc-locale-2.3.3-98.i586.rpm) = 0dd987d1c41cb0c24ae8f1437a4cb5fe
XSIZE (rpm/i386/suse/glibc-locale-2.3.3-98.i586.rpm) = 10393732
XMD5 (rpm/i386/suse/glibc-2.3.3-98.i586.rpm) = 15ed4f06fa275c2fe708a65ded7e8efe
XSIZE (rpm/i386/suse/glibc-2.3.3-98.i586.rpm) = 1455673
XMD5 (rpm/i386/suse/filesystem-9.1-0.i586.rpm) = cb5c967c87558b9c70083764a8336e59
XSIZE (rpm/i386/suse/filesystem-9.1-0.i586.rpm) = 41238
XMD5 (rpm/i386/suse/libattr-2.4.12-56.i586.rpm) = af5c308fa2a126706d2ea8c026868ef4
XSIZE (rpm/i386/suse/libattr-2.4.12-56.i586.rpm) = 11086
XMD5 (rpm/i386/suse/db-4.2.52-85.i586.rpm) = 9a644221e434ab8b67260391bd7fbba1
XSIZE (rpm/i386/suse/db-4.2.52-85.i586.rpm) = 775965
XMD5 (rpm/i386/suse/gdbm-1.8.3-225.i586.rpm) = 9520e2d862887c650033a8a69ff3bad9
XSIZE (rpm/i386/suse/gdbm-1.8.3-225.i586.rpm) = 27027
XMD5 (rpm/i386/suse/glib-1.2.10-586.i586.rpm) = f8545f68e60d7bf27f0f3b988b27f276
XSIZE (rpm/i386/suse/glib-1.2.10-586.i586.rpm) = 124852
XMD5 (rpm/i386/suse/bash-2.05b-305.i586.rpm) = 21c636daa38c1406d7add2a69416578a
XSIZE (rpm/i386/suse/bash-2.05b-305.i586.rpm) = 636675
XMD5 (rpm/i386/suse/ncurses-5.4-59.i586.rpm) = 5d3b5ddb2508853af9f738968696b257
XSIZE (rpm/i386/suse/ncurses-5.4-59.i586.rpm) = 790419
XMD5 (rpm/i386/suse/readline-4.3-306.i586.rpm) = 26c47a9f0472d0d946cd5c495c790dc5
XSIZE (rpm/i386/suse/readline-4.3-306.i586.rpm) = 151357
XMD5 (rpm/i386/suse/zlib-1.2.1-70.i586.rpm) = 021fa0b41c54e916cd1d1d4f96d37c2c
XSIZE (rpm/i386/suse/zlib-1.2.1-70.i586.rpm) = 63453
XMD5 (rpm/i386/suse/info-4.6-61.i586.rpm) = f205c1491ce440410aa47048a608c0bb
XSIZE (rpm/i386/suse/info-4.6-61.i586.rpm) = 144064
XMD5 (rpm/i386/suse/grep-2.5.1-416.i586.rpm) = b7fb42f3915a67d8d26347e87fc81bc3
XSIZE (rpm/i386/suse/grep-2.5.1-416.i586.rpm) = 169601
XMD5 (rpm/i386/suse/desktop-file-utils-0.3.0.cvs20030807-221.i586.rpm) = 85360525dfad7c3e806dda689dbe3709
XSIZE (rpm/i386/suse/desktop-file-utils-0.3.0.cvs20030807-221.i586.rpm) = 148110
XMD5 (rpm/i386/suse/coreutils-5.2.1-23.i586.rpm) = 2408d42377ed371ac7d322d37994e155
XSIZE (rpm/i386/suse/coreutils-5.2.1-23.i586.rpm) = 1982252
XMD5 (rpm/i386/suse/popt-1.7-176.i586.rpm) = 7f675630429ba0c800569ac99e3a9ca4
XSIZE (rpm/i386/suse/popt-1.7-176.i586.rpm) = 52024
XMD5 (rpm/i386/suse/insserv-1.00.2-85.i586.rpm) = c051fb7190d644c4eeb51f5db5537c8f
XSIZE (rpm/i386/suse/insserv-1.00.2-85.i586.rpm) = 23065
XMD5 (rpm/i386/suse/setserial-2.17-577.i586.rpm) = 47b759eeb2ef816cd1d9384943b3bd32
XSIZE (rpm/i386/suse/setserial-2.17-577.i586.rpm) = 23898
XMD5 (rpm/i386/suse/libstdc++-3.3.3-41.i586.rpm) = c89536486be1657bcd3f941deb5a265b
XSIZE (rpm/i386/suse/libstdc++-3.3.3-41.i586.rpm) = 301785
XMD5 (rpm/i386/suse/slang-1.4.9-121.i586.rpm) = 99279709a3dedfbc38859878f18cb97e
XSIZE (rpm/i386/suse/slang-1.4.9-121.i586.rpm) = 233659
XMD5 (rpm/i386/suse/bzip2-1.0.2-344.i586.rpm) = 5a1b566f07e9cc9e3f43647f446a57d5
XSIZE (rpm/i386/suse/bzip2-1.0.2-344.i586.rpm) = 221961
XMD5 (rpm/i386/suse/libacl-2.2.21-54.i586.rpm) = e07c7272a1b7fd2db1ec87f82c6dc4d3
XSIZE (rpm/i386/suse/libacl-2.2.21-54.i586.rpm) = 18239
XMD5 (rpm/i386/suse/libselinux-1.8-16.i586.rpm) = 89e848b1c6db7aa7801469131e6446a4
XSIZE (rpm/i386/suse/libselinux-1.8-16.i586.rpm) = 47298
XMD5 (rpm/i386/suse/rpm-4.1.1-177.i586.rpm) = 9850bf427d6bec63ac33d1bf6b9fb563
XSIZE (rpm/i386/suse/rpm-4.1.1-177.i586.rpm) = 2182035
XMD5 (rpm/i386/suse/libgcc-3.3.3-41.i586.rpm) = 89bb43e9f4ebcd61635cb2a1e9266f96
XSIZE (rpm/i386/suse/libgcc-3.3.3-41.i586.rpm) = 51314
XMD5 (rpm/i386/suse/termcap-2.0.8-876.i586.rpm) = 50ec2b05091222e358816b82dca8e0e2
XSIZE (rpm/i386/suse/termcap-2.0.8-876.i586.rpm) = 60887
XMD5 (rpm/i386/suse/freetype2-2.1.7-53.i586.rpm) = b253ef843317ab50f12054aaf4a89a49
XSIZE (rpm/i386/suse/freetype2-2.1.7-53.i586.rpm) = 503443
END-of-linux_base-suse-9.1/distinfo
exit
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041220103838.52FD016A4CF>