Magellan Linux

Contents of /trunk/todo/splashutils/splashutils-0.9.1-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2590 - (show annotations) (download)
Thu Jul 9 20:36:05 2009 UTC (14 years, 10 months ago) by niro
File size: 3214 byte(s)
-moved to 'todo'
1 # $Header: /magellan-cvs/smage/splashutils/splashutils-0.9.1-r2.smage2,v 1.1 2005/06/28 21:39:39 niro Exp $
2
3 PNAME="splashutils"
4 PVER="0.9.1"
5 PBUILD="r2"
6
7 #splashutils
8 SRCFILE="${PNAME}-${PVER}.tar.bz2"
9 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
10
11 #miscsplashutils (fbtruetype)
12 SRCFILE_MISC="misc${PNAME}-0.1.2.tar.bz2"
13 SRCDIR_MISC="${BUILDDIR}/misc${PNAME}-0.1.2"
14
15 #initutils version
16 IUVER=0.2
17 SRCFILE_UI="${PNAME}-magellan-${IUVER}.tar.gz"
18 SRCDIR_UI="${BUILDDIR}/${PNAME}-magellan"
19
20 SRC_URI=(
21 mirror://${PNAME}/${SRCFILE}
22 mirror://${PNAME}/${SRCFILE_MISC}
23 mirror://${PNAME}/${SRCFILE_UI}
24 mirror://${PNAME}/Theme-Linux-fbsplash.tar.bz2
25 mirror://${PNAME}/Theme-magellan-040-fbsplash.tar.bz2
26 )
27
28 #needs to build: linux-sources,
29 # to run: freetype2 (fbtruetype needs this), libpng (>=1.2.7), jpeg, zlib,
30 # cpio (splash_geninitramfs), initscripts-0.3.2-r1
31 # blocks: bootsplash
32
33
34 #global var: ${LINUX_SOURCES}
35 # location where they are
36
37 [ -z "${LINUX_SOURCES}" ] && LINUX_SOURCES="/usr/src/linux"
38
39 src_prepare() {
40 munpack ${SRCFILE} || die
41 munpack ${SRCFILE_MISC} || die
42 munpack ${SRCFILE_UI} || die
43 cd ${SRCDIR}
44
45 if [ ! -e /usr/src/linux/include/linux/console_splash.h ]
46 then
47 echo "Failure:"
48 echo "fbsplash was not found in your kernel."
49 echo "Please give a location to your patched kernel:"
50 echo " LINUX_SOURCES=/usr/src/linux-fbsplash smage2 smage-file"
51 echo
52 die "aborted."
53 fi
54
55 #where are our linux sources ?
56 echo "Using '${LINUX_SOURCES}' as kernel-tree ..."
57 ln -s "${LINUX_SOURCES}" linux || die
58 }
59
60 src_compile() {
61 #splashutils
62 cd ${SRCDIR}
63 make -j1 || die # does not like more than one job
64
65 #miscsplashutils (fbtruetype)
66 cd ${SRCDIR_MISC}
67 make || die # does not like more than one job
68 }
69
70 src_install() {
71 #splashutils
72 cd ${SRCDIR}
73 make DESTDIR=${BINDIR} install || die
74
75 # docs
76 minstalldocs AUTHORS README || die
77 minstalldocs docs/{bootsplash_compatibility,early_bootup,quickstart,theme_format} || die
78
79 #miscsplashutils (fbtruetype)
80 cd ${SRCDIR_MISC}
81
82 #needed directories
83 install -d ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/fbtruetype || die
84
85 make DESTDIR=${BINDIR} install || die
86
87 #docs
88 install -m 0644 fbtruetype/{ChangeLog,README} \
89 ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/fbtruetype || die
90 gzip -9 ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/fbtruetype/{ChangeLog,README} || die
91
92
93 #installing our modified splash init utils
94
95 #needed directories
96 install -d ${BINDIR}/sbin || die
97 install -d ${BINDIR}/etc/{conf.d,init.d,splash} || die
98
99 #splash wrapper
100 install -m 0755 -o root -g root ${SRCDIR_UI}/splash \
101 ${BINDIR}/sbin/splash || die
102
103 #splash init functions
104 install -m 0644 ${SRCDIR_UI}/splash-functions \
105 ${BINDIR}/etc/init.d/splash-functions || die
106
107 #conf files
108 install -m0644 ${SRCDIR_UI}/splash.conf \
109 ${BINDIR}/etc/conf.d/splash || die
110
111 #init scripts
112 install -m0755 -o root -g root ${SRCDIR_UI}/init-splash \
113 ${BINDIR}/etc/init.d/splash || die
114
115 #installing some default themes
116 tar xvjf ${SOURCEDIR}/${PNAME}/Theme-Linux-fbsplash.tar.bz2 \
117 -C ${BINDIR}/etc/splash || die
118
119 tar xvjf ${SOURCEDIR}/${PNAME}/Theme-magellan-040-fbsplash.tar.bz2 \
120 -C ${BINDIR}/etc/splash || die
121
122 ln -snf ./magellan-040 ${BINDIR}/etc/splash/default || die
123 }

Properties

Name Value
svn:keywords Id