Contents of /branches/R11-stable/core/mtools/mtools-4.0.18-r1.smage2
Parent Directory | Revision Log
Revision 16088 -
(show annotations)
(download)
Thu Jan 24 11:58:39 2013 UTC (11 years, 8 months ago) by niro
File size: 953 byte(s)
Thu Jan 24 11:58:39 2013 UTC (11 years, 8 months ago) by niro
File size: 953 byte(s)
-release branches/R11-stable
1 | # $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 | } |