commit
adadd9807f
36
README.en.md
36
README.en.md
@ -1,36 +0,0 @@
|
||||
# xdp-tools
|
||||
|
||||
#### Description
|
||||
Utilities and example programs for use with XDP
|
||||
|
||||
#### Software Architecture
|
||||
Software architecture description
|
||||
|
||||
#### Installation
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Instructions
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Contribution
|
||||
|
||||
1. Fork the repository
|
||||
2. Create Feat_xxx branch
|
||||
3. Commit your code
|
||||
4. Create Pull Request
|
||||
|
||||
|
||||
#### Gitee Feature
|
||||
|
||||
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
||||
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
||||
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
||||
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
||||
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
||||
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||
37
README.md
37
README.md
@ -1,37 +0,0 @@
|
||||
# xdp-tools
|
||||
|
||||
#### 介绍
|
||||
Utilities and example programs for use with XDP
|
||||
|
||||
#### 软件架构
|
||||
软件架构说明
|
||||
|
||||
|
||||
#### 安装教程
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 使用说明
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 参与贡献
|
||||
|
||||
1. Fork 本仓库
|
||||
2. 新建 Feat_xxx 分支
|
||||
3. 提交代码
|
||||
4. 新建 Pull Request
|
||||
|
||||
|
||||
#### 码云特技
|
||||
|
||||
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
||||
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
|
||||
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
|
||||
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
|
||||
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
||||
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||
BIN
v1.0.1.tar.gz
Normal file
BIN
v1.0.1.tar.gz
Normal file
Binary file not shown.
113
xdp-tools.spec
Normal file
113
xdp-tools.spec
Normal file
@ -0,0 +1,113 @@
|
||||
Name: xdp-tools
|
||||
Version: 1.0.1
|
||||
Release: 0%{?dist}
|
||||
Summary: Utilities and example programs for use with XDP
|
||||
%global _soversion 1.0.0
|
||||
|
||||
License: GPLv2
|
||||
URL: https://github.com/xdp-project/%{name}
|
||||
Source0: https://github.com/xdp-project/%{name}/archive/v%{version}.tar.gz
|
||||
|
||||
BuildRequires: libbpf-devel
|
||||
BuildRequires: elfutils-libelf-devel
|
||||
BuildRequires: zlib-devel
|
||||
BuildRequires: libpcap-devel
|
||||
BuildRequires: clang >= 10.0.0
|
||||
BuildRequires: llvm >= 10.0.0
|
||||
BuildRequires: make
|
||||
BuildRequires: gcc
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: m4
|
||||
BuildRequires: emacs-nox
|
||||
BuildRequires: wireshark-cli
|
||||
|
||||
# Always keep xdp-tools and libxdp packages in sync
|
||||
Requires: libxdp = %{version}-%{release}
|
||||
|
||||
# find-debuginfo produces empty debugsourcefiles.list
|
||||
# disable the debug package to avoid rpmbuild error'ing out because of this
|
||||
%global debug_package %{nil}
|
||||
%global _hardened_build 1
|
||||
|
||||
%description
|
||||
Utilities and example programs for use with XDP
|
||||
|
||||
%package -n libxdp
|
||||
Summary: XDP helper library
|
||||
Requires: kernel-headers
|
||||
|
||||
%package -n libxdp-devel
|
||||
Summary: Development files for libxdp
|
||||
Requires: kernel-headers
|
||||
Requires: libxdp = %{version}-%{release}
|
||||
|
||||
%package -n libxdp-static
|
||||
Summary: Static library files for libxdp
|
||||
Requires: kernel-headers
|
||||
Requires: libxdp-devel = %{version}-%{release}
|
||||
|
||||
%description -n libxdp
|
||||
The libxdp package contains the libxdp library for managing XDP programs,
|
||||
used by the %{name} package
|
||||
|
||||
%description -n libxdp-devel
|
||||
The libxdp-devel package contains headers used for building XDP programs using
|
||||
libxdp.
|
||||
|
||||
%description -n libxdp-static
|
||||
The libxdp-static package contains the static library version of libxdp.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n %{name}-%{version}
|
||||
|
||||
|
||||
%build
|
||||
export CFLAGS='%{build_cflags}'
|
||||
export LDFLAGS='%{build_ldflags}'
|
||||
export LIBDIR='%{_libdir}'
|
||||
export CLANG=%{_bindir}/clang
|
||||
export LLC=%{_bindir}/llc
|
||||
export PRODUCTION=1
|
||||
export DYNAMIC_LIBXDP=1
|
||||
export FORCE_SYSTEM_LIBBPF=1
|
||||
export FORCE_EMACS=1
|
||||
./configure
|
||||
make %{?_smp_mflags} V=1
|
||||
|
||||
%install
|
||||
export DESTDIR='%{buildroot}'
|
||||
export SBINDIR='%{_sbindir}'
|
||||
export LIBDIR='%{_libdir}'
|
||||
export MANDIR='%{_mandir}'
|
||||
export DATADIR='%{_datadir}'
|
||||
export HDRDIR='%{_includedir}/xdp'
|
||||
make install V=1
|
||||
|
||||
%files
|
||||
%{_sbindir}/xdp-filter
|
||||
%{_sbindir}/xdp-loader
|
||||
%{_sbindir}/xdpdump
|
||||
%{_mandir}/man8/*
|
||||
%{_libdir}/bpf/xdpfilt_*.o
|
||||
%{_libdir}/bpf/xdpdump_*.o
|
||||
%{_datadir}/xdp-tools/
|
||||
%license LICENSE
|
||||
|
||||
%files -n libxdp
|
||||
%{_libdir}/libxdp.so.1
|
||||
%{_libdir}/libxdp.so.%{_soversion}
|
||||
%{_libdir}/bpf/xdp-dispatcher.o
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%files -n libxdp-static
|
||||
%{_libdir}/libxdp.a
|
||||
|
||||
%files -n libxdp-devel
|
||||
%{_includedir}/xdp/*.h
|
||||
%{_libdir}/libxdp.so
|
||||
%{_libdir}/pkgconfig/libxdp.pc
|
||||
|
||||
%changelog
|
||||
* Tue Oct 20 2020 Hubble Zhu <hubble_zhu@qq.com> 1.0.1-0
|
||||
- Initial package
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user