summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Olexa <darkside@gentoo.org>2012-04-18 16:02:04 +0000
committerJeremy Olexa <darkside@gentoo.org>2012-04-18 16:02:04 +0000
commit3a45799ef1d15974f4b57e646d1cc3824d9f440b (patch)
treeffe6d277b5dc30498848da8dda18a9e657a7ef9f /www-servers/nginx
parentStable for HPPA (bug #412405). (diff)
downloadgentoo-2-3a45799ef1d15974f4b57e646d1cc3824d9f440b.tar.gz
gentoo-2-3a45799ef1d15974f4b57e646d1cc3824d9f440b.tar.bz2
gentoo-2-3a45799ef1d15974f4b57e646d1cc3824d9f440b.zip
Cosmetic changes to align with upstream better. Use Makefile to install. No revbump needed
(Portage version: 2.1.10.56/cvs/Linux x86_64)
Diffstat (limited to 'www-servers/nginx')
-rw-r--r--www-servers/nginx/ChangeLog6
-rw-r--r--www-servers/nginx/nginx-1.1.19.ebuild28
2 files changed, 18 insertions, 16 deletions
diff --git a/www-servers/nginx/ChangeLog b/www-servers/nginx/ChangeLog
index 0836b4e492da..5651d36cda1d 100644
--- a/www-servers/nginx/ChangeLog
+++ b/www-servers/nginx/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for www-servers/nginx
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/ChangeLog,v 1.318 2012/04/18 14:10:07 darkside Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/ChangeLog,v 1.319 2012/04/18 16:02:04 darkside Exp $
+
+ 18 Apr 2012; Jeremy Olexa <darkside@gentoo.org> nginx-1.1.19.ebuild:
+ Cosmetic changes to align with upstream better. Use Makefile to install. No
+ revbump needed
18 Apr 2012; Jeremy Olexa <darkside@gentoo.org> -nginx-1.0.14.ebuild,
metadata.xml:
diff --git a/www-servers/nginx/nginx-1.1.19.ebuild b/www-servers/nginx/nginx-1.1.19.ebuild
index db3d5911c38f..0453c3ca569f 100644
--- a/www-servers/nginx/nginx-1.1.19.ebuild
+++ b/www-servers/nginx/nginx-1.1.19.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/nginx-1.1.19.ebuild,v 1.2 2012/04/14 09:20:53 hollow Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/nginx-1.1.19.ebuild,v 1.3 2012/04/18 16:02:04 darkside Exp $
EAPI="4"
@@ -172,7 +172,11 @@ pkg_setup() {
}
src_prepare() {
- sed -i 's/ make/ \\$(MAKE)/' "${S}"/auto/lib/perl/make
+ find auto/ -type f -print0 | xargs -0 sed -i 's:\&\& make:\&\& \\$(MAKE):' || die
+ # We have config protection, don't rename etc files
+ sed -i 's:.default::' auto/install || die
+ # remove useless files
+ sed -i -e '/koi-/d' -e '/win-/d' auto/install || die
}
src_configure() {
@@ -281,7 +285,6 @@ src_configure() {
./configure \
--prefix="${EPREFIX}"/usr \
- --sbin-path="${EPREFIX}"/usr/sbin/nginx \
--conf-path="${EPREFIX}"/etc/${PN}/${PN}.conf \
--error-log-path="${EPREFIX}"/var/log/${PN}/error_log \
--pid-path="${EPREFIX}"/var/run/${PN}.pid \
@@ -304,22 +307,17 @@ src_compile() {
}
src_install() {
- keepdir /var/log/${PN} /var/tmp/${PN}/{client,proxy,fastcgi,scgi,uwsgi}
- keepdir /var/www/localhost/htdocs
-
- dosbin objs/nginx
+ emake DESTDIR="${D}" install
+ cp "${FILESDIR}"/nginx.conf "${ED}"/etc/nginx/nginx.conf || die
newinitd "${FILESDIR}"/nginx.initd nginx
-
- cp "${FILESDIR}"/nginx.conf conf/nginx.conf || die
- rm conf/win-utf conf/koi-win conf/koi-utf
-
- dodir /etc/${PN}
- insinto /etc/${PN}
- doins conf/*
-
doman man/nginx.8
dodoc CHANGES* README
+ # Keepdir because these are hardcoded above
+ keepdir /var/log/${PN} /var/tmp/${PN}/{client,proxy,fastcgi,scgi,uwsgi}
+ keepdir /var/www/localhost/htdocs
+ mv "${ED}"/usr/html "${ED}"/var/www/localhost/htdocs || die
+
# logrotate
insinto /etc/logrotate.d
newins "${FILESDIR}"/nginx.logrotate nginx