Magellan Linux

Contents of /trunk/extras/livecd-openvpn/livecd-openvpn-0.1-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: 3739 byte(s)
import repo
1 # $Header: /magellan-cvs/smage/livecdsystem26/livecdsystem26-0.3-r2.smage2,v 1.1 2007-07-25 10:55:18 niro Exp $
2
3 PNAME="livecdsystem26"
4 PVER="0.3"
5 PBUILD="r2"
6
7 PCATEGORIE="fake"
8 STATE="unstable"
9
10 PKGTYPE="virtual"
11 NOPKGBUILD=true
12
13 DESCRIPTION="Magellan LiveCD Pakages based on kernel-2.6 layout."
14 HOMEPAGE="http://www.magellan-linux.net/"
15
16 DEPENDS_common=">= app-mage/mage-0.4;
17 >= app-mage/mage-bootstrap-1;
18 >= sys-apps/initscripts-0.3;
19 >= virtual/kernel;
20 >= sys-fs/udev-070;
21 >= sys-libs/libstdc++-4;
22 >= sys-libs/readline-5;
23 >= sys-apps/coreutils-5.3;
24 >= sys-libs/zlib-1.2;
25 >= sys-apps/findutils-4.1.20;
26 >= sys-apps/gawk-3.1.3;
27 >= sys-apps/less-381;
28 >= sys-apps/net-tools-1.60;
29 >= sys-apps/inetutils-1.4.2;
30 >= sys-apps/file-4.06;
31 >= sys-apps/kbd-1.12;
32 >= sys-fs/e2fsprogs-1.38;
33 >= sys-fs/reiserfsprogs-3.6;
34 >= sys-fs/xfsprogs-2.7;
35 >= sys-apps/grep-2.5.1;
36 >= sys-apps/module-init-tools-3.1;
37 >= sys-apps/procps-3.2.5;
38 >= sys-apps/psmisc-21.6;
39 >= sys-apps/shadow-4.0.13;
40 >= sys-apps/debianutils-2.14;
41 >= virtual/syslog;
42 >= sys-apps/tar-1.15;
43 >= sys-apps/util-linux-2.12q;
44 >= virtual/editor;
45 >= net-misc/dhcpcd-1.3.22;
46 >= net-misc/wget-1.9;
47 >= net-misc/rsync-2.6.6;
48 >= sys-apps/diffutils-2.8.7;
49 >= dev-util/dialog-1.0;
50 >= sys-apps/hdparm-6;
51 >= sys-apps/hwdata-knoppix-0.107;
52 >= sys-apps/hwsetup-1;
53 >= net-misc/iptables-1.3;
54 >= sys-apps/lshw-02;
55 >= net-www/lynx-2.8.5;
56 >= net-dialup/mingetty-1.07;
57 >= net-ftp/ncftp-3;
58 >= net-misc/openssh-3.9;
59 >= sys-apps/pciutils-2;
60 >= app-misc/screen-4;
61 >= sys-fs/dosfstools-2;
62 >= net-wlan/wireless-tools-29;
63 >= net-wlan/wpa-supplicant-0.4
64 >= net-dialup/ppp-2.4
65 >= net-dialup/rp-pppoe-3.8"
66
67 DEPENDS_x86="${DEPENDS_common}; >= sys-apps/ddcxinfo-knoppix-0.6"
68 DEPENDS_x86_64="${DEPENDS_common}"
69
70 # very derty trick to get the dependencies right
71 # ; is the IFS, tr replaces ; with an crlfs
72 # the var ist decided with our common eval+echo magic
73 DEPEND="\$(eval echo \\\$DEPENDS_\${ARCH/i*86/x86} | tr ';' '\n')"
74
75 # theses var must be exported to the mage file to get all things right
76 SPECIAL_VARS="DEPENDS_common DEPENDS_x86 DEPENDS_x86_64"
77
78 src_install() {
79 echo
80 echo "This is only a fake smage2 for ${PNAME}-${PVER}-${PBUILD}."
81 echo "No Package will be build."
82 echo
83 }
84
85 postinstall() {
86 echo
87 echo "Whipping out unwanted files and packages ..."
88 echo
89 echo "Press [Enter] to continue"
90 echo
91 read
92
93 # kill info
94 rm -rf ${MROOT}/usr/share/info
95 # kill man
96 rm -rf ${MROOT}/usr/share/man
97 # kill doc
98 rm -rf ${MROOT}/usr/share/doc
99 # kill includes
100 rm -rf ${MROOT}/usr/include
101 # kill pkgconfig
102 rm -rf ${MROOT}/usr/lib/pkgconfig
103 # kill aclocal
104 rm -rf ${MROOT}/usr/share/aclocal
105
106 # kill tmps
107 rm -rf ${MROOT}/tmp/*
108 rm -rf ${MROOT}/var/tmp/*
109
110 # uninstall unneeded packages
111 MY_MROOT="${MROOT}"
112
113 MAGE_UNINSTALL_TIMEOUT=0 MROOT="${MY_MROOT}" mage uninstall groff
114 MAGE_UNINSTALL_TIMEOUT=0 MROOT="${MY_MROOT}" mage uninstall texinfo
115 MAGE_UNINSTALL_TIMEOUT=0 MROOT="${MY_MROOT}" mage uninstall gettext
116 MAGE_UNINSTALL_TIMEOUT=0 MROOT="${MY_MROOT}" mage uninstall libtool
117
118 MROOT="${MY_MROOT}"
119
120 find ${MROOT}/lib -name '*.la' | xargs rm
121 find ${MROOT}/lib -name '*.a' | xargs rm
122
123 find ${MROOT}/usr/lib -name '*.la' | xargs rm
124 find ${MROOT}/usr/lib -name '*.a' | xargs rm
125
126 # strip some packages
127 # awk
128 rm -rf ${MROOT}/usr/lib/awk
129 rm -rf ${MROOT}/usr/share/awk
130 # perl
131 rm -rf ${MROOT}/usr/lib/perl5
132 # glibc
133 rm -rf ${MROOT}/usr/lib/gconv
134 rm -rf ${MROOT}/usr/share/i18n
135 # glib2
136 rm -rf ${MROOT}/usr/lib/glib-2.0
137 rm -rf ${MROOT}/usr/share/glib-2.0
138 rm -rf ${MROOT}/usr/share/gtk-doc
139
140 # no locales needed atm
141 rm -rf ${MROOT}/usr/lib/locale
142 rm -rf ${MROOT}/usr/share/locale
143 install -d ${MROOT}/etc/env.d
144 echo 'LC_ALL=C' > ${MROOT}/etc/env.d/35locale
145 }

Properties

Name Value
svn:keywords Id