-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PATCH] Initial support for building a debian package (.deb)
It's not any harder to include debian package support than to include a spec file so here is the setup to build the equivalent debian package. Signed-off-by: Eric W. Biederman <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information
Showing
6 changed files
with
121 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
git-core (0.99-0) unstable; urgency=low | ||
|
||
* Initial deb package support | ||
|
||
-- Eric Biederman <[email protected]> Tue, 12 Jul 2005 10:57:51 -0600 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Source: git-core | ||
Section: devel | ||
Priority: optional | ||
Maintainer: Linus Torvalds <[email protected]> | ||
Build-Depends-Indep: libz-dev, libssl-dev, libcurl3-dev, asciidoc > 6.0.3, xmlto, debhelper (>= 4.0.0) | ||
Standards-Version: 3.6.1 | ||
|
||
Package: git-core | ||
Architecture: any | ||
Depends: ${shlibs:Depends}, shellutils, diff, rysnc, rcs | ||
Description: The git content addressable filesystem | ||
GIT comes in two layers. The bottom layer is merely an extremely fast | ||
and flexible filesystem-based database designed to store directory trees | ||
with regard to their history. The top layer is a SCM-like tool which | ||
enables human beings to work with the database in a manner to a degree | ||
similar to other SCM tools (like CVS, BitKeeper or Monotone). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
License: | ||
|
||
GPL v2 (see COPYING for details) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
README | ||
COPYING | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Document: git-core | ||
Title: git-core | ||
Author: | ||
Abstract: This manual describes git | ||
Section: Devel | ||
|
||
Format: HTML | ||
Index: /usr/share/doc/git-core/html/git.html | ||
Files: /usr/share/doc/git-core/html/*.html | ||
|
||
Format: text | ||
Files: /usr/share/doc/git-core/git-core.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
#!/usr/bin/make -f | ||
# -*- makefile -*- | ||
|
||
# Uncomment this to turn on verbose mode. | ||
#export DH_VERBOSE=1 | ||
|
||
CFLAGS = -g -Wall | ||
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) | ||
CFLAGS += -O0 | ||
else | ||
CFLAGS += -O2 | ||
endif | ||
export CFLAGS | ||
|
||
PREFIX := /usr | ||
MANDIR := /usr/share/man/ | ||
|
||
SRC := ./ | ||
DOC := Documentation/ | ||
DESTDIR := $(CURDIR)/debian/tmp | ||
DOC_DESTDIR := $(DESTDIR)/usr/share/doc/git-core/ | ||
MAN_DESTDIR := $(DESTDIR)/$(MANDIR) | ||
|
||
build: build-stamp | ||
build-stamp: | ||
dh_testdir | ||
$(MAKE) all doc | ||
touch debian/build-stamp | ||
|
||
debian-clean: | ||
dh_testdir | ||
dh_testroot | ||
rm -f debian/build-stamp | ||
dh_clean | ||
|
||
clean: debian-clean | ||
$(MAKE) clean | ||
|
||
install: debian/build-stamp | ||
dh_testdir | ||
dh_testroot | ||
dh_clean -k | ||
dh_installdirs | ||
|
||
make dest=$(DESTDIR) prefix=$(PREFIX) mandir=$(MANDIR) install install-doc | ||
|
||
mkdir -p $(DOC_DESTDIR) | ||
find $(DOC) '(' -name '*.txt' -o -name '*.html' ')' -exec install {} $(DOC_DESTDIR) ';' | ||
|
||
dh_install --sourcedir=$(DESTDIR) | ||
|
||
binary: | ||
dh_testdir | ||
dh_testroot | ||
dh_installchangelogs | ||
dh_installdocs | ||
dh_installexamples | ||
# dh_installmenu | ||
# dh_installdebconf | ||
# dh_installlogrotate | ||
# dh_installemacsen | ||
# dh_installpam | ||
# dh_installmime | ||
# dh_installinit | ||
# dh_installcron | ||
# dh_installinfo | ||
dh_installman | ||
dh_link | ||
dh_strip | ||
dh_compress | ||
dh_fixperms | ||
# dh_perl | ||
# dh_python | ||
dh_makeshlibs | ||
dh_installdeb | ||
dh_shlibdeps | ||
dh_gencontrol | ||
dh_md5sums | ||
dh_builddeb | ||
|
||
.PHONY: build clean binary install clean debian-clean |