summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchim Gottinger <achim@gentoo.org>2001-02-04 23:50:01 +0000
committerAchim Gottinger <achim@gentoo.org>2001-02-04 23:50:01 +0000
commitf3ecee5590c621c9682a5a16cd06d2a0a705ace9 (patch)
tree308b02e261a3df307fad665b2bfc30138791a9af
parent*** empty log message *** (diff)
downloadhistorical-f3ecee5590c621c9682a5a16cd06d2a0a705ace9.tar.gz
historical-f3ecee5590c621c9682a5a16cd06d2a0a705ace9.tar.bz2
historical-f3ecee5590c621c9682a5a16cd06d2a0a705ace9.zip
*** empty log message ***
-rw-r--r--sys-apps/baselayout/baselayout-1.5-r2.ebuild136
1 files changed, 136 insertions, 0 deletions
diff --git a/sys-apps/baselayout/baselayout-1.5-r2.ebuild b/sys-apps/baselayout/baselayout-1.5-r2.ebuild
new file mode 100644
index 000000000000..cd993aa479d6
--- /dev/null
+++ b/sys-apps/baselayout/baselayout-1.5-r2.ebuild
@@ -0,0 +1,136 @@
+# Copyright 1999-2000 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# Author Achim Gottinger <achim@gentoo.org>
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout/baselayout-1.5-r2.ebuild,v 1.1 2001/02/04 23:50:01 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" ]
+ 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
+ dodir /usr/include /usr/src
+ dosym ../X11R6/include/X11 /usr/include/X11
+ 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/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
+ doman ${FILESDIR}/MAKEDEV.8
+
+ dodoc ${FILESDIR}/copyright ${FILESDIR}/changelog.Debian
+ dodir /usr/X11R6/lib
+ dodir /var /var/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
+
+#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
+ 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
+ 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
+ cd ${D}/etc/rc.d/config
+ cp runlevels runlevels.orig
+ sed -e 's:##OSNAME##:Gentoo Linux:g' -e 's:##ARCH##:i686a: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
+
+}
+
+
+
+
+
+
+
+