Merge "intel-iavf: add initial version for debian"

This commit is contained in:
Zuul 2021-11-24 16:58:40 +00:00 committed by Gerrit Code Review
commit 5a1645a80b
7 changed files with 120 additions and 0 deletions

View File

@ -0,0 +1,5 @@
iavf (4.2.7-1) unstable; urgency=medium
* Initial release
-- Li Zhou <li.zhou@windriver.com> Thu, 01 Jul 2021 10:17:20 +0800

View File

@ -0,0 +1,14 @@
Source: iavf
Section: net
Priority: optional
Maintainer: StarlingX Developers <starlingx-discuss@lists.starlingx.io>
Build-Depends: debhelper-compat (= 13), linux-headers-5.10.0-6-amd64, linux-kbuild-5.10
Standards-Version: 4.5.1
Rules-Requires-Root: no
Package: iavf
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: This package provides the iavf kernel module(s).
This package provides the iavf kernel module(s) built
for the Linux kernel using the amd64 processors.

View File

@ -0,0 +1,26 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: iavf
Upstream-Contact: Intel Corporation
Source: https://sourceforge.net/projects/e1000/files/iavf%20stable/4.2.7/iavf-4.2.7.tar.gz/download
Files: *
Copyright: (c) 2018 - 2021 Intel Corporation.
License: GPL-2
This program is free software; you can redistribute it and/or modify it under
the terms and conditions of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope 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, write to the Free Software Foundation, Inc., 51 Franklin
St - Fifth Floor, Boston, MA 02110-1301 USA.
The full GNU General Public License is included in this distribution in the
file called "COPYING".
On Debian-based systems the full text of the GNU General Public License
version 2 license can be found in `/usr/share/common-licenses/GPL-2'.

View File

@ -0,0 +1 @@
iavf

View File

@ -0,0 +1,62 @@
#!/usr/bin/make -f
#
# Copyright (c) 2021 Wind River Systems, Inc.
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. The ASF licenses this
# file to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1
%:
dh $@
WITH_MOD_SIGN ?= 0
kheaders_name=$(shell ls /usr/src | grep linux-headers | grep amd64)
export KSRC=/usr/src/$(kheaders_name)
kversion=$(shell echo $(kheaders_name) | sed 's/linux-headers-//g')
kmod_name=iavf
version=$(shell dpkg-parsechangelog | sed -n 's/^Version: *\([^-]\+\)-.\+/\1/p')
_sysconfdir=/etc
_defaultdocdir=/usr/share/doc
_mandir=/usr/share/man
ifeq ($(WITH_MOD_SIGN),1)
_keydir ?= /usr/src/kernels/$(kversion)/
privkey ?= $(_keydir)/signing_key.priv
pubkey ?= $(_keydir)/signing_key.x509
endif
override_dh_auto_install:
dh_install src/$(kmod_name).ko /lib/modules/$(kversion)/extra/$(kmod_name)/
dh_install pci.updates $(_defaultdocdir)/kmod-$(kmod_name)-$(version)/
dh_install README $(_defaultdocdir)/kmod-$(kmod_name)-$(version)/
dh_install $(kmod_name).7 $(_mandir)/man7/
dh_install debian/extra/iavf.conf $(_sysconfdir)/modules-load.d/
override_dh_strip:
dh_strip
find debian -name '*.ko' | xargs strip -g
ifeq ($(WITH_MOD_SIGN),1)
@echo "Sign the modules!"
/usr/lib/linux-kbuild-*/scripts/sign-file sha256 $(privkey) $(pubkey) \
./debian/$(kmod_name)/lib/modules/$(kversion)/extra/$(kmod_name)/*.ko
endif
override_dh_auto_build:
dh_auto_build -D ./src

View File

@ -0,0 +1 @@
3.0 (quilt)

View File

@ -0,0 +1,11 @@
---
debver: 4.2.7
debname: iavf
dl_path:
name: iavf-4.2.7.tar.gz
url: "https://sourceforge.net/projects/e1000/files/iavf%20stable/\
4.2.7/iavf-4.2.7.tar.gz/download"
md5sum: 95052de96ae2084922ef681e30f18e22
revision:
dist: $STX_DIST
PKG_GITREVCOUNT: true