Magellan Linux

Annotation of /smage/trunk/core/mage/mage-0.4.112-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9657 - (hide annotations) (download)
Tue Aug 1 15:53:47 2017 UTC (6 years, 9 months ago) by niro
File size: 1899 byte(s)
auto added: ver bump to 0.4.112-r1
1 niro 9657 # $Id$
2    
3     PNAME="mage"
4     PVER="0.4.112"
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=( mirror://${PNAME}/${SRCFILE} )
47    
48     src_prepare()
49     {
50     munpack ${SRCFILE} || die
51     }
52    
53     src_install()
54     {
55     cd ${SRCDIR}
56     make DESTDIR=${BINDIR} sbindir=/usr/sbin install || die
57    
58     # fix version
59     echo "${PVER}-${PBUILD}" > ${BINDIR}/usr/lib/mage/version || die
60     }
61    
62     preinstall()
63     {
64     add_conf_prot_mask /etc/mage.rc.example /etc/etc-update.conf
65     }
66    
67     postinstall()
68     {
69     local PVER
70     PVER="$(echo ${PKGNAME} | cut -d- -f2)"
71    
72     echo
73     echo -e "Important:"
74     echo -e "\tIf you upgraded mage from a version < ${PVER},"
75     echo -e "\tcheck '/etc/mage.rc.example' for new pathnames"
76     echo -e "\tand copy expected files there."
77     echo -e "\tEdit your /etc/mage.rc that it fits to the example file."
78     echo
79     echo -e "\tAlso select an profile from ${MAGEDIR}/profiles and link"
80     echo -e "\tit to /etc/mage-profile."
81     echo -e "\tex. 'ln -snf ${MAGEDIR}/profiles/kernel26 /etc/mage-profile'"
82     echo
83     }