gophermap

¡Esta es una revisión vieja del documento!


!Archivo Gophermap de ejemplo para servidor Gophernicus que usamos en texto-plano.xyz
 
##
## Este es un gophermap de ejemplo.
##
#
Creating a file called "gophermap" into a directory disables the
normal resource listing and replaces it with the contents of the map
file. You can also have inline gophermaps - files with a ".gophermap"
extension are parsed as gophermaps and displayed in between normal
resources in alphabetical order.
 
In a gophermap any line that doesn't contain a <TAB> character is
automatically converted to an type "i" gopher resource which are
displayed as plain text in the client. Lines which contain tabs are
intepreted as gopher resource lines which the client will render as
links. The first line of a gophermap should be a !Title line
describing the menu.
 
Dynamic gophermaps are possible by making the gophermap a script and
marking it as executable. All script output is parsed just like a
static gophermap, for example lines without tabs are converted to "i"
resources. Executable gophermaps are always ran through the default
shell (/bin/sh) so depending on your operating system that's either
slow, or really unbearably slow...
 
El formato para una lína de recursos gophermap es simple:
Xnombre<TAB>selector<TAB>host<TAB>puerto
 
Donde:
   X          Es el tipo de archivo gopher
   name       es una explicación del recurso
   selector   es la ruta del recurso
   host:puerto son el nombre de host y el número de puerto a ir
 
Type and name are mandatory. If you don't specify a selector, the
name field will be also used as the selector. If you don't specify
host or port the host:port of the current server are used instead.
Also make sure to use ONLY ONE TAB between the fields.
 
Valid filetypes include:
   0   Archivo de texto
   1   Directorio
   3   Mensaje de error
   5   Archivo comprimido (zip, tar etc)
   7   Interrogante de búsqueda
   8   Sesión telnet
   9   Fichero binario
   g   Imagen GIF
   h   Archivo HTML
   i   texto de información
   I   fichero de imagen genérica (distinto que GIF)
   d   fichero de documento (ps, pdf, doc etc)
   s   archivo de sonido
   ;   archivo de video
   c   fichero de calentadio
   M   archivo MIME (mbox, emails etc)
 
Additional type characters supported by Gophernicus:
   #          comment - rest of the line is ignored
   !title     menu title (use on the first line)
   -file      hide file from listings
   :ext=type  change filetype (for this directory only)
   ~          incluye una lista de osuarios con un ~/public_gopher válido
   %          incluye una lista de host virtuales disponibles
   =mapfile   incluye o ejecuta otro gophermap
   *          Detiene el procesado de gophermap, incluye listado de ficheros
   .          Detiene el procesado de gophermap (por defecto)
 
Ejemplos de líneas de recurso válidos:
 
1subdir
1Relative internal link	subdir
1Absolute internal link	/subdir
1External link 	/	gopher.floodgap.com	70
1External relative link (which shouldn't work)	subdir/	gopher.domain.dom	70
0Finger-to-gopher link	user	example.test	79
hLink to a website	URL:http://www.google.com/
 
hEnlace a una página HTML local	/ruta/a/fichero.html
5Link to an tar archive	/ruta/a/archivo.tar.gz
9Link to a binary file	/ruta/a/binario
 
7Search engine query	/query
8sesión telnet	usuario ejemplo.test	79
 
# Oculta algunos ficheros desde el listado de menú generado por *
-fichero_oculto.txt
-directorio_oculto
 
# Cambia los tipos de fichero para este directorio
:png=g
:foo=b
 
Incluye enlaces a los propios hoyos gopher de l@s usuari@s:
~
 
Lista de todos los host virtuales disponibles:
%
 
Include sub-gophermap:
=LICENSE
 
Ejecuta un guion y envía su resultado como un subgophermap:
=/usr/bin/uptime
 
Aquí detenemos el interpretado del gophermap e incluimos el menú regulara:
*
  • gophermap.1652886195.txt.gz
  • Última modificación: 2022/05/18 15:03
  • por peron