Magellan Linux

Contents of /smage/trunk/core/toolchain-mcore/toolchain-mcore-0.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 263 - (show annotations) (download)
Tue Apr 27 11:10:03 2010 UTC (14 years ago) by niro
File size: 1715 byte(s)
-added 
1 # $Id$
2
3 PNAME="toolchain-mcore"
4 PVER="0.1"
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 >= sys-apps/busybox-1.13
18 >= sys-apps/coreutils-7
19 >= sys-apps/diffutils-2.8.7
20 >= sys-apps/findutils-4.4
21 >= sys-apps/gawk-3.1
22 >= net-misc/rsync-3
23 >= app-shells/bash-4
24 >= app-mage/mage-0.4.15"
25
26 sminclude mcore
27
28 src_install()
29 {
30 echo
31 echo "This is only a fake smage2 for ${PNAME}-${PVER}-${PBUILD}."
32 echo "No Package will be build."
33 echo
34 }
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
75 if [ -x ${MROOT}/bin/busybox ]
76 then
77 echo "Setting suid bit for ${MROOT}/bin/busybox"
78 chmod +s ${MROOT}/bin/busybox
79 fi
80
81 if [ -f ${MROOT}/usr/share/busybox/busybox.links ]
82 then
83 echo "Setting up busybox links ... "
84 local i
85 for i in $(< ${MROOT}/usr/share/busybox/busybox.links)
86 do
87 ln -snf /bin/busybox ${MROOT}/${i}
88 done
89 fi
90 }

Properties

Name Value
svn:keywords Id