Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] need help adding apache to buildroot
@ 2013-01-16 21:30 Jenkins, Lee
  2013-01-16 21:35 ` Gustavo Zacarias
                   ` (2 more replies)
  0 siblings, 3 replies; 28+ messages in thread
From: Jenkins, Lee @ 2013-01-16 21:30 UTC (permalink / raw)
  To: buildroot

Hello. I'm adding apache httpd to my buildroot project but I'm stuck and need some help.

Here's what I've done so far:


1.       created a directory buildroot/package/apache

2.       created buildroot/package/apache/Config.in (see below)

3.       as a starting point, downloaded the panda-buildroot apache.mk (see below)  to buildroot/package/apache

4.       added a line <<source "package/apache/Config.in">> to buildroot/package/Config.in under "Networking applications"

5.       ran "make menuconfig", selected "apache" in "Package Selection" > "Networking applications", saved & exited

6.       ran "make" and expected httpd to be built and show up in my rootfs target. It was not there.

7.       ran "make apache-source" as a test, but make replies: "No rule to make target `apache-source'. Stop."

I expected make to pick up the new package, but that's clearly not happening. What am I missing?

Lee Jenkins


----- buildroot/package/apache/Config.in -----

config BR2_PACKAGE_APACHE
     bool "apache"
     help
       Apache web server software

----- buildroot/package/apache/apache.mk -----

#############################################################
#
# apache
#
#############################################################
APACHE_VERSION    = 2.2.19
#APACHE_SITE       = http://mir2.ovh.net/ftp.apache.org/dist/httpd/
APACHE_SITE       = http://archive.apache.org/dist/httpd/
APACHE_SOURCE = httpd-$(APACHE_VERSION).tar.bz2
APACHE_INSTALL_STAGING = YES
APACHE_INSTALL_TARGET = YES
APACHE_AUTORECONF = YES

APACHE_CONF_ENV += \
        ac_cv_file__dev_zero=yes \
        ac_cv_func_setpgrp_void=yes \
        apr_cv_tcp_nodelay_with_cork=yes \
        ac_cv_sizeof_struct_iovec=8 \
        apr_cv_process_shared_works=yes \
        apr_cv_mutex_robust_shared=no \
        ac_cv_struct_rlimit=yes \
        ap_cv_void_ptr_lt_long=no \
        CC="$(TARGET_CC)" \
        CFLAGS="$(TARGET_CFLAGS)" \
        LDFLAGS="$(TARGET_LDFLAGS)" \

APACHE_CONF_OPT += \
        --host="$(REAL_GNU_TARGET_NAME)" \
        --prefix="/apacheSW/" \
        --enable-so \
        --enable-module=all





define APACHE_CONFIGURE_CMDS
        (cd $(@D) && rm -rf config.cache; \
                $(APACHE_CONF_ENV) \
                ./configure \
                $(APACHE_CONF_OPT) \
        )
endef
define ADD_INIT_SCRIPT

$(INSTALL) -m 0755 -D $(APACHE_DIR_PREFIX)/$(APACHE_NAME)/Apache_InitScript \
        $(TARGET_DIR)/etc/init.d/S90Apache;
endef
APACHE_POST_INSTALL_STAGING_HOOKS += ADD_INIT_SCRIPT


$(eval $(call AUTOTARGETS))



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130116/797f8c3a/attachment-0001.html>

^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2013-09-07  6:12 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-16 21:30 [Buildroot] need help adding apache to buildroot Jenkins, Lee
2013-01-16 21:35 ` Gustavo Zacarias
2013-01-17 22:41   ` Jenkins, Lee
2013-01-18  9:25     ` Jérôme Pouiller
2013-01-18 15:31       ` Thomas Petazzoni
2013-01-18 16:11         ` [Buildroot] [PATCH] Add support for plain URL in $(PKG)_PATCH variable Jérôme Pouiller
2013-01-30 18:59           ` Yann E. MORIN
2013-01-30 19:23           ` Yann E. MORIN
2013-01-30 22:37             ` Jérôme Pouiller
2013-01-30 22:37               ` Jérôme Pouiller
2013-01-30 22:54                 ` Yann E. MORIN
2013-01-30 23:11                   ` Jérôme Pouiller
2013-01-31  8:18                     ` [Buildroot] [PATCH 1/2] " Jérôme Pouiller
2013-01-31  8:18                       ` [Buildroot] [PATCH 2/2] Add $(PKG_NAME) in name of downloaded patches Jérôme Pouiller
2013-04-26  6:18                         ` Arnout Vandecappelle
2013-05-13 15:51                           ` [Buildroot] [PATCH v2] Add support for plain URL in $(PKG)_PATCH variable Jérôme Pouiller
2013-05-13 20:59                             ` Yann E. MORIN
2013-05-14  9:51                               ` Markos Chandras
2013-09-07  6:12                             ` Peter Korsgaard
2013-04-26  6:00                       ` [Buildroot] [PATCH 1/2] " Arnout Vandecappelle
2013-01-31  8:20                     ` [Buildroot] [PATCH] " Jérôme Pouiller
2013-01-30 22:50             ` Thomas Petazzoni
2013-01-30 22:57               ` Yann E. MORIN
2013-01-30 23:04                 ` Jérôme Pouiller
2013-01-30 23:10                   ` Yann E. MORIN
2013-01-16 21:54 ` [Buildroot] need help adding apache to buildroot Thomas Petazzoni
2013-07-07 14:16 ` Stephan Hoffmann
2013-07-18 16:46   ` Jenkins, Lee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox