* Updated sample configuration file and README.md.
authorUrban Wallasch <urban.wallasch@freenet.de>
Sun, 7 Apr 2019 12:13:15 +0000 (14:13 +0200)
committerUrban Wallasch <urban.wallasch@freenet.de>
Sun, 7 Apr 2019 12:13:15 +0000 (14:13 +0200)
* Added sample gopherhole.

README.md
gogopherd.cfg.example
samplehole/.footer.goph [new file with mode: 0644]
samplehole/.header.goph [new file with mode: 0644]
samplehole/LICENSE [new symlink]
samplehole/README.md [new symlink]
samplehole/index.goph [new file with mode: 0644]
samplehole/subdir/.dotfile [new file with mode: 0644]
samplehole/subdir/gopher.asc [new file with mode: 0644]

index fa90c325084f04f40b49e2cb020a80fae43ef604..4a6221946af8e87e30f4fca4f13926b60a8f7f04 100644 (file)
--- a/README.md
+++ b/README.md
@@ -75,9 +75,17 @@ options:
       produce verbose output
 ```
 
-A commented example configuration file, `gogopherd.cfg`, is included
-for your convenience. Any options provided on the command line will
-override the respective settings in the configuration file.
+A commented example configuration file, `gogopherd.cfg.example`, is
+included for your convenience. Any options provided on the command
+line will override the respective settings in the configuration file.
+
+
+## Example
+
+A small sample gopherhole is included in this project. You can test it
+by simply copying `gogopherd.cfg.example` to `gogopherd.cfg` and
+starting gogopherd. Now point your gopher client to localhost port 70
+and you are good to go.
 
 
 ## Release History
index 1d67c7f38a239c38c201550bebe7c8b41da81af2..870fb5c008d8c54d40165365771d9af76751913b 100644 (file)
@@ -2,26 +2,26 @@
 # Command line options will override the respective values set here.
 
 # Network interface to bind to, empty means any.
-iface = ""
+iface = "localhost"
 # TCP port to listen on.
 port = 7070
 # Fully qualified domain name associated with server.
 fqdn = "localhost"
 
 # Root directory of document hierarchy.
-docroot = "."
+docroot = "samplehole"
 # Name of directory index files.
 idxpage = "index.goph"
 # Path to header file to prepend to generated pages; absolute or relative to docroot.
-header = ""
+header = ".header.goph"
 # Path to footer file to append to generated pages; absolute or relative to docroot.
-footer = ""
+footer = ".footer.goph"
 
 # If true, follow symbolic links.
 fsymln = true
 # If true, show dot files.
 showdot = false
 # If true, generate directory listings where no index file is found.
-indexes = false
+indexes = true
 
 # EOF
diff --git a/samplehole/.footer.goph b/samplehole/.footer.goph
new file mode 100644 (file)
index 0000000..f03528f
--- /dev/null
@@ -0,0 +1,3 @@
+i      Err     localhost       7070
+i__________________________________________    Err     localhost       7070
+iThis page was brought to you by gogopherd.    Err     localhost       7070
diff --git a/samplehole/.header.goph b/samplehole/.header.goph
new file mode 100644 (file)
index 0000000..a2fa1b9
--- /dev/null
@@ -0,0 +1,5 @@
+iYou are down the samplehole of gogopherd.     Err     localhost       7070
+i-----------------------------------------     Err     localhost       7070
+i      Err     localhost       7070
+1Home  /       localhost       7070
+i      Err     localhost       7070
diff --git a/samplehole/LICENSE b/samplehole/LICENSE
new file mode 120000 (symlink)
index 0000000..ea5b606
--- /dev/null
@@ -0,0 +1 @@
+../LICENSE
\ No newline at end of file
diff --git a/samplehole/README.md b/samplehole/README.md
new file mode 120000 (symlink)
index 0000000..32d46ee
--- /dev/null
@@ -0,0 +1 @@
+../README.md
\ No newline at end of file
diff --git a/samplehole/index.goph b/samplehole/index.goph
new file mode 100644 (file)
index 0000000..cd7841d
--- /dev/null
@@ -0,0 +1,16 @@
+i                               _                  _                           Err     .       0
+i  __ _  ___   __ _  ___  _ __ | |__   ___ _ __ __| | ___ _ __ ___   ___       Err     .       0
+i / _` |/ _ \ / _` |/ _ \| '_ \| '_ \ / _ \ '__/ _` |/ _ \ '_ ` _ \ / _ \      Err     .       0
+i| (_| | (_) | (_| | (_) | |_) | | | |  __/ | | (_| |  __/ | | | | | (_) |     Err     .       0
+i \__, |\___/ \__, |\___/| .__/|_| |_|\___|_|  \__,_|\___|_| |_| |_|\___/      Err     .       0
+i |___/       |___/      |_|                                                   Err     .       0
+i      Err     .       0
+iWelcome to the samplehole of gogopherd.       Err     localhost       7070
+i---------------------------------------       Err     localhost       7070
+i      Err     .       0
+0gogopherd README      README.md       localhost       7070
+1A subdirectory        subdir  localhost       7070
+i      Err     .       0
+1Learn about gopher at gopherproject.org       /       gopherproject.org       70
+i---------------------------------------       Err     localhost       7070
+
diff --git a/samplehole/subdir/.dotfile b/samplehole/subdir/.dotfile
new file mode 100644 (file)
index 0000000..88629ca
--- /dev/null
@@ -0,0 +1,2 @@
+This dotfile will only be listed and retrieved
+if the gogopherd showdot option is set to true.
\ No newline at end of file
diff --git a/samplehole/subdir/gopher.asc b/samplehole/subdir/gopher.asc
new file mode 100644 (file)
index 0000000..bf08ddf
--- /dev/null
@@ -0,0 +1,47 @@
+     ...**,...,.*,,.,**..,....*/*/,..,.       .........  ..   ......... */*(*,...,,......    .......*/*,,......     ...  ......................
+            ,/**. ....,,,....**..,............  ...,//,... .... . ...,...,.,,...........,...,.,,.....     ,........ ..     ....................
+.      .. ... .,,....*,,.,,.,/,..**,,*,,.....  .......,,.....   ..... .,. ./#*...,,...........   .    .  .......,,*,,,.........................
+..     ..        .,*,,,/***,.,,*... ..*/......,...  .,,**,/(*,.,..............,,...........,*,.. ....*. .......................................
+...,,,,.....   .......,*/*,,(##*,,,,,,/#(/,*,,.,/(**/((**,,.(##/,,*/(/,*(*,....,*..,,........**(*.,...,...............................,,.......
+(,.,.,*/,,/***//*,,.,..*#/...*/#(,*,*/,(##(,,,*/*(/(,*###(.,##%##((/*//,.*(/,*/**,.......,.....  .....,,,...................,..................
+*//(//*,*#*,###(,..**....((/*,*(###(**(##############((%####%##%%####((/,*/(/(*...,.....,.......... .,,,,................. ....,...............
+,,**,*#(**##/,.,*.,,////*#%##((####(###############(((#%((##%%########%%(,,/,..,.,*,.....,,,....,,*,..,.,,,....,,,.............,...............
+..,(#(/*//*..,.,#%%###(,*/%%#######///#(##############%%%####%%###%######(*,,*....,,,,**(***,,,.*,**,,...,,**/*,*/*,...........................
+,*(/*,///##/,(###(/##(###/%&%%##############%#########%%#%#######%##########/*(((**(#(((*,,(#(/*((##(/,..,,,/#((/*/**,,........................
+,..,//**##((#/#((#%%##%%#%%%%###########################%%##%%%%%%#%%##%##(#((*,,.............,*,,**(****/((##((#(/**,.,,,.....................
+/**(######/*/**.,,(#%#####%%%%%########################%#######%%%%##%%%#/*.     .... ...  .   .///(####/*/*##(****/##(...,...,,...............
+####%#######/,/########%%#%%%%####################%###############%%###/..,**///*,,,,,.......    ./####,.,,.....,/#####(**///***,.,,,......   .
+###(##########((#%%##%#%%%%%%%%####%##%%##%#################%##%%%##(*..///(#((###(#&&*/*,....   ./###(##(/(*.,,,/%%%##/,,,*,,,,,,,,.........
+##%#%%%#######(/#%%####%%%%%###%%%#(##%%%%%%%%#%############%%%%%%(*.,,/%/,,*//(###&&&&&&%(*,,.......,.*(####(((**,,*#%#//(#/*,,,,,,.,,,......
+######%%%#########%%%#%%%##%%##%%%%%%%%%%%%%%%%%##%#%%#######(#%##*,,,(#%#(,,,,,*###%%%#(//((//****,,,,,,((%%####*..,((/(**###(/(,,,,//,,....,,
+#%#(/###%#######%%###%%%%%%%#%%##%%%%%%%%%%%%%%%%%%%%%########%#/,,/(((/#(/*,...*(((((/**/((#(#////(((//,/#%%%%###(*,*/(#(**(%%%#(/,,...,*,*,**
+##%##%#%%%%#%%######%%%%%%%%%%#%%%%%%%%%%%%##%%%%%%%%%##########**/(((/**/****//((/((((((#(((/#(((((#%&%*((#%%%%%#//((#/*///,,/(##*..,**.,,**/(
+%##%%%%%%%%%#%%###%%%%%%%%#%%%%%%%%%%%%&%%%%%%%%%%%%#%%%%#####(*/(((((((/*////*/(((#######(//(/(////###(/#####%%#(/*,,,*.. .,,,***/,.,,/(//*.,.
+#######%%%%%#%###%%%%%%%%%#%%%%%#%%%%%###%%%%%%%%%%%%%%###%%#(*(((##(((//((((////((#####((((#(//*///((/*/##%%##%%#%#/*/(**.......*(,/##(*,.....
+########%%%%%%%%%%%%%%%%%%%%%%%#((#%%%%%%%%#%%%%%%%%%%%%%%%%#/((#####(((#((((/*////((((((((((/**////((((%%##%%%%##%#*...,*,.......,,,,......,,.
+%%%%%%#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&&&%%%%%%%%%%%%%%%%/(#######((((((///////**/////((////*//###%(#%%%##%%%###/,......,..,...,,*,,,,,,,..,
+(#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&%%&&%%%%%%%%&&&%%%(###%#####((////////////////////////#((#######/*,,//(//*,...,,,...,*,,,/*,*,...,*.,.
+,(#%#%#%%#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&%%#/%######(((//////((((((((###(#(///(#%#######/,........ .,(###/###***/,,,*,,***,,,**,
+.(###((#%%##%%%%%%%%%%###%%%%%%&&%%%%%%%%%%%%%%%%%%&%%%&%%/#%%%###((((((//((//(((#####(//. ./%%####%&%#/,*(*,,//*,/((######(/,/%#***,..,,**/(((
+//#####%%%%%%%%%%%%%%%%%%%&&&%%%%%%%%&%%%%%%%%&%%%%%%%%%%((%######((///////(((######((//,.  *%%%%##%%##(###(,..****,**,#%(,,**,,,,**/,,,*/((/,,
+##########%%###%%%%%%%%%%%&%%%%%%%%%%%%%%%%%%%%%%%%%&%%/%#%%##((((((/((((((##%%%#((((/,  . ,(#%%##########(*,.,,*((/,,*((*,,,,,,,//*,,.
+#######((#%%%%%%%%%%%%&%%%&%&%%%%%%%%#%%%%%%%%%%%%%&&%&%###%####((((///////((((#%##((((/, .   ,#%%###%%%###%##(**//,(#/..**,,,,,,...  . .. ....
+##########%&%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&&&%%%%%###(((((//(((((####%#(((((/....    ,#%%%######%###//*/#/,,,..,,...       ..... ...
+####%#####%%%%#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&&%%%%&&%&&&&%%%%##((#((//(/(((((((#%#//(((*,. ...    *#%%#(####%%(//(*....,.........  .......,,...
+(###%%#####%%%%%&&%%%&%&%%&%%%%%%%%%%%%%%%%%%%%%&&&&&&%&%%%%%####((//(((//////((#(//((/*,,.,,....   ,#%%%##(**#&((/***,.*...   ........   ...
+.,*##%%%%%##%%%%&&&&%%%%%%%%%%%%%&%%%%%%%%%%%%%&&&&&&&&%%%%%%%###(((((/(/(/////((((/((,**,.,*,.,...   .(#/**#&&@%###(#/.. ... ............. ...
+,..,/##%%%%%%%%#%&&&&&%%&&&%%%%%%&&%%%%%%%%%&%&&&&&&&&%%%%%%%##((((((((//////(((((((,,/*,.*/**(#(*,...,*/%%%%%%%##(*...  ...   .,,,..,,......
+..,/,,/#%%###%%%%&&&&&%%&&&&&&&&%%%&&%%%%%%%%&&&&&&&&&%%%%%%%#####((((((///////((##/((,,(/*,,(#((####(/(##%%%&%&&&%/...........,*..............
+......./%####%%%%&&&&&&&&&%&&&&&&%%&&%%&&&&&&&&&&&&&%##%%%%%%%#####(((((((/////((((/(/,*((*,.(%&%%%##((##%%@@&%%,,.,,.... ... ........ ..  ..
+. .....*##%%#%%%%&&&&&&&&%&&&%%%%%&&%%&&&&&&&&&&&&&%#/##%%%%%%%#####(////////((((((((/,,((/,,(@@@@@@@@&&&&&&&&%#,..,,,..,*,,,,...,,............
+,.     .. .,%%%%%&&&&&&&&&&&&&&&&&&&&%&&&&&&&&&&&&%*/%%%%%%%%#%%%####(///(//((((((((#(/*##(/*(@@@@@@@@@@@&&&%(,,...,......,,.......  ..........
+..,,.. .**,.,#%%%%&&&&&&%%%&&&&&&&&&&&&&&&&&&&&&*/#%###%%%#%%%%%%####(((/(((((((((((((/(#((%&@@@@@@@@@@@&(,..............................  ..
+ ..,... .*#/.*%%%%&&&&&%%&&&&&&&&&&&&&&&&&&&&&&&(*(########%%##%%%%%%###((((((((((((((((((*.(&@@@@@@@@@@&(... ....,,..... ..,..................
+,,,**,... .*(((%%%&&&&&&&&&&&&&&&&&&&&&@@&&&&&*(##########%%%%%#%#%#####(((((((((((((((*    *@@@@@&%&(..,......,,,,,,*,,,,,,,,...............
+ ..,/(*,,,,*%#%%%%&&%%%&@@&&&&&&&&&&&&&&&&&&&*/(###(#((####%##############(#((((((###((/*,.. .*%#*......,..,,,...,,,.,,,...............  ....
+,. ..*(/**(**%%%%&&&%%%&&@&&&&&&&&&&@&&&&&&&&%(//####((#((#####(###########(#####(#(#(#(#((/*,. .....,,....,**. ..,*,,..,,,,,,...,.,.......  ..
+  ..,*.*(/*((%%%&&&&&&&&&&&&&&&@@@@@@@@@@&@&%((/#(##((((#((##((##(##(((((((((/(((######((((*,......,.,..,,,,,,,,,,.,.,..... .*,,...........   .
+......*,,*(#%%%%%%%%&&&&&&&&&&@@@@@@@@@&@@@(((((((((#(#(((#(((((((((((////(((#%%%%#(/*...........,,,,,,,,..,,,,....................... ......
+..,,,....*(/%%%%%%%&&%&&&&&&&&&&&&&@@@@@@@@#((((((((((((((##((((((((/((((((###%%#,...............,,,,,,...,,,,,,.,,,..,,...,,...........  ...
+..,,,,... .,/%%%%%%%&%&&&&&&&&&&&&&@@@@@@&%#####((((((((((((###((((((((/((#(#/*,.  .........,.,....,........,,..,,,,,,,....,/,............. ...
+/,,,.........,/%%%&&&%%%&&&&&&&&&&@@@@@@@&%###(###((((((((#####(((((((((/,.  ..... .......,,,..,.,,,........,,,..,,.,,,....,*(*....,..... .....