From ccf91f5b973e5433ba94dd02de35600513a750de Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Thu, 8 Sep 2011 21:35:08 +0200 Subject: app-admin/shellinabox: added ebuild --- app-admin/shellinabox/shellinabox-2.10.ebuild | 45 +++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 app-admin/shellinabox/shellinabox-2.10.ebuild (limited to 'app-admin/shellinabox/shellinabox-2.10.ebuild') diff --git a/app-admin/shellinabox/shellinabox-2.10.ebuild b/app-admin/shellinabox/shellinabox-2.10.ebuild new file mode 100644 index 0000000..850189d --- /dev/null +++ b/app-admin/shellinabox/shellinabox-2.10.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header$ + +EAPI="2" + +inherit eutils + +DESCRIPTION="Web based AJAX terminal emulator" +HOMEPAGE="http://code.google.com/p/shellinabox" +SRC_URI="http://shellinabox.googlecode.com/files/${P}.tar.gz" + +SLOT="0" +LICENSE="GPL-2.0" +KEYWORDS="~x86 ~amd64" + +IUSE="+ssl" + +RDEPEND="ssl? ( >=dev-libs/openssl-0.9.8 )" +DEPEND="${RDEPEND}" + +pkg_setup() +{ + enewgroup ${PN} + enewuser ${PN} -1 -1 -1 "${PN}" +} + +src_configure() +{ + econf \ + $(use_enable ssl) \ + || die "econf failed" +} + +src_install() +{ + emake DESTDIR="${D}" install || die "einstall failed" + + dodir "/var/lib/${PN}" + fowners ${PN}:${PN} "/var/lib/${PN}" + + newinitd "${FILESDIR}"/${PN}-init ${PN} + newconfd "${FILESDIR}"/${PN}-conf ${PN} +} + -- cgit v1.2.3