[nemiver: 2/70] * First rough skeleton



commit d9094a81ad86b9e03b58a26f8378d4618fc2e629
Author: Luca Bruno <luca br uno it>
Date:   Sun Nov 18 15:43:44 2007 +0100

     * First rough skeleton

 debian/changelog          |    6 +++
 debian/control            |   16 ++++++++
 debian/dirs               |    2 +
 debian/docs               |    3 ++
 debian/get-orig-source.sh |   13 +++++++
 debian/menu               |    5 +++
 debian/rules              |   85 +++++++++++++++++++++++++++++++++++++++++++++
 7 files changed, 130 insertions(+), 0 deletions(-)
---
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..28bf2a2
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+nemiver (0.4.0-1) unstable; urgency=low
+
+  * Initial release (Closes: #392988)  
+
+ -- Luca Bruno <luca br uno it>  Sun, 18 Nov 2007 11:59:38 +0100
+
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..8752d70
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,16 @@
+Source: nemiver
+Section: gnome
+Priority: optional
+Vcs-Git: https://git.unstable.it/packages.git/
+Vcs-Browser: https://git.unstable.it/packages.git/?p=packages.git
+Maintainer: Luca Bruno <luca br uno it>
+Uploaders: Andrea Corradi <lash semailer com>
+Build-Depends: debhelper (>= 5), autotools-dev
+Standards-Version: 3.7.2
+Homepage: http://home.gna.org/nemiver/
+
+Package: nemiver
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Standalone graphical debugger for GNOME
+ <insert long description, indented with spaces>
diff --git a/debian/dirs b/debian/dirs
new file mode 100644
index 0000000..ca882bb
--- /dev/null
+++ b/debian/dirs
@@ -0,0 +1,2 @@
+usr/bin
+usr/sbin
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..5502ed8
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,3 @@
+NEWS
+README
+TODO
diff --git a/debian/get-orig-source.sh b/debian/get-orig-source.sh
new file mode 100755
index 0000000..c10fc84
--- /dev/null
+++ b/debian/get-orig-source.sh
@@ -0,0 +1,13 @@
+#! /bin/sh
+
+LOCATION="http://ftp.acc.umu.se/pub/GNOME/sources/nemiver";
+PACKAGE="nemiver"
+VERSION=$(head -n 1 debian/changelog | sed -e 's/^[^(]*(\([^)]*\)-.*).*/\1/')
+MAJOR=$(echo $VERSION | sed -e 's/^\(.*\)\..*/\1/')
+
+echo  "Downloading $LOCATION/$MAJOR/$PACKAGE-$VERSION.tar.gz"
+
+wget -q -O $PACKAGE\_$VERSION.orig.tar.gz \
+	   $LOCATION/$MAJOR/$PACKAGE-$VERSION.tar.gz
+
+echo Upstream archive can be found at $PACKAGE\_$VERSION.orig.tar.gz
diff --git a/debian/menu b/debian/menu
new file mode 100644
index 0000000..348b7d7
--- /dev/null
+++ b/debian/menu
@@ -0,0 +1,5 @@
+?package(nemiver):needs="X11"\
+	section="Applications/see-menu-manual"\
+	title="Nemiver"\
+	command="/usr/bin/nemiver"\
+	longtitle="Graphical debugger"
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..9d1857c
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,85 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+include /usr/share/quilt/quilt.make
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+        CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+
+config.status: patch
+	
+	       dh_testdir
+	       ./configure --host=$(DEB_HOST_GNU_TYPE) \
+	                   --build=$(DEB_BUILD_GNU_TYPE) \
+			   --prefix=/usr \
+			   --mandir=\$${prefix}/share/man \
+			   --infodir=\$${prefix}/share/info \
+			   CFLAGS="$(CFLAGS)" \
+			   LDFLAGS="-Wl,-z,defs"
+
+
+build: build-stamp
+
+build-stamp:  config.status
+	dh_testdir
+	$(MAKE)
+
+	touch $@
+
+clean: unpatch
+
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp 
+	$(MAKE) distclean
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+	$(MAKE) DESTDIR=$(CURDIR)/debian/nemiver install
+
+
+binary-indep: build install
+
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs ChangeLog
+	dh_installdocs
+	dh_installmenu
+	dh_installman
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+
+get-orig-source:
+		 @@dh_testdir
+		 @@chmod a+x debian/get-orig-source.sh
+		 @@debian/get-orig-source.sh
+
+.PHONY: build clean binary-indep binary-arch binary install get-orig-source



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]