hwinfo: update to 21.67

This commit is contained in:
Leonid Plyushch 2019-09-19 16:21:09 +03:00 committed by Yaksh Bariya
parent c2ff6696f2
commit bf50f50b99
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581
2 changed files with 204 additions and 20 deletions

View File

@ -1,6 +1,6 @@
diff -uNr hwinfo-21.60/Makefile hwinfo-21.60.mod/Makefile
--- hwinfo-21.60/Makefile 2018-10-17 16:23:47.000000000 +0300
+++ hwinfo-21.60.mod/Makefile 2019-06-29 01:57:27.596632042 +0300
diff -uNr hwinfo-21.67/Makefile hwinfo-21.67.mod/Makefile
--- hwinfo-21.67/Makefile 2019-07-19 16:56:55.000000000 +0300
+++ hwinfo-21.67.mod/Makefile 2019-09-19 16:06:38.975880821 +0300
@@ -22,11 +22,7 @@
include Makefile.common
@ -14,7 +14,7 @@ diff -uNr hwinfo-21.60/Makefile hwinfo-21.60.mod/Makefile
ULIBDIR = $(LIBDIR)
# ia64
@@ -102,26 +98,26 @@
@@ -102,11 +98,11 @@
@cd doc ; doxygen libhd.doxy
install:
@ -23,28 +23,29 @@ diff -uNr hwinfo-21.60/Makefile hwinfo-21.60.mod/Makefile
- install -m 755 hwinfo $(DESTDIR)/usr/sbin
- install -m 755 src/ids/check_hd $(DESTDIR)/usr/sbin
- install -m 755 src/ids/convert_hd $(DESTDIR)/usr/sbin
+ install -d -m 755 $(DESTDIR)/bin $(DESTDIR)$(ULIBDIR) \
+ install -d -m 755 $(DESTDIR)/bin $(DESTDIR)/usr/bin $(DESTDIR)$(ULIBDIR) \
+ $(DESTDIR)$(ULIBDIR)/pkgconfig $(DESTDIR)/include
+ install -m 755 hwinfo $(DESTDIR)/bin/
+ install -m 755 src/ids/check_hd $(DESTDIR)/bin/
+ install -m 755 src/ids/convert_hd $(DESTDIR)/bin/
+ install -m 755 hwinfo $(DESTDIR)/bin
+ install -m 755 src/ids/check_hd $(DESTDIR)/bin
+ install -m 755 src/ids/convert_hd $(DESTDIR)/bin
if [ -f $(LIBHD_SO) ] ; then \
- install $(LIBHD_SO) $(DESTDIR)$(ULIBDIR) ; \
+ install $(LIBHD_SO) $(DESTDIR)$(ULIBDIR)/ ; \
install $(LIBHD_SO) $(DESTDIR)$(ULIBDIR) ; \
ln -snf $(LIBHD_NAME) $(DESTDIR)$(ULIBDIR)/$(LIBHD_SONAME) ; \
ln -snf $(LIBHD_SONAME) $(DESTDIR)$(ULIBDIR)/$(LIBHD_BASE).so ; \
else \
@@ -115,15 +111,15 @@
install -m 644 $(LIBHD) $(DESTDIR)$(ULIBDIR) ; \
fi
- install -m 644 hwinfo.pc $(DESTDIR)$(ULIBDIR)/pkgconfig
install -m 644 hwinfo.pc $(DESTDIR)$(ULIBDIR)/pkgconfig
- install -m 644 src/hd/hd.h $(DESTDIR)/usr/include
- perl -pi -e "s/define\s+HD_VERSION\b.*/define HD_VERSION\t\t$(LIBHD_MAJOR_VERSION)/" $(DESTDIR)/usr/include/hd.h
- perl -pi -e "s/define\s+HD_MINOR_VERSION\b.*/define HD_MINOR_VERSION\t$(LIBHD_MINOR_VERSION)/" $(DESTDIR)/usr/include/hd.h
- install -m 755 getsysinfo $(DESTDIR)/usr/sbin
- install -m 755 src/isdn/cdb/mk_isdnhwdb $(DESTDIR)/usr/sbin
- install -d -m 755 $(DESTDIR)/usr/share/hwinfo
+ install -m 644 hwinfo.pc $(DESTDIR)$(ULIBDIR)/pkgconfig/
+ install -m 644 src/hd/hd.h $(DESTDIR)/include/
+ install -m 755 getsysinfo $(DESTDIR)/bin/
+ install -m 755 src/isdn/cdb/mk_isdnhwdb $(DESTDIR)/bin/
+ install -m 644 src/hd/hd.h $(DESTDIR)/include
+ perl -pi -e "s/define\s+HD_VERSION\b.*/define HD_VERSION\t\t$(LIBHD_MAJOR_VERSION)/" $(DESTDIR)/include/hd.h
+ perl -pi -e "s/define\s+HD_MINOR_VERSION\b.*/define HD_MINOR_VERSION\t$(LIBHD_MINOR_VERSION)/" $(DESTDIR)/include/hd.h
+ install -m 755 getsysinfo $(DESTDIR)/bin
+ install -m 755 src/isdn/cdb/mk_isdnhwdb $(DESTDIR)/bin
+ install -d -m 755 $(DESTDIR)/share/hwinfo
install -d -m 755 $(DESTDIR)/var/lib/hardware/udi
- install -m 644 src/isdn/cdb/ISDN.CDB.txt $(DESTDIR)/usr/share/hwinfo
@ -54,3 +55,187 @@ diff -uNr hwinfo-21.60/Makefile hwinfo-21.60.mod/Makefile
archive: changelog
@if [ ! -d .git ] ; then echo no git repo ; false ; fi
diff -uNr hwinfo-21.67/Makefile.orig hwinfo-21.67.mod/Makefile.orig
--- hwinfo-21.67/Makefile.orig 1970-01-01 03:00:00.000000000 +0300
+++ hwinfo-21.67.mod/Makefile.orig 2019-07-19 16:56:55.000000000 +0300
@@ -0,0 +1,134 @@
+TOPDIR = $(CURDIR)
+SUBDIRS = src
+TARGETS = hwinfo hwinfo.pc changelog
+CLEANFILES = hwinfo hwinfo.pc hwinfo.static hwscan hwscan.static hwscand hwscanqueue doc/libhd doc/*~
+LIBS = -lhd
+SLIBS = -lhd -luuid
+TLIBS = -lhd_tiny
+SO_LIBS = -luuid
+TSO_LIBS =
+
+export SO_LIBS
+
+GIT2LOG := $(shell if [ -x ./git2log ] ; then echo ./git2log --update ; else echo true ; fi)
+GITDEPS := $(shell [ -d .git ] && echo .git/HEAD .git/refs/heads .git/refs/tags)
+BRANCH := $(shell [ -d .git ] && git branch | perl -ne 'print $$_ if s/^\*\s*//')
+ifdef HWINFO_VERSION
+VERSION := $(shell echo ${HWINFO_VERSION} > VERSION; cat VERSION)
+else
+VERSION := $(shell $(GIT2LOG) --version VERSION ; cat VERSION)
+endif
+PREFIX := hwinfo-$(VERSION)
+
+include Makefile.common
+
+ifeq "$(ARCH)" "x86_64"
+LIBDIR ?= /usr/lib64
+else
+LIBDIR ?= /usr/lib
+endif
+ULIBDIR = $(LIBDIR)
+
+# ia64
+ifneq ($(filter i386 x86_64, $(ARCH)),)
+SLIBS += -lx86emu
+TLIBS += -lx86emu
+SO_LIBS += -lx86emu
+TSO_LIBS += -lx86emu
+endif
+
+SHARED_FLAGS =
+OBJS_NO_TINY = names.o parallel.o modem.o
+
+.PHONY: fullstatic static shared tiny doc diet tinydiet uc tinyuc
+
+ifdef HWINFO_VERSION
+changelog:
+ @true
+else
+changelog: $(GITDEPS)
+ $(GIT2LOG) --changelog changelog
+endif
+
+hwscan: hwscan.o $(LIBHD)
+ $(CC) hwscan.o $(LDFLAGS) $(CFLAGS) $(LIBS) -o $@
+
+hwinfo: hwinfo.o $(LIBHD)
+ $(CC) hwinfo.o $(LDFLAGS) $(CFLAGS) $(LIBS) -o $@
+
+hwscand: hwscand.o
+ $(CC) $< $(LDFLAGS) $(CFLAGS) -o $@
+
+hwscanqueue: hwscanqueue.o
+ $(CC) $< $(LDFLAGS) $(CFLAGS) -o $@
+
+hwinfo.pc: hwinfo.pc.in VERSION
+ VERSION=`cat VERSION`; \
+ sed -e "s,@VERSION@,$${VERSION},g" -e 's,@LIBDIR@,$(ULIBDIR),g;s,@LIBS@,$(LIBS),g' $< > $@.tmp && mv $@.tmp $@
+
+# kept for compatibility
+shared:
+ @make
+
+tiny:
+ @make EXTRA_FLAGS=-DLIBHD_TINY LIBHD_BASE=libhd_tiny LIBS="$(TLIBS)" SO_LIBS="$(TSO_LIBS)"
+
+tinyinstall:
+ @make EXTRA_FLAGS=-DLIBHD_TINY LIBHD_BASE=libhd_tiny LIBS="$(TLIBS)" SO_LIBS="$(TSO_LIBS)" install
+
+tinystatic:
+ @make EXTRA_FLAGS=-DLIBHD_TINY LIBHD_BASE=libhd_tiny SHARED_FLAGS= LIBS="$(TLIBS)" SO_LIBS="$(TSO_LIBS)"
+
+diet:
+ @make CC="diet gcc" EXTRA_FLAGS="-fno-pic -DDIET" SHARED_FLAGS= LIBS="$(SLIBS)"
+
+tinydiet:
+ @make CC="diet gcc" EXTRA_FLAGS="-fno-pic -DLIBHD_TINY -DDIET" SHARED_FLAGS= LIBS="$(SLIBS)"
+
+uc:
+ @make CC="/opt/i386-linux-uclibc/bin/i386-uclibc-gcc" EXTRA_FLAGS="-fno-pic -DUCLIBC" SHARED_FLAGS= LIBS="$(SLIBS)"
+
+tinyuc:
+ @make CC="/opt/i386-linux-uclibc/usr/bin/gcc" EXTRA_FLAGS="-fno-pic -DLIBHD_TINY -DUCLIBC" SHARED_FLAGS= LIBS="$(SLIBS)"
+
+static:
+ make SHARED_FLAGS= LIBS="$(SLIBS)"
+
+fullstatic: static
+ $(CC) -static hwinfo.o $(LDFLAGS) $(SLIBS) -o hwinfo.static
+ strip -R .note -R .comment hwinfo.static
+
+doc:
+ @cd doc ; doxygen libhd.doxy
+
+install:
+ install -d -m 755 $(DESTDIR)/sbin $(DESTDIR)/usr/sbin $(DESTDIR)$(ULIBDIR) \
+ $(DESTDIR)$(ULIBDIR)/pkgconfig $(DESTDIR)/usr/include
+ install -m 755 hwinfo $(DESTDIR)/usr/sbin
+ install -m 755 src/ids/check_hd $(DESTDIR)/usr/sbin
+ install -m 755 src/ids/convert_hd $(DESTDIR)/usr/sbin
+ if [ -f $(LIBHD_SO) ] ; then \
+ install $(LIBHD_SO) $(DESTDIR)$(ULIBDIR) ; \
+ ln -snf $(LIBHD_NAME) $(DESTDIR)$(ULIBDIR)/$(LIBHD_SONAME) ; \
+ ln -snf $(LIBHD_SONAME) $(DESTDIR)$(ULIBDIR)/$(LIBHD_BASE).so ; \
+ else \
+ install -m 644 $(LIBHD) $(DESTDIR)$(ULIBDIR) ; \
+ fi
+ install -m 644 hwinfo.pc $(DESTDIR)$(ULIBDIR)/pkgconfig
+ install -m 644 src/hd/hd.h $(DESTDIR)/usr/include
+ perl -pi -e "s/define\s+HD_VERSION\b.*/define HD_VERSION\t\t$(LIBHD_MAJOR_VERSION)/" $(DESTDIR)/usr/include/hd.h
+ perl -pi -e "s/define\s+HD_MINOR_VERSION\b.*/define HD_MINOR_VERSION\t$(LIBHD_MINOR_VERSION)/" $(DESTDIR)/usr/include/hd.h
+ install -m 755 getsysinfo $(DESTDIR)/usr/sbin
+ install -m 755 src/isdn/cdb/mk_isdnhwdb $(DESTDIR)/usr/sbin
+ install -d -m 755 $(DESTDIR)/usr/share/hwinfo
+ install -d -m 755 $(DESTDIR)/var/lib/hardware/udi
+ install -m 644 src/isdn/cdb/ISDN.CDB.txt $(DESTDIR)/usr/share/hwinfo
+ install -m 644 src/isdn/cdb/ISDN.CDB.hwdb $(DESTDIR)/usr/share/hwinfo
+
+archive: changelog
+ @if [ ! -d .git ] ; then echo no git repo ; false ; fi
+ mkdir -p package
+ git archive --prefix=$(PREFIX)/ $(BRANCH) > package/$(PREFIX).tar
+ tar -r -f package/$(PREFIX).tar --mode=0664 --owner=root --group=root --mtime="`git show -s --format=%ci`" --transform='s:^:$(PREFIX)/:' VERSION changelog src/hd/hd.h
+ xz -f package/$(PREFIX).tar
+
diff -uNr hwinfo-21.67/Makefile.rej hwinfo-21.67.mod/Makefile.rej
--- hwinfo-21.67/Makefile.rej 1970-01-01 03:00:00.000000000 +0300
+++ hwinfo-21.67.mod/Makefile.rej 2019-09-19 16:03:56.811556021 +0300
@@ -0,0 +1,42 @@
+--- Makefile 2018-10-17 16:23:47.000000000 +0300
++++ Makefile 2019-06-29 01:57:27.596632042 +0300
+@@ -98,26 +94,26 @@
+ @cd doc ; doxygen libhd.doxy
+
+ install:
+- install -d -m 755 $(DESTDIR)/sbin $(DESTDIR)/usr/sbin $(DESTDIR)$(ULIBDIR) \
+- $(DESTDIR)$(ULIBDIR)/pkgconfig $(DESTDIR)/usr/include
+- install -m 755 hwinfo $(DESTDIR)/usr/sbin
+- install -m 755 src/ids/check_hd $(DESTDIR)/usr/sbin
+- install -m 755 src/ids/convert_hd $(DESTDIR)/usr/sbin
++ install -d -m 755 $(DESTDIR)/bin $(DESTDIR)$(ULIBDIR) \
++ $(DESTDIR)$(ULIBDIR)/pkgconfig $(DESTDIR)/include
++ install -m 755 hwinfo $(DESTDIR)/bin/
++ install -m 755 src/ids/check_hd $(DESTDIR)/bin/
++ install -m 755 src/ids/convert_hd $(DESTDIR)/bin/
+ if [ -f $(LIBHD_SO) ] ; then \
+- install $(LIBHD_SO) $(DESTDIR)$(ULIBDIR) ; \
++ install $(LIBHD_SO) $(DESTDIR)$(ULIBDIR)/ ; \
+ ln -snf $(LIBHD_NAME) $(DESTDIR)$(ULIBDIR)/$(LIBHD_SONAME) ; \
+ ln -snf $(LIBHD_SONAME) $(DESTDIR)$(ULIBDIR)/$(LIBHD_BASE).so ; \
+ else \
+ install -m 644 $(LIBHD) $(DESTDIR)$(ULIBDIR) ; \
+ fi
+- install -m 644 hwinfo.pc $(DESTDIR)$(ULIBDIR)/pkgconfig
+- install -m 644 src/hd/hd.h $(DESTDIR)/usr/include
+- install -m 755 getsysinfo $(DESTDIR)/usr/sbin
+- install -m 755 src/isdn/cdb/mk_isdnhwdb $(DESTDIR)/usr/sbin
+- install -d -m 755 $(DESTDIR)/usr/share/hwinfo
++ install -m 644 hwinfo.pc $(DESTDIR)$(ULIBDIR)/pkgconfig/
++ install -m 644 src/hd/hd.h $(DESTDIR)/include/
++ install -m 755 getsysinfo $(DESTDIR)/bin/
++ install -m 755 src/isdn/cdb/mk_isdnhwdb $(DESTDIR)/bin/
++ install -d -m 755 $(DESTDIR)/share/hwinfo
+ install -d -m 755 $(DESTDIR)/var/lib/hardware/udi
+- install -m 644 src/isdn/cdb/ISDN.CDB.txt $(DESTDIR)/usr/share/hwinfo
+- install -m 644 src/isdn/cdb/ISDN.CDB.hwdb $(DESTDIR)/usr/share/hwinfo
++ install -m 644 src/isdn/cdb/ISDN.CDB.txt $(DESTDIR)/share/hwinfo
++ install -m 644 src/isdn/cdb/ISDN.CDB.hwdb $(DESTDIR)/share/hwinfo
+
+ archive: changelog
+ @if [ ! -d .git ] ; then echo no git repo ; false ; fi

View File

@ -1,10 +1,9 @@
TERMUX_PKG_HOMEPAGE=https://github.com/openSUSE/hwinfo
TERMUX_PKG_DESCRIPTION="Hardware detection tool from openSUSE"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_VERSION=21.60
TERMUX_PKG_REVISION=2
TERMUX_PKG_VERSION=21.67
TERMUX_PKG_SRCURL=https://github.com/openSUSE/hwinfo/archive/$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=7d07ecd799a6c0e25d1dcd5ec7cbba1f1a4f2c69938593900a38bfd32a7d083a
TERMUX_PKG_SHA256=3e19447e6b7f85bc25918a15a28724529f19ab9b24d465ccfffee4aa49f4cc15
TERMUX_PKG_DEPENDS="libandroid-shmem, libuuid, libx86emu"
TERMUX_PKG_BREAKS="hwinfo-dev"
TERMUX_PKG_REPLACES="hwinfo-dev"