Commit 9954da8b by Tobias

added debian specific files

1 parent f269ed47
Information about stegosuite
----------------------------
This package was debianized using the mh_make command
from the maven-debian-helper package.
The build system uses Maven but prevents it from downloading
anything from the Internet, making the build compliant with
the Debian policy.
stegosuite (0.7.3-2) unstable; urgency=medium
* Team upload.
* Switch to compat level 10.
* debian/control: Change Section from Java to Graphics.
Thanks to Axel Beckert for the report. (Closes: #829258)
-- Markus Koschany <apo@debian.org> Fri, 07 Oct 2016 20:30:01 +0200
stegosuite (0.7.3-1) unstable; urgency=medium
* Initial release (Closes: #825238)
-- Tobias Ilte <tobias@stegosuite.org> Sun, 12 Jun 2016 14:40:18 +0200
Source: stegosuite
Section: graphics
Priority: optional
Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
Uploaders:
Tobias Ilte <tobias@stegosuite.org>
Build-Depends:
debhelper (>= 10),
default-jdk,
liblogback-java,
libmaven-compiler-plugin-java,
libmaven-jar-plugin-java,
libslf4j-java,
libswt-gtk-4-java,
maven-debian-helper (>= 1.5)
Standards-Version: 3.9.8
Vcs-Git: https://anonscm.debian.org/pkg-java/stegosuite.git
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-java/stegosuite.git
Homepage: https://dev.stegosuite.org/stegosuite/stegosuite
Package: stegosuite
Architecture: all
Depends:
default-jre | java8-runtime,
libswt-cairo-gtk-4-jni,
libswt-gtk2-4-jni,
${maven:Depends},
${misc:Depends}
Suggests:
${maven:OptionalDepends}
Description: steganography tool to hide information in image files
Stegosuite is a graphical steganography tool to easily hide information in
image files. It allows the embedding of text messages and multiple files of any
type. In addition, the embedded data is encrypted using AES.
Currently supported file types are BMP, GIF and JPG.
Stegosuite is written in Java and utilizes the SWT toolkit for its interface.
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: stegosuite
Source: https://dev.stegosuite.org/stegosuite/stegosuite
Files: *
Copyright: 2016, Stegosuite Developers <devs@stegosuite.org>
License: GPL-3
Comment:
In case of minor parts being adapted from external sources, it is
mentioned in the respective file via comment. They are not copyrightable.
The main license (GPL-3) applies in this case.
Files: debian/*
Copyright: 2016, Tobias Ilte <tobias@stegosuite.org>
License: Apache-2.0
Files: src/main/java/org/stegosuite/image/util/ColorDistance.java
Copyright: 2011, Stanford University
License: BSD-3-clause
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.
.
* The name Stanford University may not be used to endorse or promote products
derived from this software without specific prior written permission.
.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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 STANFORD UNIVERSITY 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: src/main/java/org/stegosuite/image/jpgtemp/james/*
Copyright: 1998, James R. Weeks
1998, BioElectroMech
License: BSD-2-clause-and-independent-JPEG-group
The JpegEncoder and its associated classes are Copyright (c)
1998, James R. Weeks and BioElectroMech. This software is
based in part on the work of the Independent JPEG Group.
.
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, all files included
with the source code, 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.
.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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.
.
Parts of the software are based on work from the Independent JPEG group with
the following license:
.
This software is copyright (C) 1991-1996, Thomas G. Lane.
All Rights Reserved except as specified below.
.
Permission is hereby granted to use, copy, modify, and distribute this
software (or portions thereof) for any purpose, without fee, subject to these
conditions:
(1) If any part of the source code for this software is distributed, then this
README file must be included, with this copyright and no-warranty notice
unaltered; and any additions, deletions, or changes to the original files
must be clearly indicated in accompanying documentation.
(2) If only executable code is distributed, then the accompanying
documentation must state that "this software is based in part on the work of
the Independent JPEG Group".
(3) Permission for use of this software is granted only if the user accepts
full responsibility for any undesirable consequences; the authors accept
NO LIABILITY for damages of any kind.
.
These conditions apply to any software derived from or based on the IJG code,
not just to the unmodified library. If you use our work, you ought to
acknowledge us.
.
Permission is NOT granted for the use of any IJG author's name or company name
in advertising or publicity relating to this software or products derived from
it. This software may be referred to only as "the Independent JPEG Group's
software".
.
We specifically permit and encourage the use of this software as the basis of
commercial products, provided that all warranty or liability claims are
assumed by the product vendor.
Files: src/main/java/org/stegosuite/image/jpgtemp/net/f5/*
Copyright: 1999, Andreas Westfeld
2011, Christoph Gaffga
License: GPL-2+
Files: src/main/java/org/stegosuite/image/jpgtemp/net/f5/ortega/*
Copyright: 1997, Sean Breslin
1997, Antonio Ortega
1997, Krisda Lengwehasatit
License: BSD-2-clause
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.
.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUEN- TIAL 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 POSS- IBILITY OF SUCH DAMAGE.
License: Apache-2.0
On Debian systems, the full text of the Apache-2.0 license
can be found in the file '/usr/share/common-licenses/Apache-2.0'
License: GPL-2+
On Debian systems, the full text of the GPL-2 license
can be found in the file '/usr/share/common-licenses/GPL-2'
License: GPL-3
On Debian systems, the full text of the GPL-3 license
can be found in the file '/usr/share/common-licenses/GPL-3'
.TH stegosuite 1 "12 June 2016" "version 0.7.3" "Stegosuite(1) Man Pages"
.SH NAME
Stegosuite \- Steganography tool to hide information in image files
.SH DESCRIPTION
.PP
Stegosuite is a graphical steganography tool to easily hide information in
image files. It allows the embedding of text messages and multiple files of any
type. In addition, the embedded data is encrypted using AES.
Currently supported file types are BMP, GIF and JPG.
.br
Stegosuite is written in Java and utilizes the SWT toolkit for its interface.
org.apache.maven.plugins maven-assembly-plugin * * * *
org.codehaus.mojo exec-maven-plugin * * * *
org.testng testng * * * *
# Include here properties to pass to Maven during the build.
# For example:
# maven.test.skip=true
maven.test.skip=true
org.stegosuite stegosuite jar s/.*/debian/ * *
adjusted swt dependency and maven-jar-plugin for debian
--- a/pom.xml
+++ b/pom.xml
@@ -75,12 +75,16 @@
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>2.6</version>
- <executions>
- <execution>
- <id>default-jar</id>
- <phase>none</phase>
- </execution>
- </executions>
+ <configuration>
+ <archive>
+ <manifest>
+ <addClasspath>true</addClasspath>
+ <mainClass>org.stegosuite.Stegosuite</mainClass>
+ <classpathLayoutType>custom</classpathLayoutType>
+ <customClasspathLayout>/usr/share/java/$${artifact.artifactId}$${dashClassifier?}.jar</customClasspathLayout>
+ </manifest>
+ </archive>
+ </configuration>
</plugin>
@@ -89,8 +93,8 @@
<dependencies>
<dependency>
- <groupId>${swt.groupId}</groupId>
- <artifactId>${swt.artifactId}</artifactId>
+ <groupId>org.eclipse.swt</groupId>
+ <artifactId>org.eclipse.swt</artifactId>
<version>4.5.2</version>
</dependency>
added gtk2 fallback for certain configurations
--- a/src/deb/data/stegosuite
+++ b/src/deb/data/stegosuite
@@ -10,4 +10,13 @@
STEGOSUITE_CLASSPATH="$STEGOSUITEJAR"
-java -jar $STEGOSUITE_CLASSPATH $@
+gtk3_version=`dpkg -s libgtk-3-0|grep '^Version' | cut -d'.' -f2`
+swt4_version=`dpkg -s libswt-gtk-4-java|grep '^Version' | cut -d'.' -f2`
+
+# Run with GTK2-fallback if swt<=4.5 and gtk>=3.20
+if [ \( "$gtk3_version" -ge 20 \) -a \( "$swt4_version" -le 5 \) ]; then
+ env SWT_GTK3=0 java -jar $STEGOSUITE_CLASSPATH $@
+else
+ java -jar $STEGOSUITE_CLASSPATH $@
+fi
+
fix-runscript-for-debian.patch
fix-pom-for-debian.patch
#!/usr/bin/make -f
%:
dh $@ --buildsystem=maven
get-orig-source:
uscan --download-current-version --force-download --no-symlink
[Desktop Entry]
Name=Stegosuite
Categories=Graphics;2DGraphics;RasterGraphics;
Comment=A steganography tool
Exec=stegosuite %u
Icon=stegosuite
MimeType=image/gif;image/bmp;image/jpeg;
Keywords=steganography;embed;extract;image;hide;stego;
Terminal=false
Type=Application
debian/stegosuite.desktop usr/share/applications/
src/deb/data/stegosuite usr/bin/
src/deb/data/stegosuite.png usr/share/icons/hicolor/256x256/apps
/usr/share/maven-repo/org/stegosuite/stegosuite/debian/stegosuite-debian.jar /usr/share/stegosuite/stegosuite-0.7.3.jar
debian/man/stegosuite.1
# List of POM files for the package
# Format of this file is:
# <path to pom file> [option]*
# where option can be:
# --ignore: ignore this POM and its artifact if any
# --ignore-pom: don't install the POM. To use on POM files that are created
# temporarily for certain artifacts such as Javadoc jars. [mh_install, mh_installpoms]
# --no-parent: remove the <parent> tag from the POM
# --package=<package>: an alternative package to use when installing this POM
# and its artifact
# --has-package-version: to indicate that the original version of the POM is the same as the upstream part
# of the version for the package.
# --keep-elements=<elem1,elem2>: a list of XML elements to keep in the POM
# during a clean operation with mh_cleanpom or mh_installpom
# --artifact=<path>: path to the build artifact associated with this POM,
# it will be installed when using the command mh_install. [mh_install]
# --java-lib: install the jar into /usr/share/java to comply with Debian
# packaging guidelines
# --usj-name=<name>: name to use when installing the library in /usr/share/java
# --usj-version=<version>: version to use when installing the library in /usr/share/java
# --no-usj-versionless: don't install the versionless link in /usr/share/java
# --dest-jar=<path>: the destination for the real jar.
# It will be installed with mh_install. [mh_install]
# --classifier=<classifier>: Optional, the classifier for the jar. Empty by default.
# --site-xml=<location>: Optional, the location for site.xml if it needs to be installed.
# Empty by default. [mh_install]
#
pom.xml --ignore-pom
version=3
opts=filenamemangle=s/.*\.tar\.gz\?ref=v?(\d\S*)/Stegosuite-$1\.tar\.gz/g \
https://dev.stegosuite.org/Stegosuite/Stegosuite/tags .*archive\.tar\.gz\?ref=v?(\d\S*)
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!