Contents of /trunk/core/mage/mage-0.4.10-r1.smage2
Parent Directory | Revision Log
Revision 8 -
(show annotations)
(download)
Fri Oct 10 19:01:50 2008 UTC (15 years, 11 months ago) by niro
File size: 1777 byte(s)
Fri Oct 10 19:01:50 2008 UTC (15 years, 11 months ago) by niro
File size: 1777 byte(s)
auto added: ver bump to 0.4.10-r1
1 | # $Header: /magellan-cvs/smage/mage/mage-0.4.10-r1.smage2,v 1.1 2008/10/05 10:42:03 niro Exp $ |
2 | |
3 | PNAME="mage" |
4 | PVER="0.4.10" |
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 | sminclude cvs rsync |
19 | |
20 | # avaible options are source/rsync/cvs |
21 | METHOD=source |
22 | |
23 | case ${METHOD} in |
24 | cvs) SDEPEND=">= dev-util/cvs-1.11" ;; |
25 | rsync) SDEPEND=">= net-misc/rsync-2.6.9" ;; |
26 | source) SDEPEND="" ;; |
27 | esac |
28 | |
29 | [[ ${METHOD} = source ]] && SRC_URI=( mirror://${PNAME}/${SRCFILE} ) |
30 | |
31 | src_prepare() |
32 | { |
33 | [[ ${METHOD} = source ]] && { munpack ${SRCFILE} || die; } |
34 | |
35 | if [[ ${METHOD} = rsync ]] |
36 | then |
37 | RSYNC_URI="rsync://magellan-linux.de/${PNAME}-${PVER}-${PBUILD}" |
38 | rsync_fetch_source || die |
39 | fi |
40 | |
41 | if [[ ${METHOD} = cvs ]] |
42 | then |
43 | MY_CVS_MODULE="magellan-src/mage" |
44 | # $PVER must be eg 0_3_3 |
45 | MY_CVS_OPTS="-r mage-$(echo ${PVER}| sed -e "s|\.|\_|g")-${PBUILD}" |
46 | export CVSROOT=:pserver:anonymous:@magellan-linux.de:/magellan-cvs |
47 | cvs_fetch_source || die |
48 | fi |
49 | } |
50 | |
51 | src_install() |
52 | { |
53 | cd ${SRCDIR} |
54 | |
55 | make DESTDIR=${BINDIR} install || die |
56 | |
57 | # fix version |
58 | echo "${PVER}-${PBUILD}" > ${BINDIR}/usr/lib/mage/version || die |
59 | } |
60 | |
61 | postinstall() |
62 | { |
63 | local PVER |
64 | PVER="$(echo ${PKGNAME} | cut -d- -f2)" |
65 | |
66 | echo |
67 | echo -e "Important:" |
68 | echo -e "\tIf you upgraded mage from a version < ${PVER}," |
69 | echo -e "\tcheck '/etc/mage.rc.example' for new pathnames" |
70 | echo -e "\tand copy expected files there." |
71 | echo -e "\tEdit your /etc/mage.rc that it fits to the example file." |
72 | echo |
73 | echo -e "\tAlso select an profile from ${MAGEDIR}/profiles and link" |
74 | echo -e "\tit to /etc/mage-profile." |
75 | echo -e "\tex. 'ln -snf ${MAGEDIR}/profiles/kernel26 /etc/mage-profile'" |
76 | echo |
77 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |