Magellan Linux

Annotation of /smage/trunk/core/mage/mage-0.4.20-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 145 - (hide annotations) (download)
Mon Apr 26 17:27:37 2010 UTC (14 years ago) by niro
File size: 1457 byte(s)
auto added: ver bump to 0.4.20-r1
1 niro 145 # $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}-0.4.19-mcore.patch
21     mirror://${PNAME}/${PNAME}-0.4.19-busybox.patch
22     mirror://${PNAME}/${PNAME}-0.4.19-smage-busybox.patch
23     mirror://${PNAME}/${PNAME}-0.4.19-mage-busybox.patch
24     )
25    
26     src_prepare()
27     {
28     munpack ${SRCFILE} || die
29     cd ${SRCDIR}
30    
31     # mcore specific patches
32     mpatch ${PNAME}-0.4.19-mcore.patch || die
33     mpatch ${PNAME}-0.4.19-busybox.patch || die
34     mpatch ${PNAME}-0.4.19-smage-busybox.patch || die
35     mpatch ${PNAME}-0.4.19-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