diff --git a/common/shlibs b/common/shlibs index b2270907b71..d9656c99ca9 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3071,3 +3071,6 @@ libKChart.so.2 kdiagram-2.6.0_1 libKGantt.so.2 kdiagram-2.6.0_1 libscrypt.so.0 libscrypt-1.21_1 libzuluplay.so.1.1 zuluplay-1.1_1 +libzuluCryptPluginManager.so.1.0.0 zulucrypt-5.2.0_1 +libzuluCrypt-exe.so.1.2.0 zulucrypt-5.2.0_1 +libzuluCrypt.so.1.2.0 zulucrypt-5.2.0_1 diff --git a/srcpkgs/zulucrypt-devel b/srcpkgs/zulucrypt-devel new file mode 120000 index 00000000000..9ab699dd179 --- /dev/null +++ b/srcpkgs/zulucrypt-devel @@ -0,0 +1 @@ +zulucrypt/ \ No newline at end of file diff --git a/srcpkgs/zulucrypt-gui b/srcpkgs/zulucrypt-gui new file mode 120000 index 00000000000..9fe8a0230e6 --- /dev/null +++ b/srcpkgs/zulucrypt-gui @@ -0,0 +1 @@ +zulucrypt \ No newline at end of file diff --git a/srcpkgs/zulucrypt/patches/20-disable-auto-update.patch b/srcpkgs/zulucrypt/patches/20-disable-auto-update.patch new file mode 100644 index 00000000000..42b2a7aa54c --- /dev/null +++ b/srcpkgs/zulucrypt/patches/20-disable-auto-update.patch @@ -0,0 +1,14 @@ +#patch "check for update" function + +--- zuluCrypt-gui/zulucrypt.ui ++++ zuluCrypt-gui/zulucrypt.ui +@@ -493,6 +493,9 @@ + + + ++ ++ false ++ + + Check For Update + diff --git a/srcpkgs/zulucrypt/patches/30-missing-PATH_MAX.patch b/srcpkgs/zulucrypt/patches/30-missing-PATH_MAX.patch new file mode 100644 index 00000000000..395ebb7d962 --- /dev/null +++ b/srcpkgs/zulucrypt/patches/30-missing-PATH_MAX.patch @@ -0,0 +1,23 @@ +# patch missing PATH_MAX constant for musl-builds +# source: https://stackoverflow.com/questions/9449241/where-is-path-max-defined-in-linux +--- zuluCrypt-cli/bin/volumes.c ++++ zuluCrypt-cli/bin/volumes.c +@@ -33,6 +33,7 @@ + #include + + #include "udev_support.h" ++#include + + /* + * NOTE: This source file was previously named "partition.c" + +--- zuluSafe/zuluSafe.c ++++ zuluSafe/zuluSafe.c +@@ -34,6 +34,7 @@ + + #include "lxqtwallet.h" + #include "version.h" ++#include + + #define PASSWORD_SIZE 512 + #define WALLET_NAME_SIZE 512 diff --git a/srcpkgs/zulucrypt/template b/srcpkgs/zulucrypt/template new file mode 100644 index 00000000000..0bafd21ca0d --- /dev/null +++ b/srcpkgs/zulucrypt/template @@ -0,0 +1,64 @@ +# Template file for 'zulucrypt' +pkgname=zulucrypt +version=5.4.0 +revision=1 +wrksrc="zuluCrypt-${version}" +build_style=cmake +configure_args="-DINTERNAL_ZULUPLAY=false +$(vopt_if qt4 -DQT5=false) +-DUDEVSUPPORT=$(vopt_if udev true false) +-DUSE_POLKIT=$(vopt_if polkit true false) +-DHOMEMOUNTPREFIX=$(vopt_if homemount true false)" +#set to "false" once we have lxqt_wallet in void-packages +configure_args+=" -INTERNAL_LXQT_WALLET=true" +hostmakedepends="pkg-config" +makedepends="zuluplay-devel libblkid-devel cryptsetup-devel libgcrypt-devel +device-mapper-devel libuuid-devel $(vopt_if pwquality libpwquality-devel) +$(vopt_if gnome libsecret-devel) $(vopt_if kde kwallet-devel) +$(vopt_if qt4 qt-devel qt5-devel)" +short_desc="Front end to cryptsetup and tcplay, supports veracrypt" +maintainer="Piraty " +license="GPL-2" +homepage="https://mhogomchungu.github.io/zuluCrypt" +distfiles="https://github.com/mhogomchungu/zuluCrypt/archive/${version}.tar.gz" +checksum=c22cd0c6e0d867d844c330ff9e33c3a807bbb5c23b07d4d6928d25a6092507b4 + +#https://github.com/mhogomchungu/zuluCrypt/blob/e138cc4459545b2e0f729814791a045c31b63014/BUILD_INSTRUCTIONS +build_options="udev kde gnome pwquality qt4 polkit homemount" +desc_option_udev="Enable support for udev" +desc_option_kde="Enable support for KDE's kwallet" +desc_option_pwquality="Use libpwquality to check the quality of passwords" +desc_option_qt4="Use Qt4 instead of Qt5" +desc_option_polkit="Enable support for polkit" +desc_option_homemount="Use homedir as mountpoint, not /run/media/private" + +build_options_default="udev pwquality polkit" + +if [ -n "$CROSS_BUILD" ]; then + hostmakedepends+=" $(vopt_if qt4 qt-devel qt5-devel)" +fi + +post_install() { + #delete redundant icons + rm ${DESTDIR}/usr/share/icons/zulu*.png +} + +zulucrypt-gui_package() { + short_desc+=" - GUI tools" + depends="${sourcepkg}>=${version}_${revision}" + pkg_install() { + vmove "usr/bin/*-gui" + vmove "usr/share/icons/*" + vmove "usr/share/pixmaps/*" + } +} + +zulucrypt-devel_package() { + short_desc+=" - development files" + depends="${sourcepkg}>=${version}_${revision}" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove "usr/lib/*.so" + } +}