| @@ -1,31 +1,32 @@ | | | @@ -1,31 +1,32 @@ |
1 | # $NetBSD: Makefile,v 1.1.1.1 2012/05/07 00:01:48 jmmv Exp $ | | 1 | # $NetBSD: Makefile,v 1.2 2012/08/11 17:09:43 jmmv Exp $ |
2 | | | 2 | |
3 | DISTNAME= google-authenticator-0.0.20120506 | | 3 | DISTNAME= libpam-google-authenticator-1.0-source |
| | | 4 | PKGNAME= ${DISTNAME:S/libpam-//:S/-source//} |
4 | CATEGORIES= security | | 5 | CATEGORIES= security |
5 | MASTER_SITES= ftp://ftp.NetBSD.org/pub/NetBSD/misc/jmmv/google-authenticator/ | | 6 | MASTER_SITES= http://google-authenticator.googlecode.com/files/ |
| | | 7 | EXTRACT_SUFX= .tar.bz2 |
6 | | | 8 | |
7 | HOMEPAGE= http://code.google.com/p/google-authenticator/ | | 9 | HOMEPAGE= http://code.google.com/p/google-authenticator/ |
8 | MAINTAINER= jmmv@NetBSD.org | | 10 | MAINTAINER= jmmv@NetBSD.org |
9 | COMMENT= One-time password generator and PAM module from Google | | 11 | COMMENT= One-time password generator and PAM module from Google |
10 | | | 12 | |
11 | LICENSE= apache-2.0 | | 13 | LICENSE= apache-2.0 |
12 | | | 14 | |
13 | PKG_DESTDIR_SUPPORT= user-destdir | | 15 | PKG_DESTDIR_SUPPORT= user-destdir |
14 | USE_TOOLS= gmake | | 16 | USE_TOOLS= gmake |
15 | | | 17 | |
16 | BUILD_TARGET= google-authenticator pam_google_authenticator.so | | | |
17 | CFLAGS+= -DNO_STATIC_MODULES | | 18 | CFLAGS+= -DNO_STATIC_MODULES |
18 | WRKSRC= ${WRKDIR}/google-authenticator/libpam | | 19 | WRKSRC= ${WRKDIR}/${DISTNAME:S/-source//} |
19 | | | 20 | |
20 | INSTALLATION_DIRS= bin lib/security share/doc/google-authenticator | | 21 | INSTALLATION_DIRS= bin lib/security share/doc/google-authenticator |
21 | | | 22 | |
22 | do-install: | | 23 | do-install: |
23 | cd ${WRKSRC} && ${INSTALL_PROGRAM} google-authenticator \ | | 24 | cd ${WRKSRC} && ${INSTALL_PROGRAM} google-authenticator \ |
24 | ${DESTDIR}${PREFIX}/bin | | 25 | ${DESTDIR}${PREFIX}/bin |
25 | cd ${WRKSRC} && ${INSTALL_LIB} pam_google_authenticator.so \ | | 26 | cd ${WRKSRC} && ${INSTALL_LIB} pam_google_authenticator.so \ |
26 | ${DESTDIR}${PREFIX}/lib/security | | 27 | ${DESTDIR}${PREFIX}/lib/security |
27 | cd ${WRKSRC} && ${INSTALL_DATA} README \ | | 28 | cd ${WRKSRC} && ${INSTALL_DATA} README \ |
28 | ${DESTDIR}${PREFIX}/share/doc/google-authenticator | | 29 | ${DESTDIR}${PREFIX}/share/doc/google-authenticator |
29 | | | 30 | |
30 | .include "../../mk/pam.buildlink3.mk" | | 31 | .include "../../mk/pam.buildlink3.mk" |
31 | .include "../../mk/bsd.pkg.mk" | | 32 | .include "../../mk/bsd.pkg.mk" |