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