svn commit: r365435 - in head/devel: . libsmpp34 libsmpp34/files
John Marino
marino at FreeBSD.org
Wed Aug 20 07:09:50 UTC 2014
Author: marino
Date: Wed Aug 20 07:09:48 2014
New Revision: 365435
URL: http://svnweb.freebsd.org/changeset/ports/365435
QAT: https://qat.redports.org/buildarchive/r365435/
Log:
Add new port devel/libsmpp34
PR: 191880
Submitted by: Nikola Kolev
The main focus of the library is to work in packaging and unpackaging
of data structures. While this implementation uses SMPP-3.4, the aim is
to generate a simple way to implement any proprietary protocol on TCP.
Added:
head/devel/libsmpp34/
head/devel/libsmpp34/Makefile (contents, props changed)
head/devel/libsmpp34/distinfo (contents, props changed)
head/devel/libsmpp34/files/
head/devel/libsmpp34/files/patch-binary-Makefile.in (contents, props changed)
head/devel/libsmpp34/files/patch-src-smpp34_structs.h (contents, props changed)
head/devel/libsmpp34/files/patch-test_apps-tcp.c (contents, props changed)
head/devel/libsmpp34/pkg-descr (contents, props changed)
head/devel/libsmpp34/pkg-plist (contents, props changed)
Modified:
head/devel/Makefile
Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile Wed Aug 20 06:42:05 2014 (r365434)
+++ head/devel/Makefile Wed Aug 20 07:09:48 2014 (r365435)
@@ -1147,6 +1147,7 @@
SUBDIR += libslang2
SUBDIR += libslave
SUBDIR += libsmdev
+ SUBDIR += libsmpp34
SUBDIR += libsmraw
SUBDIR += libsoup
SUBDIR += libsoup-gnome
Added: head/devel/libsmpp34/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/libsmpp34/Makefile Wed Aug 20 07:09:48 2014 (r365435)
@@ -0,0 +1,40 @@
+# $FreeBSD$
+
+PORTNAME= libsmpp34
+PORTVERSION= 1.10
+CATEGORIES= devel
+MASTER_SITES= http://chaosophia.net/downloads/osmocom/${PORTNAME}/ \
+ http://ns1.chaosophia.net/downloads/osmocom/${PORTNAME}/
+
+MAINTAINER= koue at chaosophia.net
+COMMENT= Provide an implementation of SMPP-3.4 protocol for PDUs handling
+
+LICENSE= LGPL21
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+LIB_DEPENDS= libxml2.so:${PORTSDIR}/textproc/libxml2
+
+USES= libtool gmake
+
+USE_AUTOTOOLS= aclocal libtoolize autoconf automake autoheader
+AUTOMAKE_ARGS= --add-missing --copy --force
+INSTALL_TARGET= install-strip
+
+MAKE_JOBS_UNSAFE=yes
+
+post-patch:
+ ${REINPLACE_CMD} -e 's|pkgconfigdir.*|pkgconfigdir = ${PREFIX}/libdata/pkgconfig|g' \
+ ${WRKSRC}/Makefile.am
+ ${REINPLACE_CMD} -e 's|AC_CONFIG_AUX_DIR.*|AC_CONFIG_AUX_DIR([.])|g' \
+ ${WRKSRC}/configure.ac
+ ${REINPLACE_CMD} -e 's|AM_CONFIG_HEADER.*|AM_CONFIG_HEADER([./config.h])|g' \
+ ${WRKSRC}/configure.ac
+ ${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|g' ${WRKSRC}/src/smpp34_dumpBuf.c
+ ${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|g' ${WRKSRC}/src/smpp34_dumpPdu.c
+ ${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|g' ${WRKSRC}/src/smpp34_pack.c
+ ${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|g' ${WRKSRC}/src/smpp34_params.c
+ ${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|g' ${WRKSRC}/src/smpp34_structs.c
+ ${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|g' ${WRKSRC}/src/smpp34_unpack.c
+ ${ECHO_CMD} ${PORTVERSION} > ${WRKSRC}/.tarball-version
+
+.include <bsd.port.mk>
Added: head/devel/libsmpp34/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/libsmpp34/distinfo Wed Aug 20 07:09:48 2014 (r365435)
@@ -0,0 +1,2 @@
+SHA256 (libsmpp34-1.10.tar.gz) = 3c5e1725422f68d094e624525f9fe364b01b4b098738d7428e97f427eb522001
+SIZE (libsmpp34-1.10.tar.gz) = 329232
Added: head/devel/libsmpp34/files/patch-binary-Makefile.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/libsmpp34/files/patch-binary-Makefile.in Wed Aug 20 07:09:48 2014 (r365435)
@@ -0,0 +1,11 @@
+--- binary/Makefile.in.orig 2014-07-14 15:29:16.000000000 +0300
++++ binary/Makefile.in 2014-07-14 15:28:49.000000000 +0300
+@@ -676,6 +676,8 @@ clean-libLTLIBRARIES:
+ done
+ libsmpp34.la: $(libsmpp34_la_OBJECTS) $(libsmpp34_la_DEPENDENCIES)
+ $(libsmpp34_la_LINK) -rpath $(libdir) $(libsmpp34_la_OBJECTS) $(libsmpp34_la_LIBADD) $(LIBS)
++../binary/libsmpp34.la: $(libsmpp34_la_OBJECTS) $(libsmpp34_la_DEPENDENCIES)
++ $(libsmpp34_la_LINK) -rpath $(libdir) $(libsmpp34_la_OBJECTS) $(libsmpp34_la_LIBADD) $(LIBS)
+ install-binPROGRAMS: $(bin_PROGRAMS)
+ @$(NORMAL_INSTALL)
+ test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
Added: head/devel/libsmpp34/files/patch-src-smpp34_structs.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/libsmpp34/files/patch-src-smpp34_structs.h Wed Aug 20 07:09:48 2014 (r365435)
@@ -0,0 +1,11 @@
+--- src/smpp34_structs.h.orig 2014-07-11 16:04:02.000000000 +0300
++++ src/smpp34_structs.h 2014-07-11 16:02:16.000000000 +0300
+@@ -23,6 +23,8 @@
+ #ifndef _STB_H_
+ #define _STB_H_
+
++#include <sys/types.h>
++
+ #define SMALL_BUFF 30
+ /* Identify PDUs ident ********************************************************/
+ #define MAX_TLV_SIZE 1024
Added: head/devel/libsmpp34/files/patch-test_apps-tcp.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/libsmpp34/files/patch-test_apps-tcp.c Wed Aug 20 07:09:48 2014 (r365435)
@@ -0,0 +1,28 @@
+--- test_apps/tcp.c.orig 2014-07-11 16:22:27.000000000 +0300
++++ test_apps/tcp.c 2014-07-11 16:33:16.000000000 +0300
+@@ -33,12 +33,15 @@
+
+ #include "esme.h"
+
++#include <sys/socket.h>
++#include <netinet/in.h>
++
+ int do_tcp_connect( xmlNodePtr p, int *s )
+ {
+ int ret = 0;
+ int n = 1;
+ struct hostent _host;
+-#ifdef __linux__
++#ifdef __FreeBSD__
+ struct hostent *__host_result;
+ #endif
+ struct in_addr addr;
+@@ -61,7 +64,7 @@ int do_tcp_connect( xmlNodePtr p, int *s
+ ret = -1; goto lb_tcp_connect_end;
+ };
+
+-#ifdef __linux__
++#ifdef __FreeBSD__
+ if( gethostbyname_r(h,&_host,ahost,sizeof(ahost),&__host_result,&n) != 0)
+ #else /* solaris */
+ if( gethostbyname_r(h,&_host,ahost,sizeof(ahost),&n) == NULL)
Added: head/devel/libsmpp34/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/libsmpp34/pkg-descr Wed Aug 20 07:09:48 2014 (r365435)
@@ -0,0 +1,5 @@
+The main focus of the library is to work in packaging and unpackaging
+of data structures. While this implementation uses SMPP-3.4, the aim is
+to generate a simple way to implement any proprietary protocol on TCP.
+
+WWW: http://c-open-smpp-34.sourceforge.net/
Added: head/devel/libsmpp34/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/libsmpp34/pkg-plist Wed Aug 20 07:09:48 2014 (r365435)
@@ -0,0 +1,85 @@
+bin/submit_multi_resp_test
+bin/submit_multi_test
+bin/alert_notification_test
+bin/bind_receiver_resp_test
+bin/bind_receiver_test
+bin/bind_transceiver_resp_test
+bin/bind_transceiver_test
+bin/bind_transmitter_resp_test
+bin/bind_transmitter_test
+bin/cancel_sm_resp_test
+bin/cancel_sm_test
+bin/data_sm_resp_test
+bin/data_sm_test
+bin/deliver_sm_resp_test
+bin/deliver_sm_test
+bin/enquire_link_resp_test
+bin/enquire_link_test
+bin/generic_nack_test
+bin/outbind_test
+bin/query_sm_resp_test
+bin/query_sm_test
+bin/replace_sm_resp_test
+bin/replace_sm_test
+bin/submit_sm_resp_test
+bin/submit_sm_test
+bin/unbind_resp_test
+bin/unbind_test
+bin/esme
+bin/analizer
+bin/sendwp
+bin/esme.xml
+bin/sendwp.xml
+include/smpp34.h
+include/smpp34_structs.h
+include/smpp34_params.h
+include/def_frame/alert_notification.frame
+include/def_frame/alert_notification.tlv
+include/def_frame/bind_receiver.frame
+include/def_frame/bind_receiver_resp.frame
+include/def_frame/bind_receiver_resp.tlv
+include/def_frame/bind_transceiver.frame
+include/def_frame/bind_transceiver_resp.frame
+include/def_frame/bind_transceiver_resp.tlv
+include/def_frame/bind_transmitter.frame
+include/def_frame/bind_transmitter_resp.frame
+include/def_frame/bind_transmitter_resp.tlv
+include/def_frame/cancel_sm.frame
+include/def_frame/clean.frame
+include/def_frame/data_sm.frame
+include/def_frame/data_sm_resp.frame
+include/def_frame/data_sm.tlv
+include/def_frame/data_sm_resp.tlv
+include/def_frame/deliver_sm.frame
+include/def_frame/deliver_sm_resp.frame
+include/def_frame/deliver_sm.tlv
+include/def_frame/header.frame
+include/def_frame/outbind.frame
+include/def_frame/query_sm.frame
+include/def_frame/query_sm_resp.frame
+include/def_frame/replace_sm.frame
+include/def_frame/dad.frame
+include/def_frame/submit_multi.dad
+include/def_frame/submit_multi.frame
+include/def_frame/submit_multi.tlv
+include/def_frame/udad.frame
+include/def_frame/submit_multi_resp.udad
+include/def_frame/submit_multi_resp.frame
+include/def_frame/submit_sm.frame
+include/def_frame/submit_sm_resp.frame
+include/def_frame/submit_sm.tlv
+include/def_frame/tlv.frame
+include/def_frame/tlv.operation
+include/def_list/dest_flag.list
+include/def_list/addr_npi.list
+include/def_list/command_id.list
+include/def_list/tlv_id.list
+include/def_list/addr_ton.list
+include/def_list/command_status.list
+include/def_list/smpp34_protocol.def
+lib/libsmpp34.so.0
+lib/libsmpp34.so.0.0.1
+lib/libsmpp34.so
+lib/libsmpp34.a
+ at dirrm include/def_frame
+ at dirrm include/def_list
More information about the svn-ports-all
mailing list