aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorrainbow_0206 <jiangwenjiang@huawei.com>2018-07-19 20:13:23 +0800
committeryalei wang <wylandrea@gmail.com>2018-07-26 11:29:42 +0000
commit9d051a84fff2b23151b4addbcf204c21b22ed740 (patch)
tree78ac8e0fe5796dfede72cb2cf0db90fd051d2044 /pkg
parentbc4785071529bcfe5bac2aea852c283f4f47f8f8 (diff)
Feat: Deb package for ubuntu
Change-Id: Ic64808af9bb3b7af8f66f1c0a8d681d88b3724a3 Signed-off-by: rainbow_0206 <jiangwenjiang@huawei.com>
Diffstat (limited to 'pkg')
-rw-r--r--pkg/deb/control13
-rw-r--r--pkg/rpm/dmm.spec48
2 files changed, 61 insertions, 0 deletions
diff --git a/pkg/deb/control b/pkg/deb/control
new file mode 100644
index 0000000..c220c72
--- /dev/null
+++ b/pkg/deb/control
@@ -0,0 +1,13 @@
+Package: dmm
+Version: 18.04
+Section: tuils
+Priority: optional
+Depends: libc6, libstdc++6, libgcc1
+Suggests:
+Architecture: amd64
+Installed-Size:
+Maintainer: jorth
+Original-Maintainer:
+Provides:
+Description: DMM is a framework for protocol stack.
+Homepage: https://gerrit.fd.io/r/dmm
diff --git a/pkg/rpm/dmm.spec b/pkg/rpm/dmm.spec
new file mode 100644
index 0000000..1022523
--- /dev/null
+++ b/pkg/rpm/dmm.spec
@@ -0,0 +1,48 @@
+Name: dmm
+Version: 18.04
+Release: 1%{?dist}
+Summary: DMM Project
+
+License: GPL
+URL: https://gerrit.fd.io/r/dmm
+Source: %{name}-%{version}.tar.gz
+
+BuildRequires: glibc, libstdc++, libgcc, numactl-libs
+BuildRequires: dpdk >= 18.02, dpdk-devel >= 18.02
+
+%description
+The DMM framework provides posix socket APIs to the application. A protocol
+stack could be plugged into the DMM. DMM will choose the most suitable stack
+for the application.
+
+%prep
+%setup -q
+
+
+%build
+cd build/
+cmake ..
+make -j 8
+
+%install
+cd ../../BUILDROOT
+mkdir -p %{name}-%{version}-%{release}.x86_64/usr/bin
+mkdir -p %{name}-%{version}-%{release}.x86_64/usr/lib64
+
+install -c ../BUILD/%{name}-%{version}/release/bin/kc_common %{name}-%{version}-%{release}.x86_64/usr/bin
+install -c ../BUILD/%{name}-%{version}/release/bin/ks_epoll %{name}-%{version}-%{release}.x86_64/usr/bin
+install -c ../BUILD/%{name}-%{version}/release/bin/vc_common %{name}-%{version}-%{release}.x86_64/usr/bin
+install -c ../BUILD/%{name}-%{version}/release/bin/vs_epoll %{name}-%{version}-%{release}.x86_64/usr/bin
+install -c ../BUILD/%{name}-%{version}/release/bin/ks_select %{name}-%{version}-%{release}.x86_64/usr/bin
+install -c ../BUILD/%{name}-%{version}/release/bin/vs_select %{name}-%{version}-%{release}.x86_64/usr/bin
+
+install -c ../BUILD/%{name}-%{version}/release/lib64/libdmm_api.a %{name}-%{version}-%{release}.x86_64/usr/lib64
+install -c ../BUILD/%{name}-%{version}/release/lib64/libnStackAPI.so %{name}-%{version}-%{release}.x86_64/usr/lib64
+
+%files
+/usr/bin/*
+/usr/lib64/*
+%doc
+
+
+%changelog