summaryrefslogtreecommitdiff
path: root/package/nginx/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/nginx/Makefile')
-rw-r--r--package/nginx/Makefile50
1 files changed, 50 insertions, 0 deletions
diff --git a/package/nginx/Makefile b/package/nginx/Makefile
new file mode 100644
index 000000000..436d56102
--- /dev/null
+++ b/package/nginx/Makefile
@@ -0,0 +1,50 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= nginx
+PKG_VERSION:= 1.2.2
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 53105bbe3ac9319db54d9eb46119695b
+PKG_DESCR:= powerful http reverse proxy
+PKG_SECTION:= proxy
+PKG_BUILDDEP:= openssl pcre zlib
+PKG_DEPENDS:= libopenssl libpcre libpthread zlib
+PKG_URL:= http://nginx.org/
+PKG_SITES:= http://nginx.org/download/
+
+include $(TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,NGINX,nginx,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+
+CONFIG_STYLE:= minimal
+TARGET_CFLAGS+= -fPIC
+CONFIGURE_ARGS:= --prefix=/usr \
+ --user=nginx \
+ --group=nginx \
+ --crossbuild=Linux::$(ARCH) \
+ --with-cc="$(TARGET_CC)" \
+ --with-cc-opt="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" \
+ --with-ld-opt="$(TARGET_LDFLAGS)" \
+ --conf-path=/etc/nginx/nginx.conf \
+ --error-log-path=/var/log/nginx/error.log \
+ --pid-path=/var/run/nginx.pid \
+ --lock-path=/var/lock/nginx.lock \
+ --http-log-path=/var/log/nginx/access.log \
+ --http-client-body-temp-path=/var/lib/nginx/body \
+ --http-proxy-temp-path=/var/lib/nginx/proxy \
+ --http-fastcgi-temp-path=/var/lib/nginx/fastcgi
+ALL_TARGET:=
+XAKE_FLAGS+= GCC_HONOUR_COPTS=s
+
+nginx-install:
+ $(INSTALL_DIR) $(IDIR_NGINX)/usr/sbin $(IDIR_NGINX)/etc/nginx
+ $(INSTALL_BIN) $(WRKINST)/usr/sbin/nginx \
+ $(IDIR_NGINX)/usr/sbin
+ for f in nginx.conf mime.types fastcgi_params koi-utf koi-win win-utf; do \
+ cp $(WRKINST)/etc/nginx/$${f} \
+ $(IDIR_NGINX)/etc/nginx ; \
+ done
+
+include ${TOPDIR}/mk/pkg-bottom.mk