diff options
Diffstat (limited to 'sys-auth')
-rw-r--r-- | sys-auth/pam_x509/Manifest | 11 | ||||
-rw-r--r-- | sys-auth/pam_x509/files/pam_x509-ds-compile.patch | 103 | ||||
-rw-r--r-- | sys-auth/pam_x509/files/pam_x509-ds-compile2.patch | 103 | ||||
-rw-r--r-- | sys-auth/pam_x509/files/pam_x509-ds-obexftp.patch | 74 | ||||
-rw-r--r-- | sys-auth/pam_x509/files/pam_x509-ds_syslog.patch | 45 | ||||
-rw-r--r-- | sys-auth/pam_x509/files/x509-auth | 3 | ||||
-rw-r--r-- | sys-auth/pam_x509/files/x509.config | 1 | ||||
-rw-r--r-- | sys-auth/pam_x509/pam_x509-1.0.2-r1.ebuild | 46 | ||||
-rw-r--r-- | sys-auth/pam_x509/pam_x509-1.0.2-r2.ebuild | 46 | ||||
-rw-r--r-- | sys-auth/pam_x509/pam_x509-1.0.2-r3.ebuild | 56 | ||||
-rw-r--r-- | sys-auth/pam_x509/pam_x509-1.0.2-r4.ebuild | 54 |
11 files changed, 542 insertions, 0 deletions
diff --git a/sys-auth/pam_x509/Manifest b/sys-auth/pam_x509/Manifest new file mode 100644 index 0000000..70e0deb --- /dev/null +++ b/sys-auth/pam_x509/Manifest @@ -0,0 +1,11 @@ +AUX pam_x509-ds-compile.patch 3702 SHA256 4be0898de84d1dff848932fe7b9e31e13537172c7cd756009fc1b110396497ec SHA512 09a04217249a2bca6f395285ea667cc8103f5f2f5e7cd8fc80984c10d42e4949e1e6daed35e9d867b74ad304165a7a66faeea6313aa9f5eb84cf74c0847c1311 WHIRLPOOL 709eee85f20373816ab491168238b3860e81bb96c7c906e321517c0d6d1e373428a11a62e8491a5ed927017999bb30a72bd458619aec62ef8e46e8e108b75d34 +AUX pam_x509-ds-compile2.patch 3700 SHA256 b2a386a4f8dccca0377bed83432a2836c1312bd503356f197052788e26c813f4 SHA512 a7900e7b700f066078534e21acc11ed39cdf8bc4fb83825ce754e8aecc8ee61eca5a1151ac363a07cdff5f8c89963d6293683bb67c76cb0b969db4f0edfd0d39 WHIRLPOOL 0cb14e8894d8f001260eff762ee71f33005f0f6d71c9a255d45ba297b175ffa40a1cd961e3f67d82c040ce1988f39ab7a643fbc20caf14cd60765177331f5b68 +AUX pam_x509-ds-obexftp.patch 2414 SHA256 f16e7ba3809a6e94b879f7294736aa3473765c4d3627ff24fabdffdef5413dbc SHA512 2e47896a7971ebfc9430a522cc62194edb46c8a8d1035c4fbf9712a537a1c0dbef7cee578549341a3dd44d9c6da3993fa061aab94bba671ad3a6068a64fe9c2a WHIRLPOOL 78a94df81448946a17b850ebd350de556d3ec3d54bf62f6ffb6aa5e8befe2ff3768a42a669d73b90899ca22864f449f9fe9864f5414977932a6fe6575a5389cb +AUX pam_x509-ds_syslog.patch 1406 SHA256 bfd5ce2377689d0834ef29955251a4ccd7002783dfb6c08ab350a8b3797b8a9a SHA512 72b1080fac02141c23f7fbb011204c4e5856e5398f93bef0d2f0ecbd330e70bbe2709787376805bc6e6e8cfa35d822f10cc521ff685437f3ea8726363e80827a WHIRLPOOL e67fc1ff0922a52bd9bd569a4332d21030ad54c07351306b9e87c7cd9042e5523bef8b3f48c59071d501ec62f26d4d8357bdd6dbe1de32350a9065288fb18886 +AUX x509-auth 151 SHA256 4a0d04e30745582d999684fd38d1a253d1f912905a6bcb4e1ad6ac4828ef25e8 SHA512 f3bebfd7a54f48728b5399e4f6dd8e7f2dfcecfc85f133693b02dd634a3dad6d4394c9c9e38d9965fc70e307d530c255a38b3ab1c609eb344f60f4c6ba864ae9 WHIRLPOOL 7392d0399359ab4153038ed4ad94cbfa08b9838bcb34ae08d5c34f34e2017ee7f956f650a6647c1d9bd6b082b276ca98ed8bfd7c5fd87c7aa606a0252c783cba +AUX x509.config 7 SHA256 ce40a1b49ac0713da57c3c80bbf7e76a936d87fbcb304a494ba3bc96e307f1d2 SHA512 3d72e5880f14c95ee22cbf61e5b95f7a1a13d9be4c6111ea480210469b21962c0f464d7968919d311fa867290746ad250ae689cc7517ca9c059e034009fc16af WHIRLPOOL 0f7d9ecab63a8402b2f6bd508f28f2c6f191834838e50d2c7e70710611779dedfbead20503b285a302b8661467b2029858d0958a40f66a41cfaffd0d76fd207c +DIST pam_x509-1.0.2.tar.bz2 36241 SHA256 4ed4fb10b60719862021c857032523333f6a16dd12343591e8922fb1b8dd539f SHA512 1d555d90e2b28f5758a7dcac85e8e2a24275afeeb126b1080ff8b542aa81b1770dbe693c0183c966a342ff57c3133a32a09cc914a75b66c7821b378350d9dfd3 WHIRLPOOL b907189f1778e6d5c606ad60f62d5bce436416f9a5e3cdf15722cf721d0ba35b096c07974f96b5c8b1854dca1b3278d9bb824616a56a340c0cc43ba69f17d74f +EBUILD pam_x509-1.0.2-r1.ebuild 1181 SHA256 2b7d26175e31b50884b2d83b575215c023ae252bf775c4debb4893400a631d69 SHA512 b6d4c93923f35d1e22c7d44465a47523b3b34bd68ea3b0978edf0f47b98321370c2482e15fcfe93b3af1c625f52ab1088a1480bf8946c8f06c12672b697a46f3 WHIRLPOOL b4097f6af2e3bf07930c5bf9fa9e2c025ba325897a44f227eb3b02d9936077ea64fbc78cbecabf4051bcd5aa3c336e9963052c14a6491f9494f6cd3c20f699ac +EBUILD pam_x509-1.0.2-r2.ebuild 1189 SHA256 70aad19d9faf4c72fd9ea2c30e6c7aed7a301c7eb5e4eede42941c284a6f0932 SHA512 0142c5c54b6ad58f4a0cc9e60ff44fffec4441685319c78ab3b7503879238f8a3d3318467207f01ff79e87331c8ced7054ddb9a7a5c907a4b991f1a44a139359 WHIRLPOOL 4297aadb01dab7263c68264d0e6b5fd4cebc40abcb2690972f1d6ffa3736f0bf5d7c66100679fb77b769b293170e5c60669ecafc869c53df69decae45398d725 +EBUILD pam_x509-1.0.2-r3.ebuild 1380 SHA256 16575b1e4250e6076e5c8001ed54f6ef5401b3fbaed1b37505c56991e23af8ef SHA512 145a73693630d7049874092f42cefa2a6766e2eb2b7256dff92dc6c41ff239f5ff622c8189b6a73736963eab69e038a7d092f001f1689d2c8fe978159229d76b WHIRLPOOL 94375429dab630c90b1b0970eba285fdfa02cfafd0e797187ca9944600f9ba4e512e30b144e5bfca0fbb69d1f703a0ce0d9b4564bc7ef65a065ff0c3dd19f2fe +EBUILD pam_x509-1.0.2-r4.ebuild 1318 SHA256 06b651fb1f3183842fb3ba67b29d41bc7ffe1312c2f6e572c8fa632c18ea17a2 SHA512 c2354a763d1dd0b1055f78d66793845cd613d9f5f212470d007301ea18e76010718500bcc81a925f9ebe76823ddbd6be2326179b6c8890c84ccdece5124959e0 WHIRLPOOL 601f3554fbde86b6ec6e7de39836e1f09aaf77e7911e3a069e5f0ea1a076cdfa6798842fe793905a396b499e8d6a2f228ccb3d7e2de35907895cce120c23cc40 diff --git a/sys-auth/pam_x509/files/pam_x509-ds-compile.patch b/sys-auth/pam_x509/files/pam_x509-ds-compile.patch new file mode 100644 index 0000000..59f6e89 --- /dev/null +++ b/sys-auth/pam_x509/files/pam_x509-ds-compile.patch @@ -0,0 +1,103 @@ +diff -dPNur pam_x509-1.0.2/Makefile pam_x509-1.0.2-new/Makefile +--- pam_x509-1.0.2/Makefile 2007-04-22 12:31:55.000000000 +0200 ++++ pam_x509-1.0.2-new/Makefile 2007-04-22 12:51:15.000000000 +0200 +@@ -6,8 +6,10 @@ + + ifeq ($(BT),yes) + OBJECTS += rfcomm.o +- LIBS += -lbluetooth -lobexftp -lcobexbfb -lbfb `openobex-config --libs` +- CFLAGS += -D_BLUETOOTH `openobex-config --cflags` ++# LIBS += -lbluetooth -lobexftp -lcobexbfb -lbfb `openobex-config --libs` ++# CFLAGS += -D_BLUETOOTH `openobex-config --cflags` ++ CFLAGS += -D_BLUETOOTH ++ LIBS += -lbluetooth -lobexftp -lmulticobex -lbfb -lopenobex + endif + + pam_x509: $(OBJECTS) +diff -dPNur pam_x509-1.0.2/pam_x509.c pam_x509-1.0.2-new/pam_x509.c +--- pam_x509-1.0.2/pam_x509.c 2006-06-12 13:55:19.000000000 +0200 ++++ pam_x509-1.0.2-new/pam_x509.c 2007-04-22 12:52:42.000000000 +0200 +@@ -1,7 +1,9 @@ + #define PAM_SM_AUTH + #include <stdio.h> + #include <unistd.h> ++#include <string.h> + #include <stdarg.h> ++#include <alloca.h> + #include <sys/types.h> + #include <sys/stat.h> + +diff -dPNur pam_x509-1.0.2/pass.c pam_x509-1.0.2-new/pass.c +--- pam_x509-1.0.2/pass.c 2003-10-17 00:51:55.000000000 +0200 ++++ pam_x509-1.0.2-new/pass.c 2007-04-22 12:51:51.000000000 +0200 +@@ -1,4 +1,5 @@ + #include <stdio.h> ++#include <string.h> + + #include "sslauth.h" + +diff -dPNur pam_x509-1.0.2/rfcomm.c pam_x509-1.0.2-new/rfcomm.c +--- pam_x509-1.0.2/rfcomm.c 2006-06-12 14:24:23.000000000 +0200 ++++ pam_x509-1.0.2-new/rfcomm.c 2007-04-22 13:14:20.000000000 +0200 +@@ -17,16 +17,28 @@ + #include <bluetooth/rfcomm.h> + + #include <obexftp/client.h> +-#include <cobexbfb/cobex_bfb.h> + +-#ifdef obexftp_cli_connect ++#if defined(obexftp_cli_connect) ++# include <cobexbfb/cobex_bfb.h> + # define obexftp_cli_connect_wrapper(cli) obexftp_cli_connect(cli, NULL, 0) + # define obexftp_cli_open_wrapper(cb, ctrans, param) obexftp_cli_open(OBEX_TRANS_BLUETOOTH, ctrans, cb, param) + # define obexftp_setpath_wrapper(cli, path) obexftp_setpath(cli, path, 1) ++# define obexftp_cli_close_wrapper obexftp_cli_close ++# define obexftp_cli_disconnect_wrapper obexftp_cli_disconnect ++#elif defined(obexftp_connect) ++# include <multicobex/multi_cobex.h> ++# define obexftp_cli_connect_wrapper(cli) obexftp_connect(cli, NULL, 0) ++# define obexftp_cli_open_wrapper(cb, ctrans, param) obexftp_open(OBEX_TRANS_BLUETOOTH, ctrans, cb, param) ++# define obexftp_setpath_wrapper(cli, path) obexftp_setpath(cli, path, 1) ++# define obexftp_cli_close_wrapper obexftp_close ++# define obexftp_cli_disconnect_wrapper obexftp_disconnect + #else ++# include <cobexbfb/cobex_bfb.h> + # define obexftp_cli_connect_wrapper(cli) obexftp_cli_connect(cli) + # define obexftp_cli_open_wrapper(cb, ctrans, param) obexftp_cli_open(cb, ctrans, param) + # define obexftp_setpath_wrapper(cli, path) obexftp_setpath(cli, path) ++# define obexftp_cli_close_wrapper obexftp_cli_close ++# define obexftp_cli_disconnect_wrapper obexftp_cli_disconnect + #endif + + /* +@@ -75,7 +87,7 @@ + #ifdef _DEBUG + _pam_log(LOG_NOTICE,"Error connecting client over %s!",tty); + #endif +- obexftp_cli_close(cli); ++ obexftp_cli_close_wrapper(cli); + if (ctrans) cobex_free(ctrans); + return 0; + } +@@ -87,8 +99,8 @@ + #ifdef _DEBUG + _pam_log(LOG_NOTICE,"Can't get list file over %s!",tty); + #endif +- obexftp_cli_disconnect (cli); +- obexftp_cli_close(cli); ++ obexftp_cli_disconnect_wrapper (cli); ++ obexftp_cli_close_wrapper(cli); + if (ctrans) cobex_free(ctrans); + return 0; + } +@@ -121,8 +133,8 @@ + } + fclose(f); + +- obexftp_cli_disconnect (cli); +- obexftp_cli_close(cli); ++ obexftp_cli_disconnect_wrapper (cli); ++ obexftp_cli_close_wrapper(cli); + if (ctrans) cobex_free(ctrans); + return res; + } diff --git a/sys-auth/pam_x509/files/pam_x509-ds-compile2.patch b/sys-auth/pam_x509/files/pam_x509-ds-compile2.patch new file mode 100644 index 0000000..5c0fa70 --- /dev/null +++ b/sys-auth/pam_x509/files/pam_x509-ds-compile2.patch @@ -0,0 +1,103 @@ +diff -dPNur pam_x509-1.0.2/Makefile pam_x509-1.0.2-new/Makefile +--- pam_x509-1.0.2/Makefile 2007-04-22 12:31:55.000000000 +0200 ++++ pam_x509-1.0.2-new/Makefile 2007-04-22 12:51:15.000000000 +0200 +@@ -6,8 +6,10 @@ + + ifeq ($(BT),yes) + OBJECTS += rfcomm.o +- LIBS += -lbluetooth -lobexftp -lcobexbfb -lbfb `openobex-config --libs` +- CFLAGS += -D_BLUETOOTH `openobex-config --cflags` ++# LIBS += -lbluetooth -lobexftp -lcobexbfb -lbfb `openobex-config --libs` ++# CFLAGS += -D_BLUETOOTH `openobex-config --cflags` ++ CFLAGS += -D_BLUETOOTH ++ LIBS += -lbluetooth -lobexftp -lcobexbfb -lbfb -lopenobex + endif + + pam_x509: $(OBJECTS) +diff -dPNur pam_x509-1.0.2/pam_x509.c pam_x509-1.0.2-new/pam_x509.c +--- pam_x509-1.0.2/pam_x509.c 2006-06-12 13:55:19.000000000 +0200 ++++ pam_x509-1.0.2-new/pam_x509.c 2007-04-22 12:52:42.000000000 +0200 +@@ -1,7 +1,9 @@ + #define PAM_SM_AUTH + #include <stdio.h> + #include <unistd.h> ++#include <string.h> + #include <stdarg.h> ++#include <alloca.h> + #include <sys/types.h> + #include <sys/stat.h> + +diff -dPNur pam_x509-1.0.2/pass.c pam_x509-1.0.2-new/pass.c +--- pam_x509-1.0.2/pass.c 2003-10-17 00:51:55.000000000 +0200 ++++ pam_x509-1.0.2-new/pass.c 2007-04-22 12:51:51.000000000 +0200 +@@ -1,4 +1,5 @@ + #include <stdio.h> ++#include <string.h> + + #include "sslauth.h" + +diff -dPNur pam_x509-1.0.2/rfcomm.c pam_x509-1.0.2-new/rfcomm.c +--- pam_x509-1.0.2/rfcomm.c 2006-06-12 14:24:23.000000000 +0200 ++++ pam_x509-1.0.2-new/rfcomm.c 2007-04-22 13:14:20.000000000 +0200 +@@ -17,16 +17,28 @@ + #include <bluetooth/rfcomm.h> + + #include <obexftp/client.h> +-#include <cobexbfb/cobex_bfb.h> + +-#ifdef obexftp_cli_connect ++#if defined(obexftp_cli_connect) ++# include <cobexbfb/cobex_bfb.h> + # define obexftp_cli_connect_wrapper(cli) obexftp_cli_connect(cli, NULL, 0) + # define obexftp_cli_open_wrapper(cb, ctrans, param) obexftp_cli_open(OBEX_TRANS_BLUETOOTH, ctrans, cb, param) + # define obexftp_setpath_wrapper(cli, path) obexftp_setpath(cli, path, 1) ++# define obexftp_cli_close_wrapper obexftp_cli_close ++# define obexftp_cli_disconnect_wrapper obexftp_cli_disconnect ++#elif defined(obexftp_connect) ++# include <multicobex/multi_cobex.h> ++# define obexftp_cli_connect_wrapper(cli) obexftp_connect(cli, NULL, 0) ++# define obexftp_cli_open_wrapper(cb, ctrans, param) obexftp_open(OBEX_TRANS_BLUETOOTH, ctrans, cb, param) ++# define obexftp_setpath_wrapper(cli, path) obexftp_setpath(cli, path, 1) ++# define obexftp_cli_close_wrapper obexftp_close ++# define obexftp_cli_disconnect_wrapper obexftp_disconnect + #else ++# include <cobexbfb/cobex_bfb.h> + # define obexftp_cli_connect_wrapper(cli) obexftp_cli_connect(cli) + # define obexftp_cli_open_wrapper(cb, ctrans, param) obexftp_cli_open(cb, ctrans, param) + # define obexftp_setpath_wrapper(cli, path) obexftp_setpath(cli, path) ++# define obexftp_cli_close_wrapper obexftp_cli_close ++# define obexftp_cli_disconnect_wrapper obexftp_cli_disconnect + #endif + + /* +@@ -75,7 +87,7 @@ + #ifdef _DEBUG + _pam_log(LOG_NOTICE,"Error connecting client over %s!",tty); + #endif +- obexftp_cli_close(cli); ++ obexftp_cli_close_wrapper(cli); + if (ctrans) cobex_free(ctrans); + return 0; + } +@@ -87,8 +99,8 @@ + #ifdef _DEBUG + _pam_log(LOG_NOTICE,"Can't get list file over %s!",tty); + #endif +- obexftp_cli_disconnect (cli); +- obexftp_cli_close(cli); ++ obexftp_cli_disconnect_wrapper (cli); ++ obexftp_cli_close_wrapper(cli); + if (ctrans) cobex_free(ctrans); + return 0; + } +@@ -121,8 +133,8 @@ + } + fclose(f); + +- obexftp_cli_disconnect (cli); +- obexftp_cli_close(cli); ++ obexftp_cli_disconnect_wrapper (cli); ++ obexftp_cli_close_wrapper(cli); + if (ctrans) cobex_free(ctrans); + return res; + } diff --git a/sys-auth/pam_x509/files/pam_x509-ds-obexftp.patch b/sys-auth/pam_x509/files/pam_x509-ds-obexftp.patch new file mode 100644 index 0000000..eca5658 --- /dev/null +++ b/sys-auth/pam_x509/files/pam_x509-ds-obexftp.patch @@ -0,0 +1,74 @@ +diff -dPNur pam_x509-1.0.1/Makefile pam_x509-1.0.1-new/Makefile +--- pam_x509-1.0.1/Makefile 2006-01-04 12:56:14.000000000 +0000 ++++ pam_x509-1.0.1-new/Makefile 2006-01-04 13:35:20.000000000 +0000 +@@ -2,13 +2,13 @@ + + all: pam_x509 + +- ++CFLAGS += -fPIC + OBJECTS=sslapp.o sslauth.o pam_x509.o pass.o + + ifeq ($(BT),yes) + OBJECTS += rfcomm.o + LIBS += -lbluetooth -lobexftp -lcobexbfb -lbfb `openobex-config --libs` +- CFLAGS += -D_BLUETOOTH ++ CFLAGS += -D_BLUETOOTH `openobex-config --cflags` + endif + + pam_x509: $(OBJECTS) +@@ -23,7 +23,7 @@ + pass.o: pass.c sslauth.h + + rfcomm.o: rfcomm.c sslauth.h +- gcc -c `openobex-config --cflags` rfcomm.c ++ gcc -c $(CFLAGS) rfcomm.c + + + clean: +diff -dPNur pam_x509-1.0.1/rfcomm.c pam_x509-1.0.1-new/rfcomm.c +--- pam_x509-1.0.1/rfcomm.c 2003-10-18 15:28:13.000000000 +0000 ++++ pam_x509-1.0.1-new/rfcomm.c 2006-01-04 13:32:17.000000000 +0000 +@@ -19,6 +19,15 @@ + #include <obexftp/client.h> + #include <cobexbfb/cobex_bfb.h> + ++#ifdef obexftp_cli_connect ++# define obexftp_cli_connect_wrapper(cli) obexftp_cli_connect(cli, NULL, 0) ++# define obexftp_cli_open_wrapper(cb, ctrans, param) obexftp_cli_open(OBEX_TRANS_BLUETOOTH, ctrans, cb, param) ++# define obexftp_setpath_wrapper(cli, path) obexftp_setpath(cli, path, 1) ++#else ++# define obexftp_cli_connect_wrapper(cli) obexftp_cli_connect(cli) ++# define obexftp_cli_open_wrapper(cb, ctrans, param) obexftp_cli_open(cb, ctrans, param) ++# define obexftp_setpath_wrapper(cli, path) obexftp_setpath(cli, path) ++#endif + + /* + static void print_dev_info(struct rfcomm_dev_info *di) +@@ -53,7 +62,7 @@ + strcpy(lfile,tmp_dir); lpos=lfile+strlen(lfile); *lpos='/'; lpos++; *lpos=0; + + ctrans = cobex_ctrans (tty); +- cli = obexftp_cli_open (info_cb, ctrans, NULL); ++ cli = obexftp_cli_open_wrapper (info_cb, ctrans, NULL); + if (!cli) { + #ifdef _DEBUG + _pam_log(LOG_NOTICE,"Error opening obexftp-client connection over %s!",tty); +@@ -62,7 +71,7 @@ + return 0; + } + +- if (obexftp_cli_connect (cli) < 0) { ++ if (obexftp_cli_connect_wrapper (cli) < 0) { + #ifdef _DEBUG + _pam_log(LOG_NOTICE,"Error connecting client over %s!",tty); + #endif +@@ -84,7 +93,7 @@ + return 0; + } + +- if (obexftp_setpath(cli, bt_path)>=0) { ++ if (obexftp_setpath_wrapper(cli, bt_path)>=0) { + while(!feof(f)) { + fgets(stmp,MAX_LINE_SIZE-1,f); + for(spos=stmp;((*spos==' ')||(*spos=='\t'));spos++); diff --git a/sys-auth/pam_x509/files/pam_x509-ds_syslog.patch b/sys-auth/pam_x509/files/pam_x509-ds_syslog.patch new file mode 100644 index 0000000..f49142c --- /dev/null +++ b/sys-auth/pam_x509/files/pam_x509-ds_syslog.patch @@ -0,0 +1,45 @@ +diff -dPNur pam_x509-1.0.2/pam_x509.c pam_x509-1.0.2-new/pam_x509.c +--- pam_x509-1.0.2/pam_x509.c 2006-06-12 13:55:19.000000000 +0200 ++++ pam_x509-1.0.2-new/pam_x509.c 2009-03-19 21:58:35.000000000 +0100 +@@ -4,6 +4,7 @@ + #include <stdarg.h> + #include <sys/types.h> + #include <sys/stat.h> ++#include <syslog.h> + + #include "sslauth.h" + +diff -dPNur pam_x509-1.0.2/pass.c pam_x509-1.0.2-new/pass.c +--- pam_x509-1.0.2/pass.c 2003-10-17 00:51:55.000000000 +0200 ++++ pam_x509-1.0.2-new/pass.c 2009-03-19 22:39:51.000000000 +0100 +@@ -24,6 +24,8 @@ + free(reply); \ + } while (0) + ++#include <syslog.h> ++ + static int return_null_password(char *buf) { + if (buf) buf[0]=0; + return 0; +diff -dPNur pam_x509-1.0.2/rfcomm.c pam_x509-1.0.2-new/rfcomm.c +--- pam_x509-1.0.2/rfcomm.c 2006-06-12 14:24:23.000000000 +0200 ++++ pam_x509-1.0.2-new/rfcomm.c 2009-03-19 21:58:26.000000000 +0100 +@@ -8,6 +8,7 @@ + #include <sys/socket.h> + #include <sys/types.h> + #include <sys/stat.h> ++#include <syslog.h> + + #include "sslauth.h" + +diff -dPNur pam_x509-1.0.2/sslauth.c pam_x509-1.0.2-new/sslauth.c +--- pam_x509-1.0.2/sslauth.c 2006-06-12 13:56:51.000000000 +0200 ++++ pam_x509-1.0.2-new/sslauth.c 2009-03-19 21:58:13.000000000 +0100 +@@ -5,6 +5,7 @@ + #include <dirent.h> + #include <sys/types.h> + #include <sys/stat.h> ++#include <syslog.h> + + #include <openssl/ssl.h> + #include <openssl/safestack.h> diff --git a/sys-auth/pam_x509/files/x509-auth b/sys-auth/pam_x509/files/x509-auth new file mode 100644 index 0000000..8ae8eda --- /dev/null +++ b/sys-auth/pam_x509/files/x509-auth @@ -0,0 +1,3 @@ +auth required /lib/security/pam_env.so +auth sufficient /lib/security/pam_x509.so +auth required /lib/security/pam_deny.so diff --git a/sys-auth/pam_x509/files/x509.config b/sys-auth/pam_x509/files/x509.config new file mode 100644 index 0000000..6256418 --- /dev/null +++ b/sys-auth/pam_x509/files/x509.config @@ -0,0 +1 @@ +/CN:-r diff --git a/sys-auth/pam_x509/pam_x509-1.0.2-r1.ebuild b/sys-auth/pam_x509/pam_x509-1.0.2-r1.ebuild new file mode 100644 index 0000000..7b21cd6 --- /dev/null +++ b/sys-auth/pam_x509/pam_x509-1.0.2-r1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-auth/pam_usb/pam_usb-0.3.2.ebuild,v 1.3 2005/09/16 11:16:21 agriffis Exp $ + +inherit eutils pam + +DESCRIPTION="PAM X509 password-less authentication module" +SRC_URI="http://dside.dyndns.org/files/darklin/darksoft/${P}.tar.bz2" +HOMEPAGE="http://pam-x509.sourceforge.net/" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" + +DEPEND="dev-libs/openssl + sys-libs/pam + net-wireless/bluez-libs + net-wireless/bluez-utils + dev-libs/openobex + app-mobilephone/obexftp + sys-apps/hotplug-base + dev-lang/perl" + +src_unpack() { + unpack ${A} + cd ${S} + + epatch ${FILESDIR}/pam_x509-ds-compile.patch + perl -pi -e "s|BT=\w+|BT=yes|g" Makefile +} + +src_compile() { + emake || die "make failed" +} + +src_install() { + cd ${S} + + dodir /etc/hotplug.d /etc/pam.d /etc/pam_usb + + dodir /lib/security /etc/pam.d /var/spool/x509 /mnt/auth || die + install -c -m 755 pam_x509.so ${D}/lib/security || die + install -m 644 ${FILESDIR}/x509-auth ${D}/etc/pam.d || die + install -m 644 ${FILESDIR}/x509.config ${D}/etc || die + ln -s securetty ${D}/etc/x509.securetty || die +} diff --git a/sys-auth/pam_x509/pam_x509-1.0.2-r2.ebuild b/sys-auth/pam_x509/pam_x509-1.0.2-r2.ebuild new file mode 100644 index 0000000..c9e1465 --- /dev/null +++ b/sys-auth/pam_x509/pam_x509-1.0.2-r2.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-auth/pam_usb/pam_usb-0.3.2.ebuild,v 1.3 2005/09/16 11:16:21 agriffis Exp $ + +inherit eutils pam + +DESCRIPTION="PAM X509 password-less authentication module" +SRC_URI="http://dside.dyndns.org/files/darklin/darksoft/${P}.tar.bz2" +HOMEPAGE="http://pam-x509.sourceforge.net/" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" + +DEPEND="dev-libs/openssl + sys-libs/pam + net-wireless/bluez-libs + net-wireless/bluez-utils + dev-libs/openobex + app-mobilephone/obexftp + sys-apps/hotplug-base + dev-lang/perl" + +src_unpack() { + unpack ${A} + cd ${S} + + epatch ${FILESDIR}/pam_x509-ds-compile2.patch || die + perl -pi -e "s|BT=\w+|BT=yes|g" Makefile +} + +src_compile() { + emake || die "make failed" +} + +src_install() { + cd ${S} + + dodir /etc/hotplug.d /etc/pam.d /etc/pam_usb + + dodir /lib/security /etc/pam.d /var/spool/x509 /mnt/auth || die + install -c -m 755 pam_x509.so ${D}/lib/security || die + install -m 644 ${FILESDIR}/x509-auth ${D}/etc/pam.d || die + install -m 644 ${FILESDIR}/x509.config ${D}/etc || die + ln -s securetty ${D}/etc/x509.securetty || die +} diff --git a/sys-auth/pam_x509/pam_x509-1.0.2-r3.ebuild b/sys-auth/pam_x509/pam_x509-1.0.2-r3.ebuild new file mode 100644 index 0000000..0b88d47 --- /dev/null +++ b/sys-auth/pam_x509/pam_x509-1.0.2-r3.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-auth/pam_usb/pam_usb-0.3.2.ebuild,v 1.3 2005/09/16 11:16:21 agriffis Exp $ + +inherit eutils pam + +DESCRIPTION="PAM X509 password-less authentication module" +SRC_URI="http://dside.dyndns.org/files/darklin/darksoft/${P}.tar.bz2" +HOMEPAGE="http://pam-x509.sourceforge.net/" + +IUSE="bluetooth" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" + +DEPEND="dev-libs/openssl + sys-libs/pam + bluetooth? ( + net-wireless/bluez-libs + net-wireless/bluez-utils + dev-libs/openobex + app-mobilephone/obexftp + sys-apps/hotplug-base + ) + dev-lang/perl" + +src_unpack() { + unpack ${A} + cd ${S} + + epatch ${FILESDIR}/pam_x509-ds-compile2.patch || die + epatch ${FILESDIR}/pam_x509-ds_syslog.patch || die + + if use bluetooth; then + perl -pi -e "s|BT=\w+|BT=yes|g" Makefile + else + perl -pi -e "s|BT=\w+|BT=no|g" Makefile + fi +} + +src_compile() { + emake || die "make failed" +} + +src_install() { + cd ${S} + + dodir /etc/hotplug.d /etc/pam.d /etc/pam_usb + + dodir /lib/security /etc/pam.d /var/spool/x509 /mnt/auth || die + install -c -m 755 pam_x509.so ${D}/lib/security || die + install -m 644 ${FILESDIR}/x509-auth ${D}/etc/pam.d || die + install -m 644 ${FILESDIR}/x509.config ${D}/etc || die + ln -s securetty ${D}/etc/x509.securetty || die +} diff --git a/sys-auth/pam_x509/pam_x509-1.0.2-r4.ebuild b/sys-auth/pam_x509/pam_x509-1.0.2-r4.ebuild new file mode 100644 index 0000000..a78b78c --- /dev/null +++ b/sys-auth/pam_x509/pam_x509-1.0.2-r4.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-auth/pam_usb/pam_usb-0.3.2.ebuild,v 1.3 2005/09/16 11:16:21 agriffis Exp $ + +inherit eutils pam + +DESCRIPTION="PAM X509 password-less authentication module" +SRC_URI="http://dside.dyndns.org/files/darklin/darksoft/${P}.tar.bz2" +HOMEPAGE="http://pam-x509.sourceforge.net/" + +IUSE="bluetooth" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" + +DEPEND="dev-libs/openssl + sys-libs/pam + bluetooth? ( + net-wireless/bluez + dev-libs/openobex + app-mobilephone/obexftp + ) + dev-lang/perl" + +src_unpack() { + unpack ${A} + cd ${S} + + epatch ${FILESDIR}/pam_x509-ds-compile2.patch || die + epatch ${FILESDIR}/pam_x509-ds_syslog.patch || die + + if use bluetooth; then + perl -pi -e "s|BT=\w+|BT=yes|g" Makefile + else + perl -pi -e "s|BT=\w+|BT=no|g" Makefile + fi +} + +src_compile() { + emake || die "make failed" +} + +src_install() { + cd ${S} + + dodir /etc/hotplug.d /etc/pam.d /etc/pam_usb + + dodir /lib/security /etc/pam.d /var/spool/x509 /mnt/auth || die + install -c -m 755 pam_x509.so ${D}/lib/security || die + install -m 644 ${FILESDIR}/x509-auth ${D}/etc/pam.d || die + install -m 644 ${FILESDIR}/x509.config ${D}/etc || die + ln -s securetty ${D}/etc/x509.securetty || die +} |