summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-apps/baselayout/ChangeLog6
-rw-r--r--sys-apps/baselayout/baselayout-1.8.4.2.ebuild490
-rw-r--r--sys-apps/baselayout/baselayout-1.8.5.3.ebuild523
-rw-r--r--sys-apps/baselayout/baselayout-1.8.5.4.ebuild523
-rw-r--r--sys-apps/baselayout/baselayout-1.8.5.5.ebuild4
-rwxr-xr-xsys-apps/baselayout/files/MAKEDEV1440
-rw-r--r--sys-apps/baselayout/files/digest-baselayout-1.8.4.21
-rw-r--r--sys-apps/baselayout/files/digest-baselayout-1.8.5.31
-rw-r--r--sys-apps/baselayout/files/digest-baselayout-1.8.5.41
-rw-r--r--sys-apps/baselayout/files/rc-scripts-1.4.1.2.tar.bz2bin68374 -> 0 bytes
-rw-r--r--sys-apps/baselayout/files/rc-scripts-1.4.2.3.tar.bz2bin74985 -> 0 bytes
-rw-r--r--sys-apps/baselayout/files/rc-scripts-1.4.2.4.tar.bz2bin75816 -> 0 bytes
12 files changed, 7 insertions, 2982 deletions
diff --git a/sys-apps/baselayout/ChangeLog b/sys-apps/baselayout/ChangeLog
index 98a7c33e3138..ac7740efa936 100644
--- a/sys-apps/baselayout/ChangeLog
+++ b/sys-apps/baselayout/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-apps/baselayout
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout/ChangeLog,v 1.50 2002/12/18 10:32:32 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout/ChangeLog,v 1.51 2002/12/18 10:54:20 azarah Exp $
+
+ 18 Dec 2002; Martin Schlemmer <azarah@gentoo.org> baselayout-1.8.5.5.ebuild :
+
+ Bump to stable.
*baselayout-1.8.5.6 (18 Dec 2002)
diff --git a/sys-apps/baselayout/baselayout-1.8.4.2.ebuild b/sys-apps/baselayout/baselayout-1.8.4.2.ebuild
deleted file mode 100644
index 42402115a297..000000000000
--- a/sys-apps/baselayout/baselayout-1.8.4.2.ebuild
+++ /dev/null
@@ -1,490 +0,0 @@
-# Copyright 1999-2002 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout/baselayout-1.8.4.2.ebuild,v 1.2 2002/12/09 04:37:24 manson Exp $
-
-IUSE="bootstrap build"
-
-SV="1.4.1.2"
-SVREV=""
-# SysvInit version
-SVIV="2.84"
-
-S="${WORKDIR}/rc-scripts-${SV}"
-S2="${WORKDIR}/sysvinit-${SVIV}/src"
-DESCRIPTION="Base layout for Gentoo Linux filesystem (incl. initscripts and sysvinit)"
-SRC_URI="ftp://ftp.cistron.nl/pub/people/miquels/software/sysvinit-${SVIV}.tar.gz
- ftp://sunsite.unc.edu/pub/Linux/system/daemons/init/sysvinit-${SVIV}.tar.gz"
-# http://www.ibiblio.org/gentoo/distfiles/rc-scripts-${SV}.tar.bz2"
-HOMEPAGE="http://www.gentoo.org/"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="x86 ppc sparc alpha"
-
-DEPEND="sys-kernel/linux-headers
- >=sys-apps/portage-2.0.23"
-# We need at least portage-2.0.23 to handle these DEPEND's properly.
-
-RDEPEND="${DEPEND}
- || ( >=sys-apps/gawk-3.1.0-r3
- ( !build? ( >=sys-apps/gawk-3.1.0-r3 ) )
- ( !bootstrap? ( >=sys-apps/gawk-3.1.0-r3 ) )
- )"
-# This version of baselayout needs gawk in /bin, but as we do not have
-# a c++ compiler during bootstrap, we cannot depend on it if "bootstrap"
-# or "build" are in USE.
-
-
-# This ebuild needs to be merged "live". You can't simply make a package
-# of it and merge it later.
-
-pkg_setup() {
-
- if [ "${ROOT}" = "/" ]
- then
- # Make sure we do not kill X because of the earlier bad /etc/inittab we used.
- if [ -L ${svcdir}/started/xdm ] && \
- [ -n "`egrep 'x:3:respawn:/etc/X11/startDM.sh' /etc/inittab`" ] && \
- [ -n "`ps -A | egrep "X"`" ]
- then
- echo
- einfo "!!! With the current version of baselayout installed (1.7.3-r1), merging"
- einfo " this version of baselayout will cause X to die if you started it"
- einfo " with the /etc/init.d/xdm script!!!!"
- echo
- einfo "Please quit X and then merge this again."
- die
- fi
- fi
-}
-
-src_unpack() {
-
- unpack sysvinit-${SVIV}.tar.gz
-
- echo ">>> Unpacking rc-scripts-${SV}${SVREV}.tar.bz2"
- tar -jxf ${FILESDIR}/rc-scripts-${SV}${SVREV}.tar.bz2 || die
-
- # Fix CFLAGS for sysvinit stuff
- cd ${S2}
- cp Makefile Makefile.orig
- sed -e "s:-O2:${CFLAGS}:" Makefile.orig >Makefile || die
- if [ -n "`use build`" ]
- then
- # Do not build sulogin, as it needs libcrypt which is not in the
- # build image.
- cp Makefile Makefile.orig
- sed -e 's:PROGS\t= init halt shutdown killall5 runlevel sulogin:PROGS\t= init halt shutdown killall5 runlevel:g' \
- Makefile.orig > Makefile || die
- fi
-
- # Fix Sparc specific stuff
- if [ "${ARCH}" = "sparc" ]
- then
- cd ${S}/etc
- cp rc.conf rc.conf.orig
- sed -e 's:KEYMAP="us":KEYMAP="sun":' rc.conf.orig >rc.conf || die
- rm -f rc.conf.orig
-
- cp inittab inittab.orig
- sed -e 's"# TERMINALS"# SERIAL CONSOLE\nc0:12345:respawn:/sbin/agetty 9600 ttyS0 linux\n\n# TERMINALS"' \
- inittab.orig > inittab || die
- rm -f inittab.orig
- fi
-}
-
-src_compile() {
-
- cp ${S}/sbin/runscript.c ${T}
- cp ${S}/sbin/start-stop-daemon.c ${T}
-
- cd ${T}
- gcc ${CFLAGS} runscript.c -o runscript || die "cant compile runscript.c"
- gcc ${CFLAGS} start-stop-daemon.c -o start-stop-daemon || die "cant compile start-stop-daemon.c"
- echo ${ROOT} > ${T}/ROOT
-
- if [ -z "`use build`" ]
- then
- # Build sysvinit stuff
- cd ${S2}
- emake LDFLAGS="" || die "problem compiling sysvinit"
- fi
-}
-
-defaltmerge() {
-
- # Define the "altmerge" variable.
- altmerge=0
- # Special ${T}/ROOT hack because ROOT gets automatically unset during src_install()
- # (because it conflicts with some makefiles)
- local ROOT=""
- ROOT="`cat ${T}/ROOT`"
- if [ -z "`use bootstrap`" -a -z "`use build`" -a -e ${ROOT}/dev/.devfsd ]
- then
- # We're installing to a system that has devfs enabled; don't create device
- # nodes.
- altmerge=1
- fi
-}
-
-
-src_install() {
-
- local foo=""
- defaltmerge
- keepdir /sbin
- exeinto /sbin
- doexe ${T}/runscript
- doexe ${T}/start-stop-daemon
- # Need this in /sbin, as it could be run before
- # /usr is mounted.
- doexe ${S}/sbin/update-modules
-
- keepdir /usr
- keepdir /usr/bin
- keepdir /usr/lib
- keepdir /usr/sbin
- # Dont install run-crons anymore, as sys-apps/cronbase installs it now
- #dosbin ${S}/sbin/MAKEDEV ${S}/sbin/run-crons
- dosbin ${S}/sbin/MAKEDEV
- keepdir /var /var/run /var/lock/subsys
- dosym ../var/tmp /usr/tmp
-
- keepdir /home
- keepdir /usr/include /usr/src /usr/portage
- keepdir /usr/X11R6/include/{X11,GL} /usr/X11R6/lib/X11
-
- dosym ../X11R6/include/X11 /usr/include/X11
- dosym ../X11R6/include/GL /usr/include/GL
- dosym ../X11R6/lib/X11 /usr/lib/X11
-
- #dosym ../src/linux/include/linux /usr/include/linux
- #dosym ../src/linux/include/asm-i386 /usr/include/asm
- # Important note: Gentoo Linux 1.0_rc6 no longer uses symlinks to /usr/src for includes.
- # We now rely on the special sys-kernel/linux-headers package, which takes a snapshot of
- # the currently-installed includes in /usr/src and copies them to /usr/include/linux and
- # /usr/include/asm. This is the recommended approach so that kernel includes can remain
- # constant. The kernel includes should really only be upgraded when you upgrade glibc.
- keepdir /usr/include/linux /usr/include/asm
- keepdir /usr/share/man /usr/share/info /usr/share/doc /usr/share/misc
-
- for foo in games lib sbin share bin share/doc share/man src
- do
- keepdir /usr/local/${foo}
- done
- # Local FHS compat symlinks
- dosym share/man /usr/local/man
- dosym share/doc /usr/local/doc
-
- # FHS compatibility symlinks stuff
- dosym share/man /usr/man
- dosym share/doc /usr/doc
- dosym share/info /usr/info
- keepdir /usr/X11R6/share
- dosym ../../share/info /usr/X11R6/share/info
- # End FHS compatibility symlinks stuff
-
- doman ${FILESDIR}/MAKEDEV.8 ${S}/man/*
- dodoc ${FILESDIR}/copyright
- dodoc ${S}/ChangeLog
- keepdir /usr/X11R6/lib /usr/X11R6/man
- keepdir /var/log/news
-
- # Supervise stuff depreciated
- #dodir /var/lib/supervise
- #install -d -m0750 -o root -g wheel ${D}/var/lib/supervise/control
- #install -d -m0750 -o root -g wheel ${D}/var/lib/supervise/services
- # End supervise stuff
-
- keepdir /opt
-
- # The .keep file messes up Portage when looking in /var/db/pkg
- dodir /var/db/pkg
- keepdir /var/spool /var/tmp /var/lib/misc
- chmod 1777 ${D}/var/tmp
- keepdir /root
-
- # /proc is very likely mounted right now so a keepdir will fail on merge
- dodir /proc
-
- chmod go-rx ${D}/root
- keepdir /tmp /var/lock
- chmod 1777 ${D}/tmp
- chmod 1777 ${D}/var/tmp
- chown root.uucp ${D}/var/lock
- chmod 775 ${D}/var/lock
- insopts -m0644
-
- # Bug #5359 (FHS complience)
- keepdir /etc/opt
-
- insinto /etc
- ln -s ../proc/filesystems ${D}/etc/filesystems
- for foo in hourly daily weekly monthly
- do
- keepdir /etc/cron.${foo}
- done
- for foo in ${S}/etc/*
- do
- # Install files, not dirs
- [ -f ${foo} ] && doins ${foo}
- done
- chmod go-rwx ${D}/etc/shadow
- keepdir /lib /mnt/floppy /mnt/cdrom
- chmod go-rwx ${D}/mnt/floppy ${D}/mnt/cdrom
-
- keepdir /lib/dev-state
- if [ "${altmerge}" -eq "1" ]
- then
- # rootfs and devfs
- dosym /usr/sbin/MAKEDEV /lib/dev-state/MAKEDEV
- # This is not needed anymore...
- #keepdir /lib/dev-state/pts /lib/dev-state/shm
- else
- # Normal
- keepdir /dev
- keepdir /dev/pts /dev/shm
- dosym /usr/sbin/MAKEDEV /dev/MAKEDEV
- fi
-
- cd ${S}/sbin
- into /
- dosbin rc rc-update
-
- if [ -z "`use build`" ]
- then
- # Install sysvinit stuff
- cd ${S2}
- into /
- dosbin init halt killall5 runlevel shutdown sulogin
- dosym init /sbin/telinit
- dobin last mesg utmpdump wall
- dosym killall5 /sbin/pidof
- dosym halt /sbin/reboot
- dosym halt /sbin/poweroff
-
- # SysvInit docs
- cd ${S2}/../
- doman man/*.[1-9]
- docinto sysvinit-${SVIV}
- dodoc COPYRIGHT README doc/*
- fi
-
- # env-update stuff
- keepdir /etc/env.d
- insinto /etc/env.d
- doins ${S}/etc/env.d/00basic
-
- keepdir /etc/devfs.d
-
- keepdir /etc/modules.d
- insinto /etc/modules.d
- doins ${S}/etc/modules.d/aliases ${S}/etc/modules.d/i386
-
- keepdir /etc/conf.d
- insinto /etc/conf.d
- for foo in ${S}/etc/conf.d/*
- do
- [ -f ${foo} ] && doins ${foo}
- done
- # /etc/conf.d/net.ppp* should only be readible by root
- chmod 0600 ${D}/etc/conf.d/net.ppp*
-
- # This seems the best place for templates .. any ideas ?
- # NB: if we move this, then $TEMPLATEDIR in net.ppp0 need to be updated as well
- keepdir /etc/ppp
- insinto /etc/ppp
- doins ${S}/etc/ppp/chat-default
-
- dodir /etc/init.d
- exeinto /etc/init.d
- for foo in ${S}/init.d/*
- do
- [ -f ${foo} ] && doexe ${foo}
- done
- # /etc/init.d/net.ppp* should only be readible by root
- #chmod 0600 ${D}/etc/init.d/net.ppp*
-
- # These moved from /etc/init.d/ to /sbin to help newb systems
- # from breaking
- exeinto /sbin
- doexe ${S}/sbin/depscan.sh
- doexe ${S}/sbin/runscript.sh
- doexe ${S}/sbin/functions.sh
- doexe ${S}/sbin/rc-envupdate.sh
- doexe ${S}/sbin/rc-help.sh
- # Compat symlinks (some stuff have hardcoded paths)
- dosym /sbin/depscan.sh /etc/init.d/depscan.sh
- dosym /sbin/runscript.sh /etc/init.d/runscript.sh
- dosym /sbin/functions.sh /etc/init.d/functions.sh
-
- dodir /etc/skel
- insinto /etc/skel
- for foo in $(find ${S}/etc/skel -type f -maxdepth 1)
- do
- [ -f ${foo} ] && doins ${foo}
- done
-
- keepdir ${svcdir} >/dev/null 2>&1
-
- # Skip this if we are merging to ROOT
- [ "${ROOT}" = "/" ] && return 0
-
- # Set up default runlevel symlinks
- local bar=""
- for foo in default boot nonetwork single
- do
- keepdir /etc/runlevels/${foo}
- for bar in $(cat ${S}/rc-lists/${foo})
- do
- [ -e ${S}/init.d/${bar} ] && \
- dosym /etc/init.d/${bar} /etc/runlevels/${foo}/${bar}
- done
- done
-
-}
-
-pkg_preinst() {
- # Make sure symlinks of these get installed.
- if [ -e ${ROOT}/etc/init.d/depscan.sh ] && \
- [ ! -L ${ROOT}/etc/init.d/depscan.sh ]
- then
- rm -f ${ROOT}/etc/init.d/depscan.sh
- fi
- if [ -e ${ROOT}/etc/init.d/runscript.sh ] && \
- [ ! -L ${ROOT}/etc/init.d/runscript.sh ]
- then
- rm -f ${ROOT}/etc/init.d/runscript.sh
- fi
- if [ -e ${ROOT}/etc/init.d/functions.sh ] && \
- [ ! -L ${ROOT}/etc/init.d/functions.sh ]
- then
- rm -f ${ROOT}/etc/init.d/functions.sh
- fi
- if [ -e ${ROOT}/etc/init.d/rc-help.sh ]
- then
- rm -f ${ROOT}/etc/init.d/rc-help.sh
- fi
-}
-
-pkg_postinst() {
-
- # Doing device node creation in pkg_postinst() now so they aren't recorded in CONTENTS.
- # latest CVS-only version of Portage doesn't record device nodes in CONTENTS at all.
- defaltmerge
- # We dont want to create devices if this is not a bootstrap and devfs
- # is used, as this was the cause for all the devfs problems we had
- if [ "${altmerge}" -eq "0" ]
- then
- cd ${ROOT}/dev
- # These devices are also needed by many people and should be included
- einfo "Making device nodes (this could take a minute or so...)"
-
- case ${ARCH} in
- x86)
- einfo "Using generic-i386 to make device nodes..."
- ${ROOT}/usr/sbin/MAKEDEV generic-i386
- ;;
- ppc)
- einfo "Using generic-powerpc to make device nodes..."
- ${ROOT}/usr/sbin/MAKEDEV generic-powerpc
- ;;
- sparc)
- einfo "Using generic-sparc to make device nodes..."
- ${ROOT}/usr/sbin/MAKEDEV generic-sparc
- ;;
- *)
- einfo "Using generic-i386 to make device nodes..."
- ${ROOT}/usr/sbin/MAKEDEV generic-i386
- ;;
- esac
-
- ${ROOT}/usr/sbin/MAKEDEV sg
- ${ROOT}/usr/sbin/MAKEDEV scd
- ${ROOT}/usr/sbin/MAKEDEV rtc
- ${ROOT}/usr/sbin/MAKEDEV audio
- ${ROOT}/usr/sbin/MAKEDEV hde
- ${ROOT}/usr/sbin/MAKEDEV hdf
- ${ROOT}/usr/sbin/MAKEDEV hdg
- ${ROOT}/usr/sbin/MAKEDEV hdh
- fi
- # We create the /boot directory here so that /boot doesn't get deleted when a previous
- # baselayout is unmerged with /boot unmounted.
- install -d ${ROOT}/boot
- if [ ! -L ${ROOT}/boot/boot ]
- then
- ln -snf . ${ROOT}/boot/boot
- fi
- # We create this here so we don't overwrite an existing /etc/hosts during bootstrap
- if [ ! -e ${ROOT}/etc/hosts ]
- then
- cat << EOF >> ${ROOT}/etc/hosts
-127.0.0.1 localhost
-EOF
- fi
- if [ -L ${ROOT}/etc/mtab ]
- then
- rm -f ${ROOT}/etc/mtab
- if [ "$ROOT" = "/" ]
- then
- cp /proc/mounts ${ROOT}/etc/mtab
- else
- touch ${ROOT}/etc/mtab
- fi
- fi
- # We should only install empty files if these files don't already exist.
- local x=""
- for x in log/lastlog run/utmp log/wtmp
- do
- [ -e ${ROOT}/var/${x} ] || touch ${ROOT}/var/${x}
- done
- for x in run/utmp log/wtmp
- do
- chgrp utmp ${ROOT}/var/${x}
- chmod 0664 ${ROOT}/var/${x}
- done
-
-
- # Handle the ${svcdir} that changed in location
- if [ ! -d ${ROOT}/${svcdir}/started/ ] && \
- [ -z "`use bootstrap`" -a -z "`use build`" ]
- then
- mkdir -p ${ROOT}/${svcdir}
- mount -t tmpfs tmpfs ${ROOT}/${svcdir}
- if [ -d ${ROOT}/dev/shm/.init.d ]
- then
- cp -ax ${ROOT}/dev/shm/.init.d/. ${ROOT}/${svcdir}
- fi
- fi
-
- # Touching /etc/passwd and /etc/shadow after install can be fatal, as many
- # new users do not update them properly. thus remove all ._cfg files if
- # we are not busy with a bootstrap.
- if [ -z "`use build`" -a -z "`use bootstrap`" ]
- then
- ewarn "Removing invalid backup copies of critical config files..."
- rm -f ${ROOT}/etc/._cfg????_{passwd,shadow}
- fi
-
- # Reload init to fix unmounting problems of / on next reboot
- # this is really needed, as without the new version of init cause init
- # not to quit properly on reboot, and causes a fsck of / on next reboot.
- if [ "${ROOT}" = "/" -a -z "`use build`" -a -z "`use bootstrap`" ]
- then
- # Do not return an error if this fails
- /sbin/init U &>/dev/null || :
- fi
-
- # Simple Release version for testing of features that *should* be
- # present in the rc-scripts, etc.
- echo "Gentoo Base System version ${SV}" > ${ROOT}/etc/gentoo-release
-}
-
-pkg_postrm() {
-
- # Fix problematic links
- ln -snf ../X11R6/include/X11 ${ROOT}/usr/include/X11
- ln -snf ../X11R6/include/GL ${ROOT}/usr/include/GL
- ln -snf ../X11R6/lib/X11 ${ROOT}/usr/lib/X11
-}
-
diff --git a/sys-apps/baselayout/baselayout-1.8.5.3.ebuild b/sys-apps/baselayout/baselayout-1.8.5.3.ebuild
deleted file mode 100644
index 92677998a6d1..000000000000
--- a/sys-apps/baselayout/baselayout-1.8.5.3.ebuild
+++ /dev/null
@@ -1,523 +0,0 @@
-# Copyright 1999-2002 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout/baselayout-1.8.5.3.ebuild,v 1.2 2002/12/09 04:37:24 manson Exp $
-
-IUSE="bootstrap build"
-
-SV="1.4.2.3"
-SVREV=""
-# SysvInit version
-SVIV="2.84"
-
-S="${WORKDIR}/rc-scripts-${SV}"
-S2="${WORKDIR}/sysvinit-${SVIV}/src"
-DESCRIPTION="Base layout for Gentoo Linux filesystem (incl. initscripts and sysvinit)"
-SRC_URI="ftp://ftp.cistron.nl/pub/people/miquels/software/sysvinit-${SVIV}.tar.gz
- ftp://sunsite.unc.edu/pub/Linux/system/daemons/init/sysvinit-${SVIV}.tar.gz"
-# http://www.ibiblio.org/gentoo/distfiles/rc-scripts-${SV}.tar.bz2"
-HOMEPAGE="http://www.gentoo.org/"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="x86 ppc sparc alpha"
-
-DEPEND="sys-kernel/linux-headers
- >=sys-apps/portage-2.0.23"
-# We need at least portage-2.0.23 to handle these DEPEND's properly.
-
-RDEPEND="${DEPEND}
- || ( >=sys-apps/gawk-3.1.1-r1
- ( !build? ( >=sys-apps/gawk-3.1.1-r1 ) )
- ( !bootstrap? ( >=sys-apps/gawk-3.1.1-r1 ) )
- )"
-# This version of baselayout needs gawk in /bin, but as we do not have
-# a c++ compiler during bootstrap, we cannot depend on it if "bootstrap"
-# or "build" are in USE.
-
-
-# This ebuild needs to be merged "live". You can't simply make a package
-# of it and merge it later.
-
-pkg_setup() {
-
- if [ "${ROOT}" = "/" ]
- then
- # Make sure we do not kill X because of the earlier bad /etc/inittab we used.
- if [ -L ${svcdir}/started/xdm ] && \
- [ -n "`egrep 'x:3:respawn:/etc/X11/startDM.sh' /etc/inittab`" ] && \
- [ -n "`ps -A | egrep "X"`" ]
- then
- echo
- einfo "!!! With the current version of baselayout installed (1.7.3-r1), merging"
- einfo " this version of baselayout will cause X to die if you started it"
- einfo " with the /etc/init.d/xdm script!!!!"
- echo
- einfo "Please quit X and then merge this again."
- die
- fi
- fi
-}
-
-src_unpack() {
-
- unpack sysvinit-${SVIV}.tar.gz
-
- echo ">>> Unpacking rc-scripts-${SV}${SVREV}.tar.bz2"
- tar -jxf ${FILESDIR}/rc-scripts-${SV}${SVREV}.tar.bz2 || die
-
- # Fix CFLAGS for sysvinit stuff
- cd ${S2}
- cp Makefile Makefile.orig
- sed -e "s:-O2:${CFLAGS}:" Makefile.orig >Makefile || die
- if [ -n "`use build`" ]
- then
- # Do not build sulogin, as it needs libcrypt which is not in the
- # build image.
- cp Makefile Makefile.orig
- sed -e 's:PROGS\t= init halt shutdown killall5 runlevel sulogin:PROGS\t= init halt shutdown killall5 runlevel:g' \
- Makefile.orig > Makefile || die
- fi
-
- # Fix Sparc specific stuff
- if [ "${ARCH}" = "sparc" ]
- then
- cd ${S}/etc
- cp rc.conf rc.conf.orig
- sed -e 's:KEYMAP="us":KEYMAP="sun":' rc.conf.orig >rc.conf || die
- rm -f rc.conf.orig
-
- cp inittab inittab.orig
- sed -e 's"# TERMINALS"# SERIAL CONSOLE\nc0:12345:respawn:/sbin/agetty 9600 ttyS0 linux\n\n# TERMINALS"' \
- inittab.orig > inittab || die
- rm -f inittab.orig
- fi
-}
-
-src_compile() {
-
- cp ${S}/sbin/runscript.c ${T}
- cp ${S}/sbin/start-stop-daemon.c ${T}
-
- cd ${T}
- gcc ${CFLAGS} runscript.c -o runscript || die "cant compile runscript.c"
- gcc ${CFLAGS} start-stop-daemon.c -o start-stop-daemon || die "cant compile start-stop-daemon.c"
- echo ${ROOT} > ${T}/ROOT
-
- if [ -z "`use build`" ]
- then
- # Build sysvinit stuff
- cd ${S2}
- einfo "Building sysvinit..."
- emake LDFLAGS="" || die "problem compiling sysvinit"
-
- if [ -z "`use bootstrap`" ]
- then
- # Build gawk module
- cd ${S}/src
- einfo "Building awk module..."
- make || {
- eerror "Failed to build gawk module. Make sure you have"
- eerror "sys-apps/gawk-3.1.1-r1 or later installed"
- die "problem compiling gawk module"
- }
- fi
- fi
-}
-
-defaltmerge() {
-
- # Define the "altmerge" variable.
- altmerge=0
- # Special ${T}/ROOT hack because ROOT gets automatically unset during src_install()
- # (because it conflicts with some makefiles)
- local ROOT=""
- ROOT="`cat ${T}/ROOT`"
- if [ -z "`use bootstrap`" -a -z "`use build`" -a -e ${ROOT}/dev/.devfsd ]
- then
- # We're installing to a system that has devfs enabled; don't create device
- # nodes.
- altmerge=1
- fi
-}
-
-
-src_install() {
-
- local foo=""
- defaltmerge
- keepdir /sbin
- exeinto /sbin
- doexe ${T}/runscript
- doexe ${T}/start-stop-daemon
- # Need this in /sbin, as it could be run before
- # /usr is mounted.
- doexe ${S}/sbin/update-modules
-
- keepdir /usr
- keepdir /usr/bin
- keepdir /usr/lib
- keepdir /usr/sbin
- # Dont install run-crons anymore, as sys-apps/cronbase installs it now
- #dosbin ${S}/sbin/MAKEDEV ${S}/sbin/run-crons
- dosbin ${S}/sbin/MAKEDEV
- keepdir /var /var/run /var/lock/subsys
- dosym ../var/tmp /usr/tmp
-
- keepdir /home
- keepdir /usr/include /usr/src /usr/portage
- keepdir /usr/X11R6/include/{X11,GL} /usr/X11R6/lib/X11
-
- dosym ../X11R6/include/X11 /usr/include/X11
- dosym ../X11R6/include/GL /usr/include/GL
- dosym ../X11R6/lib/X11 /usr/lib/X11
-
- #dosym ../src/linux/include/linux /usr/include/linux
- #dosym ../src/linux/include/asm-i386 /usr/include/asm
- # Important note: Gentoo Linux 1.0_rc6 no longer uses symlinks to /usr/src for includes.
- # We now rely on the special sys-kernel/linux-headers package, which takes a snapshot of
- # the currently-installed includes in /usr/src and copies them to /usr/include/linux and
- # /usr/include/asm. This is the recommended approach so that kernel includes can remain
- # constant. The kernel includes should really only be upgraded when you upgrade glibc.
- keepdir /usr/include/linux /usr/include/asm
- keepdir /usr/share/man /usr/share/info /usr/share/doc /usr/share/misc
-
- for foo in games lib sbin share bin share/doc share/man src
- do
- keepdir /usr/local/${foo}
- done
- # Local FHS compat symlinks
- dosym share/man /usr/local/man
- dosym share/doc /usr/local/doc
-
- # FHS compatibility symlinks stuff
- dosym share/man /usr/man
- dosym share/doc /usr/doc
- dosym share/info /usr/info
- keepdir /usr/X11R6/share
- dosym ../../share/info /usr/X11R6/share/info
- # End FHS compatibility symlinks stuff
-
- doman ${FILESDIR}/MAKEDEV.8 ${S}/man/*
- dodoc ${FILESDIR}/copyright
- dodoc ${S}/ChangeLog
- keepdir /usr/X11R6/lib /usr/X11R6/man
- keepdir /var/log/news
-
- # Supervise stuff depreciated
- #dodir /var/lib/supervise
- #install -d -m0750 -o root -g wheel ${D}/var/lib/supervise/control
- #install -d -m0750 -o root -g wheel ${D}/var/lib/supervise/services
- # End supervise stuff
-
- keepdir /opt
-
- # The .keep file messes up Portage when looking in /var/db/pkg
- dodir /var/db/pkg
- keepdir /var/spool /var/tmp /var/lib/misc
- chmod 1777 ${D}/var/tmp
- keepdir /root
-
- # /proc is very likely mounted right now so a keepdir will fail on merge
- dodir /proc
-
- chmod go-rx ${D}/root
- keepdir /tmp /var/lock
- chmod 1777 ${D}/tmp
- chmod 1777 ${D}/var/tmp
- chown root.uucp ${D}/var/lock
- chmod 775 ${D}/var/lock
- insopts -m0644
-
- # Bug #5359 (FHS complience)
- keepdir /etc/opt
-
- insinto /etc
- ln -s ../proc/filesystems ${D}/etc/filesystems
- for foo in hourly daily weekly monthly
- do
- keepdir /etc/cron.${foo}
- done
- for foo in ${S}/etc/*
- do
- # Install files, not dirs
- [ -f ${foo} ] && doins ${foo}
- done
- chmod go-rwx ${D}/etc/shadow
- keepdir /lib /mnt/floppy /mnt/cdrom
- chmod go-rwx ${D}/mnt/floppy ${D}/mnt/cdrom
-
- keepdir /lib/dev-state
- if [ "${altmerge}" -eq "1" ]
- then
- # rootfs and devfs
- dosym /usr/sbin/MAKEDEV /lib/dev-state/MAKEDEV
- # This is not needed anymore...
- #keepdir /lib/dev-state/pts /lib/dev-state/shm
- else
- # Normal
- keepdir /dev
- keepdir /dev/pts /dev/shm
- dosym /usr/sbin/MAKEDEV /dev/MAKEDEV
- fi
-
- cd ${S}/sbin
- into /
- dosbin rc rc-update
-
- if [ -z "`use build`" ]
- then
- # Install sysvinit stuff
- cd ${S2}
- into /
- dosbin init halt killall5 runlevel shutdown sulogin
- dosym init /sbin/telinit
- dobin last mesg utmpdump wall
- dosym killall5 /sbin/pidof
- dosym halt /sbin/reboot
- dosym halt /sbin/poweroff
-
- # SysvInit docs
- cd ${S2}/../
- doman man/*.[1-9]
- docinto sysvinit-${SVIV}
- dodoc COPYRIGHT README doc/*
- fi
-
- # env-update stuff
- keepdir /etc/env.d
- insinto /etc/env.d
- doins ${S}/etc/env.d/00basic
-
- keepdir /etc/devfs.d
-
- keepdir /etc/modules.d
- insinto /etc/modules.d
- doins ${S}/etc/modules.d/aliases ${S}/etc/modules.d/i386
-
- keepdir /etc/conf.d
- insinto /etc/conf.d
- for foo in ${S}/etc/conf.d/*
- do
- [ -f ${foo} ] && doins ${foo}
- done
- # /etc/conf.d/net.ppp* should only be readible by root
- chmod 0600 ${D}/etc/conf.d/net.ppp*
-
- # This seems the best place for templates .. any ideas ?
- # NB: if we move this, then $TEMPLATEDIR in net.ppp0 need to be updated as well
- keepdir /etc/ppp
- insinto /etc/ppp
- doins ${S}/etc/ppp/chat-default
-
- dodir /etc/init.d
- exeinto /etc/init.d
- for foo in ${S}/init.d/*
- do
- [ -f ${foo} ] && doexe ${foo}
- done
- # /etc/init.d/net.ppp* should only be readible by root
- #chmod 0600 ${D}/etc/init.d/net.ppp*
-
- # These moved from /etc/init.d/ to /sbin to help newb systems
- # from breaking
- exeinto /sbin
- doexe ${S}/sbin/runscript.sh
- doexe ${S}/sbin/functions.sh
- doexe ${S}/sbin/rc-help.sh
- # Compat symlinks (some stuff have hardcoded paths)
- dosym /sbin/depscan.sh /etc/init.d/depscan.sh
- dosym /sbin/runscript.sh /etc/init.d/runscript.sh
- dosym /sbin/functions.sh /etc/init.d/functions.sh
-
- # We can only install new, fast awk versions of scripts
- # if 'build' or 'bootstrap' is not in USE. This will
- # change if we have sys-apps/gawk-3.1.1-r1 or later in
- # the build image ...
- if [ -z "`use build`" -a -z "`use bootstrap`" ]
- then
- # This is for new depscan and rc-envupdate.sh
- # written in awk
- exeinto /sbin
- doexe ${S}/sbin/depscan.sh
- doexe ${S}/sbin/rc-envupdate.sh
- exeinto /lib/rcscripts
- doexe ${S}/src/filefuncs.so
- insinto /lib/rcscripts/awk
- doins ${S}/src/awk/*.awk
- else
- # This is the old bash ones
- exeinto /sbin
- newexe ${S}/sbin/depscan.sh.bash depscan.sh
- newexe ${S}/sbin/rc-envupdate.sh.bash rc-envupdate.sh
- fi
-
- dodir /etc/skel
- insinto /etc/skel
- for foo in $(find ${S}/etc/skel -type f -maxdepth 1)
- do
- [ -f ${foo} ] && doins ${foo}
- done
-
- keepdir ${svcdir} >/dev/null 2>&1
-
- # Skip this if we are merging to ROOT
- [ "${ROOT}" = "/" ] && return 0
-
- # Set up default runlevel symlinks
- local bar=""
- for foo in default boot nonetwork single
- do
- keepdir /etc/runlevels/${foo}
- for bar in $(cat ${S}/rc-lists/${foo})
- do
- [ -e ${S}/init.d/${bar} ] && \
- dosym /etc/init.d/${bar} /etc/runlevels/${foo}/${bar}
- done
- done
-
-}
-
-pkg_preinst() {
- # Make sure symlinks of these get installed.
- if [ -e ${ROOT}/etc/init.d/depscan.sh ] && \
- [ ! -L ${ROOT}/etc/init.d/depscan.sh ]
- then
- rm -f ${ROOT}/etc/init.d/depscan.sh
- fi
- if [ -e ${ROOT}/etc/init.d/runscript.sh ] && \
- [ ! -L ${ROOT}/etc/init.d/runscript.sh ]
- then
- rm -f ${ROOT}/etc/init.d/runscript.sh
- fi
- if [ -e ${ROOT}/etc/init.d/functions.sh ] && \
- [ ! -L ${ROOT}/etc/init.d/functions.sh ]
- then
- rm -f ${ROOT}/etc/init.d/functions.sh
- fi
- if [ -e ${ROOT}/etc/init.d/rc-help.sh ]
- then
- rm -f ${ROOT}/etc/init.d/rc-help.sh
- fi
-}
-
-pkg_postinst() {
-
- # Doing device node creation in pkg_postinst() now so they aren't recorded in CONTENTS.
- # latest CVS-only version of Portage doesn't record device nodes in CONTENTS at all.
- defaltmerge
- # We dont want to create devices if this is not a bootstrap and devfs
- # is used, as this was the cause for all the devfs problems we had
- if [ "${altmerge}" -eq "0" ]
- then
- cd ${ROOT}/dev
- # These devices are also needed by many people and should be included
- einfo "Making device nodes (this could take a minute or so...)"
-
- case ${ARCH} in
- x86)
- einfo "Using generic-i386 to make device nodes..."
- ${ROOT}/usr/sbin/MAKEDEV generic-i386
- ;;
- ppc)
- einfo "Using generic-powerpc to make device nodes..."
- ${ROOT}/usr/sbin/MAKEDEV generic-powerpc
- ;;
- sparc)
- einfo "Using generic-sparc to make device nodes..."
- ${ROOT}/usr/sbin/MAKEDEV generic-sparc
- ;;
- *)
- einfo "Using generic-i386 to make device nodes..."
- ${ROOT}/usr/sbin/MAKEDEV generic-i386
- ;;
- esac
-
- ${ROOT}/usr/sbin/MAKEDEV sg
- ${ROOT}/usr/sbin/MAKEDEV scd
- ${ROOT}/usr/sbin/MAKEDEV rtc
- ${ROOT}/usr/sbin/MAKEDEV audio
- ${ROOT}/usr/sbin/MAKEDEV hde
- ${ROOT}/usr/sbin/MAKEDEV hdf
- ${ROOT}/usr/sbin/MAKEDEV hdg
- ${ROOT}/usr/sbin/MAKEDEV hdh
- fi
- # We create the /boot directory here so that /boot doesn't get deleted when a previous
- # baselayout is unmerged with /boot unmounted.
- install -d ${ROOT}/boot
- if [ ! -L ${ROOT}/boot/boot ]
- then
- ln -snf . ${ROOT}/boot/boot
- fi
- # We create this here so we don't overwrite an existing /etc/hosts during bootstrap
- if [ ! -e ${ROOT}/etc/hosts ]
- then
- cat << EOF >> ${ROOT}/etc/hosts
-127.0.0.1 localhost
-EOF
- fi
- if [ -L ${ROOT}/etc/mtab ]
- then
- rm -f ${ROOT}/etc/mtab
- if [ "$ROOT" = "/" ]
- then
- cp /proc/mounts ${ROOT}/etc/mtab
- else
- touch ${ROOT}/etc/mtab
- fi
- fi
- # We should only install empty files if these files don't already exist.
- local x=""
- for x in log/lastlog run/utmp log/wtmp
- do
- [ -e ${ROOT}/var/${x} ] || touch ${ROOT}/var/${x}
- done
- for x in run/utmp log/wtmp
- do
- chgrp utmp ${ROOT}/var/${x}
- chmod 0664 ${ROOT}/var/${x}
- done
-
-
- # Handle the ${svcdir} that changed in location
- if [ ! -d ${ROOT}/${svcdir}/started/ ] && \
- [ -z "`use bootstrap`" -a -z "`use build`" ]
- then
- mkdir -p ${ROOT}/${svcdir}
- mount -t tmpfs tmpfs ${ROOT}/${svcdir}
- if [ -d ${ROOT}/dev/shm/.init.d ]
- then
- cp -ax ${ROOT}/dev/shm/.init.d/. ${ROOT}/${svcdir}
- fi
- fi
-
- # Touching /etc/passwd and /etc/shadow after install can be fatal, as many
- # new users do not update them properly. thus remove all ._cfg files if
- # we are not busy with a bootstrap.
- if [ -z "`use build`" -a -z "`use bootstrap`" ]
- then
- ewarn "Removing invalid backup copies of critical config files..."
- rm -f ${ROOT}/etc/._cfg????_{passwd,shadow}
- fi
-
- # Reload init to fix unmounting problems of / on next reboot
- # this is really needed, as without the new version of init cause init
- # not to quit properly on reboot, and causes a fsck of / on next reboot.
- if [ "${ROOT}" = "/" -a -z "`use build`" -a -z "`use bootstrap`" ]
- then
- # Do not return an error if this fails
- /sbin/init U &>/dev/null || :
- fi
-
- # Simple Release version for testing of features that *should* be
- # present in the rc-scripts, etc.
- echo "Gentoo Base System version ${SV}" > ${ROOT}/etc/gentoo-release
-}
-
-pkg_postrm() {
-
- # Fix problematic links
- ln -snf ../X11R6/include/X11 ${ROOT}/usr/include/X11
- ln -snf ../X11R6/include/GL ${ROOT}/usr/include/GL
- ln -snf ../X11R6/lib/X11 ${ROOT}/usr/lib/X11
-}
-
diff --git a/sys-apps/baselayout/baselayout-1.8.5.4.ebuild b/sys-apps/baselayout/baselayout-1.8.5.4.ebuild
deleted file mode 100644
index 5907d1e9411c..000000000000
--- a/sys-apps/baselayout/baselayout-1.8.5.4.ebuild
+++ /dev/null
@@ -1,523 +0,0 @@
-# Copyright 1999-2002 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout/baselayout-1.8.5.4.ebuild,v 1.3 2002/12/15 10:44:21 bjb Exp $
-
-IUSE="bootstrap build"
-
-SV="1.4.2.4"
-SVREV=""
-# SysvInit version
-SVIV="2.84"
-
-S="${WORKDIR}/rc-scripts-${SV}"
-S2="${WORKDIR}/sysvinit-${SVIV}/src"
-DESCRIPTION="Base layout for Gentoo Linux filesystem (incl. initscripts and sysvinit)"
-SRC_URI="ftp://ftp.cistron.nl/pub/people/miquels/software/sysvinit-${SVIV}.tar.gz
- ftp://sunsite.unc.edu/pub/Linux/system/daemons/init/sysvinit-${SVIV}.tar.gz"
-# http://www.ibiblio.org/gentoo/distfiles/rc-scripts-${SV}.tar.bz2"
-HOMEPAGE="http://www.gentoo.org/"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~x86 ~ppc ~sparc ~alpha"
-
-DEPEND="sys-kernel/linux-headers
- >=sys-apps/portage-2.0.23"
-# We need at least portage-2.0.23 to handle these DEPEND's properly.
-
-RDEPEND="${DEPEND}
- || ( >=sys-apps/gawk-3.1.1-r1
- ( !build? ( >=sys-apps/gawk-3.1.1-r1 ) )
- ( !bootstrap? ( >=sys-apps/gawk-3.1.1-r1 ) )
- )"
-# This version of baselayout needs gawk in /bin, but as we do not have
-# a c++ compiler during bootstrap, we cannot depend on it if "bootstrap"
-# or "build" are in USE.
-
-
-# This ebuild needs to be merged "live". You can't simply make a package
-# of it and merge it later.
-
-pkg_setup() {
-
- if [ "${ROOT}" = "/" ]
- then
- # Make sure we do not kill X because of the earlier bad /etc/inittab we used.
- if [ -L ${svcdir}/started/xdm ] && \
- [ -n "`egrep 'x:3:respawn:/etc/X11/startDM.sh' /etc/inittab`" ] && \
- [ -n "`ps -A | egrep "X"`" ]
- then
- echo
- einfo "!!! With the current version of baselayout installed (1.7.3-r1), merging"
- einfo " this version of baselayout will cause X to die if you started it"
- einfo " with the /etc/init.d/xdm script!!!!"
- echo
- einfo "Please quit X and then merge this again."
- die
- fi
- fi
-}
-
-src_unpack() {
-
- unpack sysvinit-${SVIV}.tar.gz
-
- echo ">>> Unpacking rc-scripts-${SV}${SVREV}.tar.bz2"
- tar -jxf ${FILESDIR}/rc-scripts-${SV}${SVREV}.tar.bz2 || die
-
- # Fix CFLAGS for sysvinit stuff
- cd ${S2}
- cp Makefile Makefile.orig
- sed -e "s:-O2:${CFLAGS}:" Makefile.orig >Makefile || die
- if [ -n "`use build`" ]
- then
- # Do not build sulogin, as it needs libcrypt which is not in the
- # build image.
- cp Makefile Makefile.orig
- sed -e 's:PROGS\t= init halt shutdown killall5 runlevel sulogin:PROGS\t= init halt shutdown killall5 runlevel:g' \
- Makefile.orig > Makefile || die
- fi
-
- # Fix Sparc specific stuff
- if [ "${ARCH}" = "sparc" -o "${ARCH}" = "sparc64" ]
- then
- cd ${S}/etc
- cp rc.conf rc.conf.orig
- sed -e 's:KEYMAP="us":KEYMAP="sun":' rc.conf.orig >rc.conf || die
- rm -f rc.conf.orig
-
- cp inittab inittab.orig
- sed -e 's"# TERMINALS"# SERIAL CONSOLE\nc0:12345:respawn:/sbin/agetty 9600 ttyS0 linux\n\n# TERMINALS"' \
- inittab.orig > inittab || die
- rm -f inittab.orig
- fi
-}
-
-src_compile() {
-
- cp ${S}/sbin/runscript.c ${T}
- cp ${S}/sbin/start-stop-daemon.c ${T}
-
- cd ${T}
- gcc ${CFLAGS} runscript.c -o runscript || die "cant compile runscript.c"
- gcc ${CFLAGS} start-stop-daemon.c -o start-stop-daemon || die "cant compile start-stop-daemon.c"
- echo ${ROOT} > ${T}/ROOT
-
- if [ -z "`use build`" ]
- then
- # Build sysvinit stuff
- cd ${S2}
- einfo "Building sysvinit..."
- emake LDFLAGS="" || die "problem compiling sysvinit"
-
- if [ -z "`use bootstrap`" ]
- then
- # Build gawk module
- cd ${S}/src
- einfo "Building awk module..."
- make || {
- eerror "Failed to build gawk module. Make sure you have"
- eerror "sys-apps/gawk-3.1.1-r1 or later installed"
- die "problem compiling gawk module"
- }
- fi
- fi
-}
-
-defaltmerge() {
-
- # Define the "altmerge" variable.
- altmerge=0
- # Special ${T}/ROOT hack because ROOT gets automatically unset during src_install()
- # (because it conflicts with some makefiles)
- local ROOT=""
- ROOT="`cat ${T}/ROOT`"
- if [ -z "`use bootstrap`" -a -z "`use build`" -a -e ${ROOT}/dev/.devfsd ]
- then
- # We're installing to a system that has devfs enabled; don't create device
- # nodes.
- altmerge=1
- fi
-}
-
-
-src_install() {
-
- local foo=""
- defaltmerge
- keepdir /sbin
- exeinto /sbin
- doexe ${T}/runscript
- doexe ${T}/start-stop-daemon
- # Need this in /sbin, as it could be run before
- # /usr is mounted.
- doexe ${S}/sbin/update-modules
-
- keepdir /usr
- keepdir /usr/bin
- keepdir /usr/lib
- keepdir /usr/sbin
- # Dont install run-crons anymore, as sys-apps/cronbase installs it now
- #dosbin ${S}/sbin/MAKEDEV ${S}/sbin/run-crons
- dosbin ${S}/sbin/MAKEDEV
- keepdir /var /var/run /var/lock/subsys
- dosym ../var/tmp /usr/tmp
-
- keepdir /home
- keepdir /usr/include /usr/src /usr/portage
- keepdir /usr/X11R6/include/{X11,GL} /usr/X11R6/lib/X11
-
- dosym ../X11R6/include/X11 /usr/include/X11
- dosym ../X11R6/include/GL /usr/include/GL
- dosym ../X11R6/lib/X11 /usr/lib/X11
-
- #dosym ../src/linux/include/linux /usr/include/linux
- #dosym ../src/linux/include/asm-i386 /usr/include/asm
- # Important note: Gentoo Linux 1.0_rc6 no longer uses symlinks to /usr/src for includes.
- # We now rely on the special sys-kernel/linux-headers package, which takes a snapshot of
- # the currently-installed includes in /usr/src and copies them to /usr/include/linux and
- # /usr/include/asm. This is the recommended approach so that kernel includes can remain
- # constant. The kernel includes should really only be upgraded when you upgrade glibc.
- keepdir /usr/include/linux /usr/include/asm
- keepdir /usr/share/man /usr/share/info /usr/share/doc /usr/share/misc
-
- for foo in games lib sbin share bin share/doc share/man src
- do
- keepdir /usr/local/${foo}
- done
- # Local FHS compat symlinks
- dosym share/man /usr/local/man
- dosym share/doc /usr/local/doc
-
- # FHS compatibility symlinks stuff
- dosym share/man /usr/man
- dosym share/doc /usr/doc
- dosym share/info /usr/info
- keepdir /usr/X11R6/share
- dosym ../../share/info /usr/X11R6/share/info
- # End FHS compatibility symlinks stuff
-
- doman ${FILESDIR}/MAKEDEV.8 ${S}/man/*
- dodoc ${FILESDIR}/copyright
- dodoc ${S}/ChangeLog
- keepdir /usr/X11R6/lib /usr/X11R6/man
- keepdir /var/log/news
-
- # Supervise stuff depreciated
- #dodir /var/lib/supervise
- #install -d -m0750 -o root -g wheel ${D}/var/lib/supervise/control
- #install -d -m0750 -o root -g wheel ${D}/var/lib/supervise/services
- # End supervise stuff
-
- keepdir /opt
-
- # The .keep file messes up Portage when looking in /var/db/pkg
- dodir /var/db/pkg
- keepdir /var/spool /var/tmp /var/lib/misc
- chmod 1777 ${D}/var/tmp
- keepdir /root
-
- # /proc is very likely mounted right now so a keepdir will fail on merge
- dodir /proc
-
- chmod go-rx ${D}/root
- keepdir /tmp /var/lock
- chmod 1777 ${D}/tmp
- chmod 1777 ${D}/var/tmp
- chown root.uucp ${D}/var/lock
- chmod 775 ${D}/var/lock
- insopts -m0644
-
- # Bug #5359 (FHS complience)
- keepdir /etc/opt
-
- insinto /etc
- ln -s ../proc/filesystems ${D}/etc/filesystems
- for foo in hourly daily weekly monthly
- do
- keepdir /etc/cron.${foo}
- done
- for foo in ${S}/etc/*
- do
- # Install files, not dirs
- [ -f ${foo} ] && doins ${foo}
- done
- chmod go-rwx ${D}/etc/shadow
- keepdir /lib /mnt/floppy /mnt/cdrom
- chmod go-rwx ${D}/mnt/floppy ${D}/mnt/cdrom
-
- keepdir /lib/dev-state
- if [ "${altmerge}" -eq "1" ]
- then
- # rootfs and devfs
- dosym /usr/sbin/MAKEDEV /lib/dev-state/MAKEDEV
- # This is not needed anymore...
- #keepdir /lib/dev-state/pts /lib/dev-state/shm
- else
- # Normal
- keepdir /dev
- keepdir /dev/pts /dev/shm
- dosym /usr/sbin/MAKEDEV /dev/MAKEDEV
- fi
-
- cd ${S}/sbin
- into /
- dosbin rc rc-update
-
- if [ -z "`use build`" ]
- then
- # Install sysvinit stuff
- cd ${S2}
- into /
- dosbin init halt killall5 runlevel shutdown sulogin
- dosym init /sbin/telinit
- dobin last mesg utmpdump wall
- dosym killall5 /sbin/pidof
- dosym halt /sbin/reboot
- dosym halt /sbin/poweroff
-
- # SysvInit docs
- cd ${S2}/../
- doman man/*.[1-9]
- docinto sysvinit-${SVIV}
- dodoc COPYRIGHT README doc/*
- fi
-
- # env-update stuff
- keepdir /etc/env.d
- insinto /etc/env.d
- doins ${S}/etc/env.d/00basic
-
- keepdir /etc/devfs.d
-
- keepdir /etc/modules.d
- insinto /etc/modules.d
- doins ${S}/etc/modules.d/aliases ${S}/etc/modules.d/i386
-
- keepdir /etc/conf.d
- insinto /etc/conf.d
- for foo in ${S}/etc/conf.d/*
- do
- [ -f ${foo} ] && doins ${foo}
- done
- # /etc/conf.d/net.ppp* should only be readible by root
- chmod 0600 ${D}/etc/conf.d/net.ppp*
-
- # This seems the best place for templates .. any ideas ?
- # NB: if we move this, then $TEMPLATEDIR in net.ppp0 need to be updated as well
- keepdir /etc/ppp
- insinto /etc/ppp
- doins ${S}/etc/ppp/chat-default
-
- dodir /etc/init.d
- exeinto /etc/init.d
- for foo in ${S}/init.d/*
- do
- [ -f ${foo} ] && doexe ${foo}
- done
- # /etc/init.d/net.ppp* should only be readible by root
- #chmod 0600 ${D}/etc/init.d/net.ppp*
-
- # These moved from /etc/init.d/ to /sbin to help newb systems
- # from breaking
- exeinto /sbin
- doexe ${S}/sbin/runscript.sh
- doexe ${S}/sbin/functions.sh
- doexe ${S}/sbin/rc-help.sh
- # Compat symlinks (some stuff have hardcoded paths)
- dosym /sbin/depscan.sh /etc/init.d/depscan.sh
- dosym /sbin/runscript.sh /etc/init.d/runscript.sh
- dosym /sbin/functions.sh /etc/init.d/functions.sh
-
- # We can only install new, fast awk versions of scripts
- # if 'build' or 'bootstrap' is not in USE. This will
- # change if we have sys-apps/gawk-3.1.1-r1 or later in
- # the build image ...
- if [ -z "`use build`" -a -z "`use bootstrap`" ]
- then
- # This is for new depscan and rc-envupdate.sh
- # written in awk
- exeinto /sbin
- doexe ${S}/sbin/depscan.sh
- doexe ${S}/sbin/rc-envupdate.sh
- exeinto /lib/rcscripts
- doexe ${S}/src/filefuncs.so
- insinto /lib/rcscripts/awk
- doins ${S}/src/awk/*.awk
- else
- # This is the old bash ones
- exeinto /sbin
- newexe ${S}/sbin/depscan.sh.bash depscan.sh
- newexe ${S}/sbin/rc-envupdate.sh.bash rc-envupdate.sh
- fi
-
- dodir /etc/skel
- insinto /etc/skel
- for foo in $(find ${S}/etc/skel -type f -maxdepth 1)
- do
- [ -f ${foo} ] && doins ${foo}
- done
-
- keepdir ${svcdir} >/dev/null 2>&1
-
- # Skip this if we are merging to ROOT
- [ "${ROOT}" = "/" ] && return 0
-
- # Set up default runlevel symlinks
- local bar=""
- for foo in default boot nonetwork single
- do
- keepdir /etc/runlevels/${foo}
- for bar in $(cat ${S}/rc-lists/${foo})
- do
- [ -e ${S}/init.d/${bar} ] && \
- dosym /etc/init.d/${bar} /etc/runlevels/${foo}/${bar}
- done
- done
-
-}
-
-pkg_preinst() {
- # Make sure symlinks of these get installed.
- if [ -e ${ROOT}/etc/init.d/depscan.sh ] && \
- [ ! -L ${ROOT}/etc/init.d/depscan.sh ]
- then
- rm -f ${ROOT}/etc/init.d/depscan.sh
- fi
- if [ -e ${ROOT}/etc/init.d/runscript.sh ] && \
- [ ! -L ${ROOT}/etc/init.d/runscript.sh ]
- then
- rm -f ${ROOT}/etc/init.d/runscript.sh
- fi
- if [ -e ${ROOT}/etc/init.d/functions.sh ] && \
- [ ! -L ${ROOT}/etc/init.d/functions.sh ]
- then
- rm -f ${ROOT}/etc/init.d/functions.sh
- fi
- if [ -e ${ROOT}/etc/init.d/rc-help.sh ]
- then
- rm -f ${ROOT}/etc/init.d/rc-help.sh
- fi
-}
-
-pkg_postinst() {
-
- # Doing device node creation in pkg_postinst() now so they aren't recorded in CONTENTS.
- # latest CVS-only version of Portage doesn't record device nodes in CONTENTS at all.
- defaltmerge
- # We dont want to create devices if this is not a bootstrap and devfs
- # is used, as this was the cause for all the devfs problems we had
- if [ "${altmerge}" -eq "0" ]
- then
- cd ${ROOT}/dev
- # These devices are also needed by many people and should be included
- einfo "Making device nodes (this could take a minute or so...)"
-
- case ${ARCH} in
- x86)
- einfo "Using generic-i386 to make device nodes..."
- ${ROOT}/usr/sbin/MAKEDEV generic-i386
- ;;
- ppc)
- einfo "Using generic-powerpc to make device nodes..."
- ${ROOT}/usr/sbin/MAKEDEV generic-powerpc
- ;;
- sparc|sparc64)
- einfo "Using generic-sparc to make device nodes..."
- ${ROOT}/usr/sbin/MAKEDEV generic-sparc
- ;;
- *)
- einfo "Using generic-i386 to make device nodes..."
- ${ROOT}/usr/sbin/MAKEDEV generic-i386
- ;;
- esac
-
- ${ROOT}/usr/sbin/MAKEDEV sg
- ${ROOT}/usr/sbin/MAKEDEV scd
- ${ROOT}/usr/sbin/MAKEDEV rtc
- ${ROOT}/usr/sbin/MAKEDEV audio
- ${ROOT}/usr/sbin/MAKEDEV hde
- ${ROOT}/usr/sbin/MAKEDEV hdf
- ${ROOT}/usr/sbin/MAKEDEV hdg
- ${ROOT}/usr/sbin/MAKEDEV hdh
- fi
- # We create the /boot directory here so that /boot doesn't get deleted when a previous
- # baselayout is unmerged with /boot unmounted.
- install -d ${ROOT}/boot
- if [ ! -L ${ROOT}/boot/boot ]
- then
- ln -snf . ${ROOT}/boot/boot
- fi
- # We create this here so we don't overwrite an existing /etc/hosts during bootstrap
- if [ ! -e ${ROOT}/etc/hosts ]
- then
- cat << EOF >> ${ROOT}/etc/hosts
-127.0.0.1 localhost
-EOF
- fi
- if [ -L ${ROOT}/etc/mtab ]
- then
- rm -f ${ROOT}/etc/mtab
- if [ "$ROOT" = "/" ]
- then
- cp /proc/mounts ${ROOT}/etc/mtab
- else
- touch ${ROOT}/etc/mtab
- fi
- fi
- # We should only install empty files if these files don't already exist.
- local x=""
- for x in log/lastlog run/utmp log/wtmp
- do
- [ -e ${ROOT}/var/${x} ] || touch ${ROOT}/var/${x}
- done
- for x in run/utmp log/wtmp
- do
- chgrp utmp ${ROOT}/var/${x}
- chmod 0664 ${ROOT}/var/${x}
- done
-
-
- # Handle the ${svcdir} that changed in location
- if [ ! -d ${ROOT}/${svcdir}/started/ ] && \
- [ -z "`use bootstrap`" -a -z "`use build`" ]
- then
- mkdir -p ${ROOT}/${svcdir}
- mount -t tmpfs tmpfs ${ROOT}/${svcdir}
- if [ -d ${ROOT}/dev/shm/.init.d ]
- then
- cp -ax ${ROOT}/dev/shm/.init.d/. ${ROOT}/${svcdir}
- fi
- fi
-
- # Touching /etc/passwd and /etc/shadow after install can be fatal, as many
- # new users do not update them properly. thus remove all ._cfg files if
- # we are not busy with a bootstrap.
- if [ -z "`use build`" -a -z "`use bootstrap`" ]
- then
- ewarn "Removing invalid backup copies of critical config files..."
- rm -f ${ROOT}/etc/._cfg????_{passwd,shadow}
- fi
-
- # Reload init to fix unmounting problems of / on next reboot
- # this is really needed, as without the new version of init cause init
- # not to quit properly on reboot, and causes a fsck of / on next reboot.
- if [ "${ROOT}" = "/" -a -z "`use build`" -a -z "`use bootstrap`" ]
- then
- # Do not return an error if this fails
- /sbin/init U &>/dev/null || :
- fi
-
- # Simple Release version for testing of features that *should* be
- # present in the rc-scripts, etc.
- echo "Gentoo Base System version ${SV}" > ${ROOT}/etc/gentoo-release
-}
-
-pkg_postrm() {
-
- # Fix problematic links
- ln -snf ../X11R6/include/X11 ${ROOT}/usr/include/X11
- ln -snf ../X11R6/include/GL ${ROOT}/usr/include/GL
- ln -snf ../X11R6/lib/X11 ${ROOT}/usr/lib/X11
-}
-
diff --git a/sys-apps/baselayout/baselayout-1.8.5.5.ebuild b/sys-apps/baselayout/baselayout-1.8.5.5.ebuild
index 02d5873344f2..0e526858ab08 100644
--- a/sys-apps/baselayout/baselayout-1.8.5.5.ebuild
+++ b/sys-apps/baselayout/baselayout-1.8.5.5.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout/baselayout-1.8.5.5.ebuild,v 1.3 2002/12/16 18:43:48 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout/baselayout-1.8.5.5.ebuild,v 1.4 2002/12/18 10:54:23 azarah Exp $
IUSE="bootstrap build"
@@ -19,7 +19,7 @@ HOMEPAGE="http://www.gentoo.org/"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="~x86 ~ppc ~sparc ~alpha"
+KEYWORDS="x86 ppc sparc alpha"
DEPEND="sys-kernel/linux-headers
>=sys-apps/portage-2.0.23"
diff --git a/sys-apps/baselayout/files/MAKEDEV b/sys-apps/baselayout/files/MAKEDEV
deleted file mode 100755
index 17d3f3256b3f..000000000000
--- a/sys-apps/baselayout/files/MAKEDEV
+++ /dev/null
@@ -1,1440 +0,0 @@
-#! /bin/sh -
-
-RCSID='$Id: MAKEDEV,v 1.2 2001/02/27 16:11:41 achim Exp $'
-
-#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#
-# Customisation:
-# The devices fall into various classes. This section contains the mapping
-# from a class name into a group name and permission.
-# You will almost certainly need to edit the group name to match your
-# system, and you may change the permissions to suit your preference. These
-# lines _must_ be of the format "user group perm".
-
- public=" root root 0666"
-private=" root root 0600"
- system=" root root 0660"
- kmem=" root kmem 0640"
- tty=" root tty 0666"
- cons=" root tty 0622"
- vcs=" root root 0600"
-dialout=" root dialout 0660"
- mouse=" root root 0660"
-printer=" root lp 0660"
- floppy=" root floppy 0660"
- disk=" root disk 0660"
- scsi=" root root 0600"
- cdrom=" root disk 0660"
- tape=" root tape 0660"
- audio=" root audio 0660"
- video=" root root 0660"
- ibcs2=" root root 0666"
-scanner=" root root 0666"
- coda=" root root 0600"
- ipsec=" root root 0200"
-readable=" root root 0444"
-
-MAXVT=63
-
-# defaults for $major_*
-major_ide0=3
-major_ide1=22
-major_sd=8
-major_lp=6
-
-#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#
-
-procfs=/proc
-
-opt_v=
-opt_d=
-opt_n=
-
-while [ $# -ge 1 ]
-do
- case $1 in
- --) shift; break ;;
- -v) shift; opt_v=1 ;;
- -d) shift; opt_d=1 ;;
- -n) shift; opt_n=1; opt_v=1 ;;
- -V) shift; opt_V=1 ;;
- -*) echo "$0: unknown flag \"$1\"" >&2; exit 1 ;;
- *) break ;;
- esac
-done
-
-if [ "$opt_V" ]
-then
- echo "$RCSID"
- exit 0
-fi
-
-opts="${opt_n:+-n} ${opt_v:+-v} ${opt_d:+-d}"
-
-#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#
-
-makedev () { # usage: makedev name [bcu] major minor owner group mode
- if [ "$opt_v" ]
- then if [ "$opt_d" ]
- then echo "delete $1"
- else echo "create $1 $2 $3 $4 $5:$6 $7"
- fi
- fi
- if [ ! "$opt_n" ]
- then if [ "$opt_d" ]
- then
- rm -f $1
- else
- rm -f $1-
- mknod $1- $2 $3 $4 &&
- chown $5:$6 $1- &&
- chmod $7 $1- &&
- mv $1- $1
- fi
- fi
-}
-symlink () { # usage: symlink name target
- if [ "$opt_v" ]
- then if [ "$opt_d" ]
- then echo "delete $1"
- else echo "create $1 -> $2"
- fi
- fi
- [ ! "$opt_n" ] && rm -f $1 &&
- [ ! "$opt_d" ] && ln -s $2 $1
-}
-
-#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#
-
-# For bash and ksh, we can use faster builtin routines to do manipulation,
-# otherwise (ash) fall back to slower method using `expr'.
-# The extra level of indirection using `eval' is necessary a) for ksh, and
-# b) to get past ash.
-
-if [ "$RANDOM" != "$RANDOM" ]
-then
- math () {
- eval echo "\$(($*))"
- }
- index () { # index string c
- eval "I=\${1%$2*}"
- eval echo "\${#I}"
- }
- suffix () {
- eval echo "\${1#$2}"
- }
- strip () {
- eval echo "\${1% $2 *} \${1#* $2 }"
- }
- first () {
- eval echo "\${1:0:1}"
- }
- second () {
- eval echo "\${1:1:1}"
- }
-else
- math () {
- expr "$@"
- }
- index () { # index string c
- expr $1 : ".*$2" - 1
- }
- suffix () {
- expr "$1" : "$2\(.*\)"
- }
- strip () {
- echo "[$1][$2]" >&2
- echo "`expr \"$1\" : \"\(.*\) $2 \"` `expr \"$1\" : \".* $2 \(.*\)\"`"
- }
- first () {
- expr "$1" : "\(.\)"
- }
- second () {
- expr "$1" : ".\(.\)"
- }
-fi
-
-#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#
-
-devices=
-if [ ! -f $procfs/devices ]
-then
- echo "$0: warning: can't read $procfs/devices" >&2
-else
- exec 3<$procfs/devices
- while read major device <&3
- do
- device=${device%/*}
- case "$major" in
- Character|Block|'')
- ;;
- *)
- eval "major_$device=$major"
- devices="$devices $device"
- ;;
- esac
- done
- exec 3<&-
-fi
-
-Major () {
- device=$2
- if [ "$opt_d" ]
- then
- echo -1 # don't care
- else
- eval echo \${major_$1:-\${device:?\"unknown major number for $1\"}}
- fi
-}
-
-cvt () {
- while [ $# -ne 0 ]
- do
- case "$1" in
- mem|tty|ttyp|cua|cub) ;;
- hd) (for d in a b c d e f g h ; do
- echo -n hd$d " "
- done) ; echo
- ;;
- ide0) echo hda hdb ;;
- ide1) echo hdc hdd ;;
- ide2) echo hde hdf ;;
- ide3) echo hdg hdh ;;
- sd) echo sda sdb sdc sdd ;;
- sg) echo sg ;;
- sr) echo scd0 ;;
- st) echo st0 ;;
- xd) echo xda xdb ;;
- ad) echo ada adb ;;
- fd) echo fd0 fd1 ;;
- lp) echo lp ;;
- mt) echo ftape ;;
- loop) echo loop ;;
- md) echo md ;;
- ibcs2) echo ibcs2 ;;
- tpqic02) echo qic ;;
- sound) echo audio ;;
- logiscan) echo logiscan ;;
- ac4096) echo ac4096 ;;
- hw) echo helloworld ;;
- sbpcd | sbpcd[123]) echo $1 ;;
- joystick) echo js ;;
- apm_bios) echo apm ;;
- dcf) echo dcf ;;
- aztcd) echo aztcd ;;
- pcmcia) ;; # taken care of by its own driver
- ttyC) echo cyclades ;;
- isdn) echo isdnmodem isdnbri dcbri ;;
- vcs) ;;
- pty) echo pty ;;
- misc) echo misc ;;
- fb) echo fb ;;
- netlink) echo netlink ;;
- hamradio) echo hamradio ;;
- snd) ;;
- ptm) ;;
- pts) ;;
- ttyS) echo ttyS0 ttyS1 ttyS2 ttyS3 ;;
- *) echo "$0: don't know what \"$1\" is" >&2 ;;
- esac
- shift
- done
-}
-
-for arg
-do
- case $arg in
- generic)
- # pick the right generic-<arch> using dpkg's knowledge
- case `dpkg --print-installation-architecture` in
- i386)
- $0 $opts generic-i386
- ;;
- m68k)
- $0 $opts generic-m68k
- ;;
- powerpc)
- $0 $opts generic-powerpc
- ;;
- sparc)
- $0 $opts generic-sparc
- ;;
- *)
- echo "$0: no support for generic-$arg" >&2
- exit 1
- ;;
- esac
- ;;
- generic-i386)
- $0 $opts std
- $0 $opts fd
- $0 $opts fd0 fd1
- $0 $opts hda hdb hdc hdd
- $0 $opts xda xdb
- $0 $opts sda sdb sdc sdd
- $0 $opts pty
- $0 $opts console
- $0 $opts ttyS0 ttyS1 ttyS2 ttyS3
- $0 $opts busmice
- $0 $opts lp
- $0 $opts par
- $0 $opts fb
- ;;
- generic-m68k)
- $0 $opts std
- $0 $opts fd
- $0 $opts fd0-bare fd1-bare
- $0 $opts hda hdb
- $0 $opts sda sdb
- $0 $opts ada adb
- $0 $opts pty
- $0 $opts console
- $0 $opts ttyS0 ttyS1 ttyS2 ttyS3 ttyS5
- $0 $opts m68k-mice
- $0 $opts lp
- $0 $opts par
- $0 $opts nvram
- $0 $opts audio
- $0 $opts fb
- ;;
- generic-powerpc)
- $0 $opts std
- $0 $opts fd
- $0 $opts fd0-bare fd1-bare
- $0 $opts hda hdb
- $0 $opts sda sdb sdc sdd
- $0 $opts scd0 scd1
- $0 $opts st0 st1
- $0 $opts pty
- $0 $opts console
- $0 $opts ttyS0 ttyS1 ttyS2 ttyS3
- $0 $opts busmice
- $0 $opts lp
- $0 $opts par
- $0 $opts nvram
- $0 $opts audio
- $0 $opts adb
- $0 $opts fb
- $0 $opts rtc
- ;;
- generic-sparc)
- $0 $opts std
- $0 $opts fd0-bare fd1-bare
- $0 $opts hda hdb
- $0 $opts sda sdb sdc sdd
- $0 $opts scd0 scd1
- $0 $opts st0 st1
- $0 $opts pty
- $0 $opts console
- $0 $opts ttyS0 ttyS1 ttyS2 ttyS3
- $0 $opts fb
- $0 $opts rtc
- makedev kbd c 11 0 $cons
- makedev sunmouse c 10 6 $mouse
- ln -sf sunmouse mouse
- ;;
- local)
- $0.local $opts
- ;;
- std)
- makedev mem c 1 1 $kmem
- makedev kmem c 1 2 $kmem
- makedev null c 1 3 $public
- makedev port c 1 4 $kmem
- makedev zero c 1 5 $public
- symlink core $procfs/kcore
- makedev full c 1 7 $public
- makedev random c 1 8 $readable
- makedev urandom c 1 9 $readable
- makedev tty c 5 0 $tty
- $0 ram
- $0 loop
- ;;
- hamradio)
- $0 scc
- $0 bc
- ;;
- scc)
- for unit in 0 1 2 3 4 5 6 7
- do
- makedev scc$unit c 34 $unit $system
- done
- ;;
- bc)
- for unit in 0 1 2 3
- do
- makedev bc$unit c 51 $unit $system
- done
- ;;
- random)
- makedev random c 1 8 $readable
- ;;
- urandom)
- makedev urandom c 1 9 $readable
- ;;
- ram)
- for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 ; do
- makedev ram$i b 1 $i $disk
- done
- ln -sf ram1 ram
- ;;
- initrd)
- makedev initrd b 1 250 $disk
- ;;
- console)
- major=`Major vcs` # not fatal
- makedev tty0 c 4 0 $cons
- # console
- # new kernels need a device, old ones a symlink... sigh
- kern_rev1=`uname -r | awk -F'.' '{print $1}'`
- kern_rev2=`uname -r | awk -F'.' '{print $2}'`
- if [ $kern_rev1 -gt 2 ]
- then
- makedev console c 5 1 $cons
- else
- if [ $kern_rev1 -eq 2 -a $kern_rev2 -ge 1 ]
- then
- makedev console c 5 1 $cons
- else
- symlink console tty0
- fi
- fi
- [ "$major" ] && makedev vcs0 c $major 0 $vcs
- [ "$major" ] && makedev vcsa c $major 128 $vcs
- # individual vts
- line=1
- while [ $line -le $MAXVT -a $line -le 63 ]
- do
- makedev tty$line c 4 $line $tty
- [ "$major" ] && makedev vcs$line c $major $line $vcs
- [ "$major" ] && makedev vcsa$line c $major `math $line + 128` $vcs
- line=`math $line + 1`
- done
- ;;
- adb)
- # pick the right arch device using dpkg's knowledge
- case `dpkg --print-installation-architecture` in
- powerpc)
- # ADB bus devices (char)
- makedev adb c 56 0 $mouse
- makedev adbmouse c 10 10 $mouse
- ;;
- m68k)
- # ACSI disk 2, whole device (block)
- makedev adb b 28 16 $disk
- for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
- do
- minor=`expr 16 + $part`
- makedev adb$part b 28 $minor $disk
- done
- ;;
- *)
- echo "no support for adb on $arg" >&2
- exit 1
- ;;
- esac
- ;;
- nvram)
- makedev nvram c 10 144 $kmem
- ;;
- tty[1-9]|tty[1-5][0-9]|tty[6][0-3])
- line=`suffix $arg tty`
- makedev tty$line c 4 $line $tty
- ;;
- ttyS[0-9]|ttyS[1-5][0-9]|ttyS[6][0-3])
- line=`suffix $arg ttyS`
- minor=`math 64 + $line`
- makedev ttyS$line c 4 $minor $dialout
- ;;
- pty[a-ep-z])
- bank=`suffix $arg pty`
- base=`index pqrstuvwxyzabcde $bank`
- base=`math $base \* 16`
- for i in 0 1 2 3 4 5 6 7 8 9 a b c d e f
- do
- j=`index 0123456789abcdef $i`
- makedev pty$bank$i c 2 `math $base + $j` $tty
- makedev tty$bank$i c 3 `math $base + $j` $tty
- done
- ;;
- pty)
- ptysufs=""
- for i in p q r s t u v w x y z a b c d e
- do
- ptysufs="$ptysufs pty$i"
- done
- $0 $opts $ptysufs ptmx
- ;;
- ptmx)
- # master pty multiplexer for 2.1 kernels
- makedev ptmx c 5 2 $tty
- ;;
- cyclades|ttyC)
- major1=`Major ttyC 19` || continue
- #major2=`Major cub 20` || continue
- for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 \
- 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
- do
- makedev ttyC$i c $major1 $i $tty
- #makedev cub$i c $major2 $i $dialout
- done
- ;;
- stallion|ttyE)
- major1=`Major ttyE 24` || continue
- #major2=`Major cue 25` || continue
- majorc=28
- minor=0
- until [ $minor -gt 256 ]
- do
- makedev ttyE$minor c $major1 $minor $dialout
- #makedev cue$minor c $major2 $minor $dialout
- minor=`math minor + 1`
- done
- for i in 0 1 2 3
- do
- makedev staliomem$i c $majorc $i $private
- done
- ;;
- chase|ttyH)
- major1=`Major ttyH 17` || continue
- #major2=`Major cuh 18` || continue
- minor=0
- until [ $minor -gt 16 ] # tell me if 16 is wrong
- do
- makedev ttyH$minor c $major1 $minor $dialout
- #makedev cuh$minor c $major2 $minor $dialout
- minor=`math minor + 1`
- done
- ;;
- rocketport|ttyR)
- major1=`Major ttyR 46` || continue
- #major2=`Major cur 47` || continue
- minor=0
- until [ $minor -gt 64 ] # tell me if 64 is wrong
- do
- makedev ttyR$minor c $major1 $minor $dialout
- #makedev cur$minor c $major2 $minor $dialout
- minor=`math minor + 1`
- done
- ;;
- ttyV)
- major1=`Major ttyV 105` || continue
- #major2=`Major cuv 106` || continue
- minor=0
- until [ $minor -gt 16 ] # tell me if 16 is wrong
- do
- makedev ttyV$minor c $major1 $minor $dialout
- #makedev cuv$minor c $major2 $minor $dialout
- minor=`math minor + 1`
- done
- ;;
- digi|ttyD)
- major1=`Major ttyD 22` || continue
- #major2=`Major cud 23` || continue
- minor=0
- until [ $minor -gt 16 ] # tell me if 16 is wrong
- do
- makedev ttyD$minor c $major1 $minor $dialout
- #makedev cud$minor c $major2 $minor $dialout
- minor=`math minor + 1`
- done
- ;;
- specialix|ttyX)
- major1=`Major ttyX 32` || continue
- #major2=`Major cux 33` || continue
- minor=0
- until [ $minor -gt 16 ] # tell me if 16 is wrong
- do
- makedev ttyX$minor c $major1 $minor $dialout
- #makedev cux$minor c $major2 $minor $dialout
- minor=`math minor + 1`
- done
- ;;
- specialixIO8|ttyW)
- major1=`Major ttyW 75` || continue
- #major2=`Major cuw 76` || continue
- minor=0
- until [ $minor -gt 16 ] # tell me if 16 is wrong
- do
- makedev ttyW$minor c $major1 $minor $dialout
- #makedev cuw$minor c $major2 $minor $dialout
- minor=`math minor + 1`
- done
- ;;
- PAM|ttyM)
- major1=`Major ttyM 79` || continue
- #major2=`Major cum 80` || continue
- minor=0
- until [ $minor -gt 16 ] # tell me if 16 is wrong
- do
- makedev ttyM$minor c $major1 $minor $dialout
- #makedev cum$minor c $major2 $minor $dialout
- minor=`math minor + 1`
- done
- ;;
- riscom|ttyL)
- major=`Major ttyL 48` || continue
- minor=0
- until [ $minor -gt 16 ] # tell me if 16 is wrong
- do
- makedev ttyL$minor c $major $minor $dialout
- minor=`math minor + 1`
- done
- ;;
- computone|ttyF)
- major=`Major ttyF 71` || continue
- #major2=`Major cuf 72` || continue
- minor=0
- until [ $minor -gt 255 ]
- do
- makedev ttyF$minor c $major $minor $dialout
- #makedev cuf$minor c $major2 $minor $dialout
- minor=`math minor + 1`
- done
- major=73
- for i in 0 4 8 12
- do
- makedev ip2ipl$i c $major $i $private
- makedev ip2stat$i c $major `math $i + 1` $private
- done
- ;;
- ESP|ttyP)
- major=`Major ttyP 57` || continue
- #major2=`Major cup 58` || continue
- minor=0
- until [ $minor -gt 4 ] # tell me if 4 is wrong
- do
- makedev ttyP$minor c $major $minor $dialout
- #makedev cup$minor c $major2 $minor $dialout
- minor=`math minor + 1`
- done
- ;;
- COMX|comx)
- major=`Major comx 88` || continue
- minor=0
- until [ $minor -gt 4 ] # tell me if 4 is wrong
- do
- makedev comx$minor c $major $minor $private
- minor=`math minor + 1`
- done
- ;;
- isdnmodem|ttyI)
- major1=`Major ttyI 43` || continue
- #major2=`Major cui 44` || continue
- minor=0
- until [ $minor -gt 63 ]
- do
- makedev ttyI$minor c $major1 $minor $dialout
- #makedev cui$minor c $major2 $minor $dialout
- minor=`math minor + 1`
- done
- ;;
- isdnbri)
- major=45
- minor=0
- until [ $minor -gt 63 ]
- do
- makedev isdn$minor c $major $minor $private
- makedev isdnctrl$minor c $major `math $minor + 64` $private
- makedev ippp$minor c $major `math $minor + 128` $private
- minor=`math minor + 1`
- done
- makedev isdninfo c $major 255 $private
- ;;
- dcbri)
- major=52
- for i in 0 1 2 3
- do
- makedev dcbri$i c $major $i $private
- done
- ;;
- capi)
- major=68
- makedev capi20 c $major 0 $private
- for i in 0 1 2 3 4 5 6 7 8 9
- do
- makedev capi20.0$i c $major `math $i + 1` $private
- done
- for i in 10 11 12 13 14 15 16 17 18 19
- do
- makedev capi20.$i c $major `math $i + 1` $private
- done
- ;;
- fb)
- for i in 0 1 2 3 4 5 6 7
- do
- makedev fb$i c 29 `math 32 \* $i` $cons
- makedev fb${i}current c 29 `math 32 \* $i` $cons
- makedev fb${i}autodetect c 29 `math 32 \* $i + 1` $cons
- done
- ;;
- fb[0-7])
- dev=`suffix $arg fb`
- base=`math 32 \* $dev`
- makedev fb$dev c 29 $base $cons
- makedev fb${dev}current c 29 $base $cons
- makedev fb${dev}autodetect c 29 `math $base + 1` $cons
- for i in 0 1 2 3 4 5 6 7
- do
- makedev fb${dev}user$i c 29 `math $base + 24 + $i` $cons
- done
- ;;
- netlink)
- makedev route c 36 0 $coda
- makedev skip c 36 0 $coda
- ;;
- lp)
- major=`Major lp 6` || continue
- makedev ${arg}0 c $major 0 $printer
- makedev ${arg}1 c $major 1 $printer
- makedev ${arg}2 c $major 2 $printer
- ;;
- par)
- major=`Major lp 6` || continue
- makedev ${arg}0 c $major 0 $printer
- makedev ${arg}1 c $major 1 $printer
- makedev ${arg}2 c $major 2 $printer
- ;;
- parport)
- major=`Major parport 99` || continue
- makedev ${arg}0 c $major 0 $printer
- makedev ${arg}1 c $major 1 $printer
- makedev ${arg}2 c $major 2 $printer
- ;;
- slm)
- major=`Major slm 28` || continue
- for i in 0 1 2 3
- do
- makedev slm c $major $i $printer
- done
- ;;
- busmice)
- major=`Major mouse 10` || continue
- makedev logibm c $major 0 $mouse
- makedev psaux c $major 1 $mouse
- makedev inportbm c $major 2 $mouse
- makedev atibm c $major 3 $mouse
- makedev jbm c $major 4 $mouse
- ;;
- m68k-mice)
- major=`Major mouse 10` || continue
- makedev amigamouse c $major 4 $mouse
- makedev atarimouse c $major 5 $mouse
- makedev amigamouse1 c $major 7 $mouse
- makedev adbmouse c $major 10 $mouse
- ;;
- misc)
- major=`Major mouse 10` || continue
- makedev logibm c $major 0 $mouse
- makedev psaux c $major 1 $mouse
- makedev inportbm c $major 2 $mouse
- makedev atibm c $major 3 $mouse
- makedev jbm c $major 4 $mouse
- makedev amigamouse c $major 4 $mouse
- makedev atarimouse c $major 5 $mouse
- makedev sunmouse c $major 6 $mouse
- makedev amigamouse1 c $major 7 $mouse
- makedev smouse c $major 8 $mouse
- makedev pc110pad c $major 9 $mouse
- makedev adbmouse c $major 10 $mouse
- makedev beep c $major 128 $mouse
- makedev modreq c $major 129 $mouse
- makedev watchdog c $major 130 $mouse
- makedev temperature c $major 131 $mouse
- makedev hwtrap c $major 132 $mouse
- makedev exttrp c $major 133 $mouse
- makedev apm_bios c $major 134 $mouse
- makedev rtc c $major 135 $mouse
- makedev openprom c $major 139 $mouse
- makedev relay8 c $major 140 $mouse
- makedev relay16 c $major 141 $mouse
- makedev msr c $major 142 $mouse
- makedev pciconf c $major 143 $mouse
- makedev nvram c $major 144 $mouse
- makedev hfmodem c $major 145 $mouse
- makedev led c $major 151 $mouse
- makedev mergemem c $major 153 $mouse
- makedev pmu c $major 154 $mouse
- ;;
- rtc)
- major=`Major mouse 10` || continue
- makedev rtc c $major 135 $mouse
- ;;
- js)
- major=`Major Joystick` || continue
- makedev js0 c $major 0 $mouse
- makedev js1 c $major 1 $mouse
- ;;
- fd[0-7]-bare)
- sarg="${arg%-bare}"
- major=`Major fd 2` || continue
- base=`suffix $sarg fd`
- if [ $base -ge 4 ]
- then
- base=`math $base + 124`
- fi
- makedev ${sarg} b $major $base $floppy
- ;;
- fd[0-7])
- major=`Major fd 2` || continue
- base=`suffix $arg fd`
- if [ $base -ge 4 ]
- then
- base=`math $base + 124`
- fi
- makedev ${arg} b $major $base $floppy
- makedev ${arg}d360 b $major `math $base + 4` $floppy
- makedev ${arg}h1200 b $major `math $base + 8` $floppy
- makedev ${arg}u360 b $major `math $base + 12` $floppy
- makedev ${arg}u720 b $major `math $base + 16` $floppy
- makedev ${arg}h360 b $major `math $base + 20` $floppy
- makedev ${arg}h720 b $major `math $base + 24` $floppy
- makedev ${arg}u1440 b $major `math $base + 28` $floppy
- makedev ${arg}u2880 b $major `math $base + 32` $floppy
- makedev ${arg}CompaQ b $major `math $base + 36` $floppy
-
- makedev ${arg}h1440 b $major `math $base + 40` $floppy
- makedev ${arg}u1680 b $major `math $base + 44` $floppy
- makedev ${arg}h410 b $major `math $base + 48` $floppy
- makedev ${arg}u820 b $major `math $base + 52` $floppy
- makedev ${arg}h1476 b $major `math $base + 56` $floppy
- makedev ${arg}u1722 b $major `math $base + 60` $floppy
- makedev ${arg}h420 b $major `math $base + 64` $floppy
- makedev ${arg}u830 b $major `math $base + 68` $floppy
- makedev ${arg}h1494 b $major `math $base + 72` $floppy
- makedev ${arg}u1743 b $major `math $base + 76` $floppy
- makedev ${arg}h880 b $major `math $base + 80` $floppy
- makedev ${arg}u1040 b $major `math $base + 84` $floppy
- makedev ${arg}u1120 b $major `math $base + 88` $floppy
- makedev ${arg}h1600 b $major `math $base + 92` $floppy
- makedev ${arg}u1760 b $major `math $base + 96` $floppy
- makedev ${arg}u1920 b $major `math $base + 100` $floppy
- makedev ${arg}u3200 b $major `math $base + 104` $floppy
- makedev ${arg}u3520 b $major `math $base + 108` $floppy
- makedev ${arg}u3840 b $major `math $base + 112` $floppy
- makedev ${arg}u1840 b $major `math $base + 116` $floppy
- makedev ${arg}u800 b $major `math $base + 120` $floppy
- makedev ${arg}u1600 b $major `math $base + 124` $floppy
- ;;
- ed[a-b])
- major=`Major ed 36` || continue
- unit=`suffix $arg ed`
- base=`index ab $unit`
- base=`math $base \* 64`
- makedev ed$unit b $major $base $disk
- for part in 1 2 3 4 5 6 7 8 # 9 10 11 12 13 14 15 16 17 18 19 20
- do
- makedev ed$unit$part b $major `math $base + $part` $disk
- done
- ;;
- hd[a-b])
- major=`Major ide0` || major=`Major hd 3` || continue
- unit=`suffix $arg hd`
- base=`index ab $unit`
- base=`math $base \* 64`
- makedev hd$unit b $major $base $disk
- for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
- do
- makedev hd$unit$part b $major `math $base + $part` $disk
- done
- ;;
- hd[c-d])
- major=`Major ide1 22` || continue
- unit=`suffix $arg hd`
- base=`index cd $unit`
- base=`math $base \* 64`
- makedev hd$unit b $major $base $disk
- for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
- do
- makedev hd$unit$part b $major `expr $base + $part` $disk
- done
- ;;
- hd[e-f])
- major=`Major ide2 33` || continue
- unit=`suffix $arg hd`
- base=`index ef $unit`
- base=`math $base \* 64`
- makedev hd$unit b $major $base $disk
- for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
- do
- makedev hd$unit$part b $major `expr $base + $part` $disk
- done
- ;;
- hd[g-h])
- major=`Major ide3 34` || continue
- unit=`suffix $arg hd`
- base=`index gh $unit`
- base=`math $base \* 64`
- makedev hd$unit b $major $base $disk
- for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
- do
- makedev hd$unit$part b $major `expr $base + $part` $disk
- done
- ;;
- hd[i-j])
- major=`Major ide4 56` || continue
- unit=`suffix $arg hd`
- base=`index gh $unit`
- base=`math $base \* 64`
- makedev hd$unit b $major $base $disk
- for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
- do
- makedev hd$unit$part b $major `expr $base + $part` $disk
- done
- ;;
- hd[k-l])
- major=`Major ide4 57` || continue
- unit=`suffix $arg hd`
- base=`index gh $unit`
- base=`math $base \* 64`
- makedev hd$unit b $major $base $disk
- for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
- do
- makedev hd$unit$part b $major `expr $base + $part` $disk
- done
- ;;
- ht)
- major=`Major ht0 37` || continue
- # Only one IDE tape drive is currently supported; ht0.
- makedev ht0 c $major 0 $tape
- makedev ht0 c $major 0 $tape
- makedev nht0 c $major 128 $tape
- ;;
- pt)
- major=`Major pt 96` || continue
- for i in 0 1 2 3
- do
- makedev pt$i c $major $i $tape
- makedev npt$i c $major `math $i + 128` $tape
- done
- ;;
- xd[a-d])
- major=`Major xd 13` || continue
- unit=`suffix $arg xd`
- base=`index abcd $unit`
- base=`math $base \* 64`
- makedev xd$unit b $major $base $disk
- for part in 1 2 3 4 5 6 7 8 # 9 10 11 12 13 14 15 16 17 18 19 20
- do
- makedev xd$unit$part b $major `expr $base + $part` $disk
- done
- ;;
- sd[a-z])
- major=`Major sd 8` || continue
- unit=`suffix $arg sd`
- base=`index abcdefghijklmnopqrstuvwxyz $unit`
- base=`math $base \* 16`
- if [ $base -lt 256 ]; then
- major=8
- else
- major=65
- base=`math $base \- 256`
- fi
- makedev sd$unit b $major $base $disk
- for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
- do
- minor=`expr $base + $part`
- makedev sd$unit$part b $major $minor $disk
- done
- ;;
- sd[a-d][a-z])
- unit=`suffix $arg sd`
- unitmaj=`first $unit`
- unitmin=`second $unit`
- basemaj=`index Xabcd $unitmaj`
- basemin=`index abcdefghijklmnopqrstuvwxyz $unitmin`
- basemaj=`math $basemaj \* 416`
- basemin=`math $basemin \* 16`
- base=`math $basemaj + $basemin`
- basemaj=`math $base / 256`
- base=`math $base % 256`
- major=`math basemaj \+ 64`
- if [ $major -gt 71 ]; then
- echo "$0: don't know how to make device \"$arg\"" >&2
- exit 0
- fi
- makedev sd$unit b $major $base $disk
- for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
- do
- minor=`expr $base + $part`
- makedev sd$unit$part b $major $minor $disk
- done
- ;;
- ad[a-p])
- major=`Major ad 28` || continue
- unit=`suffix $arg ad`
- base=`index abcdefghijklmnop $unit`
- base=`math $base \* 16`
- makedev ad$unit b $major $base $disk
- for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
- do
- minor=`expr $base + $part`
- makedev ad$unit$part b $major $minor $disk
- done
- ;;
- dac960)
- [ -d rd ] || {
- mkdir rd
- chown root.root rd
- chmod 755 rd
- }
- for ctr in 0 1 2 3 4 5 6 7
- do
- major=`math 48 + $ctr`
- minor=0
- for ld in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 \
- 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
- do
- makedev rd/c${ctr}d${ld} b $major $minor $disk
- minor=`math minor + 1`
- for part in 1 2 3 4 5 6 7
- do
- makedev rd/c${ctr}d${ld}p$part b $major $minor $disk
- minor=`math minor + 1`
- done
- done
- done
- ;;
- ida)
- [ -d ida ] || {
- mkdir ida
- chown root.root ida
- chmod 755 ida
- }
- for ctr in 0 1 2 # 3 4 5 6 7
- do
- major=`math 72 + $ctr`
- minor=0
- for ld in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
- do
- makedev ida/c${ctr}d${ld} b $major $minor $disk
- minor=`math minor + 1`
- for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
- do
- makedev ida/c${ctr}d${ld}p$part b $major $minor $disk
- minor=`math minor + 1`
- done
- done
- done
- ;;
- rom)
- major=`Major rom 31`
- for i in 0 1 2 3 4 5 6 7
- do
- makedev rom$i b $major $i $disk
- makedev rrom$i b $major `math $i +8` $disk
- makedev flash$i b $major `math $i +16` $disk
- makedev rflash$i b $major `math $i +24` $disk
- done
- ;;
- nb)
- major=`Major nbd 43` || continue
- minor=0
- while [ $minor -lt 128 ] ; do
- makedev nb$minor b $major $minor $disk
- minor=`math $minor + 1`
- done
- ;;
- loop)
- major=`Major loop 7` || continue
- for part in 0 1 2 3 4 5 6 7
- do
- makedev loop$part b $major $part $disk
- done
- ;;
- md)
- major=`Major md` || continue
- for part in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
- do
- makedev md$part b $major $part $disk
- done
- ;;
- st[0-7])
- major=`Major st 9`
- unit=`suffix $arg st`
- makedev st${unit} c $major $unit $tape
- makedev nst${unit} c $major `math 128 + $unit` $tape
-
- makedev st${unit}l c $major `math 32 + $unit` $tape
- makedev nst${unit}l c $major `math 160 + $unit` $tape
-
- makedev st${unit}m c $major `math 64 + $unit` $tape
- makedev nst${unit}m c $major `math 192 + $unit` $tape
-
- makedev st${unit}a c $major `math 96 + $unit` $tape
- makedev nst${unit}a c $major `math 224 + $unit` $tape
- ;;
- qic)
- major=`Major tpqic02 12`
- makedev ntpqic11 c $major 2 $tape
- makedev tpqic11 c $major 3 $tape
- makedev ntpqic24 c $major 4 $tape
- makedev tpqic24 c $major 5 $tape
- makedev ntpqic120 c $major 6 $tape
- makedev tpqic120 c $major 7 $tape
- makedev ntpqic150 c $major 8 $tape
- makedev tpqic150 c $major 9 $tape
- makedev rmt8 c $major 6 $tape
- makedev rmt16 c $major 8 $tape
- makedev tape-d c $major 136 $tape
- makedev tape-reset c $major 255 $tape
- major=`Major qft 27`
- for i in 0 1 2 3
- do
- makedev qft$i c $major $i $tape
- makedev nqft$i c $major `math $i + 4` $tape
- makedev zqft$i c $major `math $i + 16` $tape
- makedev nzqft$i c $major `math $i + 20` $tape
- makedev rawqft$i c $major `math $i + 32` $tape
- makedev nrawqft$i c $major `math $i + 36` $tape
- done
- ;;
- ftape)
- major=`Major mt 27` || continue
- for unit in 0 1 2 3
- do
- makedev rft$unit c $major $unit $tape
- makedev nrft$unit c $major `math $unit + 4` $tape
- done
- symlink ftape rft0
- symlink nftape nrft0
- ;;
- scd|scd-all)
- major=`Major sr 11` || continue
- for unit in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
- do
- makedev scd$unit b $major $unit $cdrom
- done
- ;;
- cfs0)
- makedev cfs0 c 67 0 $coda
- ;;
- scd[0-9]|scd[0-1][0-9])
- major=`Major sr 11` || continue
- unit=`suffix $arg scd`
- makedev scd$unit b $major $unit $cdrom
- ;;
- ttyI[0-9]|ttyI[1-5][0-9]|ttyI[6][0-3])
- major=43
- unit=`suffix $arg ttyI`
- makedev ttyI$unit c $major $unit $dialout
- ;;
- ippp[0-9]|ippp[1-5][0-9]|ippp[6][0-3])
- major=45
- unit=`suffix $arg ippp`
- minor=`math $unit + 128`
- makedev ippp$unit c $major $minor $dialout
- ;;
- isdn[0-9]|isdn[1-5][0-9]|isdn[6][0-3])
- major=45
- unit=`suffix $arg isdn`
- minor=`math $unit + 0`
- makedev isdn$unit c $major $minor $dialout
- ;;
- isdnctrl[0-9]|isdnctrl[1-5][0-9]|isdnctrl[6][0-3])
- major=45
- unit=`suffix $arg isdnctrl`
- minor=`math $unit + 64`
- makedev isdnctrl$unit c $major $minor $dialout
- ;;
- isdninfo)
- makedev isdninfo c 45 255 $dialout
- ;;
- isdn-tty)
- major=43
- for unit in 0 1 2 3 4 5 6 7
- do
- makedev ttyI$unit c $major $unit $dialout
- done
- ;;
- isdn-ippp)
- major=45
- for unit in 0 1 2 3 4 5 6 7
- do
- makedev ippp$unit c $major `math $unit + 128` $dialout
- done
- ;;
- isdn-io)
- for unit in 0 1 2 3 4 5 6 7
- do
- makedev isdn$unit c 45 $unit $dialout
- makedev isdnctrl$unit c 45 `math $unit + 64` $dialout
- makedev ippp$unit c 45 `math $unit + 128` $dialout
- done
- makedev isdninfo c 45 255 $dialout
- ;;
- sonycd)
- major=`Major cdu31a` || continue
- makedev $arg b $major 0 $cdrom
- ;;
- mcd)
- major=`Major mcd 23` || continue
- makedev $arg b $major 0 $cdrom
- ;;
- mcdx)
- major=`Major mcdx 20` || continue
- makedev $arg b $major 0 $cdrom
- ;;
- cdu535)
- makedev $arg b 24 0 $cdrom
- ;;
- lmscd)
- makedev $arg b 24 0 $cdrom
- ;;
- sbpcd|sbpcd[123])
- major=`Major $arg` || continue
- base=`suffix ${arg}0 sbpcd`
- # base=`expr ${arg}0 : "sbpcd\(.\)"`
- for minor in 0 1 2 3
- do
- # XXX
- unit=`expr substr 0123456789abcdef \( $base \* 4 + $minor + 1 \) 1`
- makedev sbpcd$unit b $major $minor $cdrom
- done
- [ $arg = sbpcd ] && symlink $arg ${arg}0
- ;;
- aztcd)
- major=`Major $arg` || continue
- makedev ${arg}0 b $major 0 $cdrom
- ;;
- bpcd)
- makedev $arg b 41 0 $cdrom
- ;;
- optcd)
- makedev $arg b 17 0 $cdrom
- ;;
- sjcd)
- makedev $arg b 18 0 $cdrom
- ;;
- cfs|coda)
- makedev cfs0 c 67 0 $private
- ;;
- xfs|arla)
- makedev xfs0 c 103 0 $private
- ;;
- logiscan)
- major=`Major logiscan` || continue
- makedev $arg c $major 0 $scanner
- ;;
- m105scan)
- major=`Major m105` || continue
- makedev $arg c $major 0 $scanner
- ;;
- ac4096)
- major=`Major ac4096` || continue
- makedev $arg c $major 0 $scanner
- ;;
- audio)
- major=`Major sound 14`
- makedev mixer c $major 0 $audio
- makedev sequencer c $major 1 $audio
- makedev midi00 c $major 2 $audio
- makedev dsp c $major 3 $audio
- makedev audio c $major 4 $audio
- makedev sndstat c $major 6 $audio
-# makedev sequencer2 c $major 8 $audio
- makedev mixer1 c $major 16 $audio
-# makedev patmgr0 c $major 17 $audio
- makedev midi01 c $major 18 $audio
- makedev dsp1 c $major 19 $audio
- makedev audio1 c $major 20 $audio
-# makedev patmgr1 c $major 33 $audio
- makedev midi02 c $major 34 $audio
- makedev midi03 c $major 50 $audio
- major=31
- makedev mpu401data c $major 0 $audio
- makedev mpu401stat c $major 1 $audio
- major=35
- for i in 0 1 2 3
- do
- makedev midi$i c $major $i $audio
- makedev rmidi$i c $major `math $i + 64` $audio
- makedev smtpe$i c $major `math $i + 128` $audio
- done
- ;;
- pcaudio)
- major=`Major pcsp` || continue
- makedev pcmixer c $major 0 $audio
- makedev pcsp c $major 3 $audio
- makedev pcaudio c $major 4 $audio
- ;;
- video|video4linux|v4l|radio)
- # video4linux api includes radio, teletext, etc.
- major=`Major video 81` || continue
- minor=0
- until [ $minor -gt 63 ]
- do
- makedev video$minor c $major $minor $video
- makedev radio$minor c $major `math $minor + 64` $video
- minor=`math $minor + 1`
- done
- minor=0
- until [ $minor -gt 31 ]
- do
- makedev vtx$minor c $major `math $minor + 192` $video
- makedev vbi$minor c $major `math $minor + 224` $video
- minor=`math $minor + 1`
- done
- symlink video video0
- major=82
- minor=0
- until [ $minor -gt 1 ]
- do
- makedev winradio$minor c $major $minor $video
- minor=`math $minor + 1`
- done
- major=83
- makedev vtx c $major 0 $video
- makedev vttuner c $major 16 $video
- ;;
- i2c)
- major=`Major i2c 89` || continue
- minor=0
- until [ $minor -gt 1 ] # tell me if 1 is wrong...
- do
- makedev i2c$minor c $major $minor $private
- minor=`math $minor + 1`
- done
- ;;
- tlk)
- major=102
- minor=0
- until [ $minor -gt 3 ] # tell me if 3 is wrong...
- do
- makedev tlk$minor c $major $minor $video
- minor=`math $minor + 1`
- done
- ;;
- srnd)
- makedev srnd0 c 110 0 $video
- makedev srnd1 c 110 1 $video
- ;;
- fgrab)
- makedev mmetfgrab c 40 0 $video
- makedev wvisfgrab c 26 0 $video
- for i in 0 1 # more?
- do
- makedev iscc$i c 93 $i $video
- makedev isccctl$i c 93 `math $i + 128` $video
- done
- for i in 0 1 # more?
- do
- makedev dcxx$i c 94 $i $video
- done
- ;;
- sg|sg-all)
- major=`Major sg 21`
- for unit in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
- do
- makedev sg$unit c $major $unit $scsi
- done
- ;;
- pg)
- major=`Major pg 97`
- for unit in 0 1 2 3
- do
- makedev pg$unit c $major $unit $scsi
- done
- ;;
- fd)
- # not really devices, we use the /proc filesystem
- symlink fd $procfs/self/fd
- symlink stdin fd/0
- symlink stdout fd/1
- symlink stderr fd/2
- ;;
- ibcs2)
- major=`Major ibcs2` || continue
- makedev socksys c $major 0 $ibcs2
- symlink nfsd socksys
- makedev spx c $major 1 $ibcs2
- symlink X0R null
- ;;
- netlink)
- major=36
- makedev route c $major 0 $private
- makedev skip c $major 1 $private
- ;;
- enskip)
- major=64
- makedev enskip c $major 0 $private
- ;;
- ipfilt*)
- major=95
- makedev ipl c $major 0 $private
- makedev ipnat c $major 1 $private
- makedev ipstate c $major 2 $private
- makedev ipauth c $major 3 $private
- ;;
- qng)
- makedev qng c 77 0 $private
- ;;
- apm)
- major=`Major apm_bios` || continue
- makedev $arg c $major 0 $system
- ;;
- dcf)
- major=`Major dcf` || continue
- makedev $arg c $major 0 $system
- ;;
- helloworld)
- major=`Major hw` || continue
- makedev helloworld c $major 0 $public
- ;;
- ipsec)
- # For the Free S/WAN (http://www.xs4all.nl/~freeswan/)
- # implementation of IPSEC
- makedev ipsec c 36 10 $ipsec
- ;;
- update)
- if [ ! "$devices" ]
- then
- echo "$0: don't appear to have any devices" >&2
- continue
- fi
- if [ "$opt_d" ]
- then
- echo "$0: can't delete an update" >&2
- continue
- fi
- create=
- delete=
- devs="$devices"
- if [ -f DEVICES ]
- then
- exec 3<DEVICES
- while read device major <&3
- do
- eval now=\$major_$device
- if [ "$now" = "" ]
- then
- delete="$delete `cvt $device`"
- continue
- elif [ "$now" != $major ]
- then
- create="$create "`cvt $device`
- fi
- devs=`strip " $devs " $device`
- # devs=`expr "$devs" : "\(.*\) $device"``expr "$devs" : ".* $device\(.*\)"`
- done
- exec 3<&-
- fi
- create="$create "`cvt $devs`
- [ "$delete" != "" ] && $0 $opts -d $delete
- [ "$create" != " " ] && $0 $opts $create
- [ "$opt_n" ] && continue
- for device in $devices
- do
- if [ "`cvt $device`" ]
- then
- eval echo $device \$major_$device
- fi
- done > DEVICES
- ;;
- *)
- echo "$0: don't know how to make device \"$arg\"" >&2
- exit 1
- ;;
- esac
-done
-
-exit 0
diff --git a/sys-apps/baselayout/files/digest-baselayout-1.8.4.2 b/sys-apps/baselayout/files/digest-baselayout-1.8.4.2
deleted file mode 100644
index 369032eee571..000000000000
--- a/sys-apps/baselayout/files/digest-baselayout-1.8.4.2
+++ /dev/null
@@ -1 +0,0 @@
-MD5 6ae4a8237a7e298097239e76eb7aff60 sysvinit-2.84.tar.gz 91488
diff --git a/sys-apps/baselayout/files/digest-baselayout-1.8.5.3 b/sys-apps/baselayout/files/digest-baselayout-1.8.5.3
deleted file mode 100644
index 369032eee571..000000000000
--- a/sys-apps/baselayout/files/digest-baselayout-1.8.5.3
+++ /dev/null
@@ -1 +0,0 @@
-MD5 6ae4a8237a7e298097239e76eb7aff60 sysvinit-2.84.tar.gz 91488
diff --git a/sys-apps/baselayout/files/digest-baselayout-1.8.5.4 b/sys-apps/baselayout/files/digest-baselayout-1.8.5.4
deleted file mode 100644
index 369032eee571..000000000000
--- a/sys-apps/baselayout/files/digest-baselayout-1.8.5.4
+++ /dev/null
@@ -1 +0,0 @@
-MD5 6ae4a8237a7e298097239e76eb7aff60 sysvinit-2.84.tar.gz 91488
diff --git a/sys-apps/baselayout/files/rc-scripts-1.4.1.2.tar.bz2 b/sys-apps/baselayout/files/rc-scripts-1.4.1.2.tar.bz2
deleted file mode 100644
index 3a0216c43330..000000000000
--- a/sys-apps/baselayout/files/rc-scripts-1.4.1.2.tar.bz2
+++ /dev/null
Binary files differ
diff --git a/sys-apps/baselayout/files/rc-scripts-1.4.2.3.tar.bz2 b/sys-apps/baselayout/files/rc-scripts-1.4.2.3.tar.bz2
deleted file mode 100644
index 0228335369fc..000000000000
--- a/sys-apps/baselayout/files/rc-scripts-1.4.2.3.tar.bz2
+++ /dev/null
Binary files differ
diff --git a/sys-apps/baselayout/files/rc-scripts-1.4.2.4.tar.bz2 b/sys-apps/baselayout/files/rc-scripts-1.4.2.4.tar.bz2
deleted file mode 100644
index 8f69a8d06947..000000000000
--- a/sys-apps/baselayout/files/rc-scripts-1.4.2.4.tar.bz2
+++ /dev/null
Binary files differ