New package: dictd-1.12.1

This commit is contained in:
Christopher Brannon 2015-05-24 02:44:09 -07:00
parent 22e62b9524
commit d4626c874b
8 changed files with 120 additions and 0 deletions

1
srcpkgs/dict Symbolic link
View file

@ -0,0 +1 @@
dictd

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)

View file

@ -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

View file

@ -0,0 +1,15 @@
# dictd configuration file.
# whipped up by michael conrad tilstra <michael@gentoo.org>
# Informational message
global {
site site.info
}
# who's allowed. You might want to change this.
access {
allow *
}
# List your dictionary databases below.

View file

@ -0,0 +1,13 @@
service dict
{
disable = yes
type = UNLISTED
port = 2628
socket_type = stream
protocol = tcp
wait = no
user = dictd
group = dictd
server = /usr/sbin/dictd
server_args = -c /etc/dict/dictd.conf -i --locale en_US.UTF-8 -s
}

View file

@ -0,0 +1,4 @@
#!/bin/sh
[ -r conf ] && . ./conf
exec 2>/dev/null
exec chpst -u dictd:dictd dictd --debug nodetach ${OPTS:=--locale en_US.UTF-8 -s}

View file

@ -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.

43
srcpkgs/dictd/template Normal file
View file

@ -0,0 +1,43 @@
# Template file for 'dictd', based on the ArchLinux package by Sergej Pupykin
pkgname=dictd
version=1.12.1
revision=1
build_style=configure
configure_args="--enable-dictorg --prefix=/usr --sysconfdir=/etc/dict"
conf_files="/etc/dict/dictd.conf /etc/dict/site.info"
hostmakedepends="flex libtool"
makedepends="zlib-devel libmaa-devel"
short_desc="DICT protocol server"
maintainer="Christopher Brannon <chris@the-brannons.com>"
license="GPL-2"
homepage="http://sourceforge.net/projects/dict/"
distfiles="${SOURCEFORGE_SITE}/dict/${pkgname}-${version}.tar.gz"
checksum=a237f6ecdc854ab10de5145ed42eaa2d9b6d51ffdc495f7daee59b05cc363656
system_accounts="dictd"
post_install() {
vinstall ${FILESDIR}/dictd.conf 644 etc/dict
vinstall ${FILESDIR}/site.info 644 etc/dict
vinstall ${FILESDIR}/dictd.xinetd 644 etc/xinetd.d dictd
vsv dictd
vmkdir usr/share/doc/$pkgname
vcopy examples/ usr/share/doc/$pkgname
}
dict_package() {
short_desc="DICT protocol dictionary client, from the dictd developers"
conf_files="/etc/dict/dict.conf /etc/dict/colorit.conf"
pkg_install() {
vinstall ${FILESDIR}/dict.conf 644 etc/dict
vinstall ${FILESDIR}/colorit.conf 644 etc/dict
vmove usr/bin/dict
vmove usr/bin/colorit
vmove usr/bin/dictl
vmove usr/bin/dict_lookup
vmove usr/share/man/man1/dict.1
vmove usr/share/man/man1/colorit.1
vmove usr/share/man/man1/dictl.1
vmove usr/share/man/man1/dict_lookup.1
vmove usr/share/doc/dictd/examples/dict1.conf
}
}