termux-packages/root-packages/hwinfo/Makefile.patch

58 lines
2.5 KiB
Diff
Raw Normal View History

2019-09-19 15:21:09 +02:00
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
-ifeq "$(ARCH)" "x86_64"
-LIBDIR ?= /usr/lib64
-else
-LIBDIR ?= /usr/lib
-endif
+LIBDIR = /lib
ULIBDIR = $(LIBDIR)
# ia64
2019-09-19 15:21:09 +02:00
@@ -102,11 +98,11 @@
2019-06-25 22:14:55 +02:00
@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
2019-09-19 15:21:09 +02:00
+ install -d -m 755 $(DESTDIR)/bin $(DESTDIR)/usr/bin $(DESTDIR)$(ULIBDIR) \
+ $(DESTDIR)$(ULIBDIR)/pkgconfig $(DESTDIR)/include
2019-09-19 15:21:09 +02:00
+ install -m 755 hwinfo $(DESTDIR)/bin
+ install -m 755 src/ids/check_hd $(DESTDIR)/bin
+ install -m 755 src/ids/convert_hd $(DESTDIR)/bin
2019-06-25 22:14:55 +02:00
if [ -f $(LIBHD_SO) ] ; then \
2019-09-19 15:21:09 +02:00
install $(LIBHD_SO) $(DESTDIR)$(ULIBDIR) ; \
ln -snf $(LIBHD_NAME) $(DESTDIR)$(ULIBDIR)/$(LIBHD_SONAME) ; \
2019-09-19 15:21:09 +02:00
@@ -115,15 +111,15 @@
install -m 644 $(LIBHD) $(DESTDIR)$(ULIBDIR) ; \
2019-06-25 22:14:55 +02:00
fi
2019-09-19 15:21:09 +02:00
install -m 644 hwinfo.pc $(DESTDIR)$(ULIBDIR)/pkgconfig
2019-06-25 22:14:55 +02:00
- install -m 644 src/hd/hd.h $(DESTDIR)/usr/include
2019-09-19 15:21:09 +02:00
- 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
2019-06-25 22:14:55 +02:00
- 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
2019-09-19 15:21:09 +02:00
+ 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
2019-06-25 22:14:55 +02:00
- 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
2019-06-25 22:14:55 +02:00
archive: changelog
@if [ ! -d .git ] ; then echo no git repo ; false ; fi