mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
Add a recipe for nginx
Couldn't get the settings published somehow...
This commit is contained in:
73
www-servers/nginx/nginx-1.7.4_hg.recipe
Normal file
73
www-servers/nginx/nginx-1.7.4_hg.recipe
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user