Magellan Linux

Contents of /trunk/core/toolchain/toolchain-0.4-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10613 - (show annotations) (download)
Wed Jan 25 23:35:19 2012 UTC (12 years, 4 months ago) by niro
File size: 1471 byte(s)
-import from magellan-next
1 # $Id$
2
3 PNAME="toolchain"
4 PVER="0.4"
5 PBUILD="r3"
6
7 PCAT="fake"
8
9 PKGTYPE="virtual"
10
11 DESCRIPTION="Magellan toolchain - basic packages to install Magellan."
12 HOMEPAGE="http://www.magellan-linux.net/"
13
14 DEPEND=">= sys-apps/base-files-0.3
15 >= sys-apps/debianutils-2.30
16 >= sys-apps/coreutils-8.12
17 >= sys-apps/util-linux-2.19
18 >= sys-apps/diffutils-3
19 >= sys-apps/findutils-4.4
20 >= sys-apps/gawk-3.1.8
21 >= sys-apps/grep-2.8
22 >= sys-apps/sed-4.2
23 >= app-arch/bzip2-1.0.6
24 >= app-arch/gzip-1.4
25 >= sys-apps/tar-1.26
26 >= sys-apps/file-5
27 >= sys-apps/which-2
28 >= sys-apps/shadow-4.1
29 >= sys-apps/inetutils-1.8
30 >= sys-dev/libtool-2.4
31 >= net-misc/wget-1.12
32 >= net-misc/rsync-3
33 >= app-shells/bash-4.2
34 >= app-mage/mage-0.4.26"
35
36 postinstall()
37 {
38 if [ ! -f ${MROOT}/etc/passwd ]
39 then
40 echo "Creating a basic passwd file ..."
41 echo 'root:x:0:0:root:/root:/bin/bash' > ${MROOT}/etc/passwd
42 fi
43
44 if [ ! -f ${MROOT}/etc/group ]
45 then
46 echo "Creating a basic groups file ..."
47 cat > ${MROOT}/etc/group << "EOF"
48 root:x:0:
49 bin:x:1:
50 sys:x:2:
51 kmem:x:3:
52 tty:x:4:
53 tape:x:5:
54 daemon:x:6:
55 floppy:x:7:
56 disk:x:8:
57 lp:x:9:
58 dialout:x:10:
59 audio:x:11:
60 EOF
61 fi
62
63 if [ ! -e ${MROOT}/dev/console ] ||
64 [ ! -e ${MROOT}/dev/null ] ||
65 [ ! -e ${MROOT}/dev/tty1 ]
66 then
67 echo "Creating basic devices needed for devfs/udev ..."
68 mknod -m 611 ${MROOT}/dev/console c 5 1
69 chgrp 4 ${MROOT}/dev/console
70 mknod -m 666 ${MROOT}/dev/null c 1 3
71 mknod ${MROOT}/dev/tty1 c 4 1
72 chgrp 4 ${MROOT}/dev/tty1
73 fi
74 }