From 19da82258e3f019d4e79dd0b3a7776a97f881c6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Furkan=20G=C3=B6ksel?= Date: Fri, 19 Sep 2025 23:00:27 +0300 Subject: [PATCH] Add OSV-Scalibr Test Image for Chocolatey --- chocolatey/Dockerfile | 21 ++++++++ chocolatey/README.md | 10 ++++ .../lib/atom.install/atom.install.nuspec | 41 +++++++++++++++ chocolatey/chocolatey/lib/atom/atom.nuspec | 44 ++++++++++++++++ chocolatey/chocolatey/lib/cmake/cmake.nuspec | 51 +++++++++++++++++++ chocolatey/chocolatey/lib/git/git.nuspec | 44 ++++++++++++++++ .../chocolatey/lib/vscode/vscode.nuspec | 50 ++++++++++++++++++ .../chocolatey/lib/winrar/winrar.nuspec | 45 ++++++++++++++++ 8 files changed, 306 insertions(+) create mode 100644 chocolatey/Dockerfile create mode 100644 chocolatey/README.md create mode 100755 chocolatey/chocolatey/lib/atom.install/atom.install.nuspec create mode 100755 chocolatey/chocolatey/lib/atom/atom.nuspec create mode 100755 chocolatey/chocolatey/lib/cmake/cmake.nuspec create mode 100755 chocolatey/chocolatey/lib/git/git.nuspec create mode 100755 chocolatey/chocolatey/lib/vscode/vscode.nuspec create mode 100755 chocolatey/chocolatey/lib/winrar/winrar.nuspec diff --git a/chocolatey/Dockerfile b/chocolatey/Dockerfile new file mode 100644 index 00000000..627ff263 --- /dev/null +++ b/chocolatey/Dockerfile @@ -0,0 +1,21 @@ +# Use Ubuntu 22.04 base +FROM ubuntu:22.04 + +# Install bash explicitly (Ubuntu images usually have it, but to be safe) +RUN apt-get update && apt-get install -y bash + +# Create the chocolatey folder +RUN mkdir -p /test/chocolatey/ + +# App for putting scalibr binary inside the container +RUN mkdir -p /app + +# Copy local chocolatey directories into the container +COPY chocolatey/ /test/chocolatey/ + +# Set working directory (optional) +WORKDIR /app + +# Default command: start bash so the container stays alive interactively +CMD ["/bin/bash"] + diff --git a/chocolatey/README.md b/chocolatey/README.md new file mode 100644 index 00000000..373e5877 --- /dev/null +++ b/chocolatey/README.md @@ -0,0 +1,10 @@ +# OSV-Scalibr: Chocolatey Extractor + +This directory contains the test Dockerfile for testing OSV-Scalibr Chocolatey Extractor plugin. Chocolatey is software management automation for Windows Systems. It stores .nuspec files under the C:\ProgramData\chocolatey\lib for each installed packages. This plugin enumerates folder paths under this directory to extract name, version and other metadata from .nuspec files. + +## Setup + +```sh +docker build -t chocolatey-test . +docker run -it --rm -v $(pwd):/app chocolatey-test (to put scalibr binary inside the container) +``` diff --git a/chocolatey/chocolatey/lib/atom.install/atom.install.nuspec b/chocolatey/chocolatey/lib/atom.install/atom.install.nuspec new file mode 100755 index 00000000..9cd77a37 --- /dev/null +++ b/chocolatey/chocolatey/lib/atom.install/atom.install.nuspec @@ -0,0 +1,41 @@ + + + + atom.install + 1.60.0 + Atom (Install) + GitHub Inc. + Thilas + https://github.com/atom/atom/blob/master/LICENSE.md + https://atom.io/ + https://cdn.jsdelivr.net/gh/Thilas/chocolatey-packages@058df13746c9cfa791d72eedd05f888d48a1bc1a/atom/icon.png + false + Atom is a text editor that's modern, approachable, yet hackable to the core—a tool you can customize to do anything but also use productively without ever touching a config file. + +### Cross-platform editing +Atom works across operating systems. You can use it on OS X, Windows, or Linux. + +### Built-in package manager +Search for and install new packages or start creating your own—all from within Atom. + +### Smart autocompletion +Atom helps you write code faster with a smart, flexible autocomplete. + +### File system browser +Easily browse and open a single file, a whole project, or multiple projects in one window. + +### Multiple panes +Split your Atom interface into multiple panes to compare and edit code across files. + +### Find and replace +Find, preview, and replace text as you type in a file or across all your projects. + A hackable text editor for the 21st Century. + [Release notes](https://atom.io/releases) + Copyright © GitHub Inc. + atom admin text editor notepad github package autocompletion + https://github.com/atom/atom + https://github.com/Thilas/chocolatey-packages/tree/master/atom.install + https://atom.io/docs + https://github.com/atom/atom/issues + + \ No newline at end of file diff --git a/chocolatey/chocolatey/lib/atom/atom.nuspec b/chocolatey/chocolatey/lib/atom/atom.nuspec new file mode 100755 index 00000000..9b7546df --- /dev/null +++ b/chocolatey/chocolatey/lib/atom/atom.nuspec @@ -0,0 +1,44 @@ + + + + atom + 1.60.0 + Atom + GitHub Inc. + bradgearon,Thilas + https://github.com/atom/atom/blob/master/LICENSE.md + https://atom.io/ + https://cdn.jsdelivr.net/gh/Thilas/chocolatey-packages@058df13746c9cfa791d72eedd05f888d48a1bc1a/atom/icon.png + false + Atom is a text editor that's modern, approachable, yet hackable to the core—a tool you can customize to do anything but also use productively without ever touching a config file. + +### Cross-platform editing +Atom works across operating systems. You can use it on OS X, Windows, or Linux. + +### Built-in package manager +Search for and install new packages or start creating your own—all from within Atom. + +### Smart autocompletion +Atom helps you write code faster with a smart, flexible autocomplete. + +### File system browser +Easily browse and open a single file, a whole project, or multiple projects in one window. + +### Multiple panes +Split your Atom interface into multiple panes to compare and edit code across files. + +### Find and replace +Find, preview, and replace text as you type in a file or across all your projects. + A hackable text editor for the 21st Century. + [Release notes](https://atom.io/releases) + Copyright © GitHub Inc. + atom admin text editor notepad github package autocompletion + https://github.com/atom/atom + https://github.com/Thilas/chocolatey-packages/tree/master/atom + https://atom.io/docs + https://github.com/atom/atom/issues + + + + + \ No newline at end of file diff --git a/chocolatey/chocolatey/lib/cmake/cmake.nuspec b/chocolatey/chocolatey/lib/cmake/cmake.nuspec new file mode 100755 index 00000000..4e594b05 --- /dev/null +++ b/chocolatey/chocolatey/lib/cmake/cmake.nuspec @@ -0,0 +1,51 @@ + + + + cmake + 4.1.1 + CMake + Andy Cedilnik, Bill Hoffman, Brad King, Ken Martin, Alexander Neundorf + chocolatey-community, dtgm + false + https://gitlab.kitware.com/cmake/cmake/blob/master/Copyright.txt + https://www.cmake.org/ + https://cdn.jsdelivr.net/gh/chocolatey-community/chocolatey-packages@5633c4413a8b71f75f379190546a0047c0e0b12b/icons/cmake.png + CMake is an open-source, cross-platform family of tools designed to build, test and package software. CMake is used to control the software compilation process using simple platform and compiler independent configuration files, and generate native makefiles and workspaces that can be used in the compiler environment of your choice. The suite of CMake tools were created by Kitware in response to the need for a powerful, cross-platform build environment for open-source projects such as ITK and VTK. + +[Development](https://www.cmake.org/developer-resources/) + +#### MSI Properties + +`ADD_CMAKE_TO_PATH` +- `0` = Do not add CMake to PATH +- `1` = Add CMake to system PATH for __all users__ (default) + +`DESKTOP_SHORTCUT_REQUESTED` +- `0` = Do not create desktop icon (default) +- `1` = Create CMake desktop icon + +`ALLUSERS` +- `0` = Install for the current user only +- `1` = Install for all users (default) + +For example: `choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System' --apply-install-arguments-to-dependencies` + +## Notes + +- **If the package is out of date please check [Version History](#versionhistory) for the latest submitted version. If you have a question, please ask it in [Chocolatey Community Package Discussions](https://github.com/chocolatey-community/chocolatey-packages/discussions) or raise an issue on the [Chocolatey Community Packages Repository](https://github.com/chocolatey-community/chocolatey-packages/issues) if you have problems with the package. Disqus comments will generally not be responded to.** + Cross-platform, open-source build system including CMake, CTest, CPack, and CMake-GUI + #### Program +* [News](https://blog.kitware.com/tag/CMake/) +* [Changelog](https://www.cmake.org/download/#latest) + © 2000 Kitware Inc + cmake compiler make build foss cross-platform + https://gitlab.kitware.com/cmake/cmake + https://github.com/chocolatey-community/chocolatey-packages/tree/master/automatic/cmake + https://www.cmake.org/documentation/ + https://cmake.org/mailing-lists/ + https://gitlab.kitware.com/cmake/cmake/issues + + + + + \ No newline at end of file diff --git a/chocolatey/chocolatey/lib/git/git.nuspec b/chocolatey/chocolatey/lib/git/git.nuspec new file mode 100755 index 00000000..81b51f4d --- /dev/null +++ b/chocolatey/chocolatey/lib/git/git.nuspec @@ -0,0 +1,44 @@ + + + + git + 2.51.0 + Git + The Git Development Community + chocolatey-community + false + http://www.gnu.org/licenses/old-licenses/gpl-2.0.html + https://git-for-windows.github.io/ + https://cdn.jsdelivr.net/gh/chocolatey-community/chocolatey-packages@10a8d98b2f320b565fa5349a4352e79666db71ff/icons/git.svg + Git for Windows focuses on offering a lightweight, native set of tools that bring the full feature set of the Git SCM to Windows while providing appropriate user interfaces for experienced Git users and novices alike. + +## Features + +- **Git BASH**: Git for Windows provides a BASH emulation used to run Git from the command line. *NIX users should feel right at home, as the BASH emulation behaves just like the "git" command in LINUX and UNIX environments. +- **Git GUI**: As Windows users commonly expect graphical user interfaces, Git for Windows also provides the Git GUI, a powerful alternative to Git BASH, offering a graphical version of just about every Git command line function, as well as comprehensive visual diff tools. +- **Shell Integration**: Simply right-click on a folder in Windows Explorer to access the BASH or GUI. + +## Package parameters + +See the [Git Package Parameters documentation page](https://github.com/chocolatey-community/chocolatey-packages/blob/master/automatic/git.install/ARGUMENTS.md). + +Example for passing in package parameters: +`choco install git.install --params "'/GitAndUnixToolsOnPath /WindowsTerminal /NoAutoCrlf'"` + +## Notes + +- The package uses default install options minus desktop icons. +- **If the package is out of date please check [Version History](#versionhistory) for the latest submitted version. If you have a question, please ask it in [Chocolatey Community Package Discussions](https://github.com/chocolatey-community/chocolatey-packages/discussions) or raise an issue on the [Chocolatey Community Packages Repository](https://github.com/chocolatey-community/chocolatey-packages/issues) if you have problems with the package. Disqus comments will generally not be responded to.** +- Starting with version 2.49.0, installers for 32bit platforms are no longer available. If this is required, use an older version of the package. + Git for Windows offers a native set of tools that bring the full feature set of the Git SCM to Windows + git vcs dvcs version-control msysgit foss cross-platform cli + https://github.com/git-for-windows/git + https://github.com/chocolatey-community/chocolatey-packages/tree/master/automatic/git + http://git-scm.com/doc + http://groups.google.com/group/git-for-windows + https://github.com/git-for-windows/git/issues + + + + + \ No newline at end of file diff --git a/chocolatey/chocolatey/lib/vscode/vscode.nuspec b/chocolatey/chocolatey/lib/vscode/vscode.nuspec new file mode 100755 index 00000000..21ac5102 --- /dev/null +++ b/chocolatey/chocolatey/lib/vscode/vscode.nuspec @@ -0,0 +1,50 @@ + + + + vscode + 1.104.0 + Visual Studio Code + Microsoft + chocolatey-community + false + https://code.visualstudio.com/License + https://code.visualstudio.com/ + https://cdn.jsdelivr.net/gh/chocolatey-community/chocolatey-packages@00a000c7e5d8cc0d8416468e164eef281f843bff/icons/vscode.png + Build and debug modern web and cloud applications. Code is free and available on your favorite platform - Linux, Mac OSX, and Windows. + +## Features + +* **Meet IntelliSense:** Go beyond syntax highlighting and autocomplete with IntelliSense, which provides smart completions based on variable types, function definitions, and imported modules. +* **Print statement debugging is a thing of the past:** Debug code right from the editor. Launch or attach to your running apps and debug with break points, call stacks, and an interactive console. +* **Git commands built-in:** Working with Git has never been easier. Review diffs, stage files, and make commits right from the editor. Push and pull from any hosted Git service. +* **Extensible and customizable:** Want even more features? Install extensions to add new languages, themes, debuggers, and to connect to additional services. Extensions run in separate processes, ensuring they won't slow down your editor. + +## Package parameters + +* `/NoDesktopIcon` - Don't add a desktop icon. +* `/NoQuicklaunchIcon` - Don't add an icon to the QuickLaunch area. +* `/NoContextMenuFiles` - Don't add an _Open with Code_ entry to the context menu for files. +* `/NoContextMenuFolders` - Dont't add an _Open with Code_ entry to the context menu for folders. +* `/DontAddToPath` - Don't add Visual Studio Code to the system PATH. + +Example: `choco install vscode --params "/NoDesktopIcon /DontAddToPath"` + +## Notes + +* The package uses default install options except that it adds context menu entries and Visual Studio Code isn't started after installation. +* For disabling the auto-update functionality see the [Visual Studio Code Auto Update Deactivation package](https://chocolatey.org/packages/visualstudiocode-disableautoupdate). +* **If the package is out of date please check [Version History](#versionhistory) for the latest submitted version. If you have a question, please ask it in [Chocolatey Community Package Discussions](https://github.com/chocolatey-community/chocolatey-packages/discussions) or raise an issue on the [Chocolatey Community Packages Repository](https://github.com/chocolatey-community/chocolatey-packages/issues) if you have problems with the package. Disqus comments will generally not be responded to.** + +![screenshot](https://cdn.jsdelivr.net/gh/chocolatey-community/chocolatey-coreteampackages@6dc510f16b69a2134e901f2576e991c462a18e9b/automatic/vscode/screenshot.png) + Visual Studio Code + https://code.visualstudio.com/Updates + microsoft visualstudiocode vscode development editor ide javascript typescript admin foss cross-platform + https://github.com/Microsoft/vscode + https://github.com/chocolatey-community/chocolatey-packages/tree/master/automatic/vscode + https://code.visualstudio.com/docs + https://github.com/Microsoft/vscode/issues + + + + + \ No newline at end of file diff --git a/chocolatey/chocolatey/lib/winrar/winrar.nuspec b/chocolatey/chocolatey/lib/winrar/winrar.nuspec new file mode 100755 index 00000000..76fae36d --- /dev/null +++ b/chocolatey/chocolatey/lib/winrar/winrar.nuspec @@ -0,0 +1,45 @@ + + + + winrar + 7.13.0 + WinRAR + win.rar GmbH + Maurice Kevenaar + false + http://www.win-rar.com/winrarlicense.html + http://www.win-rar.com/ + https://cdn.jsdelivr.net/gh/mkevenaar/chocolatey-packages@646ffab0085403b1476d1d7e4ad50a1a82203e67/icons/winrar.png + **NOTE** When a new version is released, not all translations are avaialbe. Currently there is no solution to permanently fix this. For more information have a look at issue [#20](https://github.com/mkevenaar/chocolatey-packages/issues/20) + +## WinRAR + +WinRAR is a powerful archive manager. It can backup your data and reduce the size of email attachments, decompress RAR, ZIP and other files downloaded from Internet and create new archives in RAR and ZIP file format. + +You can find themes for WinRAR [here](http://www.rarlab.com/themes.htm). + +### Commercial software + +You can try WinRAR before you [buy](https://shop.win-rar.com/16/purl-shop-1984-1-n). + +### Package Parameters + +The following package parameters can be set: + +* `/LCID:` - the language code you want to install - defaults to your current language +* `/English:` - force English language to install + +To pass parameters, use `--params "''"` (e.g. `choco install packageID [other options] --params="'/ITEM:value /ITEM2:value2 /FLAG_BOOLEAN'"`). +To have choco remember parameters on upgrade, be sure to set `choco feature enable -n=useRememberedArgumentsForUpgrades`. + +**Please Note**: This is an automatically updated package. If you find it is +out of date by more than a day or two, please contact the maintainer(s) and +let them know [here](https://github.com/mkevenaar/chocolatey-packages/issues) that the package is no longer updating correctly. + A powerful archive manager + http://www.rarlab.com/rarnew.htm + win.rar GmbH + trial rar compression archive nagware admin + https://github.com/mkevenaar/chocolatey-packages/tree/master/automatic/winrar + http://www.win-rar.com/faq.html + + \ No newline at end of file