# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils versionator MAJOR_PV="$(get_version_component_range 1-2)" REL_PV="$(get_version_component_range 3)" SVN_PV="$(get_version_component_range 4)" DESCRIPTION="YaCy - p2p based distributed web-search engine" HOMEPAGE="http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html" SRC_URI="http://www.yacy.net/yacy/release/yacy_v${MAJOR_PV}_${REL_PV}_${SVN_PV}.tar.gz" # or http://download.berlios.de/yacy/yacy_v${MAJOR_PV}_${REL_PV}_${SVN_PV}.tar.gz SLOT="0" RESTRICT="nostrip nomirror" KEYWORDS="~x86" DEPEND="virtual/jre app-admin/sudo" S=${WORKDIR}/yacy_v${MAJOR_PV}_${REL_PV}_${SVN_PV} src_install() { dodir /opt cp -a ${S} ${D}/opt/yacy chown -R yacy:yacy ${D}/opt/yacy } pkg_setup() { enewgroup yacy enewuser yacy -1 /bin/false /opt/yacy yacy } pkg_postinst() { einfo "There was not an initscript in this package inside." einfo "The initscript for this package you can get here:" einfo "http://www.yacy-forum.de/viewtopic.php?t=677" einfo "Be sure to open port 8080 to be in senior-mode" }