Contents of /smage/branches/alx-0_6_0/core/mage/mage-0.4.25-r1.smage2
Parent Directory | Revision Log
Revision 2118 -
(show annotations)
(download)
Thu May 12 21:20:19 2011 UTC (13 years ago) by niro
File size: 1549 byte(s)
Thu May 12 21:20:19 2011 UTC (13 years ago) by niro
File size: 1549 byte(s)
-added patch to fix config protect
1 | # $Id$ |
2 | |
3 | PNAME="mage" |
4 | PVER="0.4.25" |
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 | REMOVE_DEPRECATED_MAGE_TARGETS=1 |
19 | sminclude alx |
20 | |
21 | SRC_URI=( |
22 | mirror://${PNAME}/${SRCFILE} |
23 | mirror://${PNAME}/${PNAME}-${PVER}-magequery-ignore-mage-files.patch |
24 | mirror://${PNAME}/${PNAME}-${PVER}-config-protect-register-ignored-too.patch |
25 | ) |
26 | |
27 | src_prepare() |
28 | { |
29 | munpack ${SRCFILE} || die |
30 | cd ${SRCDIR} |
31 | |
32 | # fix magequery |
33 | mpatch ${PNAME}-${PVER}-magequery-ignore-mage-files.patch || die |
34 | # fix config protect, that ignored files get registered too |
35 | mpatch ${PNAME}-${PVER}-config-protect-register-ignored-too.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 | preinstall() |
48 | { |
49 | add_conf_prot_mask /etc/mage.rc.example /etc/etc-update.conf |
50 | } |
51 | |
52 | postinstall() |
53 | { |
54 | local PVER |
55 | PVER="$(echo ${PKGNAME} | cut -d- -f2)" |
56 | |
57 | echo |
58 | echo -e "Important:" |
59 | echo -e "\tIf you upgraded mage from a version < ${PVER}," |
60 | echo -e "\tcheck '/etc/mage.rc.example' for new pathnames" |
61 | echo -e "\tand copy expected files there." |
62 | echo -e "\tEdit your /etc/mage.rc that it fits to the example file." |
63 | echo |
64 | echo -e "\tAlso select an profile from ${MAGEDIR}/profiles and link" |
65 | echo -e "\tit to /etc/mage-profile." |
66 | echo -e "\tex. 'ln -snf ${MAGEDIR}/profiles/kernel26 /etc/mage-profile'" |
67 | echo |
68 | |
69 | alx_postinstall |
70 | } |