summaryrefslogtreecommitdiff
path: root/iputils/Pkgfile
blob: 4025b6d68ae53d0f41363b5cdd6254a49e61548a (plain)
    1 # Description: Basic networking utilities
    2 # URL:         https://github.com/iputils/iputils
    3 # Maintainer:  CRUX System Team, core-ports at crux dot nu
    4 # Depends on:  libcap openssl meson ninja
    5 
    6 name=iputils
    7 version=s20200821
    8 release=1
    9 source=(https://github.com/iputils/iputils/archive/$version/$name-$version.tar.gz
   10         $name-man-$version.tar.xz)
   11 
   12 build() {
   13     cd $name-$version
   14 
   15     meson build --prefix /usr \
   16         -D BUILD_MANS=false \
   17         -D BUILD_TRACEROUTE6=true \
   18         -D BUILD_RARPD=true
   19 
   20     ninja -C build
   21 
   22     install -d $PKG/{{sbin,bin},usr/{bin,sbin,share/man/man8}}
   23     install build/ping/ping $PKG/bin/
   24     install build/arping $PKG/sbin/
   25     install build/{tracepath,clockdiff,rdisc,rarpd} $PKG/usr/sbin/
   26     install build/ninfod/ninfod $PKG/usr/sbin/
   27     install build/traceroute6 $PKG/usr/bin/
   28     install -m 0644 $SRC/*.8 $PKG/usr/share/man/man8
   29     
   30     chmod u+s $PKG/bin/ping $PKG/usr/bin/traceroute6
   31 }

Generated by cgit