diff --git a/DnsServiceSetup/Chocolatey/.skipAutoUninstall b/DnsServiceSetup/Chocolatey/.skipAutoUninstall deleted file mode 100644 index e69de29b..00000000 diff --git a/DnsServiceSetup/Chocolatey/VERIFICATION.txt b/DnsServiceSetup/Chocolatey/VERIFICATION.txt deleted file mode 100644 index 994aea82..00000000 --- a/DnsServiceSetup/Chocolatey/VERIFICATION.txt +++ /dev/null @@ -1 +0,0 @@ -I am the package maintainer AND the software developer for Technitium DNS Server. \ No newline at end of file diff --git a/DnsServiceSetup/Chocolatey/build.ps1 b/DnsServiceSetup/Chocolatey/build.ps1 deleted file mode 100644 index e35373d2..00000000 --- a/DnsServiceSetup/Chocolatey/build.ps1 +++ /dev/null @@ -1,70 +0,0 @@ -$buildfolder = "build/" -$installerfilename = "dnsserverinstall" -Write-Host "DNS Server Chocolatey Package Builder" -Write-Host "-------------------------------------" -Write-Host "Create build folders..." -New-Item -ItemType Directory -Path "${buildfolder}" -ErrorAction Ignore | Out-Null -New-Item -ItemType Directory -Path "${buildfolder}/tools" -ErrorAction Ignore | Out-Null - -Write-Host "Building Setup..." -iscc "/O./${buildfolder}/tools" "/F$installerfilename" ..\Windows\DnsServiceSetup.iss | Out-Null -if ($LASTEXITCODE -ne 0) { - Write-Host "Error: Inno Setup Compile Failed!" - return -} else { - Write-Host "Build Success!" -} - -$installerfilename = "${installerfilename}.exe" -$version = [System.Diagnostics.FileVersionInfo]::GetVersionInfo("./${buildfolder}/tools/${installerfilename}").ProductVersion -Write-Host "Version: $version" -if (!$version) { - Write-Host "Error: Could not get Product Version from Installer File" - return -} -Write-Host "Copying files..." - -$nuspecfilename = "" - -$files = Get-ChildItem -Path . -foreach ($file in $files) { - if ($file.Name.StartsWith("build")) { - #Skip any build files starting with the word build (ie: build.ps1) - continue - } - - if ($file.Name.EndsWith(".template")) { - Write-Host "Build $($file.Name)" - $outfilename = ($file.Name -replace ".{9}$") - $templater = Get-Content "$($file.Name)" -Raw - - $templater = $templater -replace "%fileversion%", "$version" - $templater = $templater -replace "%installfile%", "$installerfilename" - - $outpath = "${buildfolder}/" - if (!$outfilename.EndsWith(".nuspec")) { - $outpath = "${outpath}/tools/" - } else { - $nuspecfilename = $outfilename - } - - $templater | Out-File "${outpath}/${outfilename}" - } else { - Write-Host "Copy $($file.Name)" - - $outpath = "${buildfolder}/" - if (!$file.Name.EndsWith(".nuspec")) { - $outpath = "${outpath}/tools/" - } else { - $nuspecfilename = $file.Name - } - - Copy-Item "$($file.Name)" "${outpath}/$($file.Name)" - } -} - -Write-Host "Create Package..." -cpack ${buildfolder}/${nuspecfilename} --out ../Release -Write-Host "Remove Build Folder" -Remove-Item -Path "${buildfolder}" -Recurse -Write-Host "COMPLETE!" \ No newline at end of file diff --git a/DnsServiceSetup/Chocolatey/chocolateyInstall.ps1.template b/DnsServiceSetup/Chocolatey/chocolateyInstall.ps1.template deleted file mode 100644 index d80bdbb3..00000000 --- a/DnsServiceSetup/Chocolatey/chocolateyInstall.ps1.template +++ /dev/null @@ -1,14 +0,0 @@ -$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" -$file = "$toolsDir/%installfile%" - -$packageArgs = @{ - packageName = $env:ChocolateyPackageName - fileType = 'EXE' - - file = $file - - silentArgs = "/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /LOG=`"$($env:TEMP)\$($env:chocolateyPackageName).$($env:chocolateyPackageVersion).Install.log`" /skipnet=true" - validExitCodes= @(0) -} - -Install-ChocolateyInstallPackage @packageArgs \ No newline at end of file diff --git a/DnsServiceSetup/Chocolatey/chocolateyUninstall.ps1 b/DnsServiceSetup/Chocolatey/chocolateyUninstall.ps1 deleted file mode 100644 index 959fd313..00000000 --- a/DnsServiceSetup/Chocolatey/chocolateyUninstall.ps1 +++ /dev/null @@ -1,31 +0,0 @@ -$ErrorActionPreference = 'Stop'; - -$packageName = 'technitiumdnsserver' -$softwareName = 'Technitium DNS Server*' -$installerType = 'EXE' - -$silentArgs = "/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /LOG=`"$($env:TEMP)\$($env:chocolateyPackageName).$($env:chocolateyPackageVersion).Uninstall.log`"" -$validExitCodes = @(0) - -$uninstalled = $false -[array]$key = Get-UninstallRegistryKey -SoftwareName $softwareName - -if ($key.Count -eq 1) { - $key | ForEach-Object { - $file = "$($_.UninstallString.Trim('"'))" - - Uninstall-ChocolateyPackage ` - -PackageName $packageName ` - -FileType $installerType ` - -SilentArgs "$silentArgs" ` - -ValidExitCodes $validExitCodes ` - -File "$file" - } -} elseif ($key.Count -eq 0) { - Write-Warning "$packageName has already been uninstalled by other means." -} elseif ($key.Count -gt 1) { - Write-Warning "$key.Count matches found!" - Write-Warning "To prevent accidental data loss, no programs will be uninstalled." - Write-Warning "Please alert package maintainer the following keys were matched:" - $key | ForEach-Object {Write-Warning "- $_.DisplayName"} -} \ No newline at end of file diff --git a/DnsServiceSetup/Chocolatey/technitiumdnsserver.nuspec.template b/DnsServiceSetup/Chocolatey/technitiumdnsserver.nuspec.template deleted file mode 100644 index 12791a10..00000000 --- a/DnsServiceSetup/Chocolatey/technitiumdnsserver.nuspec.template +++ /dev/null @@ -1,50 +0,0 @@ - - - - technitiumdnsserver - %fileversion% - Shreyas Zare - Technitium DNS Server - Shreyas Zare, Contributors - https://technitium.com/dns/ - https://github.com/TechnitiumSoftware/DnsServer - https://github.com/TechnitiumSoftware/DnsServer/issues - Shreyas Zare - dns dhcp - https://technitium.com/img/logo25x25.png - - - - Open Source DNS and DHCP Server. - -Technitium DNS Server is an open source tool that can be used for self hosting a local DNS server for privacy & security or, used for experimentation/testing by software developers on their computer. It works out-of-the-box with no or minimal configuration and provides a user friendly web console accessible using any web browser. - -Features: -* Works on Windows, Linux, macOS and Raspberry Pi. -* Installs in just a minute and works out-of-the-box with zero configuration. -* Block Ads using one or more block list URLs. -* Run [DNS-over-TLS](https://en.wikipedia.org/wiki/DNS_over_TLS) and [DNS-over-HTTPS](https://en.wikipedia.org/wiki/DNS_over_HTTPS) DNS service on your network. -* Use public DNS resolvers like Cloudflare, Google & Quad9 with DNS-over-TLS and DNS-over-HTTPS protocols as forwarders. -* Advance caching with features like serve stale, prefetching and auto prefetching. -* Supports working as an authoritative as well as a recursive DNS server. -* CNAME cloaking feature to block domain names that resolve to CNAME which are blocked. -* QNAME minimization support in recursive resolver [draft-ietf-dnsop-rfc7816bis-04](https://tools.ietf.org/html/draft-ietf-dnsop-rfc7816bis-04). -* QNAME randomization support for UDP transport protocol [draft-vixie-dnsext-dns0x20-00](https://tools.ietf.org/html/draft-vixie-dnsext-dns0x20-00). -* ANAME propriety record support to allow using CNAME like feature at zone root. -* Primary, Secondary, Stub and Conditional Forwarder zone support. -* Host domain names on your own DNS server. -* Wildcard sub domain support. -* Enable/disable zones and records to allow testing with ease. -* Built-in DNS Client with option to import responses to local zone. -* Supports out-of-order DNS request processing for DNS-over-TCP and DNS-over-TLS protocols. -* Built-in DHCP Server that can work for multiple networks. -* IPv6 support in DNS server core. -* HTTP & SOCKS5 proxy support which can be configured to route DNS over Tor Network or use Cloudflare's hidden DNS resolver. -* Web console portal for easy configuration using any web browser. -* Built-in system logging and query logging. - - - - - - \ No newline at end of file