Magellan Linux

Contents of /branches/R11-stable/core/mage/mage-0.4.103-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 20443 - (show annotations) (download)
Mon Jan 27 09:13:09 2014 UTC (10 years, 3 months ago) by niro
File size: 1835 byte(s)
-release branches/R11-stable
1 # $Id$
2
3 PNAME="mage"
4 PVER="0.4.103"
5 PBUILD="r1"
6
7 # keep this deprecated variable around for older smage versions (< 0.4.84)
8 PCATEGORIE="app-mage"
9 # the new introduced variable for categories
10 PCAT="app-mage"
11
12 # keep this state here for older smage versions (< 0.4.27)
13 # which cannot handle a global distribution file
14 #
15 # on all other smagefiles this variable can be kept too,
16 # but it gets always overriden by the global distribution
17 # file params and it is suggested to drop the local STATE variable
18 #
19 STATE="unstable"
20
21 DESCRIPTION="Magellan Package Manager."
22 HOMEPAGE="http://magellan-linux.de/"
23
24 DEPEND=">= app-shells/bash-4
25 >= sys-apps/coreutils-8.12
26 >= sys-apps/util-linux-2.19
27 >= sys-apps/diffutils-3
28 >= sys-apps/findutils-4.4
29 >= sys-apps/gawk-3
30 >= sys-apps/grep-2
31 >= virtual/sed
32 >= app-arch/bzip2-1
33 >= sys-apps/tar-1.26
34 >= sys-apps/file-5
35 >= sys-apps/which-2
36 >= sys-apps/shadow-4.1
37 >= sys-apps/inetutils-1.8
38 >= net-misc/wget-1.12
39 >= net-misc/rsync-3"
40
41 SRCFILE="${PNAME}-${PVER}.tar.bz2"
42 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
43
44 SRC_URI=( mirror://${PNAME}/${SRCFILE} )
45
46 src_prepare()
47 {
48 munpack ${SRCFILE} || die
49 }
50
51 src_install()
52 {
53 cd ${SRCDIR}
54 make DESTDIR=${BINDIR} sbindir=/usr/sbin install || die
55
56 # fix version
57 echo "${PVER}-${PBUILD}" > ${BINDIR}/usr/lib/mage/version || die
58 }
59
60 postinstall()
61 {
62 local PVER
63 PVER="$(echo ${PKGNAME} | cut -d- -f2)"
64
65 echo
66 echo -e "Important:"
67 echo -e "\tIf you upgraded mage from a version < ${PVER},"
68 echo -e "\tcheck '/etc/mage.rc.example' for new pathnames"
69 echo -e "\tand copy expected files there."
70 echo -e "\tEdit your /etc/mage.rc that it fits to the example file."
71 echo
72 echo -e "\tAlso select an profile from ${MAGEDIR}/profiles and link"
73 echo -e "\tit to /etc/mage-profile."
74 echo -e "\tex. 'ln -snf ${MAGEDIR}/profiles/kernel26 /etc/mage-profile'"
75 echo
76 }