summaryrefslogtreecommitdiff
blob: f8cd8c8a3fb9bbd6fa0ccfd5b44aa2f35fda8b7e (plain)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# 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.3-r2.ebuild,v 1.2 2000/11/27 22:40:41 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()
{
	dodir /boot
	dodir /usr/include
	dosym /var/log /usr/adm
	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
	doman ${FILESDIR}/MAKEDEV.8
	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 /usr/bin/ /usr/doc
	dodoc ${FILESDIR}/copyright ${FILESDIR}/changelog.Debian
	dodir /usr/X11R6/lib 
	dodir /var /var/run /var/log/news
	touch ${D}/var/run/utmp
	touch ${D}/var/log/wtmp
	dodir /var/lib/locate /var/lib/pkg /var/spool
	dodir /root /opt /home/ftp /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 
	dodoc README.newusers blurb.txt
	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
}