Permalink
Browse files

new ebuild file from joe_e_e

  • Loading branch information...
1 parent f9dd6c0 commit 2d767ad5ece92a22a4803562ade133c02257a30a @klacke committed Apr 27, 2009
Showing with 22 additions and 13 deletions.
  1. +22 −13 scripts/gentoo/yaws.ebuild
View
@@ -1,25 +1,34 @@
-# $Header$
+# $Header: $
+EAPI="2"
-DESCRIPTION="Yaws, a dynamic content, fast, erlang based webserver "
+inherit eutils
+
+DESCRIPTION="Yaws is a high performance HTTP 1.1 web server."
HOMEPAGE="http://yaws.hyber.org/"
SRC_URI="http://yaws.hyber.org/download/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
-KEYWORDS="x86 ppc sparc alpha arm"
-IUSE="ssl"
-
-DEPEND=">=dev-lang/erlang-8b
- ssl? ( >=dev-libs/openssl-0.9.6d )"
+KEYWORDS="~x86 ~ppc ~sparc ~amd64"
+IUSE=""
+DEPEND="dev-lang/erlang"
-
- src_compile() {
- ./configure --prefix=/usr || die
- make || die
-}
+PROVIDE="virtual/httpd-basic virtual/httpd-cgi"
src_install() {
- make DESTDIR=${D} install || die
+ make DESTDIR=${D} install || edie
+ keepdir /var/log/yaws
+ rmdir ${D}var/lib/log/yaws
+ rmdir ${D}var/lib/log
+ # We need to keep these directories so that the example yaws.conf works
+ # properly
+ keepdir /usr/lib/yaws/examples/ebin
+ keepdir /usr/lib/yaws/examples/include
+ dodoc ChangeLog LICENSE README
}
+pkg_postinst() {
+ einfo "An example YAWS configuration has been setup to run on"
+ einfo "Please edit /etc/yaws/yaws.conf to suit your needs."
+}

0 comments on commit 2d767ad

Please sign in to comment.