dot

packages and services management
Log | Files | Refs | README

commit 271a5c73dbdc5ae14a2e24ae348b09f1cda9c046
parent 9625badba015b53ce8997c1876a20a983d8ccd25
Author: Josuah Demangeon <josuah.demangeon@gandi.net>
Date:   Thu, 20 Jul 2017 19:22:18 +0200

cleanup and rework install commands

Diffstat:
D9base/url | 1-
D9port/build | 1-
D9port/profile | 3---
D9port/url | 1-
MBUILD | 95+++++++++++++------------------------------------------------------------------
ACONFIG | 9+++++++++
ADOWNLOAD | 18++++++++++++++++++
MINSTALL | 62++++++++------------------------------------------------------
DREADME | 24------------------------
AREMOVE | 4++++
Rbin/man/build.1 -> bin/build.1 | 0
Mbin/io-abduco | 2++
Rbin/man/io.1 -> bin/io.1 | 0
Dbin/man/README | 279-------------------------------------------------------------------------------
Rbin/man/version.1 -> bin/version.1 | 0
Rbin/man/www-git.1 -> bin/www-git.1 | 0
Rbin/man/www-tree.1 -> bin/www-tree.1 | 0
Dcgit/build | 7-------
Dcgit/cgitrc | 131-------------------------------------------------------------------------------
Dcgit/url | 1-
Dcron/crontab | 10----------
Adma/build | 3+++
Dfdm/url | 1-
Alib-nacl/build | 7+++++++
Alib-nacl/url | 1+
Dmksh/build | 3---
Dmksh/url | 1-
Dnginx/build | 10----------
Dnginx/mime.types | 89-------------------------------------------------------------------------------
Dnginx/nginx.conf | 116-------------------------------------------------------------------------------
Dnginx/start | 5-----
Dnginx/url | 1-
Dnmap/url | 1-
33 files changed, 67 insertions(+), 819 deletions(-)

diff --git a/9base/url b/9base/url @@ -1 +0,0 @@ -http://dl.suckless.org/tools/9base-6.tar.gz diff --git a/9port/build b/9port/build @@ -1 +0,0 @@ -./INSTALL diff --git a/9port/profile b/9port/profile @@ -1,3 +0,0 @@ -export PLAN9="$SRC/9port" -export PATH="$PLAN9/bin:$PATH" -export MANPATH="$PLAN9/man:$MANPATH" diff --git a/9port/url b/9port/url @@ -1 +0,0 @@ -http://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/plan9port/plan9port-20140306.tgz diff --git a/BUILD b/BUILD @@ -1,86 +1,21 @@ -# Install sources from build receipes - - . "${0%/*}/profile" +cd "$OPT/$1" && export PREFIX="$PWD" || exit 1 -build() -{ - cd "$OPT/$1" && export PREFIX="$PWD" || exit 1 - - mkdir -p bin etc include lib share/man - ln -s bin sbin - - cd "$SRC/$1" || exit 1 - - if [ -f "$ETC/$1/build" ] - then - sh "$ETC/$1/build" - else - find "$ETC/${PWD##*/}" -name '*.diff' -exec patch -N -p 1 -i {} \; - find "$ETC/${PWD##*/}" -name 'config.*' -exec cp -f {} . \; - [ -f ./configure ] && ./configure --prefix="$PREFIX" - make && make PREFIX="$PREFIX" install clean - fi - - rm "$PREFIX/sbin" - rmdir "$PREFIX/share/man" "$PREFIX"/* 2> /dev/null || true -} - - -download() -{ - read url < "$ETC/$1/url" - - [ -e "$SRC/$1" ] && return 0 - [ -e "$OPT/$1" ] && rm -r "$OPT/$1" - - case "$url" in - ( *.tar ) opt='' ;; - ( *.tbz2 | *.tar.bz2 ) opt='j' ;; - ( *.tgz | *.tar.gz ) opt='z' ;; - ( *.txz | *.tar.xz ) opt='J' ;; - ( * ) exit 1 ;; - esac - - mkdir -p "$OPT/$1" "$SRC" - wget -qO - "$url" | tar -xv"$opt"f - -C "$OPT/$1" - mv "$OPT/$1"/* "$SRC/$1" -} - - -remove() -{ - rm -rf "${OPT:?}/$1" "${SRC:?}/$1" - find -L "$ROOT" -type l -exec rm {} + -} - - -index() -{ - find "$OPT/$1" | while IFS='' read -r path - do - [ -d "$path" ] && mkdir -p "$ROOT/${path#$OPT/$1}" - [ -f "$path" ] && ln -sf "$path" "$ROOT/${path#$OPT/$1}" - done -} - - -usage() -{ - echo 'build -[driu] pkg' - exit 1 -} - +mkdir -p bin etc include lib share/man +ln -s bin sbin -# --- main --------------------------------------------------------------------- +cd "$SRC/$1" || exit 1 -[ $# = 2 ] || usage +if [ -f "$ETC/$1/build" ] +then + sh "$ETC/$1/build" +else + find "$ETC/${PWD##*/}" -name '*.diff' -exec patch -N -p 1 -i {} \; + find "$ETC/${PWD##*/}" -name 'config.*' -exec cp -f {} . \; + [ -f ./configure ] && ./configure --prefix="$PREFIX" + make && make PREFIX="$PREFIX" install clean +fi -case "$1" in -( -r ) remove "$2" ;; -( -d ) download "$2" && index "$2" ;; -( -i ) download "$2" && build "$2" && index "$2" ;; -( -u ) remove "$2"&& download "$2" && build "$2" && index "$2" ;; -( * ) usage ;; -esac +rm "$PREFIX/sbin" +rmdir "$PREFIX/share/man" "$PREFIX"/* 2> /dev/null || true diff --git a/CONFIG b/CONFIG @@ -0,0 +1,9 @@ +. "$(dirname "$0")/profile" + +find "$ETC" -path "$ETC/*/.*" | while IFS='' read -r path +do + [ -d "$path" ] && mkdir -p "$HOME/${path#$ETC/*/}" + [ -f "$path" ] && ln -sf "$path" "$HOME/${path#$ETC/*/}" +done + +find -L "$HOME" -type l -exec rm {} + diff --git a/DOWNLOAD b/DOWNLOAD @@ -0,0 +1,18 @@ +. "${0%/*}/profile" + +read url < "$ETC/$1/url" + +[ -e "$SRC/$1" ] && return 0 +[ -e "$OPT/$1" ] && rm -r "$OPT/$1" + +case "$url" in +( *.tar ) opt='' ;; +( *.tbz2 | *.tar.bz2 ) opt='j' ;; +( *.tgz | *.tar.gz ) opt='z' ;; +( *.txz | *.tar.xz ) opt='J' ;; +( * ) exit 1 ;; +esac + +mkdir -p "$OPT/$1" "$SRC" +wget -qO - "$url" | tar -xv"$opt"f - -C "$OPT/$1" +mv "$OPT/$1"/* "$SRC/$1" diff --git a/INSTALL b/INSTALL @@ -1,57 +1,11 @@ -. "$(dirname "$0")/profile" +. "${0%/*}/profile" +exit=0 -usage() -{ - printf '%s [-l] [-g] [-m address host password] [-9]\n' "$0" - exit 1 -} +find "$OPT/$1" | tee /dev/stderr | while IFS='' read -r path +do + [ -d "$path" ] && mkdir -p "$ROOT/${path#$OPT/$1}" || exit=1 + [ -f "$path" ] && ln -sf "$path" "$ROOT/${path#$OPT/$1}" || exit=1 +done - -case "$1" in - -( -l ) [ $# = 1 ] || usage - - find "$ETC" -path "$ETC/*/.*" | while IFS='' read -r path - do - [ -d "$path" ] && mkdir -p "$HOME/${path#$ETC/*/}" - [ -f "$path" ] && ln -sf "$path" "$HOME/${path#$ETC/*/}" - done - - find -L "$HOME" -type l -exec rm {} + - ;; - -( -g ) [ $# = 1 ] || usage - mkdir -p "$VAR" "$GIT" && cd "$GIT" || exit 1 - - git clone http://github.com/josuah/www & - git clone http://github.com/josuah/alphabet & - git clone http://github.com/josuah/artisanat & - git clone http://github.com/josuah/build & - git clone http://github.com/josuah/cgr & - git clone http://github.com/josuah/drawille & - git clone http://github.com/josuah/fungus-vs-pathogen & - git clone http://github.com/josuah/hud & - git clone http://github.com/josuah/iode & - git clone http://github.com/josuah/iomenu & - git clone http://github.com/josuah/madown & - git clone http://github.com/josuah/miniwi & - git clone http://github.com/josuah/notes & - git clone http://github.com/josuah/puissance-4 & - - wait - - [ -d www ] && ln -s "$GIT/www" "$VAR/www" - ;; - -( -m ) [ $# = 4 ] || usage - mkdir -p "$MAIL/cur" "$MAIL/new" "$MAIL/tmp" - - shift - printf 'machine %s\nlogin %s\npassword "%s"' "$@" > ~/.netrc - chmod 400 ~/.netrc - ;; - -( * ) usage - ;; -esac +exit "$exit" diff --git a/README b/README @@ -1,24 +0,0 @@ -$ETC/BUILD # download, build, and install packages - -$ETC/BUILD -d <pkg> # download from $ETC/<pkg>/url to $SRC/<pkg> -$ETC/BUILD -i <pkg> # install from $SRC/<pkg> to $OPT/<pkg> -$ETC/BUILD -i <pkg> # symlink from $OPT/<pkg> to $ROOT/ - -$ETC/<pkg>/url # url to a tarball of the pkg sources -$ETC/<pkg>/build # script that build the pkg into $PREFIX -$ETC/<pkg>/*.diff # patch to apply before building the program - - - -$ETC/INSTALL # handle pkgs configuration - -$ETC/<pkg>/.* # dotfiles to be symlinked into $HOME -$ETC/<pkg>/cron # lines to be included into the crontab -$ETC/<pkg>/inet # lines to be included into the inetd config file -$ETC/<pkg>/profile # environment variables, sourced by $ETC/profile - - - -$ETC/SERVICE # start, check and stop daemon - -$ETC/<pkg>/start # script that start a program diff --git a/REMOVE b/REMOVE @@ -0,0 +1,4 @@ +. "${0%/*}/profile" + +rm -rf "${OPT:?}/$1" "${SRC:?}/$1" +find -L "$ROOT" -type l -exec rm {} + diff --git a/bin/man/build.1 b/bin/build.1 diff --git a/bin/io-abduco b/bin/io-abduco @@ -1,6 +1,7 @@ # attach to an abduco sessions and manage the names +mkdir -p "$HOME/.abduco" touch "$HOME/.abduco/names" @@ -19,6 +20,7 @@ then shift fi + # --- update session names ----------------------------------------------------- hash=$(printf %s "$name" | cksum | cut -d ' ' -f 1) diff --git a/bin/man/io.1 b/bin/io.1 diff --git a/bin/man/README b/bin/man/README @@ -1,279 +0,0 @@ -printf '%s\n\n\n%s\n' "$(head -n 2 "$0")" "$(mandoc *.1 | sed 's/.//g')" > "$0" -exit 0 - - -BUILD(1) General Commands Manual BUILD(1) - -NAME - build – Install sources from build receipes - -SYNOPSIS - build [-d pkg] [-i pkg] [-r pkg] [-u pkg] [-l] [-v] - -DESCRIPTION - build helps with the compilation of software in the home directory of an - user. It downloads an archive from a specified URL and extracts it. - - -d pkg Download and extract the source of pkg. - - -i pkg Download pkg if not present, build it, and install it. - - -r pkg Remove pkg and its sources. - - -u pkg Delete, then download and install pkg again. - - -l Update links from PROGRAMS to LOCAL. - - -v View the list of available packages. - -ENVIRONMENT - Every program is installed in its own directory, then every file is - linked to a global index. The PATH and MANPATH have to be updated to the - location of the bin and man subdirectories of this index in order to - access the binaries and manual pages interactively. - - This can be done by sourcing build as a regular shell script, with the - command: - - . path/to/build - - This will export the following environment variables: - - Name Default value - LOCAL $HOME/.local - CONFIG $HOME/.config - PROGRAMS $HOME/programs - PATH $LOCAL/sbin:$LOCAL/bin:$PATH - MANPATH $LOCAL/share/man:$LOCAL/man:$MANPATH - CPATH $LOCAL/include:$CPATH - LIBPATH $LOCAL/lib:$LIBPATH - LD_RUN_PATH $LOCAL/lib:$LD_RUN_PATH - LD_LIBRARY_PATH $LOCAL/lib:$LD_LIBRARY_PATH - -FILES - The packages descriptions, URLs, and build rules are stored into files, - stored into the $CONFIG/build directory, with one file per package. - - These are shell scripts sourced by build , and their format is as - following: - - # single line description (no shebang) - - tar=http://url.to/package.tar.gz - - build() { - # Optionnal build recipe - } - - The build recipe is optionnal, and if it is not provided, a default build - recipe will be used instead. - -AUTHOR - build is written by Josuah Demangeon <mail@josuah.net> - -Linux 4.10.8-1-ARCH March 4, 2017 Linux 4.10.8-1-ARCH - ------------------------------------------------------------------------------- - -VERSION(1) General Commands Manual VERSION(1) - -NAME - version – simple version control and backup system - -SYNOPSIS - version [-i] [-n msg] [-d rev1 rev2] [-r rev] [-p file ... tree] - -DESCRIPTION - Version stores the whole content of a directory tree as version - controlled, hashed objects. - - This permits backup and restoring the content at any point in the - history, and every file is only backed up once in all and across all - versions. - - The files are all copied into the first level of a directory, renamed to - their own SHA-256 hash. These files are objects. - - The matching between these files and their original location is also - stored to save the original name of the files. The files storing this - information are revisions. - - -d rev1 rev2 - Diff the changes from rev1 to rev2. - - -i Initialize a new version directory at the root of current - directory. - - -n msg New revision is created, saving all modifications form the last - saved revision. The commit message msg is used in the v/log - file. - - -p file ... tree - Pull the objects from the file ... tree version directory into - the current one. - - -r rev Revert the changes to and switch the state to rev. - -FILES - v Main version directory. The directory in which v is located is - the root version directory. - - v/obj/ Directory containing the objects every named after the hash of - its content. - - v/rev/ Directory containing the revisions which contains the list of - files, along with their associated hashes, in the following - format: - - 6a2e5ffc2916c10ce723c6866f2680086cef2a1ef0d052b471787adab568bddd ./path/to/file.txt - - The revisions are also named after their content. - - v/log A file containing an history of every revision as a list of name - of revision files, with one revision per line. - -EXAMPLE - Initialize a new version directory in existing directory - - $ cd data/ - $ version -i - - Create a new revision: - - $ version -n - making a new revision - ba49aa8aabb111af9d3837e4fc1a2c4edf91fb092f9093d09a6d7c5fc15e3888 - $ touch test - $ version -n - making a new revision - ba49aa8aabb111af9d3837e4fc1a2c4edf91fb092f9093d09a6d7c5fc15e3888 - 9e59e557dad5b2c8b66313a2836afd1970990b885d08e728e6cd5a2a7b7df584 - - Diffing last two revisions: - - $ version -d $(tail -n 2 v/log) - --- e68a60a444860ebf5e0ff8ef58cc59944ffea7e11e49e038339112940ea8223b - +++ a7e8968176118b7cb97511b3426aee66d577b5956282810fe28cc6dc8ff4872d - - + e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ./test - - Find the revision corresponding to a file: - - $ grep -rlF path/to/file.txt v/rev/ - v/rev/9e59e557dad5b2c8b66313a2836afd1970990b885d08e728e6cd5a2a7b7df584 - -Linux 4.10.8-1-ARCH April 4, 2017 Linux 4.10.8-1-ARCH - ------------------------------------------------------------------------------- - -WWW-GIT LOCAL WWW-GIT - -NAME - www-git – generate static website with the git command - -SYNOPSIS - www-git repository [description] - -DESCRIPTION - The www-git script creates a static website presenting the files and - commits of a git repository in a subdirectory. - - The first argument is treated as a path to a repository, and the second - as its text description. - -FILES - ./style.css, ./favicon.png - These ressources will be used in the html <head> element. - - ./repository/index.html - An index.html file will be created in the repository directory, - containing a list of the files, the README file if any, and the - commits. - - ./repository/file/*, ./repository/commit/* - One html page per file and per commit will be created in these - subdirectories. - -EXAMPLES - A script generating an index of multiple repositories might look like - this: - - mkdir git - cd git - - printf '<!doctype html>\n<html>\n<body>\n' > ./index.html - - printf '<li><a href="">%s</a></li>0 ../../repo1 repo1 >> index.html - www-git ../../repo1 'Some repository' - - printf '<li><a href="">%s</a></li>0 ../../repo2 repo2 >> index.html - www-git ../../repo2 'Another one' - - printf '</ul>\n</body>\n</html>\n' >> index.html - -Linux 4.10.8-1-ARCH March 23, 2017 Linux 4.10.8-1-ARCH - ------------------------------------------------------------------------------- - -WWW-TREE(1) General Commands Manual WWW-TREE(1) - -NAME - www-tree – simple, recursive static website generator - -SYNOPSIS - cd path && www - -DESCRIPTION - The only thing this script does is building one index.html for each - directory, including DIR itself. - - Each index.html has the content of a layout.html file in the top path - directory, after being parsed. - -FILES - Some files are treated particularly. - - dir/layout.html - File containing the index.html pages layout. - - dir/*/README - The "README" files content can be displayed on the pages if the - layout contains a {{ content }} keyword. - - dir/.* All directories starting with a ‘.’ will be ignored. - - All other directories are ignored and let unchanged. - -LAYOUT FORMAT - Within a layout.html, some templating permit to insert dynamic content - into the index files, by using the following keywords. - - {{ content }} - Content of the README file in the current directory, if any. - - {{ list }} - List of links to subpages for the current directory (including - dotfiles). - - {{ nav }} - List of top level directories, for use as a <nav> element. - - {{ root }} - Relative path to the root of the website, for relative links. - - {{ title }} - Page title, given by the path, with "/" replaced by " > ". - -ENVIRONMENT - PWD Source directory from which generate the website. It is also - where the website will be generated. - -SEE ALSO - http://marmaro.de the website that gave me the idea. - - werc(1) swerc(1) - -AUTHORS - www is made by Josuah Demangeon ⟨mail@josuah.net⟩ - -Linux 4.10.8-1-ARCH November 11, 2016 Linux 4.10.8-1-ARCH diff --git a/bin/man/version.1 b/bin/version.1 diff --git a/bin/man/www-git.1 b/bin/www-git.1 diff --git a/bin/man/www-tree.1 b/bin/www-tree.1 diff --git a/cgit/build b/cgit/build @@ -1,7 +0,0 @@ -[ -f git/configure ] || gmake get-git - -gmake prefix="$PREFIX" \ - CGIT_SCRIPT_PATH="$VAR/cgit" \ - CGIT_CONFIG="$ETC/cgit/cgitrc" \ - CACHE_ROOT="$VAR/cache/cgit" \ - install diff --git a/cgit/cgitrc b/cgit/cgitrc @@ -1,131 +0,0 @@ -# Enable caching of up to 1000 output entries -cache-size=1000 - - -# Specify some default clone urls using macro expansion -#clone-url=git://foo.org/$CGIT_REPO_URL git@foo.org:$CGIT_REPO_URL - -# Specify the css url -#css=/css/cgit.css - - -# Show owner on index page -enable-index-owner=1 - - -# Allow http transport git clone -enable-http-clone=1 - - -# Show extra links for each repository on the index page -enable-index-links=1 - - -# Enable ASCII art commit history graph on the log pages -enable-commit-graph=1 - - -# Show number of affected files per commit on the log pages -enable-log-filecount=1 - - -# Show number of added/removed lines per commit on the log pages -enable-log-linecount=1 - - -# Sort branches by date -branch-sort=age - - -# Add a cgit favicon -favicon=/favicon.ico - - -# Use a custom logo -logo=/img/mylogo.png - - -# Enable statistics per week, month and quarter -max-stats=quarter - - -# Set the title and heading of the repository index page -root-title=example.com git repositories - - -# Set a subheading for the repository index page -root-desc=tracking the foobar development - - -# Include some more info about example.com on the index page -root-readme=/var/www/htdocs/about.html - - -# Allow download of tar.gz, tar.bz2 and zip-files -snapshots=tar.gz tar.bz2 zip - - -## -## List of common mimetypes -## - -mimetype.gif=image/gif -mimetype.html=text/html -mimetype.jpg=image/jpeg -mimetype.jpeg=image/jpeg -mimetype.pdf=application/pdf -mimetype.png=image/png -mimetype.svg=image/svg+xml - - -# Highlight source code with python pygments-based highlighter -#source-filter=/var/www/cgit/filters/syntax-highlighting.py - -# Format markdown, restructuredtext, manpages, text files, and html files -# through the right converters -#about-filter=/var/www/cgit/filters/about-formatting.sh - -## -## Search for these files in the root of the default branch of repositories -## for coming up with the about page: -## -readme=:README.md -readme=:readme.md -readme=:README.mkd -readme=:readme.mkd -readme=:README.rst -readme=:readme.rst -readme=:README.html -readme=:readme.html -readme=:README.htm -readme=:readme.htm -readme=:README.txt -readme=:readme.txt -readme=:README -readme=:readme -readme=:INSTALL.md -readme=:install.md -readme=:INSTALL.mkd -readme=:install.mkd -readme=:INSTALL.rst -readme=:install.rst -readme=:INSTALL.html -readme=:install.html -readme=:INSTALL.htm -readme=:install.htm -readme=:INSTALL.txt -readme=:install.txt -readme=:INSTALL -readme=:install - - -## -## List of repositories. -## PS: Any repositories listed when section is unset will not be -## displayed under a section heading -## PPS: This list could be kept in a different file (e.g. '/etc/cgitrepos') -## and included like this: -## include=/etc/cgitrepos -## - -scan-path=/home/josuah/git/ diff --git a/cgit/url b/cgit/url @@ -1 +0,0 @@ -http://git.zx2c4.com/cgit/snapshot/cgit-1.1.tar.xz diff --git a/cron/crontab b/cron/crontab @@ -1,10 +0,0 @@ -# .-------------------------------------- second -# / .------------------------------- minute -# / / .------------------------ hour -# / / / .----------------- day -# / / / / .---------- month -# / / / / / .--- day-of-week -#/ / / / / / -* * * * * * mbsync -a -*/5 * * * * * mail -s "test" mail@josuah.net -* * * * * * echo 'test' > /home/josuah/test diff --git a/dma/build b/dma/build @@ -0,0 +1,3 @@ +case "$(uname)" in +(Linux) make ;; +(*BSD) cd bsd && make && cd .. ;; diff --git a/fdm/url b/fdm/url @@ -1 +0,0 @@ -http://www.samba.org/ftp/tdb/tdb-1.3.13.tar.gz diff --git a/lib-nacl/build b/lib-nacl/build @@ -0,0 +1,7 @@ +./do + +rm -r "$PREFIX"/* + +mv "build/$(hostname)/bin" "$PREFIX/bin" +mv "build/$(hostname)/include" "$PREFIX/include" +mv "build/$(hostname)/lib" "$PREFIX/lib" diff --git a/lib-nacl/url b/lib-nacl/url @@ -0,0 +1 @@ +http://hyperelliptic.org/nacl/nacl-20110221.tar.bz2 diff --git a/mksh/build b/mksh/build @@ -1,3 +0,0 @@ -sh ./Build.sh - -cp mksh "$PREFIX/bin/mksh" diff --git a/mksh/url b/mksh/url @@ -1 +0,0 @@ -http://www.mirbsd.org/MirOS/dist/mir/mksh/mksh-R54.tgz diff --git a/nginx/build b/nginx/build @@ -1,10 +0,0 @@ -./configure \ - --prefix="$PREFIX" \ - --sbin-path="$PREFIX/bin" \ - --pid-path="$VAR/nginx/pid" \ - --error-log-path='/dev/stderr' \ - --http-log-path='/dev/stdout' \ - --without-http_rewrite_module \ - && - -make install diff --git a/nginx/mime.types b/nginx/mime.types @@ -1,89 +0,0 @@ - -types { - text/html html htm shtml; - text/css css; - text/xml xml; - image/gif gif; - image/jpeg jpeg jpg; - application/javascript js; - application/atom+xml atom; - application/rss+xml rss; - - text/mathml mml; - text/plain txt; - text/vnd.sun.j2me.app-descriptor jad; - text/vnd.wap.wml wml; - text/x-component htc; - - image/png png; - image/tiff tif tiff; - image/vnd.wap.wbmp wbmp; - image/x-icon ico; - image/x-jng jng; - image/x-ms-bmp bmp; - image/svg+xml svg svgz; - image/webp webp; - - application/font-woff woff; - application/java-archive jar war ear; - application/json json; - application/mac-binhex40 hqx; - application/msword doc; - application/pdf pdf; - application/postscript ps eps ai; - application/rtf rtf; - application/vnd.apple.mpegurl m3u8; - application/vnd.ms-excel xls; - application/vnd.ms-fontobject eot; - application/vnd.ms-powerpoint ppt; - application/vnd.wap.wmlc wmlc; - application/vnd.google-earth.kml+xml kml; - application/vnd.google-earth.kmz kmz; - application/x-7z-compressed 7z; - application/x-cocoa cco; - application/x-java-archive-diff jardiff; - application/x-java-jnlp-file jnlp; - application/x-makeself run; - application/x-perl pl pm; - application/x-pilot prc pdb; - application/x-rar-compressed rar; - application/x-redhat-package-manager rpm; - application/x-sea sea; - application/x-shockwave-flash swf; - application/x-stuffit sit; - application/x-tcl tcl tk; - application/x-x509-ca-cert der pem crt; - application/x-xpinstall xpi; - application/xhtml+xml xhtml; - application/xspf+xml xspf; - application/zip zip; - - application/octet-stream bin exe dll; - application/octet-stream deb; - application/octet-stream dmg; - application/octet-stream iso img; - application/octet-stream msi msp msm; - - application/vnd.openxmlformats-officedocument.wordprocessingml.document docx; - application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx; - application/vnd.openxmlformats-officedocument.presentationml.presentation pptx; - - audio/midi mid midi kar; - audio/mpeg mp3; - audio/ogg ogg; - audio/x-m4a m4a; - audio/x-realaudio ra; - - video/3gpp 3gpp 3gp; - video/mp2t ts; - video/mp4 mp4; - video/mpeg mpeg mpg; - video/quicktime mov; - video/webm webm; - video/x-flv flv; - video/x-m4v m4v; - video/x-mng mng; - video/x-ms-asf asx asf; - video/x-ms-wmv wmv; - video/x-msvideo avi; -} diff --git a/nginx/nginx.conf b/nginx/nginx.conf @@ -1,116 +0,0 @@ -#user nobody; -worker_processes 1; - -#error_log logs/error.log; -#error_log logs/error.log notice; -#error_log logs/error.log info; - -#pid logs/nginx.pid; - - -events { - worker_connections 1024; -} - - -http { - include mime.types; - default_type application/octet-stream; - - #log_format main '$remote_addr - $remote_user [$time_local] "$request" ' - # '$status $body_bytes_sent "$http_referer" ' - # '"$http_user_agent" "$http_x_forwarded_for"'; - - #access_log logs/access.log main; - - sendfile on; - #tcp_nopush on; - - #keepalive_timeout 0; - keepalive_timeout 65; - - #gzip on; - - server { - listen 80; - server_name localhost; - - #charset koi8-r; - - #access_log logs/host.access.log main; - - location / { - root html; - index index.html index.htm; - } - - #error_page 404 /404.html; - - # redirect server error pages to the static page /50x.html - # - error_page 500 502 503 504 /50x.html; - location = /50x.html { - root html; - } - - # proxy the PHP scripts to Apache listening on 127.0.0.1:80 - # - #location ~ \.php$ { - # proxy_pass http://127.0.0.1; - #} - - # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 - # - #location ~ \.php$ { - # root html; - # fastcgi_pass 127.0.0.1:9000; - # fastcgi_index index.php; - # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; - # include fastcgi_params; - #} - - # deny access to .htaccess files, if Apache's document root - # concurs with nginx's one - # - #location ~ /\.ht { - # deny all; - #} - } - - - # another virtual host using mix of IP-, name-, and port-based configuration - # - #server { - # listen 8000; - # listen somename:8080; - # server_name somename alias another.alias; - - # location / { - # root html; - # index index.html index.htm; - # } - #} - - - # HTTPS server - # - #server { - # listen 443 ssl; - # server_name localhost; - - # ssl_certificate cert.pem; - # ssl_certificate_key cert.key; - - # ssl_session_cache shared:SSL:1m; - # ssl_session_timeout 5m; - - # ssl_ciphers HIGH:!aNULL:!MD5; - # ssl_prefer_server_ciphers on; - - # location / { - # root html; - # index index.html index.htm; - # } - #} - -} diff --git a/nginx/start b/nginx/start @@ -1,5 +0,0 @@ -mkdir -p "$VAR/nginx/" - -nginx -c "$ETC/nginx/nginx.conf" -p "$VAR/nginx" - -PID=$(cat "$VAR/nginx/pid") diff --git a/nginx/url b/nginx/url @@ -1 +0,0 @@ -http://nginx.org/download/nginx-1.13.2.tar.gz diff --git a/nmap/url b/nmap/url @@ -1 +0,0 @@ -http://nmap.org/dist/nmap-7.40.tgz