add stuff for making a .deb package

This commit is contained in:
Dana Jansens 2007-05-12 21:24:43 +00:00
parent 6017c061eb
commit ea5d04bc53
16 changed files with 373 additions and 0 deletions

6
debian/changelog vendored Normal file
View file

@ -0,0 +1,6 @@
openbox (3.4.0-0) unstable; urgency=low
* Upstram release packaged for Ubuntu.
-- Dana Jansens <danakj@orodu.net> Sat, 12 May 2007 16:17:49 -0400

1
debian/compat vendored Normal file
View file

@ -0,0 +1 @@
5

18
debian/control vendored Normal file
View file

@ -0,0 +1,18 @@
Source: openbox
Section: x11
Priority: optional
Maintainer: Dana Jansens <danakj@orodu.net>
Build-Depends: debhelper (>= 5), autotools-dev, gcc, automake1.9, autoconf, libtool, pkg-config, libpango1.0-dev, libglib2.0-dev, libxml2-dev, libxcursor-dev, libstartup-notification0-dev, xlibs-dev, libxinerama-dev, libxft2-dev
Standards-Version: 3.7.2
Package: openbox
Architecture: i386
Depends: libc6 (>= 2.5), libglib2.0-0, libxcursor, libx11-6, libpango1.0-0, libice6, libsm6, libxext6, libxinerama1, libxml2, libstartup-notification0, libxft2
Recommends: obconf, x-display-manager, x-session-manager, ttf-bitstream-vera
Suggests: menu
Conflicts: menu (<< 2.1.12)
Provides: x-window-manager
Description: stuff
long stuff
.
http://openbox.org/

21
debian/copyright vendored Normal file
View file

@ -0,0 +1,21 @@
Homepage: http://openbox.org/
The main upstream author is Dana Jansens <danakj@orodu.net>. To see
a more complete listing of contributors, look at the AUTHORS file.
Copyright:
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 2, or (at your option) any
later version.
On Debian GNU/Linux systems, the complete text of the GNU General
Public License can be found in `/usr/share/common-licenses/GPL'.
Copyright for the Debian-related build-scripts:
Copyright (C) 2007 Dana Jansens <danakj@orodu.net>
These scripts are placed under the BSD license, which may be found in
the file `/usr/share/common-licenses/BSD' on most Debian systems.

4
debian/cron.d.ex vendored Normal file
View file

@ -0,0 +1,4 @@
#
# Regular cron jobs for the openbox package
#
0 4 * * * root openbox_maintenance

2
debian/dirs vendored Normal file
View file

@ -0,0 +1,2 @@
usr/bin
usr/sbin

1
debian/docs vendored Normal file
View file

@ -0,0 +1 @@
README

2
debian/menu.ex vendored Normal file
View file

@ -0,0 +1,2 @@
?package(openbox):needs="X11|text|vc|wm" section="Apps/see-menu-manual"\
title="openbox" command="/usr/bin/openbox"

10
debian/openbox-default.ex vendored Normal file
View file

@ -0,0 +1,10 @@
# Defaults for openbox initscript
# sourced by /etc/init.d/openbox
# installed at /etc/default/openbox by the maintainer scripts
#
# This is a POSIX shell fragment
#
# Additional options that are passed to the Daemon.
DAEMON_OPTS=""

22
debian/openbox.doc-base.EX vendored Normal file
View file

@ -0,0 +1,22 @@
Document: openbox
Title: Debian openbox Manual
Author: <insert document author here>
Abstract: This manual describes what openbox is
and how it can be used to
manage online manuals on Debian systems.
Section: unknown
Format: debiandoc-sgml
Files: /usr/share/doc/openbox/openbox.sgml.gz
Format: postscript
Files: /usr/share/doc/openbox/openbox.ps.gz
Format: text
Files: /usr/share/doc/openbox/openbox.text.gz
Format: HTML
Index: /usr/share/doc/openbox/html/index.html
Files: /usr/share/doc/openbox/html/*.html

41
debian/postinst.ex vendored Normal file
View file

@ -0,0 +1,41 @@
#!/bin/sh
# postinst script for openbox
#
# 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 http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
case "$1" in
configure)
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0

39
debian/postrm.ex vendored Normal file
View file

@ -0,0 +1,39 @@
#!/bin/sh
# postrm script for openbox
#
# 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 http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
case "$1" in
purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
;;
*)
echo "postrm called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0

37
debian/preinst.ex vendored Normal file
View file

@ -0,0 +1,37 @@
#!/bin/sh
# preinst script for openbox
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <new-preinst> `install'
# * <new-preinst> `install' <old-version>
# * <new-preinst> `upgrade' <old-version>
# * <old-preinst> `abort-upgrade' <new-version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
case "$1" in
install|upgrade)
;;
abort-upgrade)
;;
*)
echo "preinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0

40
debian/prerm.ex vendored Normal file
View file

@ -0,0 +1,40 @@
#!/bin/sh
# prerm script for openbox
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <prerm> `remove'
# * <old-prerm> `upgrade' <new-version>
# * <new-prerm> `failed-upgrade' <old-version>
# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
# * <deconfigured's-prerm> `deconfigure' `in-favour'
# <package-being-installed> <version> `removing'
# <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
case "$1" in
remove|upgrade|deconfigure)
;;
failed-upgrade)
;;
*)
echo "prerm called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0

107
debian/rules vendored Executable file
View file

@ -0,0 +1,107 @@
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# These are used for cross-compiling and for saving the configure script
# from having to guess our platform (since we know it already)
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
CFLAGS = -Wall -g
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
CFLAGS += -O2
endif
config.status: configure
dh_testdir
# Add here commands to configure the package.
./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
build: build-stamp
build-stamp: config.status
dh_testdir
# Add here commands to compile the package.
$(MAKE)
#docbook-to-man debian/openbox.sgml > openbox.1
touch $@
clean:
dh_testdir
dh_testroot
rm -f build-stamp
# Add here commands to clean up after the build process.
-$(MAKE) distclean
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
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Add here commands to install the package into debian/openbox.
$(MAKE) DESTDIR=$(CURDIR)/debian/openbox install
# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
dh_installchangelogs CHANGELOG
dh_installdocs
dh_installexamples
# dh_install
# dh_installmenu
# dh_installdebconf
# dh_installlogrotate
# dh_installemacsen
# dh_installpam
# dh_installmime
# dh_python
# dh_installinit
# dh_installcron
# dh_installinfo
dh_installman
dh_link
dh_strip
dh_compress
dh_fixperms
# dh_perl
# 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

22
debian/watch.ex vendored Normal file
View file

@ -0,0 +1,22 @@
# Example watch control file for uscan
# Rename this file to "watch" and then you can run the "uscan" command
# to check for upstream updates and more.
# See uscan(1) for format
# Compulsory line, this is a version 3 file
version=3
# Uncomment to examine a Webpage
# <Webpage URL> <string match>
#http://www.example.com/downloads.php openbox-(.*)\.tar\.gz
# Uncomment to examine a Webserver directory
#http://www.example.com/pub/openbox-(.*)\.tar\.gz
# Uncommment to examine a FTP server
#ftp://ftp.example.com/pub/openbox-(.*)\.tar\.gz debian uupdate
# Uncomment to find new files on sourceforge, for debscripts >= 2.9
# http://sf.net/openbox/openbox-(.*)\.tar\.gz