From f8fccf32c247b0bd04eeadef88e7080446d392e2 Mon Sep 17 00:00:00 2001 From: Andrew <51118083+ArionThinker@users.noreply.github.com> Date: Tue, 9 May 2023 15:41:33 +0300 Subject: [PATCH] Create package.yml --- .../sourceforge.net/net-tools/package.yml | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 projects/sourceforge.net/net-tools/package.yml diff --git a/projects/sourceforge.net/net-tools/package.yml b/projects/sourceforge.net/net-tools/package.yml new file mode 100644 index 00000000..38ef412d --- /dev/null +++ b/projects/sourceforge.net/net-tools/package.yml @@ -0,0 +1,41 @@ +distributable: + url: https://downloads.sourceforge.net/project/net-tools/net-tools-{{version.marketing}}.tar.xz + strip-components: 1 + +display-name: net-tools + +versions: + url: https://sourceforge.net/projects/net-tools/files/ + match: /net-tools-\d+.\d+.tar.xz + strip: + - /^net-tools-/ + - /.tar.xz + +platforms: + - linux + +build: + dependencies: + tea.xyz/gx/cc: c99 + tea.xyz/gx/make: '*' + script: | + sed -i '/IFS='\''@'\'' read ans || exit 1/d' configure.sh + make config + make + make $ARGS install + env: + ARGS: + - DESTDIR="{{prefix}}" + + +provides: + - bin/hostname + - bin/ifconfig + - bin/netstat + - bin/route + +test: | + hostname --version | grep {{version.marketing}} + ifconfig --version | grep {{version.marketing}} + netstat --version | grep {{version.marketing}} + route --version | grep {{version.marketing}}