From: Vsevolod Stakhov Date: Fri, 3 Aug 2012 13:14:15 +0000 (+0400) Subject: More debian fixes. X-Git-Tag: 0.5.1~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=93c3046ce8050124659d6dfe6d0d8609302784e5;p=rspamd.git More debian fixes. --- diff --git a/debian/copyright b/debian/copyright index 60d1ce290..51e8c2afc 100644 --- a/debian/copyright +++ b/debian/copyright @@ -6,28 +6,16 @@ Files: contrib/lgpl/* Copyright: 1999, 2000 Scott Wimer Copyright: 2004, Matthias Clasen Copyright: 2005 - 2007, Marco Barisione -License: LGPL-2+ +License: LGPL +Files: src/json/* +Copyright: 2009 Petri Lehtinen +License: Expat Files: * -Copyright: 2008-2011 Vsevolod Stakhov -License: BSD +Copyright: 2008-2012 Vsevolod Stakhov +License: BSD-2-clause Files: debian/* -Copyright: 2011 Vsevolod Stakhov -License: GPL-2+ - This package is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - . - This package is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - . - You should have received a copy of the GNU General Public License - along with this program. If not, see - . - On Debian systems, the complete text of the GNU General - Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". +Copyright: 2011-2012 Vsevolod Stakhov +License: GPL diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 9cbf58e74..f534030b3 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -86,7 +86,9 @@ ENDIF(NO_SHARED MATCHES "OFF") # Rspamd client ADD_LIBRARY(rspamdclient SHARED ${LIBRSPAMDCLIENTSRC}) ADD_LIBRARY(rspamdclient_static STATIC ${LIBRSPAMDCLIENTSRC}) +IF(NOT DEBIAN_BUILD) SET_TARGET_PROPERTIES(rspamdclient PROPERTIES PUBLIC_HEADER "client/librspamdclient.h") +ENDIF(NOT DEBIAN_BUILD) IF(CMAKE_COMPILER_IS_GNUCC) SET_TARGET_PROPERTIES(rspamdclient PROPERTIES COMPILE_FLAGS "-fno-strict-aliasing") @@ -98,8 +100,8 @@ TARGET_LINK_LIBRARIES(rspamdclient rspamd-util) TARGET_LINK_LIBRARIES(rspamdclient_static ${CMAKE_REQUIRED_LIBRARIES}) TARGET_LINK_LIBRARIES(rspamdclient_static ${GLIB2_LIBRARIES}) -IF(NOT DEBIAN_BUILD) SET_TARGET_PROPERTIES(rspamdclient PROPERTIES VERSION ${RSPAMD_VERSION}) +IF(NOT DEBIAN_BUILD) SET_TARGET_PROPERTIES(rspamdclient_static PROPERTIES VERSION ${RSPAMD_VERSION}) ENDIF(NOT DEBIAN_BUILD) @@ -108,10 +110,15 @@ IF(GLIB_COMPAT) TARGET_LINK_LIBRARIES(rspamdclient glibadditions) ENDIF(GLIB_COMPAT) +IF(NOT DEBIAN_BUILD) INSTALL(TARGETS rspamdclient rspamdclient_static LIBRARY PUBLIC_HEADER LIBRARY DESTINATION ${LIBDIR} PUBLIC_HEADER DESTINATION ${INCLUDEDIR} ARCHIVE DESTINATION ${LIBDIR}) +ELSE(NOT DEBIAN_BUILD) +INSTALL(TARGETS rspamdclient LIBRARY + LIBRARY DESTINATION ${LIBDIR}) +ENDIF(NOT DEBIAN_BUILD) # Librspamd-server diff --git a/src/client/CMakeLists.txt b/src/client/CMakeLists.txt index 3de691380..d87d622c9 100644 --- a/src/client/CMakeLists.txt +++ b/src/client/CMakeLists.txt @@ -12,6 +12,8 @@ ENDIF(GLIB_COMPAT) TARGET_LINK_LIBRARIES(rspamc ${GLIB2_LIBRARIES}) TARGET_LINK_LIBRARIES(rspamc ${CMAKE_REQUIRED_LIBRARIES}) TARGET_LINK_LIBRARIES(rspamc m) +IF(NOT DEBIAN_BUILD) SET_TARGET_PROPERTIES(rspamc PROPERTIES VERSION ${RSPAMD_VERSION}) +ENDIF(NOT DEBIAN_BUILD) INSTALL(TARGETS rspamc RUNTIME DESTINATION bin)