Magellan Linux

Contents of /smage/trunk/core/mage/mage-0.4.114-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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