{"thread":{"id":"1254","subject":"[PATCH] Initial support for building a debian package (.deb)","startedAt":"2005-07-15T01:26:31Z","lastAt":"2005-07-15T01:26:31Z","messageCount":1,"participants":["Eric W. Biederman"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"6166","messageId":"m1fyugx3js.fsf@ebiederm.dsl.xmission.com","threadId":"1254","inReplyTo":null,"subject":"[PATCH] Initial support for building a debian package (.deb)","fromName":"Eric W. Biederman","fromEmail":"ebiederm@xmission.com","sentAt":"2005-07-15T01:26:31Z","receivedAt":"2005-07-15T01:26:31Z","isPatch":true,"sender":{"key":"ebiederm@xmission.com","avatar":"https://avatars.githubusercontent.com/u/7477136?v=4"},"body":"\nIt's not any harder to include debian package support\nthan to include a spec file so here is the setup\nto build the equivalent debian package.\n\nSigned-off-by: Eric W. Biederman <ebiederm@xmission.com>\n---\n\n debian/changelog         |    5 +++\n debian/control           |   17 ++++++++++\n debian/copyright         |    3 ++\n debian/docs              |    3 ++\n debian/git-core.doc-base |   12 +++++++\n debian/rules             |   81 ++++++++++++++++++++++++++++++++++++++++++++++\n 6 files changed, 121 insertions(+), 0 deletions(-)\n create mode 100644 debian/changelog\n create mode 100644 debian/control\n create mode 100644 debian/copyright\n create mode 100644 debian/docs\n create mode 100644 debian/git-core.doc-base\n create mode 100644 debian/rules\n\na1f78e1ec9e95720b8d349d5095ed66b0137f862\ndiff --git a/debian/changelog b/debian/changelog\nnew file mode 100644\n--- /dev/null\n+++ b/debian/changelog\n@@ -0,0 +1,5 @@\n+git-core (0.99-0) unstable; urgency=low\n+\t\n+  * Initial deb package support\n+\n+ -- Eric Biederman <ebiederm@xmission.com>  Tue, 12 Jul 2005 10:57:51 -0600\ndiff --git a/debian/control b/debian/control\nnew file mode 100644\n--- /dev/null\n+++ b/debian/control\n@@ -0,0 +1,17 @@\n+Source: git-core\n+Section: devel\n+Priority: optional\n+Maintainer: Linus Torvalds <torvalds@osdl.org>\n+Build-Depends-Indep: libz-dev, libssl-dev, libcurl3-dev, asciidoc > 6.0.3, xmlto, debhelper (>= 4.0.0)\n+Standards-Version: 3.6.1\n+\n+Package: git-core\n+Architecture: any\n+Depends: ${shlibs:Depends}, shellutils, diff, rysnc, rcs\n+Description: The git content addressable filesystem\n+ GIT comes in two layers. The bottom layer is merely an extremely fast\n+ and flexible filesystem-based database designed to store directory trees\n+ with regard to their history. The top layer is a SCM-like tool which\n+ enables human beings to work with the database in a manner to a degree\n+ similar to other SCM tools (like CVS, BitKeeper or Monotone).\n+\ndiff --git a/debian/copyright b/debian/copyright\nnew file mode 100644\n--- /dev/null\n+++ b/debian/copyright\n@@ -0,0 +1,3 @@\n+License: \n+\n+GPL v2 (see COPYING for details)\ndiff --git a/debian/docs b/debian/docs\nnew file mode 100644\n--- /dev/null\n+++ b/debian/docs\n@@ -0,0 +1,3 @@\n+README\n+COPYING\n+\ndiff --git a/debian/git-core.doc-base b/debian/git-core.doc-base\nnew file mode 100644\n--- /dev/null\n+++ b/debian/git-core.doc-base\n@@ -0,0 +1,12 @@\n+Document: git-core\n+Title: git-core\n+Author: \n+Abstract: This manual describes git\n+Section: Devel\n+\n+Format: HTML\n+Index: /usr/share/doc/git-core/html/git.html\n+Files: /usr/share/doc/git-core/html/*.html\n+\n+Format: text\n+Files: /usr/share/doc/git-core/git-core.txt\ndiff --git a/debian/rules b/debian/rules\nnew file mode 100644\n--- /dev/null\n+++ b/debian/rules\n@@ -0,0 +1,81 @@\n+#!/usr/bin/make -f\n+# -*- makefile -*-\n+\n+# Uncomment this to turn on verbose mode.\n+#export DH_VERBOSE=1\n+\n+CFLAGS = -g -Wall\n+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))\n+       CFLAGS += -O0\n+else\n+       CFLAGS += -O2\n+endif\n+export CFLAGS\n+\n+PREFIX := /usr\n+MANDIR := /usr/share/man/\n+\n+SRC    := ./\n+DOC    := Documentation/\n+DESTDIR  := $(CURDIR)/debian/tmp\n+DOC_DESTDIR := $(DESTDIR)/usr/share/doc/git-core/\n+MAN_DESTDIR := $(DESTDIR)/$(MANDIR)\n+\n+build: build-stamp\n+build-stamp:\n+\tdh_testdir\n+\t$(MAKE) all doc\n+\ttouch debian/build-stamp\n+\n+debian-clean:\n+\tdh_testdir\n+\tdh_testroot\n+\trm -f debian/build-stamp\n+\tdh_clean\n+\n+clean: debian-clean\n+\t$(MAKE) clean\n+\n+install: debian/build-stamp\n+\tdh_testdir\n+\tdh_testroot\n+\tdh_clean -k \n+\tdh_installdirs \n+\n+\tmake dest=$(DESTDIR) prefix=$(PREFIX) mandir=$(MANDIR) install install-doc\n+\n+\tmkdir -p $(DOC_DESTDIR)\n+\tfind $(DOC) '(' -name '*.txt' -o -name '*.html' ')' -exec install {} $(DOC_DESTDIR) ';'\n+\n+\tdh_install --sourcedir=$(DESTDIR)\n+\n+binary:\n+\tdh_testdir\n+\tdh_testroot\n+\tdh_installchangelogs\n+\tdh_installdocs\n+\tdh_installexamples\n+#\tdh_installmenu\n+#\tdh_installdebconf\t\n+#\tdh_installlogrotate\t\n+#\tdh_installemacsen\n+#\tdh_installpam\n+#\tdh_installmime\n+#\tdh_installinit\n+#\tdh_installcron\n+#\tdh_installinfo\n+\tdh_installman\n+\tdh_link\n+\tdh_strip\n+\tdh_compress \n+\tdh_fixperms\n+#\tdh_perl\n+#\tdh_python\n+\tdh_makeshlibs\n+\tdh_installdeb\n+\tdh_shlibdeps\n+\tdh_gencontrol\n+\tdh_md5sums\n+\tdh_builddeb\n+\n+.PHONY: build clean binary install clean debian-clean\n"}]}