summaryrefslogtreecommitdiff
path: root/security/google-authenticator/Makefile
blob: 27ff847b84e88636b818e2636562ddf880a49412 (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
# $NetBSD: Makefile,v 1.3 2012/10/23 18:16:29 asau Exp $

DISTNAME=	libpam-google-authenticator-1.0-source
PKGNAME=	${DISTNAME:S/libpam-//:S/-source//}
CATEGORIES=	security
MASTER_SITES=	http://google-authenticator.googlecode.com/files/
EXTRACT_SUFX=	.tar.bz2

HOMEPAGE=	http://code.google.com/p/google-authenticator/
MAINTAINER=	jmmv@NetBSD.org
COMMENT=	One-time password generator and PAM module from Google

LICENSE=	apache-2.0

USE_TOOLS=		gmake

CFLAGS+=	-DNO_STATIC_MODULES
WRKSRC=		${WRKDIR}/${DISTNAME:S/-source//}

INSTALLATION_DIRS=	bin lib/security share/doc/google-authenticator

do-install:
	cd ${WRKSRC} && ${INSTALL_PROGRAM} google-authenticator \
	    ${DESTDIR}${PREFIX}/bin
	cd ${WRKSRC} && ${INSTALL_LIB} pam_google_authenticator.so \
	    ${DESTDIR}${PREFIX}/lib/security
	cd ${WRKSRC} && ${INSTALL_DATA} README \
	    ${DESTDIR}${PREFIX}/share/doc/google-authenticator

.include "../../mk/pam.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"