summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-09-18 09:39:44 +0000
committerCoprDistGit <infra@openeuler.org>2025-09-18 09:39:44 +0000
commit1d9fb202351ac3dc6d315326dcd41feceec1bdda (patch)
treed6b4da4063dcada5d772146b549d8636be3a1f5f
parent5bba7a2b38153e65c56ad750ca7f23dc71fde9e3 (diff)
-rw-r--r--.gitignore1
-rw-r--r--mptcpd.spec90
-rw-r--r--sources1
3 files changed, 92 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..1048c4f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/mptcpd-0.13.tar.gz
diff --git a/mptcpd.spec b/mptcpd.spec
new file mode 100644
index 0000000..f2fceef
--- /dev/null
+++ b/mptcpd.spec
@@ -0,0 +1,90 @@
+Summary: Multipath TCP daemon
+Name: mptcpd
+Version: 0.13
+Release: 1%{?dist}
+License: GPL-2.0-or-later AND BSD-3-Clause
+URL: https://multipath-tcp.org
+Requires(post): systemd
+Requires(preun): systemd
+Requires(postun): systemd
+BuildRequires: make
+BuildRequires: gcc
+BuildRequires: libtool
+BuildRequires: automake
+BuildRequires: autoconf
+BuildRequires: autoconf-archive
+BuildRequires: libell-devel
+BuildRequires: systemd-units
+BuildRequires: systemd-rpm-macros
+
+Source0: https://github.com/multipath-tcp/mptcpd/archive/v%{version}/%{name}-%{version}.tar.gz
+
+%description
+The Multipath TCP Daemon is a daemon for Linux based operating systems that
+performs multipath TCP path management related operations in user space. It
+interacts with the Linux kernel through a generic netlink connection to track
+per-connection information (e.g. available remote addresses), available network
+interfaces, request new MPTCP subflows, handle requests for subflows, etc.
+
+%package devel
+Summary: MPTCP path manager header files
+Group: Development/Libraries
+Requires: pkgconfig
+Requires: %{name}%{?_isa} = %{version}-%{release}
+License: BSD-3-Clause
+
+%description devel
+Header files for adding MPTCP path manager support to applications
+
+%prep
+%autosetup -p1
+
+%build
+autoreconf --install --symlink --force
+%configure --enable-debug=info
+%make_build V=1
+
+%install
+install -d %{buildroot}/%{_libexecdir}
+install -d %{buildroot}/%{_mandir}/man8
+install -d %{buildroot}/%{_sysconfdir}/%{name}
+install -d %{buildroot}/%{_unitdir}
+install -d %{buildroot}/%{_libdir}/%{name}
+install -d %{buildroot}/%{_includedir}/%{name}
+%make_install
+sed -i '/^# addr-flags=subflow/s/^# //g' %{buildroot}/%{_sysconfdir}/%{name}/%{name}.conf
+sed -i '/^# notify-flags=existing,skip_link_local,skip_loopback/s/^# //g' %{buildroot}/%{_sysconfdir}/%{name}/%{name}.conf
+find %{buildroot} -name '*.la' -exec rm -f {} ';'
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+%systemd_postun mptcp.service
+
+%files
+%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
+%dir %{_sysconfdir}/%{name}
+%dir %{_libdir}/%{name}
+%dir %{_libdir}/mptcpize
+%{_libdir}/libmptcpd.so.*
+%{_libdir}/%{name}/*.so
+%{_libdir}/mptcpize/libmptcpwrap.so*
+%{_libexecdir}/%{name}
+%{_libexecdir}/mptcp-get-debug
+%{_bindir}/mptcpize
+%{_unitdir}/mptcp.service
+%{_mandir}/man8/%{name}.8.gz
+%{_mandir}/man8/mptcpize.8.gz
+# todo add %doc
+%license COPYING
+
+%files devel
+%doc COPYING
+%dir %{_includedir}/%{name}
+%{_libdir}/*.so
+%{_includedir}/mptcpd/*.h
+%{_libdir}/pkgconfig/mptcpd.pc
+
+%changelog
+* Fri May 9 2025 Geliang Tang <tanggeliang@kylinos.cn> - 0.13-1
+- initial build
diff --git a/sources b/sources
new file mode 100644
index 0000000..5eefd0a
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+8e04ad72b452283e1101581c44fb27d3 mptcpd-0.13.tar.gz