wok rev 22841

Add nwipe (secure disk eraser)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 13 12:20:32 2020 +0100 (6 days ago)
parents bd6074cbab4c
children 5700c161e93e
files busybox/stuff/daemon codec2/receipt cryptsetup/receipt lz4/receipt nwipe/receipt zstd/receipt
line diff
     1.1 --- a/busybox/stuff/daemon	Wed Feb 12 11:04:59 2020 +0100
     1.2 +++ b/busybox/stuff/daemon	Thu Feb 13 12:20:32 2020 +0100
     1.3 @@ -54,7 +54,8 @@
     1.4      fi
     1.5      action 'Starting %s: %s...' "$DESC" $NAME
     1.6      $DAEMON $OPTIONS
     1.7 -    [ -f $PIDFILE ] || pidof $NAME | awk '{print $1}' > $PIDFILE
     1.8 +    [ -f $PIDFILE ] ||
     1.9 +    ps x | sed "/$NAME/!d;/sed/d;/etc\\/init/d" | awk '{ print $1 }' > $PIDFILE
    1.10      active_pidfile $PIDFILE $NAME
    1.11      status
    1.12      ;;
    1.13 @@ -78,7 +79,8 @@
    1.14      kill $(cat $PIDFILE)
    1.15      sleep 2
    1.16      $DAEMON $OPTIONS
    1.17 -    [ -f $PIDFILE ] || pidof $NAME | awk '{print $1}' > $PIDFILE
    1.18 +    [ -f $PIDFILE ] ||
    1.19 +    ps x | sed "/$NAME/!d;/sed/d;/etc\\/init/d" | awk '{ print $1 }' > $PIDFILE
    1.20      active_pidfile $PIDFILE $NAME
    1.21      status
    1.22      ;;
     2.1 --- a/codec2/receipt	Wed Feb 12 11:04:59 2020 +0100
     2.2 +++ b/codec2/receipt	Thu Feb 13 12:20:32 2020 +0100
     2.3 @@ -14,7 +14,7 @@
     2.4  
     2.5  current_version()
     2.6  {
     2.7 -	wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
     2.8 +	wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
     2.9  	sed '/archive.*tar/!d;s|.*archive/v\(.*\).tar.*|\1|;q'
    2.10  }
    2.11  
     3.1 --- a/cryptsetup/receipt	Wed Feb 12 11:04:59 2020 +0100
     3.2 +++ b/cryptsetup/receipt	Thu Feb 13 12:20:32 2020 +0100
     3.3 @@ -19,7 +19,7 @@
     3.4  current_version()
     3.5  {
     3.6  	local base=$(wget -O - ${WGET_URL%/v*} 2>/dev/null | \
     3.7 -		sed '/href/!d;s|.*href="\(.*\)".*|\1|' x | tail -n 1)
     3.8 +		sed '/href/!d;s|.*href="\(.*\)".*|\1|' | tail -n 1)
     3.9  	wget -O - ${WGET_URL%/v*}/$base 2>/dev/null | sed \
    3.10  		"/href/!d;/z/!d;s|.*href=\"$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | \
    3.11  		tail -n1
     4.1 --- a/lz4/receipt	Wed Feb 12 11:04:59 2020 +0100
     4.2 +++ b/lz4/receipt	Thu Feb 13 12:20:32 2020 +0100
     4.3 @@ -15,7 +15,7 @@
     4.4  
     4.5  current_version()
     4.6  {
     4.7 -	wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
     4.8 +	wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
     4.9  	sed '/archive.*tar/!d;s|.*archive/v\(.*\).tar.*|\1|;q'
    4.10  }
    4.11  
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/nwipe/receipt	Thu Feb 13 12:20:32 2020 +0100
     5.3 @@ -0,0 +1,39 @@
     5.4 +# SliTaz package receipt.
     5.5 +
     5.6 +PACKAGE="nwipe"
     5.7 +VERSION="0.26"
     5.8 +CATEGORY="misc"
     5.9 +SHORT_DESC="nwipe secure disk eraser"
    5.10 +MAINTAINER="pascal.bellard@slitaz.org"
    5.11 +LICENSE="GPL2"
    5.12 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    5.13 +WEB_SITE="https://github.com/martijnvanbrummelen/nwipe"
    5.14 +WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"
    5.15 +
    5.16 +DEPENDS="ncurses parted util-linux-uuid"
    5.17 +BUILD_DEPENDS="pkg-config libtool ncurses-dev parted-dev dmidecode"
    5.18 +
    5.19 +current_version()
    5.20 +{
    5.21 +	wget -O - $WEB_SITE/releases 2>/dev/null | \
    5.22 +	sed '/archive.*tar/!d;s|.*archive/v\(.*\).tar.*|\1|;q'
    5.23 +}
    5.24 +
    5.25 +# Rules to configure and make the package.
    5.26 +compile_rules()
    5.27 +{
    5.28 +	export LDFLAGS="$LDFLAGS -ltinfo"
    5.29 +	./init.sh
    5.30 +	./configure --prefix=/usr \
    5.31 +		--mandir=/usr/share/man \
    5.32 +		$CONFIGURE_ARGS &&
    5.33 +	make &&
    5.34 +	make DESTDIR=$DESTDIR install
    5.35 +}
    5.36 +
    5.37 +# Rules to gen a SliTaz package suitable for Tazpkg.
    5.38 +genpkg_rules()
    5.39 +{
    5.40 +	mkdir -p $fs/usr
    5.41 +	cp -a $install/usr/bin $fs/usr
    5.42 +}
     6.1 --- a/zstd/receipt	Wed Feb 12 11:04:59 2020 +0100
     6.2 +++ b/zstd/receipt	Thu Feb 13 12:20:32 2020 +0100
     6.3 @@ -17,7 +17,7 @@
     6.4  
     6.5  current_version()
     6.6  {
     6.7 -	wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
     6.8 +	wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
     6.9  	sed '/archive.*tar/!d;s|.*archive/v\(.*\).tar.*|\1|;q'
    6.10  }
    6.11