summaryrefslogtreecommitdiff
path: root/arpon/Pkgfile
blob: addcd4f4b35ed06d7a4d184e869c96787fcf2b18 (plain)
    1 # Description: daemon and tools to handle all ARP aspects
    2 # URL:         http://arpon.sf.net
    3 # Maintainer:  Thomas Penteker, tek at serverop dot de
    4 # Depends on:  cmake libdnet
    5 
    6 name=arpon
    7 version=3.0-ng
    8 release=1
    9 source=(http://download.sourceforge.net/$name/ArpON-$version.tar.gz
   10   arpon
   11   # https://aur.archlinux.org/cgit/aur.git/tree/?h=arpon-ng
   12   arpon-gcc7.patch arpon-syslog.patch)
   13 
   14 build() {
   15   install arpon -D $PKG/etc/rc.d/arpon
   16   patch -Np2 -d ArpON-$version -i $SRC/arpon-gcc7.patch
   17   patch -Np2 -d ArpON-$version -i $SRC/arpon-syslog.patch
   18 
   19   [[ -e /usr/bin/ninja ]] && PKGMK_ARPON+=' -G Ninja'
   20   cmake -S ArpON-$version -B build $PKGMK_ARPON \
   21     -D CMAKE_INSTALL_PREFIX=/usr \
   22     -D CMAKE_BUILD_TYPE=Release \
   23     -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
   24     -D CMAKE_C_FLAGS_RELEASE="$CFLAGS -Wno-error=stringop-truncation" \
   25     -Wno-dev
   26   cmake --build build
   27   DESTDIR=$PKG cmake --install build
   28   rm -r $PKG/usr/share/doc
   29 }

Generated by cgit