summaryrefslogtreecommitdiff
path: root/net/libnss-mysql/Makefile
blob: 2d7118cf4dcaa932cce44e8d1e278a8df988b859 (plain) (blame)
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
# Created by: Clement Laforet <sheepkiller@cultdeadsheep.org>

PORTNAME=	libnss-mysql
PORTVERSION=	1.5
PORTREVISION=	5
CATEGORIES=	net
MASTER_SITES=	SF

MAINTAINER=	vd@FreeBSD.org
COMMENT=	NSS module using a MySQL database for backend

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-mysql=${LOCALBASE}
INSTALL_TARGET=	install-strip
USES=		libtool mysql
USE_LDCONFIG=	yes

post-patch:
	@${REINPLACE_CMD} 's,$${srcdir}/aux/mkinstalldirs,$${mkinstalldirs},' \
		${WRKSRC}/Makefile.in

post-install:
.for f in libnss-mysql.cfg libnss-mysql-root.cfg
	${MV} ${STAGEDIR}${PREFIX}/etc/$f ${STAGEDIR}${PREFIX}/etc/$f.sample
.endfor

.include <bsd.port.mk>