summaryrefslogtreecommitdiff
path: root/security/pam-mysql/Makefile
blob: cd2fd0e47540b6b7c1f0634b034ff9ddfa01cf8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Created by: Anders Nordby <anders@fix.no>
# $FreeBSD$

PORTNAME=	pam_mysql
PORTVERSION=	0.7.r1
PORTREVISION=	6
CATEGORIES=	security databases
MASTER_SITES=	SF/pam-mysql/pam-mysql/0.7RC1
DISTNAME=	${PORTNAME}-0.7RC1${DISTVERSIONSUFFIX}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Pam module for authenticating with MySQL

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/COPYING

USES=		compiler:c11 libtool:keepla
USE_MYSQL=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-mysql=${LOCALBASE} \
		--with-pam-mods-dir=${PREFIX}/lib \
		--with-pam=/usr

SUB_FILES=	pkg-message

PORTDOCS=	*
PLIST_FILES=	lib/pam_mysql.so lib/pam_mysql.la

OPTIONS_DEFINE= DOCS SSL
SSL_DESC=	Build with OpenSSL support (non-crypt()ish MD5 hash)
SSL_CONFIGURE_WITH= openssl

post-install:
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/pam_mysql.so

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/ChangeLog ${WRKSRC}/NEWS \
		${WRKSRC}/README ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>