Skip to content

Commit

Permalink
dmg2img-1.6.5 (untested)
Browse files Browse the repository at this point in the history
  • Loading branch information
fd00 committed May 8, 2015
1 parent 24c3edc commit a1fba6c
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 36 deletions.
32 changes: 18 additions & 14 deletions dmg2img/README
Expand Up @@ -4,35 +4,36 @@ DMG2IMG is an Apple's compressed dmg to standard (hfsplus) image disk file
convert tool.

Runtime requirements:
cygwin-1.7.16-1
cygwin-2.0.1-1
libbz2_1-1.0.6-2
zlib0-1.2.7-1
libopenssl100-1.0.2a-1
zlib0-1.2.8-3

Build requirements:
(besides corresponding -devel packages)
binutils-2.22.51-2
cygport-0.11.0-1
gcc4-core-4.5.3-3
make-3.82.90-1
binutils-2.25-1
cygport-0.18.1-1
gcc-core-4.9.2-3
make-4.1-1

Canonical website:
http://vu1tur.eu.org/tools/

Canonical download:
http://vu1tur.eu.org/tools/dmg2img-1.6.4.tar.gz
http://vu1tur.eu.org/tools/dmg2img-1.6.5.tar.gz

-------------------------------------------

Build instructions:
unpack dmg2img-1.6.4-X-src.tar.bz2
if you use setup to install this src package, it will be
unpacked under /usr/src automatically
cd /usr/src
cygport ./dmg2img-1.6.4-X.cygport all
1. unpack dmg2img-1.6.5-X-src.tar.xz
2. if you use setup to install this src package,
it will be unpacked under /usr/src automatically
% cd /usr/src
% cygport ./dmg2img-1.6.5-X.cygport all

This will create:
/usr/src/dmg2img-1.6.4-X-src.tar.bz2
/usr/src/dmg2img-1.6.4-X.tar.bz2
/usr/src/dmg2img-1.6.5-X-src.tar.xz
/usr/src/dmg2img-1.6.5-X.tar.xz

-------------------------------------------

Expand All @@ -50,6 +51,9 @@ Files included in the binary package:

Port Notes:

----- version 1.6.5-1bl1 -----
Version bump.

----- version 1.6.4-1bl1 -----
Version bump.

Expand Down
17 changes: 0 additions & 17 deletions dmg2img/dmg2img-1.6.4-1bl1.cygport

This file was deleted.

21 changes: 21 additions & 0 deletions dmg2img/dmg2img-1.6.5-1bl1.cygport
@@ -0,0 +1,21 @@
HOMEPAGE="http://vu1tur.eu.org/tools/"
SRC_URI="http://vu1tur.eu.org/tools/${P}.tar.gz"

CATEGORY="Utils"
SUMMARY="Apple's compressed dmg to standard (hfsplus) image disk file convert tool"
DESCRIPTION="DMG2IMG is an Apple's compressed dmg to standard (hfsplus) image disk file
convert tool."

src_compile()
{
cd ${B}
lndirs
cygmake
}

src_install()
{
cd ${B}
dobin *.exe
doman *.1
}
20 changes: 20 additions & 0 deletions dmg2img/dmg2img-1.6.5-1bl1.src.patch
@@ -0,0 +1,20 @@
--- origsrc/dmg2img-1.6.5/Makefile 2010-03-25 04:38:08.000000000 +0900
+++ src/dmg2img-1.6.5/Makefile 2015-05-08 23:20:38.793263300 +0900
@@ -1,5 +1,5 @@
#CC = gcc
-CFLAGS = -O2 -Wall
+CFLAGS = -O3 -Wall
BIN_DIR = ${DESTDIR}/usr/bin

all: dmg2img vfdecrypt
--- origsrc/dmg2img-1.6.5/vfdecrypt.c 2010-03-25 02:52:45.000000000 +0900
+++ src/dmg2img-1.6.5/vfdecrypt.c 2015-05-08 23:21:43.380574700 +0900
@@ -331,8 +331,6 @@ int main(int argc, char *argv[]) {
int hdr_version, c, optError = 0;
char inFile[512], outFile[512], passphrase[512], cmd[640];
int iflag = 0, oflag = 0, pflag = 0, kflag = 0, verbose = 0;
- extern char *optarg;
- extern int optind, optopt;

memset(inFile, 0, 512);
memset(outFile, 0, 512);
5 changes: 0 additions & 5 deletions dmg2img/setup.hint

This file was deleted.

0 comments on commit a1fba6c

Please sign in to comment.