You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/www-apps/mirmon/mirmon-1.38-r4.ebuild

49 lines
1.0 KiB

# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
inherit webapp eutils
WEBAPP_MANUAL_SLOT="yes"
DESCRIPTION="Simple webapp to monitor the status of mirrors"
HOMEPAGE="http://people.cs.uu.nl/henkp/mirmon/"
SRC_URI="http://people.cs.uu.nl/henkp/mirmon/src/$PN/src/$P.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
DEPEND=">=dev-lang/perl-5.8.5-r2"
RDEPEND="${DEPEND}
dev-perl/File-Tempdir
dev-perl/Socket6"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/0001-Add-rsync-monitoring-support-to-mirmon.patch" \
"${FILESDIR}/0002-Add-ipv6-monitor-support-to-mirmon.patch"
# set the proper interpreter
sed -i -e 's:/sw/bin/perl:/usr/bin/perl:' mirmon || die
}
src_install() {
# Don't install empty dirs
MY_CGIBINDIR=""
MY_ICONSDIR=""
MY_ERRORSDIR=""
webapp_src_preinst
for file in mirmon.html mirmon.txt; do
dodoc ${file}
rm -f ${file}
done
cp -R icons "${D}"/${MY_HTDOCSDIR}
rm -rf icons
cp -R . "${D}"/${MY_HOSTROOTDIR}
webapp_src_install
}