Downloads:

78

Downloads of v 0.4.1:

34

Last Update:

14 Mar 2021

Package Maintainer(s):

Software Author(s):

  • Heiko B.
  • Kevin R.

Tags:

drasyl overlay-network p2p

drasyl

  • 1
  • 2
  • 3

0.4.1 | Updated: 14 Mar 2021

Downloads:

78

Downloads of v 0.4.1:

34

Maintainer(s):

Software Author(s):

  • Heiko B.
  • Kevin R.

  • 1
  • 2
  • 3
drasyl 0.4.1

  • 1
  • 2
  • 3

All Checks are Passing

3 Passing Tests


Validation Testing Passed


Verification Testing Passed

Details

Scan Testing Successful:

No detections found in any package files

Details

To install drasyl, run the following command from the command line or from PowerShell:

>

To upgrade drasyl, run the following command from the command line or from PowerShell:

>

To uninstall drasyl, run the following command from the command line or from PowerShell:

>

NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://community.chocolatey.org/api/v2. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to https://community.chocolatey.org/api/v2)

4. Choose your deployment method:


choco upgrade drasyl -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade drasyl -y --source="'STEP 3 URL'"
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Ensure drasyl installed
  win_chocolatey:
    name: drasyl
    state: present
    version: 0.4.1
    source: STEP 3 URL

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.


chocolatey_package 'drasyl' do
  action    :install
  version  '0.4.1'
  source   'STEP 3 URL'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


Chocolatey::Ensure-Package
(
    Name: drasyl,
    Version: 0.4.1,
    Source: STEP 3 URL
);

Requires Otter Chocolatey Extension. See docs at https://inedo.com/den/otter/chocolatey.


cChocoPackageInstaller drasyl
{
   Name     = 'drasyl'
   Ensure   = 'Present'
   Version  = '0.4.1'
   Source   = 'STEP 3 URL'
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'drasyl':
  provider => 'chocolatey',
  ensure   => '0.4.1',
  source   => 'STEP 3 URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


salt '*' chocolatey.install drasyl version="0.4.1" source="STEP 3 URL"

See docs at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html.

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

Private CDN cached downloads available for licensed customers. Never experience 404 breakages again! Learn more...

There are versions of this package awaiting moderation . See the Version History section below.

This package was approved by moderator TheCakeIsNaOH on 19 Mar 2021.

Description

drasyl is a general-purpose overlay network framework for rapid development of distributed P2P
applications.

By using drasyl developers can fully concentrate on creating distributed applications. With drasyl,
boundaries between IP-based networks will be eliminated and secure communication channels between
any peers will be provided. Zero-configuration is required to use drasyl. Developers can run a new
drasyl node without having to write configuration files or provide IP addresses of peers.

drasyl architecture

Features

  • Provides Communication Channels between any two Nodes (on the Internet).
  • Automatic Discovery of Peers running within same Process, Computer, LAN, or the Internet.
  • Automatic Handover to most local Communication Channel.
  • Overcomes Network Barriers (Statefull Firewalls, NATs).
  • UDP Hole Punching.
  • Port Mapping (UPnP-IGD, NAT-PMP, PCP).
  • Reacts to Network Changes.
  • Asynchronous and Event-Driven.
  • Lightweight.
  • Extensible.

Usage and Documentation

License

This is free software under the terms of the GNU Lesser General Public License v3.0


tools\chocolateyBeforeModify.ps1
# based on: https://github.com/johanjanssen/ChocolateyPackages/blob/master/OpenJDK/tools/chocolateyBeforeModify.ps1

$pathToUnInstall = "`%DRASYL_HOME`%\bin"
$statementTerminator = ";"
$actualPath = [System.Collections.ArrayList](Get-EnvironmentVariable -Name 'Path' -Scope 'Machine' -PreserveVariables).split($statementTerminator)

if ($actualPath -contains $pathToUnInstall)
{
	Write-Host "PATH environment variable contains $pathToUnInstall. Removing..."
	
	$actualPath.Remove($pathToUnInstall)	
	$newPath =  $actualPath -Join $statementTerminator

	$cmd = "Set-EnvironmentVariable -Name 'Path' -Value `'$newPath`' -Scope 'Machine'"

    if (Test-ProcessAdminRights) {
        Invoke-Expression $cmd
    } else {
        Start-ChocolateyProcessAsAdmin "$cmd"
    }
}
tools\chocolateyinstall.ps1
# based on: https://gitlab.com/DarwinJS/ChocoPackages/-/blob/master/ec2clitools/tools/chocolateyinstall.ps1

$ErrorActionPreference = 'Stop';

$packageName    = $env:ChocolateyPackageName
$packageVersion = $env:ChocolateyPackageVersion
$toolsDir       = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$url            = "https://github.com/drasyl-overlay/drasyl/releases/download/v$($packageVersion)/drasyl-$($packageVersion).zip"
$checksum       = "214dd541367c383130ee99ed101f7d02af607a8a5fbd20db6b0a96d2cb99c45e"
$checksumType   = 'sha256'
$drasylHome     = Join-Path $toolsDir "drasyl-$($packageVersion)"

Install-ChocolateyZipPackage $packageName $url $toolsDir -checksum $checksum -checksumType $checksumType

# Remove Unix file
Remove-Item "$($drasylHome)\bin\drasyl"

Install-ChocolateyEnvironmentVariable 'DRASYL_HOME' $drasylHome 'Machine'

Install-ChocolateyPath "`%DRASYL_HOME`%\bin" 'Machine'

Write-Warning "You must start a new prompt, or re-read the environment for the drasyl command to be available in your command line environment."
tools\chocolateyuninstall.ps1
# based on https://gitlab.com/DarwinJS/ChocoPackages/-/blob/master/ec2clitools/tools/chocolateyuninstall.ps1

$ErrorActionPreference = 'Stop';

$packageName    = $env:ChocolateyPackageName
$packageVersion = $env:ChocolateyPackagVersion
$zipName = "drasyl-$($packageVersion).zip"

Uninstall-ChocolateyZipPackage $packageName $zipName

Uninstall-ChocolateyEnvironmentVariable 'DRASYL_HOME' 'Machine'

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Version Downloads Last Updated Status
drasyl 0.5.0 6 Monday, June 28, 2021 Ready
drasyl 0.3.0 38 Saturday, March 13, 2021 Approved

Discussion for the drasyl Package

Ground Rules:

  • This discussion is only about drasyl and the drasyl package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or drasyl, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus