Contents of /branches/magellan-next/core/mage/mage-0.4.28-r1.smage2
Parent Directory | Revision Log
Revision 8613 -
(show annotations)
(download)
Mon Jul 25 12:21:21 2011 UTC (13 years, 2 months ago) by niro
File size: 1316 byte(s)
Mon Jul 25 12:21:21 2011 UTC (13 years, 2 months ago) by niro
File size: 1316 byte(s)
auto added: ver bump to 0.4.28-r1
1 | # $Id$ |
2 | |
3 | PNAME="mage" |
4 | PVER="0.4.28" |
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 | } |