Magellan Linux

Contents of /branches/magellan-next/core/mage/mage-0.4.27-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7918 - (show annotations) (download)
Sat Jun 4 09:33:46 2011 UTC (12 years, 11 months ago) by niro
File size: 1316 byte(s)
-ver bump to 0.4.27-r1: support global distribution file and smaller memory footprint of the generated mage files
1 # $Id$
2
3 PNAME="mage"
4 PVER="0.4.27"
5 PBUILD="r1"
6
7 PCATEGORIE="app-mage"
8
9 # keep this state here for older smage versions (< 0.4.27)
10 # which cannot handle a global distribution file
11 #
12 # on all other smagefiles this variable can be kept too,
13 # but it gets always overriden by the global distribution
14 # file params and it is suggested to drop the local STATE variable
15 #
16 STATE="unstable"
17
18 DESCRIPTION="Magellan Package Manager."
19 HOMEPAGE="http://magellan-linux.de/"
20
21 DEPEND=""
22
23 SRCFILE="${PNAME}-${PVER}.tar.bz2"
24 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
25
26 SRC_URI=( mirror://${PNAME}/${SRCFILE} )
27
28 src_prepare()
29 {
30 munpack ${SRCFILE} || die
31 }
32
33 src_install()
34 {
35 cd ${SRCDIR}
36 make DESTDIR=${BINDIR} install || die
37
38 # fix version
39 echo "${PVER}-${PBUILD}" > ${BINDIR}/usr/lib/mage/version || die
40 }
41
42 postinstall()
43 {
44 local PVER
45 PVER="$(echo ${PKGNAME} | cut -d- -f2)"
46
47 echo
48 echo -e "Important:"
49 echo -e "\tIf you upgraded mage from a version < ${PVER},"
50 echo -e "\tcheck '/etc/mage.rc.example' for new pathnames"
51 echo -e "\tand copy expected files there."
52 echo -e "\tEdit your /etc/mage.rc that it fits to the example file."
53 echo
54 echo -e "\tAlso select an profile from ${MAGEDIR}/profiles and link"
55 echo -e "\tit to /etc/mage-profile."
56 echo -e "\tex. 'ln -snf ${MAGEDIR}/profiles/kernel26 /etc/mage-profile'"
57 echo
58 }