From 22e62b9524eba129e52c4c85264dd4e44b233f4c Mon Sep 17 00:00:00 2001 From: Christopher Brannon Date: Sun, 24 May 2015 02:43:00 -0700 Subject: [PATCH 1/2] New package: libmaa-1.3.2 --- common/shlibs | 1 + srcpkgs/libmaa-devel | 1 + srcpkgs/libmaa/template | 22 ++++++++++++++++++++++ 3 files changed, 24 insertions(+) create mode 120000 srcpkgs/libmaa-devel create mode 100644 srcpkgs/libmaa/template diff --git a/common/shlibs b/common/shlibs index 87abb34fb3..5206d9a2cb 100644 --- a/common/shlibs +++ b/common/shlibs @@ -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 diff --git a/srcpkgs/libmaa-devel b/srcpkgs/libmaa-devel new file mode 120000 index 0000000000..09ba31ba51 --- /dev/null +++ b/srcpkgs/libmaa-devel @@ -0,0 +1 @@ +libmaa \ No newline at end of file diff --git a/srcpkgs/libmaa/template b/srcpkgs/libmaa/template new file mode 100644 index 0000000000..e08e265455 --- /dev/null +++ b/srcpkgs/libmaa/template @@ -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 " +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" + } +} From d4626c874b2a75287ca32a6daab907902e115d46 Mon Sep 17 00:00:00 2001 From: Christopher Brannon Date: Sun, 24 May 2015 02:44:09 -0700 Subject: [PATCH 2/2] New package: dictd-1.12.1 --- srcpkgs/dict | 1 + srcpkgs/dictd/files/colorit.conf | 32 ++++++++++++++++++++++++ srcpkgs/dictd/files/dict.conf | 6 +++++ srcpkgs/dictd/files/dictd.conf | 15 +++++++++++ srcpkgs/dictd/files/dictd.xinetd | 13 ++++++++++ srcpkgs/dictd/files/dictd/run | 4 +++ srcpkgs/dictd/files/site.info | 6 +++++ srcpkgs/dictd/template | 43 ++++++++++++++++++++++++++++++++ 8 files changed, 120 insertions(+) create mode 120000 srcpkgs/dict create mode 100644 srcpkgs/dictd/files/colorit.conf create mode 100644 srcpkgs/dictd/files/dict.conf create mode 100644 srcpkgs/dictd/files/dictd.conf create mode 100644 srcpkgs/dictd/files/dictd.xinetd create mode 100644 srcpkgs/dictd/files/dictd/run create mode 100644 srcpkgs/dictd/files/site.info create mode 100644 srcpkgs/dictd/template diff --git a/srcpkgs/dict b/srcpkgs/dict new file mode 120000 index 0000000000..7e1c47e1d4 --- /dev/null +++ b/srcpkgs/dict @@ -0,0 +1 @@ +dictd \ No newline at end of file diff --git a/srcpkgs/dictd/files/colorit.conf b/srcpkgs/dictd/files/colorit.conf new file mode 100644 index 0000000000..8355dae158 --- /dev/null +++ b/srcpkgs/dictd/files/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/srcpkgs/dictd/files/dict.conf b/srcpkgs/dictd/files/dict.conf new file mode 100644 index 0000000000..e06c3d296e --- /dev/null +++ b/srcpkgs/dictd/files/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/srcpkgs/dictd/files/dictd.conf b/srcpkgs/dictd/files/dictd.conf new file mode 100644 index 0000000000..08b250e358 --- /dev/null +++ b/srcpkgs/dictd/files/dictd.conf @@ -0,0 +1,15 @@ +# 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 * +} + +# List your dictionary databases below. diff --git a/srcpkgs/dictd/files/dictd.xinetd b/srcpkgs/dictd/files/dictd.xinetd new file mode 100644 index 0000000000..8905d75463 --- /dev/null +++ b/srcpkgs/dictd/files/dictd.xinetd @@ -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 +} diff --git a/srcpkgs/dictd/files/dictd/run b/srcpkgs/dictd/files/dictd/run new file mode 100644 index 0000000000..0138bb406c --- /dev/null +++ b/srcpkgs/dictd/files/dictd/run @@ -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} diff --git a/srcpkgs/dictd/files/site.info b/srcpkgs/dictd/files/site.info new file mode 100644 index 0000000000..23bfdeb611 --- /dev/null +++ b/srcpkgs/dictd/files/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. + diff --git a/srcpkgs/dictd/template b/srcpkgs/dictd/template new file mode 100644 index 0000000000..07f7c424dd --- /dev/null +++ b/srcpkgs/dictd/template @@ -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 " +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 + } +}