Run elibtoolize to apply Gentoo patches as needed; install the default index.html...
authorDiego Elio Pettenò <flameeyes@gentoo.org>
Wed, 27 Dec 2006 04:48:46 +0000 (04:48 +0000)
committerDiego Elio Pettenò <flameeyes@gentoo.org>
Wed, 27 Dec 2006 04:48:46 +0000 (04:48 +0000)
Package-Manager: portage-2.1.2_rc4-r1

www-servers/cherokee/ChangeLog
www-servers/cherokee/Manifest
www-servers/cherokee/cherokee-0.5.6.ebuild

index 81420295fb5e775e0ae8fffaf2dea320fce4439c..8cd48a59e752fd6a58d88601a20e2e23f8ba0b20 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for www-servers/cherokee
 # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-servers/cherokee/ChangeLog,v 1.31 2006/12/27 02:37:08 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-servers/cherokee/ChangeLog,v 1.32 2006/12/27 04:48:46 flameeyes Exp $
+
+  27 Dec 2006; Diego Pettenò <flameeyes@gentoo.org> cherokee-0.5.6.ebuild:
+  Run elibtoolize to apply Gentoo patches as needed; install the default
+  index.html page only if coverpage useflag is enabled (not by default) to
+  avoid the nasty $ROOT lookup.
 
 *cherokee-0.5.6 (27 Dec 2006)
 
index 01b0e012b73de93eb6d90a544d7a32611b8bf712..74923dd8448ed78a7f1361172069b24500850d96 100644 (file)
@@ -6,14 +6,14 @@ MD5 aa0a02cf30b359170185714c37341c80 files/cherokee-initd-0.5.6 587
 RMD160 50ab8f40e9258c96685373ad38f9440ca8b496b5 files/cherokee-initd-0.5.6 587
 SHA256 09985375cc821db0c12fed621d505bad134acfb578432b1a940216f5e83a5551 files/cherokee-initd-0.5.6 587
 DIST cherokee-0.5.6.tar.gz 1392282 RMD160 fd5661449bd845e3be1911490f02144a805f5c9f SHA1 5e437c2315782bc6ac1d98f8db3b7838313a229a SHA256 d19ac8a85c252ccfe04c06ce0ec9b03d036b27d07c6db4601ce7d6b33c4e9cc8
-EBUILD cherokee-0.5.6.ebuild 2403 RMD160 efacab6958ffe2ba4f9f7e242d4c17bb150e37cc SHA1 429c342bacab11b5263ce350154a4e78af8578ee SHA256 33339773a36abc60b55d01ae19713f23c804aee50d80e17a6522ef6328eecd5a
-MD5 da71889cc1e70798e3b69aaea97ce091 cherokee-0.5.6.ebuild 2403
-RMD160 efacab6958ffe2ba4f9f7e242d4c17bb150e37cc cherokee-0.5.6.ebuild 2403
-SHA256 33339773a36abc60b55d01ae19713f23c804aee50d80e17a6522ef6328eecd5a cherokee-0.5.6.ebuild 2403
-MISC ChangeLog 10756 RMD160 85dededa2588ae12455095b76c43dbe13da1534c SHA1 578bbc5d8c779696666ed521ebbddc67189a93c1 SHA256 9d5e2e26fd9404336de3d8ee572a573235873478a52066524ab8f7ee13b7bb46
-MD5 1331a6ee17df48808538e94d6d8d9d43 ChangeLog 10756
-RMD160 85dededa2588ae12455095b76c43dbe13da1534c ChangeLog 10756
-SHA256 9d5e2e26fd9404336de3d8ee572a573235873478a52066524ab8f7ee13b7bb46 ChangeLog 10756
+EBUILD cherokee-0.5.6.ebuild 2186 RMD160 1971c0cc4c08e448d745a6358f318265f9ae89ba SHA1 2891c52c61e209f6240d611d0232dff4aca099c5 SHA256 0768906fc08c6b0addf65913e5f30f516bd240c3b4a05cfcc3f5578c82e7a78d
+MD5 0f39a409f6c27f92dd5770626dc73896 cherokee-0.5.6.ebuild 2186
+RMD160 1971c0cc4c08e448d745a6358f318265f9ae89ba cherokee-0.5.6.ebuild 2186
+SHA256 0768906fc08c6b0addf65913e5f30f516bd240c3b4a05cfcc3f5578c82e7a78d cherokee-0.5.6.ebuild 2186
+MISC ChangeLog 11013 RMD160 145af4ba78141e3c8948fbc2797e1a91efd38456 SHA1 04d079c4e4e11d39b2672390457bdd555fa86dad SHA256 3b5625c9ed128200c2e356062100cf119aaaf921fb2a807af25c1db4c08c877c
+MD5 8852d5a0a5b9c2b8a8abacd5ef3f1c1c ChangeLog 11013
+RMD160 145af4ba78141e3c8948fbc2797e1a91efd38456 ChangeLog 11013
+SHA256 3b5625c9ed128200c2e356062100cf119aaaf921fb2a807af25c1db4c08c877c ChangeLog 11013
 MISC metadata.xml 269 RMD160 2f424a28702cae549abf73acbdc5e83add6381a6 SHA1 896cbff4ed1d4357fbe5ed96f1747737d6949c3c SHA256 19de4ee447412c2935b1a069641f59a069077b66a7602eaa449b8d7d8fdf1a1f
 MD5 87a36685076539a89b31661a9b2564fe metadata.xml 269
 RMD160 2f424a28702cae549abf73acbdc5e83add6381a6 metadata.xml 269
@@ -24,7 +24,7 @@ SHA256 f225430722ee46711c8426fb588ebfc1648f4e36488ca9af972ccf2f95e40b37 files/di
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.6 (GNU/Linux)
 
-iD8DBQFFkdxcAiZjviIA2XgRAjA4AJ44uINidTWrMiFFJQvm4oOvsp89vACfYglR
-einrsZI0X7mZXuHuFYdfElM=
-=2hSG
+iD8DBQFFkftOAiZjviIA2XgRAmXdAJ0faw1PDQWAkWo1PUU96rrTcL8NWgCg7B9k
+qrQ3IvNb2I5igv7cjSAhY88=
+=0WIg
 -----END PGP SIGNATURE-----
index dd5f86d947f2bc273825a617c40ba720b7b3a4ad..4e4788675a6e43540f2ff79d60843023026d4c66 100644 (file)
@@ -1,8 +1,8 @@
 # Copyright 1999-2006 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-servers/cherokee/cherokee-0.5.6.ebuild,v 1.1 2006/12/27 02:37:08 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-servers/cherokee/cherokee-0.5.6.ebuild,v 1.2 2006/12/27 04:48:46 flameeyes Exp $
 
-inherit eutils pam versionator
+inherit eutils pam versionator libtool
 
 DESCRIPTION="An extremely fast and tiny web server."
 SRC_URI="http://www.cherokee-project.com/download/$(get_version_component_range 1-2)/${PV}/${P}.tar.gz"
@@ -11,7 +11,7 @@ HOMEPAGE="http://www.cherokee-project.com/"
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
-IUSE="ipv6 ssl gnutls static pam"
+IUSE="ipv6 ssl gnutls static pam coverpage"
 
 RDEPEND=">=sys-libs/zlib-1.1.4-r1
        gnutls? ( net-libs/gnutls )
@@ -21,6 +21,8 @@ RDEPEND=">=sys-libs/zlib-1.1.4-r1
 src_unpack() {
        unpack ${A}
 
+       elibtoolize
+
        # use cherokee user/group
        sed -i -e 's|^#\(User \).*$|\1cherokee|' \
                   -e 's|^#\(Group \).*$|\1cherokee|' "${S}/cherokee.conf.sample.pre" || \
@@ -74,15 +76,9 @@ src_install () {
        newpamd pam.d_cherokee ${PN} || die "newpamd failed"
        newinitd "${FILESDIR}/${PN}-initd-0.5.6" ${PN} || die "newinitd failed"
 
-       keepdir /etc/cherokee/mods-enabled /etc/cherokee/sites-enabled
+       keepdir /etc/cherokee/mods-enabled /etc/cherokee/sites-enabled /var/www/localhost/htdocs
 
-       # be nice and don't overwrite a user's pre-existing index.html
-       # (unless they're the same).
-       if [[ -f "${ROOT}"/var/www/localhost/htdocs/index.html ]] ; then
-               diff "${ROOT}"/var/www/localhost/htdocs/index.html \
-               "${D}"/var/www/localhost/htdocs/index.html &>/dev/null || \
-                       mv "${D}"/var/www/localhost/htdocs/{,cherokee-}index.html
-       fi
+       use coverpage || rm -f "${D}"/var/www/localhost/htdocs/index.html
 }
 
 pkg_postinst() {