Commit fe7f7663 authored by Devon Kearns's avatar Devon Kearns

Pre-build commit

parent 672dcdd8
ollydbg for Debian
<possible notes regarding this package - if none, delete this file>
-- Devon Kearns <> Tue, 08 Jan 2013 14:25:25 -0700
ollydbg for Debian
<this file describes information about the source package, see Debian policy
manual section 4.14. You WILL either need to modify or delete this file>
ollydbg (1.10-1) unstable; urgency=low
ollydbg (1.10-1kali0) kali; urgency=low
* Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>
* Initial release
-- Devon Kearns <> Tue, 08 Jan 2013 14:25:25 -0700
Source: ollydbg
Section: unknown
Section: utils
Priority: extra
Maintainer: Devon Kearns <>
Build-Depends: debhelper (>= 8.0.0)
Standards-Version: 3.9.3
Homepage: <insert the upstream URL, if relevant>
#Vcs-Git: git://
Vcs-Git: ssh://
Package: ollydbg
Architecture: all
Depends: ${misc:Depends}
Description: <insert up to 60 chars description>
<insert long description, indented with spaces>
Depends: ${misc:Depends}, wine
Description: 32-bit assembler level analysing debugger
OllyDbg is a 32-bit assembler level analysing debugger for
Microsoft Windows. Emphasis on binary code analysis makes
it particularly useful in cases where source is
Upstream-Name: ollydbg
Source: <url://>
Files: *
Copyright: <years> <put author's name and email here>
<years> <likewise for another author>
License: <special license>
<Put the license of the package here indented by 1 space>
<This follows the format of Description: lines in control file>
Copyright: 2000-2004 Oleh Yuschuk <>
License: Other
This License Agreement ("Agreement") accompanies the OllyDbg version 1.10,
OllyDbg Plugin Development Kit version 1.10 and related files ("Software").
By using the Software, you agree to be bound by all of the terms and
conditions of the Agreement.
<Including paragraphs>
The Software is distributed "as is", without warranty of any kind, expressed
or implied, including, but not limited to warranty of fitness for any
particular purpose. In no event will the Author be liable to you for any
special, incidental, indirect, consequential or any other damages caused by
the use, misuse, or the inability to use of the Software, including any lost
profits or lost savings, even if Author has been advised of the possibility
of such damages.
The Software is owned by Oleh Yuschuk ("Author") and is Copyright (c) 2000-
2004 Oleh Yuschuk. To use this Software on a permanent basis or for commercial
purposes, you must register it by filling the supplied registration form and
sending it to the Author. You don't need to register Software if you use it
exclusively with Randall Hyde's High Level Assembly. If you are already a
registered OllyDbg user, you don't need to re-register the Software again.
If the Software is registered to a company or organization, any person within
the company or organization has the right to use it at work. You may install
the registered Software on any number of storage devices, like hard disks,
floppy disks etc. and are allowed to make any number of backup copies of this
You are not allowed to modify, decompile, disassemble or reverse engineer
the Software except and only to the extent that such activity is expressly
permitted by applicable law. You are not allowed to distribute or use any
parts of the Software separately. You may make and distribute copies of this
Software provided that a) the copy contains all files from the original
distribution and these files remain unchanged; b) if you distribute any
other files (for example, plugins) together with the Software, they must be
clearly marked as such and the conditions of their use cannot be more
restrictive than conditions of this Agreement; and c) you collect no fee
(except for transport media, like CD or diskette), even if your distribution
contains additional files.
You are allowed to develop and distribute your own plugins -- Dynamic Link
Libraries that connect to the Software and make use of the functions
implemented in the Software -- free of charge provided that a) your plugins
contain no features that persuade or force user to register them, or limit
functionality of unregistered plugins; b) you allow free distribution of your
plugins on the conditions similar to that of the Software; and c) you collect
no fee (except for transport media, like CD or diskette). If you want to
develop commercial plugin, please contact Author for a special Agreement.
The distribution includes files PSAPI.DLL and DBGHELP.DLL that are the
Microsoft(R) Redistributable files. These files should be installed only in
the directory where the Software resides. You should use supplied PSAPI.DLL
only on Windows NT(R) 4.0. You are not allowed to distribute PSAPI.DLL or
DBGHELP.DLL separately from the Software.
This Agreement covers only the actual version 1.10 of the OllyDbg and
version 1.10 of the OllyDbg Plugin Development Kit. All other versions are
covered by separate License Agreements.
# If you want to use GPL v2 or later for the /debian/* files use
# the following clauses, or change it to suit. Delete these two lines
Files: debian/*
Copyright: 2013 Devon Kearns <>
License: GPL-2+
......@@ -31,8 +79,3 @@ License: GPL-2+
On Debian systems, the complete text of the GNU General
Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
# Please also look if there are files or directories which have a
# different copyright/license attached and list them here.
# Please avoid to pick license terms that are more restrictive than the
# packaged work, as it may make Debian's contributions unacceptable upstream.
#! /bin/sh -e
# /usr/lib/emacsen-common/packages/install/ollydbg
# Written by Jim Van Zandt <>, borrowing heavily
# from the install scripts for gettext by Santiago Vila
# <> and octave by Dirk Eddelbuettel <>.
if [ ${FLAVOR} = emacs ]; then exit 0; fi
echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR}
#FLAVORTEST=`echo $FLAVOR | cut -c-6`
#if [ ${FLAVORTEST} = xemacs ] ; then
# SITEFLAG="-no-site-file"
# SITEFLAG="--no-site-file"
FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile"
# Install-info-altdir does not actually exist.
# Maybe somebody will write it.
if test -x /usr/sbin/install-info-altdir; then
echo install/${PACKAGE}: install Info links for ${FLAVOR}
install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/share/info/${PACKAGE}.info.gz
install -m 755 -d ${ELCDIR}
cd ${ELDIR}
FILES=`echo *.el`
cd ${ELCDIR}
ln -sf ${ELRELDIR}/*.el .
cat << EOF > path.el
(debian-pkg-add-load-path-item ".")
(setq byte-compile-warnings nil)
rm -f path.el
exit 0
#!/bin/sh -e
# /usr/lib/emacsen-common/packages/remove/ollydbg
if [ ${FLAVOR} != emacs ]; then
if test -x /usr/sbin/install-info-altdir; then
echo remove/${PACKAGE}: removing Info links for ${FLAVOR}
install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/share/info/
echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR}
rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE}
;; -*-emacs-lisp-*-
;; Emacs startup file, e.g. /etc/emacs/site-start.d/50ollydbg.el
;; for the Debian ollydbg package
;; Originally contributed by Nils Naumann <>
;; Modified by Dirk Eddelbuettel <>
;; Adapted for dh-make by Jim Van Zandt <>
;; The ollydbg package follows the Debian/GNU Linux 'emacsen' policy and
;; byte-compiles its elisp files for each 'emacs flavor' (emacs19,
;; xemacs19, emacs20, xemacs20...). The compiled code is then
;; installed in a subdirectory of the respective site-lisp directory.
;; We have to add this to the load-path:
(let ((package-dir (concat "/usr/share/"
(symbol-name debian-emacs-flavor)
;; If package-dir does not exist, the ollydbg package must have
;; removed but not purged, and we should skip the setup.
(when (file-directory-p package-dir)
(if (fboundp 'debian-pkg-add-load-path-item)
(debian-pkg-add-load-path-item package-dir)
(setq load-path (cons package-dir load-path)))
(autoload 'ollydbg-mode "ollydbg-mode"
"Major mode for editing ollydbg files." t)
(add-to-list 'auto-mode-alist '("\\.ollydbg$" . ollydbg-mode))))
wine /usr/share/ollydbg/OLLYDBG.EXE "$@"
# Provides: ollydbg
# Required-Start: $network $local_fs
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: <Enter a short description of the software>
# Description: <Enter a long description of the software>
# <...>
# <...>
# Author: Devon Kearns <>
# PATH should only include /usr/* if it runs after the script
DESC=ollydbg # Introduce a short description here
NAME=ollydbg # Introduce the short server's name here
DAEMON=/usr/sbin/ollydbg # Introduce the server's location here
DAEMON_ARGS="" # Arguments to run the daemon with
# Exit if the package is not installed
[ -x $DAEMON ] || exit 0
# Read configuration variable file if it is present
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
# Load the VERBOSE setting and other rcS variables
. /lib/init/
# Define LSB log_* functions.
# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
. /lib/lsb/init-functions
# Function that starts the daemon/service
# Return
# 0 if daemon has been started
# 1 if daemon was already running
# 2 if daemon could not be started
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
|| return 1
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
|| return 2
# Add code here, if necessary, that waits for the process to be ready
# to handle requests from services started subsequently which depend
# on this one. As a last resort, sleep for some time.
# Function that stops the daemon/service
# Return
# 0 if daemon has been stopped
# 1 if daemon was already stopped
# 2 if daemon could not be stopped
# other if a failure occurred
start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME
[ "$RETVAL" = 2 ] && return 2
# Wait for children to finish too if this is a daemon that forks
# and if the daemon is only ever run from this initscript.
# If the above conditions are not satisfied then add some other code
# that waits for the process to drop all resources that could be
# needed by services started subsequently. A last resort is to
# sleep for some time.
start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON
[ "$?" = 2 ] && return 2
# Many daemons don't delete their pidfiles when they exit.
rm -f $PIDFILE
return "$RETVAL"
# Function that sends a SIGHUP to the daemon/service
do_reload() {
# If the daemon can reload its configuration without
# restarting (for example, when it is sent a SIGHUP),
# then implement that here.
start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME
return 0
case "$1" in
[ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC " "$NAME"
case "$?" in
0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
[ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
case "$?" in
0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
# If do_reload() is not implemented then leave this commented out
# and leave 'force-reload' as an alias for 'restart'.
#log_daemon_msg "Reloading $DESC" "$NAME"
#log_end_msg $?
# If the "reload" option is implemented then remove the
# 'force-reload' alias
log_daemon_msg "Restarting $DESC" "$NAME"
case "$?" in
case "$?" in
0) log_end_msg 0 ;;
1) log_end_msg 1 ;; # Old process is still running
*) log_end_msg 1 ;; # Failed to start
# Failed to stop
log_end_msg 1
#echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2
exit 3
.\" Hey, EMACS: -*- nroff -*-
.\" (C) Copyright 2013 Devon Kearns <>,
.\" 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 OLLYDBG SECTION "January 8, 2013"
.\" 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 <n> insert n+1 empty lines
.\" for manpage-specific macros, see man(7)
ollydbg \- program to do something
.B ollydbg
.RI [ options ] " files" ...
.B bar
.RI [ options ] " files" ...
This manual page documents briefly the
.B ollydbg
.B bar
.\" TeX users may be more comfortable with the \fB<whatever>\fP and
.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
.\" respectively.
\fBollydbg\fP is a program that...
These programs follow the usual GNU command line syntax, with long
options starting with two dashes (`-').
A summary of options is included below.
For a complete description, see the Info files.
.B \-h, \-\-help
Show summary of options.
.B \-v, \-\-version
Show version of program.
.BR bar (1),
.BR baz (1).
The programs are documented fully by
.IR "The Rise and Fall of a Fooish Bar" ,
available via the Info system.
<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
<!-- Process this file with docbook-to-man to generate an nroff manual
page: `docbook-to-man manpage.sgml > manpage.1'. You may view
the manual page with: `docbook-to-man manpage.sgml | nroff -man |
less'. A typical entry in a Makefile or is:
manpage.1: manpage.sgml
docbook-to-man $< > $@
The docbook-to-man binary is found in the docbook-to-man package.
Please remember that if you create the nroff version in one of the
debian/rules file targets (such as build), you will need to include
docbook-to-man in your Build-Depends control field.
<!-- Fill in your name for FIRSTNAME and SURNAME. -->
<!ENTITY dhfirstname "<firstname>FIRSTNAME</firstname>">
<!ENTITY dhsurname "<surname>SURNAME</surname>">
<!-- Please adjust the date whenever revising the manpage. -->
<!ENTITY dhdate "<date>January 8, 2013</date>">
<!-- SECTION should be 1-8, maybe w/ subsection other parameters are
allowed: see man(7), man(1). -->
<!ENTITY dhsection "<manvolnum>SECTION</manvolnum>">
<!ENTITY dhemail "<email></email>">
<!ENTITY dhusername "Devon Kearns">
<!ENTITY dhucpackage "<refentrytitle>OLLYDBG</refentrytitle>">
<!ENTITY dhpackage "ollydbg">
<!ENTITY debian "<productname>Debian</productname>">
<!ENTITY gnu "<acronym>GNU</acronym>">
<!ENTITY gpl "&gnu; <acronym>GPL</acronym>">
<refpurpose>program to do something</refpurpose>
<arg><option>-e <replaceable>this</replaceable></option></arg>
<arg><option>--example <replaceable>that</replaceable></option></arg>
<para>This manual page documents briefly the
<command>&dhpackage;</command> and <command>bar</command>
<para>This manual page was written for the &debian; distribution
because the original program does not have a manual page.
Instead, it has documentation in the &gnu;
<application>Info</application> format; see below.</para>
<para><command>&dhpackage;</command> is a program that...</para>
<para>These programs follow the usual &gnu; command line syntax,
with long options starting with two dashes (`-'). A summary of
options is included below. For a complete description, see the
<application>Info</application> files.</para>
<para>Show summary of options.</para>
<para>Show version of program.</para>
<title>SEE ALSO</title>
<para>bar (1), baz (1).</para>
<para>The programs are documented fully by <citetitle>The Rise and
Fall of a Fooish Bar</citetitle> available via the
<application>Info</application> system.</para>
<para>This manual page was written by &dhusername; &dhemail; for
the &debian; system (and may be used by others). Permission is
granted to copy, distribute and/or modify this document under
the terms of the &gnu; General Public License, Version 2 any
later version published by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public
License can be found in /usr/share/common-licenses/GPL.
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
This diff is collapsed.
?package(ollydbg):needs="X11|text|vc|wm" section="Applications/see-menu-manual"\
title="ollydbg" command="/usr/bin/ollydbg"
# Regular cron jobs for the ollydbg package
0 4 * * * root [ -x /usr/bin/ollydbg_maintenance ] && /usr/bin/ollydbg_maintenance
# Defaults for ollydbg initscript
# sourced by /etc/init.d/ollydbg
# installed at /etc/default/ollydbg by the maintainer scripts
# This is a POSIX shell fragment
# Additional options that are passed to the Daemon.
Document: ollydbg
Title: Debian ollydbg Manual
Author: <insert document author here>
Abstract: This manual describes what ollydbg is
and how it can be used to
manage online manuals on Debian systems.
Section: unknown
Format: debiandoc-sgml
Files: /usr/share/doc/ollydbg/ollydbg.sgml.gz
Format: postscript
Files: /usr/share/doc/ollydbg/
Format: text
Files: /usr/share/doc/ollydbg/ollydbg.text.gz
Format: HTML
Index: /usr/share/doc/ollydbg/html/index.html
Files: /usr/share/doc/ollydbg/html/*.html
helper-script/ollydbg usr/bin/
*.DLL usr/share/ollydbg/
*.dll usr/share/ollydbg/
*.EXE usr/share/ollydbg/
*.HLP usr/share/ollydbg/
*.ini usr/share/ollydbg/
# postinst script for ollydbg
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
# <new-version>
# * <postinst> `abort-remove'
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
# <failed-install-package> <version> `removing'
# <conflicting-package> <version>
# for details, see or
# the debian-policy package
case "$1" in
echo "postinst called with unknown argument \`$1'" >&2
exit 1
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
exit 0
# postrm script for ollydbg
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postrm> `remove'
# * <postrm> `purge'
# * <old-postrm> `upgrade' <new-version>
# * <new-postrm> `failed-upgrade' <old-version>
# * <new-postrm> `abort-install'
# * <new-postrm> `abort-install' <old-version>
# * <new-postrm> `abort-upgrade' <old-version>
# * <disappearer's-postrm> `disappear' <overwriter>
# <overwriter-version>
# for details, see or
# the debian-policy package
case "$1" in
echo "postrm called with unknown argument \`$1'" >&2
exit 1