File change-name.patch of Package libsrtp2-linphone
diff -ru orig/CMakeLists.txt mod/CMakeLists.txt
--- orig/CMakeLists.txt 2023-05-16 13:20:15.000000000 +0200
+++ mod/CMakeLists.txt 2024-03-07 08:34:31.297686771 +0100
@@ -6,7 +6,7 @@
cmake_policy(SET CMP0077 NEW)
endif()
-project(libsrtp2 VERSION 2.4.2 LANGUAGES C)
+project(libsrtp2-linphone VERSION 2.4.2 LANGUAGES C)
# For Cmake version < 3.12, CMAKE_PROJECT_VERSION is not supported, set it
if(NOT CMAKE_PROJECT_VERSION)
diff -ru orig/configure mod/configure
--- orig/configure 2023-05-16 13:20:15.000000000 +0200
+++ mod/configure 2024-03-07 08:34:31.301020122 +0100
@@ -1337,7 +1337,7 @@
--infodir=DIR info documentation [DATAROOTDIR/info]
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
--mandir=DIR man documentation [DATAROOTDIR/man]
- --docdir=DIR documentation root [DATAROOTDIR/doc/libsrtp2]
+ --docdir=DIR documentation root [DATAROOTDIR/doc/libsrtp2-linphone]
--htmldir=DIR html documentation [DOCDIR]
--dvidir=DIR dvi documentation [DOCDIR]
--pdfdir=DIR pdf documentation [DOCDIR]
Only in mod/: libsrtp2-linphone.pc.in
diff -ru orig/libsrtp2.pc.in mod/libsrtp2.pc.in
--- orig/libsrtp2.pc.in 2023-05-16 13:20:15.000000000 +0200
+++ mod/libsrtp2.pc.in 2024-03-07 08:36:22.418266551 +0100
@@ -7,6 +7,6 @@
Version: @PACKAGE_VERSION@
Description: Library for SRTP (Secure Realtime Transport Protocol)
-Libs: -L${libdir} -lsrtp2
+Libs: -L${libdir} -lsrtp2-linphone
Libs.private: @LIBS@
Cflags: -I${includedir}
diff -ru orig/Makefile.in mod/Makefile.in
--- orig/Makefile.in 2023-05-16 13:20:15.000000000 +0200
+++ mod/Makefile.in 2024-03-07 08:34:31.304353472 +0100
@@ -8,8 +8,8 @@
# runtest runs test applications
# runtest-valgrind runs test applications with valgrind
# test builds test applications
-# libsrtp2.a static library implementing srtp
-# libsrtp2.so shared library implementing srtp
+# libsrtp2-linphone.a static library implementing srtp
+# libsrtp2-linphone.so shared library implementing srtp
# clean removes objects, libs, and executables
# distribution cleans and builds a .tgz
# tags builds etags file from all .c and .h files
@@ -55,14 +55,14 @@
ifeq (1, $(USE_EXTERNAL_CRYPTO))
cd test; $(CRYPTO_LIBDIR_FORWARD) $(abspath $(srcdir))/test/rtpw_test_gcm.sh -w $(abspath $(srcdir))/test/words.txt >/dev/null
endif
- @echo "libsrtp2 test applications passed."
+ @echo "libsrtp2-linphone test applications passed."
$(MAKE) -C crypto runtest
runtest-valgrind: test
- @echo "running libsrtp2 test applications... (valgrind)"
+ @echo "running libsrtp2-linphone test applications... (valgrind)"
valgrind --error-exitcode=1 --leak-check=full test/test_srtp$(EXE) -v >/dev/null
valgrind --error-exitcode=1 --leak-check=full test/srtp_driver$(EXE) -v >/dev/null
- @echo "libsrtp2 test applications passed. (valgrind)"
+ @echo "libsrtp2-linphone test applications passed. (valgrind)"
# makefile variables
@@ -78,7 +78,7 @@
LIBS = @LIBS@
LDFLAGS = -L. @LDFLAGS@
COMPILE = $(CC) $(DEFS) $(INCDIR) $(CPPFLAGS) $(CFLAGS)
-SRTPLIB = -lsrtp2
+SRTPLIB = -lsrtp2-linphone
PCAP_LIB = @PCAP_LIB@
AR = @AR@
@@ -103,7 +103,7 @@
bindir = @bindir@
pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = libsrtp2.pc
+pkgconfig_DATA = libsrtp2-linphone.pc
SHAREDLIBVERSION = 1
ifneq (,$(or $(findstring linux,@host@), $(findstring gnu,@host@)))
@@ -158,22 +158,22 @@
srtpobj = srtp/srtp.o
-libsrtp2.a: $(srtpobj) $(cryptobj) $(gdoi)
- $(AR) cr libsrtp2.a $^
- $(RANLIB) libsrtp2.a
+libsrtp2-linphone.a: $(srtpobj) $(cryptobj) $(gdoi)
+ $(AR) cr libsrtp2-linphone.a $^
+ $(RANLIB) libsrtp2-linphone.a
-libsrtp2.$(SHAREDLIBSUFFIX): $(srtpobj) $(cryptobj) $(gdoi)
+libsrtp2-linphone.$(SHAREDLIBSUFFIX): $(srtpobj) $(cryptobj) $(gdoi)
$(CC) -shared -o $@ $(SHAREDLIB_LDFLAGS) \
$^ $(LDFLAGS) $(LIBS)
if [ -n "$(SHAREDLIBVERSION)" ]; then \
- ln -sfn $@ libsrtp2.$(SHAREDLIBSUFFIXNOVER); \
+ ln -sfn $@ libsrtp2-linphone.$(SHAREDLIBSUFFIXNOVER); \
fi
-shared_library: libsrtp2.$(SHAREDLIBSUFFIX)
+shared_library: libsrtp2-linphone.$(SHAREDLIBSUFFIX)
-libsrtp2.so: $(srtpobj) $(cryptobj)
- $(CC) -shared -Wl,-soname,libsrtp2.so \
- -o libsrtp2.so $^ $(LDFLAGS)
+libsrtp2-linphone.so: $(srtpobj) $(cryptobj)
+ $(CC) -shared -Wl,-soname,libsrtp2-linphone.so \
+ -o libsrtp2-linphone.so $^ $(LDFLAGS)
# test applications
ifneq (1, $(USE_EXTERNAL_CRYPTO))
@@ -193,7 +193,7 @@
testapp += test/rtp_decoder$(EXE)
endif
-$(testapp): libsrtp2.a
+$(testapp): libsrtp2-linphone.a
test/rtpw$(EXE): test/rtpw.c test/rtp.c test/util.c test/getopt_s.c \
crypto/math/datatypes.c
diff -ru orig/meson.build mod/meson.build
--- orig/meson.build 2023-05-16 13:20:15.000000000 +0200
+++ mod/meson.build 2024-03-07 08:36:57.078447475 +0100
@@ -1,4 +1,4 @@
-project('libsrtp2', 'c', version: '2.4.2',
+project('libsrtp2-linphone', 'c', version: '2.4.2',
meson_version: '>= 0.52.0',
default_options: ['buildtype=debugoptimized'])
@@ -238,7 +238,7 @@
'crypto/include/cipher.h',
'crypto/include/crypto_types.h',
)
-install_headers(public_headers, subdir : 'srtp2')
+install_headers(public_headers, subdir : 'srtp2-linphone')
config_incs = include_directories('.')
crypto_incs = include_directories('crypto/include')
@@ -247,14 +247,14 @@
default_library = get_option('default_library')
-libsrtp2_static = static_library('srtp2', sources, ciphers_sources, hashes_sources,
+libsrtp2_static = static_library('srtp2-linphone', sources, ciphers_sources, hashes_sources,
kernel_sources, math_sources, replay_sources,
dependencies: [srtp2_deps, syslibs],
include_directories: [crypto_incs, srtp2_incs],
install: default_library != 'shared')
if default_library != 'static'
- libsrtp2 = shared_library('srtp2',
+ libsrtp2 = shared_library('srtp2-linphone',
dependencies: [srtp2_deps, syslibs],
soversion : soversion,
vs_module_defs: 'srtp.def',