libxcrypt2.4: initial commit, v2.4
This commit is contained in:
parent
f7b09702cc
commit
b65ea1ca41
9
libxcrypt2.4/.footprint
Normal file
9
libxcrypt2.4/.footprint
Normal file
@ -0,0 +1,9 @@
|
||||
drwxr-xr-x root/root usr/
|
||||
drwxr-xr-x root/root usr/lib/
|
||||
drwxr-xr-x root/root usr/lib/libxcrypt2.4/
|
||||
drwxr-xr-x root/root usr/lib/libxcrypt2.4/include/
|
||||
-rw-r--r-- root/root usr/lib/libxcrypt2.4/include/xcrypt.h
|
||||
-rwxr-xr-x root/root usr/lib/libxcrypt2.4/libxcrypt.la
|
||||
lrwxrwxrwx root/root usr/lib/libxcrypt2.4/libxcrypt.so -> libxcrypt.so.1.2.4
|
||||
lrwxrwxrwx root/root usr/lib/libxcrypt2.4/libxcrypt.so.1 -> libxcrypt.so.1.2.4
|
||||
-rwxr-xr-x root/root usr/lib/libxcrypt2.4/libxcrypt.so.1.2.4
|
6
libxcrypt2.4/.signature
Normal file
6
libxcrypt2.4/.signature
Normal file
@ -0,0 +1,6 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF3yTxbYvGbljQxEFKOq9eMSVgtkLfTaVkjoLJPu/4EMXIuv9srMLYzQhHmIAS3TYd8eSDy/xjXNCIR8VVqQOUuAs=
|
||||
SHA256 (Pkgfile) = 5d46f6ba0fb90ad27dce9d44b29099dbfb48edfe210f33bf7f1a272347090035
|
||||
SHA256 (.footprint) = 54ee23fa9fd04b59ac94ac7fc196855061db60b7fd473604cfcd9ad010e8f65c
|
||||
SHA256 (libxcrypt_2.4.orig.tar.gz) = 4207aee39c4454c1955b26a3d77f33e730eae94c20406976b6de80c3a3cfb1cd
|
||||
SHA256 (libxcrypt-2.4-glibc-2.16.patch) = 015041d4a9ee23eacc9b3c18216fedb2a6ac12d43c53e946695737de9212e746
|
27
libxcrypt2.4/Pkgfile
Normal file
27
libxcrypt2.4/Pkgfile
Normal file
@ -0,0 +1,27 @@
|
||||
# Description: Modern library for one-way hashing of passwords
|
||||
# URL: https://github.com/besser82/libxcrypt
|
||||
# Maintainer: Alexandr Savca, alexandrsavca89 at gmail dot com
|
||||
|
||||
name=libxcrypt2.4
|
||||
version=2.4
|
||||
release=1
|
||||
source=(libxcrypt_$version.orig.tar.gz
|
||||
libxcrypt-$version-glibc-2.16.patch)
|
||||
|
||||
build() {
|
||||
cd libxcrypt-$version
|
||||
|
||||
patch -p1 -i $SRC/libxcrypt-2.4-glibc-2.16.patch
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--disable-static \
|
||||
--enable-hashes=strong,glibc \
|
||||
--enable-obsolete-api=no \
|
||||
--disable-failure-tokens \
|
||||
--libdir=/usr/lib/libxcrypt2.4 \
|
||||
--includedir=/usr/lib/libxcrypt2.4/include
|
||||
|
||||
make VERBOSE=1
|
||||
make DESTDIR=$PKG install
|
||||
}
|
40
libxcrypt2.4/libxcrypt-2.4-glibc-2.16.patch
Normal file
40
libxcrypt2.4/libxcrypt-2.4-glibc-2.16.patch
Normal file
@ -0,0 +1,40 @@
|
||||
diff -urN libxcrypt-3.0.2/src/crypt_util.c libxcrypt-3.0.2.new/src/crypt_util.c
|
||||
--- libxcrypt-3.0.2/src/crypt_util.c 2007-10-25 15:17:46.000000000 +0200
|
||||
+++ libxcrypt-3.0.2.new/src/crypt_util.c 2013-02-04 12:45:20.560191479 +0100
|
||||
@@ -30,8 +30,7 @@
|
||||
#endif
|
||||
#include <string.h>
|
||||
|
||||
-#include <bits/libc-lock.h>
|
||||
-#define __libc_lock_t pthread_mutex_t
|
||||
+#include <pthread.h>
|
||||
|
||||
#ifndef STATIC
|
||||
#define STATIC static
|
||||
@@ -265,7 +264,7 @@
|
||||
*/
|
||||
struct crypt_data _ufc_foobar;
|
||||
|
||||
-__libc_lock_define_initialized (static, _ufc_tables_lock)
|
||||
+static pthread_mutex_t _ufc_tables_lock = PTHREAD_MUTEX_INITIALIZER;
|
||||
|
||||
#ifdef DEBUG
|
||||
|
||||
@@ -362,7 +361,7 @@
|
||||
#endif
|
||||
|
||||
if(small_tables_initialized == 0) {
|
||||
- __libc_lock_lock (_ufc_tables_lock);
|
||||
+ pthread_mutex_lock (&_ufc_tables_lock);
|
||||
if(small_tables_initialized)
|
||||
goto small_tables_done;
|
||||
|
||||
@@ -471,7 +470,7 @@
|
||||
}
|
||||
small_tables_initialized = 1;
|
||||
small_tables_done:
|
||||
- __libc_lock_unlock(_ufc_tables_lock);
|
||||
+ pthread_mutex_unlock (&_ufc_tables_lock);
|
||||
}
|
||||
|
||||
/*
|
BIN
libxcrypt2.4/libxcrypt_2.4.orig.tar.gz
Normal file
BIN
libxcrypt2.4/libxcrypt_2.4.orig.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user