This repository has been archived by the owner on Mar 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
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
37 changed files
with
2,256 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
upgrade-packages |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
cd source/NerdPack | ||
|
||
|
||
./pkg_build.sh $1 | ||
|
||
|
||
version=$(date +"%Y.%m.%d")$1 | ||
|
||
echo "VERSION: $version" |
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,51 @@ | ||
<?php | ||
|
||
|
||
$version = isset($argv)? $argv[1]: '6.11'; | ||
|
||
|
||
$array = array(); | ||
|
||
$files = glob(__DIR__."/../packages/$version/*.{txz,tgz}", GLOB_BRACE); | ||
foreach($files as $txz){ | ||
//echo $txz, "\n"; | ||
|
||
$array[] = file_check_sha1($txz); | ||
} | ||
|
||
// Compare the github sha1 value of a file | ||
function file_check_sha1($file) { | ||
global $version; | ||
|
||
$size = filesize($file); | ||
$contents = file_get_contents($file); | ||
|
||
// create a sha1 like github does | ||
$str = "blob ".$size."\0".$contents; | ||
$sha1_file = sha1($str); | ||
|
||
$detalle = array(); | ||
|
||
#print('Downloading file_check_sha1 => size ['.$size.'] package...'); | ||
#print('Downloading file_check_sha1 => sha1_file ['.$sha1_file.'] package...'); | ||
#print('Downloading file_check_sha1 => sha1_file ['.sha1($contents).'] package...'); | ||
|
||
//echo "$file => $sha1_file => $size \n"; | ||
$detalle['name'] = basename($file); | ||
$detalle['path'] = "packages/$version/".basename($file); | ||
$detalle['sha'] = $sha1_file; | ||
$detalle['size'] = $size; | ||
$detalle['download_url'] = "https://raw.githubusercontent.com/UnRAIDES/unRAID-NerdPack/master/packages/$version/".basename($file); | ||
$detalle['type'] = 'file'; | ||
|
||
//print_r($detalle); | ||
//print_r($detalle); | ||
|
||
return ($detalle); | ||
} | ||
|
||
echo json_encode($array,JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES ); | ||
|
||
|
||
|
||
?> |
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 @@ | ||
# Generador de json por version | ||
|
||
php develop/get_sha1.php 6.11 > contents/packages.6.11.json | ||
|
||
# Generador de version de plugin | ||
|
||
- cd source/NerdPack | ||
- ./pkg_build.sh [a|b|c|d] (Opcional) | ||
ejemplos | ||
./pkg_build.sh | ||
./pkg_build.sh a | ||
./pkg_build.sh b | ||
|
||
# Agregar la version al archivo "plugin/NerdPack.plg" en el campo <!ENTITY version "2022.09.13"> | ||
|
||
|
||
ejemplos: | ||
./create.new.version.sh | ||
./create.new.version.sh a | ||
./create.new.version.sh b |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,100 @@ | ||
<?xml version='1.0' standalone='yes'?> | ||
|
||
<!DOCTYPE PLUGIN [ | ||
<!ENTITY name "NerdPack"> | ||
<!ENTITY author "UnRAIDES"> | ||
<!ENTITY version "2022.09.27a"> | ||
<!ENTITY launch "Settings/&name;"> | ||
<!ENTITY gitURL "https://raw.githubusercontent.com/&author;/unRAID-&name;/master"> | ||
<!ENTITY pluginURL "&gitURL;/plugin/&name;.plg"> | ||
<!ENTITY pkgURL "&gitURL;/source/packages"> | ||
<!ENTITY plgPATH "/boot/config/plugins/&name;"> | ||
<!ENTITY plgNAME "&name;-&version;-x86_64-1"> | ||
<!ENTITY emhttp "/usr/local/emhttp/plugins/&name;"> | ||
]> | ||
|
||
<PLUGIN name="&name;" author="&author;" version="&version;" launch="&launch;" pluginURL="&pluginURL;" min="6.11"> | ||
|
||
<CHANGES> | ||
##&name; | ||
###2022.09.27a | ||
- Fix tip on packages-desc | ||
- Update zsh to the version 5.8-3 | ||
- Update python3 to the version 3.9.10 | ||
###2022.09.27 | ||
- New maintainer UnRAIDES team | ||
- Fix various problem with UnRAID 6.11 - WIP | ||
- Update vim to the version 9.0.0417 | ||
- Add dependency libsodium for new version of vim package | ||
- Update irssi to the version 1.2.3 | ||
- Add dependency utf8proc for new version of irssi package | ||
|
||
</CHANGES> | ||
|
||
<!-- The 'pre-install' script. --> | ||
<FILE Run="/usr/bin/php"> | ||
<INLINE> | ||
<![CDATA[ | ||
<? | ||
$version = parse_ini_file("/etc/unraid-version"); | ||
if ( version_compare($version['version'],"6.10", "<") ) | ||
{ | ||
echo "**********************************************************************\n"; | ||
echo "\n"; | ||
echo "NerdTools Requires Unraid version 6.11.0 or greater to run\n"; | ||
echo "\n"; | ||
echo "**********************************************************************\n"; | ||
exit(1); | ||
} | ||
?> | ||
]]> | ||
</INLINE> | ||
</FILE> | ||
|
||
<!-- | ||
The 'install' script. | ||
--> | ||
<FILE Run="/bin/bash" Method="install"> | ||
<INLINE> | ||
|
||
echo "" | ||
echo "-----------------------------------------------------------" | ||
echo " &name; has been installed." | ||
echo "" | ||
echo " Copyright 2022, &author;" | ||
echo " Copyright 2016-2021, dmacias72, eschultz" | ||
echo " Version: &version;" | ||
echo "-----------------------------------------------------------" | ||
echo "" | ||
fi | ||
</INLINE> | ||
</FILE> | ||
|
||
|
||
<FILE Name="/boot/config/plugins/&name;/&name;-&version;-x86_64-1.txz" Run="upgradepkg --install-new --reinstall"> | ||
</FILE> | ||
|
||
<!-- | ||
The 'remove' script. | ||
--> | ||
<FILE Run="/bin/bash" Method="remove"> | ||
<INLINE> | ||
removepkg &plgPATH;/&plgNAME;.txz | ||
rm -rf &emhttp; | ||
rm -f &plgPATH;/&plgNAME;.txz | ||
rm -f &plgPATH;/&plgNAME;.md5 | ||
|
||
echo "" | ||
echo "-----------------------------------------------------------" | ||
echo " &name; has been removed." | ||
echo " Copyright 2016-2021, dmacias72, eschultz" | ||
echo " Copyright 2022, &author;" | ||
echo " Version: &version;" | ||
echo "-----------------------------------------------------------" | ||
echo "" | ||
</INLINE> | ||
</FILE> | ||
|
||
</PLUGIN> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,3 @@ | ||
#!/bin/sh | ||
ln -sf /usr/local/emhttp/plugins/NerdPack/scripts/packagemanager /usr/sbin/packagemanager | ||
chmod +0755 /usr/sbin/packagemanager |
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,19 @@ | ||
# HOW TO EDIT THIS FILE: | ||
# The "handy ruler" below makes it easier to edit a package description. | ||
# Line up the first '|' above the ':' following the base package name, and | ||
# the '|' on the right side marks the last column you can put a character in. | ||
# You must make exactly 11 lines for the formatting to be correct. It's also | ||
# customary to leave one space after the ':' except on otherwise blank lines. | ||
|
||
|-----handy-ruler------------------------------------------------------| | ||
NerdPack: Nerd Tools unRAID Plugin | ||
NerdPack: | ||
NerdPack: unRAID plugin wrapper for extra packages, mostly CLI, for advanced | ||
NerdPack: users. Use at your own risk. Not officially supported by LimeTech. | ||
NerdPack: | ||
NerdPack: Supports: apr, apt-util, bwm-ng, cpio, git, iftop, inotify, iotop, | ||
NerdPack: iperf, kbd, lftp, lshw, neon, p7zip, perl, python, readline, screen, | ||
NerdPack: sshfs-fuse, strace, subversion, unrar, utempter, vim | ||
NerdPack: | ||
NerdPack: https://github.com/dmacias72/unRAID-plugins | ||
NerdPack: |
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,21 @@ | ||
#!/bin/bash | ||
DIR="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")" | ||
tmpdir=/tmp/tmp.$(( $RANDOM * 19318203981230 + 40 )) | ||
plugin=$(basename ${DIR}) | ||
archive="$(dirname $(dirname ${DIR}))/archive" | ||
version=$(date +"%Y.%m.%d")$1 | ||
|
||
mkdir -p $tmpdir | ||
|
||
echo $tmpdir | ||
echo $archive | ||
echo "version $version" | ||
echo "version $1" | ||
|
||
cp --parents -f $(find . -type f ! \( -iname "pkg_build.sh" -o -iname "sftp-config.json" \) ) $tmpdir/ | ||
cd $tmpdir | ||
makepkg -l y -c y ${archive}/${plugin}-${version}-x86_64-1.txz | ||
rm -rf $tmpdir | ||
echo "MD5:" | ||
md5sum ${archive}/${plugin}-${version}-x86_64-1.txz | ||
md5sum ${archive}/${plugin}-${version}-x86_64-1.txz |awk '{print $1}'| while read line; do echo "$line ${plugin}-${version}-x86_64-1.txz"; done > ${archive}/${plugin}-${version}-x86_64-1.md5 |
47 changes: 47 additions & 0 deletions
47
source/NerdPack/usr/local/emhttp/plugins/NerdPack/NerdPack.page
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,47 @@ | ||
Icon="dropbox" | ||
Menu="UserPreferences" | ||
Title="Nerd Pack" | ||
Tag="dropbox" | ||
--- | ||
<link type="text/css" rel="stylesheet" href="<?=autov('/plugins/NerdPack/css/tablesorter.css');?>"> | ||
<link type="text/css" rel="stylesheet" href="<?=autov('/plugins/NerdPack/css/tablesorter-'.(($display['theme'] == 'white' || $display['theme'] == 'azure') ? 'white' : 'black').'.css');?>"> | ||
<link type="text/css" rel="stylesheet" href="<?=autov('/webGui/styles/jquery.switchbutton.css');?>"> | ||
<link type="text/css" rel="stylesheet" href="<?=autov('/plugins/NerdPack/css/NerdPack.css');?>"> | ||
<style> | ||
table.tablesorter tbody tr:nth-child(odd) { | ||
background-color: #<?=($display['theme'] == 'white' || $display['theme'] == 'azure') ? 'F0F0F0' : '212421';?>; | ||
} | ||
table.tablesorter tbody tr:nth-child(even) { | ||
background-color: #<?=($display['theme'] == 'white' || $display['theme'] == 'azure') ? 'e4e2e4' : '1b1d1b';?>; | ||
} | ||
</style> | ||
|
||
<form markdown="1" id="package_form" name="package_settings" method="POST" action="/update.php" target="progressFrame"> | ||
<input type="hidden" id="include" name="#include" value="/plugins/NerdPack/include/ClearConfig.php"/> | ||
|
||
<div class="wrapper"> | ||
<table class="tablesorter hover-highlight" id="tblPackages"> | ||
<thead> | ||
<tr> | ||
<th class="filter-name" data-placeholder="Search..."> Name </th> | ||
<th class="filter-version" data-placeholder="by status"> Status </th> | ||
<th class="sorter-metric filter-false" data-placeholder="by size" data-metric-name-full="byte|Byte|BYTE" data-metric-name-abbr="b|B"> Size </th> | ||
<th class="filter-downloaded" data-placeholder="by download"> Downloaded </th> | ||
<th class="filter-installed" data-placeholder="by install"> Installed </th> | ||
<th class="filter-plugins" data-placeholder="Search..."> Plugins </th> | ||
<th class="parser-false filter-false" nowrap="nowrap"><input class="uninstallpkg" type="checkbox"><input class="checkall" type="checkbox"></th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
</tbody> | ||
</table> | ||
</div> | ||
<input onclick="packageQuery(1)" value="Check for Updates" type="button"><input class="reset" type="button" title="reset filters" value="Reset Filters"> | ||
: <input id="btnApply" type="button" value="Apply"><input type="button" value="Done" onClick="done()"> | ||
<input type="hidden" name="#file" value="NerdPack/NerdPack.cfg"> | ||
</form> | ||
|
||
<script src="<?=autov('/plugins/NerdPack/js/jquery.tablesorter.combined.min.js');?>"></script> | ||
<script src="<?=autov('/plugins/NerdPack/js/parser-metric.min.js');?>"></script> | ||
<script type="text/javascript" src="<?=autov('/webGui/javascript/jquery.switchbutton.js');?>"></script> | ||
<script type="text/javascript" src="<?=autov('/plugins/NerdPack/js/jquery.NerdPack.js');?>"></script> |
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,3 @@ | ||
**Nerd Tools** | ||
|
||
Go to NerdPack in Settings to install extra CLI packages for advanced users. Use at your own risk. Not officially supported by LimeTech. Contains: iftop, iotop, screen, lshw, kbd, unrar, bwm-ng, strace, git, lftp, subversion, python, sshfs, iperf, p7zip...60+ packages |
21 changes: 21 additions & 0 deletions
21
source/NerdPack/usr/local/emhttp/plugins/NerdPack/css/NerdPack.css
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,21 @@ | ||
.package { | ||
cursor: pointer; | ||
} | ||
#package_form { | ||
margin-top: -10px; | ||
} | ||
.switch-button-label.off { | ||
color: inherit; | ||
} | ||
.uptodate { | ||
color:#44B012; | ||
white-space:nowrap; | ||
} | ||
.updateready, .update { | ||
white-space:nowrap; | ||
cursor: pointer; | ||
} | ||
.uninstalled, .installed { | ||
white-space:nowrap; | ||
cursor: inherit; | ||
} |
27 changes: 27 additions & 0 deletions
27
source/NerdPack/usr/local/emhttp/plugins/NerdPack/css/tablesorter-black.css
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,27 @@ | ||
/* header */ | ||
.tablesorter .headerSortUp, | ||
.tablesorter .tablesorter-headerSortUp, | ||
.tablesorter .tablesorter-headerAsc, | ||
.tablesorter .headerSortDown, | ||
.tablesorter .tablesorter-headerSortDown, | ||
.tablesorter .tablesorter-headerDesc { | ||
background-color:#212421; | ||
} | ||
/* filter widget */ | ||
.tablesorter .tablesorter-filter-row { | ||
background-color: #101010; | ||
} | ||
.tablesorter .tablesorter-filter-row td { | ||
background-color: #1b1d1b; | ||
border-bottom: #101010 1px solid; | ||
} | ||
/* filters */ | ||
.tablesorter input.tablesorter-filter, | ||
.tablesorter select.tablesorter-filter { | ||
background-color: #1b1d1b; | ||
border: 1px solid #101010; | ||
color: #808080; | ||
} | ||
.tablesorter-headerRow { | ||
background-color: #1b1d1b; | ||
} |
23 changes: 23 additions & 0 deletions
23
source/NerdPack/usr/local/emhttp/plugins/NerdPack/css/tablesorter-white.css
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,23 @@ | ||
/* header */ | ||
.tablesorter .headerSortUp, | ||
.tablesorter .tablesorter-headerSortUp, | ||
.tablesorter .tablesorter-headerAsc, | ||
.tablesorter .headerSortDown, | ||
.tablesorter .tablesorter-headerSortDown, | ||
.tablesorter .tablesorter-headerDesc, | ||
.tablesorter .tablesorter-filter-row, | ||
.tablesorter-headerRow, | ||
.tablesorter tr.even > td { | ||
background-color: #e4e2e4; | ||
} | ||
|
||
.tablesorter .tablesorter-filter-row td { | ||
background-color: #e4e2e4; | ||
border-bottom: #F0F0F0 1px solid; | ||
} | ||
/* filters */ | ||
.tablesorter input.tablesorter-filter, | ||
.tablesorter select.tablesorter-filter { | ||
background-color: #F0F0F0; | ||
border: 1px solid #e4e2e4; | ||
} |
Oops, something went wrong.