File: python_setools_path.patch

package info (click to toggle)
setools 3.3.8-3.1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 8,932 kB
  • ctags: 7,866
  • sloc: ansic: 83,088; tcl: 13,141; cpp: 4,885; makefile: 1,614; yacc: 788; lex: 297; python: 57; sh: 50
file content (14 lines) | stat: -rw-r--r-- 637 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: Fix installation path of the modules
From: Laurent Bigonville <bigon@debian.org>

--- a/python/setools/Makefile.am
+++ b/python/setools/Makefile.am
@@ -25,7 +25,7 @@ python-build: sesearch.c seinfo.c
 	LIBS="$(QPOL_LIB_FLAG) $(APOL_LIB_FLAG)" INCLUDES="$(QPOL_CFLAGS) $(APOL_CFLAGS)" $(PYTHON) setup.py build
 
 install-exec-hook:
-	$(PYTHON) setup.py install `test -n "$(DESTDIR)" && echo --root $(DESTDIR)`
+	$(PYTHON) setup.py install --prefix='/usr' --install-layout=deb `test -n "$(DESTDIR)" && echo --root $(DESTDIR)`
 
 uninstall-hook: 
 	$(PYTHON) setup.py uninstall `test -n "$(DESTDIR)" && echo --root $(DESTDIR)`