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