Skip to content

Commit

Permalink
bump(main/nwipe): 0.38
Browse files Browse the repository at this point in the history
  • Loading branch information
Biswa96 committed Jan 9, 2025
1 parent 0d3cfba commit b17d40e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 2 additions & 3 deletions packages/nwipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://github.com/martijnvanbrummelen/nwipe
TERMUX_PKG_DESCRIPTION="A program that will securely erase the entire contents of disks"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="0.37"
TERMUX_PKG_REVISION=1
TERMUX_PKG_VERSION="0.38"
TERMUX_PKG_SRCURL=https://github.com/martijnvanbrummelen/nwipe/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=a548bd097da491990d1b0db3fe0ed849340d89281badb46800d3a85ba7df89e0
TERMUX_PKG_SHA256=0c1b19d1a721b995504fc01c21363555f207b25d6749650355a8cd7be09824dd
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_DEPENDS="ncurses, ncurses-ui-libs, parted, libconfig"

Expand Down
4 changes: 3 additions & 1 deletion packages/nwipe/fix-hardcoded-paths.patch
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- a/src/device.c
+++ b/src/device.c
@@ -448,11 +448,11 @@
@@ -520,12 +520,12 @@
int idx2;

char readlink_command[] = "readlink /sys/block/%s";
Expand All @@ -11,8 +11,10 @@
char smartctl_command[] = "smartctl -i %s";
- char smartctl_command2[] = "/sbin/smartctl -i %s";
- char smartctl_command3[] = "/usr/bin/smartctl -i %s";
- char smartctl_command4[] = "/usr/sbin/smartctl -i %s";
+ char smartctl_command2[] = "@TERMUX_PREFIX@/local/bin/smartctl -i %s";
+ char smartctl_command3[] = "@TERMUX_PREFIX@/bin/smartctl -i %s";
+ char smartctl_command4[] = "@TERMUX_PREFIX@/bin/smartctl -i %s";
char device_shortform[50];
char result[512];
char final_cmd_readlink[sizeof( readlink_command ) + sizeof( device_shortform )];
Expand Down

0 comments on commit b17d40e

Please # to comment.