Contents of /smage/branches/alx-0_6_0/core/mage/mage-0.4.29-r1.smage2
Parent Directory | Revision Log
Revision 3220 -
(show annotations)
(download)
Thu Sep 15 19:59:51 2011 UTC (12 years, 7 months ago) by niro
File size: 1463 byte(s)
Thu Sep 15 19:59:51 2011 UTC (12 years, 7 months ago) by niro
File size: 1463 byte(s)
-fixed STATE for older mage versions
1 | # $Id$ |
2 | |
3 | PNAME="mage" |
4 | PVER="0.4.29" |
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 | REMOVE_DEPRECATED_MAGE_TARGETS=1 |
27 | sminclude alx |
28 | |
29 | SRC_URI=( |
30 | mirror://${PNAME}/${SRCFILE} |
31 | ) |
32 | |
33 | src_prepare() |
34 | { |
35 | munpack ${SRCFILE} || die |
36 | } |
37 | |
38 | src_install() |
39 | { |
40 | cd ${SRCDIR} |
41 | make DESTDIR=${BINDIR} install || die |
42 | |
43 | # fix version |
44 | echo "${PVER}-${PBUILD}" > ${BINDIR}/usr/lib/mage/version || die |
45 | } |
46 | |
47 | preinstall() |
48 | { |
49 | add_conf_prot_mask /etc/mage.rc.example /etc/etc-update.conf |
50 | } |
51 | |
52 | postinstall() |
53 | { |
54 | local PVER |
55 | PVER="$(echo ${PKGNAME} | cut -d- -f2)" |
56 | |
57 | echo |
58 | echo -e "Important:" |
59 | echo -e "\tIf you upgraded mage from a version < ${PVER}," |
60 | echo -e "\tcheck '/etc/mage.rc.example' for new pathnames" |
61 | echo -e "\tand copy expected files there." |
62 | echo -e "\tEdit your /etc/mage.rc that it fits to the example file." |
63 | echo |
64 | echo -e "\tAlso select an profile from ${MAGEDIR}/profiles and link" |
65 | echo -e "\tit to /etc/mage-profile." |
66 | echo -e "\tex. 'ln -snf ${MAGEDIR}/profiles/kernel26 /etc/mage-profile'" |
67 | echo |
68 | |
69 | alx_postinstall |
70 | } |