Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [day] [month] [year] [list]
Date: Sat, 20 Jun 2015 23:28:58 +0300
From: Aleksey Cherepanov <lyosha@...nwall.com>
To: john-dev@...ts.openwall.com
Subject: control and .spec files to package Johnny for Linux

Mathieu,

It looks like I never published final files for Johnny's packaging.

So they are attached to this email:
- copyright
- johnny.spec
- control


Example tree for .deb package:

packaging$ find ./johnny_1.1.3_i386/
./johnny_1.1.3_i386/
./johnny_1.1.3_i386/DEBIAN
./johnny_1.1.3_i386/DEBIAN/control
./johnny_1.1.3_i386/usr
./johnny_1.1.3_i386/usr/bin
./johnny_1.1.3_i386/usr/bin/johnny
./johnny_1.1.3_i386/usr/share
./johnny_1.1.3_i386/usr/share/doc
./johnny_1.1.3_i386/usr/share/doc/johnny
./johnny_1.1.3_i386/usr/share/doc/johnny/copyright

control file contains architecture and size. They are changed across
packages. There is no "sources" .deb unfortunately. .deb were built
from binaries only.


Example command to build .rpm:

rpmbuild -bb packaging/johnny-1.1.2-1.x86_64/johnny-1.1.2-1.spec


johnny.spec file is a hack: it does not build from sources, it just
packages binaries prepared separately. I did it that way because we
wanted to package i686 and x86_64 archs only, I tested binaries
separately from packaging and there was a problem that programs built
with qt 4.8 could not run on qt 4.6 but vice versa worked well (so I
built binaries with qt 4.6 despite the versions provided by rpm-based
distros).

Maybe it is needed to change license from MIT to BSD in johnny.spec.

Thanks!

-- 
Regards,
Aleksey Cherepanov

All files except graphics files in this software are subject to these
license terms:

Copyright (c) 2011 Shinnok <raydenxy at gmail.com>
Copyright  2011,2012 Aleksey Cherepanov <aleksey.4erepanov@...il.com>

Redistribution and use in source and binary forms, with or without
modification, are permitted.

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.

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

This software was written with great help of Frank Dittrich.

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

The license for the graphics files (icons, images, etc..) can be found
in the source tree at "resources/icons/README.icons".

Sources could be found at http://openwall.info/wiki/john/johnny .
Also the license for the graphics files listed here:

#########################
#   Open Icon Library   #
#########################

Originally created:  10 Nov 2009
Icon creators:  see LICENSES file
Archive Creator:    Jeff Israel
License url: http://openiconlibrary.sourceforge.net/LICENSES.html

#########################
# Description
# 
Open Icon Library is an archive of icon files from various sources, 
design to offer a single location for free icons. 


#########################
# Licensing
#
The icons in this package are under various free/open licenses 
such as GPL, Creative Commons, etc.  All sources with 
their respective licenses are documented in the LICENSES file, 
as well as in their metadata. 
License url: http://openiconlibrary.sourceforge.net/LICENSES.html

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

Binaries in this package are linked against Qt library. Qt is
available under LGPL 2.1 with additional exception, GPL 3.0 or
commercial license. See license/copyright file in your Qt package.

On Debian systems, the complete text of the GNU Public Licenses can be found in
 `/usr/share/common-licenses/LGPL-2.1`,
 `/usr/share/common-licenses/GPL-2`
 `/usr/share/common-licenses/GPL-3`.

Also you could visit:
http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
http://www.gnu.org/copyleft/gpl.html

We do not provide you with Qt binaries and we use LGPL exception
listed below.

Nokia Qt LGPL Exception version 1.1

As an additional permission to the GNU Lesser General Public License version
2.1, the object code form of a "work that uses the Library" may incorporate
material from a header file that is part of the Library.  You may distribute
such object code under terms of your choice, provided that:
    (i)   the header files of the Library have not been modified; and 
    (ii)  the incorporated material is limited to numerical parameters, data
          structure layouts, accessors, macros, inline functions and
          templates; and
    (iii) you comply with the terms of Section 6 of the GNU Lesser General
          Public License version 2.1.

Moreover, you may apply this exception to a modified version of the Library,
provided that such modification does not involve copying material from the
Library into the modified Library's header files unless such material is
limited to (i) numerical parameters; (ii) data structure layouts;
(iii) accessors; and (iv) small macros, templates and inline functions of
five lines or less in length.

Furthermore, you are not required to apply this additional permission to a
modified version of the Library.

Name:           johnny
Version:        1.1.3
Release:        1
Summary:        Johnny, the GUI for John the Ripper

License:        MIT
URL:            http://openwall.info/wiki/john/johnny
# TODO: platform independent, i.e. build from sources.
# NOTE: With tabs at the beginning tags do not work.
%ifarch x86_64
Source0:        http://openwall.info/wiki/_media/john/%{name}%{version}.x86_64.tar.gz
%endif
%ifarch %ix86
Source0:        http://openwall.info/wiki/_media/john/%{name}%{version}.x86.tar.gz
%endif
# TODO: We do not really handle sources. Just for reference
#Source1:        http://openwall.info/wiki/_media/john/%{name}%{version}.tar.gz

Group: Applications/System

Requires: john

%description
Johnny is a graphical user interface for John the Ripper.

John the Ripper is a fast password cracker (password security auditing
tool). Its primary purpose is to detect weak Unix passwords, but a
number of other hash types are supported as well.

%prep
%ifarch x86_64
%setup -n %{name}%{version}.x86_64
%endif
%ifarch %ix86
%setup -n %{name}%{version}.x86
%endif

%ifnarch %ix86 x86_64
	echo Not supported arch - %{_arch}. We just repackage binaries.
	exit 1
%endif


%build

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_bindir}/
cp -p johnny %{buildroot}%{_bindir}/

%files
%defattr(-,root,root)
%doc LICENSE
%{_bindir}/johnny

Package: johnny
Version: 1.1.3
Architecture: amd64
Maintainer: Aleksey Cherepanov <aleksey.4erepanov@...il.com>
Depends: libqtgui4 (>= 4.6.0), john
Enhances: john
Section: admin
Priority: optional
Installed-Size: 
Homepage: http://openwall.info/wiki/john/johnny
Description: Johnny, the GUI for John the Ripper
 Johnny is a graphical user interface for John the Ripper.
 .
 John the Ripper is a fast password cracker (password security auditing
 tool). Its primary purpose is to detect weak Unix passwords, but a
 number of other hash types are supported as well.

Powered by blists - more mailing lists

Your e-mail address:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ