Integration with OGSLib
This commit is contained in:
parent
4165ec1264
commit
0ebd85f364
|
@ -9,30 +9,40 @@
|
||||||
.libs
|
.libs
|
||||||
|
|
||||||
# generated files
|
# generated files
|
||||||
|
lib/freeDiameter-*/build-aux/*
|
||||||
|
lib/freeDiameter-*/config.status
|
||||||
|
lib/freeDiameter-*/m4/*.m4
|
||||||
|
lib/freeDiameter-*/!m4/ax_*.m4
|
||||||
lib/freeDiameter-*/libfdcore/fdd.tab.[chy]
|
lib/freeDiameter-*/libfdcore/fdd.tab.[chy]
|
||||||
lib/freeDiameter-*/libfdcore/lex.fdd.[cl]
|
lib/freeDiameter-*/libfdcore/lex.fdd.[cl]
|
||||||
lib/freeDiameter-*/include/freeDiameter/version.h
|
lib/freeDiameter-*/include/freeDiameter/version.h
|
||||||
lib/freeDiameter-*/include/freeDiameter/config.h.in
|
lib/freeDiameter-*/include/freeDiameter/config.h.in*
|
||||||
|
lib/freeDiameter-*/include/freeDiameter/config.h
|
||||||
lib/freeDiameter-*/include/freeDiameter/freeDiameter-host.h
|
lib/freeDiameter-*/include/freeDiameter/freeDiameter-host.h
|
||||||
lib/core/include/core.h
|
|
||||||
support/systemd/nextepc-*.service
|
support/systemd/nextepc-*.service
|
||||||
support/logrotate/nextepc
|
support/logrotate/nextepc
|
||||||
|
|
||||||
# autotools
|
# autotools
|
||||||
stamp-h1
|
stamp-h1
|
||||||
config.h
|
config.h
|
||||||
config.in
|
lib/base/nextepc-config.h
|
||||||
config.nice
|
lib/base/nextepc-config.h.in*
|
||||||
config.log
|
config.log
|
||||||
|
config.status
|
||||||
configure
|
configure
|
||||||
aclocal.m4
|
aclocal.m4
|
||||||
config.status
|
|
||||||
libtool
|
libtool
|
||||||
autom4te.cache
|
autom4te.cache
|
||||||
build-aux
|
build/*
|
||||||
|
!build/git-version-gen
|
||||||
|
!build/osc-upload.sh
|
||||||
Makefile
|
Makefile
|
||||||
Makefile.in
|
Makefile.in
|
||||||
m4
|
m4/*.m4
|
||||||
|
!m4/ax_*.m4
|
||||||
|
|
||||||
|
.tarball-version
|
||||||
|
.version
|
||||||
|
|
||||||
# autotest
|
# autotest
|
||||||
test/package.m4
|
test/package.m4
|
||||||
|
@ -42,9 +52,10 @@ test/testsuite.dir/
|
||||||
test/testsuite.log
|
test/testsuite.log
|
||||||
|
|
||||||
# executables
|
# executables
|
||||||
lib/core/test/testcore
|
test/testunit
|
||||||
test/testvolte
|
|
||||||
test/testepc
|
test/testepc
|
||||||
|
test/testvolte
|
||||||
|
test/testadvanced
|
||||||
nextepc-mmed
|
nextepc-mmed
|
||||||
nextepc-pcrfd
|
nextepc-pcrfd
|
||||||
nextepc-pgwd
|
nextepc-pgwd
|
||||||
|
@ -52,21 +63,6 @@ nextepc-sgwd
|
||||||
nextepc-epcd
|
nextepc-epcd
|
||||||
nextepc-hssd
|
nextepc-hssd
|
||||||
|
|
||||||
# debian
|
|
||||||
debian/*.debhelper.log
|
|
||||||
debian/*.debhelper
|
|
||||||
debian/*.substvars
|
|
||||||
debian/tmp
|
|
||||||
debian/files
|
|
||||||
debian/autoreconf.before
|
|
||||||
debian/autoreconf.after
|
|
||||||
debian/nextepc-core
|
|
||||||
debian/nextepc-mme
|
|
||||||
debian/nextepc-sgw
|
|
||||||
debian/nextepc-pgw
|
|
||||||
debian/nextepc-pcrf
|
|
||||||
debian/nextepc-hss
|
|
||||||
|
|
||||||
# webui
|
# webui
|
||||||
webui/.next/
|
webui/.next/
|
||||||
webui/node_modules/
|
webui/node_modules/
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
[submodule "lib/ogslib"]
|
||||||
|
path = lib/ogslib
|
||||||
|
url = https://github.com/open5gs/ogslib
|
37
Makefile.am
37
Makefile.am
|
@ -1,6 +1,22 @@
|
||||||
## Process this file with automake to produce Makefile.in
|
# Copyright (C) 2019 by Sukchan Lee <acetcom@gmail.com>
|
||||||
|
|
||||||
|
# This file is part of Open5GS.
|
||||||
|
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU Affero General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 3 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 General Public License
|
||||||
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
ACLOCAL_AMFLAGS = -I m4
|
ACLOCAL_AMFLAGS = -I m4
|
||||||
|
EXTRA_DIST = build/git-version-gen .version README.md LICENSE
|
||||||
|
|
||||||
SUBDIRS = lib src support test
|
SUBDIRS = lib src support test
|
||||||
|
|
||||||
|
@ -25,7 +41,8 @@ dist_nextepc_epcd_SOURCES = main.c
|
||||||
nextepc_epcd_LDADD = $(top_srcdir)/src/libepc.la
|
nextepc_epcd_LDADD = $(top_srcdir)/src/libepc.la
|
||||||
|
|
||||||
AM_CPPFLAGS = \
|
AM_CPPFLAGS = \
|
||||||
-I$(top_srcdir)/lib/core/include \
|
@OGSCORE_CFLAGS@ \
|
||||||
|
-I$(top_srcdir)/lib \
|
||||||
-I$(top_srcdir)/src \
|
-I$(top_srcdir)/src \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
|
@ -38,14 +55,8 @@ install-data-hook:
|
||||||
$(MKDIR_P) $(DESTDIR)/$(localstatedir)/run/nextepc-hssd
|
$(MKDIR_P) $(DESTDIR)/$(localstatedir)/run/nextepc-hssd
|
||||||
$(MKDIR_P) $(DESTDIR)/$(localstatedir)/run/nextepc-epcd
|
$(MKDIR_P) $(DESTDIR)/$(localstatedir)/run/nextepc-epcd
|
||||||
|
|
||||||
CLEANFILES = -R data debian/test
|
BUILT_SOURCES = $(top_srcdir)/.version
|
||||||
DISTCLEANFILES = $(DIST_ARCHIVES)
|
$(top_srcdir)/.version:
|
||||||
MAINTAINERCLEANFILES = \
|
echo $(VERSION) > $@-t && mv $@-t $@
|
||||||
configure config.in \
|
dist-hook:
|
||||||
aclocal.m4 m4/ltsugar.m4 m4/libtool.m4 m4/ltversion.m4 \
|
echo $(VERSION) > $(distdir)/.tarball-version
|
||||||
m4/lt~obsolete.m4 m4/ltoptions.m4 \
|
|
||||||
build-aux/ar-lib build-aux/config.guess build-aux/depcomp \
|
|
||||||
build-aux/ltmain.sh build-aux/test-driver build-aux/compile \
|
|
||||||
build-aux/config.sub build-aux/missing build-aux/install-sh \
|
|
||||||
Makefile.in
|
|
||||||
MOSTLYCLEANFILES = core *.stackdump
|
|
||||||
|
|
97
README.md
97
README.md
|
@ -1,97 +1,26 @@
|
||||||
What's NextEPC
|
|
||||||
================
|
|
||||||
|
|
||||||
NextEPC is a C-language Open Source implementation of the 3GPP Evolved Packet Core, i.e. the core network of an LTE network.
|
|
||||||
|
|
||||||
NextEPC provides the MME (Mobility Management Engine), which terminates the S1 interfaces from the eNodeBs cells in the cellular network, and interfaces via S11 to the SGW as well as via S6a to the HSS.
|
|
||||||
|
|
||||||
NextEPC provides the SGW (Serving Gateway) which is situated between the MME and PGW. It implements the S11 interface to the MME, and the S5 interface to the PGW.
|
|
||||||
|
|
||||||
NextEPC provides the PGW or PDN-GW (Packet Data Network Gateway) element of the EPC, i.e. the gateway between the EPC and the external packet data network, such as the public Internet. It implements the S5 interface towards the S-GW, the SGi interface towards the Internet, and the S7 interface towards the PCRF.
|
|
||||||
|
|
||||||
NextEPC provides the HSS (Home Subscriber Server) element of the EPC, i.e. the central database of mobile network subscribers, with their IMSI, MSISDN, cryptographic key materials, service subscription information, etc. It implements the S6a interface towards the MME using the DIAMETER protocol.
|
|
||||||
|
|
||||||
NextEPC contains the PCRF (Policy and Charging Rules Function), which controls the service quality (QoS) of individual connections and how to account/charge related traffic. It implements the Gx interface towards the PGW using the DIAMETER protocol.
|
|
||||||
|
|
||||||
Installation
|
|
||||||
============
|
|
||||||
|
|
||||||
* ### MME, SGW, PGW, HSS, and PCRF
|
|
||||||
|
|
||||||
The NextEPC package is available on the recent versions of Ubuntu.
|
|
||||||
|
|
||||||
```bash
|
|
||||||
sudo add-apt-repository ppa:acetcom/nextepc
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get -y install nextepc
|
|
||||||
```
|
|
||||||
This will create a virtual network interface named as *pgwtun*. It is automatically removed by uninstalling NextEPC.
|
|
||||||
|
|
||||||
```markdown
|
|
||||||
ifconfig pgwtun
|
|
||||||
pgwtun Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
|
|
||||||
inet addr:45.45.0.1 P-t-P:45.45.0.1 Mask:255.255.0.0
|
|
||||||
inet6 addr: fe80::50f6:182c:5aa3:16bb/64 Scope:Link
|
|
||||||
inet6 addr: cafe::1/64 Scope:Global
|
|
||||||
...
|
|
||||||
```
|
|
||||||
|
|
||||||
The NextEPC service is registered in `systemd` environment, and is started automatically during the installation phase. The service names are *nextepc-mmed*, *nextepc-sgwd*, *nextepc-pgwd*, *nextepc-hssd*, and *nextepc-pcrfd*. You can use the `systemctl` command to control specific services.
|
|
||||||
|
|
||||||
```bash
|
|
||||||
sudo systemctl status nextepc-mmed (Check the service status)
|
|
||||||
sudo systemctl stop nextepc-mmed (Stop the service)
|
|
||||||
sudo systemctl disable nextepc-mmed (Will not be started after rebooting)
|
|
||||||
sudo systemctl enable nextepc-mmed (Will be started after rebooting)
|
|
||||||
sudo systemctl start nextepc-mmed (Start the service)
|
|
||||||
sudo systemctl restart nextepc-mmed (Stop and start)
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
* ### Web User Interface
|
|
||||||
|
|
||||||
```bash
|
|
||||||
sudo apt-get -y install curl
|
|
||||||
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
|
|
||||||
curl -sL http://nextepc.org/static/webui/install | sudo -E bash -
|
|
||||||
```
|
|
||||||
|
|
||||||
The service name is *nextepc-webui*, and it will be running on _http://localhost:3000_.
|
|
||||||
|
|
||||||
```bash
|
|
||||||
sudo systemctl start nextepc-webui
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
* ### Uninstall NextEPC
|
|
||||||
|
|
||||||
```bash
|
|
||||||
curl -sL http://nextepc.org/static/webui/uninstall | sudo -E bash -
|
|
||||||
sudo apt-get purge nextepc*
|
|
||||||
```
|
|
||||||
|
|
||||||
You may need to remove manually /var/log/nextepc unless it is empty.
|
|
||||||
```bash
|
|
||||||
sudo rm -Rf /var/log/nextepc
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
If you don't understand something about NextEPC, the [http://nextepc.org](http://nextepc.org/) is a great place to look for answers.
|
If you don't understand something about NextEPC, the [https://open5gs.org/nextepc/docs/](https://open5gs.org/nextepc/docs/) is a great place to look for answers.
|
||||||
|
|
||||||
|
|
||||||
## Support
|
## Support
|
||||||
|
|
||||||
Problem with NextEPC can be filed as [issues](https://github.com/acetcom/nextepc/issues) in this repository. And also, we've created *Discord* workspace for _nextepc_. Use [this link](https://discord.gg/GreNkuc) to get started.
|
Problem with NextEPC can be filed as [issues](https://github.com/open5gs/nextepc/issues) in this repository.
|
||||||
|
|
||||||
|
Discussions related to this project are happening on the [nextepc@lists.osmocom.org](mailto:nextepc@lists.osmocom.org) mailing list, please see <https://lists.osmocom.org/mailman/listinfo/nextepc> for subscription options and the list archive.
|
||||||
|
|
||||||
## Mailing List
|
Voice and text chat available in NextEPC's [Discord](https://discordapp.com/) workspace. Use [this link](https://discord.gg/GreNkuc) to get started.
|
||||||
|
|
||||||
Discussions related to this project are happening on the nextepc@lists.osmocom.org mailing list, please see <https://lists.osmocom.org/mailman/listinfo/nextepc> for subscription options and the list archive.
|
## Contributing
|
||||||
|
|
||||||
|
NextEPC is a pure/classic FOSS project, open to contributions from anyone.
|
||||||
|
|
||||||
|
[Pull requests](https://github.com/open5gs/nextepc/pulls) are always welcome, and I appreciates any help the community can give to help make NextEPC better.
|
||||||
|
|
||||||
|
Do you want to be a committer? Please [send me an email](mailto:acetcom@gmail.com). You will be added as a committer to this project. However, if someone consistently causes difficulties with these source repositories due to poor behavior or other serious problems then commit access may be revoked.
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
NextEPC source files are made available under the terms of the GNU Affero General Public License (GNU AGPLv3). See [this link](http://nextepc.org/docs/nextepc/4-license/) for details.
|
NextEPC source files are made available under the terms of the GNU Affero General Public License (GNU AGPLv3).
|
||||||
|
|
||||||
|
When you contribute code for NextEPC, the same license applies.
|
||||||
|
|
||||||
|
|
108
acinclude.m4
108
acinclude.m4
|
@ -1,108 +0,0 @@
|
||||||
dnl
|
|
||||||
dnl CORE_SUBST(varname)
|
|
||||||
dnl
|
|
||||||
dnl Adds variable with it's value into Makefile, e.g.:
|
|
||||||
dnl CC = gcc
|
|
||||||
dnl
|
|
||||||
AC_DEFUN([CORE_SUBST],[
|
|
||||||
CORE_VAR_SUBST="$CORE_VAR_SUBST $1"
|
|
||||||
])
|
|
||||||
|
|
||||||
dnl
|
|
||||||
dnl CORE_SUBST_OLD(varname)
|
|
||||||
dnl
|
|
||||||
dnl Same as CORE_SUBST() but also substitutes all @VARNAME@
|
|
||||||
dnl instances in every file passed to AC_OUTPUT()
|
|
||||||
dnl
|
|
||||||
AC_DEFUN([CORE_SUBST_OLD],[
|
|
||||||
CORE_SUBST($1)
|
|
||||||
AC_SUBST($1)
|
|
||||||
])
|
|
||||||
|
|
||||||
dnl
|
|
||||||
dnl CORE_CONFIG_NICE(filename)
|
|
||||||
dnl
|
|
||||||
dnl Generates the config.nice file
|
|
||||||
dnl
|
|
||||||
AC_DEFUN([CORE_CONFIG_NICE],[
|
|
||||||
AC_REQUIRE([AC_PROG_EGREP])
|
|
||||||
AC_REQUIRE([LT_AC_PROG_SED])
|
|
||||||
CORE_SUBST_OLD(EGREP)
|
|
||||||
CORE_SUBST_OLD(SED)
|
|
||||||
test -f $1 && mv $1 $1.old
|
|
||||||
rm -f $1.old
|
|
||||||
cat >$1<<EOF
|
|
||||||
#! /bin/sh
|
|
||||||
#
|
|
||||||
# Created by configure
|
|
||||||
|
|
||||||
EOF
|
|
||||||
|
|
||||||
for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS EXTRA_LDFLAGS_PROGRAM LIBS CC CXX; do
|
|
||||||
eval val=\$$var
|
|
||||||
if test -n "$val"; then
|
|
||||||
echo "$var='$val' \\" >> $1
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
echo "'[$]0' \\" >> $1
|
|
||||||
if test `expr -- [$]0 : "'.*"` = 0; then
|
|
||||||
CONFIGURE_COMMAND="$CONFIGURE_COMMAND '[$]0'"
|
|
||||||
else
|
|
||||||
CONFIGURE_COMMAND="$CONFIGURE_COMMAND [$]0"
|
|
||||||
fi
|
|
||||||
for arg in $ac_configure_args; do
|
|
||||||
if test `expr -- $arg : "'.*"` = 0; then
|
|
||||||
if test `expr -- $arg : "--.*"` = 0; then
|
|
||||||
break;
|
|
||||||
fi
|
|
||||||
echo "'[$]arg' \\" >> $1
|
|
||||||
CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS '[$]arg'"
|
|
||||||
else
|
|
||||||
if test `expr -- $arg : "'--.*"` = 0; then
|
|
||||||
break;
|
|
||||||
fi
|
|
||||||
echo "[$]arg \\" >> $1
|
|
||||||
CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS [$]arg"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
echo '"[$]@"' >> $1
|
|
||||||
chmod +x $1
|
|
||||||
CONFIGURE_COMMAND="$CONFIGURE_COMMAND $CONFIGURE_OPTIONS"
|
|
||||||
CORE_SUBST_OLD(CONFIGURE_COMMAND)
|
|
||||||
CORE_SUBST_OLD(CONFIGURE_OPTIONS)
|
|
||||||
])
|
|
||||||
|
|
||||||
AC_DEFUN([AX_CHECK_COMPILE_FLAG],
|
|
||||||
[AC_PREREQ(2.59)dnl for _AC_LANG_PREFIX
|
|
||||||
AS_VAR_PUSHDEF([CACHEVAR],[ax_cv_check_[]_AC_LANG_ABBREV[]flags_$4_$1])dnl
|
|
||||||
AC_CACHE_CHECK([whether _AC_LANG compiler accepts $1], CACHEVAR, [
|
|
||||||
ax_check_save_flags=$[]_AC_LANG_PREFIX[]FLAGS
|
|
||||||
_AC_LANG_PREFIX[]FLAGS="$[]_AC_LANG_PREFIX[]FLAGS $4 $1"
|
|
||||||
AC_COMPILE_IFELSE([m4_default([$5],[AC_LANG_PROGRAM()])],
|
|
||||||
[AS_VAR_SET(CACHEVAR,[yes])],
|
|
||||||
[AS_VAR_SET(CACHEVAR,[no])])
|
|
||||||
_AC_LANG_PREFIX[]FLAGS=$ax_check_save_flags])
|
|
||||||
AS_IF([test x"AS_VAR_GET(CACHEVAR)" = xyes],
|
|
||||||
[m4_default([$2], :)],
|
|
||||||
[m4_default([$3], :)])
|
|
||||||
AS_VAR_POPDEF([CACHEVAR])dnl
|
|
||||||
])dnl AX_CHECK_COMPILE_FLAGS
|
|
||||||
|
|
||||||
# adl_RECURSIVE_EVAL(VALUE, RESULT)
|
|
||||||
# =================================
|
|
||||||
# Interpolate the VALUE in loop until it doesn't change,
|
|
||||||
# and set the result to $RESULT.
|
|
||||||
# WARNING: It's easy to get an infinite loop with some unsane input.
|
|
||||||
# For example ${datadir} becomes ${datarootdir}, and then ${prefix}/share, and
|
|
||||||
# finally ${prefix} is replaced by the prefix.
|
|
||||||
AC_DEFUN([adl_RECURSIVE_EVAL],
|
|
||||||
[_lcl_receval="$1"
|
|
||||||
$2=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
|
|
||||||
test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
|
|
||||||
_lcl_receval_old=''
|
|
||||||
while test "[$]_lcl_receval_old" != "[$]_lcl_receval"; do
|
|
||||||
_lcl_receval_old="[$]_lcl_receval"
|
|
||||||
eval _lcl_receval="\"[$]_lcl_receval\""
|
|
||||||
done
|
|
||||||
echo "[$]_lcl_receval")`])
|
|
|
@ -0,0 +1,227 @@
|
||||||
|
#!/bin/sh
|
||||||
|
# Print a version string.
|
||||||
|
scriptversion=2017-09-13.06; # UTC
|
||||||
|
|
||||||
|
# Copyright (C) 2007-2017 Free Software Foundation, Inc.
|
||||||
|
#
|
||||||
|
# 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 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 General Public License
|
||||||
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
# This script is derived from GIT-VERSION-GEN from GIT: https://git-scm.com/.
|
||||||
|
# It may be run two ways:
|
||||||
|
# - from a git repository in which the "git describe" command below
|
||||||
|
# produces useful output (thus requiring at least one signed tag)
|
||||||
|
# - from a non-git-repo directory containing a .tarball-version file, which
|
||||||
|
# presumes this script is invoked like "./git-version-gen .tarball-version".
|
||||||
|
|
||||||
|
# In order to use intra-version strings in your project, you will need two
|
||||||
|
# separate generated version string files:
|
||||||
|
#
|
||||||
|
# .tarball-version - present only in a distribution tarball, and not in
|
||||||
|
# a checked-out repository. Created with contents that were learned at
|
||||||
|
# the last time autoconf was run, and used by git-version-gen. Must not
|
||||||
|
# be present in either $(srcdir) or $(builddir) for git-version-gen to
|
||||||
|
# give accurate answers during normal development with a checked out tree,
|
||||||
|
# but must be present in a tarball when there is no version control system.
|
||||||
|
# Therefore, it cannot be used in any dependencies. GNUmakefile has
|
||||||
|
# hooks to force a reconfigure at distribution time to get the value
|
||||||
|
# correct, without penalizing normal development with extra reconfigures.
|
||||||
|
#
|
||||||
|
# .version - present in a checked-out repository and in a distribution
|
||||||
|
# tarball. Usable in dependencies, particularly for files that don't
|
||||||
|
# want to depend on config.h but do want to track version changes.
|
||||||
|
# Delete this file prior to any autoconf run where you want to rebuild
|
||||||
|
# files to pick up a version string change; and leave it stale to
|
||||||
|
# minimize rebuild time after unrelated changes to configure sources.
|
||||||
|
#
|
||||||
|
# As with any generated file in a VC'd directory, you should add
|
||||||
|
# /.version to .gitignore, so that you don't accidentally commit it.
|
||||||
|
# .tarball-version is never generated in a VC'd directory, so needn't
|
||||||
|
# be listed there.
|
||||||
|
#
|
||||||
|
# Use the following line in your configure.ac, so that $(VERSION) will
|
||||||
|
# automatically be up-to-date each time configure is run (and note that
|
||||||
|
# since configure.ac no longer includes a version string, Makefile rules
|
||||||
|
# should not depend on configure.ac for version updates).
|
||||||
|
#
|
||||||
|
# AC_INIT([GNU project],
|
||||||
|
# m4_esyscmd([build-aux/git-version-gen .tarball-version]),
|
||||||
|
# [bug-project@example])
|
||||||
|
#
|
||||||
|
# Then use the following lines in your Makefile.am, so that .version
|
||||||
|
# will be present for dependencies, and so that .version and
|
||||||
|
# .tarball-version will exist in distribution tarballs.
|
||||||
|
#
|
||||||
|
# EXTRA_DIST = $(top_srcdir)/.version
|
||||||
|
# BUILT_SOURCES = $(top_srcdir)/.version
|
||||||
|
# $(top_srcdir)/.version:
|
||||||
|
# echo $(VERSION) > $@-t && mv $@-t $@
|
||||||
|
# dist-hook:
|
||||||
|
# echo $(VERSION) > $(distdir)/.tarball-version
|
||||||
|
|
||||||
|
|
||||||
|
me=$0
|
||||||
|
|
||||||
|
version="git-version-gen $scriptversion
|
||||||
|
|
||||||
|
Copyright 2011 Free Software Foundation, Inc.
|
||||||
|
There is NO warranty. You may redistribute this software
|
||||||
|
under the terms of the GNU General Public License.
|
||||||
|
For more information about these matters, see the files named COPYING."
|
||||||
|
|
||||||
|
usage="\
|
||||||
|
Usage: $me [OPTION]... \$srcdir/.tarball-version [TAG-NORMALIZATION-SED-SCRIPT]
|
||||||
|
Print a version string.
|
||||||
|
|
||||||
|
Options:
|
||||||
|
|
||||||
|
--prefix PREFIX prefix of git tags (default 'v')
|
||||||
|
--fallback VERSION
|
||||||
|
fallback version to use if \"git --version\" fails
|
||||||
|
|
||||||
|
--help display this help and exit
|
||||||
|
--version output version information and exit
|
||||||
|
|
||||||
|
Running without arguments will suffice in most cases."
|
||||||
|
|
||||||
|
prefix=v
|
||||||
|
fallback=
|
||||||
|
|
||||||
|
while test $# -gt 0; do
|
||||||
|
case $1 in
|
||||||
|
--help) echo "$usage"; exit 0;;
|
||||||
|
--version) echo "$version"; exit 0;;
|
||||||
|
--prefix) shift; prefix=${1?};;
|
||||||
|
--fallback) shift; fallback=${1?};;
|
||||||
|
-*)
|
||||||
|
echo "$0: Unknown option '$1'." >&2
|
||||||
|
echo "$0: Try '--help' for more information." >&2
|
||||||
|
exit 1;;
|
||||||
|
*)
|
||||||
|
if test "x$tarball_version_file" = x; then
|
||||||
|
tarball_version_file="$1"
|
||||||
|
elif test "x$tag_sed_script" = x; then
|
||||||
|
tag_sed_script="$1"
|
||||||
|
else
|
||||||
|
echo "$0: extra non-option argument '$1'." >&2
|
||||||
|
exit 1
|
||||||
|
fi;;
|
||||||
|
esac
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
|
||||||
|
if test "x$tarball_version_file" = x; then
|
||||||
|
echo "$usage"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
tag_sed_script="${tag_sed_script:-s/x/x/}"
|
||||||
|
|
||||||
|
nl='
|
||||||
|
'
|
||||||
|
|
||||||
|
# Avoid meddling by environment variable of the same name.
|
||||||
|
v=
|
||||||
|
v_from_git=
|
||||||
|
|
||||||
|
# First see if there is a tarball-only version file.
|
||||||
|
# then try "git describe", then default.
|
||||||
|
if test -f $tarball_version_file
|
||||||
|
then
|
||||||
|
v=`cat $tarball_version_file` || v=
|
||||||
|
case $v in
|
||||||
|
*$nl*) v= ;; # reject multi-line output
|
||||||
|
[0-9]*) ;;
|
||||||
|
*) v= ;;
|
||||||
|
esac
|
||||||
|
test "x$v" = x \
|
||||||
|
&& echo "$0: WARNING: $tarball_version_file is missing or damaged" 1>&2
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "x$v" != x
|
||||||
|
then
|
||||||
|
: # use $v
|
||||||
|
# Otherwise, if there is at least one git commit involving the working
|
||||||
|
# directory, and "git describe" output looks sensible, use that to
|
||||||
|
# derive a version string.
|
||||||
|
elif test "`git log -1 --pretty=format:x . 2>&1`" = x \
|
||||||
|
&& v=`git describe --abbrev=4 --match="$prefix*" HEAD 2>/dev/null \
|
||||||
|
|| git describe --abbrev=4 HEAD 2>/dev/null` \
|
||||||
|
&& v=`printf '%s\n' "$v" | sed "$tag_sed_script"` \
|
||||||
|
&& case $v in
|
||||||
|
$prefix[0-9]*) ;;
|
||||||
|
*) (exit 1) ;;
|
||||||
|
esac
|
||||||
|
then
|
||||||
|
# Is this a new git that lists number of commits since the last
|
||||||
|
# tag or the previous older version that did not?
|
||||||
|
# Newer: v6.10-77-g0f8faeb
|
||||||
|
# Older: v6.10-g0f8faeb
|
||||||
|
vprefix=`expr "X$v" : 'X\(.*\)-g[^-]*$'` || vprefix=$v
|
||||||
|
case $vprefix in
|
||||||
|
*-*) : git describe is probably okay three part flavor ;;
|
||||||
|
*)
|
||||||
|
: git describe is older two part flavor
|
||||||
|
# Recreate the number of commits and rewrite such that the
|
||||||
|
# result is the same as if we were using the newer version
|
||||||
|
# of git describe.
|
||||||
|
vtag=`echo "$v" | sed 's/-.*//'`
|
||||||
|
commit_list=`git rev-list "$vtag"..HEAD 2>/dev/null` \
|
||||||
|
|| { commit_list=failed;
|
||||||
|
echo "$0: WARNING: git rev-list failed" 1>&2; }
|
||||||
|
numcommits=`echo "$commit_list" | wc -l`
|
||||||
|
v=`echo "$v" | sed "s/\(.*\)-\(.*\)/\1-$numcommits-\2/"`;
|
||||||
|
test "$commit_list" = failed && v=UNKNOWN
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# Change the penultimate "-" to ".", for version-comparing tools.
|
||||||
|
# Remove the "g" to save a byte.
|
||||||
|
v=`echo "$v" | sed 's/-\([^-]*\)-g\([^-]*\)$/.\1-\2/'`;
|
||||||
|
v_from_git=1
|
||||||
|
elif test "x$fallback" = x || git --version >/dev/null 2>&1; then
|
||||||
|
v=UNKNOWN
|
||||||
|
else
|
||||||
|
v=$fallback
|
||||||
|
fi
|
||||||
|
|
||||||
|
v=`echo "$v" |sed "s/^$prefix//"`
|
||||||
|
|
||||||
|
# Test whether to append the "-dirty" suffix only if the version
|
||||||
|
# string we're using came from git. I.e., skip the test if it's "UNKNOWN"
|
||||||
|
# or if it came from .tarball-version.
|
||||||
|
if test "x$v_from_git" != x; then
|
||||||
|
# Don't declare a version "dirty" merely because a timestamp has changed.
|
||||||
|
git update-index --refresh > /dev/null 2>&1
|
||||||
|
|
||||||
|
dirty=`exec 2>/dev/null;git diff-index --name-only HEAD` || dirty=
|
||||||
|
case "$dirty" in
|
||||||
|
'') ;;
|
||||||
|
*) # Append the suffix only if there isn't one already.
|
||||||
|
case $v in
|
||||||
|
*-dirty) ;;
|
||||||
|
*) v="$v-dirty" ;;
|
||||||
|
esac ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Omit the trailing newline, so that m4_esyscmd can use the result directly.
|
||||||
|
printf %s "$v"
|
||||||
|
|
||||||
|
# Local variables:
|
||||||
|
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||||
|
# time-stamp-start: "scriptversion="
|
||||||
|
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||||
|
# time-stamp-time-zone: "UTC0"
|
||||||
|
# time-stamp-end: "; # UTC"
|
||||||
|
# End:
|
|
@ -0,0 +1,91 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
for arg in "$@"; do
|
||||||
|
if [ "$arg" = "-h" ]; then
|
||||||
|
echo "Usage: ./build/osc-upload.sh [PROJECT]"
|
||||||
|
echo ""
|
||||||
|
echo " PROJECT: snapshot(=Default), release"
|
||||||
|
echo ""
|
||||||
|
echo " This script is used to upload a source package to OBS(OpenSUSE Build Service)."
|
||||||
|
echo ""
|
||||||
|
echo " This script must be called from the base directory of the repository, and"
|
||||||
|
echo " requires utilites from these packages: git-buildpackage osc git"
|
||||||
|
echo ""
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ ! -x /usr/bin/dpkg-parsechangelog ]; then
|
||||||
|
echo "Missing the dpkg-parsechangelog utility from the dpkg-dev package"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -f debian/changelog ]; then
|
||||||
|
echo "This script must be called from the base directory of the package"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -d .git ]; then
|
||||||
|
echo "This script only works from within a repository"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -x /usr/bin/gbp ]; then
|
||||||
|
echo "Missing git-buildpackage"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
PACKAGE=$(dpkg-parsechangelog | sed -n 's/^Source: //p')
|
||||||
|
DT="$(date +%Y%m%d)+git$(git rev-parse --short HEAD)"
|
||||||
|
TOP=$(pwd)
|
||||||
|
|
||||||
|
OGS_REPO=$TOP/build/obs-repo
|
||||||
|
PROJECT=home:acetcom:open5gs:${1-snapshot}
|
||||||
|
OBS_DIR=$OGS_REPO/$PROJECT/$PACKAGE
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
if [ -d $OBS_DIR ]; then
|
||||||
|
(cd $OBS_DIR && osc up)
|
||||||
|
else
|
||||||
|
mkdir -p $OGS_REPO
|
||||||
|
(cd $OGS_REPO && osc co $PROJECT $PACKAGE)
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
DEB_SRC=$TOP/build/deb-src
|
||||||
|
DEB_DIR=$DEB_SRC/$PACKAGE
|
||||||
|
|
||||||
|
build_package() {
|
||||||
|
if [ ! -d $DEB_DIR ]; then
|
||||||
|
mkdir -p $DEB_DIR
|
||||||
|
fi
|
||||||
|
|
||||||
|
./build/git-version-gen . > .tarball-version 2>/dev/null
|
||||||
|
gbp buildpackage -S --no-sign -d \
|
||||||
|
--git-ignore-branch --git-ignore-new "--git-export-dir=$DEB_DIR" \
|
||||||
|
--git-postexport='cp $GBP_GIT_DIR/../.tarball-version $GBP_TMP_DIR/'
|
||||||
|
rm -f .tarball-version
|
||||||
|
|
||||||
|
cd $OBS_DIR
|
||||||
|
|
||||||
|
file=$(cd "$DEB_DIR/" ; ls ./*.dsc)
|
||||||
|
echo $file
|
||||||
|
if [ -e "$file" ] ; then
|
||||||
|
osc rm ./* || true
|
||||||
|
fi
|
||||||
|
|
||||||
|
mv "$DEB_DIR/"*.dsc .
|
||||||
|
mv "$DEB_DIR/"*.tar* .
|
||||||
|
osc add ./*
|
||||||
|
|
||||||
|
rm "$DEB_DIR/"*
|
||||||
|
rmdir "$DEB_DIR/"
|
||||||
|
rmdir "$DEB_SRC/"
|
||||||
|
|
||||||
|
cd $TOP
|
||||||
|
}
|
||||||
|
|
||||||
|
prepare
|
||||||
|
build_package
|
||||||
|
|
||||||
|
(cd $OBS_DIR && osc ci -m "Snapshot versions of $DT")
|
415
configure.ac
415
configure.ac
|
@ -1,48 +1,51 @@
|
||||||
dnl Process this file with autoconf to produce a configure script.
|
# -*- Autoconf -*-
|
||||||
dnl
|
# Process this file with autoconf to produce a configure script.
|
||||||
dnl This file is free software; as a special exception the author gives
|
|
||||||
dnl unlimited permission to copy and/or distribute it, with or without
|
|
||||||
dnl modifications, as long as this notice is preserved.
|
|
||||||
dnl
|
|
||||||
dnl This program is distributed in the hope that it will be useful, but
|
|
||||||
dnl WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
|
|
||||||
dnl implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
||||||
|
|
||||||
AC_INIT([NextEPC], [0.3.10], [acetcom@gmail.com])
|
# Copyright (C) 2019 by Sukchan Lee <acetcom@gmail.com>
|
||||||
|
|
||||||
AC_SUBST(LIBVERSION)
|
# This file is part of Open5GS.
|
||||||
LIBVERSION=1:0:0
|
|
||||||
|
|
||||||
CORE_CONFIG_NICE(config.nice)
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU Affero General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 3 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 General Public License
|
||||||
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
dnl Must come before AM_INIT_AUTOMAKE.
|
AC_INIT([NextEPC],
|
||||||
AC_CONFIG_AUX_DIR([build-aux])
|
m4_esyscmd([build/git-version-gen .tarball-version]),
|
||||||
|
[acetcom@gmail.com])
|
||||||
|
|
||||||
|
AC_CONFIG_AUX_DIR([build])
|
||||||
|
AC_CONFIG_MACRO_DIR([m4])
|
||||||
AC_CONFIG_TESTDIR(test)
|
AC_CONFIG_TESTDIR(test)
|
||||||
AM_INIT_AUTOMAKE([1.10 -Wall -Werror foreign subdir-objects])
|
|
||||||
|
|
||||||
# Where to generate output; srcdir location.
|
|
||||||
AC_CONFIG_HEADERS([config.h:config.in])dnl Keep filename to 8.3 for MS-DOS.
|
|
||||||
AC_CONFIG_SRCDIR([main.c])
|
|
||||||
AC_CANONICAL_HOST
|
AC_CANONICAL_HOST
|
||||||
|
|
||||||
|
AM_INIT_AUTOMAKE([1.10 -Wall -Werror foreign subdir-objects])
|
||||||
|
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
||||||
|
AC_CONFIG_HEADERS([lib/base/nextepc-config.h])
|
||||||
|
AC_CONFIG_SRCDIR([main.c])
|
||||||
|
|
||||||
LO_DEV="lo0"
|
LO_DEV="lo0"
|
||||||
case $host in
|
case $host in
|
||||||
*linux*)
|
*linux*)
|
||||||
OSDIR="unix"
|
|
||||||
OSCPPFLAGS="-DLINUX=1"
|
OSCPPFLAGS="-DLINUX=1"
|
||||||
IPFW_CPPFLAGS="-DNEED_SYSCTLBYNAME -DNEED_SIN_LEN"
|
IPFW_CPPFLAGS="-DNEED_SYSCTLBYNAME -DNEED_SIN_LEN"
|
||||||
LO_DEV="lo"
|
LO_DEV="lo"
|
||||||
;;
|
;;
|
||||||
*-apple-darwin*)
|
*-apple-darwin*)
|
||||||
OSDIR="unix"
|
|
||||||
OSCPPFLAGS="-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK"
|
OSCPPFLAGS="-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
OSDIR="unix"
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
AC_SUBST(OSCPPFLAGS)
|
AC_SUBST(OSCPPFLAGS)
|
||||||
AC_SUBST(OSDIR)
|
|
||||||
AC_SUBST(IPFW_CPPFLAGS)
|
AC_SUBST(IPFW_CPPFLAGS)
|
||||||
AC_SUBST(LO_DEV)
|
AC_SUBST(LO_DEV)
|
||||||
|
|
||||||
|
@ -67,9 +70,6 @@ AH_VERBATIM([_REENTRANT],
|
||||||
#endif
|
#endif
|
||||||
])
|
])
|
||||||
|
|
||||||
dnl kernel style compile messages
|
|
||||||
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
|
||||||
|
|
||||||
dnl Checks CC and freinds
|
dnl Checks CC and freinds
|
||||||
AC_PROG_MAKE_SET
|
AC_PROG_MAKE_SET
|
||||||
AC_PROG_MKDIR_P
|
AC_PROG_MKDIR_P
|
||||||
|
@ -77,7 +77,7 @@ AC_PROG_CC
|
||||||
AM_PROG_CC_C_O
|
AM_PROG_CC_C_O
|
||||||
AC_PROG_INSTALL
|
AC_PROG_INSTALL
|
||||||
AM_PROG_AR
|
AM_PROG_AR
|
||||||
LT_INIT([pic-only disable-static])
|
LT_INIT
|
||||||
|
|
||||||
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
|
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
|
||||||
if test "x$PKG_CONFIG" = "xno"; then
|
if test "x$PKG_CONFIG" = "xno"; then
|
||||||
|
@ -88,172 +88,56 @@ PKG_PROG_PKG_CONFIG([0.20])
|
||||||
dnl Checks for compile flag
|
dnl Checks for compile flag
|
||||||
AX_CHECK_COMPILE_FLAG([-Wno-unused-result], [CFLAGS="$CFLAGS -Wno-unused-result"])
|
AX_CHECK_COMPILE_FLAG([-Wno-unused-result], [CFLAGS="$CFLAGS -Wno-unused-result"])
|
||||||
|
|
||||||
dnl Checks for pointer size
|
|
||||||
AC_CHECK_SIZEOF(void*, 4)
|
|
||||||
|
|
||||||
dnl Checks for integer size
|
|
||||||
AC_CHECK_SIZEOF(char, 1)
|
|
||||||
AC_CHECK_SIZEOF(int, 4)
|
|
||||||
AC_CHECK_SIZEOF(long, 4)
|
|
||||||
AC_CHECK_SIZEOF(short, 2)
|
|
||||||
AC_CHECK_SIZEOF(long long, 8)
|
|
||||||
|
|
||||||
if test "$ac_cv_sizeof_short" = "2"; then
|
|
||||||
short_value=short
|
|
||||||
fi
|
|
||||||
if test "$ac_cv_sizeof_int" = "4"; then
|
|
||||||
int_value=int
|
|
||||||
fi
|
|
||||||
# Now we need to find what c_int64_t (sizeof == 8) will be.
|
|
||||||
# The first match is our preference.
|
|
||||||
if test "$ac_cv_sizeof_int" = "8"; then
|
|
||||||
int64_literal='#define C_INT64_C(val) (val)'
|
|
||||||
uint64_literal='#define C_UINT64_C(val) (val##U)'
|
|
||||||
int64_t_fmt='#define C_INT64_T_FMT "d"'
|
|
||||||
uint64_t_fmt='#define C_UINT64_T_FMT "u"'
|
|
||||||
uint64_t_hex_fmt='#define C_UINT64_T_HEX_FMT "x"'
|
|
||||||
int64_value="int"
|
|
||||||
long_value=int
|
|
||||||
int64_strfn="strtoi"
|
|
||||||
elif test "$ac_cv_sizeof_long" = "8"; then
|
|
||||||
int64_literal='#define C_INT64_C(val) (val##L)'
|
|
||||||
uint64_literal='#define C_UINT64_C(val) (val##UL)'
|
|
||||||
int64_t_fmt='#define C_INT64_T_FMT "ld"'
|
|
||||||
uint64_t_fmt='#define C_UINT64_T_FMT "lu"'
|
|
||||||
uint64_t_hex_fmt='#define C_UINT64_T_HEX_FMT "lx"'
|
|
||||||
int64_value="long"
|
|
||||||
long_value=long
|
|
||||||
int64_strfn="strtol"
|
|
||||||
elif test "$ac_cv_sizeof_long_long" = "8"; then
|
|
||||||
int64_literal='#define C_INT64_C(val) (val##LL)'
|
|
||||||
uint64_literal='#define C_UINT64_C(val) (val##ULL)'
|
|
||||||
# Linux, Solaris, FreeBSD all support ll with printf.
|
|
||||||
# BSD 4.4 originated 'q'. Solaris is more popular and
|
|
||||||
# doesn't support 'q'. Solaris wins. Exceptions can
|
|
||||||
# go to the OS-dependent section.
|
|
||||||
int64_t_fmt='#define C_INT64_T_FMT "lld"'
|
|
||||||
uint64_t_fmt='#define C_UINT64_T_FMT "llu"'
|
|
||||||
uint64_t_hex_fmt='#define C_UINT64_T_HEX_FMT "llx"'
|
|
||||||
int64_value="long long"
|
|
||||||
long_value="long long"
|
|
||||||
int64_strfn="strtoll"
|
|
||||||
elif test "$ac_cv_sizeof_longlong" = "8"; then
|
|
||||||
int64_literal='#define C_INT64_C(val) (val##LL)'
|
|
||||||
uint64_literal='#define C_UINT64_C(val) (val##ULL)'
|
|
||||||
int64_t_fmt='#define C_INT64_T_FMT "qd"'
|
|
||||||
uint64_t_fmt='#define C_UINT64_T_FMT "qu"'
|
|
||||||
uint64_t_hex_fmt='#define C_UINT64_T_HEX_FMT "qx"'
|
|
||||||
int64_value="__int64"
|
|
||||||
long_value="__int64"
|
|
||||||
int64_strfn="strtoll"
|
|
||||||
else
|
|
||||||
# int64_literal may be overriden if your compiler thinks you have
|
|
||||||
# a 64-bit value but CORE does not agree.
|
|
||||||
AC_ERROR([could not detect a 64-bit integer type])
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_SUBST(short_value)
|
|
||||||
AC_SUBST(int_value)
|
|
||||||
AC_SUBST(long_value)
|
|
||||||
AC_SUBST(int64_value)
|
|
||||||
AC_SUBST(int64_t_fmt)
|
|
||||||
AC_SUBST(uint64_t_fmt)
|
|
||||||
AC_SUBST(uint64_t_hex_fmt)
|
|
||||||
AC_SUBST(int64_literal)
|
|
||||||
AC_SUBST(uint64_literal)
|
|
||||||
|
|
||||||
AC_CHECK_SIZEOF(pid_t, 8)
|
|
||||||
|
|
||||||
if test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_short"; then
|
|
||||||
pid_t_fmt='#define C_PID_T_FMT "hd"'
|
|
||||||
elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_int"; then
|
|
||||||
pid_t_fmt='#define C_PID_T_FMT "d"'
|
|
||||||
elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_long"; then
|
|
||||||
pid_t_fmt='#define C_PID_T_FMT "ld"'
|
|
||||||
elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_long_long"; then
|
|
||||||
pid_t_fmt='#define C_PID_T_FMT APR_INT64_T_FMT'
|
|
||||||
else
|
|
||||||
pid_t_fmt='#error Can not determine the proper size for pid_t'
|
|
||||||
fi
|
|
||||||
|
|
||||||
case $host in
|
|
||||||
*-solaris*)
|
|
||||||
if test "$ac_cv_sizeof_long" = "8"; then
|
|
||||||
pid_t_fmt='#define C_PID_T_FMT "d"'
|
|
||||||
else
|
|
||||||
pid_t_fmt='#define C_PID_T_FMT "ld"'
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
AC_SUBST(pid_t_fmt)
|
|
||||||
|
|
||||||
AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MAJOR],
|
|
||||||
[`echo $PACKAGE_VERSION | $SED 's/^\([[^\.]]\+\)\.\([[^\.]]\+\)\.\([[^\.]]\+\).*/\1/'`],
|
|
||||||
[Major version of this package])
|
|
||||||
AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MINOR],
|
|
||||||
[`echo $PACKAGE_VERSION | $SED 's/^\([[^\.]]\+\)\.\([[^\.]]\+\)\.\([[^\.]]\+\).*/\2/'`],
|
|
||||||
[Minor version of this package])
|
|
||||||
AC_DEFINE_UNQUOTED([PACKAGE_VERSION_PATCHLEVEL],
|
|
||||||
[`echo $PACKAGE_VERSION | $SED 's/^\([[^\.]]\+\)\.\([[^\.]]\+\)\.\([[^\.]]\+\).*/\3/'`],
|
|
||||||
[Patch version of this package])
|
|
||||||
|
|
||||||
##################################
|
##################################
|
||||||
#### Checks for Directories. #####
|
#### Checks for Directories. #####
|
||||||
##################################
|
##################################
|
||||||
|
|
||||||
adl_RECURSIVE_EVAL(["${bindir}"], [BIN_DIR])
|
AX_RECURSIVE_EVAL(["${bindir}"], [BIN_DIR])
|
||||||
adl_RECURSIVE_EVAL(["${libdir}"], [LIB_DIR])
|
AX_RECURSIVE_EVAL(["${libdir}"], [LIB_DIR])
|
||||||
adl_RECURSIVE_EVAL(["${sysconfdir}"], [SYSCONF_DIR])
|
AX_RECURSIVE_EVAL(["${sysconfdir}"], [SYSCONF_DIR])
|
||||||
adl_RECURSIVE_EVAL(["${localstatedir}"], [LOCALSTATE_DIR])
|
AX_RECURSIVE_EVAL(["${localstatedir}"], [LOCALSTATE_DIR])
|
||||||
AC_SUBST(BIN_DIR)
|
AC_SUBST(BIN_DIR)
|
||||||
AC_SUBST(LIB_DIR)
|
AC_SUBST(LIB_DIR)
|
||||||
AC_SUBST(SYSCONF_DIR)
|
AC_SUBST(SYSCONF_DIR)
|
||||||
AC_SUBST(LOCALSTATE_DIR)
|
AC_SUBST(LOCALSTATE_DIR)
|
||||||
|
|
||||||
##################################
|
#######################################
|
||||||
#### Checks for header files. ####
|
#### Checks for library functions. ####
|
||||||
##################################
|
#######################################
|
||||||
|
|
||||||
|
AC_SEARCH_LIBS(gethostbyname, nsl)
|
||||||
|
AC_SEARCH_LIBS(gethostname, nsl)
|
||||||
|
AC_SEARCH_LIBS(socket, socket)
|
||||||
|
AC_SEARCH_LIBS(pthread_barrier_wait, pthread)
|
||||||
|
AC_SEARCH_LIBS(gnutls_global_set_log_level, gnutls)
|
||||||
|
|
||||||
|
AC_CHECK_FILE([lib/ogslib/configure.ac], [have_srclib=yes], [have_srclib=no])
|
||||||
|
if test x$have_srclib == xyes; then
|
||||||
|
AC_CONFIG_SUBDIRS([lib/ogslib])
|
||||||
|
AC_SUBST(OGSCORE_CFLAGS, '-I$(top_srcdir)/lib/ogslib/src')
|
||||||
|
AC_SUBST(OGSCORE_LIBS, '$(top_srcdir)/lib/ogslib/src/core/libogscore-1.0.la')
|
||||||
|
AC_SUBST(OGSCRYPT_CFLAGS, '-I$(top_srcdir)/lib/ogslib/src')
|
||||||
|
AC_SUBST(OGSCRYPT_LIBS, '$(top_srcdir)/lib/ogslib/src/crypt/libogscrypt-1.0.la')
|
||||||
|
else
|
||||||
|
PKG_CHECK_MODULES(OGSCORE, ogscore-1.0 >= 1.0.0)
|
||||||
|
PKG_CHECK_MODULES(OGSCRYPT, ogscrypt-1.0 >= 1.0.0)
|
||||||
|
fi
|
||||||
|
AM_CONDITIONAL([WITH_SRCLIB], [test x$have_srclib = xyes])
|
||||||
|
|
||||||
|
AC_SEARCH_LIBS([sctp_sendmsg], [sctp], [have_sctp=yes], [have_sctp=no])
|
||||||
|
if test x$have_sctp == xno; then
|
||||||
|
AC_SEARCH_LIBS([usrsctp_init], [usrsctp], [have_usrsctp=yes], [have_usrsctp=no])
|
||||||
|
if test x$have_usrsctp == xno; then
|
||||||
|
AC_MSG_ERROR([You must install the SCTP libraries and development headers to enable SCTP support.])
|
||||||
|
else
|
||||||
|
AC_DEFINE(HAVE_USRSCTP, 1,
|
||||||
|
[Define if your system supports the usrsctp system calls])
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
AM_CONDITIONAL([WITH_USRSCTP], [test x$have_usrsctp = xyes])
|
||||||
|
|
||||||
AC_HEADER_STDC
|
|
||||||
AC_CHECK_HEADERS( \
|
AC_CHECK_HEADERS( \
|
||||||
arpa/inet.h \
|
|
||||||
ctype.h \
|
|
||||||
errno.h \
|
|
||||||
fcntl.h \
|
|
||||||
ifaddrs.h \
|
|
||||||
limits.h \
|
|
||||||
netdb.h \
|
|
||||||
pthread.h \
|
|
||||||
regex.h \
|
|
||||||
semaphore.h \
|
|
||||||
signal.h \
|
|
||||||
stdarg.h \
|
|
||||||
stdio.h \
|
|
||||||
stdint.h \
|
|
||||||
stdlib.h \
|
|
||||||
string.h \
|
|
||||||
strings.h \
|
|
||||||
time.h \
|
|
||||||
unistd.h \
|
|
||||||
net/if_dl.h \
|
|
||||||
net/if.h \
|
|
||||||
netinet/ether.h \
|
|
||||||
netinet/in.h \
|
|
||||||
netinet/in_systm.h \
|
|
||||||
netinet/udp.h \
|
|
||||||
netinet/tcp.h \
|
|
||||||
netinet/sctp.h \
|
netinet/sctp.h \
|
||||||
usrsctp.h \
|
|
||||||
sys/ioctl.h \
|
|
||||||
sys/param.h \
|
|
||||||
sys/socket.h \
|
|
||||||
sys/stat.h \
|
|
||||||
sys/syslimits.h \
|
|
||||||
sys/types.h \
|
|
||||||
sys/time.h \
|
|
||||||
sys/wait.h \
|
|
||||||
sys/uio.h \
|
|
||||||
)
|
)
|
||||||
|
|
||||||
AC_CHECK_HEADERS(netinet/ip.h netinet/ip6.h net/route.h,,,[[
|
AC_CHECK_HEADERS(netinet/ip.h netinet/ip6.h net/route.h,,,[[
|
||||||
|
@ -279,134 +163,6 @@ AC_CHECK_HEADERS(netinet/ip_icmp.h netinet/icmp6.h,,,[[
|
||||||
#include <netinet/ip.h>
|
#include <netinet/ip.h>
|
||||||
]])
|
]])
|
||||||
|
|
||||||
##########################################
|
|
||||||
#### Checks for typedefs, structures, ####
|
|
||||||
#### and compiler characteristics. ####
|
|
||||||
##########################################
|
|
||||||
|
|
||||||
AC_C_BIGENDIAN
|
|
||||||
|
|
||||||
AC_CHECK_MEMBERS([struct tm.tm_gmtoff, struct tm.__tm_gmtoff],,,[
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <time.h>])
|
|
||||||
|
|
||||||
AC_CHECK_MEMBER(struct sockaddr.sa_len,
|
|
||||||
AC_DEFINE(HAVE_SA_LEN, 1, [Define this if your stack has sa_len in sockaddr struct.]),,
|
|
||||||
[#ifdef HAVE_SYS_TYPES_H
|
|
||||||
#include <sys/types.h>
|
|
||||||
#endif
|
|
||||||
#include <sys/socket.h>])
|
|
||||||
|
|
||||||
AC_CHECK_MEMBER(struct sockaddr_in.sin_len,
|
|
||||||
AC_DEFINE(HAVE_SIN_LEN, 1, [Define this if your IPv4 has sin_len in sockaddr_in struct.]),,
|
|
||||||
[#ifdef HAVE_SYS_TYPES_H
|
|
||||||
#include <sys/types.h>
|
|
||||||
#endif
|
|
||||||
#include <netinet/in.h>])
|
|
||||||
|
|
||||||
AC_CHECK_MEMBER(struct sockaddr_in6.sin6_len,
|
|
||||||
AC_DEFINE(HAVE_SIN6_LEN, 1, [Define this if your IPv6 has sin6_len in sockaddr_in6 struct.]),,
|
|
||||||
[#ifdef HAVE_SYS_TYPES_H
|
|
||||||
#include <sys/types.h>
|
|
||||||
#endif
|
|
||||||
#include <netinet/in.h>])
|
|
||||||
|
|
||||||
AC_CHECK_MEMBER(struct sockaddr_conn.sconn_len,
|
|
||||||
AC_DEFINE(HAVE_SCONN_LEN, 1, [Define this if your userland stack has sconn_len in sockaddr_conn struct.]),,
|
|
||||||
[#include "usrsctplib/usrsctp.h"])
|
|
||||||
|
|
||||||
AC_MSG_CHECKING(for socklen_t)
|
|
||||||
AC_TRY_COMPILE([#ifdef HAVE_SYS_TYPES_H
|
|
||||||
#include <sys/types.h>
|
|
||||||
#endif
|
|
||||||
#include <sys/socket.h>],
|
|
||||||
[socklen_t x; x = 1; return ((int)x);],
|
|
||||||
[AC_MSG_RESULT(yes)],
|
|
||||||
[AC_MSG_RESULT(int)
|
|
||||||
AC_DEFINE(socklen_t, int, [Define a type for socklen_t.])])
|
|
||||||
|
|
||||||
AC_CHECK_FILE(/dev/random,
|
|
||||||
AC_DEFINE([HAVE_DEV_RANDOM], [1],
|
|
||||||
[Define to 1 if you have the /dev/random file.]))
|
|
||||||
|
|
||||||
AC_CACHE_CHECK([whether the compiler provides atomic builtins], [ap_cv_atomic_builtins],
|
|
||||||
[AC_TRY_RUN([
|
|
||||||
int main()
|
|
||||||
{
|
|
||||||
unsigned long val = 1010, tmp, *mem = &val;
|
|
||||||
|
|
||||||
if (__sync_fetch_and_add(&val, 1010) != 1010 || val != 2020)
|
|
||||||
return 1;
|
|
||||||
|
|
||||||
tmp = val;
|
|
||||||
|
|
||||||
if (__sync_fetch_and_sub(mem, 1010) != tmp || val != 1010)
|
|
||||||
return 1;
|
|
||||||
|
|
||||||
if (__sync_sub_and_fetch(&val, 1010) != 0 || val != 0)
|
|
||||||
return 1;
|
|
||||||
|
|
||||||
tmp = 3030;
|
|
||||||
|
|
||||||
if (__sync_val_compare_and_swap(mem, 0, tmp) != 0 || val != tmp)
|
|
||||||
return 1;
|
|
||||||
|
|
||||||
if (__sync_lock_test_and_set(&val, 4040) != 3030)
|
|
||||||
return 1;
|
|
||||||
|
|
||||||
mem = &tmp;
|
|
||||||
|
|
||||||
if (__sync_val_compare_and_swap(&mem, &tmp, &val) != &tmp)
|
|
||||||
return 1;
|
|
||||||
|
|
||||||
__sync_synchronize();
|
|
||||||
|
|
||||||
if (mem != &val)
|
|
||||||
return 1;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}], [ap_cv_atomic_builtins=yes], [ap_cv_atomic_builtins=no], [ap_cv_atomic_builtins=no])])
|
|
||||||
|
|
||||||
if test "$ap_cv_atomic_builtins" = "yes"; then
|
|
||||||
AC_DEFINE(HAVE_ATOMIC_BUILTINS, 1, [Define if compiler provides atomic builtins])
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################################
|
|
||||||
#### Checks for library functions. ####
|
|
||||||
#######################################
|
|
||||||
|
|
||||||
AC_FUNC_VPRINTF
|
|
||||||
AC_CHECK_FUNCS(\
|
|
||||||
atexit \
|
|
||||||
gettimeofday \
|
|
||||||
memmove \
|
|
||||||
strerror \
|
|
||||||
inet_ntop inet_pton inet_aton \
|
|
||||||
sigaction sigwait sigsuspend \
|
|
||||||
stpcpy strcasecmp strtoul stricmp \
|
|
||||||
writev \
|
|
||||||
utime utimes sem_timedwait \
|
|
||||||
pthread_yield sched_yield \
|
|
||||||
getenv putenv setenv unsetenv \
|
|
||||||
)
|
|
||||||
|
|
||||||
AC_SEARCH_LIBS(gethostbyname, nsl)
|
|
||||||
AC_SEARCH_LIBS(gethostname, nsl)
|
|
||||||
AC_SEARCH_LIBS(socket, socket)
|
|
||||||
AC_SEARCH_LIBS(pthread_barrier_wait, pthread)
|
|
||||||
AC_SEARCH_LIBS(gnutls_global_set_log_level, gnutls)
|
|
||||||
|
|
||||||
AC_SEARCH_LIBS([sctp_sendmsg], [sctp], [have_sctp_lib=yes], [have_sctp_lib=no])
|
|
||||||
if test x$have_sctp_lib == xno; then
|
|
||||||
AC_SEARCH_LIBS([usrsctp_init], [usrsctp], [have_usrsctp_lib=yes], [have_usrsctp_lib=no])
|
|
||||||
if test x$have_usrsctp_lib == xno; then
|
|
||||||
AC_MSG_ERROR([You must install the SCTP libraries and development headers to enable SCTP support.])
|
|
||||||
else
|
|
||||||
AC_DEFINE([USE_USRSCTP], [1], [Define to 1 if you have the usrsctp library.])
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
AM_CONDITIONAL([USRSCTP], [test x$have_usrsctp_lib = xyes])
|
|
||||||
|
|
||||||
PKG_CHECK_MODULES([YAML], yaml-0.1 >= 0.1.4)
|
PKG_CHECK_MODULES([YAML], yaml-0.1 >= 0.1.4)
|
||||||
PKG_CHECK_MODULES([MONGOC], libmongoc-1.0 >= 1.3.1)
|
PKG_CHECK_MODULES([MONGOC], libmongoc-1.0 >= 1.3.1)
|
||||||
FREEDIAMETER_DIR=freeDiameter-1.2.1
|
FREEDIAMETER_DIR=freeDiameter-1.2.1
|
||||||
|
@ -418,18 +174,14 @@ AC_SUBST(FREEDIAMETER_DIR)
|
||||||
|
|
||||||
AC_CONFIG_SUBDIRS([lib/freeDiameter-1.2.1])
|
AC_CONFIG_SUBDIRS([lib/freeDiameter-1.2.1])
|
||||||
|
|
||||||
AC_CONFIG_FILES([lib/core/include/core.h])
|
AC_CONFIG_FILES([lib/base/Makefile])
|
||||||
AC_CONFIG_FILES([lib/core/src/Makefile])
|
AC_CONFIG_FILES([lib/asn1c/Makefile])
|
||||||
AC_CONFIG_FILES([lib/core/test/Makefile])
|
|
||||||
AC_CONFIG_FILES([lib/core/Makefile])
|
|
||||||
AC_CONFIG_FILES([lib/s1ap/asn1c/Makefile])
|
|
||||||
AC_CONFIG_FILES([lib/s1ap/Makefile])
|
|
||||||
AC_CONFIG_FILES([lib/nas/Makefile])
|
AC_CONFIG_FILES([lib/nas/Makefile])
|
||||||
AC_CONFIG_FILES([lib/fd/Makefile])
|
AC_CONFIG_FILES([lib/fd/Makefile])
|
||||||
AC_CONFIG_FILES([lib/gtp/Makefile])
|
AC_CONFIG_FILES([lib/gtp/Makefile])
|
||||||
AC_CONFIG_FILES([lib/ipfw/Makefile])
|
AC_CONFIG_FILES([lib/ipfw/Makefile])
|
||||||
AC_CONFIG_FILES([lib/Makefile])
|
AC_CONFIG_FILES([lib/Makefile])
|
||||||
AC_CONFIG_FILES([src/common/Makefile])
|
AC_CONFIG_FILES([src/app/Makefile])
|
||||||
AC_CONFIG_FILES([src/mme/Makefile])
|
AC_CONFIG_FILES([src/mme/Makefile])
|
||||||
AC_CONFIG_FILES([src/hss/Makefile])
|
AC_CONFIG_FILES([src/hss/Makefile])
|
||||||
AC_CONFIG_FILES([src/sgw/Makefile])
|
AC_CONFIG_FILES([src/sgw/Makefile])
|
||||||
|
@ -460,22 +212,23 @@ AC_CONFIG_FILES([support/newsyslog/nextepc.conf])
|
||||||
AC_CONFIG_FILES([support/newsyslog/Makefile])
|
AC_CONFIG_FILES([support/newsyslog/Makefile])
|
||||||
AC_CONFIG_FILES([support/Makefile])
|
AC_CONFIG_FILES([support/Makefile])
|
||||||
AC_CONFIG_FILES([test/sample.conf])
|
AC_CONFIG_FILES([test/sample.conf])
|
||||||
|
AC_CONFIG_FILES([test/sample-simple.conf])
|
||||||
AC_CONFIG_FILES([test/sample-volte.conf])
|
AC_CONFIG_FILES([test/sample-volte.conf])
|
||||||
AC_CONFIG_FILES([test/Makefile])
|
AC_CONFIG_FILES([test/Makefile])
|
||||||
AC_CONFIG_FILES([Makefile])
|
AC_CONFIG_FILES([Makefile])
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|
||||||
echo "
|
AC_MSG_NOTICE([NextEPC configuration:
|
||||||
NextEPC configuration
|
|
||||||
--------------------
|
version: ${PACKAGE_VERSION}
|
||||||
version : ${PACKAGE_VERSION}
|
compiler: ${CC}
|
||||||
host : ${host}
|
compiler flags: ${CFLAGS} ${OGSLIB_CFLAGS} ${MONGOC_CFLAGS}
|
||||||
source code location : ${srcdir}
|
linker flags: ${LDFLAGS} ${LIBS} ${OGSCORE_LIBS} ${OGSCRYPT_LIBS} ${MONGOC_LIBS}
|
||||||
compiler : ${CC}
|
path prefix: ${prefix}
|
||||||
compiler flags : ${CFLAGS} ${YAML_CFLAGS} ${MONGOC_CFLAGS}
|
binary file: ${BIN_DIR}/nextepc-epcd
|
||||||
linker flags : ${LDFLAGS} ${LIBS} ${YAML_LIBS} ${MONGOC_LIBS}
|
library directory: ${LIB_DIR}/nextepc
|
||||||
bin directory : ${BIN_DIR}
|
configuration prefix: ${SYSCONF_DIR}/nextepc
|
||||||
lib directory : ${LIB_DIR}/nextepc
|
configuration file: ${SYSCONF_DIR}/nextepc/nextepc.conf
|
||||||
config directory : ${SYSCONF_DIR}/nextepc
|
pid file: ${LOCALSTATE_DIR}/run/nextepc.pid
|
||||||
log directory : ${LOCALSTATE_DIR}/log/nextepc
|
logging file: ${LOCALSTATE_DIR}/log/nextepc.log
|
||||||
"
|
])
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
nextepc (0.4.0) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Integration with OGSLIB
|
||||||
|
|
||||||
|
-- Sukchan Lee <acetcom@gmail.com> Sat, 27 Apr 2019 14:34:15 +0000
|
||||||
|
|
||||||
nextepc (0.3.11~bionic) bionic; urgency=medium
|
nextepc (0.3.11~bionic) bionic; urgency=medium
|
||||||
|
|
||||||
* Bug Fixed
|
* Bug Fixed
|
||||||
|
|
|
@ -4,24 +4,27 @@ Section: net
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Build-Depends: debhelper (>= 9),
|
Build-Depends: debhelper (>= 9),
|
||||||
autotools-dev,
|
autotools-dev,
|
||||||
pkg-config,
|
|
||||||
git,
|
|
||||||
dh-autoreconf,
|
dh-autoreconf,
|
||||||
dh-systemd,
|
dh-systemd,
|
||||||
|
pkg-config,
|
||||||
|
autoconf,
|
||||||
|
automake,
|
||||||
|
libtool,
|
||||||
flex,
|
flex,
|
||||||
bison,
|
bison,
|
||||||
libsctp-dev,
|
ogslib-dev (>= 1.0.0),
|
||||||
libgnutls28-dev,
|
libgnutls28-dev,
|
||||||
libgcrypt-dev,
|
libgcrypt-dev,
|
||||||
libssl-dev,
|
libssl-dev,
|
||||||
libidn11-dev,
|
libidn11-dev,
|
||||||
libmongoc-dev,
|
libmongoc-dev,
|
||||||
libbson-dev,
|
libbson-dev,
|
||||||
libyaml-dev
|
libsctp-dev,
|
||||||
Standards-Version: 3.9.6
|
libyaml-dev,
|
||||||
Vcs-Browser: https://github.com/acetcom/nextepc
|
Standards-Version: 3.9.8
|
||||||
Vcs-Git: git://github.com/acetcom/nextepc
|
Vcs-Browser: https://github.com/open5gs/nextepc
|
||||||
Homepage: http://nextepc.org/
|
Vcs-Git: git://github.com/open5gs/nextepc
|
||||||
|
Homepage: https://open5gs.org/nextepc
|
||||||
|
|
||||||
Package: nextepc-core
|
Package: nextepc-core
|
||||||
Architecture: any
|
Architecture: any
|
||||||
|
@ -117,8 +120,7 @@ Description: Open Source based 3GPP EPC HSS (Home Subscriber Server)
|
||||||
Package: nextepc
|
Package: nextepc
|
||||||
Architecture: any
|
Architecture: any
|
||||||
Multi-Arch: same
|
Multi-Arch: same
|
||||||
Depends: ${shlibs:Depends},
|
Depends: ${misc:Depends},
|
||||||
${misc:Depends},
|
|
||||||
mongodb,
|
mongodb,
|
||||||
nextepc-core (= ${binary:Version}),
|
nextepc-core (= ${binary:Version}),
|
||||||
nextepc-mme (= ${binary:Version}),
|
nextepc-mme (= ${binary:Version}),
|
||||||
|
@ -132,3 +134,14 @@ Description: Open Source based 3GPP EPC (metapackage)
|
||||||
.
|
.
|
||||||
This is a metapackage that depends on all the nextepc parts.
|
This is a metapackage that depends on all the nextepc parts.
|
||||||
(MME, SGW, PGW, HSS, PCRF)
|
(MME, SGW, PGW, HSS, PCRF)
|
||||||
|
|
||||||
|
Package: nextepc-dbg
|
||||||
|
Architecture: any
|
||||||
|
Multi-Arch: same
|
||||||
|
Depends: ${misc:Depends},
|
||||||
|
nextepc (= ${binary:Version})
|
||||||
|
Description: Debug symbols for NextEPC
|
||||||
|
NextEPC is a C-language Open Source implementation of the 3GPP Evolved
|
||||||
|
Packet Core, i.e. the core network of an LTE network.
|
||||||
|
.
|
||||||
|
This package contains debug symbols for NextEPC.
|
||||||
|
|
|
@ -14,9 +14,15 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
||||||
%:
|
%:
|
||||||
dh $@ --with autoreconf --with systemd
|
dh $@ --with autoreconf --with systemd
|
||||||
|
|
||||||
|
override_dh_strip:
|
||||||
|
dh_strip --dbg-package=nextepc-dbg
|
||||||
|
|
||||||
override_dh_auto_test:
|
override_dh_auto_test:
|
||||||
sctp_exclude_list=; \
|
sctp_exclude_list=; \
|
||||||
if ! cat /proc/net/protocols | grep SCTP > /dev/null; then \
|
if ! cat /proc/net/protocols | grep SCTP > /dev/null; then \
|
||||||
sctp_exclude_list="-x testsctp"; \
|
sctp_exclude_list="-x sctp-test"; \
|
||||||
fi; \
|
fi; \
|
||||||
lib/core/test/testcore $$sctp_exclude_list || exit; \
|
test/testunit -f test/sample.conf $$sctp_exclude_list || exit; \
|
||||||
|
|
||||||
|
#override_dh_makeshlibs:
|
||||||
|
# dh_makeshlibs -V
|
||||||
|
|
|
@ -34,7 +34,23 @@ Docker running example
|
||||||
* Run WebUI
|
* Run WebUI
|
||||||
$ docker-compose up -d
|
$ docker-compose up -d
|
||||||
|
|
||||||
For Debian Package Release
|
For OpenSUSE Build Service Release
|
||||||
|
===========================================
|
||||||
|
|
||||||
|
* Build Package
|
||||||
|
$ ./build-aux/git-version-gen . > .tarball-version
|
||||||
|
$ dpkg-source -b .
|
||||||
|
$ rm -f .tarball-version
|
||||||
|
|
||||||
|
* Get Release Key
|
||||||
|
$ wget http://download.opensuse.org/repositories/home:/acetcom:/open5gs:/latest/xUbuntu_18.04/Release.key
|
||||||
|
$ sudo apt-key add Release.key
|
||||||
|
|
||||||
|
* Setup Repository
|
||||||
|
$ sudo sh -c "echo 'deb https://download.opensuse.org/repositories/home:/acetcom:/open5gs:/latest/xUbuntu_18.04/ ./' > /etc/apt/sources.list.d/open5gs-latest.list"
|
||||||
|
$ sudo apt-get update
|
||||||
|
|
||||||
|
For Launchpad Release
|
||||||
===========================================
|
===========================================
|
||||||
|
|
||||||
* Run Docker
|
* Run Docker
|
||||||
|
@ -58,7 +74,3 @@ export DEBEMAIL='acetcom@gmail.com'
|
||||||
* Build pckage
|
* Build pckage
|
||||||
$ dpkg-buildpackage
|
$ dpkg-buildpackage
|
||||||
|
|
||||||
For Mac OS X (SCTP-patch)
|
|
||||||
===========================================
|
|
||||||
* /Applications/Docker.app/Contents/Resources/moby
|
|
||||||
Update linuxkit-kernel, vmlinuz64
|
|
|
@ -9,8 +9,10 @@ RUN apt-get update && \
|
||||||
apt-get upgrade -y && \
|
apt-get upgrade -y && \
|
||||||
DEBIAN_FRONTEND=noninteractive \
|
DEBIAN_FRONTEND=noninteractive \
|
||||||
apt-get install -y --no-install-recommends \
|
apt-get install -y --no-install-recommends \
|
||||||
|
git-buildpackage \
|
||||||
debhelper \
|
debhelper \
|
||||||
devscripts \
|
devscripts \
|
||||||
|
osc \
|
||||||
dput \
|
dput \
|
||||||
dh-autoreconf \
|
dh-autoreconf \
|
||||||
dh-systemd \
|
dh-systemd \
|
|
@ -1,6 +1,15 @@
|
||||||
## Process this file with automake to produce Makefile.in
|
## Process this file with automake to produce Makefile.in
|
||||||
|
|
||||||
SUBDIRS = @FREEDIAMETER_DIR@ ipfw core s1ap nas fd gtp
|
SUBDIRS = @FREEDIAMETER_DIR@ ipfw
|
||||||
|
DIST_SUBDIRS = @FREEDIAMETER_DIR@ ipfw
|
||||||
|
|
||||||
|
if WITH_SRCLIB
|
||||||
|
SUBDIRS += ogslib
|
||||||
|
DIST_SUBDIRS += ogslib
|
||||||
|
endif
|
||||||
|
|
||||||
|
SUBDIRS += base asn1c nas fd gtp
|
||||||
|
DIST_SUBDIRS += base asn1c nas fd gtp
|
||||||
|
|
||||||
MAINTAINERCLEANFILES = Makefile.in
|
MAINTAINERCLEANFILES = Makefile.in
|
||||||
MOSTLYCLEANFILES = *.stackdump
|
MOSTLYCLEANFILES = *.stackdump
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -29,11 +29,14 @@ int get_asn1c_environment_version(void); /* Run-time version */
|
||||||
#define REALLOC(oldptr, size) realloc(oldptr, size)
|
#define REALLOC(oldptr, size) realloc(oldptr, size)
|
||||||
#define FREEMEM(ptr) free(ptr)
|
#define FREEMEM(ptr) free(ptr)
|
||||||
#else
|
#else
|
||||||
#include "core_pkbuf.h"
|
extern void *ogs_malloc(size_t size);
|
||||||
#define CALLOC(nmemb, size) core_calloc(nmemb, size)
|
extern void ogs_free(void *ptr);
|
||||||
#define MALLOC(size) core_malloc(size)
|
extern void *ogs_calloc(size_t nmemb, size_t size);
|
||||||
#define REALLOC(oldptr, size) core_realloc(oldptr, size)
|
extern void *ogs_realloc(void *ptr, size_t size);
|
||||||
#define FREEMEM(ptr) CORE_FREE(ptr)
|
#define CALLOC(nmemb, size) ogs_calloc(nmemb, size)
|
||||||
|
#define MALLOC(size) ogs_malloc(size)
|
||||||
|
#define REALLOC(oldptr, size) ogs_realloc(oldptr, size)
|
||||||
|
#define FREEMEM(ptr) ogs_free(ptr)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define asn_debug_indent 0
|
#define asn_debug_indent 0
|
|
@ -9,7 +9,11 @@
|
||||||
#define ASN_SYSTEM_H
|
#define ASN_SYSTEM_H
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#if 0 /* modified by acetcom */
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
#else
|
||||||
|
#include "base/base.h"
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef _DEFAULT_SOURCE
|
#ifndef _DEFAULT_SOURCE
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue