new package: tcplay-veracrypt (#209)
This commit is contained in:
parent
6fc4a564ac
commit
b6101649ab
@ -11,6 +11,10 @@ TERMUX_PKG_BREAKS="libdevmapper-dev"
|
|||||||
TERMUX_PKG_REPLACES="libdevmapper-dev"
|
TERMUX_PKG_REPLACES="libdevmapper-dev"
|
||||||
TERMUX_PKG_BUILD_IN_SRC=true
|
TERMUX_PKG_BUILD_IN_SRC=true
|
||||||
|
|
||||||
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
||||||
|
--enable-pkgconfig
|
||||||
|
"
|
||||||
|
|
||||||
termux_step_make() {
|
termux_step_make() {
|
||||||
make -j"${TERMUX_MAKE_PROCESSES}" lib.device-mapper
|
make -j"${TERMUX_MAKE_PROCESSES}" lib.device-mapper
|
||||||
}
|
}
|
||||||
|
7
root-packages/tcplay-veracrypt/build.sh
Normal file
7
root-packages/tcplay-veracrypt/build.sh
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
TERMUX_PKG_HOMEPAGE="https://github.com/veracrypt/tc-play"
|
||||||
|
TERMUX_PKG_DESCRIPTION="Free and simple TrueCrypt implementation based on dm-crypt."
|
||||||
|
TERMUX_PKG_LICENSE="BSD 2-Clause"
|
||||||
|
TERMUX_PKG_SRCURL="https://github.com/veracrypt/tc-play/archive/1147f7049f281c9d6099507b6dc1a5a304a2e1d4.zip"
|
||||||
|
TERMUX_PKG_SHA256="d5224c167542138054b261df00183baf498c51516df9055b8492b2c082a0d1db"
|
||||||
|
TERMUX_PKG_VERSION="2.0"
|
||||||
|
TERMUX_PKG_DEPENDS="libdevmapper, libuuid, libgcrypt"
|
28
root-packages/tcplay-veracrypt/makedev.patch
Normal file
28
root-packages/tcplay-veracrypt/makedev.patch
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
--- a/tcplay.c 2020-10-16 18:39:11.830645021 +0300
|
||||||
|
+++ b/tcplay.c 2020-10-16 18:40:49.622279293 +0300
|
||||||
|
@@ -58,6 +58,7 @@
|
||||||
|
#include "tcplay.h"
|
||||||
|
#include "humanize.h"
|
||||||
|
|
||||||
|
+#define MKDEV(ma,mi) (((dev_t)mi & 0xff) | ((dev_t)ma << 8) | (((dev_t)mi & ~0xff) << 12))
|
||||||
|
|
||||||
|
/* XXX TODO:
|
||||||
|
* - LRW-benbi support? needs further work in dm-crypt and even opencrypto
|
||||||
|
@@ -1398,7 +1399,7 @@
|
||||||
|
xlate_maj_min(const char *start_path __unused, int max_depth __unused,
|
||||||
|
char *buf, size_t bufsz, uint32_t maj, uint32_t min)
|
||||||
|
{
|
||||||
|
- dev_t dev = makedev(maj, min);
|
||||||
|
+ dev_t dev = MKDEV(maj, min);
|
||||||
|
|
||||||
|
snprintf(buf, bufsz, "/dev/%s", devname(dev, S_IFCHR));
|
||||||
|
return 1;
|
||||||
|
@@ -1409,7 +1410,7 @@
|
||||||
|
xlate_maj_min(const char *start_path, int max_depth, char *buf, size_t bufsz,
|
||||||
|
uint32_t maj, uint32_t min)
|
||||||
|
{
|
||||||
|
- dev_t dev = makedev(maj, min);
|
||||||
|
+ dev_t dev = MKDEV(maj, min);
|
||||||
|
char path[PATH_MAX];
|
||||||
|
struct stat sb;
|
||||||
|
struct dirent *ent;
|
Loading…
Reference in New Issue
Block a user