mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
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.
This commit is contained in:
parent
dc19c0821a
commit
00bcd43ce3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=365435
@ -1147,6 +1147,7 @@
|
||||
SUBDIR += libslang2
|
||||
SUBDIR += libslave
|
||||
SUBDIR += libsmdev
|
||||
SUBDIR += libsmpp34
|
||||
SUBDIR += libsmraw
|
||||
SUBDIR += libsoup
|
||||
SUBDIR += libsoup-gnome
|
||||
|
40
devel/libsmpp34/Makefile
Normal file
40
devel/libsmpp34/Makefile
Normal file
@ -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@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>
|
2
devel/libsmpp34/distinfo
Normal file
2
devel/libsmpp34/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (libsmpp34-1.10.tar.gz) = 3c5e1725422f68d094e624525f9fe364b01b4b098738d7428e97f427eb522001
|
||||
SIZE (libsmpp34-1.10.tar.gz) = 329232
|
11
devel/libsmpp34/files/patch-binary-Makefile.in
Normal file
11
devel/libsmpp34/files/patch-binary-Makefile.in
Normal file
@ -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)"
|
11
devel/libsmpp34/files/patch-src-smpp34_structs.h
Normal file
11
devel/libsmpp34/files/patch-src-smpp34_structs.h
Normal file
@ -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
|
28
devel/libsmpp34/files/patch-test_apps-tcp.c
Normal file
28
devel/libsmpp34/files/patch-test_apps-tcp.c
Normal file
@ -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)
|
5
devel/libsmpp34/pkg-descr
Normal file
5
devel/libsmpp34/pkg-descr
Normal file
@ -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/
|
85
devel/libsmpp34/pkg-plist
Normal file
85
devel/libsmpp34/pkg-plist
Normal file
@ -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
|
||||
@dirrm include/def_frame
|
||||
@dirrm include/def_list
|
Loading…
Reference in New Issue
Block a user