Magellan Linux

Annotation of /smage/trunk/core/toolchain-mcore/toolchain-mcore-0.2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1216 - (hide annotations) (download)
Sat Jan 29 12:26:33 2011 UTC (13 years, 3 months ago) by niro
File size: 1856 byte(s)
-ver bump to 0.2-r1
1 niro 1216 # $Id$
2    
3     PNAME="toolchain-mcore"
4     PVER="0.2"
5     PBUILD="r1"
6    
7     PCATEGORIE="fake"
8     STATE="unstable"
9    
10     PKGTYPE="virtual"
11     NOPKGBUILD=true
12    
13     DESCRIPTION="mCore toolchain - basic packages to install Magellan."
14     HOMEPAGE="http://www.magellan-linux.net/"
15    
16     DEPEND=">= virtual/base-files
17     >= virtual/debianutils
18     >= sys-apps/coreutils-8.9
19     >= sys-apps/util-linux-2.18
20     >= sys-apps/diffutils-3.0
21     >= sys-apps/findutils-4.4
22     >= sys-apps/gawk-3.1
23     >= virtual/grep
24     >= virtual/sed
25     >= virtual/bzip2
26     >= virtual/gzip
27     >= virtual/tar
28     >= virtual/wget
29     >= net-misc/rsync-3.0.7
30     >= app-shells/bash-4.1
31     >= app-mage/mage-0.4.23"
32    
33     sminclude mcore
34    
35     src_install()
36     {
37     echo
38     echo "This is only a fake smage2 for ${PNAME}-${PVER}-${PBUILD}."
39     echo "No Package will be build."
40     echo
41     }
42    
43     postinstall()
44     {
45     if [ ! -f ${MROOT}/etc/passwd ]
46     then
47     echo "Creating a basic passwd file ..."
48     echo 'root:x:0:0:root:/root:/bin/bash' > ${MROOT}/etc/passwd
49     fi
50    
51     if [ ! -f ${MROOT}/etc/group ]
52     then
53     echo "Creating a basic groups file ..."
54     cat > ${MROOT}/etc/group << "EOF"
55     root:x:0:
56     bin:x:1:
57     sys:x:2:
58     kmem:x:3:
59     tty:x:4:
60     tape:x:5:
61     daemon:x:6:
62     floppy:x:7:
63     disk:x:8:
64     lp:x:9:
65     dialout:x:10:
66     audio:x:11:
67     EOF
68     fi
69    
70     if [ ! -e ${MROOT}/dev/console ] ||
71     [ ! -e ${MROOT}/dev/null ] ||
72     [ ! -e ${MROOT}/dev/tty1 ]
73     then
74     echo "Creating basic devices needed for devfs/udev ..."
75     mknod -m 611 ${MROOT}/dev/console c 5 1
76     chgrp 4 ${MROOT}/dev/console
77     mknod -m 666 ${MROOT}/dev/null c 1 3
78     mknod ${MROOT}/dev/tty1 c 4 1
79     chgrp 4 ${MROOT}/dev/tty1
80     fi
81    
82     if [ -x ${MROOT}/bin/busybox ]
83     then
84     echo "Setting suid bit for ${MROOT}/bin/busybox"
85     chmod +s ${MROOT}/bin/busybox
86     fi
87    
88     if [ -f ${MROOT}/usr/share/busybox/busybox.links ]
89     then
90     echo "Setting up busybox links ... "
91     local i
92     for i in $(< ${MROOT}/usr/share/busybox/busybox.links)
93     do
94     ln -snf /bin/busybox ${MROOT}/${i}
95     done
96     fi
97     }