Annotation of /smage/trunk/core/mage/mage-0.4.23-r1.smage2
Parent Directory | Revision Log
Revision 1180 -
(hide annotations)
(download)
Fri Jan 28 21:41:39 2011 UTC (13 years, 4 months ago) by niro
File size: 1347 byte(s)
Fri Jan 28 21:41:39 2011 UTC (13 years, 4 months ago) by niro
File size: 1347 byte(s)
auto added: ver bump to 0.4.23-r1
1 | niro | 1180 | # $Id: mage-0.4.20-r1.smage2 325 2010-04-28 13:59:52Z 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 | SRC_URI=( | ||
19 | mirror://${PNAME}/${SRCFILE} | ||
20 | mirror://${PNAME}/${PNAME}-0.4.23-busybox.patch | ||
21 | mirror://${PNAME}/${PNAME}-0.4.23-busybox-system-group-support.patch | ||
22 | ) | ||
23 | |||
24 | src_prepare() | ||
25 | { | ||
26 | munpack ${SRCFILE} || die | ||
27 | cd ${SRCDIR} | ||
28 | |||
29 | # mcore specific patches | ||
30 | mpatch ${PNAME}-0.4.23-busybox.patch || die | ||
31 | mpatch ${PNAME}-0.4.23-busybox-system-group-support.patch || die | ||
32 | } | ||
33 | |||
34 | src_install() | ||
35 | { | ||
36 | cd ${SRCDIR} | ||
37 | make DESTDIR=${BINDIR} install || die | ||
38 | |||
39 | # fix version | ||
40 | echo "${PVER}-${PBUILD}" > ${BINDIR}/usr/lib/mage/version || die | ||
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 | } |