Added debian/ dir to build packages.
authorMaximilian Wilhelm <max@rfc2324.org>
Mon, 6 Apr 2009 23:41:31 +0000 (01:41 +0200)
committerMaximilian Wilhelm <max@rfc2324.org>
Mon, 6 Apr 2009 23:41:31 +0000 (01:41 +0200)
Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/rules [new file with mode: 0755]

diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..41c1414
--- /dev/null
@@ -0,0 +1,6 @@
+libvsccommon (0.1-1) unstable; urgency=low
+
+  * Local release
+
+ -- Maximilian Wilhelm <max@rfc2324.org>  Tue, 07 Apr 2009 00:40:37 +0200
+
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..7ed6ff8
--- /dev/null
@@ -0,0 +1 @@
+5
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..c86b625
--- /dev/null
@@ -0,0 +1,43 @@
+Source: libvsccommon
+Priority: optional
+Section: libdevel
+Maintainer: Maximilian Wilhelm <max@rfc2324.org>
+Standards-Version: 3.8.0
+Vcs-Git: git://vsc-master.uni-paderborn.de/data/scm/git/common.git
+Vcs-Browser: http://vsc-master.upb.de/cgi-bin/gitweb.cgi?p=common.git;a=summary
+
+Package: libvsccli
+Section: libs
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: Vsc CLI library
+ This package is part of the Virtual SuperComputer project common library.
+ .
+ It contains the CLI C library.
+
+Package: libvsccli-dev
+Section: libs
+Architecture: any
+Depends: libvsccli, ${misc:Depends}, ${shlibs:Depends}
+Description: Vsc CLI library
+ This package is part of the Virtual SuperComputer project common library.
+ .
+ It contains the header files of the CLI library.
+
+Package: libvscmisc
+Section: libs
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: Vsc CLI library
+ This package is part of the Virtual SuperComputer project common library.
+ .
+ It contains the lib with miscellaneous helper functions.
+
+Package: libvscmisc-dev
+Section: libs
+Architecture: any
+Depends: libvscmisc-dev, ${misc:Depends}, ${shlibs:Depends}
+Description: Vsc CLI library
+ This package is part of the Virtual SuperComputer project common library.
+ .
+ It contains the header files of the lib with miscellaneous helper functions.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..3279d31
--- /dev/null
@@ -0,0 +1,2 @@
+This package was debianized by Maximilian Wilhelm <max@rfc2324.org> on
+Tue, 07 Apr 2009 00:44:30 +0200.
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..a5e5b7a
--- /dev/null
@@ -0,0 +1,75 @@
+#!/usr/bin/make -f
+# -*- mode: makefile; coding: utf-8 -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+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 -fno-strict-aliasing
+endif
+
+build: debian/stamp-build
+debian/stamp-build:
+       dh_testdir
+
+       # Build it
+       $(MAKE) -s
+
+       touch $@
+
+clean:
+       dh_testdir
+       dh_testroot
+       rm -f debian/stamp-*
+
+       $(MAKE) clean
+
+       dh_clean
+
+install: debian/stamp-install
+debian/stamp-install: debian/stamp-build
+       dh_testdir
+       dh_testroot
+       dh_clean -k
+       dh_installdirs
+
+       $(MAKE) PREFIX=`pwd`/debian/tmp install
+
+       mkdir -p $(CURDIR)/debian/libvscmisc/usr/lib
+       cp      $(CURDIR)/debian/tmp/lib/libvscmisc.so $(CURDIR)/debian/libvscmisc/usr/lib
+
+       mkdir -p $(CURDIR)/debian/libvscmisc-dev/usr/include
+       cp -a   $(CURDIR)/debian/tmp/include/libvscmisc $(CURDIR)/debian/libvscmisc-dev/usr/include
+
+       mkdir -p $(CURDIR)/debian/libvsccli/usr/lib
+       cp      $(CURDIR)/debian/tmp/lib/libvsccli.so $(CURDIR)/debian/libvsccli/usr/lib
+
+       mkdir -p $(CURDIR)/debian/libvsccli-dev/usr/include
+       cp -a   $(CURDIR)/debian/tmp/include/libvsccli $(CURDIR)/debian/libvsccli-dev/usr/include
+
+       touch $@
+
+binary: build install
+       dh_testdir -a
+       dh_testroot -a
+       dh_installdocs
+       dh_installchangelogs
+       dh_install -a
+       dh_link -a
+       dh_compress -a
+       dh_fixperms -a
+       dh_makeshlibs
+       dh_installdeb -a
+       dh_shlibdeps -a
+       dh_gencontrol -a
+       dh_md5sums -a
+       dh_builddeb -a
+
+.PHONY: build clean binary install