From b8a78a6262e60d825334b6c81dd2da24b202e18f Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Sat, 1 Sep 2018 11:57:04 +0200 Subject: Added the first steps to build a Debian package. --- debian/README.Debian | 9 +++++++++ debian/README.source | 9 +++++++++ debian/changelog | 5 +++++ debian/chrysalide-dev.install | 11 +++++++++++ debian/chrysalide-dev.lintian-overrides | 1 + debian/chrysalide.install | 8 ++++++++ debian/chrysalide.lintian-overrides | 1 + debian/compat | 1 + debian/control | 29 +++++++++++++++++++++++++++++ debian/copyright | 28 ++++++++++++++++++++++++++++ debian/docs | 2 ++ debian/rules | 27 +++++++++++++++++++++++++++ debian/source/format | 1 + 13 files changed, 132 insertions(+) create mode 100644 debian/README.Debian create mode 100644 debian/README.source create mode 100644 debian/changelog create mode 100644 debian/chrysalide-dev.install create mode 100644 debian/chrysalide-dev.lintian-overrides create mode 100644 debian/chrysalide.install create mode 100644 debian/chrysalide.lintian-overrides create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/docs create mode 100644 debian/rules create mode 100644 debian/source/format diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..98a7a00 --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,9 @@ +chrysalide for Debian +--------------------- + +TODO : + +- GPL vs OpenSSL. + + -- Cyrille Bagard Mon, 13 Feb 2017 15:40:18 +0100 + diff --git a/debian/README.source b/debian/README.source new file mode 100644 index 0000000..fa5c777 --- /dev/null +++ b/debian/README.source @@ -0,0 +1,9 @@ +chrysalide for Debian +--------------------- + +At first, a distribution tarball has to be built from Chrysalide's source using "make dist". + +Then, the tarball gets extracted, and the debian directory is put on top of the extraction directory. + + -- Cyrille Bagard Mon, 13 Feb 2017 15:40:18 +0100 + diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..e4353ab --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +chrysalide (1309-1) unstable; urgency=low + + * Initial release. + + -- Cyrille Bagard Mon, 13 Feb 2017 15:40:18 +0100 diff --git a/debian/chrysalide-dev.install b/debian/chrysalide-dev.install new file mode 100644 index 0000000..395be86 --- /dev/null +++ b/debian/chrysalide-dev.install @@ -0,0 +1,11 @@ +usr/lib/*/*.a +usr/lib/*/*.so +usr/include/chrysalide/*/*.h +usr/include/chrysalide/*/*/*.h +usr/include/chrysalide/*/*/*/*.h +usr/include/chrysalide-plugins/*/*.h +usr/include/chrysalide-plugins/*/*/*.h +usr/include/chrysalide-plugins/*/*/*/*.h +usr/include/chrysalide-plugins/*/*/*/*/*.h +usr/lib/*/chrysalide/plugins/*.a +usr/lib/*/chrysalide/plugins/*.so diff --git a/debian/chrysalide-dev.lintian-overrides b/debian/chrysalide-dev.lintian-overrides new file mode 100644 index 0000000..b5de7f6 --- /dev/null +++ b/debian/chrysalide-dev.lintian-overrides @@ -0,0 +1 @@ +new-package-should-close-itp-bug diff --git a/debian/chrysalide.install b/debian/chrysalide.install new file mode 100644 index 0000000..ac01e1a --- /dev/null +++ b/debian/chrysalide.install @@ -0,0 +1,8 @@ +usr/bin/chrysalide +usr/lib/*/*.so.* +usr/share/locale +usr/share/man +usr/share/chrysalide/themes +usr/share/chrysalide/pixmaps +usr/share/chrysalide/plugins +usr/lib/*/chrysalide/plugins/*.so.* diff --git a/debian/chrysalide.lintian-overrides b/debian/chrysalide.lintian-overrides new file mode 100644 index 0000000..b5de7f6 --- /dev/null +++ b/debian/chrysalide.lintian-overrides @@ -0,0 +1 @@ +new-package-should-close-itp-bug diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +10 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..37afdfb --- /dev/null +++ b/debian/control @@ -0,0 +1,29 @@ +Source: chrysalide +Section: devel +Priority: optional +Maintainer: Cyrille Bagard +Build-Depends: debhelper (>= 9), autotools-dev, bison, flex, gettext, libtool, git, libgtk-3-dev, libxml2-dev, libpython3-dev, python3-gi, python-gi-dev, libarchive-dev, libsqlite3-dev, libssl-dev +Standards-Version: 3.9.5 +Homepage: http://chrysalide.re/ +Vcs-Git: http://git.0xdeadc0de.fr/chrysalide.git +Vcs-Browser: http://git.0xdeadc0de.fr/cgi-bin/cgit.cgi/chrysalide.git/ + +Package: chrysalide +Architecture: amd64 +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Reverse Engineering Factory focused on embedded systems + Chrysalide is a fast tool collection for binary analysis. It is written using + the GTK+ toolkit and support several file formats and architectures. Python + bindings are also available. + +Package: chrysalide-dev +Architecture: amd64 +Section: devel +Depends: ${misc:Depends} +Description: Reverse Engineering Factory focused on embedded systems - development files + Chrysalide is a fast tool collection for binary analysis. It is written using + the GTK+ toolkit and support several file formats and architectures. Python + bindings are also available. + . + This package contains development files for Chrysalide and its plugins. + It is needed to develop and build other plugins for Chrysalide. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..8a81f59 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,28 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: chrysalide +Source: http://chrysalide.re/ + +Files: * +Copyright: 2008-2018 Cyrille Bagard +License: GPL-3.0+ + +Files: debian/* +Copyright: 2018 Cyrille Bagard +License: GPL-3.0+ + +License: GPL-3.0+ + This program 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 program. If not, see . + . + On Debian systems, the complete text of the GNU General + Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..50bd824 --- /dev/null +++ b/debian/docs @@ -0,0 +1,2 @@ +NEWS +README diff --git a/debian/rules b/debian/rules new file mode 100644 index 0000000..20abc6a --- /dev/null +++ b/debian/rules @@ -0,0 +1,27 @@ +#!/usr/bin/make -f +# See debhelper(7) (uncomment to enable) +# output every command that modifies files on the build system. +DH_VERBOSE = 1 + +# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/* +DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/default.mk + +# see FEATURE AREAS in dpkg-buildflags(1) +#export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +# see ENVIRONMENT in dpkg-buildflags(1) +# package maintainers to append CFLAGS +#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic +# package maintainers to append LDFLAGS +#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + +# main packaging script based on dh7 syntax +%: + dh $@ --with autotools-dev + +# debmake generated override targets +# This is example for Cmake (See http://bugs.debian.org/641051 ) +#override_dh_auto_configure: +# dh_auto_configure -- \ +# -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) -- cgit v0.11.2-87-g4458