Commit a6b50496 authored by Ruben Undheim's avatar Ruben Undheim Committed by Thorsten Alteholz

Import Debian changes 1.10-1

libsmpp34 (1.10-1) unstable; urgency=low

  * Initial release (Closes: #813295)
parent 2d1fa856
libsmpp34 (1.10-1) unstable; urgency=low
* Initial release (Closes: #813295)
-- Ruben Undheim <ruben.undheim@gmail.com> Fri, 05 Feb 2016 12:45:23 +0100
Source: libsmpp34
Maintainer: Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Uploaders: Ruben Undheim <ruben.undheim@gmail.com>
Section: libs
Priority: optional
Build-Depends: debhelper (>= 9),
dh-autoreconf,
libxml2-dev
Standards-Version: 3.9.6
Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/libsmpp34.git
Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/libsmpp34.git
Homepage: http://c-open-smpp-34.sourceforge.net/
Package: libsmpp34-0
Architecture: any
Multi-Arch: same
Depends: ${shlibs:Depends},
${misc:Depends}
Pre-Depends: ${misc:Pre-Depends}
Description: Open PDU SMPP packaging and unpackaging tool
This library is an implementation for providing the PDU handling of the
SMPP-3.4 protocol. SMPP (Short Message Peer-to-Peer) is an open industry
standard protocol designed to provide a flexible data communication
interface for the transfer of short message data between External Short
Messaging Entities, Routing Entitites and Message Centres.
Package: libsmpp34-dev
Architecture: any
Multi-Arch: same
Section: libdevel
Depends: libsmpp34-0 (= ${binary:Version}),
${misc:Depends}
Description: Development files for libsmpp34
This library is an implementation for providing the PDU handling of the
SMPP-3.4 protocol. SMPP (Short Message Peer-to-Peer) is an open industry
standard protocol designed to provide a flexible data communication
interface for the transfer of short message data between External Short
Messaging Entities, Routing Entitites and Message Centres.
.
This package contains the development files for the library.
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: libsmpp34
Source: http://c-open-smpp-34.sourceforge.net/
Files: *
Copyright: 2006 Raul Tremsal <ultraismo@yahoo.com>
License: LGPL-2.1+
Files: debian/*
Copyright: 2016 Ruben Undheim <ruben.undheim@gmail.com>
License: LGPL-2.1+
License: LGPL-2.1+
This package is free software: you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 2.1 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 Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
.
On Debian systems, the complete text of the GNU Lesser General Public
License version 2.1 can be found in "/usr/share/common-licenses/LGPL-2.1".
[DEFAULT]
pristine-tar = True
usr/lib/*/lib*.so.*
libsmpp34.so.0 libsmpp34-0 #MINVER#
build_dad@Base 1.10
build_tlv@Base 1.10
build_udad@Base 1.10
destroy_dad@Base 1.10
destroy_tlv@Base 1.10
destroy_udad@Base 1.10
nothing@Base 1.10
ptrerror@Base 1.10
smpp34_dumpBuf@Base 1.10
smpp34_dumpPdu2@Base 1.10
smpp34_dumpPdu@Base 1.10
smpp34_errno@Base 1.10
smpp34_pack2@Base 1.10
smpp34_pack@Base 1.10
smpp34_strerror@Base 1.10
smpp34_unpack2@Base 1.10
smpp34_unpack@Base 1.10
str_addr_npi@Base 1.10
str_addr_ton@Base 1.10
str_command_id@Base 1.10
str_command_status@Base 1.10
str_tlv_id@Base 1.10
test_dest_flag@Base 1.10
test_interface_version@Base 1.10
test_sequence_number@Base 1.10
valueDec_08@Base 1.10
valueDec_16@Base 1.10
valueDec_32@Base 1.10
usr/include/*
usr/lib/*/lib*.so
usr/lib/*/pkgconfig/*
prefix=$PREFIX
exec_prefix=${prefix}/bin
libdir=$LIBDIR
includedir=${prefix}/include/libsmpp34
Name: libsmpp34
Description: Open PDU SMPP packaging and unpackaging tool
Version: $VERSION
Requires:
Libs: -lsmpp34
Cflags: -I${includedir}
Description: Just fixing a typo in some text output to prevent a lintian.
Author: Ruben Undheim <ruben.undheim@gmail.com>
--- libsmpp34-1.10.orig/src/smpp34_dumpPdu.c
+++ libsmpp34-1.10/src/smpp34_dumpPdu.c
@@ -70,7 +70,7 @@ smpp34_dumpPdu(uint32_t type, uint8_t *d
#par,inst par,dummy_b);\
if( lenval >= left ){\
PUTLOG("[%s:%08X(%s)]", par, inst par,\
- "Value lenght exceed buffer lenght");\
+ "Value length exceed buffer length");\
return( -1 );\
};\
snprintf((char*)dest, left, "%s", l_dest);\
@@ -88,7 +88,7 @@ smpp34_dumpPdu(uint32_t type, uint8_t *d
"%-30s[%04X] [%s]\n",#par,inst par,dummy_b);\
if( lenval >= left ){\
PUTLOG("[%s:%04X(%s)]", par, inst par,\
- "Value lenght exceed buffer lenght");\
+ "Value length exceed buffer length");\
return( -1 );\
};\
snprintf((char*)dest, left, "%s", l_dest);\
@@ -106,7 +106,7 @@ smpp34_dumpPdu(uint32_t type, uint8_t *d
#par,inst par, dummy_b);\
if( lenval >= left ){\
PUTLOG("[%s:%02X(%s)]", par, inst par,\
- "Value lenght exceed buffer lenght");\
+ "Value length exceed buffer length");\
return( -1 );\
};\
snprintf((char*)dest, left, "%s", l_dest);\
@@ -118,7 +118,7 @@ smpp34_dumpPdu(uint32_t type, uint8_t *d
#par, inst par);\
if( lenval >= left ){\
PUTLOG("[%s:%s(%s)]", par, inst par, \
- "Value lenght exceed buffer lenght");\
+ "Value length exceed buffer length");\
return( -1 );\
};\
PUTLOG("[%s:%s(%s)]", par, inst par, "OK");\
@@ -145,7 +145,7 @@ smpp34_dumpPdu(uint32_t type, uint8_t *d
lenval = *((inst par) - 1);\
if( (lenval + 33) >= left ){\
PUTLOG("[%s:%s(%s)]", par, inst par, \
- "Value lenght exceed buffer lenght");\
+ "Value length exceed buffer length");\
return( -1 );\
};\
PUTLOG("[%s:%s(%s)]", par, "<bin>", "OK");\
@@ -172,7 +172,7 @@ smpp34_dumpPdu(uint32_t type, uint8_t *d
memcpy(&l_lenval, ((inst par) - sizeof(uint16_t)), sizeof(uint16_t));\
if( (l_lenval + 33) >= left ){\
PUTLOG("[%s:%s(%s)]", par, inst par, \
- "Value lenght exceed buffer lenght");\
+ "Value length exceed buffer length");\
return( -1 );\
};\
PUTLOG("[%s:%s(%s)]", par, "<bin>", "OK");\
--- libsmpp34-1.10.orig/src/smpp34_pack.c
+++ libsmpp34-1.10/src/smpp34_pack.c
@@ -65,7 +65,7 @@ smpp34_pack(uint32_t type, uint8_t *ptrB
lenval = sizeof(uint32_t);\
if( lenval >= left ){\
PUTLOG("[%s:%08X(%s)]", par, inst par,\
- "Value lenght exceed buffer lenght");\
+ "Value length exceed buffer length");\
return( -1 );\
};\
_str(inst par,dummy_b);\
@@ -83,7 +83,7 @@ smpp34_pack(uint32_t type, uint8_t *ptrB
lenval = sizeof(uint16_t);\
if( lenval >= left ){\
PUTLOG("[%s:%04X(%s)]", par, inst par,\
- "Value lenght exceed buffer lenght");\
+ "Value length exceed buffer length");\
return( -1 );\
};\
_str(inst par,dummy_b);\
@@ -100,7 +100,7 @@ smpp34_pack(uint32_t type, uint8_t *ptrB
lenval = sizeof(uint8_t);\
if( lenval >= left ){\
PUTLOG("[%s:%02X(%s)]", par, inst par,\
- "Value lenght exceed buffer lenght");\
+ "Value length exceed buffer length");\
return( -1 );\
};\
_str(inst par,dummy_b);\
@@ -125,7 +125,7 @@ smpp34_pack(uint32_t type, uint8_t *ptrB
lenval = strlen((char*)inst par) + 1;\
if( lenval > left ){\
PUTLOG("[len(%s):%d(%s)]", par, lenval, \
- "Value lenght exceed buffer lenght");\
+ "Value length exceed buffer length");\
return( -1 );\
};\
if( lenval > sizeval ){\
@@ -145,7 +145,7 @@ smpp34_pack(uint32_t type, uint8_t *ptrB
lenval = *((inst par) - 1);\
if( lenval >= left ){\
PUTLOG("[leng %s:%d(%s)]", par, lenval,\
- "Value lenght exceed buffer lenght");\
+ "Value length exceed buffer length");\
return( -1 );\
};\
if( lenval >= sizeval ){\
@@ -164,7 +164,7 @@ smpp34_pack(uint32_t type, uint8_t *ptrB
memcpy(&l_lenval, ((inst par) - sizeof(uint16_t)), sizeof(uint16_t));\
if( l_lenval >= left ){\
PUTLOG("[leng %s:%d(%s)]", par, l_lenval,\
- "Value lenght exceed buffer lenght");\
+ "Value length exceed buffer length");\
return( -1 );\
};\
if( l_lenval > sizeval ){\
--- libsmpp34-1.10.orig/src/smpp34_unpack.c
+++ libsmpp34-1.10/src/smpp34_unpack.c
@@ -62,7 +62,7 @@ smpp34_unpack(uint32_t type, void* tt, u
lenval = sizeof( uint32_t );\
if( lenval > left ){\
PUTLOG("[%s:%08X(%s)]", par, inst par,\
- "Value lenght exceed buffer lenght");\
+ "Value length exceed buffer length");\
return( -1 );\
};\
memcpy(&inst par, aux, lenval);\
@@ -80,7 +80,7 @@ smpp34_unpack(uint32_t type, void* tt, u
lenval = sizeof( uint16_t );\
if( lenval > left ){\
PUTLOG("[%s:%04X(%s)]", par, inst par,\
- "Value lenght exceed buffer lenght");\
+ "Value length exceed buffer length");\
return( -1 );\
}\
memcpy(&inst par, aux, lenval);\
@@ -98,7 +98,7 @@ smpp34_unpack(uint32_t type, void* tt, u
lenval = sizeof( uint8_t );\
if( lenval > left ){\
PUTLOG("[%s:%02X(%s)]", par, inst par,\
- "Value lenght exceed buffer lenght");\
+ "Value length exceed buffer length");\
return( -1 );\
};\
memcpy(&inst par, aux, lenval);\
@@ -131,7 +131,7 @@ smpp34_unpack(uint32_t type, void* tt, u
lenval = strlen( (char*) aux ) + 1;\
if( lenval > left ){\
PUTLOG("[len(%s):%d(%s)]", par, lenval, \
- "Value lenght exceed buffer lenght");\
+ "Value length exceed buffer length");\
return( -1 );\
};\
if( lenval > size ){\
@@ -149,7 +149,7 @@ smpp34_unpack(uint32_t type, void* tt, u
lenval = *((inst par) - 1);\
if( lenval > left ){\
PUTLOG("[leng %s:%d(%s)]", par, lenval,\
- "Value lenght exceed buffer lenght");\
+ "Value length exceed buffer length");\
return( -1 );\
};\
if( lenval > size ){\
@@ -167,7 +167,7 @@ smpp34_unpack(uint32_t type, void* tt, u
memcpy(&l_lenval, (inst par - sizeof(uint16_t)), sizeof(uint16_t));\
if( l_lenval > left ){\
PUTLOG("[leng %s:%d(%s)]", par, l_lenval,\
- "Value lenght exceed buffer lenght");\
+ "Value length exceed buffer length");\
return( -1 );\
};\
if( l_lenval > size ){\
--- libsmpp34-1.10.orig/test_apps/recv_and_unpack.inc
+++ libsmpp34-1.10/test_apps/recv_and_unpack.inc
@@ -3,7 +3,7 @@
/* Read from socket (This is a sample, must be more complex) **********/
ret = recv(sock_tcp, local_buffer, 4, MSG_PEEK);
if( ret != 4 ){ printf("Error in recv(PEEK)\n");return( -1 );};
- memcpy(&tempo, local_buffer, sizeof(uint32_t)); /* get lenght PDU */
+ memcpy(&tempo, local_buffer, sizeof(uint32_t)); /* get length PDU */
local_buffer_len = ntohl( tempo );
ret = recv(sock_tcp, local_buffer, local_buffer_len, 0);
if( ret != local_buffer_len ){
fixed_typo.patch
#!/usr/bin/make -f
#export DH_VERBOSE=1
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
PKD = $(abspath $(dir $(MAKEFILE_LIST)))
PKG = $(word 2,$(shell dpkg-parsechangelog -l$(PKD)/changelog | grep ^Source))
VER ?= $(shell dpkg-parsechangelog -l$(PKD)/changelog | perl -ne 'print $$1 if m{^Version:\s+(?:\d+:)?(\d.*)(?:\-\d+.*)};')
%:
dh $@ --with autoreconf
## Note! Workaround for the binary-dir present in the source dir -->
.PHONY: binary
binary:
dh $@
## <--
override_dh_auto_configure:
dh_auto_configure -- --includedir=/usr/include/libsmpp34
cat debian/libsmpp34.pc.in | sed 's/$$VERSION/${VER}/' | sed 's/$$PREFIX/\/usr/' \
| sed 's#$$LIBDIR#/usr/lib/$(DEB_HOST_MULTIARCH)#' > debian/libsmpp34.pc
override_dh_auto_install:
dh_auto_install
install -D -m 644 debian/libsmpp34.pc debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/libsmpp34.pc
override_dh_clean:
dh_clean
rm -f debian/libsmpp34.pc
get-orig-source: $(info I: $(PKG)_$(VER))
@echo "# Downloading..."
uscan --noconf --verbose --rename --destdir=$(CURDIR) --force-download --download-version $(VER) $(PKD)
version=3
http://sf.net/c-open-smpp-34/libsmpp34-(\d.+)\.tar\.gz
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment