Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-embedded
Navigation:
Lists: gentoo-embedded: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-embedded@g.o
From: david@...
Subject: baselayout-lite prototype
Date: Fri, 23 Jan 2004 11:49:11 -0800
so, chris pebenito and I had thrown together a baselayout lite package
the other day.  I put some files of mine I had lying around, and
modified a few lines of the ebuild.. and here it is!

comment/suggestions/flames/patches welcome

the passwd and group files only have one user, root 
and the passwd file is from tinylogin with the root password being
"carriage-return" on prompt

anyway... check it out.
Attachment:
baselayout-lite-1.0_pre1.tar.bz2 (Binary data)
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $

IUSE=""

DESCRIPTION="Baselayout for embedded systems"
HOMEPAGE="http://www.gentoo.org/proj/en/base/embedded/"
SRC_URI="mirror://gentoo/${P}.tar.bz2"
LICENSE="GPL-2"
#PROVIDE="sys-ap/baselayout"
SLOT="0"

S=${WORKDIR}/${P}

src_install() {
	keepdir /bin /etc /home /lib /sbin /usr /var /proc /root
	
	insinto /etc
	doins ${S}/{fstab,group,nsswitch.conf,passwd,profile.env,protocols,shells}

#	if [ -z "`use shadow`" ]; then
#		doins ${S}/shadow
#	fi
	
}

pkg_postinst() {
	# Doing device node creation here, since portage doesnt record
	# device nodes in CONTENTS

	cd ${ROOT}/dev
	einfo "Making device nodes (this could take a minute or so...)"

	MAKEDEV std
	mknod -m 0600 console c 5 1

	for i in 0 1 2 3 4; do
		mknod -m 0660 hda${i/0} b 3 ${i}
		chown root:disk hda${i/0}
		mknod -m 0600 tty${i} c 4 ${i}
		chown root:tty tty${i}
	done

	MAKEDEV ttyS0
}

--
gentoo-embedded@g.o mailing list
Replies:
Re: baselayout-lite prototype
-- Chris PeBenito
Navigation:
Lists: gentoo-embedded: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: (was) working hxgcc, related to uclibc
Next by thread:
Re: baselayout-lite prototype
Previous by date:
Re: (was) working hxgcc, related to uclibc
Next by date:
test, please disregard


Updated Jun 17, 2009

Summary: Archive of the gentoo-embedded mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.