Magellan Linux

Contents of /smage/trunk/core/mage/mage-0.4.29-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1723 - (show annotations) (download)
Thu Sep 15 20:00:33 2011 UTC (12 years, 8 months ago) by niro
File size: 1414 byte(s)
-fixed STATE for older mage versions
1 # $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=""
22
23 SRCFILE="${PNAME}-${PVER}.tar.bz2"
24 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
25
26 sminclude mcore
27
28 SRC_URI=(
29 mirror://${PNAME}/${SRCFILE}
30 )
31
32 src_prepare()
33 {
34 munpack ${SRCFILE} || die
35 }
36
37 src_install()
38 {
39 cd ${SRCDIR}
40 make DESTDIR=${BINDIR} install || die
41
42 # fix version
43 echo "${PVER}-${PBUILD}" > ${BINDIR}/usr/lib/mage/version || die
44 }
45
46 preinstall()
47 {
48 add_conf_prot_mask /etc/mage.rc.example /etc/etc-update.conf
49 }
50
51 postinstall()
52 {
53 local PVER
54 PVER="$(echo ${PKGNAME} | cut -d- -f2)"
55
56 echo
57 echo -e "Important:"
58 echo -e "\tIf you upgraded mage from a version < ${PVER},"
59 echo -e "\tcheck '/etc/mage.rc.example' for new pathnames"
60 echo -e "\tand copy expected files there."
61 echo -e "\tEdit your /etc/mage.rc that it fits to the example file."
62 echo
63 echo -e "\tAlso select an profile from ${MAGEDIR}/profiles and link"
64 echo -e "\tit to /etc/mage-profile."
65 echo -e "\tex. 'ln -snf ${MAGEDIR}/profiles/kernel26 /etc/mage-profile'"
66 echo
67 }