diff --git a/common/shlibs b/common/shlibs index 3a5689c99f4..e35d27e056a 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3084,3 +3084,4 @@ libarcan_shmif.so.0.11 arcan-0.5.4.3_1 libarcan_shmif_ext.so.0.11 arcan-0.5.4.3_1 libarcan_shmif_server.so.0.11 arcan-0.5.4.3_1 libarcan_tui.so.0.11 arcan-0.5.4.3_1 +libscrypt.so.0 libscrypt-devel-1.21_1 diff --git a/srcpkgs/libscrypt-devel b/srcpkgs/libscrypt-devel new file mode 120000 index 00000000000..55188a7ce73 --- /dev/null +++ b/srcpkgs/libscrypt-devel @@ -0,0 +1 @@ +libscrypt \ No newline at end of file diff --git a/srcpkgs/libscrypt/patches/makefile.patch b/srcpkgs/libscrypt/patches/makefile.patch new file mode 100644 index 00000000000..759ac275c40 --- /dev/null +++ b/srcpkgs/libscrypt/patches/makefile.patch @@ -0,0 +1,20 @@ +--- Makefile.orig ++++ Makefile +@@ -6,7 +6,7 @@ + + CC?=gcc + CFLAGS?=-O2 -Wall -g -D_FORTIFY_SOURCE=2 -fstack-protector -fPIC +-LDFLAGS?=-Wl,-z,now -Wl,-z,relro -Wl,-soname,libscrypt.so.0 -Wl,--version-script=libscrypt.version ++MYLDFLAGS?=-Wl,-z,now -Wl,-z,relro -Wl,-soname,libscrypt.so.0 -Wl,--version-script=libscrypt.version + CFLAGS_EXTRA?=-Wl,-rpath=. + + all: reference +@@ -14,7 +14,7 @@ + OBJS= crypto_scrypt-nosse.o sha256.o crypto-mcf.o b64.o crypto-scrypt-saltgen.o crypto_scrypt-check.o crypto_scrypt-hash.o slowequals.o + + libscrypt.so.0: $(OBJS) +- $(CC) $(LDFLAGS) -shared -o libscrypt.so.0 $(OBJS) -lm -lc ++ $(CC) $(MYLDFLAGS) -shared -o libscrypt.so.0 $(OBJS) -lm -lc $(LDFLAGS) + ar rcs libscrypt.a $(OBJS) + + reference: libscrypt.so.0 main.o crypto_scrypt-hexconvert.o diff --git a/srcpkgs/libscrypt/template b/srcpkgs/libscrypt/template new file mode 100644 index 00000000000..7040149949e --- /dev/null +++ b/srcpkgs/libscrypt/template @@ -0,0 +1,20 @@ +# Template file for 'libscrypt' +pkgname=libscrypt +version=1.21 +revision=1 +build_style=gnu-makefile +short_desc="Library that implements scrypt() functionality" +maintainer="Leah Neukirchen " +license="2-clause-BSD" +homepage="https://github.com/technion/" +distfiles="https://github.com/technion/${pkgname}/archive/v${version}.tar.gz" +checksum=68e377e79745c10d489b759b970e52d819dbb80dd8ca61f8c975185df3f457d3 + +libscrypt-devel_package() { + short_desc+=" - development files" + depends="${sourcepkg}>=${version}_${revision}" + pkg_install() { + vmove usr/include + vmove usr/lib/*.so + } +}