-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
620 additions
and
263 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
# Key Rotation | ||
|
||
# downloads-hostgator.mixxx.org | ||
|
||
SSH access is granted via an RSA key stored in `build/certificates/downloads-hostgator.mixxx.org.key`. | ||
|
||
To rotate this key, generate a new RSA key with a strong password (e.g. 32 character randomly generated). | ||
|
||
``` | ||
ssh-keygen -t rsa -b 4096 -f downloads-hostgator.mixxx.org.key | ||
``` | ||
|
||
Copy the **public** key to `$HOME/.ssh/authorized_keys`, replacing the old file to remove access for the current key. | ||
|
||
Encrypt the password using `travis encrypt` and update `.travis.yml`. | ||
|
||
``` | ||
travis encrypt DOWNLOADS_HOSTGATOR_DOT_MIXXX_DOT_ORG_KEY_PASSWORD=hunter2 -r mixxxdj/mixxx | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
-----BEGIN RSA PRIVATE KEY----- | ||
Proc-Type: 4,ENCRYPTED | ||
DEK-Info: AES-128-CBC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
gDM4fgUsM0JApSvgSrvJx3yMCDCqhN1VPjEwnXFHVsK39GQs6zvlCbsYjuifRzmR | ||
AjOSGOWQfwbhDm+AdN6Zi8xi5VbYMlmaeYwYIrG00PmxxeAzqjVcAIn5Z04tCGJA | ||
-----END RSA PRIVATE KEY----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDP1q+/ayZvi1NCqVZBmajI1TP2qAO1H5pNLx80z/qfNkFMWspgrT3//xaItMfhyIjAycQfDBYOatxFCNST5y12Pjm8H1SF74dHLIVhBdAGfb7JtOt4vAqxeJp7E7T3gn7ZmcNCJnnVPnX0Wl4NRNvS/sE7Q5a/UUNOJGWyvKfrfvuvp91J+XQqhB6shUkmGmchL5ISHbq1i6EbH3ZyRqmPQSAROJ9yyQIVBuCuSisgl3teOnqDxibFP8yMOJhysw3VA8U29ERP8gtvSjcTfDJXeiMM6y6Ty4SrYJe3KUU2OQI3u4W31KREUGj9zH9SBcfh/EvUjw/bw/OSgKxsCaJIeH8bOnFz037ipgGCTbYcdvhEKIJRFqy0/kjm7hf4rWITNJ9Wvkn83MAhvEeOVPoV6cajQZd/0r54Fg8/6/mhp7J5yBBNjKNRYDW5wDpYPjwRvxVEIYS5QD1wwUHmRF1qy1YiAJK37YmoWr4Fd8fWNF5g+ozhCacaxIMcWjKneStwCsjxIG4mTBEnJAIt6mFptoX0ewA8ozgw7POBNLSW469LiGDZOf9GTBL6YsGyaV2WzWjSIFYn2dqL+TfSaKNqDBFoHLJ2SZ+Utp5a63NCaLAY5TbGUbzAMmq8j4qrJa1wu6y7GUKiYs5BByik+j9szW0/i28FkQjnZYMPtTSJ/w== mixxx@downloads-hostgator.mixxx.org |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
# | ||
# Deploy artifacts (e.g. dmg, deb files) built by Travis to downloads.mixxx.org. | ||
# Run within the cmake_build directory. | ||
|
||
set -eu -o pipefail | ||
|
||
USER=mixxx | ||
HOSTNAME=downloads-hostgator.mixxx.org | ||
TRAVIS_DESTDIR=public_html/downloads/builds/travis | ||
SSH_KEY=../build/certificates/downloads-hostgator.mixxx.org.key | ||
SSH="ssh -i ${SSH_KEY} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" | ||
DEST_PATH=${TRAVIS_DESTDIR}/${TRAVIS_BRANCH}/ | ||
TMP_PATH=${TRAVIS_DESTDIR}/.tmp/$TRAVIS_BUILD_ID/ | ||
|
||
echo "Deploying to $TMP_PATH, then to $DEST_PATH." | ||
|
||
# Remove permissions for group and other users so that ssh-keygen does not | ||
# complain about the key not being protected. | ||
chmod go-rwx ${SSH_KEY} | ||
|
||
# "Unlock" the key by removing its password. This is easier than messing with ssh-agent. | ||
ssh-keygen -p -P ${DOWNLOADS_HOSTGATOR_DOT_MIXXX_DOT_ORG_KEY_PASSWORD} -N "" -f ${SSH_KEY} | ||
|
||
# Always upload to a temporary path. | ||
shopt -s extglob | ||
rsync -e "${SSH}" --rsync-path="mkdir -p ${TMP_PATH} && rsync" -r --delete-after --quiet ./*.@(deb|dmg) ${USER}@${HOSTNAME}:${TMP_PATH} | ||
|
||
# Move from the temporary path to the final destination. | ||
$SSH ${USER}@${HOSTNAME} "mkdir -p ${DEST_PATH} && mv ${TMP_PATH}/* ${DEST_PATH} && rmdir ${TMP_PATH}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
# This file is part of Mixxx, Digital DJ'ing software. | ||
# Copyright (C) 2001-2020 Mixxx Development Team | ||
# Distributed under the GNU General Public Licence (GPL) version 2 or any later | ||
# later version. See the LICENSE file for details. | ||
|
||
#[=======================================================================[.rst: | ||
FindDjInterop | ||
--------------- | ||
Finds the DjInterop library. | ||
Imported Targets | ||
^^^^^^^^^^^^^^^^ | ||
This module provides the following imported targets, if found: | ||
``DjInterop::DjInterop`` | ||
The DjInterop library | ||
Result Variables | ||
^^^^^^^^^^^^^^^^ | ||
This will define the following variables: | ||
``DjInterop_FOUND`` | ||
True if the system has the DjInterop library. | ||
``DjInterop_INCLUDE_DIRS`` | ||
Include directories needed to use DjInterop. | ||
``DjInterop_LIBRARIES`` | ||
Libraries needed to link to DjInterop. | ||
``DjInterop_DEFINITIONS`` | ||
Compile definitions needed to use DjInterop. | ||
Cache Variables | ||
^^^^^^^^^^^^^^^ | ||
The following cache variables may also be set: | ||
``DjInterop_INCLUDE_DIR`` | ||
The directory containing ``djinterop/djinterop.hpp``. | ||
``DjInterop_LIBRARY`` | ||
The path to the DjInterop library. | ||
#]=======================================================================] | ||
|
||
find_package(PkgConfig QUIET) | ||
if(PkgConfig_FOUND) | ||
pkg_check_modules(PC_DjInterop QUIET libdjinterop) | ||
endif() | ||
|
||
find_path(DjInterop_INCLUDE_DIR | ||
NAMES djinterop/djinterop.hpp | ||
PATHS ${PC_DjInterop_INCLUDE_DIRS} | ||
DOC "DjInterop include directory") | ||
mark_as_advanced(DjInterop_INCLUDE_DIR) | ||
|
||
find_library(DjInterop_LIBRARY | ||
NAMES djinterop | ||
PATHS ${PC_DjInterop_LIBRARY_DIRS} | ||
DOC "DjInterop library" | ||
) | ||
mark_as_advanced(DjInterop_LIBRARY) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args( | ||
DjInterop | ||
DEFAULT_MSG | ||
DjInterop_LIBRARY | ||
DjInterop_INCLUDE_DIR | ||
) | ||
|
||
if(DjInterop_FOUND) | ||
set(DjInterop_LIBRARIES "${DjInterop_LIBRARY}") | ||
set(DjInterop_INCLUDE_DIRS "${DjInterop_INCLUDE_DIR}") | ||
set(DjInterop_DEFINITIONS ${PC_DjInterop_CFLAGS_OTHER}) | ||
|
||
if(NOT TARGET DjInterop::DjInterop) | ||
add_library(DjInterop::DjInterop UNKNOWN IMPORTED) | ||
set_target_properties(DjInterop::DjInterop | ||
PROPERTIES | ||
IMPORTED_LOCATION "${DjInterop_LIBRARY}" | ||
INTERFACE_COMPILE_OPTIONS "${PC_DjInterop_CFLAGS_OTHER}" | ||
INTERFACE_INCLUDE_DIRECTORIES "${DjInterop_INCLUDE_DIR}" | ||
) | ||
endif() | ||
endif() |
Oops, something went wrong.