Annotation of /branches/magellan-next/core/mage/mage-0.4.29-r1.smage2
Parent Directory | Revision Log
Revision 9131 -
(hide annotations)
(download)
Mon Nov 7 16:58:38 2011 UTC (12 years, 6 months ago) by niro
File size: 1707 byte(s)
Mon Nov 7 16:58:38 2011 UTC (12 years, 6 months ago) by niro
File size: 1707 byte(s)
-fixed dependencies
1 | niro | 9130 | # $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=">= app-shells/bash-4 | ||
22 | niro | 9131 | >= sys-apps/coreutils-8.12 |
23 | >= sys-apps/util-linux-2.19 | ||
24 | niro | 9130 | >= sys-apps/diffutils-3 |
25 | >= sys-apps/findutils-4.4 | ||
26 | >= sys-apps/gawk-3 | ||
27 | >= sys-apps/grep-2 | ||
28 | >= sys-apps/sed-4 | ||
29 | >= app-arch/bzip2-1 | ||
30 | >= sys-apps/tar-1.26 | ||
31 | >= sys-apps/file-5 | ||
32 | >= sys-apps/which-2 | ||
33 | >= sys-apps/shadow-4.1 | ||
34 | >= sys-apps/inetutils-1.8 | ||
35 | >= sys-dev/libtool-2.4 | ||
36 | >= net-misc/wget-1.12 | ||
37 | >= net-misc/rsync-3" | ||
38 | |||
39 | SRCFILE="${PNAME}-${PVER}.tar.bz2" | ||
40 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
41 | |||
42 | SRC_URI=( mirror://${PNAME}/${SRCFILE} ) | ||
43 | |||
44 | src_prepare() | ||
45 | { | ||
46 | munpack ${SRCFILE} || die | ||
47 | } | ||
48 | |||
49 | src_install() | ||
50 | { | ||
51 | cd ${SRCDIR} | ||
52 | make DESTDIR=${BINDIR} install || die | ||
53 | |||
54 | # fix version | ||
55 | echo "${PVER}-${PBUILD}" > ${BINDIR}/usr/lib/mage/version || die | ||
56 | } | ||
57 | |||
58 | postinstall() | ||
59 | { | ||
60 | local PVER | ||
61 | PVER="$(echo ${PKGNAME} | cut -d- -f2)" | ||
62 | |||
63 | echo | ||
64 | echo -e "Important:" | ||
65 | echo -e "\tIf you upgraded mage from a version < ${PVER}," | ||
66 | echo -e "\tcheck '/etc/mage.rc.example' for new pathnames" | ||
67 | echo -e "\tand copy expected files there." | ||
68 | echo -e "\tEdit your /etc/mage.rc that it fits to the example file." | ||
69 | echo | ||
70 | echo -e "\tAlso select an profile from ${MAGEDIR}/profiles and link" | ||
71 | echo -e "\tit to /etc/mage-profile." | ||
72 | echo -e "\tex. 'ln -snf ${MAGEDIR}/profiles/kernel26 /etc/mage-profile'" | ||
73 | echo | ||
74 | } |