2014-09-28 12:02:12 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# leafnode2
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
LEAFNODE2_VERSION = 2.0.0.alpha20140727b
|
|
|
|
LEAFNODE2_SOURCE = leafnode-$(LEAFNODE2_VERSION).tar.bz2
|
2016-10-29 19:11:45 +02:00
|
|
|
LEAFNODE2_SITE = http://krusty.dt.e-technik.tu-dortmund.de/~ma/leafnode/beta
|
2017-03-30 15:43:34 +02:00
|
|
|
LEAFNODE2_LICENSE = LGPL-2.1
|
2014-09-28 12:02:12 +02:00
|
|
|
LEAFNODE2_LICENSE_FILES = COPYING COPYING.LGPL
|
|
|
|
LEAFNODE2_DEPENDENCIES = host-pcre pcre
|
|
|
|
|
|
|
|
LEAFNODE2_CONF_ENV = \
|
|
|
|
PCRECONFIG="$(STAGING_DIR)/usr/bin/pcre-config"
|
|
|
|
|
2014-12-26 18:38:11 +01:00
|
|
|
# --enable-runas-user use 'news' as default but the configure stop
|
|
|
|
# if news doesn't exist on the build host.
|
2017-04-05 00:50:09 +02:00
|
|
|
# Use 'root' while cross-compiling
|
2014-09-28 12:02:12 +02:00
|
|
|
LEAFNODE2_CONF_OPTS = \
|
|
|
|
--sysconfdir=/etc/leafnode2 \
|
2014-12-26 18:38:11 +01:00
|
|
|
--enable-spooldir=/var/spool/news \
|
|
|
|
--enable-runas-user=root
|
2014-09-28 12:02:12 +02:00
|
|
|
|
|
|
|
# Leafnode2 needs the host version of b_sortnl during
|
|
|
|
# compilation. Instead of creating a seperate host package and
|
|
|
|
# installing b_sortnl to $(HOST_DIR) this binary is compiled
|
|
|
|
# on-the-fly, host-pcre is needed for this
|
|
|
|
define LEAFNODE2_BUILD_SORTNL_TOOL
|
|
|
|
cd $(@D); \
|
|
|
|
$(HOSTCC) $(HOST_CFLAGS) -o b_sortnl_host \
|
|
|
|
arc4random.c mergesort.c b_sortnl.c critmem_malloc.c \
|
|
|
|
critmem_realloc.c -DHAVE_CONFIG_H -I$(HOST_DIR)/usr/include \
|
|
|
|
-L $(HOST_DIR)/usr/lib -Wl,-rpath,$(HOST_DIR)/usr/lib -lpcre
|
|
|
|
endef
|
|
|
|
|
|
|
|
LEAFNODE2_PRE_BUILD_HOOKS += LEAFNODE2_BUILD_SORTNL_TOOL
|
|
|
|
|
2014-10-04 23:59:17 +02:00
|
|
|
define LEAFNODE2_USERS
|
|
|
|
news -1 news -1 * - - - Leafnode2 daemon
|
|
|
|
endef
|
|
|
|
|
2014-09-28 12:02:12 +02:00
|
|
|
$(eval $(autotools-package))
|