contrib/arpon/Pkgfile

30 lines
945 B
Plaintext
Raw Normal View History

2009-01-31 00:04:54 +01:00
# Description: daemon and tools to handle all ARP aspects
# URL: http://arpon.sf.net
# Maintainer: Thomas Penteker, tek at serverop dot de
2020-05-25 17:26:35 +02:00
# Depends on: cmake libdnet
2009-01-31 00:04:54 +01:00
name=arpon
2017-05-07 23:51:52 +02:00
version=3.0-ng
2009-01-31 00:04:54 +01:00
release=1
2020-05-25 17:26:35 +02:00
source=(http://download.sourceforge.net/$name/ArpON-$version.tar.gz
arpon
# https://aur.archlinux.org/cgit/aur.git/tree/?h=arpon-ng
arpon-gcc7.patch arpon-syslog.patch)
2009-01-31 00:04:54 +01:00
build() {
2020-05-25 17:26:35 +02:00
install arpon -D $PKG/etc/rc.d/arpon
patch -Np2 -d ArpON-$version -i $SRC/arpon-gcc7.patch
patch -Np2 -d ArpON-$version -i $SRC/arpon-syslog.patch
2017-05-07 23:51:52 +02:00
2020-11-08 10:31:07 +01:00
[[ -e /usr/bin/ninja ]] && PKGMK_ARPON+=' -G Ninja'
cmake -S ArpON-$version -B build $PKGMK_ARPON \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=Release \
2020-12-07 00:48:47 +01:00
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS -Wno-error=stringop-truncation" \
-Wno-dev
2020-05-25 17:26:35 +02:00
cmake --build build
2020-07-08 15:01:36 +02:00
DESTDIR=$PKG cmake --install build
2020-05-25 17:26:35 +02:00
rm -r $PKG/usr/share/doc
2009-01-31 00:04:54 +01:00
}