File unetd-cmake-gnuinstalldirs.patch of Package unetd

diff --git a/CMakeLists.txt b/CMakeLists.txt
index ec31711..3321e7f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,7 +1,7 @@
 cmake_minimum_required(VERSION 3.3)
 
 PROJECT(unetd C)
-
+INCLUDE(GNUInstallDirs)
 
 SET(SOURCES
 	main.c network.c host.c service.c pex.c pex-stun.c
@@ -56,6 +56,6 @@ ADD_EXECUTABLE(unet-dht dht.c udht.c ${DHT_SOURCES})
 TARGET_LINK_LIBRARIES(unet-dht unet ${ubus} ubox)
 
 INSTALL(TARGETS unetd unet unet-tool unet-dht
-	RUNTIME DESTINATION sbin
-	LIBRARY DESTINATION lib
+	RUNTIME DESTINATION ${CMAKE_INSTALL_SBINDIR}
+	LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
 )
openSUSE Build Service is sponsored by