Merge pull request 'Add debian packaging' (#1) from osmith/rtl8168-eeprom:osmith/debian into master

Reviewed-on: #1
This commit is contained in:
Harald Welte 2022-05-16 12:07:41 +00:00
commit dbac2a5254
9 changed files with 67 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
/rtl8168-eeprom
/rtl8168-eeprom.o

18
debian/changelog vendored Normal file
View File

@ -0,0 +1,18 @@
rtl8168-eeprom (1.0.2) unstable; urgency=medium
* Query PCI_FILL_{BASES,SIZES} in pci_fill_info too
-- Oliver Smith <osmith@sysmocom.de> Mon, 16 May 2022 14:05:15 +0200
rtl8168-eeprom (1.0.1) unstable; urgency=medium
* Fix missing pci_fill_info()
* Exit with error if no device was found
-- Oliver Smith <osmith@sysmocom.de> Mon, 16 May 2022 10:49:48 +0200
rtl8168-eeprom (1.0.0) unstable; urgency=medium
* Initial debian packaging.
-- Oliver Smith <osmith@sysmocom.de> Mon, 09 May 2022 16:28:19 +0200

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
10

14
debian/control vendored Normal file
View File

@ -0,0 +1,14 @@
Source: rtl8168-eeprom
Section: devel
Priority: optional
Maintainer: Oliver Smith <osmith@sysmocom.de>
Standards-Version: 4.5.0
Build-Depends: debhelper (>= 10),
gcc,
libpci-dev,
pkg-config
Homepage: https://gitea.sysmocom.de/sysmocom/rtl8168-eeprom
Package: rtl8168-eeprom
Architecture: any
Description: Tool to set MAC address in EEPROM of RTL8168/8111E devices

23
debian/copyright vendored Normal file
View File

@ -0,0 +1,23 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: rtl8168-eeprom
Files: *
Copyright: Copyright 2015 Harald Welte <hwelte@sysmocom.de>
License: GPL-2+
License: GPL-2+
This program is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later
version.
.
This program is distributed in the hope that 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.
.
On Debian systems, the full text of the GNU General Public
License version 2 can be found in the file
`/usr/share/common-licenses/GPL-2'.

1
debian/rtl8168-eeprom.install vendored Normal file
View File

@ -0,0 +1 @@
/rtl8168-eeprom /usr/bin/

4
debian/rules vendored Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/make -f
%:
dh $@

1
debian/source/format vendored Normal file
View File

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

View File

@ -466,6 +466,7 @@ static void iterate_devices(struct pci_access *pa, char *filter_id, char *filter
continue;
/* our own clumsy implementation of filtering */
pci_fill_info(p, PCI_FILL_IDENT | PCI_FILL_BASES | PCI_FILL_SIZES);
if (p->vendor_id != 0x10ec || p->device_id != 0x8168)
continue;
@ -497,6 +498,8 @@ static void iterate_devices(struct pci_access *pa, char *filter_id, char *filter
if (new_mac)
exit(0);
}
die("no matching device found!\n");
}
int main(int argc, char **argv)