pantry/projects/sourceforge.net/net-tools/package.yml
Max Howell 81e7a5e16f
pkgx
2023-10-01 14:44:42 -04:00

40 lines
802 B
YAML

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:
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}}