From 17abdefd20f0e2046b81d3d33cbe45e85c0fb200 Mon Sep 17 00:00:00 2001 From: Andrew Nelless Date: Tue, 9 May 2017 11:12:20 +0100 Subject: [PATCH] Configure debian package directory --- CMakeLists.txt | 5 ++++- debian/changelog | 5 ----- dist/deb/changelog.in | 5 +++++ {debian => dist/deb}/compat | 0 {debian => dist/deb}/control | 0 {debian => dist/deb}/copyright | 0 {debian => dist/deb}/rules | 0 {debian => dist/deb}/source/format | 0 8 files changed, 9 insertions(+), 6 deletions(-) delete mode 100644 debian/changelog create mode 100644 dist/deb/changelog.in rename {debian => dist/deb}/compat (100%) rename {debian => dist/deb}/control (100%) rename {debian => dist/deb}/copyright (100%) rename {debian => dist/deb}/rules (100%) rename {debian => dist/deb}/source/format (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3afd4521..bee3e36a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -406,12 +406,15 @@ endif() # if (${CMAKE_SYSTEM_NAME} MATCHES "Linux") configure_files (${CMAKE_CURRENT_SOURCE_DIR}/dist/rpm ${CMAKE_BINARY_DIR}/rpm) - install(FILES res/synergy.svg DESTINATION share/icons) + configure_files (${CMAKE_CURRENT_SOURCE_DIR}/dist/deb ${CMAKE_BINARY_DIR}/debian) + if("${VERSION_MAJOR}" STREQUAL "2") install(FILES res/synergy2.desktop DESTINATION share/applications) else() install(FILES res/synergy.desktop DESTINATION share/applications) endif() + + install(FILES res/synergy.svg DESTINATION share/icons) endif() else() diff --git a/debian/changelog b/debian/changelog deleted file mode 100644 index aba1da70..00000000 --- a/debian/changelog +++ /dev/null @@ -1,5 +0,0 @@ -synergy (1.9.0~beta1) UNRELEASED; urgency=medium - - * Initial release. - - -- Symless Ltd Thu, 27 Apr 2017 13:50:32 +0000 diff --git a/dist/deb/changelog.in b/dist/deb/changelog.in new file mode 100644 index 00000000..008253f2 --- /dev/null +++ b/dist/deb/changelog.in @@ -0,0 +1,5 @@ +synergy (@SYNERGY_VERSION@~@SYNERGY_VERSION_STAGE@) unstable; urgency=medium + + * Initial release. + + -- Symless Ltd @SYNERGY_RELEASE_DATE@ diff --git a/debian/compat b/dist/deb/compat similarity index 100% rename from debian/compat rename to dist/deb/compat diff --git a/debian/control b/dist/deb/control similarity index 100% rename from debian/control rename to dist/deb/control diff --git a/debian/copyright b/dist/deb/copyright similarity index 100% rename from debian/copyright rename to dist/deb/copyright diff --git a/debian/rules b/dist/deb/rules similarity index 100% rename from debian/rules rename to dist/deb/rules diff --git a/debian/source/format b/dist/deb/source/format similarity index 100% rename from debian/source/format rename to dist/deb/source/format