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