wok-6.x view nwipe/receipt @ rev 23212
updated nagios-nsca (2.9.1 -> 2.9.2)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Mar 21 14:45:16 2020 +0100 (2020-03-21) |
parents | 3c65dd239f19 |
children | 6b6d14c9f7e9 |
line source
1 # SliTaz package receipt.
3 PACKAGE="nwipe"
4 VERSION="0.28"
5 CATEGORY="misc"
6 SHORT_DESC="nwipe secure disk eraser"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://github.com/martijnvanbrummelen/nwipe"
11 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"
13 DEPENDS="ncurses parted util-linux-uuid dmidecode"
14 BUILD_DEPENDS="pkg-config libtool ncurses-dev parted-dev dmidecode"
16 current_version()
17 {
18 wget -O - $WEB_SITE/releases 2>/dev/null | \
19 sed '/archive.*tar/!d;s|.*archive/v\(.*\).tar.*|\1|;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 export LDFLAGS="$LDFLAGS -ltinfo"
26 sed 's|sys/types.h>|&\n#include <sys/wait.h>|' -i src/nwipe.h
27 ./init.sh
28 ./configure --prefix=/usr \
29 --mandir=/usr/share/man \
30 $CONFIGURE_ARGS &&
31 make &&
32 make DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr
39 cp -a $install/usr/bin $fs/usr
40 }