diff options
author | 2012-06-06 14:47:46 -0400 | |
---|---|---|
committer | 2012-06-06 14:47:46 -0400 | |
commit | ed09a11925db43f27ff9010f6328510aab34fa0b (patch) | |
tree | 4909d0df41073f8f08998ad1e65d430a821505c6 /sys-auth/libpam-google-authenticator/files | |
parent | Drop sabnzbd. (diff) | |
download | c1pher-ed09a11925db43f27ff9010f6328510aab34fa0b.tar.gz c1pher-ed09a11925db43f27ff9010f6328510aab34fa0b.tar.bz2 c1pher-ed09a11925db43f27ff9010f6328510aab34fa0b.zip |
google-authenticator PAM module.
Diffstat (limited to 'sys-auth/libpam-google-authenticator/files')
-rw-r--r-- | sys-auth/libpam-google-authenticator/files/makefile.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/sys-auth/libpam-google-authenticator/files/makefile.patch b/sys-auth/libpam-google-authenticator/files/makefile.patch new file mode 100644 index 0000000..2792456 --- /dev/null +++ b/sys-auth/libpam-google-authenticator/files/makefile.patch @@ -0,0 +1,41 @@ +--- Makefile 2012-06-06 14:39:56.000000000 -0400 ++++ Makefile.new 2012-06-06 14:40:05.000000000 -0400 +@@ -28,6 +28,7 @@ + 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') ++DESTDIR := + + all: google-authenticator pam_google_authenticator.so demo \ + pam_google_authenticator_unittest +@@ -43,26 +44,11 @@ + *.c *.h *.html Makefile FILEFORMAT README utc-time + + install: all +- @dst="`find /lib*/security /lib*/*/security -maxdepth 1 \ +- -name pam_unix.so -printf '%H' -quit 2>/dev/null`"; \ +- [ -d "$${dst}" ] || dst=/lib/security; \ +- [ -d "$${dst}" ] || dst=/usr/lib; \ +- sudo=; if [ $$(id -u) -ne 0 ]; then \ +- echo "You need to be root to install this module."; \ +- if [ -x /usr/bin/sudo ]; then \ +- echo "Invoking sudo:"; \ +- sudo=sudo; \ +- else \ +- exit 1; \ +- fi; \ +- fi; \ +- echo cp pam_google_authenticator.so $${dst}; \ +- tar fc - pam_google_authenticator.so | $${sudo} tar ofxC - $${dst}; \ ++ echo install -m 755 pam_google_authenticator.so ${DESTDIR}; \ ++ install -m 755 pam_google_authenticator.so ${DESTDIR}; \ + \ +- echo cp google-authenticator /usr/local/bin; \ +- tar fc - google-authenticator | $${sudo} tar ofxC - /usr/local/bin; \ +- $${sudo} chmod 755 $${dst}/pam_google_authenticator.so \ +- /usr/local/bin/google-authenticator ++ echo install -m 755 google-authenticator ${DESTDIR}; \ ++ install -m 755 google-authenticator ${DESTDIR}; \ + + clean: + $(RM) *.o *.so core google-authenticator demo \ |