From 971f25976b5eab24ec34bd0b19bea8f21ab1222e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20S=C3=B6ntgen?= Date: Thu, 16 Aug 2012 08:11:31 +0200 Subject: [PATCH] Noux: add noux-pkg/lighttpd --- ports/ports/lighttpd.inc | 2 ++ ports/ports/lighttpd.mk | 20 ++++++++++++++++++++ ports/src/noux-pkg/lighttpd/target.mk | 26 ++++++++++++++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 ports/ports/lighttpd.inc create mode 100644 ports/ports/lighttpd.mk create mode 100644 ports/src/noux-pkg/lighttpd/target.mk diff --git a/ports/ports/lighttpd.inc b/ports/ports/lighttpd.inc new file mode 100644 index 0000000000..2e33ec5dc9 --- /dev/null +++ b/ports/ports/lighttpd.inc @@ -0,0 +1,2 @@ +LIGHTTPD_VERSION = 1.4.31 +LIGHTTPD = lighttpd-$(LIGHTTPD_VERSION) diff --git a/ports/ports/lighttpd.mk b/ports/ports/lighttpd.mk new file mode 100644 index 0000000000..60e8b84790 --- /dev/null +++ b/ports/ports/lighttpd.mk @@ -0,0 +1,20 @@ +include ports/lighttpd.inc + +LIGHTTPD_TGZ = $(LIGHTTPD).tar.gz +LIGHTTPD_URL = http://download.lighttpd.net/lighttpd/releases-1.4.x/$(LIGHTTPD_TGZ) + +# +# Interface to top-level prepare Makefile +# +PORTS += $(LIGHTTPD) + +prepare:: $(CONTRIB_DIR)/$(LIGHTTPD) + +# +# Port-specific local rules +# +$(DOWNLOAD_DIR)/$(LIGHTTPD_TGZ): + $(VERBOSE)wget -c -P $(DOWNLOAD_DIR) $(LIGHTTPD_URL) && touch $@ + +$(CONTRIB_DIR)/$(LIGHTTPD): $(DOWNLOAD_DIR)/$(LIGHTTPD_TGZ) + $(VERBOSE)tar xfz $< -C $(CONTRIB_DIR) && touch $@ diff --git a/ports/src/noux-pkg/lighttpd/target.mk b/ports/src/noux-pkg/lighttpd/target.mk new file mode 100644 index 0000000000..0609784dce --- /dev/null +++ b/ports/src/noux-pkg/lighttpd/target.mk @@ -0,0 +1,26 @@ +TARGET = lighttpd + +NOUX_CONFIGURE_ARGS += --disable-ipv6 \ + --disable-mmap \ + --without-bzip2 \ + --without-pcre + +LIBS += libcrypto libssl zlib #libc_resolv + +# +# Make the zlib linking test succeed +# +Makefile: dummy_libs + +NOUX_LDFLAGS += -L$(PWD) + +dummy_libs: libz.a libcrypto.a libssl.a + +libcrypto.a: + $(VERBOSE)$(AR) -rc $@ +libssl.a: + $(VERBOSE)$(AR) -rc $@ +libz.a: + $(VERBOSE)$(AR) -rc $@ + +include $(REP_DIR)/mk/noux.mk