aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/hfsutils/hfsutils_3.2.6.bb
blob: 75b3297d8e66f3a899529741b204355d1d0a3659 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
DESCRIPTION = "HFS file system utilities"
SECTION = "base"
LICENSE = "GPL"
PR = "r2"

inherit autotools pkgconfig

SRC_URI = "ftp://ftp.mars.org/pub/hfs/hfsutils-3.2.6.tar.gz \
	   file://hfsutils-3.2.6-errno.patch;patch=1 \
	   file://largerthan2gb.patch;patch=1 \
		"

do_configure () {
	oe_runconf --disable-x
}

do_compile () {
	oe_runmake
	cd hfsck; oe_runmake
}

do_install () {
	install -d ${D}/${bindir}
	install -m 755 hfsutil ${D}/${bindir}/hfsutil
	install -m 755 hfsck/hfsck ${D}/${bindir}/hfsck

	for util in hattrib hcd hcopy hdel hdir hformat \
		    his hmkdir hmount hpwd hrename hrmdir \
		    humount hvol; do 
		ln -sf hfsutil ${D}/${bindir}/${util}
	done
}

SRC_URI[md5sum] = "fa572afd6da969e25c1455f728750ec4"
SRC_URI[sha256sum] = "bc9d22d6d252b920ec9cdf18e00b7655a6189b3f34f42e58d5bb152957289840"