• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/leafnode2/leafnode2.mk
Romain NaourRomain Naour committed 159cdbd5a3b26 Dec 2014
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
################################################################################
2
#
3
# leafnode2
4
#
5
################################################################################
6
​
7
LEAFNODE2_VERSION = 2.0.0.alpha20140727b
8
LEAFNODE2_SOURCE = leafnode-$(LEAFNODE2_VERSION).tar.bz2
9
LEAFNODE2_SITE = http://home.pages.de/~mandree/leafnode/beta
10
LEAFNODE2_LICENSE = LGPLv2.1
11
LEAFNODE2_LICENSE_FILES = COPYING COPYING.LGPL
12
LEAFNODE2_DEPENDENCIES = host-pcre pcre
13
​
14
LEAFNODE2_CONF_ENV = \
15
    PCRECONFIG="$(STAGING_DIR)/usr/bin/pcre-config"
16
​
17
# --enable-runas-user use 'news' as default but the configure stop
18
# if news doesn't exist on the build host.
19
# Use 'root' while cross-compiling 
20
LEAFNODE2_CONF_OPTS = \
21
    --sysconfdir=/etc/leafnode2 \
22
    --enable-spooldir=/var/spool/news \
23
    --enable-runas-user=root
24
​
25
# Leafnode2 needs the host version of b_sortnl during
26
# compilation. Instead of creating a seperate host package and
27
# installing b_sortnl to $(HOST_DIR) this binary is compiled
28
# on-the-fly, host-pcre is needed for this
29
define LEAFNODE2_BUILD_SORTNL_TOOL
30
    cd $(@D); \
31
    $(HOSTCC) $(HOST_CFLAGS) -o b_sortnl_host \
32
        arc4random.c mergesort.c b_sortnl.c critmem_malloc.c \
33
        critmem_realloc.c -DHAVE_CONFIG_H -I$(HOST_DIR)/usr/include \
34
        -L $(HOST_DIR)/usr/lib -Wl,-rpath,$(HOST_DIR)/usr/lib -lpcre
35
endef
36
​
37
LEAFNODE2_PRE_BUILD_HOOKS += LEAFNODE2_BUILD_SORTNL_TOOL
38
​
39
define LEAFNODE2_USERS
40
    news -1 news -1 * - - - Leafnode2 daemon
41
endef
42
​
43
$(eval $(autotools-package))
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.