removed chocolatey

This commit is contained in:
Shreyas Zare
2021-03-13 13:32:17 +05:30
parent 4949f3f6c0
commit 94b463f42a
6 changed files with 0 additions and 166 deletions

View File

@@ -1 +0,0 @@
I am the package maintainer AND the software developer for Technitium DNS Server.

View File

@@ -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!"

View File

@@ -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

View File

@@ -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"}
}

View File

@@ -1,50 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>technitiumdnsserver</id>
<version>%fileversion%</version>
<owners>Shreyas Zare</owners>
<title>Technitium DNS Server</title>
<authors>Shreyas Zare, Contributors</authors>
<projectUrl>https://technitium.com/dns/</projectUrl>
<projectSourceUrl>https://github.com/TechnitiumSoftware/DnsServer</projectSourceUrl>
<bugTrackerUrl>https://github.com/TechnitiumSoftware/DnsServer/issues</bugTrackerUrl>
<copyright>Shreyas Zare</copyright>
<tags>dns dhcp</tags>
<iconUrl>https://technitium.com/img/logo25x25.png</iconUrl>
<dependencies>
<dependency id="dotnet-5.0-desktopruntime" version="5.0.0" />
</dependencies>
<summary>Open Source DNS and DHCP Server.</summary>
<description>
Technitium DNS Server is an open source tool that can be used for self hosting a local DNS server for privacy &amp; 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 &amp; 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 &amp; 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.
</description>
</metadata>
<files>
<file src="tools\**" target="tools" />
</files>
</package>