[csw-devel] SF.net SVN: gar:[20710] csw/mgar/pkg/imap-c-client/trunk
chninkel at users.sourceforge.net
chninkel at users.sourceforge.net
Mon Apr 15 06:54:58 CEST 2013
Revision: 20710
http://gar.svn.sourceforge.net/gar/?rev=20710&view=rev
Author: chninkel
Date: 2013-04-15 04:54:57 +0000 (Mon, 15 Apr 2013)
Log Message:
-----------
imap-c-client/trunk: added CSWimap package in the recipe
Modified Paths:
--------------
csw/mgar/pkg/imap-c-client/trunk/Makefile
Added Paths:
-----------
csw/mgar/pkg/imap-c-client/trunk/files/0003-Make-news-active-file-path-opencsw-compliant.patch
csw/mgar/pkg/imap-c-client/trunk/files/CSWimap.imap.inetd.conf
csw/mgar/pkg/imap-c-client/trunk/files/CSWimap.imaps.inetd.conf
csw/mgar/pkg/imap-c-client/trunk/files/CSWimap.pop2.inetd.conf
csw/mgar/pkg/imap-c-client/trunk/files/CSWimap.pop3.inetd.conf
csw/mgar/pkg/imap-c-client/trunk/files/CSWimap.pop3s.inetd.conf
csw/mgar/pkg/imap-c-client/trunk/files/CSWimap.services
csw/mgar/pkg/imap-c-client/trunk/files/README.CSW
Modified: csw/mgar/pkg/imap-c-client/trunk/Makefile
===================================================================
--- csw/mgar/pkg/imap-c-client/trunk/Makefile 2013-04-14 22:55:09 UTC (rev 20709)
+++ csw/mgar/pkg/imap-c-client/trunk/Makefile 2013-04-15 04:54:57 UTC (rev 20710)
@@ -29,6 +29,9 @@
# Make more md5 functions static to reduce namespace pollution
PATCHFILES += authmd5.diff
+# Change the path of the active file to be opencsw compliant
+PATCHFILES += 0003-Make-news-active-file-path-opencsw-compliant.patch
+
PACKAGES += CSWlibc-client2007f
SPKG_DESC_CSWlibc-client2007f += $(DESCRIPTION), libc-client.2007f.so
PKGFILES_CSWlibc-client2007f += $(call pkgfiles_lib,libc-client.2007f.so)
@@ -46,9 +49,30 @@
CHECKPKG_OVERRIDES_CSWlibc-client-dev += surplus-dependency|CSWlibc-client2007f
CHECKPKG_OVERRIDES_CSWlibc-client-dev += file-with-bad-content|/usr/share|root/opt/csw/lib/c-client.a
+PACKAGES += CSWimap
+SPKG_DESC_CSWimap = Mail server daemon (UW)
+RUNTIME_DEP_PKGS_CSWimap = CSWlibssl1-0-0
+
+CHECKPKG_OVERRIDES_CSWimap += file-with-bad-content|/usr/local|root/opt/csw/share/man/man1/tmail.1
+CHECKPKG_OVERRIDES_CSWimap += file-with-bad-content|/usr/local|root/opt/csw/share/doc/imap/SSLBUILD
+CHECKPKG_OVERRIDES_CSWimap += file-with-bad-content|/usr/local|root/opt/csw/share/doc/imap/bugs.txt
+CHECKPKG_OVERRIDES_CSWimap += file-with-bad-content|/usr/local|root/opt/csw/share/doc/imap/IPv6.txt
+CHECKPKG_OVERRIDES_CSWimap += file-with-bad-content|/usr/local|root/opt/csw/share/doc/imap/BUILD
+CHECKPKG_OVERRIDES_CSWimap += file-with-bad-content|/usr/local|root/opt/csw/share/doc/imap/FAQ.html
+CHECKPKG_OVERRIDES_CSWimap += file-with-bad-content|/usr/local|root/opt/csw/share/doc/imap/FAQ.txt
+
+
+INETDCONF = $(sysconfdir)/pkg/CSWimap/imap.inetd.conf
+INETDCONF += $(sysconfdir)/pkg/CSWimap/imaps.inetd.conf
+INETDCONF += $(sysconfdir)/pkg/CSWimap/pop.inetd.conf
+INETDCONF += $(sysconfdir)/pkg/CSWimap/pop3.inetd.conf
+INETDCONF += $(sysconfdir)/pkg/CSWimap/pop3s.inetd.conf
+
+ETCSERVICES = $(sysconfdir)/pkg/CSWimap/services
+
CONFIGURE_SCRIPTS =
BUILD_SCRIPTS = custom
-INSTALL_SCRIPTS = custom
+INSTALL_SCRIPTS = libc-client uwimap
# No test suite
TEST_SCRIPTS =
@@ -59,7 +83,36 @@
@( cd $(WORKSRC) ; $(BUILD_ENV) DISTVERSION=$(VERSION) make soc )
@$(MAKECOOKIE)
-install-custom:
+install-uwimap:
+ ginstall -d "$(DESTDIR)$(sbindir)"
+ for DAEMON in imapd/imapd ipopd/ipop2d ipopd/ipop3d; do \
+ ginstall -p -m755 "$(WORKSRC)/$$DAEMON" "$(DESTDIR)$(sbindir)"; \
+ done
+
+ ginstall -d "$(DESTDIR)$(bindir)"
+ ginstall -d "$(DESTDIR)$(mandir)/man1"
+ for BINARY in mailutil tmail dmail mlock; do \
+ ginstall -p -m755 "$(WORKSRC)/$$BINARY/$$BINARY" "$(DESTDIR)$(bindir)"; \
+ [ ! -f "$(WORKSRC)/src/$$BINARY/$$BINARY.1" ] || \
+ ginstall -p -m644 "$(WORKSRC)/src/$$BINARY/$$BINARY.1" "$(DESTDIR)$(mandir)/man1"; \
+ done
+
+ ginstall -d "$(DESTDIR)$(docdir)/imap"
+ for FILE in "$(WORKSRC)/docs"/*; do \
+ [ ! -f "$$FILE" ] || ginstall -p -m 644 "$$FILE" "$(DESTDIR)$(docdir)/imap/"; \
+ done
+ ginstall -p -m644 "$(FILEDIR)/README.CSW" "$(DESTDIR)$(docdir)/imap/"
+
+ ginstall -d "$(DESTDIR)$(sysconfdir)/pkg/CSWimap"
+ for INETCONF in pop2 pop3 pop3s imap imaps; do \
+ ginstall -p -m644 "$(FILEDIR)/CSWimap.$$INETCONF.inetd.conf" \
+ "$(DESTDIR)$(sysconfdir)/pkg/CSWimap/$$INETCONF.inetd.conf"; \
+ done
+ ginstall -p -m644 "$(FILEDIR)/CSWimap.services" "$(DESTDIR)$(sysconfdir)/pkg/CSWimap/services"
+
+ @$(MAKECOOKIE)
+
+install-libc-client:
ginstall -d $(DESTDIR)$(libdir)
ginstall -p -m644 $(WORKSRC)/c-client/c-client.a $(DESTDIR)$(libdir)
ginstall -p -m755 \
@@ -69,5 +122,5 @@
ginstall -p -m644 $(WORKSRC)/c-client/linkage.c $(DESTDIR)$(includedir)/imap
ginstall -p -m644 \
$(WORKSRC)/src/osdep/tops-20/shortsym.h $(DESTDIR)$(includedir)/imap
- cd $(DESTDIR)$(libdir); ln -s libc-client.$(VERSION).so libc-client.so
+ cd $(DESTDIR)$(libdir); ln -sf libc-client.$(VERSION).so libc-client.so
@$(MAKECOOKIE)
Added: csw/mgar/pkg/imap-c-client/trunk/files/0003-Make-news-active-file-path-opencsw-compliant.patch
===================================================================
--- csw/mgar/pkg/imap-c-client/trunk/files/0003-Make-news-active-file-path-opencsw-compliant.patch (rev 0)
+++ csw/mgar/pkg/imap-c-client/trunk/files/0003-Make-news-active-file-path-opencsw-compliant.patch 2013-04-15 04:54:57 UTC (rev 20710)
@@ -0,0 +1,25 @@
+From cc1c1834c7e3737316bd0ffba9e0cc726a1052b4 Mon Sep 17 00:00:00 2001
+From: Yann Rouillard <yann at pleiades.fr.eu.org>
+Date: Sun, 14 Apr 2013 21:43:34 +0200
+Subject: [PATCH] Make news active file path opencsw compliant
+
+---
+ imap-2007f/src/osdep/unix/Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/imap-2007f/src/osdep/unix/Makefile b/imap-2007f/src/osdep/unix/Makefile
+index fd89c18..77ea0d8 100644
+--- a/imap-2007f/src/osdep/unix/Makefile
++++ b/imap-2007f/src/osdep/unix/Makefile
+@@ -728,7 +728,7 @@ soc: os_sol.h # Solaris with cc
+ $(BUILD) `$(CAT) SPECIALS` OS=sol \
+ SIGTYPE=psx CHECKPW=psx CRXTYPE=nfs \
+ SPOOLDIR=/var/spool MAILSPOOL=/var/mail \
+- ACTIVEFILE=/usr/share/news/active \
++ ACTIVEFILE=/var/opt/csw/news/active \
+ RSHPATH=/usr/bin/rsh \
+ BASECFLAGS="$(CFLAGS)" \
+ BASELDFLAGS="-lsocket -lnsl -lgen" \
+--
+1.8.1.4
+
Added: csw/mgar/pkg/imap-c-client/trunk/files/CSWimap.imap.inetd.conf
===================================================================
--- csw/mgar/pkg/imap-c-client/trunk/files/CSWimap.imap.inetd.conf (rev 0)
+++ csw/mgar/pkg/imap-c-client/trunk/files/CSWimap.imap.inetd.conf 2013-04-15 04:54:57 UTC (rev 20710)
@@ -0,0 +1 @@
+imap stream tcp nowait root /opt/csw/sbin/imapd imapd
Added: csw/mgar/pkg/imap-c-client/trunk/files/CSWimap.imaps.inetd.conf
===================================================================
--- csw/mgar/pkg/imap-c-client/trunk/files/CSWimap.imaps.inetd.conf (rev 0)
+++ csw/mgar/pkg/imap-c-client/trunk/files/CSWimap.imaps.inetd.conf 2013-04-15 04:54:57 UTC (rev 20710)
@@ -0,0 +1 @@
+imaps stream tcp nowait root /opt/csw/sbin/imapd imapd
Added: csw/mgar/pkg/imap-c-client/trunk/files/CSWimap.pop2.inetd.conf
===================================================================
--- csw/mgar/pkg/imap-c-client/trunk/files/CSWimap.pop2.inetd.conf (rev 0)
+++ csw/mgar/pkg/imap-c-client/trunk/files/CSWimap.pop2.inetd.conf 2013-04-15 04:54:57 UTC (rev 20710)
@@ -0,0 +1 @@
+pop2 stream tcp nowait root /opt/csw/sbin/ipop2d ipop2d
Added: csw/mgar/pkg/imap-c-client/trunk/files/CSWimap.pop3.inetd.conf
===================================================================
--- csw/mgar/pkg/imap-c-client/trunk/files/CSWimap.pop3.inetd.conf (rev 0)
+++ csw/mgar/pkg/imap-c-client/trunk/files/CSWimap.pop3.inetd.conf 2013-04-15 04:54:57 UTC (rev 20710)
@@ -0,0 +1 @@
+pop3 stream tcp nowait root /opt/csw/sbin/ipop3d ipop3d
Added: csw/mgar/pkg/imap-c-client/trunk/files/CSWimap.pop3s.inetd.conf
===================================================================
--- csw/mgar/pkg/imap-c-client/trunk/files/CSWimap.pop3s.inetd.conf (rev 0)
+++ csw/mgar/pkg/imap-c-client/trunk/files/CSWimap.pop3s.inetd.conf 2013-04-15 04:54:57 UTC (rev 20710)
@@ -0,0 +1 @@
+pop3s stream tcp nowait root /opt/csw/sbin/ipop3d
Added: csw/mgar/pkg/imap-c-client/trunk/files/CSWimap.services
===================================================================
--- csw/mgar/pkg/imap-c-client/trunk/files/CSWimap.services (rev 0)
+++ csw/mgar/pkg/imap-c-client/trunk/files/CSWimap.services 2013-04-15 04:54:57 UTC (rev 20710)
@@ -0,0 +1,4 @@
+pop2 109/tcp pop-2 # Post Office Protocol - V2
+pop3 110/tcp # Post Office Protocol - Version 3
+imaps 993/tcp # SSL'd version of imap
+pop3s 995/tcp # SSL'd version of pop3
Added: csw/mgar/pkg/imap-c-client/trunk/files/README.CSW
===================================================================
--- csw/mgar/pkg/imap-c-client/trunk/files/README.CSW (rev 0)
+++ csw/mgar/pkg/imap-c-client/trunk/files/README.CSW 2013-04-15 04:54:57 UTC (rev 20710)
@@ -0,0 +1,33 @@
+# # # #
+# # # # # # # # ## #####
+# # # # # # ## ## # # # #
+# # # # # # # ## # # # # #
+# # # # # # # # ###### #####
+# # # # # # # # # # #
+ ##### ## ## # # # # # #
+
+How to install the imap client is to add the following lines to your
+/etc/services and /etc/inetd.conf and restarting inetd.
+
+Lines to add or check for existance in /etc/services:
+imap 143/tcp imap2 # Internet Mail Access Protocol
+imaps 993/tcp # SSL'd version of imap
+pop3s 995/tcp # SSL'd version of pop3
+
+--- that is if you want both the pop and the imap server capability
+
+Lines to add or check for existance in /etc/inetd.conf(or added by postinstall):
+
+# Imap config for imap clients
+imap stream tcp nowait root /opt/csw/sbin/imapd imapd
+imaps stream tcp nowait root /opt/csw/sbin/imapd imapd
+
+# Pop3 config for pop3 clients
+pop stream tcp nowait root /opt/csw/sbin/ipop2d ipop2d
+pop3 stream tcp nowait root /opt/csw/sbin/ipop3d ipop3d
+pop3s stream tcp nowait root /opt/csw/sbin/ipop3d ipop3d
+
+
+Now find your inetd service running and restart it:
+example: pgrep inetd; (take id that returns and kill -HUP $ID)
+or proper way as required for statement find inetd process in /etc/rc*.d scriptsor /etc/init.d/ scripts and restart it that way.
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