Contents of /branches/magellan-next/core/mage/mage-0.4.86-r1.smage2
Parent Directory | Revision Log
Revision 9872 -
(show annotations)
(download)
Sat Jan 14 00:10:21 2012 UTC (12 years, 8 months ago) by niro
File size: 1836 byte(s)
Sat Jan 14 00:10:21 2012 UTC (12 years, 8 months ago) by niro
File size: 1836 byte(s)
auto added: ver bump to 0.4.86-r1
1 | # $Id$ |
2 | |
3 | PNAME="mage" |
4 | PVER="0.4.86" |
5 | PBUILD="r1" |
6 | |
7 | # keep this deprecated variable for older smage versions (< 0.4.84) |
8 | PCATEGORIE="app-mage" |
9 | # the new introduced variable for categories |
10 | PCAT="app-mage" |
11 | |
12 | # keep this state here for older smage versions (< 0.4.27) |
13 | # which cannot handle a global distribution file |
14 | # |
15 | # on all other smagefiles this variable can be kept too, |
16 | # but it gets always overriden by the global distribution |
17 | # file params and it is suggested to drop the local STATE variable |
18 | # |
19 | STATE="unstable" |
20 | |
21 | DESCRIPTION="Magellan Package Manager." |
22 | HOMEPAGE="http://magellan-linux.de/" |
23 | |
24 | DEPEND=">= app-shells/bash-4 |
25 | >= sys-apps/coreutils-8.12 |
26 | >= sys-apps/util-linux-2.19 |
27 | >= sys-apps/diffutils-3 |
28 | >= sys-apps/findutils-4.4 |
29 | >= sys-apps/gawk-3 |
30 | >= sys-apps/grep-2 |
31 | >= sys-apps/sed-4 |
32 | >= app-arch/bzip2-1 |
33 | >= sys-apps/tar-1.26 |
34 | >= sys-apps/file-5 |
35 | >= sys-apps/which-2 |
36 | >= sys-apps/shadow-4.1 |
37 | >= sys-apps/inetutils-1.8 |
38 | >= sys-dev/libtool-2.4 |
39 | >= net-misc/wget-1.12 |
40 | >= net-misc/rsync-3" |
41 | |
42 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
43 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
44 | |
45 | SRC_URI=( mirror://${PNAME}/${SRCFILE} ) |
46 | |
47 | src_prepare() |
48 | { |
49 | munpack ${SRCFILE} || die |
50 | } |
51 | |
52 | src_install() |
53 | { |
54 | cd ${SRCDIR} |
55 | make DESTDIR=${BINDIR} install || die |
56 | |
57 | # fix version |
58 | echo "${PVER}-${PBUILD}" > ${BINDIR}/usr/lib/mage/version || die |
59 | } |
60 | |
61 | postinstall() |
62 | { |
63 | local PVER |
64 | PVER="$(echo ${PKGNAME} | cut -d- -f2)" |
65 | |
66 | echo |
67 | echo -e "Important:" |
68 | echo -e "\tIf you upgraded mage from a version < ${PVER}," |
69 | echo -e "\tcheck '/etc/mage.rc.example' for new pathnames" |
70 | echo -e "\tand copy expected files there." |
71 | echo -e "\tEdit your /etc/mage.rc that it fits to the example file." |
72 | echo |
73 | echo -e "\tAlso select an profile from ${MAGEDIR}/profiles and link" |
74 | echo -e "\tit to /etc/mage-profile." |
75 | echo -e "\tex. 'ln -snf ${MAGEDIR}/profiles/kernel26 /etc/mage-profile'" |
76 | echo |
77 | } |