Merge pull request #1658 from CMB/dict

New package: dictd-1.12.1
This commit is contained in:
Juan RP 2015-05-26 22:22:55 +02:00
commit ab22c680d5
11 changed files with 144 additions and 0 deletions

View file

@ -2043,3 +2043,4 @@ libkasten2controllers.so.2 okteta-4.14.2_1
libkasten2okteta1gui.so.1 okteta-4.14.2_1
libkasten2okteta1core.so.1 okteta-4.14.2_1
libhttp_parser.so.2.5.0 http-parser-2.5.0_1
libmaa.so.3 libmaa-1.3.2_1

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

1
srcpkgs/libmaa-devel Symbolic link
View file

@ -0,0 +1 @@
libmaa

22
srcpkgs/libmaa/template Normal file
View file

@ -0,0 +1,22 @@
# Template file for 'libmaa'
pkgname=libmaa
version=1.3.2
revision=1
build_style=gnu-configure
hostmakedepends="flex libtool"
short_desc="Provides many low-level data structures useful for writing compilers"
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=59a5a01e3a9036bd32160ec535d25b72e579824e391fea7079e9c40b0623b1c5
libmaa-devel_package() {
depends="${makedepends} libmaa>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove "usr/include"
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}