2002-11-18 23:12:38 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# boa
|
|
|
|
#
|
|
|
|
#############################################################
|
2001-12-22 01:56:11 +01:00
|
|
|
|
2002-11-18 23:12:38 +01:00
|
|
|
BOA_VERSION=0.94.14rc4
|
2002-01-05 21:06:55 +01:00
|
|
|
|
2001-12-22 01:56:11 +01:00
|
|
|
# Don't alter below this line unless you (think) you know
|
|
|
|
# what you are doing! Danger, Danger!
|
|
|
|
|
2002-01-05 21:06:55 +01:00
|
|
|
BOA_SOURCE=boa-$(BOA_VERSION).tar.gz
|
2002-11-18 23:12:38 +01:00
|
|
|
BOA_SITE=http://www.boa.org/
|
|
|
|
BOA_DIR=$(BUILD_DIR)/${shell basename $(BOA_SOURCE) .tar.gz}
|
|
|
|
BOA_WORKDIR=$(BUILD_DIR)/boa_workdir
|
2001-12-22 01:56:11 +01:00
|
|
|
|
2002-11-18 23:12:38 +01:00
|
|
|
$(DL_DIR)/$(BOA_SOURCE):
|
2002-11-21 00:16:10 +01:00
|
|
|
$(WGET) -P $(DL_DIR) $(BOA_SITE)/$(BOA_SOURCE)
|
2001-12-22 01:56:11 +01:00
|
|
|
|
2002-11-18 23:12:38 +01:00
|
|
|
$(BOA_DIR)/.unpacked: $(DL_DIR)/$(BOA_SOURCE)
|
|
|
|
gzip -d -c $(DL_DIR)/$(BOA_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
2001-12-22 01:56:11 +01:00
|
|
|
touch $(BOA_DIR)/.unpacked
|
|
|
|
|
2003-01-19 07:07:22 +01:00
|
|
|
$(BOA_WORKDIR)/Makefile: $(BOA_DIR)/.unpacked
|
2002-01-05 21:26:15 +01:00
|
|
|
rm -f $(BOA_WORKDIR)/Makefile
|
2001-12-22 01:56:11 +01:00
|
|
|
mkdir -p $(BOA_WORKDIR)
|
2002-11-18 23:12:38 +01:00
|
|
|
(cd $(BOA_WORKDIR) && CONFIG_SITE=$(SOURCE_DIR)/boa-config.site-$(ARCH) \
|
|
|
|
CC=$(TARGET_CC) $(BOA_DIR)/configure)
|
2001-12-22 01:56:11 +01:00
|
|
|
touch $(BOA_WORKDIR)/.depend
|
2002-01-05 21:06:55 +01:00
|
|
|
|
2002-01-06 19:54:35 +01:00
|
|
|
$(BOA_WORKDIR)/boa $(BOA_WORKDIR)/boa_indexer: $(BOA_WORKDIR)/Makefile
|
|
|
|
rm -f $@
|
2002-11-18 23:12:38 +01:00
|
|
|
$(MAKE) VPATH=$(BOA_DIR)/src/ -C $(BOA_WORKDIR)
|
2001-12-22 01:56:11 +01:00
|
|
|
|
2002-01-05 21:06:55 +01:00
|
|
|
$(BOA_WORKDIR)/.installed: $(BOA_WORKDIR)/boa $(BOA_WORKDIR)/boa_indexer
|
|
|
|
mkdir -p $(TARGET_DIR)/usr/sbin
|
2002-11-18 23:12:38 +01:00
|
|
|
cp -f $(BOA_WORKDIR)/src/boa $(TARGET_DIR)/usr/sbin/boa
|
2002-01-05 21:06:55 +01:00
|
|
|
mkdir -p $(TARGET_DIR)/usr/lib/boa
|
2002-11-18 23:12:38 +01:00
|
|
|
cp -f $(BOA_WORKDIR)/src/boa_indexer $(TARGET_DIR)/usr/lib/boa/boa_indexer
|
2002-01-05 21:06:55 +01:00
|
|
|
mkdir -p $(TARGET_DIR)/etc/boa
|
|
|
|
cp -f $(SOURCE_DIR)/boa.conf $(TARGET_DIR)/etc/boa
|
|
|
|
cp -f $(SOURCE_DIR)/mime.types $(TARGET_DIR)/etc/mime.types
|
|
|
|
strip --strip-all $(TARGET_DIR)/usr/sbin/boa $(TARGET_DIR)/usr/lib/boa/boa_indexer
|
|
|
|
touch $(BOA_WORKDIR)/.installed
|
|
|
|
|
2002-11-18 23:12:38 +01:00
|
|
|
boa: uclibc $(BOA_WORKDIR)/.installed
|
2001-12-22 01:56:11 +01:00
|
|
|
|
2003-11-12 10:31:12 +01:00
|
|
|
boa-source: $(DL_DIR)/$(BOA_SOURCE)
|
|
|
|
|
2002-11-18 23:12:38 +01:00
|
|
|
boa-clean:
|
2001-12-22 01:56:11 +01:00
|
|
|
@if [ -d $(BOA_WORKDIR)/Makefile ] ; then \
|
2002-11-18 23:12:38 +01:00
|
|
|
$(MAKE) -C $(BOA_WORKDIR) clean ; \
|
2001-12-22 01:56:11 +01:00
|
|
|
fi;
|
|
|
|
|
2002-11-18 23:12:38 +01:00
|
|
|
boa-dirclean:
|
2001-12-22 01:56:11 +01:00
|
|
|
rm -rf $(BOA_DIR) $(BOA_WORKDIR)
|
|
|
|
|