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
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.
|
# 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 |
|