# Copyright 1999-2000 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Achim Gottinger # $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout/baselayout-1.5-r3.ebuild,v 1.9 2001/05/27 02:58:08 achim Exp $# Copyright 1999-2000 Gentoo Technologies, Inc. A="" S=${WORKDIR}/${P} DESCRIPTION="Base layout for Gentoo Linux filesystem (incl. initscripts)" SRC_URI="" HOMEPAGE="http://www.gentoo.org" src_install() { if [ "$MAINTAINER" != "yes" ] && [ "$ROOT" = "/" ] then echo '!!! baselayout should only be merged if you know what youre doing.' echo '!!! It will overwrite important system files (passwd/group and others) with their' echo '!!! original versions. For now, please update your files by hand by' echo '!!! comparing the contents of the files in '${FILESDIR}' to your' echo '!!! installed versions. We will have an automated update system shortly.' exit 1 fi dodir /boot /home dodir /usr/include /usr/src /usr/portage /usr/X11R6/include/GL dosym ../X11R6/include/X11 /usr/include/X11 dosym /usr/X11R6/include/GL /usr/include/GL dosym ../src/linux/include/linux /usr/include/linux dosym ../src/linux/include/asm-i386 /usr/include/asm local foo for foo in games man lib sbin share bin doc src do dodir /usr/local/${foo} done dodir /usr/lib dodir /usr/sbin dosbin ${FILESDIR}/MAKEDEV ${FILESDIR}/run-crons dodir /dev dodir /dev/pts dosym /usr/sbin/MAKEDEV /dev/MAKEDEV dodir /usr/share/man /usr/share/info /usr/share/doc /usr/share/misc /usr/bin/ #FHS 2.1 stuff dosym share/man /usr/man dosym share/doc /usr/doc dosym share/info /usr/info #end FHS 2.1 stuff dosym ../tmp /usr/tmp doman ${FILESDIR}/MAKEDEV.8 dodoc ${FILESDIR}/copyright ${FILESDIR}/changelog.Debian dodir /usr/X11R6/lib dodir /var /dev/shm /var/run /var/log/news touch ${D}/var/log/lastlog touch ${D}/var/run/utmp touch ${D}/var/log/wtmp dodir /var/db/pkg /var/spool /var/tmp /var/lib/misc #supervise stuff 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 dodir /root /opt /etc/modules /proc chmod go-rx ${D}/root dodir /tmp chmod 1777 ${D}/tmp chmod +t ${D}/tmp insopts -m0644 insinto /etc for foo in services passwd shadow nsswitch.conf \ inetd.conf ld.so.conf protocols fstab \ hosts syslog.conf pwdb.conf filesystems \ group profile crontab inputrc networks do doins ${FILESDIR}/${foo} done for foo in hourly daily weekly monthly do dodir /etc/cron.$foo done chmod go-rwx ${D}/etc/shadow dodir /dev/pts /lib /proc /mnt/floppy /mnt/cdrom chmod go-rwx ${D}/mnt/floppy ${D}/mnt/cdrom for x in boot halt 1 2 3 4 5 do dodir /etc/rc.d/rc${x}.d done dosym rcboot.d /etc/rc.d/rc0.d dosym rchalt.d /etc/rc.d/rc6.d dodir /etc/pam.d cd ${FILESDIR}/pam.d insinto /etc/pam.d doins * dodir /etc/rc.d/init.d dodir /etc/rc.d/config cd ${FILESDIR}/rc.d/init.d exeinto /etc/rc.d/init.d doexe * insinto /etc/rc.d/init.d/extra_scripts cd ${FILESDIR}/rc.d/config insinto /etc/rc.d/config doins * doins runlevels cd ${FILESDIR} insinto /etc doins inittab into /usr dosbin rc-update insinto /usr/bin insopts -m0755 doins colors dodir /dev cd ${D}/dev MAKEDEV generic-i386 MAKEDEV sg MAKEDEV scd MAKEDEV rtc MAKEDEV audio MAKEDEV hde MAKEDEV hdf MAKEDEV hdg MAKEDEV hdh cd ${D}/etc/rc.d/config cp runlevels runlevels.orig sed -e 's:##OSNAME##:Gentoo Linux:g' -e "s:##ARCH##:${CHOST%%-*}:g" runlevels.orig > runlevels rm runlevels.orig #env-update stuff dodir /etc/env.d insinto /etc/env.d doins ${FILESDIR}/00basic #end env-update stuff }