contrib/arpon/Pkgfile

27 lines
797 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-05-25 17:26:35 +02:00
cmake -SArpON-$version -Bbuild \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_FLAGS="-Wno-error=stringop-truncation"
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
}