Magellan Linux

Contents of /trunk/core/mage/mage-0.4.19-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4128 - (show annotations) (download)
Sat Nov 21 14:51:52 2009 UTC (14 years, 5 months ago) by niro
File size: 1021 byte(s)
ver bump to 0.4.19-r1; fixed varibale/function export issues with magefile generation in split_packages
1 # $Id$
2
3 PNAME="mage"
4 PVER="0.4.19"
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=( mirror://${PNAME}/${SRCFILE} )
19
20 src_prepare()
21 {
22 munpack ${SRCFILE} || die
23 }
24
25 src_install()
26 {
27 cd ${SRCDIR}
28 make DESTDIR=${BINDIR} install || die
29
30 # fix version
31 echo "${PVER}-${PBUILD}" > ${BINDIR}/usr/lib/mage/version || die
32 }
33
34 postinstall()
35 {
36 local PVER
37 PVER="$(echo ${PKGNAME} | cut -d- -f2)"
38
39 echo
40 echo -e "Important:"
41 echo -e "\tIf you upgraded mage from a version < ${PVER},"
42 echo -e "\tcheck '/etc/mage.rc.example' for new pathnames"
43 echo -e "\tand copy expected files there."
44 echo -e "\tEdit your /etc/mage.rc that it fits to the example file."
45 echo
46 echo -e "\tAlso select an profile from ${MAGEDIR}/profiles and link"
47 echo -e "\tit to /etc/mage-profile."
48 echo -e "\tex. 'ln -snf ${MAGEDIR}/profiles/kernel26 /etc/mage-profile'"
49 echo
50 }

Properties

Name Value
svn:keywords Id