Magellan Linux

Contents of /trunk/core/toolchain/toolchain-0.3-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 7 months ago) by niro
File size: 1667 byte(s)
import repo
1 # $Header: /magellan-cvs/smage/toolchain/toolchain-0.3-r1.smage2,v 1.1 2008/08/17 17:28:59 niro Exp $
2
3 PNAME="toolchain"
4 PVER="0.3"
5 PBUILD="r1"
6
7 PCATEGORIE="fake"
8 STATE="unstable"
9
10 PKGTYPE="virtual"
11 NOPKGBUILD=true
12
13 DESCRIPTION="Magellan toolchain - basic packages to install Magellan."
14 HOMEPAGE="http://www.magellan-linux.net/"
15
16 DEPEND=">= sys-apps/base-files-0.3
17 >= sys-apps/debianutils-2.28
18 >= sys-apps/coreutils-6.10
19 >= sys-apps/util-linux-2.13
20 >= sys-apps/diffutils-2.8.7
21 >= sys-apps/findutils-4
22 >= sys-apps/gawk-3.1
23 >= sys-apps/grep-2.5.3
24 >= sys-apps/sed-4
25 >= app-arch/bzip2-1.0.4
26 >= app-arch/gzip-1.3.12
27 >= sys-apps/tar-1.19
28 >= sys-apps/file-4
29 >= sys-dev/libtool-1.5
30 >= net-misc/wget-1.11
31 >= net-misc/rsync-3
32 >= app-shells/bash-3.2
33 >= app-mage/mage-0.4.9"
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 }

Properties

Name Value
svn:keywords Id