tripolar 9997c63f7a [packages] add google-authenticator
The Google Authenticator project includes implementations of one-time
passcode generators for several mobile platforms, as well as a pluggable
authentication module (PAM). One-time passcodes are generated using open
standards developed by the Initiative for Open Authentication (OATH)
(which is unrelated to OAuth).

These implementations support the HMAC-Based One-time Password (HOTP)
algorithm specified in RFC 4226 and the Time-based One-time Password
(TOTP) algorithm specified in RFC 6238.

thanks DkSoul for the patch

Signed-off-by: Peter Wagner <tripolar@gmx.at>


git-svn-id: svn://svn.openwrt.org/openwrt/packages@38492 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-10-22 00:55:46 +00:00

23 lines
780 B
Plaintext

--- a/libpam/Makefile
+++ b/libpam/Makefile
@@ -18,16 +18,9 @@
.SUFFIXES: .so
-ifeq ($(origin CC), default)
- CC := gcc
-endif
-
-DEF_CFLAGS := $(shell [ `uname` = SunOS ] && \
- echo ' -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT') \
- -fvisibility=hidden $(CFLAGS)
-DEF_LDFLAGS := $(shell [ `uname` = SunOS ] && echo ' -mimpure-text') $(LDFLAGS)
-LDL_LDFLAGS := $(shell $(CC) -shared -ldl -xc -o /dev/null /dev/null \
- >/dev/null 2>&1 && echo ' -ldl')
+DEF_CFLAGS := -fvisibility=hidden $(CFLAGS)
+DEF_LDFLAGS := $(LDFLAGS)
+LDL_LDFLAGS := '-ldl'
all: google-authenticator pam_google_authenticator.so demo \
pam_google_authenticator_unittest