Annotation of /trunk/core/mtools/mtools-4.0.18-r1.smage2
Parent Directory | Revision Log
Revision 15844 -
(hide annotations)
(download)
Fri Jan 11 10:17:19 2013 UTC (11 years, 8 months ago) by niro
File size: 953 byte(s)
Fri Jan 11 10:17:19 2013 UTC (11 years, 8 months ago) by niro
File size: 953 byte(s)
auto added: ver bump to 4.0.18-r1
1 | niro | 15844 | # $Id$ |
2 | |||
3 | PNAME="mtools" | ||
4 | PVER="4.0.18" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCAT="sys-fs" | ||
8 | |||
9 | DESCRIPTION="Utilities to access MS-DOS disks from Unix without mounting them." | ||
10 | HOMEPAGE="http://mtools.linux.lu/" | ||
11 | |||
12 | DEPEND=">= virtual/glibc" | ||
13 | |||
14 | SRCFILE="${PNAME}-${PVER}.tar.bz2" | ||
15 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
16 | |||
17 | sminclude mtools | ||
18 | |||
19 | SRC_URI=( | ||
20 | gnu://${PNAME}/${SRCFILE} | ||
21 | mirror://${PNAME}/${SRCFILE} | ||
22 | ) | ||
23 | |||
24 | UP2DATE="updatecmd_gnu ${PNAME}" | ||
25 | |||
26 | src_prepare() | ||
27 | { | ||
28 | munpack ${SRCFILE} || die | ||
29 | cd ${SRCDIR} | ||
30 | |||
31 | # do not complain about existing directories | ||
32 | sed -i "s:mkdir:mkdir -p:" mkinstalldirs || die | ||
33 | } | ||
34 | |||
35 | src_compile() | ||
36 | { | ||
37 | cd ${SRCDIR} | ||
38 | mconfigure --sysconfdir=/etc/mtools --without-x || die | ||
39 | mmake || die | ||
40 | } | ||
41 | |||
42 | src_install() | ||
43 | { | ||
44 | cd ${SRCDIR} | ||
45 | mmake DESTDIR=${BINDIR} install || die | ||
46 | |||
47 | # install default config | ||
48 | minstalldir /etc/mtools || die | ||
49 | minstallfile mtools.conf /etc/mtools || die | ||
50 | sed -i '/^SAMPLE FILE$/s:^:#:' ${BINDIR}/etc/mtools/mtools.conf || die | ||
51 | |||
52 | minstalldocs COPYING NEWS README || die | ||
53 | } |