head	1.25;
access;
symbols
	RELEASE_8_3_0:1.22
	RELEASE_9_0_0:1.19
	RELEASE_7_4_0:1.17
	RELEASE_8_2_0:1.17
	RELEASE_6_EOL:1.17
	RELEASE_8_1_0:1.17
	RELEASE_7_3_0:1.16
	RELEASE_8_0_0:1.16
	RELEASE_7_2_0:1.14
	RELEASE_7_1_0:1.14
	RELEASE_6_4_0:1.14
	RELEASE_5_EOL:1.14
	RELEASE_7_0_0:1.14
	RELEASE_6_3_0:1.14
	PRE_XORG_7:1.14
	RELEASE_4_EOL:1.14
	RELEASE_6_2_0:1.14
	RELEASE_6_1_0:1.9
	RELEASE_5_5_0:1.9
	RELEASE_6_0_0:1.7
	RELEASE_5_4_0:1.6
	RELEASE_4_11_0:1.6
	RELEASE_5_3_0:1.6
	RELEASE_4_10_0:1.6
	RELEASE_5_2_1:1.6
	RELEASE_5_2_0:1.6
	RELEASE_4_9_0:1.5
	RELEASE_5_1_0:1.4
	RELEASE_4_8_0:1.4
	RELEASE_5_0_0:1.3
	RELEASE_4_7_0:1.3
	RELEASE_4_6_2:1.2
	RELEASE_4_6_1:1.2
	RELEASE_4_6_0:1.2;
locks; strict;
comment	@# @;


1.25
date	2012.11.17.06.02.40;	author svnexp;	state Exp;
branches;
next	1.24;

1.24
date	2012.09.22.21.15.50;	author ohauer;	state Exp;
branches;
next	1.23;

1.23
date	2012.08.18.14.29.08;	author ohauer;	state Exp;
branches;
next	1.22;

1.22
date	2012.03.01.03.05.33;	author pgollucci;	state Exp;
branches;
next	1.21;

1.21
date	2012.01.02.04.39.12;	author tabthorpe;	state Exp;
branches;
next	1.20;

1.20
date	2012.01.01.16.47.37;	author ohauer;	state Exp;
branches;
next	1.19;

1.19
date	2011.08.20.17.27.39;	author ohauer;	state Exp;
branches;
next	1.18;

1.18
date	2011.03.19.13.15.32;	author ale;	state Exp;
branches;
next	1.17;

1.17
date	2010.06.06.04.48.05;	author pgollucci;	state Exp;
branches;
next	1.16;

1.16
date	2009.08.22.00.38.13;	author amdmi3;	state Exp;
branches;
next	1.15;

1.15
date	2009.05.21.20.45.26;	author pgollucci;	state Exp;
branches;
next	1.14;

1.14
date	2006.05.15.13.26.01;	author mbr;	state Exp;
branches;
next	1.13;

1.13
date	2006.05.13.04.41.14;	author edwin;	state Exp;
branches;
next	1.12;

1.12
date	2006.04.17.20.55.37;	author linimon;	state Exp;
branches;
next	1.11;

1.11
date	2006.04.15.13.20.59;	author mbr;	state Exp;
branches;
next	1.10;

1.10
date	2006.04.15.06.26.48;	author linimon;	state Exp;
branches;
next	1.9;

1.9
date	2005.12.04.00.18.11;	author clement;	state Exp;
branches;
next	1.8;

1.8
date	2005.11.26.14.08.51;	author flz;	state Exp;
branches;
next	1.7;

1.7
date	2005.04.05.08.23.53;	author mbr;	state Exp;
branches;
next	1.6;

1.6
date	2003.11.07.09.12.50;	author marcus;	state Exp;
branches;
next	1.5;

1.5
date	2003.06.30.09.35.27;	author mbr;	state Exp;
branches;
next	1.4;

1.4
date	2003.03.07.06.12.41;	author ade;	state Exp;
branches;
next	1.3;

1.3
date	2002.09.11.12.51.34;	author mbr;	state Exp;
branches;
next	1.2;

1.2
date	2002.05.22.15.50.34;	author mbr;	state Exp;
branches;
next	1.1;

1.1
date	2002.04.27.13.53.27;	author mbr;	state Exp;
branches;
next	;


desc
@@


1.25
log
@Switch exporter over
@
text
@# Created by: mbr@@freebsd.org
# $FreeBSD: head/www/mod_auth_mysql_another/Makefile 304723 2012-09-22 21:15:50Z ohauer $

PORTNAME=	mod_auth_mysql
PORTVERSION=	3.0.0
PORTREVISION=	4
CATEGORIES=	www
MASTER_SITES=	SF/modauthmysql/modauthmysql/${PORTVERSION}
PKGNAMESUFFIX=	_another

MAINTAINER=	apache@@FreeBSD.org
COMMENT=	Allows users to use MySQL databases for user authentication

MAKE_JOBS_SAFE=	yes

USE_MYSQL=	yes
USE_APACHE=	22

SHORTMODNAME=	mysql_auth
AP_FAST_BUILD=	yes
AP_GENPLIST=	yes
AP_INC=	${LOCALBASE}/include/mysql
AP_LIB=	${LOCALBASE}/lib/mysql
AP_EXTRAS=	-lmysqlclient -lz -lm
AP_EXTRAS+=	-DAPACHE2

.include <bsd.port.pre.mk>

post-patch:
	${REINPLACE_CMD} -e "s|APR_XtOffsetOf|APR_OFFSETOF|g" \
		-e "s|APR_XtOffset|APR_OFFSET|g" ${WRKSRC}/mod_auth_mysql.c

.if !defined(NOPORTDOCS)
post-build:
	@@${ECHO} "%%PORTDOCS%%%%DOCSDIR%%/CONFIGURE" >> ${PLIST}
	@@${ECHO} "%%PORTDOCS%%%%DOCSDIR%%/CHANGES" >> ${PLIST}
	@@${ECHO} "%%PORTDOCS%%@@dirrm %%DOCSDIR%%" >> ${PLIST}

post-install:
	@@${MKDIR} ${DOCSDIR}
	@@${INSTALL_DATA} ${WRKSRC}/CONFIGURE ${DOCSDIR}
	@@${INSTALL_DATA} ${WRKSRC}/CHANGES ${DOCSDIR}
.endif

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


1.24
log
@SVN rev 304723 on 2012-09-22 21:15:50Z by ohauer

- USE_APACHE= s/22+/22/
- adopt new Makefile header

Port build fails on local exp-run with apache24 with
 error: 'conn_rec' has no member named 'remote_ip'

or various other apache22 specific functions/parameters

with hat apache@@
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.23
log
@SVN rev 302724 on 2012-08-18 14:29:08Z by ohauer

- remove www/apache20 and devel/apr0
- s/USE_APACHE= 20+/USE_APACHE= 22+/
- unify s/YES/yes/
- cleanup APACHE_VERSION <= 22 usage
- add entry to MOVED

with hat apache@@
@
text
@d1 1
a1 4
# New ports collection makefile for:    apache mod_auth_mysql_another
# Date created:		2002/04/20
# Whom:			mbr@@freebsd.org
#
d17 1
a17 1
USE_APACHE=	22+
@


1.22
log
@- Over to apache@@
@
text
@d19 2
a20 2
USE_MYSQL=	YES
USE_APACHE=	20+
d23 2
a24 2
AP_FAST_BUILD=	YES
AP_GENPLIST=	YES
@


1.21
log
@- Reassign to the heap
@
text
@d14 1
a14 1
MAINTAINER=	ports@@FreeBSD.org
@


1.20
log
@- change required APACHE version from 13+ to 20+
  (prepare to remove www/apache13)

- no PORTREVISION bump since apache22 is the default

with hat apache@@
@
text
@d14 1
a14 1
MAINTAINER=	mbr@@FreeBSD.org
@


1.19
log
@ - bump PORTREVISION from ports if USE_APACHE=13+ or 20+ is defined
@
text
@d20 1
a20 1
USE_APACHE=	13+
d28 1
a31 5
.if ${APACHE_VERSION} > 20
AP_EXTRAS+=	-DAPACHE2
.endif

.if ${APACHE_VERSION} > 20
a34 6
.else
pre-build:
	${CP} ${FILESDIR}/Makefile ${WRKSRC}/Makefile
	${REINPLACE_CMD} -e "s|%%APXS%%|${APXS}|g" \
	-e "s|%%AP_INC%%|${AP_INC}|g" -e "s|%%AP_LIB%%|${AP_LIB}|g" ${WRKSRC}/Makefile
.endif
@


1.18
log
@Bump PORTREVISION for ports linking to default libmysqlclient.
@
text
@d9 1
a9 1
PORTREVISION=	3
@


1.17
log
@- WITH_APACHE2 is dead

PR:             ports/146899
Submitted by:   pgollucci@@ (myself)
Approved by:    maintainer timeout (mbr; 14 days)
@
text
@d9 1
a9 1
PORTREVISION=	2
@


1.16
log
@- Switch SourceForge ports to the new File Release System: categories starting with W
@
text
@d17 1
a17 1
MAKE_JOBS_SAFE=  yes
d20 1
d22 5
a26 6
SHORTMODNAME=   mysql_auth
AP_FAST_BUILD=  YES
AP_GENPLIST=    YES
AP_INC=		${LOCALBASE}/include/mysql
AP_LIB=		${LOCALBASE}/lib/mysql
.if defined(WITH_APACHE2)
a27 5
USE_APACHE=     20+
.else
USE_APACHE=     13+
AP_EXTRAS=	-DAPACHE${AP_VER} -lmysqlclient -lz -lm
.endif
d31 5
a35 1
.if defined(WITH_APACHE2)
@


1.15
log
@- Mark remaining mod_* ports MAKE_JOBS_SAFE=yes

PR:             ports/134611
Approved by:    pav (#bsdports)
@
text
@d11 1
a11 2
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME:S/_//g}
@


1.14
log
@Bump port revision after the last fix for apache2
@
text
@d18 2
@


1.13
log
@Remove USE_REINPLACE from categories starting with W
@
text
@d9 1
a9 1
PORTREVISION=	1
@


1.12
log
@Restore mbr as maintainer at his request.  It seems I lost his mail replying
to my request for status.

Hat:		portmgr
Pointy hat:	linimon
@
text
@a18 1
USE_REINPLACE=  YES
@


1.11
log
@Unbreak for apxs 1.2+ and apache 2+
Build for apache1.3 too.
Remove package list, we autobuild it.
@
text
@d15 1
a15 1
MAINTAINER=	ports@@FreeBSD.org
@


1.10
log
@Reset mbr due to no answer to an email inquiry about his status, and
maintainer-timeouts.

Hat:	portmgr
@
text
@d9 1
d19 1
d21 3
a23 3
SHORTMODNAME=	mysql_auth
AP_FAST_BUILD=	YES
AP_GENPLIST=	YES
d26 5
d32 1
d36 11
a58 1
.include "${PORTSDIR}/www/apache20/Makefile.modules.3rd"
@


1.9
log
@- prepare removal of www/apache2 in favor of www/apache20 for naming
  consistency
- add entries in UPDATING (for apache22 too)

PR:		ports/78119
Repocopied by:	marcus
@
text
@d14 1
a14 1
MAINTAINER=	mbr@@FreeBSD.org
@


1.8
log
@- Update to 3.0.0.

PR:		ports/88795
Submitted by:	Ilya Pizik <polzun@@scar.jinr.ru>
Approved by:	maintainer timeout (2 weeks)
@
text
@d40 1
a40 1
.include "${PORTSDIR}/www/apache2/Makefile.modules.3rd"
@


1.7
log
@Upgrade to 2.9.0, remove obsoleted patches.

PR:		74686
Submitted by:	ports@@c0decafe.net
@
text
@d8 1
a8 1
PORTVERSION=	2.9.0
d30 2
a31 1
	@@${ECHO} "%%PORTDOCS%%%%DOCSDIR%%/README" >> ${PLIST}
d36 2
a37 1
	@@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
@


1.6
log
@Use the new Apache bits from bsd.port.mk.

Submitted by:	dinoex
@
text
@d7 2
a8 2
PORTNAME=	mod_auth_mysql_another
PORTVERSION=	2.0
d11 2
a12 3
MASTER_SITE_SUBDIR=	modauthmysql
DISTNAME=       mod_auth_mysql
EXTRACT_SUFX=	.tgz
d17 1
a17 1
.include <bsd.port.pre.mk>
d19 6
a24 9
.if exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.10)
LIB_DEPENDS=   mysqlclient.10:${PORTSDIR}/databases/mysql323-client
.else
.if exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.14)
LIB_DEPENDS=   mysqlclient.14:${PORTSDIR}/databases/mysql41-client
.else
LIB_DEPENDS=   mysqlclient.12:${PORTSDIR}/databases/mysql40-client
.endif
.endif
d26 1
a26 3
.if exists(${LOCALBASE}/include/apache2/apr.h)
WITH_APACHE2=	yes
.endif
d28 4
a31 12
.if defined(WITH_APACHE2)
APACHE_VER=	APACHE2
PLIST_SUB=	VER="2"
DSO=		mod_auth_mysql.la
.else
APACHE_VER=	APACHE1
PLIST_SUB=	VER=""
DSO=		mod_auth_mysql.so
.endif

BUILD_DEPENDS=	${APXS}:${PORTSDIR}/${APACHE_PORT}
RUN_DEPENDS=	${APXS}:${PORTSDIR}/${APACHE_PORT}
a32 5
post-patch:
	@@${SED} 's|%%LOCALBASE%%|${LOCALBASE}|g;s|%%APXS%%|${APXS}|g;s|%%APACHE_VER%%|${APACHE_VER}|g;s|%%DSO%%|${DSO}|g' \
		${WRKDIR}/mod_auth_mysql/Makefile.orig > ${WRKDIR}/mod_auth_mysql/Makefile

.if !defined(NOPORTDOCS)
d38 1
@


1.5
log
@Update to 2.0. Include Apache 2 support.

PR:		52436
Submitted by:	Alex Dupre <sysadmin@@alexdupre.com>
@
text
@a33 2
APXS=		${LOCALBASE}/sbin/apxs

a34 1
APACHE_PORT=	${PORTSDIR}/www/apache2
a38 1
APACHE_PORT=	${PORTSDIR}/www/apache13
d44 2
a45 2
BUILD_DEPENDS=	${APXS}:${APACHE_PORT}
RUN_DEPENDS=	${APXS}:${APACHE_PORT}
@


1.4
log
@Clear moonlight beckons.
Requiem mors pacem pkg-comment,
And be calm ports tree.

E Nomini Patri, E Fili, E Spiritu Sancti.
@
text
@d8 1
a8 1
PORTVERSION=	1.0
d10 2
a11 1
MASTER_SITES=	ftp://ftp.kcilink.com/pub/
d13 1
a13 1
EXTRACT_SUFX=	.c.gz
a17 4
BUILD_DEPENDS=	${PREFIX}/sbin/apxs:${PORTSDIR}/www/${AP_PORT}
LIB_DEPENDS=	mysqlclient.10:${PORTSDIR}/databases/mysql323-client
RUN_DEPENDS=	${PREFIX}/sbin/${AP_TARGET}:${PORTSDIR}/www/${AP_PORT}

d20 7
a26 5
APXS=		${PREFIX}/sbin/apxs

AP_PORT?=	apache13
.if exists(${APXS})
APXS_WORKS!=	${APXS} -q TARGET 2>/dev/null || echo no
a27 10
.if exists(${APXS}) && ${APXS_WORKS} != no
AP_TARGET!=	${APXS} -q TARGET
AP_SYSCONF!=	${APXS} -q SYSCONFDIR
AP_INCLUDE!=	${APXS} -q INCLUDEDIR
AP_LIBEXEC!=	${APXS} -q LIBEXECDIR
.else
AP_TARGET?=	httpd
AP_SYSCONF?=	${PREFIX}/etc/apache
AP_INCLUDE?=	${PREFIX}/include/apache
AP_LIBEXEC?=	${PREFIX}/libexec/apache
d30 3
a32 1
AUTH_MYSQL_DOCS= apache/manual/mod/mod_auth_mysql_another
d34 1
a34 1
PLIST_SUB=	AUTH_MYSQL_DOCS="${AUTH_MYSQL_DOCS}"
d36 11
a46 1
PKGMESSAGE=	${WRKSRC}/.install_notes
d48 2
a49 13
do-extract:
	@@${RM} -rf ${WRKDIR}
	@@${MKDIR} -p ${WRKDIR}/mod_auth_mysql
	@@for file in ${EXTRACT_ONLY}; do \
		${CP} ${_DISTDIR}/$$file ${WRKDIR}/mod_auth_mysql; \
		${EXTRACT_CMD} -d ${WRKDIR}/mod_auth_mysql/$$file; \
	done
.if !defined(EXTRACT_PRESERVE_OWNERSHIP)
	@@if [ `id -u` = 0 ]; then \
		${CHMOD} -R ug-s ${WRKDIR}; \
		${CHOWN} -R 0:0 ${WRKDIR}; \
	fi
.endif
d52 2
a53 6
	@@${CP} ${WRKDIR}/mod_auth_mysql/Makefile ${WRKDIR}/mod_auth_mysql/Makefile.new
	@@(${SED} -e 's|%%PREFIX%%|${PREFIX}|g' | \
	    ${SED} -e 's|%%APXS%%|${APXS}|g' | \
	    ${SED} -e 's|%%APXSFLAGS%%|${APXSFLAGS}|g') \
	    < ${WRKDIR}/mod_auth_mysql/Makefile.new \
	    > ${WRKDIR}/mod_auth_mysql/Makefile
d55 1
d57 2
a58 4
.if !defined(NOPORTDOCS)
	@@${MKDIR} ${PREFIX}/share/doc/${AUTH_MYSQL_DOCS}
	@@${INSTALL_DATA} ${FILESDIR}/USAGE ${PREFIX}/share/doc/${AUTH_MYSQL_DOCS}
	@@@@(cd ${PREFIX}/share/doc && ${LN} -sf ${PREFIX}/share/doc/${AUTH_MYSQL_DOCS} mod_auth_mysql_another)
@


1.3
log
@Unbreak port on stable. Apxs was hardcoded in the Makefile.
@
text
@d15 1
@


1.2
log
@Change LOCALBASE to PREFIX, and set -rpath, so the module can be installed
into PREFIX without setting LD_LIBRARY_PATH.
@
text
@d62 4
a65 1
	@@${SED} -e 's|%%PREFIX%%|${PREFIX}|g' < ${WRKDIR}/mod_auth_mysql/Makefile.new \
@


1.1
log
@Another version of mod_auth_mysql which works ok with more than one
Database too.
@
text
@d16 1
a16 1
BUILD_DEPENDS=	${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/${AP_PORT}
d18 1
a18 1
RUN_DEPENDS=	${LOCALBASE}/sbin/${AP_TARGET}:${PORTSDIR}/www/${AP_PORT}
d22 1
a22 1
APXS=		${LOCALBASE}/sbin/apxs
d59 5
@

