Magellan Linux

Contents of /trunk/core/mage/mage-0.4.116-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 33526 - (show annotations) (download)
Mon Jul 31 11:12:11 2023 UTC (9 months, 1 week ago) by niro
File size: 1835 byte(s)
-ver bumo to 0.4.116-r1
1 # $Id$
2
3 PNAME="mage"
4 PVER="0.4.116"
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-5
25 >= sys-apps/coreutils-9.3
26 >= sys-apps/util-linux-2.39
27 >= sys-apps/diffutils-3
28 >= sys-apps/findutils-4.9
29 >= sys-apps/gawk-5
30 >= sys-apps/grep-3
31 >= virtual/sed
32 >= app-arch/bzip2-1
33 >= sys-apps/tar-1.34
34 >= sys-apps/file-5
35 >= sys-apps/which-2
36 >= sys-apps/shadow-4.13
37 >= sys-apps/inetutils-2.4
38 >= net-misc/wget-1.21
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 }