From eca5d12b821ad3ab4ce0b6a9ebfeb24f3aa76e1a Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 22 Feb 2009 17:41:30 +0100 Subject: [PATCH] Add debian/ --- Makefile | 5 +++ debian/changelog | 5 +++ debian/compat | 1 + debian/control | 15 +++++++++ debian/copyright | 29 ++++++++++++++++++ debian/rules | 80 ++++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 135 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules diff --git a/Makefile b/Makefile index 06388cb9..af846370 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ UNAME=$(shell uname) DEBUG=1 +INSTALL=install CFLAGS += -std=c99 CFLAGS += -Wall @@ -37,6 +38,10 @@ src/%.o: src/%.c ${HEADERS} all: ${FILES} $(CC) -o i3 ${FILES} $(LDFLAGS) +install: all + $(INSTALL) -d -m 0755 $(DESTDIR)/usr/bin + $(INSTALL) -m 0755 i3 $(DESTDIR)/usr/bin/ + clean: rm -f src/*.o diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 00000000..50543252 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +i3 (1.0-1) unstable; urgency=low + + * First release + + -- Michael Stapelberg Sat, 21 Feb 2009 15:24:04 +0100 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..a491ae4a --- /dev/null +++ b/debian/control @@ -0,0 +1,15 @@ +Source: i3 +Section: utils +Priority: optional +Maintainer: Michael Stapelberg +Build-Depends: debhelper (>= 5), libxcb-wm0-dev (>= 0.3.3), libxcb-aux0-dev (>= 0.3.3) +Standards-Version: 3.8.0 +Homepage: http://i3.zekjur.net/ + +Package: i3 +Architecture: any +Priority: optional +Section: utils +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: an improved dynamic tiling window manager + TODO diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 00000000..588f735e --- /dev/null +++ b/debian/copyright @@ -0,0 +1,29 @@ +This Debian package is based on a tarball downloaded from +http://i3.zekjur.net + +Copyright: (C) 2009 Michael Stapelberg + +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. + +* Neither the name of Michael Stapelberg, wiipdf nor the names of its contributors + may 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 THE COPYRIGHT OWNER 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. diff --git a/debian/rules b/debian/rules new file mode 100755 index 00000000..2186810f --- /dev/null +++ b/debian/rules @@ -0,0 +1,80 @@ +#!/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 + +config.status: configure + dh_testdir + touch $@ + +build: + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build + + # Add here commands to clean up after the build process. + [ ! -f Makefile ] || $(MAKE) distclean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/wiipdf + $(MAKE) DESTDIR=$(CURDIR)/debian/i3/ 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 + 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