diff options
Diffstat (limited to 'www/nginx-devel')
-rw-r--r-- | www/nginx-devel/Makefile | 127 | ||||
-rw-r--r-- | www/nginx-devel/distinfo | 3 | ||||
-rw-r--r-- | www/nginx-devel/files/nginx.sh.in | 44 | ||||
-rw-r--r-- | www/nginx-devel/files/patch-conf-nginx.conf | 32 | ||||
-rw-r--r-- | www/nginx-devel/pkg-descr | 5 | ||||
-rw-r--r-- | www/nginx-devel/pkg-plist | 24 |
6 files changed, 0 insertions, 235 deletions
diff --git a/www/nginx-devel/Makefile b/www/nginx-devel/Makefile deleted file mode 100644 index 0e3a0487f556..000000000000 --- a/www/nginx-devel/Makefile +++ /dev/null @@ -1,127 +0,0 @@ -# New ports collection makefile for: nginx -# Date created: 11 Oct 2004 -# Whom: osa -# -# $FreeBSD$ -# - -PORTNAME= nginx -PORTVERSION= 0.3.30 -PORTREVISION= 0 -CATEGORIES= www -MASTER_SITES= http://sysoev.ru/nginx/ -MASTER_SITES+= ${MASTER_SITE_LOCAL} -MASTER_SITE_SUBDIR= osa - -MAINTAINER= osa@FreeBSD.org -COMMENT= Robust and small WWW server - -VARDIR?= ${DESTDIR}/var -LOGDIR?= ${VARDIR}/log -RUNDIR?= ${VARDIR}/run -TMPDIR?= ${VARDIR}/tmp/nginx -HTTP_PORT?= 80 - -USE_REINPLACE= yes -USE_RC_SUBR= yes -HAS_CONFIGURE= yes -CONFIGURE_ARGS+=--prefix=${PREFIX}/etc/nginx \ - --with-cc-opt="-I ${LOCALBASE}/include" \ - --with-ld-opt="-L ${LOCALBASE}/lib" \ - --conf-path=${PREFIX}/etc/nginx/nginx.conf \ - --sbin-path=${PREFIX}/sbin/nginx \ - --pid-path=${RUNDIR}/nginx.pid \ - --http-client-body-temp-path=${TMPDIR}/client_body_temp \ - --http-proxy-temp-path=${TMPDIR}/proxy_temp \ - --http-fastcgi-temp-path=${TMPDIR}/fastcgi_temp \ - --http-log-path=${LOGDIR}/nginx-access.log \ - --error-log-path=${LOGDIR}/nginx-error.log \ - --with-http_stub_status_module \ - --user=${WWWOWN} --group=${WWWGRP} - -.if defined(WITH_DEBUG) -CONFIGURE_ARGS+=--with-debug -STRIP= #do not strip if nginx with debug information -.endif - -.if defined(WITH_OPENSSL_MODULE) -NGINX_OPENSSL= yes -CONFIGURE_ARGS+=--with-http_ssl_module -.endif - -.if defined(WITH_IMAP_MODULE) -NGINX_OPENSSL= yes -CONFIGURE_ARGS+=--with-imap --with-imap_ssl_module -.endif - -.if defined(NGINX_OPENSSL) -USE_OPENSSL= yes -.endif - -.if defined(WITHOUT_HTTP_REWRITE_MODULE) || defined(WITHOUT_PCRE) -PKGNAMESUFFIX+= -nopcre -CONFIGURE_ARGS+=--without-http_rewrite_module \ - --without-pcre -.else -LIB_DEPENDS= pcre.0:${PORTSDIR}/devel/pcre -.endif - -.if defined(WITHOUT_WWW) -PLIST_SUB+= WWWDATA="@comment " -.else -PLIST_SUB+= WWWDATA="" -.endif - -.if defined(STOP_BEFORE_REMOVE) -PLIST_SUB+= STOP_BEFORE_REMOVE="" -.else -PLIST_SUB+= STOP_BEFORE_REMOVE="@comment " -.endif - -.if defined(START_AFTER_INSTALL) -PLIST_SUB+= START_AFTER_INSTALL="" -.else -PLIST_SUB+= START_AFTER_INSTALL="@comment " -.endif - -PLIST_SUB+= TMPDIR=${TMPDIR} WWWOWN=${WWWOWN} WWWGRP=${WWWGRP} - -RC_SCRIPTS_SUB=PREFIX=${PREFIX} RC_SUBR=${RC_SUBR} - -post-extract: - @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ - ${FILESDIR}/nginx.sh.in > ${WRKSRC}/nginx.sh - -post-patch: - @${REINPLACE_CMD} 's!%%HTTP_PORT%%!${HTTP_PORT}!; \ - s!%%PREFIX%%!${PREFIX}!' \ - ${WRKSRC}/conf/nginx.conf - -do-build: - @cd ${WRKSRC} && ${MAKE} - -do-install: - ${MKDIR} ${PREFIX}/etc/nginx ${TMPDIR} - ${CHOWN} ${WWWOWN}:${WWWGRP} ${TMPDIR} - ${INSTALL_SCRIPT} ${WRKSRC}/nginx.sh ${PREFIX}/etc/rc.d - ${INSTALL_PROGRAM} ${WRKSRC}/objs/nginx ${PREFIX}/sbin - ${INSTALL_DATA} ${WRKSRC}/conf/koi-win ${PREFIX}/etc/nginx -.for i in mime.types nginx.conf - [ -f ${PREFIX}/etc/nginx/${i} ] || \ - ${INSTALL_DATA} ${WRKSRC}/conf/${i} ${PREFIX}/etc/nginx - ${INSTALL_DATA} ${WRKSRC}/conf/${i} ${PREFIX}/etc/nginx/${i}-dist -.endfor -.if !defined(WITHOUT_WWW) - ${MKDIR} ${PREFIX}/www/nginx-dist - ${INSTALL_DATA} ${WRKSRC}/html/index.html ${PREFIX}/www/nginx-dist - ${ECHO_CMD} "" >>${PREFIX}/www/nginx-dist/EXAMPLE_DIRECTORY-DONT_ADD_OR_TOUCH_ANYTHING - [ -e ${PREFIX}/www/nginx ] || \ - ${LN} -sf ${PREFIX}/www/nginx-dist ${PREFIX}/www/nginx -.endif - -post-install: -.if defined(START_AFTER_INSTALL) - ${PREFIX}/etc/rc.d/nginx.sh start -.endif - -.include <bsd.port.mk> diff --git a/www/nginx-devel/distinfo b/www/nginx-devel/distinfo deleted file mode 100644 index 6bc613ce4d10..000000000000 --- a/www/nginx-devel/distinfo +++ /dev/null @@ -1,3 +0,0 @@ -MD5 (nginx-0.3.30.tar.gz) = 3bb44aaac2b89d096ac157b03e2f2017 -SHA256 (nginx-0.3.30.tar.gz) = 32dd362f732630767207308ec2f9b78344ee43fc457cde142dd6c0dea3476060 -SIZE (nginx-0.3.30.tar.gz) = 386163 diff --git a/www/nginx-devel/files/nginx.sh.in b/www/nginx-devel/files/nginx.sh.in deleted file mode 100644 index dcbd00d0213c..000000000000 --- a/www/nginx-devel/files/nginx.sh.in +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/sh -# $FreeBSD$ - -# PROVIDE: nginx -# REQUIRE: DAEMON -# BEFORE: LOGIN -# KEYWORD: shutdown - -# Define these nginx_* variables in one of these files: -# /etc/rc.conf -# /etc/rc.conf.local -# /etc/rc.conf.d/nginx -# -# DO NOT CHANGE THESE DEFAULT VALUES HERE -# -nginx_enable=${nginx_enable-"NO"} -nginx_flags=${nginx_flags-""} -nginx_pidfile=${nginx_pidfile-"/var/run/nginx.pid"} - -. %%RC_SUBR%% - -name="nginx" -rcvar=`set_rcvar` -command="%%PREFIX%%/sbin/nginx" - -extra_commands="configtest reload" - -configtest_cmd="configtest_cmd" -configtest_cmd() { - echo "Configuration syntax test for ${name}." - if ${command} -t; then - : - else - err 8 "FATAL: bad config for ${name}" - fi -} - -load_rc_config $name - -pidfile="${nginx_pidfile}" - -start_cmd="echo \"Starting ${name}.\"; /usr/bin/limits -U www ${command} ${nginx_flags}" - -run_rc_command "$1" diff --git a/www/nginx-devel/files/patch-conf-nginx.conf b/www/nginx-devel/files/patch-conf-nginx.conf deleted file mode 100644 index 5900493dac98..000000000000 --- a/www/nginx-devel/files/patch-conf-nginx.conf +++ /dev/null @@ -1,32 +0,0 @@ - -$FreeBSD$ - ---- conf/nginx.conf.orig Tue Nov 15 15:52:29 2005 -+++ conf/nginx.conf Tue Nov 15 15:53:32 2005 -@@ -15,7 +15,7 @@ - - - http { -- include conf/mime.types; -+ include mime.types; - default_type application/octet-stream; - - #log_format main '$remote_addr - $remote_user [$time_gmt] $status ' -@@ -33,7 +33,7 @@ - #gzip on; - - server { -- listen 80; -+ listen %%HTTP_PORT%%; - server_name localhost; - - #charset koi8-r; -@@ -41,7 +41,7 @@ - #access_log logs/host.access.log main; - - location / { -- root html; -+ root %%PREFIX%%/www/nginx; - index index.html index.htm; - } - diff --git a/www/nginx-devel/pkg-descr b/www/nginx-devel/pkg-descr deleted file mode 100644 index c2bc5e717dab..000000000000 --- a/www/nginx-devel/pkg-descr +++ /dev/null @@ -1,5 +0,0 @@ -Another one small and robust www server, supports -kqueue (EV_CLEAR, EV_DISABLE, NOTE_LOWAT, EV_EOF, etc.), -select, poll, sendfile. - -WWW: http://sysoev.ru/nginx/ diff --git a/www/nginx-devel/pkg-plist b/www/nginx-devel/pkg-plist deleted file mode 100644 index 460817a8abeb..000000000000 --- a/www/nginx-devel/pkg-plist +++ /dev/null @@ -1,24 +0,0 @@ -@comment $FreeBSD$ -etc/nginx/koi-win -@unexec if cmp -s %D/etc/nginx/mime.types %D/etc/nginx/mime.types-dist; then rm -f %D/etc/nginx/mime.types; fi -etc/nginx/mime.types-dist -@exec [ -f %B/mime.types ] || cp %B/%f %B/mime.types -@unexec if cmp -s %D/etc/nginx/nginx.conf %D/etc/nginx/nginx.conf-dist; then rm -f %D/etc/nginx/nginx.conf; fi -etc/nginx/nginx.conf-dist -@exec [ -f %B/nginx.conf ] || cp %B/%f %B/nginx.conf -@dirrmtry etc/nginx -%%WWWDATA%%@exec mkdir -p -m 755 www/nginx-dist -@comment @unexec chmod u+w www/nginx-dist -%%WWWDATA%%www/nginx-dist/EXAMPLE_DIRECTORY-DONT_ADD_OR_TOUCH_ANYTHING -%%WWWDATA%%@exec [ -d %D/www/nginx/ ] || ln -fs %B %D/www/nginx -%%WWWDATA%%www/nginx-dist/index.html -%%WWWDATA%%@exec chmod a-w www/nginx-dist -%%WWWDATA%%@unexec if [ -L %D/www/nginx ]; then rm -f %D/www/nginx; fi -%%WWWDATA%%@dirrm www/nginx-dist -%%STOP_BEFORE_REMOVE%%@unexec %D/etc/rc.d/nginx.sh stop || true -sbin/nginx -etc/rc.d/nginx.sh -@exec [ -d %%TMPDIR%% ] || mkdir -p %%TMPDIR%% -@exec chown %%WWWOWN%%:%%WWWGRP%% %%TMPDIR%% -@unexec rm -fr %%TMPDIR%% -%%START_AFTER_INSTALL%%@exec %D/etc/rc.d/nginx.sh start |