Magellan Linux

Contents of /smage/trunk/core/mage/mage-0.4.20-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 325 - (show annotations) (download)
Wed Apr 28 13:59:52 2010 UTC (14 years ago) by niro
File size: 1577 byte(s)
-fixed some busybox quirks
1 # $Id$
2
3 PNAME="mage"
4 PVER="0.4.20"
5 PBUILD="r1"
6
7 PCATEGORIE="app-mage"
8 STATE="unstable"
9
10 DESCRIPTION="Magellan Package Manager."
11 HOMEPAGE="http://magellan-linux.de/"
12
13 DEPEND=""
14
15 SRCFILE="${PNAME}-${PVER}.tar.bz2"
16 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
17
18 SRC_URI=(
19 mirror://${PNAME}/${SRCFILE}
20 mirror://${PNAME}/${PNAME}-0.4.19-mcore.patch
21 mirror://${PNAME}/${PNAME}-0.4.19-busybox.patch
22 mirror://${PNAME}/${PNAME}-0.4.19-smage-busybox.patch
23 mirror://${PNAME}/${PNAME}-0.4.19-mage-busybox.patch
24 mirror://${PNAME}/${PNAME}-${PVER}-mage-busybox-quirks.patch
25 )
26
27 src_prepare()
28 {
29 munpack ${SRCFILE} || die
30 cd ${SRCDIR}
31
32 # mcore specific patches
33 mpatch ${PNAME}-0.4.19-mcore.patch || die
34 mpatch ${PNAME}-0.4.19-busybox.patch || die
35 mpatch ${PNAME}-0.4.19-smage-busybox.patch || die
36 mpatch ${PNAME}-0.4.19-mage-busybox.patch || die
37 mpatch ${PNAME}-${PVER}-mage-busybox-quirks.patch || die
38 }
39
40 src_install()
41 {
42 cd ${SRCDIR}
43 make DESTDIR=${BINDIR} install || die
44
45 # fix version
46 echo "${PVER}-${PBUILD}" > ${BINDIR}/usr/lib/mage/version || die
47 }
48
49 postinstall()
50 {
51 local PVER
52 PVER="$(echo ${PKGNAME} | cut -d- -f2)"
53
54 echo
55 echo -e "Important:"
56 echo -e "\tIf you upgraded mage from a version < ${PVER},"
57 echo -e "\tcheck '/etc/mage.rc.example' for new pathnames"
58 echo -e "\tand copy expected files there."
59 echo -e "\tEdit your /etc/mage.rc that it fits to the example file."
60 echo
61 echo -e "\tAlso select an profile from ${MAGEDIR}/profiles and link"
62 echo -e "\tit to /etc/mage-profile."
63 echo -e "\tex. 'ln -snf ${MAGEDIR}/profiles/kernel26 /etc/mage-profile'"
64 echo
65 }

Properties

Name Value
svn:keywords Id