Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1061 - (hide annotations) (download)
Mon Dec 27 16:09:57 2010 UTC (13 years, 5 months ago) by niro
File size: 1351 byte(s)
-added -r switch support to mgroupadd/museradd
1 niro 890 # $Id: mage-0.4.20-r1.smage2 325 2010-04-28 13:59:52Z niro $
2    
3     PNAME="mage"
4     PVER="0.4.22"
5     PBUILD="r1"
6    
7     PCATEGORIE="app-mage"
8     STATE="unstable"
9    
10     DESCRIPTION="Magellan Package Manager."
11     HOMEPAGE="http://magellan-linux.de/"
12    
13     DEPEND=""
14    
15     SRCFILE="${PNAME}-${PVER}.tar.bz2"
16     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
17    
18     SRC_URI=(
19     mirror://${PNAME}/${SRCFILE}
20 niro 891 mirror://${PNAME}/${PNAME}-${PVER}-busybox.patch
21 niro 1061 mirror://${PNAME}/${PNAME}-${PVER}-busybox-system-group-support.patch
22 niro 890 )
23    
24     src_prepare()
25     {
26     munpack ${SRCFILE} || die
27     cd ${SRCDIR}
28    
29     # mcore specific patches
30 niro 891 mpatch ${PNAME}-${PVER}-busybox.patch || die
31 niro 1061 mpatch ${PNAME}-${PVER}-busybox-system-group-support.patch || die
32 niro 890 }
33    
34     src_install()
35     {
36     cd ${SRCDIR}
37     make DESTDIR=${BINDIR} install || die
38    
39     # fix version
40     echo "${PVER}-${PBUILD}" > ${BINDIR}/usr/lib/mage/version || die
41     }
42    
43     postinstall()
44     {
45     local PVER
46     PVER="$(echo ${PKGNAME} | cut -d- -f2)"
47    
48     echo
49     echo -e "Important:"
50     echo -e "\tIf you upgraded mage from a version < ${PVER},"
51     echo -e "\tcheck '/etc/mage.rc.example' for new pathnames"
52     echo -e "\tand copy expected files there."
53     echo -e "\tEdit your /etc/mage.rc that it fits to the example file."
54     echo
55     echo -e "\tAlso select an profile from ${MAGEDIR}/profiles and link"
56     echo -e "\tit to /etc/mage-profile."
57     echo -e "\tex. 'ln -snf ${MAGEDIR}/profiles/kernel26 /etc/mage-profile'"
58     echo
59     }