Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5490 - (show annotations) (download)
Thu Mar 27 08:07:15 2014 UTC (10 years, 2 months ago) by niro
File size: 2072 byte(s)
auto added: ver bump to 0.4.104-r1
1 # $Id$
2
3 PNAME="mage"
4 PVER="0.4.104"
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 >= virtual/grep
31 >= virtual/sed
32 >= virtual/bzip2
33 >= virtual/tar
34 >= sys-apps/file-5
35 >= virtual/which
36 >= virtual/shadow
37 >= virtual/inetutils
38 >= virtual/wget
39 >= net-misc/rsync-3"
40
41 SRCFILE="${PNAME}-${PVER}.tar.bz2"
42 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
43
44 sminclude alx
45
46 SRC_URI=(
47 mirror://${PNAME}/${SRCFILE}
48 mirror://${PNAME}/${PNAME}-0.4.94-busybox-etc-update.patch
49 )
50
51 src_prepare()
52 {
53 munpack ${SRCFILE} || die
54 cd ${SRCDIR}
55
56 # busybox patches not included upstream
57 mpatch ${PNAME}-0.4.94-busybox-etc-update.patch || die
58 }
59
60 src_install()
61 {
62 cd ${SRCDIR}
63 make DESTDIR=${BINDIR} sbindir=/usr/sbin install || die
64
65 # fix version
66 echo "${PVER}-${PBUILD}" > ${BINDIR}/usr/lib/mage/version || die
67 }
68
69 preinstall()
70 {
71 add_conf_prot_mask /etc/mage.rc.example /etc/etc-update.conf
72 }
73
74 postinstall()
75 {
76 local PVER
77 PVER="$(echo ${PKGNAME} | cut -d- -f2)"
78
79 echo
80 echo -e "Important:"
81 echo -e "\tIf you upgraded mage from a version < ${PVER},"
82 echo -e "\tcheck '/etc/mage.rc.example' for new pathnames"
83 echo -e "\tand copy expected files there."
84 echo -e "\tEdit your /etc/mage.rc that it fits to the example file."
85 echo
86 echo -e "\tAlso select an profile from ${MAGEDIR}/profiles and link"
87 echo -e "\tit to /etc/mage-profile."
88 echo -e "\tex. 'ln -snf ${MAGEDIR}/profiles/kernel26 /etc/mage-profile'"
89 echo
90 }