Contents of /smage/trunk/core/mage/mage-0.4.104-r3.smage2
Parent Directory
|
Revision Log
Revision 5758 -
(show annotations)
(download)
Fri Jul 4 11:59:39 2014 UTC (9 years, 11 months ago) by niro
File size: 2230 byte(s)
Fri Jul 4 11:59:39 2014 UTC (9 years, 11 months ago) by niro
File size: 2230 byte(s)
-fixed broken -l switch with busybox adduser
1 | # $Id$ |
2 | |
3 | PNAME="mage" |
4 | PVER="0.4.104" |
5 | PBUILD="r3" |
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 | mirror://${PNAME}/${PNAME}-0.4.104-busybox-museradd-fix.patch |
50 | ) |
51 | |
52 | src_prepare() |
53 | { |
54 | munpack ${SRCFILE} || die |
55 | cd ${SRCDIR} |
56 | |
57 | # busybox patches not included upstream |
58 | mpatch ${PNAME}-0.4.94-busybox-etc-update.patch || die |
59 | # adduser: fixes unknown -l switch |
60 | mpatch ${PNAME}-0.4.104-busybox-museradd-fix.patch || die |
61 | } |
62 | |
63 | src_install() |
64 | { |
65 | cd ${SRCDIR} |
66 | make DESTDIR=${BINDIR} sbindir=/usr/sbin install || die |
67 | |
68 | # fix version |
69 | echo "${PVER}-${PBUILD}" > ${BINDIR}/usr/lib/mage/version || die |
70 | } |
71 | |
72 | preinstall() |
73 | { |
74 | add_conf_prot_mask /etc/mage.rc.example /etc/etc-update.conf |
75 | } |
76 | |
77 | postinstall() |
78 | { |
79 | local PVER |
80 | PVER="$(echo ${PKGNAME} | cut -d- -f2)" |
81 | |
82 | echo |
83 | echo -e "Important:" |
84 | echo -e "\tIf you upgraded mage from a version < ${PVER}," |
85 | echo -e "\tcheck '/etc/mage.rc.example' for new pathnames" |
86 | echo -e "\tand copy expected files there." |
87 | echo -e "\tEdit your /etc/mage.rc that it fits to the example file." |
88 | echo |
89 | echo -e "\tAlso select an profile from ${MAGEDIR}/profiles and link" |
90 | echo -e "\tit to /etc/mage-profile." |
91 | echo -e "\tex. 'ln -snf ${MAGEDIR}/profiles/kernel26 /etc/mage-profile'" |
92 | echo |
93 | } |