From 7a65a910b77ad191d69881098c47f9b0c852d92e Mon Sep 17 00:00:00 2001 From: root Date: Tue, 13 Aug 2013 01:33:19 -0700 Subject: Tue Aug 13 01:31:08 PDT 2013 --- community/dictd/PKGBUILD | 55 +++++++++++++++++++++++++++++++++++++++++++ community/dictd/colorit.conf | 32 +++++++++++++++++++++++++ community/dictd/dict.conf | 6 +++++ community/dictd/dictd.conf | 25 ++++++++++++++++++++ community/dictd/dictd.confd | 7 ++++++ community/dictd/dictd.service | 11 +++++++++ community/dictd/dictd.xinetd | 12 ++++++++++ community/dictd/site.info | 6 +++++ 8 files changed, 154 insertions(+) create mode 100644 community/dictd/PKGBUILD create mode 100644 community/dictd/colorit.conf create mode 100644 community/dictd/dict.conf create mode 100644 community/dictd/dictd.conf create mode 100644 community/dictd/dictd.confd create mode 100644 community/dictd/dictd.service create mode 100644 community/dictd/dictd.xinetd create mode 100644 community/dictd/site.info (limited to 'community/dictd') diff --git a/community/dictd/PKGBUILD b/community/dictd/PKGBUILD new file mode 100644 index 000000000..cd5509161 --- /dev/null +++ b/community/dictd/PKGBUILD @@ -0,0 +1,55 @@ +# $Id: PKGBUILD 91830 2013-05-28 17:03:45Z spupykin $ +# Maintainer: Sergej Pupykin +# Contributor: SmackleFunky +# Contributor: Enrico Morelli + +pkgname=dictd +pkgver=1.12.1 +pkgrel=3 +pkgdesc="Online dictionary client and server" +url="http://sourceforge.net/projects/dict/" +license=('GPL') +arch=('i686' 'x86_64') +depends=('sh' 'zlib' 'libmaa') +makedepends=('flex') +backup=(etc/dict/dictd.conf + etc/dict/dict.conf + etc/dict/site.info + etc/conf.d/dictd + etc/xinetd.d/dictd + etc/dict/colorit.conf) +options=('!emptydirs') +source=("http://downloads.sourceforge.net/dict/$pkgname-$pkgver.tar.gz" + dict.conf + dictd.conf + dictd.confd + dictd.service + site.info + dictd.xinetd + colorit.conf) +md5sums=('62696491174c22079f664830d07c0623' + 'fb72f7d8c55f84b1b37bbc8d33a8e55a' + '64cd6ffdb40fb3367224f91ac44926ac' + '838887fee38ae4cebd652d399b1f2266' + 'd94fa6c43514c158c80e85f856c65365' + 'b8cabf913876e544d919c7f20ff8db9e' + 'bd3fd3f68625bad0c23754686ae2e99c' + '978c9c079a0fc8d7d42a4cd4000190e7') + +build() { + cd $srcdir/$pkgname-$pkgver + ./configure --enable-dictorg --prefix=/usr --sysconfdir=/etc/dict --sbindir=/usr/bin + make +} + +package() { + cd $srcdir/$pkgname-$pkgver + make DESTDIR=$pkgdir install + install -D -m 0644 $srcdir/dictd.xinetd $pkgdir/etc/xinetd.d/dictd + install -D -m 0644 $srcdir/dictd.conf $pkgdir/etc/dict/dictd.conf + install -D -m 0644 $srcdir/dict.conf $pkgdir/etc/dict/dict.conf + install -D -m 0644 $srcdir/site.info $pkgdir/etc/dict/site.info + install -D -m 0644 $srcdir/dictd.confd $pkgdir/etc/conf.d/dictd + install -D -m 0644 $srcdir/colorit.conf $pkgdir/etc/dict/colorit.conf + install -Dm0644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service +} diff --git a/community/dictd/colorit.conf b/community/dictd/colorit.conf new file mode 100644 index 000000000..8355dae15 --- /dev/null +++ b/community/dictd/colorit.conf @@ -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) diff --git a/community/dictd/dict.conf b/community/dictd/dict.conf new file mode 100644 index 000000000..e06c3d296 --- /dev/null +++ b/community/dictd/dict.conf @@ -0,0 +1,6 @@ +# This is the configuration file for dict. +# Usually all you will ever need here is the server keywords. +# Refer to the dict manpage for other options. +# It will only check the second server if the first fails +server localhost +server dict.org diff --git a/community/dictd/dictd.conf b/community/dictd/dictd.conf new file mode 100644 index 000000000..71e883a36 --- /dev/null +++ b/community/dictd/dictd.conf @@ -0,0 +1,25 @@ +# dictd configuration file. +# whipped up by michael conrad tilstra + +# Informational message + +global { + site site.info +} + +# who's allowed. You might want to change this. +access { + allow * +} + +# Dictionaries are listed below. +# The initrc script scans /usr/lib/dict and adds all of the dictionaries +# it finds here. +# +# The initrc script will delete everything after the the last line and +# replace it with what it finds. So add all of your things above. +# +# If this is a problem for people, contact me and +# we can work out a different method. +# +#LASTLINE diff --git a/community/dictd/dictd.confd b/community/dictd/dictd.confd new file mode 100644 index 000000000..4b47dcdde --- /dev/null +++ b/community/dictd/dictd.confd @@ -0,0 +1,7 @@ +# Config file for /etc/rc.d/dictd + +DICTD_CONF=/etc/dict/dictd.conf +DICTD_DICTDIR=/usr/share/dictd +DICTD_TMPCONF=/etc/dict/dictd.conf.$$ +DICTD_EARGS="-s" +DICTD_ARGS="--locale en_US.UTF-8" diff --git a/community/dictd/dictd.service b/community/dictd/dictd.service new file mode 100644 index 000000000..f62bf275f --- /dev/null +++ b/community/dictd/dictd.service @@ -0,0 +1,11 @@ +[Unit] +Description=Dictd Dictionary Server Daemon +After=network.target + +[Service] +Type=forking +EnvironmentFile=-/etc/conf.d/dictd +ExecStart=/usr/bin/dictd $DICTD_ARGS -- $DICTD_EARGS + +[Install] +WantedBy=multi-user.target diff --git a/community/dictd/dictd.xinetd b/community/dictd/dictd.xinetd new file mode 100644 index 000000000..0ae5cb411 --- /dev/null +++ b/community/dictd/dictd.xinetd @@ -0,0 +1,12 @@ +service dict +{ + disable = yes + type = UNLISTED + port = 2628 + socket_type = stream + protocol = tcp + wait = no + user = daemon + server = /usr/bin/dictd + server_args = -c /etc/dict/dictd.conf -i --locale en_US.UTF-8 +} diff --git a/community/dictd/site.info b/community/dictd/site.info new file mode 100644 index 000000000..23bfdeb61 --- /dev/null +++ b/community/dictd/site.info @@ -0,0 +1,6 @@ +Welcome to your dictionary server dictd! + +This is an example site information file. It should contain information +about any restricted databases and how users can obtain access. If may +also contain other random data as you see fit. + -- cgit v1.2.3-54-g00ecf