🦈🏠🐜 Initial Commit 🐜🦈🏠

This commit is contained in:
Jason
2022-02-14 16:44:44 -05:00
commit 1f6d8c7ae9
16 changed files with 1180 additions and 0 deletions

22
etc/default/dictd Normal file
View File

@@ -0,0 +1,22 @@
# This file is sourced by /etc/init.d/dictd to obtain the values of
# config variables to be passed to dictd on startup.
# How should the dictd server run?
# Possible values are "daemon" (default), "inetd" or "disabled".
# Please note that any other value will be automatically
# overwritten by the debconf script when the package
# is upgraded or when you run `dpkg-reconfigure dictd'
RUN_MODE="daemon"
# Options passed to dictd.
# Uncomment appropriate lines, change the text if desired, and/or add
# new lines using the format of the sample lines. (They must be legal
# options, as shown in dictd(8).) If dictd is running in the inetd mode,
# please run `dpkg-reconfigure dictd' after changing the options.
DICTD_ARGS=""
#DICTD_ARGS="$DICTD_ARGS --locale=en_US.utf-8"
#DICTD_ARGS="$DICTD_ARGS --facility=user"
#DICTD_ARGS="$DICTD_ARGS --log=min"

32
etc/dictd/colorit.conf Normal file
View File

@@ -0,0 +1,32 @@
dnl /etc/dictd/colorit.conf vim:ft=m4
dnl
dnl Sample configuration file for colorit(1) program
dnl
divert(-1)
dnl
dnl Define some useful color variables
dnl
define(`black', `0')
define(`red', `1')
define(`green', `2')
define(`brown', `3')
define(`blue', `4')
define(`magenta', `5')
define(`cyan', `6')
define(`white', `7')
dnl
dnl Mark macro arguments: regexp foreground-color [background-color]
dnl
define(`mark', ``mark "$1"'' `ifelse(`$#', `3', ``"\033[3$2;4$3m"'', ``"\033[3$2m"'')' `"\033[m"')
dnl
divert
mark(`^From.*$',red,cyan)
mark(`^ [^ ]+',green)
mark(`^ *Note:',red)
mark(`{[^{]+}',green)
mark(`^ *\[[^\[]+\]', cyan)
mark(`^[ ]*(adj|n|v|adv)? *[0-9]+[\.:]',cyan)
mark(`^ *\([a-z]+\)',cyan)
mark(`(Syn|Ant|syn|ant):', blue, white)
mark(` (t|i|a|adj|adv|n|v)\. ',cyan)
mark(` (t|i|a|adj|adv|n|v)\.$',cyan)

21
etc/dictd/dict.conf Normal file
View File

@@ -0,0 +1,21 @@
# /etc/dictd/dict.conf
# Written by Bob Hilliard <hilliard@debian.org>
# 1998/03/20. Last revised Sun, 22 Nov 1998 18:10:04 -0500 This is
# the configuration file for /usr/bin/dict. In most cases only the
# server keyword need be specified.
# This default configuration will try to access a dictd server on the
# local host, failing that, it will try the public server. In many
# cases this will be slow, so you should comment out the line for the
# server that you don't want to use. To use any other server, enter
# its IP address in place of "dict.org".
# Refer to the dict manpage (man dict) for other options that could
# be inserted in here.
server localhost
server dict.casjaysdev.com
server dict.org
server dict0.us.dict.org
server alt0.dict.org

30
etc/dictd/dictd.conf Normal file
View File

@@ -0,0 +1,30 @@
# /etc/dictd/dictd.conf
# Site section here:
global {
site /etc/dictd/site.txt
port 2628
delay 600
depth 10
limit 100
timestamp 10
log_option "found"
log_option "notfound"
log_option "stats"
log_option "client"
debug_option "init"
add_strategy "phonetic" "Phonetic search"
add_strategy "reverse" "Full text search in definitions"
log_file "/var/log/dictd/server.log"
#listen_to 127.0.0.1
}
# Access section here:
access {
allow *
}
# Database section here:
include /var/lib/dictd/db.list
# User section here:

8
etc/dictd/dictd.order Normal file
View File

@@ -0,0 +1,8 @@
# This file defines the order in which dictdconfig lists dictionaries
# in /var/lib/dictd/db.list. The entry "/usr/share/dictd/" brings in
# any dictionaries in that directory that aren't specifically listed
# in this file. You should enter the names of the dictionaries you
# have installed, in the order you would prefer to have them searched.
web1913 gcide wn foldoc jargon vera devil elements easton hitchcock gazetteer
/usr/share/dictd/

16
etc/dictd/dictdconfig.alias Executable file
View File

@@ -0,0 +1,16 @@
#!/usr/bin/perl -lp
# By default, dictdconfig uses the basename of the file in
# /usr/share/dictd as the name of the database. This file is an
# executable filter that substitutes a preferred name for a dictionary
# in /var/lib/dictd/db.list. This name is displayed by the dict -D
# command and is used with the -d option of dict to request
# definitions from a specific dictionary instead of the default of all
# installed dictionaries.
# The format of each line is:
# s/^<basename-of dictionary-file>/<preferred nickname>/;
# Lines preceded by a hash character (#) are ignored.
s/^freedict/fd/;
s/^gazetteer/gaz/;

0
etc/dictd/site.txt Normal file
View File