debian/0000755000000000000000000000000011415176360007172 5ustar debian/watch0000644000000000000000000000006411414701340010212 0ustar version=3 ftp://ftp.gnome.ru/src/vsdump-(.*)\.tbz debian/vsdump.10000644000000000000000000000553411414677620010605 0ustar .\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH VSDUMP 1 "jun 26, 2007" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME vsdump \- VSD/VSS file format reverse engineering .SH SYNOPSIS .B vsdump .RB [SUBOPTIONS] .RB FILE .SH DESCRIPTION This manual page documents briefly the .B vsdump command. .PP .\" TeX users may be more comfortable with the \fB\fP and .\" \fI\fP escape sequences to invode bold face and italics, .\" respectively. \fBvsdump\fP is an ALT Linux (www.altlinux.ru) project of VSD/VSS file format reverse engineering. VSD/VSS is an OLE file. Main data is stored in 'VisioDocument' file inside this OLE. 'VisioDocument' file has a header with version number and pointer to the 1st stream. Pointers contain Type, Offset to the start, Length, and Format of stream. The Format field has a 'compressed' flag (the 2nd least significant bit). .PP Format == 0x4* is used for streams that contains some strings. .br Format == 0x5* is used for streams that contains some pointers. .br Format == 0xd* is used for streams made of chunks. .PP Type == 15 is used for streams that contains 'Page' data. .br Type == 23 is used for streams that contains Icons. .br And so on. .PP To (de)compress some streams Visio uses some version of LZW algorithmwith options different from other MS-Office applications. .PP Those streams are made of chunks. Chunks starts with header that contains Type and Length fields. Most of chunk types has a mandatory fields and some of them has a discretionary fields. The type of chunk imply an order and format of mandatory fields and place of start for discretionary fields (if any). .PP The discrepionary fields made of 'blocks'. Blocks start with length, type fields and index of variable it is linked to. .br Blocks made of 'slices'. Every slice can be single byte operation like "+" or "*" or 'command' to put one/two bytes data or IEEE-754 fraction or stringor name or function into formula. .SH SUBOPTIONS A summary of options is included below. .TP .B help .br list subcommands .TP .B dump [directory] dump pointers and inflated streams .TP .B test test command table .SH AUTHOR vsdump was written by Valek Filippov (frob@df.ru) .PP This manual page was written by Juan Angulo Moreno , for the Debian project (but may be used by others). debian/rules0000755000000000000000000000317511415174125010255 0ustar #!/usr/bin/make -f # -*- makefile -*- #export DH_VERBOSE=1 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) CFLAGS = -Wall -g LDFLAGS = -Wl,--as-needed ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif config.status: configure dh_testdir cp -f /usr/share/misc/config.sub config.sub cp -f /usr/share/misc/config.guess config.guess ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" patch: patch-stamp patch-stamp: dpatch apply-all unpatch: dpatch deapply-all rm -rf patch-stamp debian/patched build: patch build-stamp build-stamp: config.status dh_testdir $(MAKE) touch $@ clean: clean-patched unpatch clean-patched: dh_testdir dh_testroot rm -f build-stamp -[ ! -f Makefile ] || $(MAKE) distclean rm -f config.sub rm -f config.guess rm -f config.log rm -f config.status dh_clean install: build dh_testdir dh_testroot dh_clean -k dh_installdirs $(MAKE) DESTDIR=$(CURDIR)/debian/vsdump install install -m 0644 src/chunks_parse_cmds.tbl \ $(CURDIR)/debian/vsdump/usr/share/vsdump binary-indep: build install binary-arch: build install dh_testdir dh_testroot dh_installchangelogs ChangeLog dh_installdocs dh_installman debian/vsdump.1 dh_link dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install debian/compat0000644000000000000000000000000211414677620010374 0ustar 6 debian/docs0000644000000000000000000000003011414677620010042 0ustar NEWS README TODO docs/* debian/copyright0000644000000000000000000000232111414677620011127 0ustar This package was debianized by Juan Angulo Moreno on Mon, 25 Jun 2007 20:20:11 -0400. It was downloaded from ftp://ftp.gnome.ru/vsdump/ Upstream Author: Valek Filippov Copyright: Copyright (C) 2007 Valek Filippov License: This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-3'. The Debian packaging is (C) 2007, Juan Angulo Moreno and is licensed under the GPL, see above.debian/control0000644000000000000000000000072711414704705010602 0ustar Source: vsdump Section: utils Priority: extra Maintainer: Juan Angulo Moreno Build-Depends: debhelper (>= 6), autotools-dev, pkg-config, libgsf-1-common, libglib2.0-0, libgsf-1-114, libgsf-1-dev, dpatch Standards-Version: 3.9.0 Package: vsdump Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Convert Microsoft Visio diagrams .vsd, .vss The VSdump utility converts Microsoft Visio 2000, 2002 and 2003 diagrams to XML. . debian/dirs0000644000000000000000000000003111414677620010054 0ustar usr/bin usr/share/vsdump debian/patches/0000755000000000000000000000000011414677620010625 5ustar debian/patches/00list0000644000000000000000000000004511414677620011662 0ustar 01_fix_path_chunks-parse-cmds.dpatch debian/patches/01_fix_path_chunks-parse-cmds.dpatch0000755000000000000000000000134011414677620017524 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 01_fix_path_chunks-parse-cmds.dpatch by Juan Angulo Moreno ## ## DP: Change path .tbl commands @DPATCH@ diff -urNad vsdump-0.0.44~/src/vsd_parse_cmds.c vsdump-0.0.44/src/vsd_parse_cmds.c --- vsdump-0.0.44~/src/vsd_parse_cmds.c 2007-07-09 23:53:19.000000000 -0400 +++ vsdump-0.0.44/src/vsd_parse_cmds.c 2008-05-03 06:43:40.000000000 -0430 @@ -52,7 +52,7 @@ s = (char *) malloc (n + 1); vaep=&vae; vaetbls = g_hash_table_new(g_direct_hash,g_direct_equal); - if(NULL==(ftbl = fopen("chunks_parse_cmds.tbl", "r"))){ + if(NULL==(ftbl = fopen("/usr/share/vsdump/chunks_parse_cmds.tbl", "r"))){ g_printf("The command table file can't be opened!\n"); return NULL; } debian/source/0000755000000000000000000000000011414702740010466 5ustar debian/source/format0000644000000000000000000000001411414702740011674 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000274711415176352011057 0ustar vsdump (0.0.45-1) unstable; urgency=low * New upstream release. * Fixed debian/watch. (Closes: #460001) * Bumped Standards-Version to 3.9.0. * Switch to dpkg-source 3.0 (quilt) format. * Added debian/control: ${misc:Depends}. * Added debian/source.lintian-overrides for more-than-one-patch-system (Reference: #585657). -- Juan Angulo Moreno Tue, 06 Jul 2010 14:56:51 -0430 vsdump (0.0.44-2) unstable; urgency=low * Bashism fixed. (Closes: #478636) * Update Debhelper 6. * Fixed: missing command table is useless. (Closes: #478604) -- Juan Angulo Moreno Sat, 03 May 2008 06:17:03 -0430 vsdump (0.0.44-1) unstable; urgency=low * New upstream release. * Fixed debian/watch. -- Juan Angulo Moreno Wed, 09 Jan 2008 22:24:59 -0430 vsdump (0.0.41-1) unstable; urgency=low * New upstream release. * Added debian/watch. * Upgrade Standards-Version to 3.7.3 * Added debian/rules: -Wl,--as-needed in the LDFLAGS. * Upgrade debian/copyright (format). -- Juan Angulo Moreno Tue, 25 Dec 2007 22:17:24 -0430 vsdump (0.0.40-1) unstable; urgency=low * New upstream release. * [debian/control] Update description. Thanks to Trent Buck (Closes: #435664) -- Juan Angulo Moreno Fri, 03 Aug 2007 11:00:06 -0400 vsdump (0.0.39-1) unstable; urgency=low * Initial release (Closes: #430592) -- Juan Angulo Moreno Mon, 25 Jun 2007 20:20:11 -0400 debian/source.lintian-overrides0000644000000000000000000000003411415176242014046 0ustar more-than-one-patch-system