aboutsummaryrefslogtreecommitdiff
path: root/package/lighttpd/lighttpd.mk
diff options
context:
space:
mode:
authorGravatar David Anders <dave123@abcsinc.com>2006-01-23 19:46:56 +0000
committerGravatar David Anders <dave123@abcsinc.com>2006-01-23 19:46:56 +0000
commit7b4c85567443eed1a07fe050e0b0552d4906ab37 (patch)
treede42c87e2ef88ae720e99c808f8109dfac862296 /package/lighttpd/lighttpd.mk
parent3c0209f2885e971379d26b6d28282a28cba26ca5 (diff)
downloadbuildroot-7b4c85567443eed1a07fe050e0b0552d4906ab37.tar.gz
buildroot-7b4c85567443eed1a07fe050e0b0552d4906ab37.tar.bz2
add package for lighttpd per case 0000509
Diffstat (limited to 'package/lighttpd/lighttpd.mk')
-rw-r--r--package/lighttpd/lighttpd.mk70
1 files changed, 70 insertions, 0 deletions
diff --git a/package/lighttpd/lighttpd.mk b/package/lighttpd/lighttpd.mk
new file mode 100644
index 0000000000..fcb5916518
--- /dev/null
+++ b/package/lighttpd/lighttpd.mk
@@ -0,0 +1,70 @@
+#############################################################
+#
+# lighttpd
+#
+#############################################################
+LIGHTTPD_VER:=1.4.3
+LIGHTTPD_SOURCE:=lighttpd-$(LIGHTTPD_VER).tar.gz
+LIGHTTPD_SITE:=http://www.lighttpd.net/download
+LIGHTTPD_DIR:=$(BUILD_DIR)/lighttpd-$(LIGHTTPD_VER)
+LIGHTTPD_CAT:=zcat
+LIGHTTPD_BINARY:=src/lighttpd
+LIGHTTPD_TARGET_BINARY:=usr/sbin/lighttpd
+
+$(DL_DIR)/$(LIGHTTPD_SOURCE):
+ $(WGET) -P $(DL_DIR) $(LIGHTTPD_SITE)/$(LIGHTTPD_SOURCE)
+
+lighttpd-source: $(DL_DIR)/$(LIGHTTPD_SOURCE)
+
+#############################################################
+#
+# build lighttpd for use on the target system
+#
+#############################################################
+$(LIGHTTPD_DIR)/.unpacked: $(DL_DIR)/$(LIGHTTPD_SOURCE)
+ $(LIGHTTPD_CAT) $(DL_DIR)/$(LIGHTTPD_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ toolchain/patch-kernel.sh $(LIGHTTPD_DIR) package/lighttpd/ lighttpd\*.patch
+ touch $(LIGHTTPD_DIR)/.unpacked
+
+$(LIGHTTPD_DIR)/.configured: $(LIGHTTPD_DIR)/.unpacked
+ (cd $(LIGHTTPD_DIR); rm -rf config.cache; \
+ $(TARGET_CONFIGURE_OPTS) \
+ CFLAGS="$(TARGET_CFLAGS)" \
+ ./configure \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME) \
+ --prefix=/usr \
+ --libexecdir=/usr/lib \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --with-openssl \
+ --without-pcre \
+ --program-prefix="" \
+ );
+ touch $(LIGHTTPD_DIR)/.configured
+
+$(LIGHTTPD_DIR)/$(LIGHTTPD_BINARY): $(LIGHTTPD_DIR)/.configured
+ $(MAKE) -C $(LIGHTTPD_DIR)
+
+$(TARGET_DIR)/$(LIGHTTPD_TARGET_BINARY): $(LIGHTTPD_DIR)/$(LIGHTTPD_BINARY)
+ $(MAKE) DESTDIR=$(TARGET_DIR) -C $(LIGHTTPD_DIR) install
+ $(INSTALL) -m 0755 -D $(LIGHTTPD_DIR)/debian/init.d $(TARGET_DIR)/etc/init.d/S99lighttpd
+
+lighttpd: uclibc openssl $(TARGET_DIR)/$(LIGHTTPD_TARGET_BINARY)
+
+lighttpd-clean:
+ $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(LIGHTTPD_DIR) uninstall
+ -$(MAKE) -C $(LIGHTTPD_DIR) clean
+
+lighttpd-dirclean:
+ rm -rf $(LIGHTTPD_DIR)
+
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_LIGHTTPD)),y)
+TARGETS+=lighttpd
+endif