diff options
author | Donny Davies <woodchip@gentoo.org> | 2001-11-29 21:53:08 +0000 |
---|---|---|
committer | Donny Davies <woodchip@gentoo.org> | 2001-11-29 21:53:08 +0000 |
commit | 0378280299f8de7525269d2f75a4cb1cd30e2499 (patch) | |
tree | f952f96113b8bfbfb5f27af0f1ff47ad79baf194 | |
parent | Renamed the latest PyQt ebuilds... (diff) | |
download | gentoo-2-0378280299f8de7525269d2f75a4cb1cd30e2499.tar.gz gentoo-2-0378280299f8de7525269d2f75a4cb1cd30e2499.tar.bz2 gentoo-2-0378280299f8de7525269d2f75a4cb1cd30e2499.zip |
One change: install manpages from ${S}/man/*. These will show up at
the next rc-scripts release cuz they'll be included in the tarball at
that point. Currently theres manpages for update-modules.8 and
modules.autoload.5.
-rw-r--r-- | sys-apps/baselayout/baselayout-1.6.6-r1.ebuild | 229 | ||||
-rw-r--r-- | sys-apps/baselayout/files/digest-baselayout-1.6.6-r1 | 1 |
2 files changed, 230 insertions, 0 deletions
diff --git a/sys-apps/baselayout/baselayout-1.6.6-r1.ebuild b/sys-apps/baselayout/baselayout-1.6.6-r1.ebuild new file mode 100644 index 000000000000..af791df878ef --- /dev/null +++ b/sys-apps/baselayout/baselayout-1.6.6-r1.ebuild @@ -0,0 +1,229 @@ +# Copyright 1999-2001 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Maintainer: System Team <system@gentoo.org> +# Author: Daniel Robbins <drobbins@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout/baselayout-1.6.6-r1.ebuild,v 1.1 2001/11/29 21:53:08 woodchip Exp $ + +SV=1.1.8 +S=${WORKDIR}/rc-scripts-${SV} +DESCRIPTION="Base layout for Gentoo Linux filesystem (incl. initscripts)" +SRC_URI="http://www.ibiblio.org/gentoo/distfiles/rc-scripts-${SV}.tar.bz2" +HOMEPAGE="http://www.gentoo.org" + +#This ebuild needs to be merged "live". You can't simply make a package of it and merge it later. + +src_compile() { + cp ${S}/init.d/runscript.c ${T} + cd ${T} + gcc ${CFLAGS} runscript.c -o runscript + echo ${ROOT} > ${T}/ROOT +} + +#adds ".keep" files so that dirs aren't auto-cleaned +keepdir() { + dodir $* + local x + for x in $* + do + touch ${D}/${x}/.keep + done +} + +src_install() +{ + local foo + local altmerge + 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 we are bootstrapping, we want to merge to /dev. + if [ -z "`use build`" ] + then + if [ "$ROOT" = "/" ] && [ "`cat /proc/mounts | grep '/dev devfs'`" ] + then + #we're installing to our current system and have devfs enabled. We'll need to + #make adjustments + altmerge=1 + fi + fi + keepdir /sbin + exeinto /sbin + doexe ${T}/runscript + + keepdir /usr + keepdir /usr/bin + keepdir /usr/lib + keepdir /usr/sbin + dosbin ${S}/sbin/MAKEDEV ${S}/sbin/run-crons ${S}/sbin/update-modules + keepdir /var /var/run /var/lock/subsys + dosym ../var/tmp /usr/tmp + + if [ -z "`use bootcd`" ] + then + keepdir /boot + dosym . /boot/boot + keepdir /home + keepdir /usr/include /usr/src /usr/portage /usr/X11R6/include/GL + dosym ../X11R6/include/X11 /usr/include/X11 + dosym ../X11R6/include/GL /usr/include/GL + + #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 + 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 + +# Drobbins or Hallski please check this! + keepdir /opt +# keepdir /opt/gnome/man +# keepdir /opt/gnome/share +# dosym ../man /opt/gnome/share/man + fi + +#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 + chmod 1777 ${D}/tmp + chmod 1777 ${D}/var/tmp + chown root.uucp ${D}/var/lock + chmod 775 ${D}/var/lock + insopts -m0644 + + 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 + #going back to symlink mtab; it just plain works better + dosym ../proc/mounts /etc/mtab + chmod go-rwx ${D}/etc/shadow + keepdir /lib /mnt/floppy /mnt/cdrom + chmod go-rwx ${D}/mnt/floppy ${D}/mnt/cdrom + +# dosbin rc-update +# insinto /usr/bin +# insopts -m0755 +# doins colors + if [ $altmerge -eq 1 ] + then + #rootfs and devfs + keepdir /dev-state + dosym /usr/sbin/MAKEDEV /dev-state/MAKEDEV + keepdir /dev-state/pts /dev-state/shm + cd ${D}/dev-state + else + #normal + keepdir /dev + keepdir /dev-state + keepdir /dev/pts /dev/shm + dosym /usr/sbin/MAKEDEV /dev/MAKEDEV + cd ${D}/dev + fi + #These devices are also needed by many people and should be included + echo "Making device nodes... (this could take a minute or so...)" + ${S}/sbin/MAKEDEV generic-i386 + ${S}/sbin/MAKEDEV sg + ${S}/sbin/MAKEDEV scd + ${S}/sbin/MAKEDEV rtc + ${S}/sbin/MAKEDEV audio + ${S}/sbin/MAKEDEV hde + ${S}/sbin/MAKEDEV hdf + ${S}/sbin/MAKEDEV hdg + ${S}/sbin/MAKEDEV hdh + + cd ${S}/sbin + into / + dosbin init rc rc-update + + #env-update stuff + dodir /etc/env.d + insinto /etc/env.d + doins ${S}/etc/env.d/00basic + + dodir /etc/modules.d + insinto /etc/modules.d + doins ${S}/etc/modules.d/aliases ${S}/etc/modules.d/i386 + + dodir /etc/init.d + exeinto /etc/init.d + for foo in ${S}/init.d/* + do + [ -f $foo ] && doexe $foo + done + #not the greatest location for this file; should move it on cvs at some point + rm ${S}/init.d/runscript.c + + #skip this if we are merging to ROOT + [ "$ROOT" = "/" ] && return + + #set up default runlevel symlinks + local bar + for foo in default boot nonetwork single + do + dodir /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 + + cat << EOF >> ${D}/etc/hosts +127.0.0.1 localhost +EOF +} + +pkg_postinst() { + #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 +} diff --git a/sys-apps/baselayout/files/digest-baselayout-1.6.6-r1 b/sys-apps/baselayout/files/digest-baselayout-1.6.6-r1 new file mode 100644 index 000000000000..9edc1ffef341 --- /dev/null +++ b/sys-apps/baselayout/files/digest-baselayout-1.6.6-r1 @@ -0,0 +1 @@ +MD5 ebd7273f0c002119b56e311ad1264d5a rc-scripts-1.1.8.tar.bz2 32768 |