blob: 0ba217ce35313eedab77011932aac6762ce340f3 (
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
|
# 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-r1.ebuild,v 1.1 2001/01/22 16:00:40 drobbins 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
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/man /usr/share/info /usr/bin/ /usr/doc
#FHS 2.1 stuff
dosym share/man /usr/man
dosym share/doc /usr/doc
dosym share/info /usr/info
#end FHS 2.1 stuff
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
#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
}
|