]> Frank Brehm's Git Trees - portage.git/commitdiff
Maybe usable
authorFrank Brehm <frank@brehm-online.com>
Tue, 12 Apr 2011 21:07:34 +0000 (21:07 +0000)
committerFrank Brehm <frank@brehm-online.com>
Tue, 12 Apr 2011 21:07:34 +0000 (21:07 +0000)
git-svn-id: http://svn.brehm-online.com/svn/portage@103 18afd0d2-9f2f-0410-a0ac-b8d70fd81a6b

dev-ruby/zonecheck/Manifest
dev-ruby/zonecheck/zonecheck-3.0.4.ebuild

index acf22a5a807e130ad2a766ef12de9c438c9d8e97..547a14a1de3b29e365c6d4c5da5887f9a1147b23 100644 (file)
@@ -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
index bccefa23b68cefe35f7cd73d9ccbf766901bca0e..ece81e1dd4d9bc2db69bb86855e95ec57388d5f9 100644 (file)
@@ -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/(<const\s+name\s*=\s*"ping4"\s+value\s*=\s*")[^\"]*("\s*\/>)/$1ping  -n -q -w 5 -c 5 %s >\/dev\/null$2/;
+               s/(<const\s+name\s*=\s*"ping6"\s+value\s*=\s*")[^\"]*("\s*\/>)/$1ping6 -n -q -w 5 -c 5 %s >\/dev\/null$2/;
+       ' ${D}/etc/zonecheck/zc.conf
+
 }