[Forensics-changes] [SCM] forensics/libewf branch, debian, updated. upstream/20070512-1-g8270aaa

David Paleino d.paleino at gmail.com
Mon Feb 25 11:50:52 UTC 2008


The following commit has been merged in the debian branch:
commit 8270aaa72020db2cb424934b4a60f60b94370ab7
Author: David Paleino <d.paleino at gmail.com>
Date:   Mon Feb 25 12:49:34 2008 +0100

    Debianization

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..a81fa0c
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+libewf (20070512-1) unstable; urgency=low
+
+  * Initial release (Closes: #467428)
+
+ -- David Paleino <d.paleino at gmail.com>  Mon, 25 Feb 2008 12:26:28 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..1e8b314
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+6
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..9f55558
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,61 @@
+Source: libewf
+Priority: optional
+Maintainer: Debian Forensics <forensics-devel at lists.alioth.debian.org>
+Uploaders: David Paleino <d.paleino at gmail.com>
+Build-Depends: debhelper (>= 6), autotools-dev, quilt,
+ zlib1g-dev, libssl-dev, uuid-dev
+Standards-Version: 3.7.3
+Section: libs
+Homepage: https://www.uitwisselplatform.nl/projects/libewf/
+
+Package: libewf-dev
+Section: libdevel
+Architecture: any
+Depends: libewf1 (= ${binary:Version})
+Description: read and write EWF file format - headers
+ LibEWF is a library which can be used to read and write the Expert Witness
+ Compression Format (EWF) file format, used in Computer Forensics.
+ .
+ This package provides development headers.
+
+Package: libewf1
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: read and write EWF file format - library
+ LibEWF is a library which can be used to read and write the Expert Witness
+ Compression Format (EWF) file format, used in Computer Forensics.
+ .
+ This package provides the main library.
+
+Package: libewf1-dbg
+Section: libs
+Priority: extra
+Architecture: any
+Depends: libewf1 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
+Description: debug symbols for libewf1
+ LibEWF is a library which can be used to read and write the Expert Witness
+ Compression Format (EWF) file format, used in Computer Forensics.
+ .
+ This package provides debugging symbols for libewf1.
+
+Package: ewf-tools
+Section: utils
+Architecture: any
+Depends: libewf1 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
+Description: read and write EWF file format - tools
+ LibEWF is a library which can be used to read and write the Expert Witness
+ Compression Format (EWF) file format, used in Computer Forensics.
+ .
+ This package provides some tools to work with EWF files.
+
+Package: ewf-tools-dbg
+Section: utils
+Priority: extra
+Architecture: any
+Depends: ewf-tools (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
+Description: debug symbols for ewf-tools
+ LibEWF is a library which can be used to read and write the Expert Witness
+ Compression Format (EWF) file format, used in Computer Forensics.
+ .
+ This package provides debugging symbols for ewf-tools.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..390402b
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,62 @@
+Author: Joachim Metz <forensics at hoffmannbv.nl>, Hoffmann Investigations
+Download: https://www.uitwisselplatform.nl/projects/libewf/
+
+Files: debian/*
+Copyright: (C) David Paleino <d.paleino at gmail.com>
+License: BSD-3
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+    notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in the
+    documentation and/or other materials provided with the distribution.
+ 3. Neither the name of Debian nor the names of its contributors may be
+    used to endorse or promote products derived from this software
+    without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ SUCH DAMAGE.
+
+Files: *
+Copyright: (C) 2006-2007, Joachim Metz <forensics at hoffmannbv.nl>
+                          Hoffmann Investigations
+License: BSD-4
+ Redistribution and use in source and binary forms, with or without modification,
+ are permitted provided that the following conditions are met:
+ .
+ - Redistributions of source code must retain the above copyright notice,
+   this list of conditions and the following disclaimer.
+ - Redistributions in binary form must reproduce the above copyright notice,
+   this list of conditions and the following disclaimer in the documentation
+   and/or other materials provided with the distribution.
+ - Neither the name of the creator, related organisations, nor the names of
+   its contributors may be used to endorse or promote products derived from
+   this software without specific prior written permission.
+ - All advertising materials mentioning features or use of this software
+   must acknowledge the contribution by people stated in the acknowledgements.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER, COMPANY AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+
+On Debian systems, the original text of the BSD-3 license can be found in
+`/usr/share/common-licenses/BSD'.
diff --git a/debian/ewf-tools-dbg.dirs b/debian/ewf-tools-dbg.dirs
new file mode 100644
index 0000000..1000da2
--- /dev/null
+++ b/debian/ewf-tools-dbg.dirs
@@ -0,0 +1 @@
+usr/lib/debug/usr/
diff --git a/debian/ewf-tools.dirs b/debian/ewf-tools.dirs
new file mode 100644
index 0000000..1da8fba
--- /dev/null
+++ b/debian/ewf-tools.dirs
@@ -0,0 +1 @@
+usr/share/lintian/overrides
diff --git a/debian/ewf-tools.install b/debian/ewf-tools.install
new file mode 100644
index 0000000..63c303b
--- /dev/null
+++ b/debian/ewf-tools.install
@@ -0,0 +1,2 @@
+usr/bin/
+usr/share/man/man1/
diff --git a/debian/ewf-tools.lintian b/debian/ewf-tools.lintian
new file mode 100644
index 0000000..e344a58
--- /dev/null
+++ b/debian/ewf-tools.lintian
@@ -0,0 +1,4 @@
+ewf-tools: manpage-has-errors-from-man usr/share/man/man1/ewfacquire.1.gz
+ewf-tools: manpage-has-errors-from-man usr/share/man/man1/ewfexport.1.gz
+ewf-tools: manpage-has-errors-from-man usr/share/man/man1/ewfinfo.1.gz
+ewf-tools: manpage-has-errors-from-man usr/share/man/man1/ewfverify.1.gz
diff --git a/debian/libewf-dev.dirs b/debian/libewf-dev.dirs
new file mode 100644
index 0000000..5e12510
--- /dev/null
+++ b/debian/libewf-dev.dirs
@@ -0,0 +1,3 @@
+usr/lib
+usr/include
+usr/share/lintian/overrides
diff --git a/debian/libewf-dev.install b/debian/libewf-dev.install
new file mode 100644
index 0000000..c7d8800
--- /dev/null
+++ b/debian/libewf-dev.install
@@ -0,0 +1,5 @@
+usr/include/*
+usr/lib/lib*.so
+usr/lib/pkgconfig/*
+usr/lib/*.la
+usr/share/man/man3/
diff --git a/debian/libewf-dev.lintian b/debian/libewf-dev.lintian
new file mode 100644
index 0000000..032cfc9
--- /dev/null
+++ b/debian/libewf-dev.lintian
@@ -0,0 +1 @@
+libewf-dev: manpage-has-errors-from-man usr/share/man/man3/libewf.3.gz
diff --git a/debian/libewf1.dirs b/debian/libewf1.dirs
new file mode 100644
index 0000000..6845771
--- /dev/null
+++ b/debian/libewf1.dirs
@@ -0,0 +1 @@
+usr/lib
diff --git a/debian/libewf1.install b/debian/libewf1.install
new file mode 100644
index 0000000..d0dbfd1
--- /dev/null
+++ b/debian/libewf1.install
@@ -0,0 +1 @@
+usr/lib/lib*.so.*
diff --git a/debian/libewf1.postinst b/debian/libewf1.postinst
new file mode 100644
index 0000000..49c3ce8
--- /dev/null
+++ b/debian/libewf1.postinst
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+    configure)
+    	ldconfig
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/debian/libewf1.postrm b/debian/libewf1.postrm
new file mode 100644
index 0000000..6c82372
--- /dev/null
+++ b/debian/libewf1.postrm
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+    purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+    	ldconfig
+    ;;
+
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/debian/libewf1.shlibs b/debian/libewf1.shlibs
new file mode 100644
index 0000000..c5291d2
--- /dev/null
+++ b/debian/libewf1.shlibs
@@ -0,0 +1 @@
+libewf 1 libewf1 (>> 20070512-0), libewf1 (<< 20070512-99)
diff --git a/debian/patches/01-fix_ltmain.sh.patch b/debian/patches/01-fix_ltmain.sh.patch
new file mode 100644
index 0000000..bb58fbc
--- /dev/null
+++ b/debian/patches/01-fix_ltmain.sh.patch
@@ -0,0 +1,33 @@
+This patch makes --as-needed work correctly.
+Please see the patch in #347650 provided by Josselin Mouette <joss at debian.org>.
+
+--- libewf.orig/ltmain.sh
++++ libewf/ltmain.sh
+@@ -1666,6 +1666,11 @@
+ 	arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
+ 	;;
+ 
++      -Wl,--as-needed)
++        deplibs="$deplibs $arg"
++        continue
++        ;;
++
+       -Wl,*)
+ 	args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
+ 	arg=
+@@ -2002,6 +2007,15 @@
+ 	lib=
+ 	found=no
+ 	case $deplib in
++	-Wl,--as-needed)
++          if test "$linkmode,$pass" = "prog,link"; then
++            compile_deplibs="$deplib $compile_deplibs"
++            finalize_deplibs="$deplib $finalize_deplibs"
++          else
++            deplibs="$deplib $deplibs"
++          fi
++          continue
++          ;;
+ 	-mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
+ 	  if test "$linkmode,$pass" = "prog,link"; then
+ 	    compile_deplibs="$deplib $compile_deplibs"
diff --git a/debian/patches/02-fix_manpages.patch b/debian/patches/02-fix_manpages.patch
new file mode 100644
index 0000000..477832c
--- /dev/null
+++ b/debian/patches/02-fix_manpages.patch
@@ -0,0 +1,42 @@
+--- libewf.orig/manuals/libewf.3
++++ libewf/manuals/libewf.3
+@@ -5,7 +5,7 @@
+ .Nm libewf.h
+ .Nd Library to read from and write to the Expert Witness Compression Format (EWF) file format
+ .Sh LIBRARY
+-.Lb libewf
++\fBlibewf\fR
+ .Sh SYNOPSIS
+ .In libewf.h
+ .Ft int8_t
+@@ -270,7 +270,7 @@
+ .Fn libewf_set_notify_values
+ function can be used to direct the warning, verbose and debug output from the library.
+ .Sh RETURN VALUES
+-Most of the functions return NULL or -1 on error, dependent on the return type. For the actual return values refer to libewf.h
++Most of the functions return NULL or \-1 on error, dependent on the return type. For the actual return values refer to libewf.h
+ .Sh ENVIRONMENT
+ None
+ .Sh FILES
+--- libewf.orig/manuals/ewfacquirestream.1
++++ libewf/manuals/ewfacquirestream.1
+@@ -94,7 +94,7 @@
+ None
+ .Sh EXAMPLES
+ .Bd -literal
+-# ewfacquirestream -C 1 -D Floppy -E 1.1 -e 'John D.' -N 'Just a floppy in my system' -m removable -M physical -t floppy </dev/fd0
++# ewfacquirestream \-C 1 \-D Floppy \-E 1.1 \-e 'John D.' \-N 'Just a floppy in my system' \-m removable \-M physical \-t floppy </dev/fd0
+ ewfacquirestream 20070512 (libewf 20070512, zlib 1.2.3, libcrypto 0.9.8, libuuid)
+ 
+ Using the following acquiry parameters:
+--- libewf.orig/manuals/ewfexport.1
++++ libewf/manuals/ewfexport.1
+@@ -54,7 +54,7 @@
+ .Nm ewfexport
+ will ask the information it needs.
+ .Bd -literal
+-# ewfexport -t floppy.raw floppy.E01
++# ewfexport \-t floppy.raw floppy.E01
+ ewfexport 20070512 (libewf 20070512, zlib 1.2.3, libcrypto 0.9.8, libuuid)
+ 
+ Information for export required, please provide the necessary input
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..d43cf7c
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+01-fix_ltmain.sh.patch
+02-fix_manpages.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..d8677a5
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,84 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#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)
+
+include /usr/share/quilt/quilt.make
+
+config.status: patch configure
+	dh_testdir
+	
+	[ ! -f config.sub ] || cp config.sub debian/config.sub.backup
+	[ ! -f config.guess ] || cp config.guess debian/config.guess.backup
+	
+ifneq "$(wildcard /usr/share/misc/config.sub)" ""
+	cp -f /usr/share/misc/config.sub config.sub
+endif
+ifneq "$(wildcard /usr/share/misc/config.guess)" ""
+	cp -f /usr/share/misc/config.guess config.guess
+endif
+	./configure \
+	--host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
+	--prefix=/usr --mandir=\$${prefix}/share/man \
+	--infodir=\$${prefix}/share/info \
+	--disable-static \
+	CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs,--as-needed"
+
+build: build-stamp
+build-stamp: config.status
+	dh_testdir
+	$(MAKE)
+	touch $@
+
+clean: unpatch
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp 
+
+	[ ! -f Makefile ] || $(MAKE) distclean
+
+	dh_clean config.sub config.guess
+	
+	[ ! -f debian/config.sub.backup ] || cp debian/config.sub.backup config.sub 
+	[ ! -f config.sub ] || rm debian/config.sub.backup
+	[ ! -f debian/config.guess.backup ] || cp debian/config.guess.backup config.guess
+	[ ! -f config.guess ] || rm debian/config.guess.backup
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+
+	$(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
+	
+	dh_install --sourcedir=$(CURDIR)/debian/tmp
+	
+	install -m 644 $(CURDIR)/debian/ewf-tools.lintian $(CURDIR)/debian/ewf-tools/usr/share/lintian/overrides/ewf-tools
+	install -m 644 $(CURDIR)/debian/libewf-dev.lintian $(CURDIR)/debian/libewf-dev/usr/share/lintian/overrides/libewf-dev
+
+binary-indep: build install
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs ChangeLog
+	dh_installdocs
+	dh_installman
+	dh_link
+	dh_strip --dbg-package=libewf1-dbg --dbg-package=ewf-tools-dbg
+	mv $(CURDIR)/debian/libewf1-dbg/usr/lib/debug/usr/bin/ $(CURDIR)/debian/ewf-tools-dbg/usr/lib/debug/usr/
+	dh_compress
+	dh_fixperms
+	dh_makeshlibs
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install 
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..d8400ff
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,5 @@
+# NEEDS FIXING.
+version=3
+#https://www.uitwisselplatform.nl/frs/?group_id=53&release_id=262 libewf-(.*)\.tar\.gz
+#https://www.uitwisselplatform.nl/frs/download.php/303/libewf-20070512.tar.gz
+https://www.uitwisselplatform.nl/frs/?group_id=53&release_id=262 download.php/.*/libewf-(.*)\.tar\.gz

-- 
forensics/libewf



More information about the forensics-changes mailing list