Magellan Linux

Annotation of /branches/R11-stable/core/toolchain/toolchain-0.4-r4.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 19508 - (hide annotations) (download)
Tue Sep 17 09:32:40 2013 UTC (10 years, 7 months ago) by niro
File size: 1442 byte(s)
-release branches/R11-stable
1 niro 19506 # $Id$
2    
3     PNAME="toolchain"
4     PVER="0.4"
5     PBUILD="r4"
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     >= virtual/sed
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     >= net-misc/wget-1.12
31     >= net-misc/rsync-3
32     >= app-shells/bash-4.2
33     >= app-mage/mage-0.4.26"
34    
35     postinstall()
36     {
37     if [ ! -f ${MROOT}/etc/passwd ]
38     then
39     echo "Creating a basic passwd file ..."
40     echo 'root:x:0:0:root:/root:/bin/bash' > ${MROOT}/etc/passwd
41     fi
42    
43     if [ ! -f ${MROOT}/etc/group ]
44     then
45     echo "Creating a basic groups file ..."
46     cat > ${MROOT}/etc/group << "EOF"
47     root:x:0:
48     bin:x:1:
49     sys:x:2:
50     kmem:x:3:
51     tty:x:4:
52     tape:x:5:
53     daemon:x:6:
54     floppy:x:7:
55     disk:x:8:
56     lp:x:9:
57     dialout:x:10:
58     audio:x:11:
59     EOF
60     fi
61    
62     if [ ! -e ${MROOT}/dev/console ] ||
63     [ ! -e ${MROOT}/dev/null ] ||
64     [ ! -e ${MROOT}/dev/tty1 ]
65     then
66     echo "Creating basic devices needed for devfs/udev ..."
67     mknod -m 611 ${MROOT}/dev/console c 5 1
68     chgrp 4 ${MROOT}/dev/console
69     mknod -m 666 ${MROOT}/dev/null c 1 3
70     mknod ${MROOT}/dev/tty1 c 4 1
71     chgrp 4 ${MROOT}/dev/tty1
72     fi
73     }