From: Peter Michael Green Date: Thu, 10 Jan 2019 14:05:34 +0000 (+0000) Subject: Use Debian file layout for python stuff. X-Git-Tag: archive/raspbian/1.68-2+rpi1~16 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c0e44c5359caead014b9db839ec76c2be5662054;p=pigpio.git Use Debian file layout for python stuff. --- diff --git a/Makefile b/Makefile index d05cca7..318c224 100644 --- a/Makefile +++ b/Makefile @@ -83,7 +83,7 @@ clean: ifeq ($(DESTDIR),) PYINSTALLARGS = else - PYINSTALLARGS = --root=$(DESTDIR) + PYINSTALLARGS = --install-layout=deb --root=$(DESTDIR) endif install: $(ALL) diff --git a/debian/patches/01-prefix.patch b/debian/patches/01-prefix.patch deleted file mode 100644 index 3905e6e..0000000 --- a/debian/patches/01-prefix.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/Makefile -+++ b/Makefile -@@ -31,7 +31,7 @@ - - LL3 = -L. -lpigpiod_if2 -pthread -lrt - --prefix = /usr/local -+prefix = /usr - exec_prefix = $(prefix) - bindir = $(exec_prefix)/bin - includedir = $(prefix)/include diff --git a/debian/patches/09-filelayout.patch b/debian/patches/09-filelayout.patch new file mode 100644 index 0000000..1256496 --- /dev/null +++ b/debian/patches/09-filelayout.patch @@ -0,0 +1,20 @@ +--- a/Makefile ++++ b/Makefile +@@ -31,7 +31,7 @@ + + LL3 = -L. -lpigpiod_if2 -pthread -lrt + +-prefix = /usr/local ++prefix = /usr + exec_prefix = $(prefix) + bindir = $(exec_prefix)/bin + includedir = $(prefix)/include +@@ -83,7 +83,7 @@ clean: + ifeq ($(DESTDIR),) + PYINSTALLARGS = + else +- PYINSTALLARGS = --root=$(DESTDIR) ++ PYINSTALLARGS = --install-layout=deb --root=$(DESTDIR) + endif + + install: $(ALL) diff --git a/debian/patches/series b/debian/patches/series index c83b3aa..8ee8028 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,4 +1,3 @@ -01-prefix.patch 02-add-soversion.patch 03-fix-destdir.patch 04-make-uninstall.patch @@ -6,3 +5,4 @@ 06-64-bit-clean.patch 07-arm64-pi-detection.patch 08-dont-install-libs-as-manpages.patch +09-filelayout.patch