Skip to content

Commit 89a1583

Browse files
author
Ivan Stoev
committed
Debian package dir, CPack configs and new executable name.
1 parent aa73ed1 commit 89a1583

29 files changed

+1131
-14
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Allowed options:
2424
- -c [ --crypto ] arg Crypto password
2525
- -s [ --passascrypto ] arg Use user password as crypto password also.
2626
- -d [ --daemonize ] Daemonize the process.
27-
- -o [ --commands ] Parent stays alive and processes command after daemoziation.
27+
- -o [ --commands ] Parent stays alive and processes commands.
2828
- -m [ --mountpoint ] arg Mount point where drive to be mounted.
2929
- -k [ --commands_only ] Daemon already started pass only commands
3030

@@ -34,14 +34,13 @@ and put user_allow_other in it.
3434

3535
## Debian
3636
To create a debian package form the source use:
37-
> dh_make
3837
> debuild -i -us -uc -b
3938
4039
## Other distributions
4140
- Binary packages
42-
[pcl_client-2.0.1-Linux.sh](https://github.com/libfuse/libfuse)
43-
[pcl_client-2.0.1-Linux.tar.gz](https://github.com/libfuse/libfuse)
44-
[pcl_client-2.0.1-Linux.tar.Z](https://github.com/libfuse/libfuse)
41+
[pcloudcc-2.0.1-Linux.sh](https://github.com/libfuse/libfuse)
42+
[pcloudcc-2.0.1-Linux.tar.gz](https://github.com/libfuse/libfuse)
43+
[pcloudcc-2.0.1-Linux.tar.Z](https://github.com/libfuse/libfuse)
4544
[pcloudcc_2.0.1-1_amd64.deb](https://github.com/libfuse/libfuse)
4645
- Source
47-
[pcloudcc_2.0.1-1_Source.tar.gz](https://github.com/libfuse/libfuse)
46+
[pcloudcc_2.0.1_Source.tar.gz](https://github.com/libfuse/libfuse)

pCloudCC/CMakeLists.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 2.6)
2-
project(pcl_client)
2+
project(pcloudcc)
33

4-
INCLUDE(CPack)
4+
#INCLUDE(CPack)
55

66
set(Boost_USE_STATIC_LIBS ON)
77
set(Boost_USE_MULTITHREADED ON)
@@ -11,7 +11,7 @@ unset(Boost_LIBRARY_DIRS CACHE)
1111
find_package(Boost COMPONENTS system program_options REQUIRED)
1212
include_directories(${Boost_INCLUDE_DIR})
1313
link_directories(${Boost_LIBRARY_DIR})
14-
14+
#set (CMAKE_CXX_FLAGS "-static -Wl,-Bstatic")
1515
#set (CMAKE_CXX_FLAGS "-Wl,-Bstatic")
1616
set (PCLSYNC_PATH ${CMAKE_SOURCE_DIR}/lib/pclsync)
1717
set (MBEDTLS_PATH ${CMAKE_SOURCE_DIR}/lib/mbedtls)
@@ -45,18 +45,18 @@ include_directories(${OVERLAY_CLENT_PATH})
4545
link_directories(${PCLSYNC_PATH} ${MBEDTLS_PATH}/library ${SQLITE3_PATH} ${OVERLAY_CLENT_PATH})
4646

4747

48-
add_executable(pcl_client main.cpp pclsync_lib.cpp control_tools.cpp ${OVERLAY_CLENT_PATH}/overlay_client.c ${OVERLAY_CLENT_PATH}/debug.c ${SQLITE3_PATH}/sqlite3.c)
48+
add_executable(pcloudcc main.cpp pclsync_lib.cpp control_tools.cpp ${OVERLAY_CLENT_PATH}/overlay_client.c ${OVERLAY_CLENT_PATH}/debug.c ${SQLITE3_PATH}/sqlite3.c)
4949

5050

51-
target_link_libraries(pcl_client psynclib mbedtls fuse pthread z dl
51+
target_link_libraries(pcloudcc psynclib mbedtls fuse pthread z dl
5252
)
5353

54-
target_link_libraries(pcl_client ${Boost_LIBRARIES})
54+
target_link_libraries(pcloudcc ${Boost_LIBRARIES})
5555

5656
add_dependencies(pclsync sqlite3_lib)
5757

58-
add_dependencies(pcl_client sqlite3_lib pclsync )
58+
add_dependencies(pcloudcc sqlite3_lib pclsync )
5959

60-
install(TARGETS pcl_client RUNTIME DESTINATION bin)
60+
install(TARGETS pcloudcc RUNTIME DESTINATION bin)
6161

6262

pCloudCC/CPackConfig.cmake

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# This file will be configured to contain variables for CPack. These variables
2+
# should be set in the CMake list file of the project before CPack module is
3+
# included. The list of available CPACK_xxx variables and their associated
4+
# documentation may be obtained using
5+
# cpack --help-variable-list
6+
#
7+
# Some variables are common to all generators (e.g. CPACK_PACKAGE_NAME)
8+
# and some are specific to a generator
9+
# (e.g. CPACK_NSIS_EXTRA_INSTALL_COMMANDS). The generator specific variables
10+
# usually begin with CPACK_<GENNAME>_xxxx.
11+
12+
13+
SET(CPACK_BINARY_BUNDLE "")
14+
SET(CPACK_BINARY_CYGWIN "")
15+
SET(CPACK_BINARY_DEB "OFF")
16+
SET(CPACK_BINARY_DRAGNDROP "")
17+
SET(CPACK_BINARY_NSIS "OFF")
18+
SET(CPACK_BINARY_OSXX11 "")
19+
SET(CPACK_BINARY_PACKAGEMAKER "")
20+
SET(CPACK_BINARY_RPM "OFF")
21+
SET(CPACK_BINARY_STGZ "ON")
22+
SET(CPACK_BINARY_TBZ2 "OFF")
23+
SET(CPACK_BINARY_TGZ "ON")
24+
SET(CPACK_BINARY_TZ "ON")
25+
SET(CPACK_BINARY_WIX "")
26+
SET(CPACK_BINARY_ZIP "")
27+
SET(CPACK_CMAKE_GENERATOR "Unix Makefiles")
28+
SET(CPACK_COMPONENTS_ALL "")
29+
SET(CPACK_COMPONENT_UNSPECIFIED_HIDDEN "TRUE")
30+
SET(CPACK_COMPONENT_UNSPECIFIED_REQUIRED "TRUE")
31+
SET(CPACK_GENERATOR "STGZ;TGZ;TZ")
32+
SET(CPACK_INSTALL_CMAKE_PROJECTS "/home/tuba/consoleclient/opensource/pCloudCC;pcloudcc;ALL;/")
33+
SET(CPACK_INSTALL_PREFIX "/usr/local")
34+
SET(CPACK_MODULE_PATH "")
35+
SET(CPACK_NSIS_DISPLAY_NAME "pcloudcc 2.0.1")
36+
SET(CPACK_NSIS_INSTALLER_ICON_CODE "")
37+
SET(CPACK_NSIS_INSTALLER_MUI_ICON_CODE "")
38+
SET(CPACK_NSIS_INSTALL_ROOT "$PROGRAMFILES")
39+
SET(CPACK_NSIS_PACKAGE_NAME "pcloudcc 2.0.1")
40+
SET(CPACK_OUTPUT_CONFIG_FILE "/home/tuba/consoleclient/opensource/pCloudCC/CPackConfig.cmake")
41+
SET(CPACK_PACKAGE_DEFAULT_LOCATION "/")
42+
SET(CPACK_PACKAGE_DESCRIPTION_FILE "/usr/share/cmake-2.8/Templates/CPack.GenericDescription.txt")
43+
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "pcloudcc built using CMake")
44+
SET(CPACK_PACKAGE_FILE_NAME "pcloudcc-2.0.1-Linux")
45+
SET(CPACK_PACKAGE_INSTALL_DIRECTORY "pcloudcc 2.0.1")
46+
SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY "pcloudcc 2.0.1")
47+
SET(CPACK_PACKAGE_NAME "pcloudcc")
48+
SET(CPACK_PACKAGE_RELOCATABLE "true")
49+
SET(CPACK_PACKAGE_VENDOR "Humanity")
50+
SET(CPACK_PACKAGE_VERSION "2.0.1")
51+
SET(CPACK_PACKAGE_VERSION_MAJOR "2")
52+
SET(CPACK_PACKAGE_VERSION_MINOR "0")
53+
SET(CPACK_PACKAGE_VERSION_PATCH "1")
54+
SET(CPACK_RESOURCE_FILE_LICENSE "/usr/share/cmake-2.8/Templates/CPack.GenericLicense.txt")
55+
SET(CPACK_RESOURCE_FILE_README "/usr/share/cmake-2.8/Templates/CPack.GenericDescription.txt")
56+
SET(CPACK_RESOURCE_FILE_WELCOME "/usr/share/cmake-2.8/Templates/CPack.GenericWelcome.txt")
57+
SET(CPACK_SET_DESTDIR "OFF")
58+
SET(CPACK_SOURCE_CYGWIN "")
59+
SET(CPACK_SOURCE_GENERATOR "TGZ;TBZ2;TZ")
60+
SET(CPACK_SOURCE_OUTPUT_CONFIG_FILE "/home/tuba/consoleclient/opensource/pCloudCC/CPackSourceConfig.cmake")
61+
SET(CPACK_SOURCE_TBZ2 "ON")
62+
SET(CPACK_SOURCE_TGZ "ON")
63+
SET(CPACK_SOURCE_TZ "ON")
64+
SET(CPACK_SOURCE_ZIP "OFF")
65+
SET(CPACK_SYSTEM_NAME "Linux")
66+
SET(CPACK_TOPLEVEL_TAG "Linux")
67+
SET(CPACK_WIX_SIZEOF_VOID_P "8")

pCloudCC/CPackSourceConfig.cmake

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# This file will be configured to contain variables for CPack. These variables
2+
# should be set in the CMake list file of the project before CPack module is
3+
# included. The list of available CPACK_xxx variables and their associated
4+
# documentation may be obtained using
5+
# cpack --help-variable-list
6+
#
7+
# Some variables are common to all generators (e.g. CPACK_PACKAGE_NAME)
8+
# and some are specific to a generator
9+
# (e.g. CPACK_NSIS_EXTRA_INSTALL_COMMANDS). The generator specific variables
10+
# usually begin with CPACK_<GENNAME>_xxxx.
11+
12+
13+
SET(CPACK_BINARY_BUNDLE "")
14+
SET(CPACK_BINARY_CYGWIN "")
15+
SET(CPACK_BINARY_DEB "OFF")
16+
SET(CPACK_BINARY_DRAGNDROP "")
17+
SET(CPACK_BINARY_NSIS "OFF")
18+
SET(CPACK_BINARY_OSXX11 "")
19+
SET(CPACK_BINARY_PACKAGEMAKER "")
20+
SET(CPACK_BINARY_RPM "OFF")
21+
SET(CPACK_BINARY_STGZ "ON")
22+
SET(CPACK_BINARY_TBZ2 "OFF")
23+
SET(CPACK_BINARY_TGZ "ON")
24+
SET(CPACK_BINARY_TZ "ON")
25+
SET(CPACK_BINARY_WIX "")
26+
SET(CPACK_BINARY_ZIP "")
27+
SET(CPACK_CMAKE_GENERATOR "Unix Makefiles")
28+
SET(CPACK_COMPONENTS_ALL "")
29+
SET(CPACK_COMPONENT_UNSPECIFIED_HIDDEN "TRUE")
30+
SET(CPACK_COMPONENT_UNSPECIFIED_REQUIRED "TRUE")
31+
SET(CPACK_GENERATOR "TGZ;TBZ2;TZ")
32+
SET(CPACK_IGNORE_FILES "/CVS/;/\\.svn/;/\\.bzr/;/\\.hg/;/\\.git/;\\.swp$;\\.#;/#")
33+
SET(CPACK_INSTALLED_DIRECTORIES "/home/tuba/consoleclient/opensource/pCloudCC;/")
34+
SET(CPACK_INSTALL_CMAKE_PROJECTS "")
35+
SET(CPACK_INSTALL_PREFIX "/usr/local")
36+
SET(CPACK_MODULE_PATH "")
37+
SET(CPACK_NSIS_DISPLAY_NAME "pcloudcc 2.0.1")
38+
SET(CPACK_NSIS_INSTALLER_ICON_CODE "")
39+
SET(CPACK_NSIS_INSTALLER_MUI_ICON_CODE "")
40+
SET(CPACK_NSIS_INSTALL_ROOT "$PROGRAMFILES")
41+
SET(CPACK_NSIS_PACKAGE_NAME "pcloudcc 2.0.1")
42+
SET(CPACK_OUTPUT_CONFIG_FILE "/home/tuba/consoleclient/opensource/pCloudCC/CPackConfig.cmake")
43+
SET(CPACK_PACKAGE_DEFAULT_LOCATION "/")
44+
SET(CPACK_PACKAGE_DESCRIPTION_FILE "/usr/share/cmake-2.8/Templates/CPack.GenericDescription.txt")
45+
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "pcloudcc built using CMake")
46+
SET(CPACK_PACKAGE_FILE_NAME "pcloudcc-2.0.1-Source")
47+
SET(CPACK_PACKAGE_INSTALL_DIRECTORY "pcloudcc 2.0.1")
48+
SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY "pcloudcc 2.0.1")
49+
SET(CPACK_PACKAGE_NAME "pcloudcc")
50+
SET(CPACK_PACKAGE_RELOCATABLE "true")
51+
SET(CPACK_PACKAGE_VENDOR "Humanity")
52+
SET(CPACK_PACKAGE_VERSION "2.0.1")
53+
SET(CPACK_PACKAGE_VERSION_MAJOR "2")
54+
SET(CPACK_PACKAGE_VERSION_MINOR "0")
55+
SET(CPACK_PACKAGE_VERSION_PATCH "1")
56+
SET(CPACK_RESOURCE_FILE_LICENSE "/usr/share/cmake-2.8/Templates/CPack.GenericLicense.txt")
57+
SET(CPACK_RESOURCE_FILE_README "/usr/share/cmake-2.8/Templates/CPack.GenericDescription.txt")
58+
SET(CPACK_RESOURCE_FILE_WELCOME "/usr/share/cmake-2.8/Templates/CPack.GenericWelcome.txt")
59+
SET(CPACK_SET_DESTDIR "OFF")
60+
SET(CPACK_SOURCE_CYGWIN "")
61+
SET(CPACK_SOURCE_GENERATOR "TGZ;TBZ2;TZ")
62+
SET(CPACK_SOURCE_IGNORE_FILES "/CVS/;/\\.svn/;/\\.bzr/;/\\.hg/;/\\.git/;\\.swp$;\\.#;/#")
63+
SET(CPACK_SOURCE_INSTALLED_DIRECTORIES "/home/tuba/consoleclient/opensource/pCloudCC;/")
64+
SET(CPACK_SOURCE_OUTPUT_CONFIG_FILE "/home/tuba/consoleclient/opensource/pCloudCC/CPackSourceConfig.cmake")
65+
SET(CPACK_SOURCE_PACKAGE_FILE_NAME "pcloudcc-2.0.1-Source")
66+
SET(CPACK_SOURCE_TBZ2 "ON")
67+
SET(CPACK_SOURCE_TGZ "ON")
68+
SET(CPACK_SOURCE_TOPLEVEL_TAG "Linux-Source")
69+
SET(CPACK_SOURCE_TZ "ON")
70+
SET(CPACK_SOURCE_ZIP "OFF")
71+
SET(CPACK_STRIP_FILES "")
72+
SET(CPACK_SYSTEM_NAME "Linux")
73+
SET(CPACK_TOPLEVEL_TAG "Linux-Source")
74+
SET(CPACK_WIX_SIZEOF_VOID_P "8")

pCloudCC/debian/README.Debian

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pcloudcc for Debian
2+
-------------------
3+
4+
<possible notes regarding this package - if none, delete this file>
5+
6+
-- Ivan Stoev <tuba@unknown> Wed, 06 Apr 2016 15:50:58 +0300

pCloudCC/debian/README.source

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
pcloudcc for Debian
2+
-------------------
3+
4+
<this file describes information about the source package, see Debian policy
5+
manual section 4.14. You WILL either need to modify or delete this file>
6+
7+
8+
9+
-- Ivan Stoev <tuba@unknown> Wed, 06 Apr 2016 15:50:58 +0300
10+

pCloudCC/debian/changelog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pcloudcc (2.0.1-1) trusty; urgency=low
2+
3+
* Initial release
4+
5+
-- Ivan Stoev <[email protected]> Tue, 05 Apr 2016 16:58:02 +0300

pCloudCC/debian/compat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9

pCloudCC/debian/control

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Source: pcloudcc
2+
Section: bisection
3+
Priority: optional
4+
Maintainer: Ivan Stoev <[email protected]>
5+
Build-Depends: debhelper (>= 8.0.0), cmake
6+
Standards-Version: 3.9.4
7+
Homepage: https://gitlab.pcloud.com/ivan.stoev/console_client
8+
#Vcs-Git: git: [email protected]:ivan.stoev/console_client.git
9+
#Vcs-Browser: https://gitlab.pcloud.com/ivan.stoev/console_client
10+
11+
Package: pcloudcc
12+
Architecture: any
13+
Depends: ${shlibs:Depends}, ${misc:Depends}
14+
Description: pCloud console client.
15+
A simple console client for pCloud storage.

pCloudCC/debian/copyright

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2+
Upstream-Name: pcloudcc
3+
Source: https://gitlab.pcloud.com/ivan.stoev/console_client
4+
5+
Files: *
6+
Copyright: 2016 Ivan Stoev <[email protected]>
7+
8+
License:
9+
Copyright (c) 2013-2015 pCloud Ltd.
10+
All rights reserved.
11+
12+
Redistribution and use in source and binary forms, with or without
13+
modification, are permitted provided that the following conditions are met:
14+
* Redistributions of source code must retain the above copyright
15+
notice, this list of conditions and the following disclaimer.
16+
* Redistributions in binary form must reproduce the above copyright
17+
notice, this list of conditions and the following disclaimer in the
18+
documentation and/or other materials provided with the distribution.
19+
* Neither the name of pCloud Ltd nor the
20+
names of its contributors may be used to endorse or promote products
21+
derived from this software without specific prior written permission.
22+
23+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
24+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
25+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
26+
DISCLAIMED. IN NO EVENT SHALL pCloud Ltd BE LIABLE FOR ANY
27+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
28+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
30+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
32+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33+

0 commit comments

Comments
 (0)