Magellan Linux

Contents of /smage/branches/alx-0_6_0/core/mage/mage-0.4.29-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6883 - (show annotations) (download)
Fri Jul 24 11:04:56 2015 UTC (8 years, 9 months ago) by niro
File size: 1697 byte(s)
busybox tar does not support -J option for xz
1 # $Id$
2
3 PNAME="mage"
4 PVER="0.4.29"
5 PBUILD="r2"
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 REMOVE_DEPRECATED_MAGE_TARGETS=1
27 sminclude alx
28
29 SRC_URI=(
30 mirror://${PNAME}/${SRCFILE}
31 mirror://${PNAME}/${PNAME}-${PVER}-busybox-tar-does-not-support-J-option-for-xz.patch
32 )
33
34 src_prepare()
35 {
36 munpack ${SRCFILE} || die
37 cd ${SRCDIR}
38
39 # busybox tar does not support -J option for xz
40 mpatch ${PNAME}-${PVER}-busybox-tar-does-not-support-J-option-for-xz.patch || die
41 }
42
43 src_install()
44 {
45 cd ${SRCDIR}
46 make DESTDIR=${BINDIR} install || die
47
48 # fix version
49 echo "${PVER}-${PBUILD}" > ${BINDIR}/usr/lib/mage/version || die
50 }
51
52 preinstall()
53 {
54 add_conf_prot_mask /etc/mage.rc.example /etc/etc-update.conf
55 }
56
57 postinstall()
58 {
59 local PVER
60 PVER="$(echo ${PKGNAME} | cut -d- -f2)"
61
62 echo
63 echo -e "Important:"
64 echo -e "\tIf you upgraded mage from a version < ${PVER},"
65 echo -e "\tcheck '/etc/mage.rc.example' for new pathnames"
66 echo -e "\tand copy expected files there."
67 echo -e "\tEdit your /etc/mage.rc that it fits to the example file."
68 echo
69 echo -e "\tAlso select an profile from ${MAGEDIR}/profiles and link"
70 echo -e "\tit to /etc/mage-profile."
71 echo -e "\tex. 'ln -snf ${MAGEDIR}/profiles/kernel26 /etc/mage-profile'"
72 echo
73
74 alx_postinstall
75 }