From 1846f66771ab3242fb34b689a773af3dd2e4dee1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20H=C3=A4rdeman?= Date: Sat, 19 May 2007 23:39:26 +0200 Subject: Add debian build scripts for my own convenience --- debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 16 +++++++++++++++ debian/copyright | 20 +++++++++++++++++++ debian/dirs | 2 ++ debian/rules | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 105 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/dirs create mode 100755 debian/rules (limited to 'debian') diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..1a1d288 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +metastore (1) unstable; urgency=low + + * Initial release. + + -- David Härdeman Sat, 19 May 2007 23:20:28 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +5 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..4359087 --- /dev/null +++ b/debian/control @@ -0,0 +1,16 @@ +Source: metastore +Section: misc +Priority: optional +Maintainer: David Härdeman +Build-Depends: debhelper (>= 5.0.0) +Standards-Version: 3.7.2.2 +XS-Vcs-Git: git://git.hardeman.nu/metastore.git +XS-Vcs-Browser: http://git.hardeman.nu/?p=metastore.git;a=summary + +Package: metastore +Section: misc +Architecture: any +Depends: ${shlibs:Depends} +Description: Store and restore metadata + This package contains the metastore tool to store and restore metadata + from a filesystem. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..ecc3020 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,20 @@ +Copyright (c) 2007 David Härdeman + +License: + + 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 of the License, or + (at your option) any later version. + + This program 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 program; 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..98d1583 --- /dev/null +++ b/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/share/man/man1 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..0d3cb37 --- /dev/null +++ b/debian/rules @@ -0,0 +1,61 @@ +#!/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 + touch configure-stamp + +build: build-stamp +build-stamp: configure-stamp + dh_testdir + $(MAKE) + touch build-stamp + +clean: + -$(MAKE) clean + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + $(MAKE) install DESTDIR=$(CURDIR)/debian/metastore + +binary: binary-arch binary-indep + +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-indep: +# Nothing to do + +.PHONY: configure build clean install binary binary-arch binary-indep -- cgit v1.2.1