From 80f3150d518e6aedff7876baa60269fba1750e18 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Tue, 12 Apr 2011 21:07:34 +0000 Subject: [PATCH] Maybe usable git-svn-id: http://svn.brehm-online.com/svn/portage@103 18afd0d2-9f2f-0410-a0ac-b8d70fd81a6b --- dev-ruby/zonecheck/Manifest | 2 +- dev-ruby/zonecheck/zonecheck-3.0.4.ebuild | 41 ++++++++++++++++++----- 2 files changed, 33 insertions(+), 10 deletions(-) diff --git a/dev-ruby/zonecheck/Manifest b/dev-ruby/zonecheck/Manifest index acf22a5..547a14a 100644 --- a/dev-ruby/zonecheck/Manifest +++ b/dev-ruby/zonecheck/Manifest @@ -1,2 +1,2 @@ DIST zonecheck-3.0.4.tgz 238884 RMD160 e0531d18557e02a017cb2677bfd81f417899b158 SHA1 e80c16199d7641b271e9c2587033c8f552a6f543 SHA256 5842fca0afe3e6301101ff4a8376d2c0f89ec284f7eb3e0e75a519d008aacf99 -EBUILD zonecheck-3.0.4.ebuild 1007 RMD160 c3b4c5d7601a3fc3298fdd4202c4b9a2893db404 SHA1 0e3762e0e5affecc15af9d1aed990331c5a5521a SHA256 8269e5618fac7473f8f4ff6103b3e8fdcb99e331b3f1b8a0c48cf1e1f5b842fb +EBUILD zonecheck-3.0.4.ebuild 1697 RMD160 02dd74382819f16d25a4f979ac9ea0840ac2cb9b SHA1 c2ecebc45e3a75e1a53cfc2b1d1a013dffbe5957 SHA256 444d01f9caf698d1dbaab7901e70f44f022f6ba764809e462ec3a8b4e7f1534a diff --git a/dev-ruby/zonecheck/zonecheck-3.0.4.ebuild b/dev-ruby/zonecheck/zonecheck-3.0.4.ebuild index bccefa2..ece81e1 100644 --- a/dev-ruby/zonecheck/zonecheck-3.0.4.ebuild +++ b/dev-ruby/zonecheck/zonecheck-3.0.4.ebuild @@ -13,34 +13,57 @@ SRC_URI="http://www.zonecheck.fr/download/${P}.tgz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ia64 ~x86" -IUSE="cgi" +IUSE="cgi doc" S="${WORKDIR}/${PN}" +RUBY="/usr/bin/ruby18" + RDEPEND="=dev-lang/ruby-1.8*[ssl] net-misc/iputils >=dev-ruby/dnsruby-1.5 + cgi? ( virtual/httpd-cgi ) +" + +DEPEND=" + $RDEPEND + dev-lang/perl " -DOCS="ABOUT-NLS AUTHORS ChangeLog* COPYING INSTALL LICENSE NEWS README TODO TRANSLATORS" +DOCS="BUGS ChangeLog COPYING CREDITS FAQ GPL HISTORY INSTALL README TODO" +if use doc; then + DOCS="${DOCS} doc" +fi src_configure() { - echo "No configure necessary" + elog "No configure necessary" } src_compile() { - ruby installer.rb -DCHROOT=${D} \ - -DPREFIX=/usr -DETCDIR=/etc -DETCDIST= \ - -DLIBEXEC=/usr/share -DMANDIR=/usr/share/man -DRUBY=/usr/bin/ruby18 \ - common cli doc + elog "No compiling necessary" } src_test() { - LD_LIBRARY_PATH="${WORKDIR}"/${PN}_build/common cmake-utils_src_test + #LD_LIBRARY_PATH="${WORKDIR}"/${PN}_build/common cmake-utils_src_test + einfo "No test available" } src_install() { - cmake-utils_src_install + INST_OPTS="-DCHROOT=${D} -DPREFIX=/usr -DETCDIR=/etc -DETCDIST= " + INST_OPTS="${INST_OPTS} -DLIBEXEC=/usr/share -DMANDIR=/usr/share/man -DRUBY=${RUBY}" + TARGETS="common cli" + if use cgi; then + INST_OPTS="${INST_OPTS} -DCGIDIR=/var/www/localhost/cgi-bin/ -DWWWDIR=/usr/share/zonecheck-cgi -DWWWCGIDIR=/cgi-bin" + TARGETS="${TARGETS} cgi" + fi + ruby installer.rb ${INST_OPTS} ${TARGETS} + + # Patch the configuration file for Linux netkit ping + perl -pi -e ' + s/()/$1ping -n -q -w 5 -c 5 %s >\/dev\/null$2/; + s/()/$1ping6 -n -q -w 5 -c 5 %s >\/dev\/null$2/; + ' ${D}/etc/zonecheck/zc.conf + } -- 2.39.5