From 6b136bb539e2019d4fca30f3a22fbc18f730facb Mon Sep 17 00:00:00 2001 From: Catalin Marinas Date: Fri, 20 Oct 2006 21:48:32 +0100 Subject: [PATCH] Add Debian package support to StGIT Signed-off-by: Catalin Marinas --- debian/changelog | 0 debian/compat | 1 + debian/control | 19 +++++++++++ debian/copyright | 22 +++++++++++++ debian/dirs | 1 + debian/docs | 2 ++ debian/rules | 97 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ setup.cfg | 2 +- 8 files changed, 143 insertions(+), 1 deletion(-) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/dirs create mode 100644 debian/docs create mode 100755 debian/rules diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..e69de29 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +4 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..b84fc19 --- /dev/null +++ b/debian/control @@ -0,0 +1,19 @@ +Source: stgit +Section: devel +Priority: optional +Maintainer: Catalin Marinas +Build-Depends: debhelper (>= 4.0.0), python-dev +Standards-Version: 3.6.2 + +Package: stgit +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, git-core +Description: provide Quilt functionality on top of GIT + StGIT (Stacked GIT) provides similar functionality to Quilt + (i.e. pushing/popping patches to/from a stack) on top of GIT. + . + These operations are performed using GIT commands and the patches are + stored as GIT commit objects, allowing easy merging of the StGIT + patches into other repositories using standard GIT functionality. + . + Homepage: http://www.procode.org/stgit/ diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..345789d --- /dev/null +++ b/debian/copyright @@ -0,0 +1,22 @@ +This package was downloaded from http://www.procode.org/stgit/ + +Copyright Holder: Cataling Marinas + and various contributors + +License: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License version 2 as + published by the Free Software Foundation. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 0000000..e772481 --- /dev/null +++ b/debian/dirs @@ -0,0 +1 @@ +usr/bin diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..724e084 --- /dev/null +++ b/debian/docs @@ -0,0 +1,2 @@ +README +TODO diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..74ab6f1 --- /dev/null +++ b/debian/rules @@ -0,0 +1,97 @@ +#!/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 + + + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + #docbook-to-man debian/stgit.sgml > stgit.1 + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/stgit. + $(MAKE) DESTDIR=$(CURDIR)/debian/stgit PREFIX=/usr 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_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 + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure diff --git a/setup.cfg b/setup.cfg index 4359033..1eb8e9b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,2 +1,2 @@ [install] -prefix: ~ +prefix: /usr -- 2.11.0