lldpd does not support seccomp on aarch64 and aborts with
an corresponding error during compile time when enabled.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
name = lldpd
version = 1.0.16
-release = 1
+release = 1.1
groups = Networking/Tools
url = https://lldpd.github.io
requires
libcap-devel
libevent-devel
- libseccomp-devel
+ (libseccomp-devel if arch(x86_64))
libxml2-devel
pkg-config
readline-devel
configure_options += \
--without-embedded-libevent \
--with-readline \
- --with-seccomp \
--with-xml \
--with-privsep-user=lldpd \
--with-privsep-group=lldpd
+ # lldpd does not support seccomp on aarch64.
+ if "%{DISTRO_ARCH}" == "aarch64"
+ configure_options += --without-seccomp
+ else
+ configure_options += --with-seccomp
+ end
+
prepare_cmds
%{create_user}
end