diff --git a/www-servers/nginx/nginx-1.7.4_hg.recipe b/www-servers/nginx/nginx-1.7.4_hg.recipe new file mode 100644 index 000000000..ed33d75d9 --- /dev/null +++ b/www-servers/nginx/nginx-1.7.4_hg.recipe @@ -0,0 +1,73 @@ +DESCRIPTION="Robust, small and high performance http and reverse proxy server" +SUMMARY="Robust, small and high performance http and reverse proxy server" +HOMEPAGE="http://nginx.org/" +SRC_URI="hg+http://hg.nginx.org/nginx#f87afb46ccd2" +#CHECKSUM_SHA256="" +REVISION="1" +# "it's complicated", cf. http://packages.gentoo.org/package/www-servers/nginx +#TODO: sort this out +LICENSE="BSD (2-clause)" +COPYRIGHT=" + 2002-2014 Igor Sysoev + 2011-2014 Nginx, Inc. + " + +#FIXME: on ./auto/configure: +#grep: /etc/group: No such file or directory + +ARCHITECTURES="x86_gcc2 ?x86 ?x86_64" + +PROVIDES=" + nginx$secondaryArchSuffix = $portVersion + cmd:nginx$secondaryArchSuffix = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix >= $haikuVersion + lib:libpcre$secondaryArchSuffix + lib:libssl$secondaryArchSuffix + lib:libz$secondaryArchSuffix + " +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel >= $haikuVersion + devel:libpcre$secondaryArchSuffix + devel:libssl$secondaryArchSuffix + devel:libz$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:awk + cmd:gcc${secondaryArchSuffix} + cmd:ld${secondaryArchSuffix} + cmd:make + cmd:ranlib + cmd:sed + cmd:find + " + +PATCHES="nginx-1.7.4_hg.diff" + +GLOBAL_WRITABLE_FILES=" + settings/nginx directory + " + + +BUILD() +{ + ./auto/configure --prefix=$prefix \ + --sbin-path=$binDir/nginx \ + --doc-prefix=$docDir \ + --conf-path=$settingsDir/nginx/nginx.conf \ + --error-log-path=$localStateDir/log/error.log \ + --http-log-path=$localStateDir/log/access.log \ + --pid-path=$localStateDir/nginx.pid \ + --lock-path=$localStateDir/nginx.lock \ + --with-debug + + make +} + +INSTALL() +{ + mkdir -p $binDir + mkdir -p $docDir + make install +}