summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Moc <jakub@gentoo.org>2007-09-09 00:19:18 +0000
committerJakub Moc <jakub@gentoo.org>2007-09-09 00:19:18 +0000
commit97dc82172c169c2cfa2ebf71c7b98962083a17a3 (patch)
tree1d9cf9d10faf1e586ddc8f2c9ef0703e44c02165 /net-dns
parentwww-apps/postfixadmin: Move to net-mail category (diff)
downloadwebapps-experimental-97dc82172c169c2cfa2ebf71c7b98962083a17a3.tar.gz
webapps-experimental-97dc82172c169c2cfa2ebf71c7b98962083a17a3.tar.bz2
webapps-experimental-97dc82172c169c2cfa2ebf71c7b98962083a17a3.zip
Move to net-dns category
svn path=/experimental/; revision=470
Diffstat (limited to 'net-dns')
-rw-r--r--net-dns/vegadns/ChangeLog25
-rw-r--r--net-dns/vegadns/Manifest8
-rw-r--r--net-dns/vegadns/files/digest-vegadns-0.9.103
-rw-r--r--net-dns/vegadns/files/digest-vegadns-1.1.63
-rw-r--r--net-dns/vegadns/files/postinstall-en.txt39
-rw-r--r--net-dns/vegadns/files/reconfig20
-rw-r--r--net-dns/vegadns/metadata.xml5
-rw-r--r--net-dns/vegadns/vegadns-0.9.10.ebuild56
-rw-r--r--net-dns/vegadns/vegadns-1.1.6.ebuild57
9 files changed, 216 insertions, 0 deletions
diff --git a/net-dns/vegadns/ChangeLog b/net-dns/vegadns/ChangeLog
new file mode 100644
index 0000000..c6560a5
--- /dev/null
+++ b/net-dns/vegadns/ChangeLog
@@ -0,0 +1,25 @@
+# ChangeLog for net-dns/vegadns
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 08 Sep 2007; Jakub Moc <jakub@gentoo.org> +vegadns-1.1.6.ebuild:
+ Add a testing branch version as well
+
+ 08 Sep 2007; Jakub Moc <jakub@gentoo.org> files/postinstall-en.txt,
+ -vegadns-0.9.9.1.ebuild, +vegadns-0.9.10.ebuild:
+ Version bump, remove old vulnerable version. Fix dependencies, do not depend
+ on mysql but check for needed php features instead. This requires php with
+ USE=sessions as well. Fix LICENSE, fix SRC_URI. Quoting, ebuild cleanup.
+
+ 16 Jan 2006; Lares Moreau <lares.moreau@gmail.com> ChangeLog:
+ Make repoman happy about whitespace.
+
+ 16 Jan 2006; Lares Moreau <lares.moreau@gmail.com> ChangeLog:
+ Variable updates thanks to rl03.
+
+ 16 Jan 2006; Lares Moreau <lares.moreau@gmail.com> ChangeLog:
+ Updated postinstall-en.txt to reflect original INSTALL doc
+
+ 16 Jan 2006; Lares Moreau <lares.moreau@gmail.com> ChangeLog:
+ Requested ebuild
+
diff --git a/net-dns/vegadns/Manifest b/net-dns/vegadns/Manifest
new file mode 100644
index 0000000..dd9bae0
--- /dev/null
+++ b/net-dns/vegadns/Manifest
@@ -0,0 +1,8 @@
+AUX postinstall-en.txt 1556 RMD160 c655bbaf3031d9804cb046e1ed88cdcdccedea34 SHA1 14d0721276184bc94477c9675639ce2f5cd82d5c SHA256 c815ceed0eb5588444496be9fdfc1c8e242c55b707e2de3e36538c88b1ade037
+AUX reconfig 384 RMD160 bca3b0c29880c7acbced50e7c9ccfd7ddcf061f6 SHA1 11f7ca1287edff0c8f5cc98a5b6af2e4771a7a8d SHA256 7de0a6460443711bee5289c40a01e2a601761f9d9c944cda598f0190cbe6d2b4
+DIST vegadns-0.9.10.tgz 124747 RMD160 14f7264a070918678de585b319af64f0faf5a87b SHA1 18403649ca84743622defd79f37e5cbc6b21c822 SHA256 b1fb27609a7411574ad1b09bfd61e7e5ca03f43d4e15fedfa124bb157825540d
+DIST vegadns-1.1.6.tar.gz 228415 RMD160 b6c68bfe40c22d08c10b8f943fb14696e1034c68 SHA1 f999e882d5bedeca68d3d48b8c845e57b6d768ee SHA256 001679bc44724fbb6deea52d06ef03946697a26f49fe40d113e84f15be20afa4
+EBUILD vegadns-0.9.10.ebuild 1293 RMD160 6cfe617596f44c4f26c220721ed8bfe8b140d6a8 SHA1 619465b916f16100b8092194e8fa1f14a2a7258f SHA256 db07f1fb8f128f218196694b5e2a61da6a9ece49488a0922b80267d0901fb3ba
+EBUILD vegadns-1.1.6.ebuild 1325 RMD160 36b0985971e317e4522adcec61176c9948e5effd SHA1 62afc0cee322d6831843f71ae62ce8700d7a2a50 SHA256 cdd2b1f0db5d43b32b47d818ff8b64c5ad61930a8f03a2040dfc6df0577e14ef
+MISC ChangeLog 990 RMD160 bf9dac0a61a964bdd5e2c713c11328f96ddbe684 SHA1 e3f41517d86871ed57fdd1a47e524015c08af89c SHA256 80a5f1e1b0648a1234fa1279df1ec2fa7ad3df80fb9306c4a12b352e13a0fd6b
+MISC metadata.xml 162 RMD160 0b015f5ff17c4d8e7aee826d48b326cc19b1fed4 SHA1 671b30dafbea01228c8bb606af451a0795922840 SHA256 84ff2fc6c9a4af1b9dbe32aa81ab84c2958bc1bd65a9977686df2dcab6e420d0
diff --git a/net-dns/vegadns/files/digest-vegadns-0.9.10 b/net-dns/vegadns/files/digest-vegadns-0.9.10
new file mode 100644
index 0000000..6542e77
--- /dev/null
+++ b/net-dns/vegadns/files/digest-vegadns-0.9.10
@@ -0,0 +1,3 @@
+MD5 1a0cce2fd69c80574eced821aa8676b7 vegadns-0.9.10.tgz 124747
+RMD160 14f7264a070918678de585b319af64f0faf5a87b vegadns-0.9.10.tgz 124747
+SHA256 b1fb27609a7411574ad1b09bfd61e7e5ca03f43d4e15fedfa124bb157825540d vegadns-0.9.10.tgz 124747
diff --git a/net-dns/vegadns/files/digest-vegadns-1.1.6 b/net-dns/vegadns/files/digest-vegadns-1.1.6
new file mode 100644
index 0000000..bf38fdf
--- /dev/null
+++ b/net-dns/vegadns/files/digest-vegadns-1.1.6
@@ -0,0 +1,3 @@
+MD5 f651b4ff0835186e717fdf338247cfe0 vegadns-1.1.6.tar.gz 228415
+RMD160 b6c68bfe40c22d08c10b8f943fb14696e1034c68 vegadns-1.1.6.tar.gz 228415
+SHA256 001679bc44724fbb6deea52d06ef03946697a26f49fe40d113e84f15be20afa4 vegadns-1.1.6.tar.gz 228415
diff --git a/net-dns/vegadns/files/postinstall-en.txt b/net-dns/vegadns/files/postinstall-en.txt
new file mode 100644
index 0000000..1d67982
--- /dev/null
+++ b/net-dns/vegadns/files/postinstall-en.txt
@@ -0,0 +1,39 @@
+0. PHP CONFIGURATION
+
+Make sure that both register_globals and safe_mode are turned OFF,
+at least for the VirtualHost(s) you will be using this at.
+
+1. SETUP
+
+- Setup SQL db with following permissions
+ SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER
+
+- Change ${MY_INSTALLDIR}/src/config.php
+ as necessary to reflect your SQLdb and tinyDNS service.
+
+- Log into VegaDNS for the first time to create the tables, and update the
+ default login information by pointing your web browser to:
+
+ http://${VHOST_HOSTNAME}/${VHOST_APPDIR}
+
+ Next, you should edit "default_records" so that new domains have the proper
+ SOA record, and that they have name servers, etc. Once this is done, you
+ can add or import a domain, then setup the data dumps in the next step.
+
+- To install the update-data.sh script (currently located in the
+ /usr/share/doc/${PF}), you will need to first edit the
+ VEGADNS variable to point to the correct url. You may also need to update
+ the TINYDNSDIR variable if you used something other than /etc/tinydns.
+
+ Try exectuting the update-data.sh shell script. Once you confirm that
+ this is working correctly, move update-data.sh to /usr/sbin/ and then
+ add it to cron to run every 10 minutes or so, whatever is appropriate.
+ You'll an entry to your crontab like so:
+
+ # Update tinydns with VegaDNS data
+ */10 * * * * /usr/sbin/update-data.sh
+
+NOTE: If intend to run update_data.sh from an IP other than 127.0.0.1, then
+you will need to add that IP to $trusted_hosts in config.php
+
+Also See: /usr/share/doc/${PF}/INSTALL
diff --git a/net-dns/vegadns/files/reconfig b/net-dns/vegadns/files/reconfig
new file mode 100644
index 0000000..72e0052
--- /dev/null
+++ b/net-dns/vegadns/files/reconfig
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+die() {
+ echo "#####"
+ echo $1
+ echo "#####"
+ exit 1
+}
+
+if [ $1 = "install" ]; then
+ config_file="${MY_INSTALLDIR`}/src/config.php"
+ sed -e "s:/usr/local/apache/vegadns:${VHOST_ROOT}/${PN}:" \
+ -e "s:127.0.0.1/vegadns-0.9.9.1:${VHOST_HOSTNAME}/${PN}:" \
+ -e "s:/usr/local/bin:/usr/bin:" \
+ -i ${config_file} || die "sed failed"
+fi
+
+if [ $1 = "clean" ]; then
+ echo $1
+fi
diff --git a/net-dns/vegadns/metadata.xml b/net-dns/vegadns/metadata.xml
new file mode 100644
index 0000000..6632069
--- /dev/null
+++ b/net-dns/vegadns/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>web-apps</herd>
+</pkgmetadata>
diff --git a/net-dns/vegadns/vegadns-0.9.10.ebuild b/net-dns/vegadns/vegadns-0.9.10.ebuild
new file mode 100644
index 0000000..a6e5d68
--- /dev/null
+++ b/net-dns/vegadns/vegadns-0.9.10.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit webapp depend.apache depend.php
+
+DESCRIPTION="A tinydns administration tool written in PHP allowing easy administration of DNS records through a web browser."
+HOMEPAGE="http://www.vegadns.org"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
+
+LICENSE="GPL-2 LGPL-2.1"
+KEYWORDS="~x86"
+IUSE=""
+
+RDEPEND="net-misc/wget
+ net-dns/djbdns
+ sys-apps/ucspi-tcp
+ sys-process/daemontools
+ virtual/cron"
+
+need_php_httpd
+want_apache
+
+pkg_setup() {
+ require_php_with_use mysql session
+ webapp_pkg_setup
+}
+
+src_install() {
+ webapp_src_preinst
+
+ local docs="CHANGELOG CREDITS INSTALL README TODO UPGRADE"
+ dodoc ${docs}
+ rm -f ${docs} COPYING
+
+ einfo "Copying main files"
+ cp -r . "${D}"/${MY_HTDOCSDIR}
+ cd "${D}"/${MY_HTDOCSDIR}
+
+ dodir ${MY_HOSTROOTDIR}/${PF}
+ cd "${D}"/${MY_HOSTROOTDIR}/${PF}
+
+ local dir="templates_c configs cache sessions"
+ for i in ${dir}; do
+ keepdir ${MY_HOSTROOTDIR}/${PF}/${i}
+ done
+
+ for j in $(find ./ -type d -print); do
+ webapp_serverowned ${MY_HOSTROOTDIR}/${PF}/${j}
+ done
+
+ webapp_hook_script "${FILESDIR}"/reconfig
+ webapp_configfile ${MY_HTDOCSDIR}/src/config.php
+ webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
+ webapp_src_install
+}
diff --git a/net-dns/vegadns/vegadns-1.1.6.ebuild b/net-dns/vegadns/vegadns-1.1.6.ebuild
new file mode 100644
index 0000000..7d3a2c7
--- /dev/null
+++ b/net-dns/vegadns/vegadns-1.1.6.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit webapp depend.apache depend.php
+
+DESCRIPTION="A tinydns administration tool written in PHP allowing easy administration of DNS records through a web browser."
+HOMEPAGE="http://www.vegadns.org"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2 LGPL-2.1 BSD PHP"
+KEYWORDS="~x86"
+IUSE=""
+
+RDEPEND="net-misc/wget
+ net-dns/djbdns
+ net-misc/whois
+ sys-apps/ucspi-tcp
+ sys-process/daemontools
+ virtual/cron"
+
+need_php_httpd
+want_apache
+
+pkg_setup() {
+ require_php_with_use mysql session
+ webapp_pkg_setup
+}
+
+src_install() {
+ webapp_src_preinst
+
+ local docs="CHANGELOG CREDITS INSTALL README* TODO UPGRADE"
+ dodoc ${docs}
+ rm -f ${docs} COPYING GPL
+
+ einfo "Copying main files"
+ cp -r . "${D}"/${MY_HTDOCSDIR}
+ cd "${D}"/${MY_HTDOCSDIR}
+
+ dodir ${MY_HOSTROOTDIR}/${PF}
+ cd "${D}"/${MY_HOSTROOTDIR}/${PF}
+
+ local dir="templates_c configs cache sessions"
+ for i in ${dir}; do
+ keepdir ${MY_HOSTROOTDIR}/${PF}/${i}
+ done
+
+ for j in $(find ./ -type d -print); do
+ webapp_serverowned ${MY_HOSTROOTDIR}/${PF}/${j}
+ done
+
+ webapp_hook_script "${FILESDIR}"/reconfig
+ webapp_configfile ${MY_HTDOCSDIR}/src/config.php
+ webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
+ webapp_src_install
+}