SF.net SVN: gar:[22554] csw/mgar/pkg

pfelecan at users.sourceforge.net pfelecan at users.sourceforge.net
Tue Nov 19 19:43:26 CET 2013


Revision: 22554
          http://gar.svn.sourceforge.net/gar/?rev=22554&view=rev
Author:   pfelecan
Date:     2013-11-19 18:43:25 +0000 (Tue, 19 Nov 2013)
Log Message:
-----------
dictd/trunk: instantiation (doesn't build on BO farm as libmaa is
missing and libtool is non functional)

Added Paths:
-----------
    csw/mgar/pkg/dictd/
    csw/mgar/pkg/dictd/Makefile
    csw/mgar/pkg/dictd/branches/
    csw/mgar/pkg/dictd/tags/
    csw/mgar/pkg/dictd/trunk/
    csw/mgar/pkg/dictd/trunk/Makefile
    csw/mgar/pkg/dictd/trunk/checksums
    csw/mgar/pkg/dictd/trunk/files/
    csw/mgar/pkg/dictd/trunk/files/0001-fix-and-enhance-documentation.patch
    csw/mgar/pkg/dictd/trunk/files/0002-test-drivers-use-bash.patch
    csw/mgar/pkg/dictd/trunk/files/0003-plugin-needs-limits.patch

Added: csw/mgar/pkg/dictd/Makefile
===================================================================
--- csw/mgar/pkg/dictd/Makefile	                        (rev 0)
+++ csw/mgar/pkg/dictd/Makefile	2013-11-19 18:43:25 UTC (rev 22554)
@@ -0,0 +1,2 @@
+%:
+	$(MAKE) -C trunk $*


Property changes on: csw/mgar/pkg/dictd/trunk
___________________________________________________________________
Added: svn:ignore
   + work


Added: csw/mgar/pkg/dictd/trunk/Makefile
===================================================================
--- csw/mgar/pkg/dictd/trunk/Makefile	                        (rev 0)
+++ csw/mgar/pkg/dictd/trunk/Makefile	2013-11-19 18:43:25 UTC (rev 22554)
@@ -0,0 +1,159 @@
+# $Id$
+
+NAME	=	dictd
+VERSION	=	1.12.1
+GARTYPE	=	v2
+
+DESCRIPTION	=	DICT Protocol
+define BLURB
+  Client, server and utilities for the Dictionary Server Protocol
+  (DICT), a TCP transaction based query/response protocol that
+  provides access to dictionary definitions from a set of natural
+  language dictionary databases.
+endef
+
+MASTER_SITES	=	$(SF_MIRRORS)
+SF_PROJECT		=	dict
+DISTFILES 		=	$(DISTNAME).tar.gz
+PATCHFILES		+=	0001-fix-and-enhance-documentation.patch
+PATCHFILES		+=	0002-test-drivers-use-bash.patch
+PATCHFILES		+=	0003-plugin-needs-limits.patch
+
+BUILD_DEP_PKGS	+=	CSWlibmaa-dev
+BUILD_DEP_PKGS	+=	CSWlibz-dev
+BUILD_DEP_PKGS	+=	CSWlibdbi-dev
+BUILD_DEP_PKGS	+=	CSWgroff
+
+GARCOMPILER		=	GNU
+CONFIGURE_ARGS	=	$(DIRPATHS)
+CONFIGURE_ARGS	+=	--libexecdir=$(libexecdir)/$(NAME)
+CONFIGURE_ARGS	+=	--sysconfdir=$(sysconfdir)/$(NAME)
+CONFIGURE_ARGS	+=	--datadir=$(datadir)/$(NAME)
+CONFIGURE_ARGS	+=	--enable-dictorg
+CONFIGURE_ARGS	+=	--with-plugin-dbi
+
+TEST_SCRIPTS	=	custom
+
+EXTRA_MERGE_EXCLUDE_FILES	+=	$(libexecdir)/$(NAME)/.*[.]la
+EXTRA_MERGE_EXCLUDE_FILES	+=	$(libexecdir)/$(NAME).*[.]a
+
+PACKAGES					+=	CSWdict
+SPKG_DESC_CSWdict			=	$(DESCRIPTION), client
+CATALOGNAME_CSWdict			=	dict
+PKGFILES_CSWdict			+=	$(bindir)/colorit
+PKGFILES_CSWdict			+=	$(bindir)/dict
+PKGFILES_CSWdict			+=	$(bindir)/dict_lookup
+PKGFILES_CSWdict			+=	$(bindir)/dictl
+PKGFILES_CSWdict			+=	$(docdir)/$(CATALOGNAME_CSWdict)/ANNOUNCE
+PKGFILES_CSWdict			+=	$(docdir)/$(CATALOGNAME_CSWdict)/ChangeLog
+PKGFILES_CSWdict			+=	$(docdir)/$(CATALOGNAME_CSWdict)/NEWS
+PKGFILES_CSWdict			+=	$(docdir)/$(CATALOGNAME_CSWdict)/examples/dict1.conf
+PKGFILES_CSWdict			+=	$(mandir)/man1/colorit.1
+PKGFILES_CSWdict			+=	$(mandir)/man1/dict.1
+PKGFILES_CSWdict			+=	$(mandir)/man1/dict_lookup.1
+PKGFILES_CSWdict			+=	$(mandir)/man1/dictl.1
+
+RUNTIME_DEP_PKGS_CSWdicd	+= CSWlibmaa3-0-0
+
+PACKAGES						+=	CSWdictfmt
+SPKG_DESC_CSWdictfmt			=	$(DESCRIPTION), converter
+CATALOGNAME_CSWdictfmt			=	dictfmt
+PKGFILES_CSWdictfmt				+=	$(bindir)/dictfmt
+PKGFILES_CSWdictfmt				+=	$(bindir)/dictfmt_index2suffix
+PKGFILES_CSWdictfmt				+=	$(bindir)/dictfmt_index2word
+PKGFILES_CSWdictfmt				+=	$(bindir)/dictunformat
+PKGFILES_CSWdictfmt				+=	$(mandir)/man1/dictfmt.1
+PKGFILES_CSWdictfmt				+=	$(mandir)/man1/dictfmt_index2suffix.1
+PKGFILES_CSWdictfmt				+=	$(mandir)/man1/dictfmt_index2word.1
+PKGFILES_CSWdictfmt				+=	$(mandir)/man1/dictunformat.1
+RUNTIME_DEP_PKGS_CSWdictfmt		+=	CSWlibmaa3-0-0
+RUNTIME_DEP_PKGS_CSWdictfmt		+=	CSWrecode
+CHECKPKG_OVERRIDES_CSWdictfmt	+=	surplus-dependency|CSWrecode
+
+PACKAGES					+=	CSWdictzip
+SPKG_DESC_CSWdictzip		=	$(DESCRIPTION), compressor
+CATALOGNAME_CSWdictzip		=	dictzip
+PKGFILES_CSWdictzip			+=	$(bindir)/dictzip
+PKGFILES_CSWdictzip			+=	$(mandir)/man1/dictzip.1
+RUNTIME_DEP_PKGS_CSWdictzip	+=	CSWlibz1
+RUNTIME_DEP_PKGS_CSWdictzip	+=	CSWlibmaa3-0-0
+
+PACKAGES					+=	CSWdictd
+SPKG_DESC_CSWdictd			=	$(DESCRIPTION), server
+CATALOGNAME_CSWdictd		=	dictd
+PKGFILES_CSWdictd			+=	$(sbindir)/.*
+PKGFILES_CSWdictd			+=	$(mandir)/man8/.*
+
+PKGFILES_CSWdictd			+=	$(docdir)/$(NAME)/ANNOUNCE
+PKGFILES_CSWdictd			+=	$(docdir)/$(NAME)/ChangeLog
+PKGFILES_CSWdictd			+=	$(docdir)/$(NAME)/INITSCRIPT
+PKGFILES_CSWdictd			+=	$(docdir)/$(NAME)/INSTALL
+PKGFILES_CSWdictd			+=	$(docdir)/$(NAME)/NEWS
+PKGFILES_CSWdictd			+=	$(docdir)/$(NAME)/README
+PKGFILES_CSWdictd			+=	$(docdir)/$(NAME)/TODO
+PKGFILES_CSWdictd			+=	$(docdir)/$(NAME)/.*[.]txt
+PKGFILES_CSWdictd			+=	$(docdir)/$(NAME)/.*[.]ps
+PKGFILES_CSWdictd			+=	$(docdir)/$(NAME)/security.doc
+PKGFILES_CSWdictd			+=	$(docdir)/$(NAME)/examples/dictd.*
+PKGFILES_CSWdictd			+=	$(libexecdir)/$(NAME)/.*
+RUNTIME_DEP_PKGS_CSWdictd	+=	CSWlibgcc-s1
+RUNTIME_DEP_PKGS_CSWdicd	+=	CSWlibmaa3-0-0
+RUNTIME_DEP_PKGS_CSWdictd	+=	CSWlibz1
+RUNTIME_DEP_PKGS_CSWdictd	+=	CSWlibdbi1
+RUNTIME_DEP_PKGS_CSWdictd	+=	CSWdictzip
+CHECKPKG_OVERRIDES_CSWdictd	+=	surplus-dependency|CSWdictzip
+CHECKPKG_OVERRIDES_CSWdictd	+=	no-direct-binding|/opt/csw/libexec/dictd/dictdplugin_exit.so.0.0.0|is|not|directly|bound|to|soname|libgcc_s.so.1
+CHECKPKG_OVERRIDES_CSWdictd	+=	no-direct-binding|/opt/csw/libexec/dictd/dictdplugin_exit.so.0.0.0|is|not|directly|bound|to|soname|libmaa.so.3
+CHECKPKG_OVERRIDES_CSWdictd	+=	no-direct-binding|/opt/csw/libexec/dictd/dictdplugin_popen.so.0.0.0|is|not|directly|bound|to|soname|libgcc_s.so.1
+CHECKPKG_OVERRIDES_CSWdictd	+=	no-direct-binding|/opt/csw/libexec/dictd/dictdplugin_popen.so.0.0.0|is|not|directly|bound|to|soname|libmaa.so.3
+
+PACKAGES						+=	CSWdictd-dev
+CATALOGNAME_CSWdictd-dev		=	dictd_dev
+SPKG_DESC_CSWdictd-dev			+=	$(DESCRIPTION), server plugins development files
+PKGFILES_CSWdictd-dev			+=	$(bindir)/dictdplugin-config
+PKGFILES_CSWdictd-dev			+=	$(PKGFILES_DEVEL)
+ARCHALL_CSWdictd-dev			=	1
+CHECKPKG_OVERRIDES_CSWdictd-dev	+=	archall-devel-package
+
+include gar/category.mk
+
+PATH := /opt/csw/gnu:$(PATH)
+
+post-build:
+	cd $(WORKSRC) && \
+	/usr/bin/env -i $(BUILD_ENV) && $(MAKE) -C $(OBJDIR) samples
+	cd $(WORKSRC)/doc && \
+	/usr/bin/env -i $(BUILD_ENV) && $(MAKE) -C $(OBJDIR) all rfc.ps dicf dicf.ps
+	$(MAKECOOKIE)
+
+test-custom:
+	cd $(WORKSRC) && /usr/bin/env -i $(BUILD_ENV) && $(MAKE) -C $(OBJDIR) test
+	$(MAKECOOKIE)
+
+post-install: pkgsdocdir	=	$(docdir)/$(NAME)
+post-install: pkgcdocdir	=	$(docdir)/$(CATALOGNAME_CSWdict)
+post-install: pkgsexdir		=	$(docdir)/$(NAME)/examples
+post-install: pkgcexdir		=	$(docdir)/$(CATALOGNAME_CSWdict)/examples
+post-install:
+	cd $(WORKSRC) && \
+	/usr/bin/env -i $(INSTALL_ENV) && $(MAKE) DESTDIR=$(DESTDIR) -C $(OBJDIR) install.samples
+	ginstall --directory --mode=u=rwx,go=rx $(DESTDIR)/$(pkgsdocdir)
+	ginstall --preserve-timestamps --mode=u=rwx,go=r $(WORKSRC)/ANNOUNCE $(DESTDIR)/$(pkgsdocdir)
+	ginstall --preserve-timestamps --mode=u=rwx,go=r $(WORKSRC)/ChangeLog $(DESTDIR)/$(pkgsdocdir)
+	ginstall --preserve-timestamps --mode=u=rwx,go=r $(WORKSRC)/INITSCRIPT $(DESTDIR)/$(pkgsdocdir)
+	ginstall --preserve-timestamps --mode=u=rwx,go=r $(WORKSRC)/INSTALL $(DESTDIR)/$(pkgsdocdir)
+	ginstall --preserve-timestamps --mode=u=rwx,go=r $(WORKSRC)/NEWS $(DESTDIR)/$(pkgsdocdir)
+	ginstall --preserve-timestamps --mode=u=rwx,go=r $(WORKSRC)/README $(DESTDIR)/$(pkgsdocdir)
+	ginstall --preserve-timestamps --mode=u=rwx,go=r $(WORKSRC)/TODO $(DESTDIR)/$(pkgsdocdir)
+	cd $(WORKSRC)/doc && \
+	ginstall --preserve-timestamps --mode=u=rwx,go=r dicf.txt dicf.ps rfc.txt rfc.ps security.doc $(DESTDIR)/$(pkgsdocdir)
+	ginstall --directory --mode=u=rwx,go=rx $(DESTDIR)/$(pkgcdocdir)
+	ginstall --preserve-timestamps --mode=u=rwx,go=r $(WORKSRC)/ANNOUNCE $(DESTDIR)/$(pkgcdocdir)
+	ginstall --preserve-timestamps --mode=u=rwx,go=r $(WORKSRC)/ChangeLog $(DESTDIR)/$(pkgcdocdir)
+	ginstall --preserve-timestamps --mode=u=rwx,go=r $(WORKSRC)/NEWS $(DESTDIR)/$(pkgcdocdir)
+	ginstall --directory --mode=u=rwx,go=rx $(DESTDIR)/$(pkgsexdir)
+	cd $(WORKSRC)/examples && \
+	ginstall --preserve-timestamps --mode=u=rwx,go=r dictd* $(DESTDIR)/$(pkgsexdir)
+	ginstall --directory --mode=u=rwx,go=rx $(DESTDIR)/$(pkgcexdir)
+	ginstall --preserve-timestamps --mode=u=rwx,go=r $(WORKSRC)/examples/dict1.conf $(DESTDIR)/$(pkgcexdir)
+	$(MAKECOOKIE)


Property changes on: csw/mgar/pkg/dictd/trunk/Makefile
___________________________________________________________________
Added: svn:keywords
   + Id

Added: csw/mgar/pkg/dictd/trunk/checksums
===================================================================
--- csw/mgar/pkg/dictd/trunk/checksums	                        (rev 0)
+++ csw/mgar/pkg/dictd/trunk/checksums	2013-11-19 18:43:25 UTC (rev 22554)
@@ -0,0 +1 @@
+62696491174c22079f664830d07c0623  dictd-1.12.1.tar.gz

Added: csw/mgar/pkg/dictd/trunk/files/0001-fix-and-enhance-documentation.patch
===================================================================
--- csw/mgar/pkg/dictd/trunk/files/0001-fix-and-enhance-documentation.patch	                        (rev 0)
+++ csw/mgar/pkg/dictd/trunk/files/0001-fix-and-enhance-documentation.patch	2013-11-19 18:43:25 UTC (rev 22554)
@@ -0,0 +1,33 @@
+From 4bb0c5ef38b6fedcf08c24c6ef4f6d5a7a7b7a37 Mon Sep 17 00:00:00 2001
+From: Peter Felecan <pfelecan at opencsw.org>
+Date: Tue, 19 Nov 2013 11:22:41 +0100
+Subject: [PATCH] fix and enhance documentation
+
+---
+ doc/Makefile.in | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/doc/Makefile.in b/doc/Makefile.in
+index 233cc9f..6dcd143 100644
+--- a/doc/Makefile.in
++++ b/doc/Makefile.in
+@@ -84,10 +84,16 @@ dicf.txt: dicf.ms dicftoc.ms
+ 	@echo "Building document..."
+ 	$(NROFF) -ms dicf.ms | ./rfc.sh | $(EXPAND) > dicf.txt
+ 
++dicftoc.ms: toc.ms
++	sed -e 's/^[.]so rfc.ms$$/.so dicf.ms/' toc.ms > $@
++
+ # This is pretty ugly
+ rfc.ps: rfc.ms
+ 	$(TROFF) -ms rfc.ms > rfc.ps
+ 
++dicf.ps: dicf.ms
++	$(TROFF) -ms dicf.ms > dicf.ps
++
+ .PHONY: clean distclean tags
+ clean:
+ 	-rm -f *.ps *.txt rfc.toc rfc.toc.new
+-- 
+1.8.4.1
+

Added: csw/mgar/pkg/dictd/trunk/files/0002-test-drivers-use-bash.patch
===================================================================
--- csw/mgar/pkg/dictd/trunk/files/0002-test-drivers-use-bash.patch	                        (rev 0)
+++ csw/mgar/pkg/dictd/trunk/files/0002-test-drivers-use-bash.patch	2013-11-19 18:43:25 UTC (rev 22554)
@@ -0,0 +1,47 @@
+From 405b9e0e727ccef3888014a17e5b13208a4b163a Mon Sep 17 00:00:00 2001
+From: Peter Felecan <pfelecan at opencsw.org>
+Date: Tue, 19 Nov 2013 12:02:28 +0100
+Subject: [PATCH] test drivers use bash
+
+---
+ Makefile.in          | 2 +-
+ test/dictd_test.in   | 2 +-
+ test/dictzip_test.in | 2 +-
+ 3 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/Makefile.in b/Makefile.in
+index ea1cb3f..27e7fd3 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -411,7 +411,7 @@ deps:
+ 
+ .PHONY: test
+ test: $(EXES) $(LIBRARIES)
+-	cd test && sh dictd_test && sh dictzip_test
++	cd test && bash dictd_test && bash dictzip_test
+ 
+ # The following is based on the "Automatic Remaking" node in the GNU
+ # Autoconf documentation:
+diff --git a/test/dictd_test.in b/test/dictd_test.in
+index d9e4179..0850f1e 100755
+--- a/test/dictd_test.in
++++ b/test/dictd_test.in
+@@ -1,4 +1,4 @@
+-#!/bin/sh
++#!/usr/bin/env bash
+ 
+ set -e
+ 
+diff --git a/test/dictzip_test.in b/test/dictzip_test.in
+index 35c2f95..776eef9 100755
+--- a/test/dictzip_test.in
++++ b/test/dictzip_test.in
+@@ -1,4 +1,4 @@
+-#!/bin/sh
++#!/usr/bin/env bash
+ 
+ set -e
+ 
+-- 
+1.8.4.1
+

Added: csw/mgar/pkg/dictd/trunk/files/0003-plugin-needs-limits.patch
===================================================================
--- csw/mgar/pkg/dictd/trunk/files/0003-plugin-needs-limits.patch	                        (rev 0)
+++ csw/mgar/pkg/dictd/trunk/files/0003-plugin-needs-limits.patch	2013-11-19 18:43:25 UTC (rev 22554)
@@ -0,0 +1,24 @@
+From 020e8d0a3bad76bfd045e685787eafea4995000a Mon Sep 17 00:00:00 2001
+From: Peter Felecan <pfelecan at opencsw.org>
+Date: Tue, 19 Nov 2013 13:43:08 +0100
+Subject: [PATCH] plugin needs limits
+
+---
+ dictdplugin_popen.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/dictdplugin_popen.cpp b/dictdplugin_popen.cpp
+index 3c04da7..5b88bc9 100644
+--- a/dictdplugin_popen.cpp
++++ b/dictdplugin_popen.cpp
+@@ -42,6 +42,7 @@
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <errno.h>
++#include <limits.h>
+ #include <string>
+ #include <unistd.h>
+ #include <sstream>
+-- 
+1.8.4.1
+

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list