ports

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

Makefile (3046B)


      1 #ONLY_FOR_ARCHS =	???
      2 #NOT_FOR_ARCHS =	???
      3 COMMENT =		A web server as drop-in replacement for Nginx
      4 VERSION =		1.1.0
      5 DISTNAME =		angie-${VERSION}
      6 #PKGNAME =	???
      7 CATEGORIES =		www
      8 HOMEPAGE =		https://angie.software
      9 MAINTAINER =		vasyahacker <vasya@magicfreedom.com>
     10 # BSD-like
     11 PERMIT_PACKAGE= 	Yes
     12 WANTLIB =		c z pcre ssl crypto exslt xml2 xslt gd m perl
     13 #exslt xml2 xslt
     14 LIB_DEPENDS =		devel/pcre \
     15 			graphics/gd \
     16 			textproc/libxml \
     17 			textproc/libxslt
     18 MODULES += 		perl
     19 MASTER_SITES =		https://download.angie.software/files/	
     20 #MASTER_SITES0 =	https://github.com/
     21 EXTRACT_SUFX =		.tar.gz
     22 #DIST_SUBDIR =		???
     23 #PATCHFILES =		???
     24 #PATCH_DIST_STRIP =	-p0
     25 COMPILER =		base-clang ports-gcc base-gcc
     26 .include <bsd.port.arch.mk>
     27 NO_TEST =		Yes
     28 CONFIGURE_STYLE=        simple
     29 CFLAGS =		-Wall
     30 ALL_TARGET=
     31 ANGIE_DIR =		/var/www
     32 SUBST_VARS =		ANGIE_DIR
     33 CONFIGURE_ARGS =        --prefix=${ANGIE_DIR} \
     34                         --conf-path=${SYSCONFDIR}/angie/angie.conf \
     35                         --sbin-path=${PREFIX}/sbin/angie \
     36                         --pid-path=/var/run/angie.pid \
     37                         --lock-path=/var/run/angie.lock \
     38                         --http-log-path=logs/access.log \
     39                         --error-log-path=logs/error.log \
     40                         --http-client-body-temp-path=${ANGIE_DIR}/cache/client_body_temp \
     41 			--http-proxy-temp-path=${ANGIE_DIR}/cache/proxy_temp \
     42 			--http-fastcgi-temp-path=${ANGIE_DIR}/cache/fastcgi_temp \
     43 			--http-scgi-temp-path=${ANGIE_DIR}/cache/scgi_temp \
     44                         --http-uwsgi-temp-path=${ANGIE_DIR}/cache/uwsgi_temp \
     45                         --user=www \
     46 			--group=www \
     47 			--with-http_auth_request_module \
     48 			--with-http_dav_module \
     49 			--with-http_image_filter_module=dynamic \
     50 			--with-http_gzip_static_module \
     51 			--with-http_gunzip_module \
     52 			--with-http_perl_module=dynamic \
     53 			--with-http_realip_module \
     54 			--with-http_slice_module \
     55 			--with-http_ssl_module \
     56 			--with-http_stub_status_module \
     57 			--with-http_v2_module \
     58 			--with-http_xslt_module=dynamic \
     59 			--with-mail=dynamic \
     60 			--with-stream=dynamic \
     61 			--with-stream_ssl_module \
     62 			--with-stream_ssl_preread_module \
     63 			--without-pcre2			
     64 
     65 SUBSTFILES=             conf/angie.conf
     66 
     67 pre-configure:
     68 	@cd ${WRKSRC} && ${SUBST_CMD} ${SUBSTFILES}
     69 
     70 do-install:
     71 	${INSTALL_DATA_DIR} ${PREFIX}/share/angie/
     72 	${INSTALL_PROGRAM} ${WRKSRC}/objs/angie ${PREFIX}/sbin
     73 	${INSTALL_MAN} ${WRKSRC}/objs/angie.8 ${PREFIX}/man/man8/
     74 	${INSTALL_DATA} ${WRKSRC}/conf/* ${PREFIX}/share/angie/
     75 	${INSTALL_DATA_DIR} ${PREFIX}/share/angie/html/
     76 	${INSTALL_DATA} ${WRKSRC}/html/* ${PREFIX}/share/angie/html/
     77 	${INSTALL_DATA_DIR} ${WRKINST}/var/www/modules/
     78 	${INSTALL_DATA} ${WRKSRC}/objs/*.so ${WRKINST}/var/www/modules/
     79 	${INSTALL_DATA_DIR} ${PREFIX}/${P5ARCH}/auto/nginx/
     80 	${INSTALL_DATA} ${WRKSRC}/objs/src/http/modules/perl/blib/lib/nginx.pm \
     81 		${PREFIX}/${P5ARCH}/
     82 	${INSTALL_DATA} ${WRKSRC}/objs/src/http/modules/perl/blib/arch/auto/nginx/nginx.so \
     83 		${PREFIX}/${P5ARCH}/auto/nginx/
     84 
     85 .include <bsd.port.mk>