Commit 3c63b2b9 authored by olgeni's avatar olgeni
Browse files

Add devel/oserl, an Erlang framework for using the SMPP protocol

in messaging applications.
parent f58c55ee
...@@ -1346,6 +1346,7 @@ ...@@ -1346,6 +1346,7 @@
SUBDIR += orbitcpp SUBDIR += orbitcpp
SUBDIR += orc SUBDIR += orc
SUBDIR += osc SUBDIR += osc
SUBDIR += oserl
SUBDIR += ossp-al SUBDIR += ossp-al
SUBDIR += ossp-cfg SUBDIR += ossp-cfg
SUBDIR += ossp-ex SUBDIR += ossp-ex
......
# $FreeBSD$
PORTNAME= oserl
PORTVERSION= 3.2.4
CATEGORIES= devel
MASTER_SITES= GH
MAINTAINER= olgeni@FreeBSD.org
COMMENT= SMPP library for Erlang
BUILD_DEPENDS= erlc:${PORTSDIR}/lang/erlang \
txt2tags:${PORTSDIR}/textproc/txt2tags
RUN_DEPENDS= erl:${PORTSDIR}/lang/erlang \
common_lib>=3.3.4:${PORTSDIR}/devel/common_lib
PLIST_SUB= VERSION="${PORTVERSION}"
USE_GITHUB= yes
GH_ACCOUNT= iamaleksey
GH_PROJECT= oserl
GH_COMMIT= f14115d
GH_TAGNAME= ${PORTVERSION}
USE_GMAKE= yes
USE_DOS2UNIX= Makefile
ALL_TARGET= compile doc
MAN1= oserl.1
MAN3= gen_esme.3 gen_esme_session.3 gen_mc.3 gen_mc_session.3 \
smpp_base.3 smpp_base_syntax.3 smpp_disk_log_hlr.3 smpp_error.3 \
smpp_log_mgr.3 smpp_operation.3 smpp_param_syntax.3 \
smpp_pdu_syntax.3 smpp_ref_num.3 smpp_req_tab.3 smpp_sm.3 \
smpp_tty_log_hlr.3
.include <bsd.port.options.mk>
post-extract:
# Trick rebar into locating the oserl include files (see also patch-rebar.config)
@${LN} -s ${WRKSRC} ${WRKDIR}/${PORTNAME}
@${REINPLACE_CMD} -e "s@&lt;@<@g" -e "s@&gt;@>@g" ${WRKSRC}/doc/*.ndoc
do-install:
.for manpage in ${MAN1} ${MAN3}
@iconv -f UTF-8 -t ISO-8859-1 ${WRKSRC}/doc/man/${manpage} > ${WRKSRC}/doc/man/${manpage}.iconv
.endfor
.for manpage in ${MAN1}
@${INSTALL_MAN} ${WRKSRC}/doc/man/${manpage}.iconv ${MAN1PREFIX}/man/man1/${manpage}
.endfor
.for manpage in ${MAN3}
@${INSTALL_MAN} ${WRKSRC}/doc/man/${manpage}.iconv ${MAN3PREFIX}/man/man3/${manpage}
.endfor
@${MKDIR} ${PREFIX}/lib/erlang/lib/oserl-${PORTVERSION}
@${MKDIR} ${PREFIX}/lib/erlang/lib/oserl-${PORTVERSION}/ebin
@${MKDIR} ${PREFIX}/lib/erlang/lib/oserl-${PORTVERSION}/include
@${MKDIR} ${PREFIX}/lib/erlang/lib/oserl-${PORTVERSION}/src
@${INSTALL_DATA} ${WRKSRC}/ebin/* ${PREFIX}/lib/erlang/lib/oserl-${PORTVERSION}/ebin
@${INSTALL_DATA} ${WRKSRC}/include/* ${PREFIX}/lib/erlang/lib/oserl-${PORTVERSION}/include
@${INSTALL_DATA} ${WRKSRC}/src/* ${PREFIX}/lib/erlang/lib/oserl-${PORTVERSION}/src
.include <bsd.port.mk>
SHA256 (oserl-3.2.4.tar.gz) = da0be77efdc7a8f0bddffd3eda1f310523ffeac5e9b94825811644d9df8f2b01
SIZE (oserl-3.2.4.tar.gz) = 248971
$FreeBSD$
--- Makefile.orig
+++ Makefile
@@ -10,6 +10,13 @@
TEXS = $(DOCS:.ndoc=.tex)
PDFS = $(DOCS:.ndoc=.pdf)
+CD = cd
+ERLDOC = txt2tags
+MKDIR = mkdir
+MV = mv -vf
+RM = rm -vf
+SED = sed
+
### Dependecy Search Paths
VPATH = src:include:ebin:doc
@@ -35,7 +42,11 @@
@$(RM) -R doc/man
@$(RM) -R doc/pdf
-doc: man html pdf
+doc: dirs man html
+
+dirs:
+ @$(MKDIR) doc/man
+ @$(MKDIR) doc/html
man: $(MANS)
@$(MV) doc/man/$(APPNAME)_overview.3 doc/man/$(APPNAME).1
@@ -49,14 +60,14 @@
%.3: %.ndoc
@$(CD) doc; $(SED) "s|%MODULES%|`echo $(MODS)`|g" ../$^ | \
$(SED) "s|%VSN%|$(VSN)|g" | $(SED) "s|%APPLICATION%|$(APPNAME)|g" | \
- $(ERLDOC) -i - -t man --no-toc --erl -o man/$@; $(CD) ..
+ $(ERLDOC) -i - -t man --no-toc -o man/$@; $(CD) ..
%.html: %.ndoc
@$(CD) doc; $(SED) "s|%MODULES%|`echo $(MODS)`|g" ../$^ | \
$(SED) "s|%VSN%|$(VSN)|g" | $(SED) "s|%APPLICATION%|$(APPNAME)|g" | \
- $(ERLDOC) -i - -t xhtml --erl -o html/$@; $(CD) ..
+ $(ERLDOC) -i - -t xhtml -o html/$@; $(CD) ..
%.pdf: %.ndoc
@$(CD) doc; $(SED) "s|%MODULES%|`echo $(MODS)`|g" ../$^ | \
$(SED) "s|%VSN%|$(VSN)|g" | $(SED) "s|%APPLICATION%|$(APPNAME)|g" | \
- $(ERLDOC) -i - -t pdf --no-toc --erl -o pdf/$@; $(CD) ..
+ $(ERLDOC) -i - -t pdf --no-toc -o pdf/$@; $(CD) ..
$FreeBSD$
--- rebar.config.orig
+++ rebar.config
@@ -1,10 +1,7 @@
-{lib_dirs, ["deps"]}.
+{lib_dirs, ["deps", ".."]}.
{erl_opts, [warnings_as_errors, debug_info]}.
-{deps, [{common_lib, "3.3.4",
- {git, "git://github.com/iamaleksey/common_lib.git", {tag, "3.3.4"}}}]}.
-
{erl_first_files, ["src/gen_esme_session.erl",
"src/gen_mc_session.erl",
"src/gen_esme.erl",
The Short Message Peer-to-Peer (SMPP) in telecommunications 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 (ESME), Routing Entities
(RE) and Message Centres.
The oserl library provides an Erlang framework to interface with
SMPP entities.
WWW: https://github.com/iamaleksey/oserl
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/ebin/gen_esme.beam
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/ebin/gen_esme_session.beam
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/ebin/gen_mc.beam
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/ebin/gen_mc_session.beam
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/ebin/oserl.app
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/ebin/smpp_base.beam
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/ebin/smpp_base_syntax.beam
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/ebin/smpp_disk_log_hlr.beam
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/ebin/smpp_error.beam
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/ebin/smpp_log_mgr.beam
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/ebin/smpp_operation.beam
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/ebin/smpp_param_syntax.beam
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/ebin/smpp_pdu_syntax.beam
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/ebin/smpp_ref_num.beam
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/ebin/smpp_req_tab.beam
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/ebin/smpp_session.beam
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/ebin/smpp_sm.beam
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/ebin/smpp_tty_log_hlr.beam
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/include/e164.hrl
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/include/oserl.hrl
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/include/smpp_globals.hrl
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/gen_esme.erl
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/gen_esme_session.erl
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/gen_mc.erl
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/gen_mc_session.erl
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/smpp_base.erl
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/smpp_base.hrl
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/smpp_base_syntax.erl
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/smpp_base_syntax.hrl
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/smpp_disk_log_hlr.erl
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/smpp_error.erl
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/smpp_log_mgr.erl
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/smpp_operation.erl
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/smpp_param.hrl
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/smpp_param_syntax.erl
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/smpp_param_syntax.hrl
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/smpp_pdu.hrl
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/smpp_pdu_syntax.erl
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/smpp_pdu_syntax.hrl
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/smpp_ref_num.erl
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/smpp_req_tab.erl
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/smpp_session.erl
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/smpp_sm.erl
%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/smpp_tty_log_hlr.erl
@dirrm %%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/ebin
@dirrm %%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/include
@dirrm %%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src
@dirrm %%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%
Supports Markdown
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