2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
6 include $(TOPDIR
)/rules.mk
7 PKG_NAME
:=google-authenticator-libpam
8 PKG_SOURCE_DATE
:=2019-01-03
11 PKG_SOURCE_VERSION
:=60207b6c4cebf825863043e963bf67f6a0520076
12 PKG_SOURCE_URL
:=https
://codeload.github.com
/google
/google-authenticator-libpam
/tar.gz
/$(PKG_SOURCE_VERSION
)?
13 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_SOURCE_DATE
).
tar.gz
14 PKG_HASH
:=39267ba837f870b3f4cbf9166a76eed35879d3f87d058740f2c0a5e16570bce3
16 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_SOURCE_VERSION
)
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/google-authenticator-libpam
28 DEPENDS
:=+libpam
+libqrencode
29 TITLE
:=Google Authenticator PAM module
30 URL
:=https
://github.com
/google
/google-authenticator-libpam
31 MAINTAINER
:=Lucian Cristian
<lucian.cristian@gmail.com
>
34 define Package
/google-authenticator-libpam
/description
35 Google Authenticator PAM module
38 define Build
/InstallDev
39 $(INSTALL_DIR
) $(1)/lib
/security
40 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/security
/* $(1)/lib
/security
/
43 define Package
/libpam-google-authenticator
/install
44 $(INSTALL_DIR
) $(1)/usr
/lib
/security
45 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/security
/*.so
* \
46 $(1)/usr
/lib
/security
/
47 $(INSTALL_DIR
) $(1)/usr
/sbin
48 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/* $(1)/usr
/sbin
/
51 $(eval
$(call BuildPackage
,google-authenticator-libpam
))