From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- app-admin/apg/files/apg-2.3.0b-cracklib.patch | 17 ++++++++++++ .../apg/files/apg-2.3.0b-crypt_password.patch | 31 ++++++++++++++++++++++ app-admin/apg/files/apg-glibc-2.4.patch | 11 ++++++++ 3 files changed, 59 insertions(+) create mode 100644 app-admin/apg/files/apg-2.3.0b-cracklib.patch create mode 100644 app-admin/apg/files/apg-2.3.0b-crypt_password.patch create mode 100644 app-admin/apg/files/apg-glibc-2.4.patch (limited to 'app-admin/apg/files') diff --git a/app-admin/apg/files/apg-2.3.0b-cracklib.patch b/app-admin/apg/files/apg-2.3.0b-cracklib.patch new file mode 100644 index 000000000000..a1c34a14f5a0 --- /dev/null +++ b/app-admin/apg/files/apg-2.3.0b-cracklib.patch @@ -0,0 +1,17 @@ +--- Makefile 2003-08-07 09:40:39.000000000 -0600 ++++ Makefile.cracklib 2004-10-14 07:16:17.288530686 -0600 +@@ -44,10 +44,10 @@ + # If you want to use cracklib for password quality check then you + # must uncomment the folowing 4 lines (you must not do this for WIN32) + # +-#CRACKLIB_DICTPATH = "/usr/local/lib/pw_dict" +-#STANDALONE_OPTIONS += -DAPG_USE_CRACKLIB '-DCRACKLIB_DICTPATH=${CRACKLIB_DICTPATH}' -I/usr/local/include -L/usr/local/lib +-#CLISERV_OPTIONS += -DAPG_USE_CRACKLIB '-DCRACKLIB_DICTPATH=${CRACKLIB_DICTPATH}' -I/usr/local/include -L/usr/local/lib +-#APG_CLIBS += -lcrack ++CRACKLIB_DICTPATH = "/usr/lib/cracklib_dict" ++STANDALONE_OPTIONS += -DAPG_USE_CRACKLIB '-DCRACKLIB_DICTPATH=${CRACKLIB_DICTPATH}' ++CLISERV_OPTIONS += -DAPG_USE_CRACKLIB '-DCRACKLIB_DICTPATH=${CRACKLIB_DICTPATH}' ++APG_CLIBS += -lcrack + + ################################################################## + # Support for ANSI X9.17/SHA1 PRNG diff --git a/app-admin/apg/files/apg-2.3.0b-crypt_password.patch b/app-admin/apg/files/apg-2.3.0b-crypt_password.patch new file mode 100644 index 000000000000..93f3f152a2b4 --- /dev/null +++ b/app-admin/apg/files/apg-2.3.0b-crypt_password.patch @@ -0,0 +1,31 @@ +--- restrict.c 2007-03-09 13:48:27.000000000 +0300 ++++ restrict.c 2007-03-09 13:49:31.000000000 +0300 +@@ -33,6 +33,9 @@ + #include + #include + #include ++#if defined(APG_USE_CRACKLIB) ++#include ++#endif /* APG_USE_CRACKLIB */ + #include "restrict.h" + extern struct sym smbl[94]; + /* +--- apg.c 2007-03-08 17:32:40.000000000 +0300 ++++ apg.c 2007-03-08 17:34:07.000000000 +0300 +@@ -100,6 +100,7 @@ + #else /* CLISERV */ + #if defined(APG_USE_CRACKLIB) + #define APG_PROGRAMM_OPTIONS "M:E:a:r:b:p:n:m:x:vkt" ++#include + #else /* CRACKLIB */ + #define APG_PROGRAMM_OPTIONS "M:E:a:r:b:p:n:m:x:vt" + #endif /* CRACKLIB */ +@@ -709,7 +710,7 @@ + */ + char * crypt_passstring (const char *p) + { +- char salt[10]; ++ char salt[11]; + gen_rand_pass (salt, 10, 10, S_SL|S_CL|S_NB); + return (crypt(p, salt)); + } diff --git a/app-admin/apg/files/apg-glibc-2.4.patch b/app-admin/apg/files/apg-glibc-2.4.patch new file mode 100644 index 000000000000..be90c6355e66 --- /dev/null +++ b/app-admin/apg/files/apg-glibc-2.4.patch @@ -0,0 +1,11 @@ +--- restrict.h.orig 2006-03-26 03:33:50.168661936 +0400 ++++ restrict.h 2006-03-26 03:34:10.427582112 +0400 +@@ -33,6 +33,8 @@ + #ifndef APG_RESTRICT_H + #define APG_RESTRICT_H 1 + ++#define uint32_t int ++ + #if defined(APG_USE_CRACKLIB) + #include + #endif -- cgit v1.2.3