summaryrefslogtreecommitdiff
path: root/sys-libs/libxcrypt
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-libs/libxcrypt
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-libs/libxcrypt')
-rw-r--r--sys-libs/libxcrypt/Manifest8
-rw-r--r--sys-libs/libxcrypt/files/libxcrypt-2.4-glibc-2.16.patch40
-rw-r--r--sys-libs/libxcrypt/libxcrypt-2.0.ebuild15
-rw-r--r--sys-libs/libxcrypt/libxcrypt-2.4.ebuild28
-rw-r--r--sys-libs/libxcrypt/metadata.xml13
5 files changed, 104 insertions, 0 deletions
diff --git a/sys-libs/libxcrypt/Manifest b/sys-libs/libxcrypt/Manifest
new file mode 100644
index 000000000000..9fb548365d90
--- /dev/null
+++ b/sys-libs/libxcrypt/Manifest
@@ -0,0 +1,8 @@
+AUX libxcrypt-2.4-glibc-2.16.patch 1024 SHA256 015041d4a9ee23eacc9b3c18216fedb2a6ac12d43c53e946695737de9212e746 SHA512 72dc3944ea6ad600887d99ba0a9b3c0acb9d107f6591a139f863032a45a5efa516ec8b08a06e564552694d14febed0a1e065b96dc4aef06cd274aebf98baedcd WHIRLPOOL 7cf000a35ad37af82b469310cc47e3c916240e8c89088c078ad5fd1707de370d98a6cee17115efd9c8c068b271e35b331bf85dfbb8fee6ee75caac2f60248b5e
+DIST libxcrypt-2.0.tar.bz2 255228 SHA256 176ed37cfdd3b1fe6f9e01cb75c5f864287906bb5741d22fa586d6239ad672a8 SHA512 670042994180186f0f2ae765ac29750790b693e6aa29622f994b90bc59a493287568c2ca0d94d2bc5ed964126de1c2a9a74d206d43ec1d4b77e6d7fb283c9b4b WHIRLPOOL 4010520d8bc7d0bf451f0fb21632d5efb6fce56e12102ce5cd4036c63eb75397429955368726aa90d78a6af69370be7afd622b3bff4a614fd95b5f212874f5f7
+DIST libxcrypt_2.4.orig.tar.gz 361503 SHA256 4207aee39c4454c1955b26a3d77f33e730eae94c20406976b6de80c3a3cfb1cd SHA512 7171ce1b5b7f949232c4db94cf98bdd6396c3e2a8f2f483c041cab92d752e3a2fa93d564ede7efece57c069df129e6cc03049cf3e3f07bd3556031a7c4197cbf WHIRLPOOL 7f23673dacf2d3c6b7f8967aaeb3c2e23039a8f61149372df0dfb700ef5a316ea661be0a76a2caf63e32007a505626c13d8667885935693454bd44c7fc1849c8
+EBUILD libxcrypt-2.0.ebuild 436 SHA256 28767cbc5c39c4d35c6e009e64fa8d526a8aa731a49e2ee33e92f368f6a72658 SHA512 da1595f82a4bd76c439f880580d960f799244a1ee22e5ad91b04c186a5eba147e4c36da75392c4c4fe5202596d4145250b0d3da8370f2351ab9b66c2e58a81c2 WHIRLPOOL 0dde8437a92c94d11f2014649ffa9dec0bf744ce5758bab6e99dc6748d10994cf76ebc6a61508cbec531eaed6b162b9bc5d16b374af47b6321fdab0d2bf629ab
+EBUILD libxcrypt-2.4.ebuild 644 SHA256 0800e220d77aa47aaaf148565fe7abd744d1e4a7b41360948cc4d7cc99dc586c SHA512 b619989540baabbe0a88c8536b2c2fd0c1ba5d60e701228e5d34d1c276bb67c27c9ae4ef8eff8cdf18ffbd87d331ecbc1d5846196b089425fb9d4dbed3888388 WHIRLPOOL d0a91d43e2f826ac705d0c1d481284e894656ee9cf45ba9914ee807469ba1c63f965b86b5bb3852e10fc9949bd0dda198496ab5ca0b595b79d43c807578ede19
+MISC ChangeLog 2522 SHA256 c488ed4c34b09abebf9dfd579f3bfdd31ff28059aee3af92c83dcc310b418cb4 SHA512 165afc2a63231381276fda6b7a60270989c12bb8ee570bc811b3a1b53e7e2696193b29ce072c8ec8f149ce2daf1f4e4655433177461d30f439167617cb093985 WHIRLPOOL 9fd4596cecfaa91d040a79e9e83d8547c41bc99faad003b5c50d2ad90fa7284f37cf794b4b8eb4d7b7e299342535c2a1d19b63b49b0b24b4eb47bb6235149b75
+MISC ChangeLog-2015 1439 SHA256 df5a0246b454413ece623eb8463f9fc185ae7d71b0be6ac138cb38b73e9fb754 SHA512 1234ad2019bdc0d294898366d0842cbd44cc5178dfcaf1e9bdce5354313b0edc9afe4d5aaba51a3b480f0aaabc0983b04acd38d2068f3b3dc5f08cbe3c015d57 WHIRLPOOL 7982987ae22831857147e388133b5fb7f316b3707419a7c488a099e154020c1dcb075f269873e79388044aad318abf183ae56361671649f7c3c52caeef0f11f1
+MISC metadata.xml 483 SHA256 c711ff047000f2523fd3fccf2972875e39ecfa4b88118d7ce479324bb4833637 SHA512 4caf2b033aa710f33a3570d9c7148d603f228ffc1926b8ca14d418f2fc54bd5a51401b555316e4f5d7a1fb8e131d1445caf3f9c64a03bcff4a16c0f60fbe7050 WHIRLPOOL ad3d052d0fce79063298c573ed8f17922d16728ae76ccfd3a69dc5016f147680996d7769eec1496b5e9ec68a23e499e842919e249b65f5a81de47b89605a8845
diff --git a/sys-libs/libxcrypt/files/libxcrypt-2.4-glibc-2.16.patch b/sys-libs/libxcrypt/files/libxcrypt-2.4-glibc-2.16.patch
new file mode 100644
index 000000000000..150ff99ab2f9
--- /dev/null
+++ b/sys-libs/libxcrypt/files/libxcrypt-2.4-glibc-2.16.patch
@@ -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);
+ }
+
+ /*
diff --git a/sys-libs/libxcrypt/libxcrypt-2.0.ebuild b/sys-libs/libxcrypt/libxcrypt-2.0.ebuild
new file mode 100644
index 000000000000..a4055681cff7
--- /dev/null
+++ b/sys-libs/libxcrypt/libxcrypt-2.0.ebuild
@@ -0,0 +1,15 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="A replacement for libcrypt with DES, MD5 and blowfish support"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+HOMEPAGE="http://www.suse.de/us/private/products/suse_linux/i386/packages_personal/libxcrypt.html"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+}
diff --git a/sys-libs/libxcrypt/libxcrypt-2.4.ebuild b/sys-libs/libxcrypt/libxcrypt-2.4.ebuild
new file mode 100644
index 000000000000..af69e83f0d57
--- /dev/null
+++ b/sys-libs/libxcrypt/libxcrypt-2.4.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils multilib
+
+DESCRIPTION="A replacement for libcrypt with DES, MD5 and blowfish support"
+SRC_URI="mirror://debian/pool/main/libx/${PN}/${PN}_${PV}.orig.tar.gz"
+HOMEPAGE="http://packages.debian.org/sid/libxcrypt1"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-2.4-glibc-2.16.patch"
+}
+
+src_configure() {
+ # Do not install into /usr so that tcb and pam can use us.
+ econf --libdir=/$(get_libdir) --disable-static
+}
+
+src_install() {
+ default
+ prune_libtool_files
+}
diff --git a/sys-libs/libxcrypt/metadata.xml b/sys-libs/libxcrypt/metadata.xml
new file mode 100644
index 000000000000..3f12685cdb12
--- /dev/null
+++ b/sys-libs/libxcrypt/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>hardened@gentoo.org</email>
+ <name>Gentoo Hardened</name>
+ </maintainer>
+ <longdescription>
+ Crypt library for DES, MD5, and blowfish. Libxcrypt is a replacement for
+ libcrypt, which comes with the GNU C Library. It supports DES crypt,
+ MD5, and passwords with blowfish encryption.
+ </longdescription>
+</pkgmetadata>