added files for debian packaging

This commit is contained in:
Steffen Vogel 2011-09-01 11:44:27 +02:00
parent 2097ee52f1
commit 578d551cfd
13 changed files with 222 additions and 0 deletions

6
debian/changelog vendored Normal file
View file

@ -0,0 +1,6 @@
libsml (0.1-1~wip) unstable; urgency=low
* Work in Progress of current git commit
* No ITP issue yet available
-- Steffen Vogel <info@steffenvogel.de> Wed, 31 Aug 2011 18:59:39 +0200

1
debian/compat vendored Normal file
View file

@ -0,0 +1 @@
7

26
debian/control vendored Normal file
View file

@ -0,0 +1,26 @@
Source: libsml
Priority: extra
Maintainer: Steffen Vogel <info@steffenvogel.de>
Build-Depends: debhelper (>= 7.0.50~)
Standards-Version: 3.9.1
Section: libs
Homepage: http://www.dai-labor.de
Vcs-Git: git://github.com/dailab/libsml.git
Vcs-Browser: https://github.com/dailab/libsml
Package: libsml-dev
Section: libdevel
Architecture: any
Depends: libsml1 (= ${binary:Version}), ${misc:Depends}, uuid-dev (>= 2.17)
Description: Header files for libSML
Implementation in C of the Smart Messaging Language (SML) protocol
Package: libsml1
Section: libs
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Library for the Smart Message Language
libSML is a library which implements the Smart Messaging Language (SML)
protocol specified by VDE's Forum Netztechnik/Netzbetrieb (FNN).
It can be utilized to communicate to FNN specified Smart Meters
or Smart Meter components (EDL/MUC).

42
debian/copyright vendored Normal file
View file

@ -0,0 +1,42 @@
This work was packaged for Debian by:
Steffen Vogel <info@steffenvogel.de> on Wed, 31 Aug 2011 18:59:39 +0200
It was downloaded from:
https://github.com/dailab/libsml
Upstream Author(s):
Juri Glass,
Mathias Runge,
Nadim El Sayed
Copyright:
Copyright 2011 Juri Glass, Mathias Runge, Nadim El Sayed - DAI-Labor, TU-Berlin
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 3 of the License, or
(at your option) any later version.
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 program. If not, see <http://www.gnu.org/licenses/>.
On Debian systems, the complete text of the GNU General
Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
The Debian packaging is:
Copyright (C) 2011 Steffen Vogel <info@steffenvogel.de>
and is licensed under the GPL version 3, see above.

1
debian/docs vendored Normal file
View file

@ -0,0 +1 @@
README.md

2
debian/libsml-dev.examples vendored Normal file
View file

@ -0,0 +1,2 @@
examples/*.c
examples/Makefile

1
debian/libsml-dev.install vendored Normal file
View file

@ -0,0 +1 @@
sml/include/* /usr/include

1
debian/libsml1.install vendored Normal file
View file

@ -0,0 +1 @@
sml/lib/libsml.* /usr/lib/sml

115
debian/patches/debian-changes-0.1-1 vendored Normal file
View file

@ -0,0 +1,115 @@
Description: Upstream changes introduced in version 0.1-1
This patch has been created by dpkg-source during the package build.
Here's the last changelog entry, hopefully it gives details on why
those changes were made:
.
libsml (0.1-1) unstable; urgency=low
.
* Work in Progress of current git commit
.
The person named in the Author field signed this changelog entry.
Author: Steffen Vogel <info@steffenvogel.de>
---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:
Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: http://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>
--- libsml-0.1.orig/test/Makefile
+++ libsml-0.1/test/Makefile
@@ -1,10 +1,11 @@
UNAME := $(shell uname)
CFLAGS += -I../sml/include/ -Wall
+LIBSML = ../sml/lib/libsml.a
+LIBS = -luuid
+
ifeq ($(UNAME), Linux)
LIBS = -luuid
endif
-LIBSML = ../sml/lib/libsml.a
-
UNITY = \
unity/unity.o \
@@ -30,22 +31,18 @@ test_run: libsml test
@./test
test : $(UNITY) $(OBJS) $(LIBSML)
- $(CC) $(CFLAGS) $(LIBS) $(LIBSML) $^ test_main.c -o test
+ $(CC) $(CFLAGS) $(LIBS) $^ test_main.c -o test
.PHONY: code
libsml :
@$(MAKE) -C ../sml
%.o : %.c
- $(CC) $(CFLAGS) $(LIBS) -c $^ -o $@
+ $(CC) $(CFLAGS) -c $^ -o $@
.PHONY: clean
clean :
@rm -f unity/*.o
@rm -f src/*.o
-
-
-
-
-
+ @rm -f test
--- libsml-0.1.orig/sml/Makefile
+++ libsml-0.1/sml/Makefile
@@ -4,6 +4,10 @@ CFLAGS += -I./include/ -fPIC -g -Wall
# Available Flags:
# _NO_UUID_LIB - compile without uuid lib
+ifeq ($(UNAME), Linux)
+LIBS = -luuid
+endif
+
LIB_DIR=./lib
OBJ_LIB=$(LIB_DIR)/libsml.o
DYN_LIB=$(LIB_DIR)/libsml.so
@@ -45,7 +49,7 @@ libsml: $(ST_LIB) $(OBJ_LIB)
endif
$(DYN_LIB): $(OBJS)
- $(LD) -shared -o $@ $^
+ $(LD) $(LIBS) -shared -o $@ $^
$(OBJ_LIB): $(OBJS)
$(LD) -r -o $@ $^
--- libsml-0.1.orig/examples/Makefile
+++ libsml-0.1/examples/Makefile
@@ -1,17 +1,17 @@
UNAME := $(shell uname)
CFLAGS += -I../sml/include/ -g -Wall
OBJS = sml_server.o
+LIBSML = ../sml/lib/libsml.a
ifeq ($(UNAME), Linux)
-LIBS = -L../sml/lib/ ../sml/lib/libsml.o -luuid
-endif
-ifeq ($(UNAME), Darwin)
-LIBS = -L../sml/lib/ ../sml/lib/libsml.o
+LIBS = -luuid
endif
+sml_server : $(OBJS) $(LIBSML)
+ $(CC) $(CFLAGS) $(OBJS) $(LIBS) $(LIBSML) -o sml_server
-sml_server : $(OBJS)
- $(CC) $(CFLAGS) $(LIBS) -o sml_server $(OBJS)
+%.o : %.c
+ $(CC) $(CFLAGS) -c $^ -o $@
.PHONY: clean
clean:

1
debian/patches/series vendored Normal file
View file

@ -0,0 +1 @@
debian-changes-0.1-1

13
debian/rules vendored Executable file
View file

@ -0,0 +1,13 @@
#!/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
%:
dh $@

1
debian/source/format vendored Normal file
View file

@ -0,0 +1 @@
3.0 (quilt)

12
debian/watch vendored Normal file
View file

@ -0,0 +1,12 @@
# Example watch control file for uscan
# Rename this file to "watch" and then you can run the "uscan" command
# to check for upstream updates and more.
# See uscan(1) for format
# Compulsory line, this is a version 3 file
version=3
# Find new releases on GitHub
# (uses redirector service from Gunnar Wolf:
# http://githubredir.debian.net)
http://githubredir.debian.net/githubredir.cgi?author=dailab&project=libsml (.*).tar.gz