Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 891 - (hide annotations) (download)
Tue Dec 7 20:10:21 2010 UTC (13 years, 5 months ago) by niro
File size: 1213 byte(s)
auto added: ver bump to 0.4.22-r1
1 niro 890 # $Id: mage-0.4.20-r1.smage2 325 2010-04-28 13:59:52Z niro $
2    
3     PNAME="mage"
4     PVER="0.4.22"
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 niro 891 mirror://${PNAME}/${PNAME}-${PVER}-busybox.patch
21 niro 890 )
22    
23     src_prepare()
24     {
25     munpack ${SRCFILE} || die
26     cd ${SRCDIR}
27    
28     # mcore specific patches
29 niro 891 mpatch ${PNAME}-${PVER}-busybox.patch || die
30 niro 890 }
31    
32     src_install()
33     {
34     cd ${SRCDIR}
35     make DESTDIR=${BINDIR} install || die
36    
37     # fix version
38     echo "${PVER}-${PBUILD}" > ${BINDIR}/usr/lib/mage/version || die
39     }
40    
41     postinstall()
42     {
43     local PVER
44     PVER="$(echo ${PKGNAME} | cut -d- -f2)"
45    
46     echo
47     echo -e "Important:"
48     echo -e "\tIf you upgraded mage from a version < ${PVER},"
49     echo -e "\tcheck '/etc/mage.rc.example' for new pathnames"
50     echo -e "\tand copy expected files there."
51     echo -e "\tEdit your /etc/mage.rc that it fits to the example file."
52     echo
53     echo -e "\tAlso select an profile from ${MAGEDIR}/profiles and link"
54     echo -e "\tit to /etc/mage-profile."
55     echo -e "\tex. 'ln -snf ${MAGEDIR}/profiles/kernel26 /etc/mage-profile'"
56     echo
57     }