From ea5d04bc533aca0ec9499d078208cec71267d610 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 12 May 2007 21:24:43 +0000 Subject: [PATCH] add stuff for making a .deb package --- debian/changelog | 6 +++ debian/compat | 1 + debian/control | 18 +++++++ debian/copyright | 21 ++++++++ debian/cron.d.ex | 4 ++ debian/dirs | 2 + debian/docs | 1 + debian/menu.ex | 2 + debian/openbox-default.ex | 10 ++++ debian/openbox.doc-base.EX | 22 ++++++++ debian/postinst.ex | 41 ++++++++++++++ debian/postrm.ex | 39 ++++++++++++++ debian/preinst.ex | 37 +++++++++++++ debian/prerm.ex | 40 ++++++++++++++ debian/rules | 107 +++++++++++++++++++++++++++++++++++++ debian/watch.ex | 22 ++++++++ 16 files changed, 373 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/cron.d.ex create mode 100644 debian/dirs create mode 100644 debian/docs create mode 100644 debian/menu.ex create mode 100644 debian/openbox-default.ex create mode 100644 debian/openbox.doc-base.EX create mode 100644 debian/postinst.ex create mode 100644 debian/postrm.ex create mode 100644 debian/preinst.ex create mode 100644 debian/prerm.ex create mode 100755 debian/rules create mode 100644 debian/watch.ex diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 00000000..b2dbe0dd --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +openbox (3.4.0-0) unstable; urgency=low + + * Upstram release packaged for Ubuntu. + + -- Dana Jansens Sat, 12 May 2007 16:17:49 -0400 + diff --git a/debian/compat b/debian/compat new file mode 100644 index 00000000..7ed6ff82 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +5 diff --git a/debian/control b/debian/control new file mode 100644 index 00000000..3eb275ca --- /dev/null +++ b/debian/control @@ -0,0 +1,18 @@ +Source: openbox +Section: x11 +Priority: optional +Maintainer: Dana Jansens +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/ diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 00000000..6c934000 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,21 @@ +Homepage: http://openbox.org/ + +The main upstream author is Dana Jansens . 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 + + These scripts are placed under the BSD license, which may be found in + the file `/usr/share/common-licenses/BSD' on most Debian systems. diff --git a/debian/cron.d.ex b/debian/cron.d.ex new file mode 100644 index 00000000..8d2f8cb5 --- /dev/null +++ b/debian/cron.d.ex @@ -0,0 +1,4 @@ +# +# Regular cron jobs for the openbox package +# +0 4 * * * root openbox_maintenance diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 00000000..ca882bbb --- /dev/null +++ b/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/sbin diff --git a/debian/docs b/debian/docs new file mode 100644 index 00000000..e845566c --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README diff --git a/debian/menu.ex b/debian/menu.ex new file mode 100644 index 00000000..37a88897 --- /dev/null +++ b/debian/menu.ex @@ -0,0 +1,2 @@ +?package(openbox):needs="X11|text|vc|wm" section="Apps/see-menu-manual"\ + title="openbox" command="/usr/bin/openbox" diff --git a/debian/openbox-default.ex b/debian/openbox-default.ex new file mode 100644 index 00000000..7395c1a2 --- /dev/null +++ b/debian/openbox-default.ex @@ -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="" diff --git a/debian/openbox.doc-base.EX b/debian/openbox.doc-base.EX new file mode 100644 index 00000000..e3e0931e --- /dev/null +++ b/debian/openbox.doc-base.EX @@ -0,0 +1,22 @@ +Document: openbox +Title: Debian openbox Manual +Author: +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 + + diff --git a/debian/postinst.ex b/debian/postinst.ex new file mode 100644 index 00000000..1c35c54e --- /dev/null +++ b/debian/postinst.ex @@ -0,0 +1,41 @@ +#!/bin/sh +# postinst script for openbox +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# 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 + + diff --git a/debian/postrm.ex b/debian/postrm.ex new file mode 100644 index 00000000..4a066a51 --- /dev/null +++ b/debian/postrm.ex @@ -0,0 +1,39 @@ +#!/bin/sh +# postrm script for openbox +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' +# +# 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 + + diff --git a/debian/preinst.ex b/debian/preinst.ex new file mode 100644 index 00000000..95364624 --- /dev/null +++ b/debian/preinst.ex @@ -0,0 +1,37 @@ +#!/bin/sh +# preinst script for openbox +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# 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 + + diff --git a/debian/prerm.ex b/debian/prerm.ex new file mode 100644 index 00000000..11877266 --- /dev/null +++ b/debian/prerm.ex @@ -0,0 +1,40 @@ +#!/bin/sh +# prerm script for openbox +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# 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 + + diff --git a/debian/rules b/debian/rules new file mode 100755 index 00000000..f4cf390b --- /dev/null +++ b/debian/rules @@ -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 diff --git a/debian/watch.ex b/debian/watch.ex new file mode 100644 index 00000000..9934d647 --- /dev/null +++ b/debian/watch.ex @@ -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 +# +#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 + +