###
### Sat Feb 7 01:38:09 EST 2004:
### bmake bulk-package for mailsync-4.3.2
### Current pkg count:  5 installed packages: digest-20021220 mailserv-3.29 patch-2.5.4nb2 perl-5.6.1nb10 xpkgwedge-1.9
###
BULK> Full rebuild in progress...
BULK> Cleaning package and its depends
===> Cleaning for mailsync-4.3.2
===> Cleaning for imap-uw-2002.5nb2
===> Cleaning for openssl-0.9.6l
===> Cleaning for perl-5.6.1nb10
===> Cleaning for patch-2.5.4nb2
===> Cleaning for libtool-base-1.4.20010614nb19
===> Cleaning for gmake-3.80nb2
===> Cleaning for pkg_install-info-4.5nb2
===> Cleaning for gettext-lib-0.11.5nb2
===> Cleaning for libiconv-1.9.1nb1
BULK> Removing installed packages which are not needed to build mailsync-4.3.2
BULK> Keeping BULK_PREREQ: xpkgwedge-1.9 (pkgtools/xpkgwedge)
BULK> Keeping BULK_PREREQ: digest-20021220 (pkgtools/digest)
BULK> mailsync-4.3.2 requires installed package perl-5.6.1nb10 (lang/perl5) to build.
/usr/pkg/sbin/pkg_delete -K /var/db/pkg -r mailserv-3.29
BULK> mailsync-4.3.2 requires installed package patch-2.5.4nb2 (devel/patch) to build.
BULK> Installing packages which are required to build mailsync-4.3.2.
BULK> /usr/pkg/sbin/pkg_add -K /var/db/pkg  /packages/SunOS/5.9/sparc/All/imap-uw-2002.5nb2.tgz

===> Installing configuration/support files for openssl-0.9.6l

	/usr/pkg/etc/openssl/openssl.cnf

===========================================================================
You may wish to customize the following files for openssl-0.9.6l:

	/usr/pkg/etc/openssl/openssl.cnf
===========================================================================

===========================================================================
$NetBSD: MESSAGE,v 1.5 2003/09/22 03:13:58 grant Exp $

If upgrading from SSLeay, you will need to copy your ssleay.cnf (used for
creating certificate requests with "ca") into
/usr/pkg/etc/openssl/openssl.cnf.

If installing from scratch, you may want to take a look
at /usr/pkg/share/examples/openssl/openssl.cnf copy it
to /usr/pkg/etc/openssl/openssl.cnf, and customize it.

===========================================================================


===========================================================================
$NetBSD: MESSAGE,v 1.2 2003/09/16 19:16:44 jmmv Exp $

Add the following to /etc/services (if not already there):

 imap		143/tcp		# Internet Message Access Protocol
 imap		143/udp
 imaps		993/tcp		# imap4 protocol over TLS/SSL
 imaps		993/udp		# imap4 protocol over TLS/SSL
 pop3s		995/tcp		# pop3 protocol over TLS/SSL (was spop3)
 pop3s		995/udp		# pop3 protocol over TLS/SSL (was spop3)

Add the following to /etc/inetd.conf:

 imap   stream  tcp     nowait  root    /usr/pkg/libexec/imapd    imapd
 imaps  stream  tcp     nowait  root    /usr/pkg/libexec/imapd    imapd
 pop2   stream  tcp     nowait  root    /usr/pkg/libexec/ipop2d   ipop2d
 pop3   stream  tcp     nowait  root    /usr/pkg/libexec/ipop3d   ipop3d
 pop3s  stream  tcp     nowait  root    /usr/pkg/libexec/ipop3d   ipop3d

In order to use SSL, you will need to configure a certificate and store it
in the /usr/pkg/etc/openssl/certs directory, using the imapd.pem name.
If you want to use an existing certificate, say from Apache, just copy it
there (you may need to concatenate .key and .crt files together).

To put the changes into effect, make inetd reload its configuration:
On NetBSD 1.5 or later:
	/etc/rc.d/inetd reload
on earlier NetBSD releases:
	kill -HUP `cat /var/run/inetd.pid`

===========================================================================

BULK> Required package openssl-0.9.6l (security/openssl) is already installed
BULK> Required package perl-5.6.1nb10 (lang/perl5) is already installed
BULK> Required package patch-2.5.4nb2 (devel/patch) is already installed
BULK> /usr/pkg/sbin/pkg_add -K /var/db/pkg  /packages/SunOS/5.9/sparc/All/libtool-base-1.4.20010614nb19.tgz
BULK> /usr/pkg/sbin/pkg_add -K /var/db/pkg  /packages/SunOS/5.9/sparc/All/gmake-3.80nb2.tgz

===> Installing configuration/support files for libiconv-1.9.1nb1

	/usr/pkg/lib/charset.alias
BULK> Required package pkg_install-info-4.5nb2 (pkgtools/pkg_install-info) is already installed
BULK> Required package gettext-lib-0.11.5nb2 (devel/gettext-lib) is already installed
BULK> Required package libiconv-1.9.1nb1 (converters/libiconv) is already installed
BULK> Required package xpkgwedge-1.9 (pkgtools/xpkgwedge) is already installed
BULK> Required package digest-20021220 (pkgtools/digest) is already installed
bmake package (mailsync-4.3.2)
===> Checking for vulnerabilities in mailsync-4.3.2
=> Checksum OK for mailsync_4.3-2.tar.gz.
work.sol9 -> /work/pkgbuild/mail/mailsync/work.sol9
===> Extracting for mailsync-4.3.2
===> Required installed package imap-uw-[0-9]*: imap-uw-2002.5nb2 found
===> Required installed package gmake>=3.78: gmake-3.80nb2 found
===> Required installed package patch>=2.2: patch-2.5.4nb2 found
===> Patching for mailsync-4.3.2
===> Applying pkgsrc patches for mailsync-4.3.2
===> Overriding tools for mailsync-4.3.2
===> Configuring for mailsync-4.3.2
===> Building for mailsync-4.3.2
g++ -O -Wall -I/usr/pkg/include/c-client     -c -o mailsync.o mailsync.c
gmake: g++: Command not found
gmake: *** [mailsync.o] Error 127
*** Error code 2

Stop.
bmake: stopped in /usr/pkgsrc/mail/mailsync
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/mail/mailsync
BULK> mailsync-4.3.2 was marked as broken:
-rw-r--r--   1 root     other       5413 Feb  7 01:38 .broken.html
bmake deinstall
===> Deinstalling for mailsync
BULK> Marking all packages which depend upon mailsync-4.3.2 as broken:
BULK> Build for mailsync-4.3.2 was not successful, aborting.