Merge pull request #8361 from jandelgado/add_udptunnel_package
[feed/packages.git] / libs / google-authenticator-libpam / Makefile
1 #
2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
4 #
5
6 include $(TOPDIR)/rules.mk
7 PKG_NAME:=google-authenticator-libpam
8 PKG_SOURCE_DATE:=2019-01-03
9 PKG_RELEASE:=1
10
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
15
16 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_SOURCE_VERSION)
17
18
19 PKG_BUILD_PARALLEL:=1
20 PKG_FIXUP:=autoreconf
21 PKG_INSTALL:=1
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/google-authenticator-libpam
26 SECTION:=libs
27 CATEGORY:=Libraries
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>
32 endef
33
34 define Package/google-authenticator-libpam/description
35 Google Authenticator PAM module
36 endef
37
38 define Build/InstallDev
39 $(INSTALL_DIR) $(1)/lib/security
40 $(CP) $(PKG_INSTALL_DIR)/usr/lib/security/* $(1)/lib/security/
41 endef
42
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/
49 endef
50
51 $(eval $(call BuildPackage,google-authenticator-libpam))