Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1722 - (show annotations) (download)
Thu Sep 15 19:57:45 2011 UTC (12 years, 7 months ago) by niro
File size: 1102 byte(s)
auto added: ver bump to 0.4.29-r1
1 # $Id$
2
3 PNAME="mage"
4 PVER="0.4.29"
5 PBUILD="r1"
6
7 PCATEGORIE="app-mage"
8
9 DESCRIPTION="Magellan Package Manager."
10 HOMEPAGE="http://magellan-linux.de/"
11
12 DEPEND=""
13
14 SRCFILE="${PNAME}-${PVER}.tar.bz2"
15 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
16
17 sminclude mcore
18
19 SRC_URI=(
20 mirror://${PNAME}/${SRCFILE}
21 )
22
23 src_prepare()
24 {
25 munpack ${SRCFILE} || die
26 }
27
28 src_install()
29 {
30 cd ${SRCDIR}
31 make DESTDIR=${BINDIR} install || die
32
33 # fix version
34 echo "${PVER}-${PBUILD}" > ${BINDIR}/usr/lib/mage/version || die
35 }
36
37 preinstall()
38 {
39 add_conf_prot_mask /etc/mage.rc.example /etc/etc-update.conf
40 }
41
42 postinstall()
43 {
44 local PVER
45 PVER="$(echo ${PKGNAME} | cut -d- -f2)"
46
47 echo
48 echo -e "Important:"
49 echo -e "\tIf you upgraded mage from a version < ${PVER},"
50 echo -e "\tcheck '/etc/mage.rc.example' for new pathnames"
51 echo -e "\tand copy expected files there."
52 echo -e "\tEdit your /etc/mage.rc that it fits to the example file."
53 echo
54 echo -e "\tAlso select an profile from ${MAGEDIR}/profiles and link"
55 echo -e "\tit to /etc/mage-profile."
56 echo -e "\tex. 'ln -snf ${MAGEDIR}/profiles/kernel26 /etc/mage-profile'"
57 echo
58 }