head	1.17;
access;
symbols
	RELEASE_8_3_0:1.16
	RELEASE_9_0_0:1.16
	RELEASE_7_4_0:1.16
	RELEASE_8_2_0:1.16
	RELEASE_6_EOL:1.16
	RELEASE_8_1_0:1.16
	RELEASE_7_3_0:1.16
	RELEASE_8_0_0:1.16
	RELEASE_7_2_0:1.16
	RELEASE_7_1_0:1.16
	RELEASE_6_4_0:1.16
	RELEASE_5_EOL:1.16
	RELEASE_7_0_0:1.16
	RELEASE_6_3_0:1.16
	PRE_XORG_7:1.16
	RELEASE_4_EOL:1.16
	RELEASE_6_2_0:1.16
	RELEASE_6_1_0:1.16
	RELEASE_5_5_0:1.16
	RELEASE_6_0_0:1.16
	old_RELEASE_5_4_0:1.12
	old_RELEASE_4_11_0:1.1;
locks; strict;
comment	@# @;


1.17
date	2012.11.17.06.01.02;	author svnexp;	state Exp;
branches;
next	1.16;

1.16
date	2005.04.26.19.17.32;	author oliver;	state Exp;
branches;
next	1.15;

1.15
date	2005.04.12.03.25.55;	author obrien;	state Exp;
branches;
next	1.14;

1.14
date	2005.04.11.08.03.13;	author obrien;	state Exp;
branches;
next	1.13;

1.13
date	2005.04.02.14.28.05;	author oliver;	state Exp;
branches;
next	1.12;

1.12
date	2005.03.15.19.41.40;	author oliver;	state Exp;
branches;
next	1.11;

1.11
date	2005.03.15.17.13.49;	author oliver;	state Exp;
branches;
next	1.10;

1.10
date	2005.03.12.17.24.14;	author oliver;	state Exp;
branches;
next	1.9;

1.9
date	2005.03.05.14.00.58;	author oliver;	state Exp;
branches;
next	1.8;

1.8
date	2005.03.01.21.02.00;	author oliver;	state Exp;
branches;
next	1.7;

1.7
date	2005.03.01.19.39.52;	author oliver;	state Exp;
branches;
next	1.6;

1.6
date	2005.02.13.13.50.40;	author oliver;	state Exp;
branches;
next	1.5;

1.5
date	2005.02.04.18.44.48;	author oliver;	state Exp;
branches;
next	1.4;

1.4
date	2005.01.31.00.35.48;	author girgen;	state Exp;
branches;
next	1.3;

1.3
date	2005.01.21.06.11.02;	author oliver;	state Exp;
branches;
next	1.2;

1.2
date	2005.01.08.10.25.04;	author oliver;	state Exp;
branches;
next	1.1;

1.1
date	2004.12.19.11.25.27;	author oliver;	state Exp;
branches;
next	;


desc
@@


1.17
log
@Switch exporter over
@
text
@# New ports collection makefile for:	courier-authlib-base
# Date created:				19 Apr 2005
# Whom:					Oliver Lehmann <oliver@@FreeBSD.org>
#
# $FreeBSD: head/security/courier-authlib-base/Makefile 300897 2012-07-14 14:29:18Z beat $
#

PKGNAMESUFFIX=	-base

COMMENT=	Courier authentication library base
CATEGORIES=	security mail

MASTERDIR=	${.CURDIR}/../../security/courier-authlib

.include "${MASTERDIR}/Makefile"
@


1.16
log
@move mail/courier-authlib to security/courier-authlib which is a meta-port now.

Submitted by:		Yarema <yds@@CoolRat.org>
In corporation with:	Jose M Rodriguez <josemi@@freebsd.jazztel.es>, Milan Obuch <ports@@dino.sk>, myself
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.15
log
@At Kris's request, back out the MACHINE_ARCH spelling correction until
after 5.4-RELEASE.
@
text
@d1 3
a3 3
# New ports collection makefile for:	courier-authdaemon
# Date created:				19 Dec 2004
# Whom:					Oliver Lehmann
d8 1
a8 6
PORTNAME=	courier-authlib
PORTVERSION=	0.55
PORTREVISION=	1
CATEGORIES=	mail
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	courier
d10 2
a11 2
MAINTAINER=	oliver@@FreeBSD.org
COMMENT=	Authentication library used by courier ports
d13 1
a13 1
CONFLICTS=	courier-0.*
d15 1
a15 158
USE_BZIP2=	yes
USE_REINPLACE=	yes
USE_PERL5=	yes
GNU_CONFIGURE=	yes
USE_GMAKE=	yes
USE_RC_SUBR=	yes
USE_LIBTOOL_VER=15
USE_LIBLTDL=	yes

#
# options available:
#
# WITH_MAILUSER:		The user running authlib
# WITH_MAILGROUP:		The group running authlib
# WITH_SYSLOG_FACILITY:		The syslogfacility to use
#

OPTIONS=	PAM		"Build with PAM support"		on \
		VPOPMAIL	"Build in vpopmail support"		off \
		MYSQL		"Build in mysql support"		off \
		POSTGRESQL	"Build in postgresql support"		off \
		LDAP		"Build in ldap support with openldap"	off \
		GDBM		"Use gdbm files instead of bdb"		off \
		AUTHUSERDB	"Build with authuserdb"			on \
		MERGECFGS	"Merge new Options into old auth-rc files" on

VPOPMAILDIR?=	${LOCALBASE}/vpopmail
WITH_MAILUSER?=	daemon
WITH_MAILGROUP?=daemon
CONFDIR?=	${PREFIX}/etc
USERDB?=	${PREFIX}/etc/userdb

PLIST_SUB=	CONFDIR=${CONFDIR:S,^${PREFIX}/,,} \

CONFIGURE_ENV=	CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
		CXXFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
		LIBS="${LDFLAGS} -L${LOCALBASE}/lib"

CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS=	--sysconfdir=${CONFDIR} \
		--without-authshadow \
		--without-authcustom \
		--enable-unicode \
		--enable-ltdl-install=no \
		--with-mailuser=${WITH_MAILUSER} \
		--with-mailgroup=${WITH_MAILGROUP} \
		--with-authdaemonvar=/var/run/authdaemond

.include <bsd.port.pre.mk>

.if defined(WITH_SYSLOG_FACILITY)
CONFIGURE_ARGS+=--with-syslog=${WITH_SYSLOG_FACILITY}
.endif

.if defined(WITH_GDBM)
LIB_DEPENDS+=	gdbm.3:${PORTSDIR}/databases/gdbm
CONFIGURE_ARGS+=--with-db=gdbm
.else
CONFIGURE_ARGS+=--with-db=db
.endif

.if !defined(WITH_VPOPMAIL)
CONFIGURE_ARGS+=--without-authvchkpw
PLIST_SUB+=	VPOPMAILFLAG="@@comment "
.else
CONFIGURE_ARGS+=--with-authvchkpw
BUILD_DEPENDS+=	${VPOPMAILDIR}/lib/libvpopmail.a:${PORTSDIR}/mail/vpopmail
PLIST_SUB+=	VPOPMAILFLAG=""
.endif

.if defined(WITH_LDAP)
USE_OPENLDAP=	yes
CONFIGURE_ARGS+=--with-authldap
PLIST_SUB+=	LDAPFLAG=""
.else
CONFIGURE_ARGS+=--without-authldap
PLIST_SUB+=	LDAPFLAG="@@comment "
.endif

.if !defined(WITH_MYSQL)
CONFIGURE_ARGS+=--without-authmysql
PLIST_SUB+=	MYSQLFLAG="@@comment "
.else
USE_MYSQL=	YES
PLIST_SUB+=	MYSQLFLAG=""
CONFIGURE_ARGS+=--with-authmysql \
		--with-mysql-libs=${LOCALBASE}/lib/mysql \
		--with-mysql-includes=${LOCALBASE}/include/mysql
.endif

.if !defined(WITH_POSTGRESQL)
CONFIGURE_ARGS+=--without-authpgsql
PLIST_SUB+=	PGSQLFLAG="@@comment "
.else
USE_PGSQL=	YES
PLIST_SUB+=	PGSQLFLAG=""
.endif

.if !defined(WITHOUT_PAM)
CONFIGURE_ARGS+=--with-authpam
PLIST_SUB+=	PAMFLAG=""
.else
CONFIGURE_ARGS+=--without-authpam
PLIST_SUB+=	PAMFLAG="@@comment "
.endif

.if defined(WITHOUT_AUTHUSERDB)
CONFIGURE_ARGS+=--without-authuserdb
PLIST_SUB+=     AUTHUSERDBFLAG="@@comment "
.else
CONFIGURE_ARGS+=--with-userdb=${USERDB}
PLIST_SUB+=     AUTHUSERDBFLAG=""
.endif

RC_SCRIPTS_SUB=	PREFIX=${PREFIX} RC_SUBR=${RC_SUBR} MAILUSER=${WITH_MAILUSER} MAILGROUP=${WITH_MAILGROUP}

MAN1=		courierlogger.1

MAN3=		authlib.3 auth_generic.3 auth_login.3 auth_getuserinfo.3 \
		auth_enumerate.3 auth_passwd.3 auth_getoption.3 auth_sasl.3

MAN8=		makeuserdb.8 userdb.8 userdbpw.8

EXTRA_DOCS=	AUTHORS COPYING ChangeLog INSTALL NEWS README \
		README.authdebug.html README.authmysql.html \
		README.authmysql.myownquery README.authpostgres.html \
		README.ldap README_authlib.html

post-patch:
	@@${REINPLACE_CMD} -e 's|$$VPOPMAILLIBS|& -lcrypt|g ; \
		s|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/configure
	@@${REINPLACE_CMD} -e 's|%%INSTALL_MAN%%|${INSTALL_MAN}|' \
		${WRKSRC}/Makefile.in ${WRKSRC}/liblog/Makefile.in \
		${WRKSRC}/userdb/Makefile.in
	@@${REINPLACE_CMD} -e 's|DEFAULTOPTIONS=""|DEFAULTOPTIONS="wbnodsn=1"|' \
		${WRKSRC}/authdaemonrc.in
	@@${REINPLACE_CMD} -e 's|conftest.lock|/tmp/courier-authlib.locktest|g' \
		${WRKSRC}/liblock/locktest.c

post-configure:
	@@${RM} -f /tmp/courier-authlib.locktest

post-install:
	${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
		${FILESDIR}/courier-authdaemond.sh > ${WRKDIR}/courier-authdaemond.sh
	${INSTALL_SCRIPT} ${WRKDIR}/courier-authdaemond.sh ${PREFIX}/etc/rc.d/courier-authdaemond.sh
.if defined(WITH_MERGECFGS)
	cd ${WRKSRC} && ( ${GMAKE} install-configure ; cd - )
.endif

.if !defined(NOPORTDOCS)
	@@${MKDIR} ${DOCSDIR}
.for a in ${EXTRA_DOCS}
	${INSTALL_DATA} ${WRKSRC}/${a} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.post.mk>
@


1.14
log
@Assist getting more ports working on AMD64 by obeying the
Ports Collection documentation and use 'ARCH' rather than 'MACHINE_ARCH'.
@
text
@d58 1
a58 1
CONFIGURE_TARGET=	--build=${ARCH}-portbld-freebsd${OSREL}
@


1.13
log
@- Merge sysconfdir and userdb configurable from courier-imap [1]
- Make the port conflicts with mail/courier [1]
- add an option to disable make install-configure to merge new otpions into old cfg files

PR:		ports/79062 [1]
Submitted by:	Jose M Rodriguez <josemi@@freebsd.jazztel.es> [1]
@
text
@d58 1
a58 1
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
@


1.12
log
@- stop  creatng /var/run/authdaemond during the package installation
- create /var/run/authdaemond within the rc.subr Script in case the
  directory doesn't exist.
- Bump PORTREVISION

Suggested By:	brooks
@
text
@d18 2
d43 2
a44 1
		AUTHUSERDB	"Build with authuserdb"			on
d49 4
d59 2
a60 1
CONFIGURE_ARGS=	--without-authshadow \
d130 1
d134 1
a134 1
RC_SCRIPTS_SUB=PREFIX=${PREFIX} RC_SUBR=${RC_SUBR} MAILUSER=${WITH_MAILUSER} MAILGROUP=${WITH_MAILGROUP}
d166 1
d168 1
@


1.11
log
@- change socket and pid location from /usr/local/var/spool/authdaemon/ to /var/run/authdaemond/
- fix default user/group premissions.

PR:		78866
Submitted by:	Artis Caune <Artis.Caune@@latnet.lv>
@
text
@d10 1
a10 1
PORTREVISION=	0
a59 2
PLIST_SUB=	MAILUSER=${WITH_MAILUSER} MAILGROUP=${WITH_MAILGROUP}

d125 1
a125 1
RC_SCRIPTS_SUB=PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
@


1.10
log
@fix building for cases where WRKDIR is a nfs mount
@
text
@d44 2
d55 6
a60 1
		--enable-ltdl-install=no
a126 8
.if defined(WITH_MAILUSER)
CONFIGURE_ARGS+=--with-mailuser=${WITH_MAILUSER}
.endif

.if defined(WITH_MAILGROUP)
CONFIGURE_ARGS+=--with-mailgroup=${WITH_MAILGROUP}
.endif

@


1.9
log
@update to 0.55
migrate to OPTIONS [1]
add WITH_SYSLOG_FACILITY knob [2]

PR:		78362 [1]
Submitted by:	Marcus Grando <marcus@@corp.grupos.com.br> [1]
		Sascha Holzleiter <sascha@@daemonground.de> [2]
@
text
@d150 5
@


1.8
log
@Add BSD master.passwd processing to pw2userdb
Bump PORTREVISION

PR:		ports/78163
Submitted by:	Jose M Rodriguez <josemi@@freebsd.jazztel.es>
@
text
@d9 2
a10 2
PORTVERSION=	0.54
PORTREVISION=	2
a29 6
# WITHOUT_PAM:			Don't build in PAM support
# WITH_VPOPMAIL:		Build in vpopmail support
# WITH_MYSQL:			Build in mysql support
# WITH_POSTGRESQL:		Build in postgresql support
# WITH_LDAP:			Build in ldap support with openldap
# WITH_GDBM:			Use gdbm files instead of bdb
d32 1
a32 1
# WITHOUT_AUTHUSERDB:		Don't build in authuserdb
d35 8
d55 6
d63 1
a63 1
CONFIGURE_ARGS+=	--with-db=gdbm
d65 1
a65 1
CONFIGURE_ARGS+=	--with-db=db
a127 3

.include <bsd.port.pre.mk>

@


1.7
log
@- fix Makefile [1]
- Bump PORTREVISION
- create and remove PREFIX/var/spool/authdaemon on (de)installation [2]

PR:		ports/78613 [1] - partly
Submitted by:	Jose M Rodriguez <josemi@@freebsd.jazztel.es> [1]
Noted by:	Gustavo A. Baratto <gbaratto@@superb.net> [2]
@
text
@d10 1
a10 1
PORTREVISION=	1
@


1.6
log
@update to 0.54
@
text
@d10 1
d122 1
a122 1
++ pkg-plist   Fri Feb  4 02:29:24 2005
@


1.5
log
@VPOPMAILDIR?=   ${LOCALBASE}/vpopmail

update to 0.53
new knobs: WITH_MAILUSER WITH_MAILGROUP WITHOUT_AUTHUSERDB

Submitted by:	"Gustavo A. Baratto" <gbaratto@@superb.net>
@
text
@d9 1
a9 1
PORTVERSION=	0.53
@


1.4
log
@Split the postgresql ports into a server and a client part.

All ports depending on postgresql shall use the USE_PGSQL=yes knob
defined in Mk/bsd.ports.mk. Bumping portrevisions where needed.

PR:		75344
Approved by:	portmgr@@ (kris), ade & sean (mentors)
@
text
@d9 1
a9 1
PORTVERSION=	0.52
d35 3
d104 16
d121 1
a121 1

@


1.3
log
@don't sed ${WRKSRC}/Makefile.in twice

Noted By:	Atanas <atanas@@aplus.net>
@
text
@d89 1
a89 2
POSTGRESQL_PORT?=	databases/postgresql7
LIB_DEPENDS+=	pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
@


1.2
log
@upadate to courier-authlib 0.52, courier-imap 4.0.1 and sqwebmail 5.0.0

Special thanks for testing and sugestions to:	Brian Candler <B.Candler@@pobox.com>
@
text
@d122 2
a123 2
		${WRKSRC}/Makefile.in ${WRKSRC}/Makefile.in \
		${WRKSRC}/liblog/Makefile.in ${WRKSRC}/userdb/Makefile.in
@


1.1
log
@Add courier-authlib

<quote>
Copies of this library code used to exist in other tarballs: Courier,
Courier-IMAP, and SqWebMail. Building and installing any of these packages
would've automatically installed this authentication code.

The authentication library is now a separate, standalone package. This
authentication library must now be installed, separately, before upgrading
to the following builds (or if installing them for the first time):
Courier 0.48, Courier-IMAP 4.0, and SqWebMail 5.0. See NEWS for more information.
</quote>

http://www.courier-mta.org/authlib/
@
text
@d9 1
a9 1
PORTVERSION=	0.51
d11 2
a12 1
MASTER_SITES=	http://www.courier-mta.org/beta/courier-authlib/
d45 1
d113 4
a116 1
EXTRA_DOCS=	README INSTALL AUTHORS ChangeLog
d124 2
@

