New package: libxcrypt-4.4.36
This commit is contained in:
parent
6a48ac782c
commit
b47cdd3698
4 changed files with 75 additions and 0 deletions
|
@ -43,6 +43,7 @@ libnss_dns.so.2 glibc-2.36_1
|
||||||
libnss_hesiod.so.2 glibc-2.36_1
|
libnss_hesiod.so.2 glibc-2.36_1
|
||||||
libcrypt.so.1 glibc-2.36_1
|
libcrypt.so.1 glibc-2.36_1
|
||||||
libBrokenLocale.so.1 glibc-2.36_1
|
libBrokenLocale.so.1 glibc-2.36_1
|
||||||
|
libcrypt.so.2 libxcrypt-4.4.36_1
|
||||||
libSimGearCore.so.2020.3.17 simgear-2020.3.17_1
|
libSimGearCore.so.2020.3.17 simgear-2020.3.17_1
|
||||||
libSimGearScene.so.2020.3.17 simgear-2020.3.17_1
|
libSimGearScene.so.2020.3.17 simgear-2020.3.17_1
|
||||||
libmemusage.so glibc-2.36_1
|
libmemusage.so glibc-2.36_1
|
||||||
|
|
1
srcpkgs/libxcrypt-compat
Symbolic link
1
srcpkgs/libxcrypt-compat
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
libxcrypt
|
1
srcpkgs/libxcrypt-devel
Symbolic link
1
srcpkgs/libxcrypt-devel
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
libxcrypt
|
72
srcpkgs/libxcrypt/template
Normal file
72
srcpkgs/libxcrypt/template
Normal file
|
@ -0,0 +1,72 @@
|
||||||
|
# Template file for 'libxcrypt'
|
||||||
|
pkgname=libxcrypt
|
||||||
|
version=4.4.36
|
||||||
|
revision=1
|
||||||
|
archs="~*-musl"
|
||||||
|
build_style=gnu-configure
|
||||||
|
configure_args="--enable-hashes=all --disable-failure-tokens --enable-obsolete-api=no"
|
||||||
|
hostmakedepends="perl-bootstrap"
|
||||||
|
checkdepends="python3-passlib"
|
||||||
|
short_desc="Modern library for one-way hashing of passwords"
|
||||||
|
maintainer="oreo639 <oreo639@gmail.com>"
|
||||||
|
license="LGPL-2.1-or-later, BSD-3-Clause, BSD-2-Clause, 0BSD, Public Domain"
|
||||||
|
homepage="https://github.com/besser82/libxcrypt"
|
||||||
|
distfiles="https://github.com/besser82/libxcrypt/releases/download/v${version}/libxcrypt-${version}.tar.xz"
|
||||||
|
checksum=e5e1f4caee0a01de2aee26e3138807d6d3ca2b8e67287966d1fefd65e1fd8943
|
||||||
|
make_cmd="make -C build"
|
||||||
|
|
||||||
|
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
||||||
|
broken="musl already provides libcrypt"
|
||||||
|
fi
|
||||||
|
|
||||||
|
do_configure() {
|
||||||
|
[ ! -d ${configure_builddir:=build} ] && mkdir -p ${configure_builddir}
|
||||||
|
cd ${configure_builddir}
|
||||||
|
../configure ${configure_args}
|
||||||
|
}
|
||||||
|
|
||||||
|
post_configure() {
|
||||||
|
configure_args="${configure_args/--enable-obsolete-api=no/} --enable-obsolete-api=glibc"
|
||||||
|
configure_builddir="compat-build"
|
||||||
|
do_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
post_build() {
|
||||||
|
make_cmd="make -C compat-build"
|
||||||
|
do_build
|
||||||
|
}
|
||||||
|
|
||||||
|
post_check() {
|
||||||
|
make_cmd="make -C compat-build"
|
||||||
|
do_check
|
||||||
|
}
|
||||||
|
|
||||||
|
pre_install() {
|
||||||
|
make -C compat-build DESTDIR=${DESTDIR} install
|
||||||
|
|
||||||
|
# Don't install development files from the compat library
|
||||||
|
rm -r ${DESTDIR}/usr/{include,lib/{lib*.so,pkgconfig},share}
|
||||||
|
}
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
vlicense LICENSING
|
||||||
|
}
|
||||||
|
|
||||||
|
libxcrypt-devel_package() {
|
||||||
|
short_desc+=" - development files"
|
||||||
|
depends="${sourcepkg}>=${version}_${revision}"
|
||||||
|
pkg_install() {
|
||||||
|
vmove usr/lib/pkgconfig
|
||||||
|
vmove usr/include
|
||||||
|
vmove "usr/lib/*.a"
|
||||||
|
vmove "usr/lib/*.so"
|
||||||
|
vmove usr/share
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
libxcrypt-compat_package() {
|
||||||
|
short_desc+=" - legacy compatibility"
|
||||||
|
pkg_install() {
|
||||||
|
vmove usr/lib/libcrypt.so.1*
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue