From ea2727a875ce91cdf3b1e3903ba06a3e5d279f1a Mon Sep 17 00:00:00 2001 From: wellu Date: Wed, 27 Aug 2008 18:37:41 +0000 Subject: [PATCH] Initial debianization. git-svn-id: file:///svnroot/speedometer/trunk@5 df364472-da61-43ef-8a67-511c89aa921b --- Makefile | 4 +++ debian/changelog | 5 +++ debian/compat | 1 + debian/control | 14 ++++++++ debian/rules | 99 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 123 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100755 debian/rules diff --git a/Makefile b/Makefile index 8ea43e4..24838d4 100644 --- a/Makefile +++ b/Makefile @@ -27,3 +27,7 @@ $(OBJECTS): $(SOURCES) clean: rm -f $(OBJECTS) $(TARGET) + +install: + install -D -m 755 speedometer $(DESTDIR)/usr/bin/speedometer + diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..9ed5431 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +speedometer (0.1) unstable; urgency=low + + * Initial Release. + + -- Wellu Mäkinen Wed, 27 Aug 2008 21:16:11 +0300 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..ee85281 --- /dev/null +++ b/debian/control @@ -0,0 +1,14 @@ +Source: speedometer +Section: user/utils +Priority: extra +Maintainer: Wellu Mäkinen +Build-Depends: debhelper (>= 5), liblocation-dev +Standards-Version: 3.7.2 + +Package: speedometer +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Speedometer shows current speed on the screen. + Speedometer shows your current speed in various units + on the device screen. Speed is taken from GPS connection. + diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..1335ffb --- /dev/null +++ b/debian/rules @@ -0,0 +1,99 @@ +#!/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/speedometer.sgml > speedometer.1 + + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + rm -rf debian/speedometer + + # 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/speedometer. + $(MAKE) DESTDIR=$(CURDIR)/debian/speedometer 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 configure -- 1.7.9.5