Contents of /smage/trunk/core/mage/mage-0.4.27-r1.smage2
Parent Directory | Revision Log
Revision 2792 -
(show annotations)
(download)
Mon Aug 29 20:03:18 2011 UTC (13 years ago) by niro
File size: 1151 byte(s)
Mon Aug 29 20:03:18 2011 UTC (13 years ago) by niro
File size: 1151 byte(s)
-merged branch alx-0_6_0 into trunk
1 | # $Id$ |
2 | |
3 | PNAME="mage" |
4 | PVER="0.4.27" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="app-mage" |
8 | |
9 | DESCRIPTION="Magellan Package Manager." |
10 | HOMEPAGE="http://magellan-linux.de/" |
11 | |
12 | DEPEND="" |
13 | |
14 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
15 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
16 | |
17 | REMOVE_DEPRECATED_MAGE_TARGETS=1 |
18 | sminclude alx |
19 | |
20 | SRC_URI=( |
21 | mirror://${PNAME}/${SRCFILE} |
22 | ) |
23 | |
24 | src_prepare() |
25 | { |
26 | munpack ${SRCFILE} || die |
27 | } |
28 | |
29 | src_install() |
30 | { |
31 | cd ${SRCDIR} |
32 | make DESTDIR=${BINDIR} install || die |
33 | |
34 | # fix version |
35 | echo "${PVER}-${PBUILD}" > ${BINDIR}/usr/lib/mage/version || die |
36 | } |
37 | |
38 | preinstall() |
39 | { |
40 | add_conf_prot_mask /etc/mage.rc.example /etc/etc-update.conf |
41 | } |
42 | |
43 | postinstall() |
44 | { |
45 | local PVER |
46 | PVER="$(echo ${PKGNAME} | cut -d- -f2)" |
47 | |
48 | echo |
49 | echo -e "Important:" |
50 | echo -e "\tIf you upgraded mage from a version < ${PVER}," |
51 | echo -e "\tcheck '/etc/mage.rc.example' for new pathnames" |
52 | echo -e "\tand copy expected files there." |
53 | echo -e "\tEdit your /etc/mage.rc that it fits to the example file." |
54 | echo |
55 | echo -e "\tAlso select an profile from ${MAGEDIR}/profiles and link" |
56 | echo -e "\tit to /etc/mage-profile." |
57 | echo -e "\tex. 'ln -snf ${MAGEDIR}/profiles/kernel26 /etc/mage-profile'" |
58 | echo |
59 | |
60 | alx_postinstall |
61 | } |