summaryrefslogtreecommitdiff
path: root/www-misc
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /www-misc
reinit the tree, so we can have metadata
Diffstat (limited to 'www-misc')
-rw-r--r--www-misc/awstats/Manifest11
-rw-r--r--www-misc/awstats/awstats-7.1_p20121017.ebuild110
-rw-r--r--www-misc/awstats/awstats-7.4.ebuild111
-rw-r--r--www-misc/awstats/awstats-7.5.ebuild115
-rw-r--r--www-misc/awstats/files/awstats-7.1-gentoo.diff21
-rw-r--r--www-misc/awstats/files/awstats-perl-5.22.patch45
-rw-r--r--www-misc/awstats/metadata.xml8
-rw-r--r--www-misc/bookmarksync/Manifest5
-rw-r--r--www-misc/bookmarksync/bookmarksync-0.3.4-r2.ebuild42
-rw-r--r--www-misc/bookmarksync/metadata.xml13
-rw-r--r--www-misc/fcgiwrap/Manifest8
-rw-r--r--www-misc/fcgiwrap/fcgiwrap-1.1.0-r1.ebuild58
-rw-r--r--www-misc/fcgiwrap/fcgiwrap-1.1.0_pre20150419.ebuild63
-rw-r--r--www-misc/fcgiwrap/fcgiwrap-9999.ebuild59
-rw-r--r--www-misc/fcgiwrap/metadata.xml13
-rw-r--r--www-misc/gurlchecker/Manifest8
-rw-r--r--www-misc/gurlchecker/files/gurlchecker-0.10.5-autoconf-tidy.patch15
-rw-r--r--www-misc/gurlchecker/files/gurlchecker-0.13.1-gnutls.patch26
-rw-r--r--www-misc/gurlchecker/files/gurlchecker-0.13.1-ldflags.patch40
-rw-r--r--www-misc/gurlchecker/gurlchecker-0.13.1-r2.ebuild73
-rw-r--r--www-misc/gurlchecker/metadata.xml14
-rw-r--r--www-misc/htdig/Manifest12
-rw-r--r--www-misc/htdig/files/htdig-3.2.0_beta6-as-needed.patch61
-rw-r--r--www-misc/htdig/files/htdig-3.2.0_beta6-gcc4.patch15
-rw-r--r--www-misc/htdig/files/htdig-3.2.0_beta6-gcc6.patch65
-rw-r--r--www-misc/htdig/files/htdig-3.2.0_beta6-musl.patch33
-rw-r--r--www-misc/htdig/files/htdig-3.2.0_beta6-quoting.patch26
-rw-r--r--www-misc/htdig/htdig-3.2.0_beta6-r3.ebuild65
-rw-r--r--www-misc/htdig/htdig-3.2.0_beta6-r4.ebuild62
-rw-r--r--www-misc/htdig/htdig-3.2.0_beta6-r5.ebuild63
-rw-r--r--www-misc/htdig/metadata.xml8
-rw-r--r--www-misc/litmus/Manifest6
-rw-r--r--www-misc/litmus/files/0.13-autotools-neon-version.patch11
-rw-r--r--www-misc/litmus/litmus-0.13.ebuild61
-rw-r--r--www-misc/litmus/metadata.xml18
-rw-r--r--www-misc/log-toolkit/Manifest5
-rw-r--r--www-misc/log-toolkit/log-toolkit-0.9.6-r1.ebuild16
-rw-r--r--www-misc/log-toolkit/metadata.xml8
-rw-r--r--www-misc/mergelog/Manifest7
-rw-r--r--www-misc/mergelog/files/mergelog-4.5-asneeded.patch32
-rw-r--r--www-misc/mergelog/files/mergelog-4.5-splitlog.patch384
-rw-r--r--www-misc/mergelog/mergelog-4.5-r2.ebuild25
-rw-r--r--www-misc/mergelog/metadata.xml11
-rw-r--r--www-misc/metadata.xml38
-rw-r--r--www-misc/monitorix/Manifest10
-rw-r--r--www-misc/monitorix/files/monitorix.init24
-rw-r--r--www-misc/monitorix/metadata.xml22
-rw-r--r--www-misc/monitorix/monitorix-3.5.1.ebuild95
-rw-r--r--www-misc/monitorix/monitorix-3.8.1-r1.ebuild100
-rw-r--r--www-misc/monitorix/monitorix-3.9.0.ebuild101
-rw-r--r--www-misc/multisort/Manifest5
-rw-r--r--www-misc/multisort/metadata.xml5
-rw-r--r--www-misc/multisort/multisort-1.1-r1.ebuild30
-rw-r--r--www-misc/nx_util/Manifest8
-rw-r--r--www-misc/nx_util/files/0.52.1-fix-install-paths.patch49
-rw-r--r--www-misc/nx_util/metadata.xml12
-rw-r--r--www-misc/nx_util/nx_util-0.52.1.ebuild34
-rw-r--r--www-misc/nx_util/nx_util-0.53.1.ebuild34
-rw-r--r--www-misc/profile-sync-daemon/Manifest8
-rw-r--r--www-misc/profile-sync-daemon/metadata.xml8
-rw-r--r--www-misc/profile-sync-daemon/profile-sync-daemon-5.45.1.ebuild32
-rw-r--r--www-misc/profile-sync-daemon/profile-sync-daemon-6.31.ebuild32
-rw-r--r--www-misc/profile-sync-daemon/profile-sync-daemon-9999.ebuild19
-rw-r--r--www-misc/shellinabox/Manifest7
-rw-r--r--www-misc/shellinabox/files/shellinaboxd.conf74
-rw-r--r--www-misc/shellinabox/files/shellinaboxd.init63
-rw-r--r--www-misc/shellinabox/files/shellinaboxd.service14
-rw-r--r--www-misc/shellinabox/metadata.xml18
-rw-r--r--www-misc/shellinabox/shellinabox-2.20-r1.ebuild107
-rw-r--r--www-misc/surl/Manifest5
-rw-r--r--www-misc/surl/metadata.xml11
-rw-r--r--www-misc/surl/surl-0.7.1.1-r1.ebuild16
-rw-r--r--www-misc/urlwatch/Manifest7
-rw-r--r--www-misc/urlwatch/metadata.xml13
-rw-r--r--www-misc/urlwatch/urlwatch-2.5.ebuild43
-rw-r--r--www-misc/urlwatch/urlwatch-2.6.ebuild49
-rw-r--r--www-misc/vdradmin-am/Manifest13
-rw-r--r--www-misc/vdradmin-am/files/vdradmin-3.6.6.conf26
-rw-r--r--www-misc/vdradmin-am/files/vdradmin-3.6.6.logrotate9
-rw-r--r--www-misc/vdradmin-am/files/vdradmin-3.6.7.init56
-rw-r--r--www-misc/vdradmin-am/files/vdradmind.conf2
-rw-r--r--www-misc/vdradmin-am/files/vdradmind.service13
-rw-r--r--www-misc/vdradmin-am/metadata.xml21
-rw-r--r--www-misc/vdradmin-am/vdradmin-am-3.6.10.ebuild177
-rw-r--r--www-misc/vdradmin-am/vdradmin-am-3.6.9-r3.ebuild177
-rw-r--r--www-misc/vdradmin-am/vdradmin-am-3.6.9.ebuild160
-rw-r--r--www-misc/visitors/Manifest5
-rw-r--r--www-misc/visitors/metadata.xml10
-rw-r--r--www-misc/visitors/visitors-0.7-r1.ebuild39
-rw-r--r--www-misc/wsmake/Manifest7
-rw-r--r--www-misc/wsmake/files/wsmake-0.6.4-bv.diff13
-rw-r--r--www-misc/wsmake/files/wsmake-0.6.4-gcc43.patch33
-rw-r--r--www-misc/wsmake/metadata.xml5
-rw-r--r--www-misc/wsmake/wsmake-0.6.4.ebuild33
-rw-r--r--www-misc/xxv/Manifest8
-rw-r--r--www-misc/xxv/files/xxv.utf8-v5100
-rw-r--r--www-misc/xxv/files/xxvd-1.0.cfg162
-rw-r--r--www-misc/xxv/files/xxvd-logrotate26
-rw-r--r--www-misc/xxv/metadata.xml19
-rw-r--r--www-misc/xxv/xxv-1.6.1-r1.ebuild190
-rw-r--r--www-misc/zoneminder/Manifest19
-rw-r--r--www-misc/zoneminder/files/10_zoneminder.conf18
-rw-r--r--www-misc/zoneminder/files/10_zoneminder.conf-r117
-rw-r--r--www-misc/zoneminder/files/README.gentoo27
-rw-r--r--www-misc/zoneminder/files/conf.d6
-rw-r--r--www-misc/zoneminder/files/init.d25
-rw-r--r--www-misc/zoneminder/files/zoneminder-1.26.5-automagic.patch34
-rw-r--r--www-misc/zoneminder/files/zoneminder-1.28.1-mysql_include_path.patch20
-rw-r--r--www-misc/zoneminder/files/zoneminder-1.30.2-diskspace.patch15
-rw-r--r--www-misc/zoneminder/files/zoneminder.service11
-rw-r--r--www-misc/zoneminder/metadata.xml16
-rw-r--r--www-misc/zoneminder/zoneminder-1.30.0.ebuild176
-rw-r--r--www-misc/zoneminder/zoneminder-1.30.2-r1.ebuild177
-rw-r--r--www-misc/zoneminder/zoneminder-1.30.2.ebuild176
114 files changed, 4986 insertions, 0 deletions
diff --git a/www-misc/awstats/Manifest b/www-misc/awstats/Manifest
new file mode 100644
index 000000000000..21a22240826e
--- /dev/null
+++ b/www-misc/awstats/Manifest
@@ -0,0 +1,11 @@
+AUX awstats-7.1-gentoo.diff 795 SHA256 528b9c8608824dcadbd5e1f76f6a4e4931186c4dfb87b33820c27d9ca20f6bca SHA512 09e46f32b31389cd1d98465c8b2578c37d5d4d601baf58eb8ed6811875743c3b19819d6820977a9aaace8d8f8c97be8f798fcbaa10f7ed0cb950a2f7f843754c WHIRLPOOL 953e133ff9110cd051728544033bab4eb631a7ad800a2626531d21513c0e9c6c0cd6a2cadd4f38e604fc91ee0ff147045343e8c355155f4d5f062295cb99e901
+AUX awstats-perl-5.22.patch 1981 SHA256 75424c92f8adb1be955b6562377de2af1851cd26397151dea08e14e815d9ee59 SHA512 9b0b4768583e40a55635b5c81c608798ee3036779359747d91cf12d96757d62b79fc8abbe43dbf322f9958616fafcd99d122fcd5c8234f2e6b871173da769800 WHIRLPOOL 30714b9f69f9338a53388d46c566c40424e2700abf6496a814b8356e9e6ebf1bdad82e04885723a848eb32314891d450e1e16110cdb16741e77478900e87cba5
+DIST awstats-7.1_p20121017.tar.gz 1258135 SHA256 262364b77d825096fee088b207f9f6c3d986dddd89645fca53fe09aa8c1fd850 SHA512 171ff3118955c8b73c968a23983885d967632d2c6e95a45f71e5f6fea74afe34d869c9cc901e2e739419068babc96385d7d7df1e8ca10074be7388fbe5c51f53 WHIRLPOOL 678bd6e36634ae2bdee46f42df6d2239a260a188fb1ae07199ef9043a0ad3b54baca7152032873848fabd42f94ef6a92da623e1eb9439d2dbcff15411679f207
+DIST awstats-7.4.tar.gz 2936102 SHA256 43abfe7341c2be64f55bb89557347475640ca7ba4473ff30412a3d44358dab55 SHA512 5bce97c71aabeab35e4ff5e5168531e4955d7c1474322c7b4a47d1d06e06ebd0e74d1def73826498e6253f24aeca99309777617b7a914685c927bb6e1c020e1a WHIRLPOOL 8e6872672ec31c73492764414bfbc17ad4b3e295753f301d199d72ccac6df93fcf8969aa792a2de188f20d89a9e4e368f429aa6c9ed38f31ca3415c8fe7899a9
+DIST awstats-7.5.tar.gz 2936644 SHA256 83c34bdeab9c277c14bea348c2d320f4a1e808388264139821c6bd6dfd1394f8 SHA512 d69a66b5ef94d8a7378ece0453a3617f71ad030d81c45cff926fae1319eacdcdcbe2e68513153cd7444d77cbb950827964b0157ce74c04be76781c071f016a35 WHIRLPOOL 07ed909caecc1fb5c313e0edc1f3f8b9b9ec582131532aff941327966beae1b2948fc83c32865df9712a31b824cb76301153436dcaaa21cf324ed473a72ab0fc
+EBUILD awstats-7.1_p20121017.ebuild 3345 SHA256 860dd72d79b7685d19ce74d7c21d29c20f03f3264e11fc8228b74ca41415201c SHA512 ffc8cb30424bde66392ac433b589b6f1b7374c3006e63c96e85456ea99a8d9c6f00092f5c885c65b134186c8f99066c824190b2e82c2547859240196b63e692a WHIRLPOOL e54d23c2d2a15693b35ba3591c19c6bfbee973bf71f4103d01a546c9e12e2c38744e6253efebc06c73c17e00c11a171be50b12597019a596532e8009b3c8c297
+EBUILD awstats-7.4.ebuild 3388 SHA256 7cd87e1e901cdc88bfce0f791f5e4e0be9e9c326c4807d423d67ebc2a811ec02 SHA512 44ba5a936f9176537e90706e3d529bff573f1cfbffed83e3ceb75735701abca921fa51c97fd6f5d1ed01477195dd7f0c3af83d0e9610cdc445ae8a5c151e4650 WHIRLPOOL 90ea424e70cc90a599aedcd41daee6218af614fbd729b4f951a9a2945861c93ba34ffb842fc2c42c94f7f8e57a48f0e33eee7e7348074919eb93f85cfa82b091
+EBUILD awstats-7.5.ebuild 3378 SHA256 cf0b9cd2024d1774cdf9f82ec4b93bb2ebe86f55c7f8f5e32fbe36a7ed879469 SHA512 b63153954625ecd184951ee0cfaa092c82b7c5508adbf9bd6e344c6f6d58349c56118f44cf92a09c049fba008ec65ec5313f1da2b7affc8b73135a081c08f8db WHIRLPOOL e625c9359607d415a40754690e9744bf9c3dac163938f97aa3ca551d35762d25624418c928e93d41ed053c457884d0158b5ef45f78a04f48e149845322aec5d3
+MISC ChangeLog 3438 SHA256 2de1baf781d0644d94b11d007fa130550e7ce7517abdc13eafb2ba119c9fb57f SHA512 5edcc6b09b2072918d2d96cba15dcc57e4406811c1a461eb2c66c099f4b570a00ea5e70f2d7cb992e5e59eaaa300cedf869a754a2ab7d13d98d647d017bb7dcb WHIRLPOOL 0528d41d3426b8d9e6cdb63c63755300e31b2ecd12068357f7e6eef5cad328510b8757c200cdf0a1b56a94f049d1bb27275c801fb331c623d7aecb8a21234397
+MISC ChangeLog-2015 16360 SHA256 cf9f5d22c62df3e71dfb60de21b59e75d385f664f715ee421c219560295953bf SHA512 35464c9e3c0b63eeb3ed4a0d9f26ef99df0c43dd2871ce5dfd294a993a078f52b1070eaa9d64cc67bea8174bf4cb19b16fce2d5954cf4a0938e868a5f66defca WHIRLPOOL 3f2136d2d4c80e6ed591badc54225980e5358f4cbec9d869d824abd3c98a914133ac71a86b00c8bd59eab2ce615a93f461a34d684291b9b82e28bdd79e45dfb7
+MISC metadata.xml 254 SHA256 505bbe1dda85e72f5fc88df19d80870b6c8afa7399b0cfd6cdca6eb006606526 SHA512 b4674c7f9d0dc24c25846b3fe716415b648a61099b8d2f7eb099cf14f9a8f4670af4638349f953fe1b32b9d357911e533b72eaf4bbf14f54827512fd9bbb0ee8 WHIRLPOOL 7fc3bad9398937e998517aa35693607fbcde33d68a3727ba226147840e1a9adf71d459cc8a5f035600193bdb14e259c417cfd6155b5532d03ead8c9321a9abe9
diff --git a/www-misc/awstats/awstats-7.1_p20121017.ebuild b/www-misc/awstats/awstats-7.1_p20121017.ebuild
new file mode 100644
index 000000000000..225a3d04175a
--- /dev/null
+++ b/www-misc/awstats/awstats-7.1_p20121017.ebuild
@@ -0,0 +1,110 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils
+
+MY_P=${PN}-${PV%_p*}
+
+DESCRIPTION="AWStats is short for Advanced Web Statistics"
+HOMEPAGE="http://www.awstats.org/"
+
+if [ ${MY_P} != ${P} ]; then
+ SRC_URI="https://dev.gentoo.org/~flameeyes/awstats/${P}.tar.gz"
+ # The following SRC_URI is useful only when fetching for the first time
+ # after bump; upstream does not bump the version when they change it, so
+ # we rename it to include the date and upload to our mirrors instead.
+ #SRC_URI="http://www.awstats.org/files/${MY_P}.tar.gz -> ${P}.tar.gz"
+else
+ SRC_URI="http://www.awstats.org/files/${P}.tar.gz"
+fi
+
+S=${WORKDIR}/${MY_P}
+
+LICENSE="GPL-2"
+KEYWORDS="~alpha amd64 hppa ppc ~sparc x86 ~x86-fbsd"
+IUSE="geoip ipv6"
+
+SLOT="0"
+
+RDEPEND=">=dev-lang/perl-5.6.1
+ virtual/perl-Time-Local
+ dev-perl/URI
+ geoip? ( dev-perl/Geo-IP )
+ ipv6? ( dev-perl/Net-IP dev-perl/Net-DNS )"
+DEPEND=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-7.1-gentoo.diff
+
+ # change default installation directory
+ find . -type f -exec sed \
+ -e "s#/usr/local/awstats/wwwroot#/usr/share/awstats/wwwroot#g" \
+ -e '/PossibleLibDir/s:(.*):("/usr/share/awstats/wwwroot/cgi-bin/lib"):' \
+ -i {} + || die "find/sed failed"
+
+ # set default values for directories; use apache log as an example
+ sed \
+ -e "s|^\(LogFile=\).*$|\1\"/var/log/apache2/access_log\"|" \
+ -e "s|^\(SiteDomain=\).*$|\1\"localhost\"|" \
+ -e "s|^\(DirIcons=\).*$|\1\"/awstats/icon\"|" \
+ -i "${S}"/wwwroot/cgi-bin/awstats.model.conf || die "sed failed"
+
+ # enable plugins
+
+ if use ipv6; then
+ sed -e "s|^#\(LoadPlugin=\"ipv6\"\)$|\1|" \
+ -i "${S}"/wwwroot/cgi-bin/awstats.model.conf || die "sed failed"
+ fi
+
+ if use geoip; then
+ sed -e '/LoadPlugin="geoip /aLoadPlugin="geoip GEOIP_STANDARD /usr/share/GeoIP/GeoIP.dat"' \
+ -i "${S}"/wwwroot/cgi-bin/awstats.model.conf || die "sed failed"
+ fi
+
+ find "${S}" '(' -type f -not -name '*.pl' ')' -exec chmod -x {} + || die
+}
+
+src_install() {
+ dohtml -r docs/*
+ dodoc README.TXT
+ newdoc wwwroot/cgi-bin/plugins/example/example.pm example_plugin.pm
+ dodoc -r tools/xslt
+
+ keepdir /var/lib/awstats
+
+ insinto /etc/awstats
+ doins "${S}"/wwwroot/cgi-bin/awstats.model.conf
+
+ # remove extra content that we don't want to install
+ rm -r "${S}"/wwwroot/cgi-bin/awstats.model.conf \
+ "${S}"/wwwroot/classes/src || die
+
+ insinto /usr/share/awstats
+ doins -r wwwroot
+ chmod +x "${D}"/usr/share/awstats/wwwroot/cgi-bin/*.pl
+
+ cd "${S}"/tools
+ dobin awstats_buildstaticpages.pl awstats_exportlib.pl \
+ awstats_updateall.pl
+ newbin logresolvemerge.pl awstats_logresolvemerge.pl
+ newbin maillogconvert.pl awstats_maillogconvert.pl
+ newbin urlaliasbuilder.pl awstats_urlaliasbuilder.pl
+
+ dosym ../share/awstats/wwwroot/cgi-bin/awstats.pl /usr/bin/awstats.pl || die
+}
+
+pkg_postinst() {
+ elog "The AWStats-Manual is available either inside"
+ elog "the /usr/share/doc/${PF} - folder, or at"
+ elog "http://awstats.sourceforge.net/docs/index.html ."
+ elog
+ elog "Copy the /etc/awstats/awstats.model.conf to"
+ elog "/etc/awstats/awstats.<yourdomain>.conf and edit it."
+ elog ""
+ ewarn "This ebuild does no longer use webapp-config to install"
+ ewarn "instead you should point your configuration to the stable"
+ ewarn "directory tree in the following path:"
+ ewarn " /usr/share/awstats"
+}
diff --git a/www-misc/awstats/awstats-7.4.ebuild b/www-misc/awstats/awstats-7.4.ebuild
new file mode 100644
index 000000000000..3e8cf18c8f75
--- /dev/null
+++ b/www-misc/awstats/awstats-7.4.ebuild
@@ -0,0 +1,111 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils
+
+MY_P=${PN}-${PV%_p*}
+
+DESCRIPTION="AWStats is short for Advanced Web Statistics"
+HOMEPAGE="http://www.awstats.org/"
+
+if [ ${MY_P} != ${P} ]; then
+ SRC_URI="https://dev.gentoo.org/~flameeyes/awstats/${P}.tar.gz"
+ # The following SRC_URI is useful only when fetching for the first time
+ # after bump; upstream does not bump the version when they change it, so
+ # we rename it to include the date and upload to our mirrors instead.
+ #SRC_URI="http://www.awstats.org/files/${MY_P}.tar.gz -> ${P}.tar.gz"
+else
+ SRC_URI="http://www.awstats.org/files/${P}.tar.gz"
+fi
+
+S=${WORKDIR}/${MY_P}
+
+LICENSE="GPL-3"
+KEYWORDS="~alpha amd64 hppa ppc ~sparc x86 ~x86-fbsd"
+IUSE="geoip ipv6"
+
+SLOT="0"
+
+RDEPEND=">=dev-lang/perl-5.6.1
+ virtual/perl-Time-Local
+ dev-perl/URI
+ geoip? ( dev-perl/Geo-IP )
+ ipv6? ( dev-perl/Net-IP dev-perl/Net-DNS )"
+DEPEND=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-7.1-gentoo.diff
+ epatch "${FILESDIR}"/${PN}-perl-5.22.patch
+
+ # change default installation directory
+ find . -type f -exec sed \
+ -e "s#/usr/local/awstats/wwwroot#/usr/share/awstats/wwwroot#g" \
+ -e '/PossibleLibDir/s:(.*):("/usr/share/awstats/wwwroot/cgi-bin/lib"):' \
+ -i {} + || die "find/sed failed"
+
+ # set default values for directories; use apache log as an example
+ sed \
+ -e "s|^\(LogFile=\).*$|\1\"/var/log/apache2/access_log\"|" \
+ -e "s|^\(SiteDomain=\).*$|\1\"localhost\"|" \
+ -e "s|^\(DirIcons=\).*$|\1\"/awstats/icon\"|" \
+ -i "${S}"/wwwroot/cgi-bin/awstats.model.conf || die "sed failed"
+
+ # enable plugins
+
+ if use ipv6; then
+ sed -e "s|^#\(LoadPlugin=\"ipv6\"\)$|\1|" \
+ -i "${S}"/wwwroot/cgi-bin/awstats.model.conf || die "sed failed"
+ fi
+
+ if use geoip; then
+ sed -e '/LoadPlugin="geoip /aLoadPlugin="geoip GEOIP_STANDARD /usr/share/GeoIP/GeoIP.dat"' \
+ -i "${S}"/wwwroot/cgi-bin/awstats.model.conf || die "sed failed"
+ fi
+
+ find "${S}" '(' -type f -not -name '*.pl' ')' -exec chmod -x {} + || die
+}
+
+src_install() {
+ dohtml -r docs/*
+ dodoc README.md
+ newdoc wwwroot/cgi-bin/plugins/example/example.pm example_plugin.pm
+ dodoc -r tools/xslt
+
+ keepdir /var/lib/awstats
+
+ insinto /etc/awstats
+ doins "${S}"/wwwroot/cgi-bin/awstats.model.conf
+
+ # remove extra content that we don't want to install
+ rm -r "${S}"/wwwroot/cgi-bin/awstats.model.conf \
+ "${S}"/wwwroot/classes/src || die
+
+ insinto /usr/share/awstats
+ doins -r wwwroot
+ chmod +x "${D}"/usr/share/awstats/wwwroot/cgi-bin/*.pl
+
+ cd "${S}"/tools
+ dobin awstats_buildstaticpages.pl awstats_exportlib.pl \
+ awstats_updateall.pl
+ newbin logresolvemerge.pl awstats_logresolvemerge.pl
+ newbin maillogconvert.pl awstats_maillogconvert.pl
+ newbin urlaliasbuilder.pl awstats_urlaliasbuilder.pl
+
+ dosym ../share/awstats/wwwroot/cgi-bin/awstats.pl /usr/bin/awstats.pl || die
+}
+
+pkg_postinst() {
+ elog "The AWStats-Manual is available either inside"
+ elog "the /usr/share/doc/${PF} - folder, or at"
+ elog "http://awstats.sourceforge.net/docs/index.html ."
+ elog
+ elog "Copy the /etc/awstats/awstats.model.conf to"
+ elog "/etc/awstats/awstats.<yourdomain>.conf and edit it."
+ elog ""
+ ewarn "This ebuild does no longer use webapp-config to install"
+ ewarn "instead you should point your configuration to the stable"
+ ewarn "directory tree in the following path:"
+ ewarn " /usr/share/awstats"
+}
diff --git a/www-misc/awstats/awstats-7.5.ebuild b/www-misc/awstats/awstats-7.5.ebuild
new file mode 100644
index 000000000000..537b396cee01
--- /dev/null
+++ b/www-misc/awstats/awstats-7.5.ebuild
@@ -0,0 +1,115 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils
+
+MY_P=${PN}-${PV%_p*}
+
+DESCRIPTION="AWStats is short for Advanced Web Statistics"
+HOMEPAGE="http://www.awstats.org/"
+
+if [ ${MY_P} != ${P} ]; then
+ SRC_URI="https://dev.gentoo.org/~flameeyes/awstats/${P}.tar.gz"
+ # The following SRC_URI is useful only when fetching for the first time
+ # after bump; upstream does not bump the version when they change it, so
+ # we rename it to include the date and upload to our mirrors instead.
+ #SRC_URI="http://www.awstats.org/files/${MY_P}.tar.gz -> ${P}.tar.gz"
+else
+ SRC_URI="http://www.awstats.org/files/${P}.tar.gz"
+fi
+
+S=${WORKDIR}/${MY_P}
+
+LICENSE="GPL-3"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86 ~x86-fbsd"
+IUSE="geoip ipv6"
+
+SLOT="0"
+
+RDEPEND=">=dev-lang/perl-5.6.1
+ virtual/perl-Time-Local
+ dev-perl/URI
+ geoip? ( dev-perl/Geo-IP )
+ ipv6? ( dev-perl/Net-IP dev-perl/Net-DNS )"
+DEPEND=""
+
+src_prepare() {
+ eapply "${FILESDIR}"/${PN}-7.1-gentoo.diff
+
+ # change default installation directory
+ find . -type f -exec sed \
+ -e "s#/usr/local/awstats/wwwroot#/usr/share/awstats/wwwroot#g" \
+ -e '/PossibleLibDir/s:(.*):("/usr/share/awstats/wwwroot/cgi-bin/lib"):' \
+ -i {} + || die "find/sed failed"
+
+ # set default values for directories; use apache log as an example
+ sed \
+ -e "s|^\(LogFile=\).*$|\1\"/var/log/apache2/access_log\"|" \
+ -e "s|^\(SiteDomain=\).*$|\1\"localhost\"|" \
+ -e "s|^\(DirIcons=\).*$|\1\"/awstats/icon\"|" \
+ -i "${S}"/wwwroot/cgi-bin/awstats.model.conf || die "sed failed"
+
+ # enable plugins
+
+ if use ipv6; then
+ sed -e "s|^#\(LoadPlugin=\"ipv6\"\)$|\1|" \
+ -i "${S}"/wwwroot/cgi-bin/awstats.model.conf || die "sed failed"
+ fi
+
+ if use geoip; then
+ sed -e '/LoadPlugin="geoip /aLoadPlugin="geoip GEOIP_STANDARD /usr/share/GeoIP/GeoIP.dat"' \
+ -i "${S}"/wwwroot/cgi-bin/awstats.model.conf || die "sed failed"
+ fi
+
+ find "${S}" '(' -type f -not -name '*.pl' ')' -exec chmod -x {} + || die
+
+ eapply_user
+}
+
+HTML_DOCS="docs/"
+DOCS="README.md"
+
+src_install() {
+ einstalldocs
+
+ newdoc wwwroot/cgi-bin/plugins/example/example.pm example_plugin.pm
+ dodoc -r tools/xslt
+
+ keepdir /var/lib/awstats
+
+ insinto /etc/awstats
+ doins "${S}"/wwwroot/cgi-bin/awstats.model.conf
+
+ # remove extra content that we don't want to install
+ rm -r "${S}"/wwwroot/cgi-bin/awstats.model.conf \
+ "${S}"/wwwroot/classes/src || die
+
+ insinto /usr/share/awstats
+ doins -r wwwroot
+ chmod +x "${D}"/usr/share/awstats/wwwroot/cgi-bin/*.pl
+
+ cd "${S}"/tools
+ dobin awstats_buildstaticpages.pl awstats_exportlib.pl \
+ awstats_updateall.pl
+ newbin logresolvemerge.pl awstats_logresolvemerge.pl
+ newbin maillogconvert.pl awstats_maillogconvert.pl
+ newbin urlaliasbuilder.pl awstats_urlaliasbuilder.pl
+
+ dosym ../share/awstats/wwwroot/cgi-bin/awstats.pl /usr/bin/awstats.pl || die
+}
+
+pkg_postinst() {
+ elog "The AWStats-Manual is available either inside"
+ elog "the /usr/share/doc/${PF} - folder, or at"
+ elog "http://awstats.sourceforge.net/docs/index.html ."
+ elog
+ elog "Copy the /etc/awstats/awstats.model.conf to"
+ elog "/etc/awstats/awstats.<yourdomain>.conf and edit it."
+ elog ""
+ ewarn "This ebuild does no longer use webapp-config to install"
+ ewarn "instead you should point your configuration to the stable"
+ ewarn "directory tree in the following path:"
+ ewarn " /usr/share/awstats"
+}
diff --git a/www-misc/awstats/files/awstats-7.1-gentoo.diff b/www-misc/awstats/files/awstats-7.1-gentoo.diff
new file mode 100644
index 000000000000..a58ed48bd548
--- /dev/null
+++ b/www-misc/awstats/files/awstats-7.1-gentoo.diff
@@ -0,0 +1,21 @@
+--- awstats-6.3.orig/tools/awstats_configure.pl 2005-01-24 09:28:43.980923725 -0500
++++ awstats-6.3/tools/awstats_configure.pl 2005-01-24 09:28:52.034571769 -0500
+@@ -658,6 +658,18 @@
+ print "\n-----> Restart Web server with '$command'\n";
+ my $ret=`$command`;
+ print "$ret";
++ } elsif (-f "/etc/gentoo-release") {
++ my $command;
++ if (-x "/etc/init.d/apache2") {
++ $command="/etc/init.d/apache2 graceful";
++ } else {
++ print "\n-----> Don't forget to restart manually your web server\n";
++ }
++ if ($command != "") {
++ print "\n-----> Restart Web server with '$command'\n";
++ my $ret=`$command`;
++ print "$ret";
++ }
+ } elsif (-x "/sbin/service") {
+ # We are not on debian
+ my $command="/sbin/service httpd restart";
diff --git a/www-misc/awstats/files/awstats-perl-5.22.patch b/www-misc/awstats/files/awstats-perl-5.22.patch
new file mode 100644
index 000000000000..8f4e1cac2c0b
--- /dev/null
+++ b/www-misc/awstats/files/awstats-perl-5.22.patch
@@ -0,0 +1,45 @@
+From 6ca56baf8e5819787c128e5ccd741701cb84bfdd Mon Sep 17 00:00:00 2001
+From: Laurent Destailleur <eldy@destailleur.fr>
+Date: Tue, 18 Aug 2015 20:41:20 +0200
+Subject: [PATCH] Compatibility with Perl 5.22
+
+---
+ docs/awstats_changelog.txt | 1 +
+ wwwroot/cgi-bin/awstats.pl | 12 ++++++------
+ 2 files changed, 7 insertions(+), 6 deletions(-)
+
+diff --git a/docs/awstats_changelog.txt b/docs/awstats_changelog.txt
+index 1fcca7f..1b5e342 100644
+--- a/docs/awstats_changelog.txt
++++ b/docs/awstats_changelog.txt
+@@ -8,6 +8,7 @@ New features:
+ option nboflastupdatelookuptosave on command line.
+ - #199 Added geoip6 plugin with support for IPv4 AND IPv6.
+ - Work with Amazon AWS log files (using %time5 tag).
++- Compatibility with Perl 5.22
+
+ Fixes:
+ - Fixes permission on some .pl scripts.
+diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl
+index c9dcee9..eb14fc0 100755
+--- a/wwwroot/cgi-bin/awstats.pl
++++ b/wwwroot/cgi-bin/awstats.pl
+@@ -9040,12 +9040,12 @@ sub DefinePerlParsingFormat {
+ $LogFormatString =~ s/%>s/%code/g;
+ $LogFormatString =~ s/%b(\s)/%bytesd$1/g;
+ $LogFormatString =~ s/%b$/%bytesd/g;
+- $LogFormatString =~ s/\"%{Referer}i\"/%refererquot/g;
+- $LogFormatString =~ s/\"%{User-Agent}i\"/%uaquot/g;
+- $LogFormatString =~ s/%{mod_gzip_input_size}n/%gzipin/g;
+- $LogFormatString =~ s/%{mod_gzip_output_size}n/%gzipout/g;
+- $LogFormatString =~ s/%{mod_gzip_compression_ratio}n/%gzipratio/g;
+- $LogFormatString =~ s/\(%{ratio}n\)/%deflateratio/g;
++ $LogFormatString =~ s/\"%\{Referer}i\"/%refererquot/g;
++ $LogFormatString =~ s/\"%\{User-Agent}i\"/%uaquot/g;
++ $LogFormatString =~ s/%\{mod_gzip_input_size}n/%gzipin/g;
++ $LogFormatString =~ s/%\{mod_gzip_output_size}n/%gzipout/g;
++ $LogFormatString =~ s/%\{mod_gzip_compression_ratio}n/%gzipratio/g;
++ $LogFormatString =~ s/\(%\{ratio}n\)/%deflateratio/g;
+
+ # Replacement for a IIS and ISA format string
+ $LogFormatString =~ s/cs-uri-query/%query/g; # Must be before cs-uri
diff --git a/www-misc/awstats/metadata.xml b/www-misc/awstats/metadata.xml
new file mode 100644
index 000000000000..3adf7af8a01b
--- /dev/null
+++ b/www-misc/awstats/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>web-apps@gentoo.org</email>
+ <name>Gentoo Webapps</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/www-misc/bookmarksync/Manifest b/www-misc/bookmarksync/Manifest
new file mode 100644
index 000000000000..0318ef73e53b
--- /dev/null
+++ b/www-misc/bookmarksync/Manifest
@@ -0,0 +1,5 @@
+DIST bookmarksync-0.3.4.tar.gz 14324 SHA256 3111f55a8b1f6dd4d2f343bef4d15b58186a429505760ac8f38e2c4e4592fba8 SHA512 97464e32e9c21010eccf34b9bc94ce67d20f9b7a1f00b4e10e7096c0bde527a8b2a83a05c8623aa009fa0ab1895b025241aba2dfaf6881755bf05682b9e710d0 WHIRLPOOL 9a93d1f06c1dcab0da5c7df437b2d6a18e69d70fba0668ea3a7c59a2f96e30fe6189ea72ca57a8eab40baa31b579866abb81fc3c50d7ce15a3b474c43369c364
+EBUILD bookmarksync-0.3.4-r2.ebuild 845 SHA256 f07466f055412722440bef7fcc22254d54df088e627d4ee75edc5c2147c86c55 SHA512 247141b6b7caf814d8943f6bd265335d2a6899ebe76ae9f1fd22af15fd1687ff01181626d8a15083829530fa3a0719e50900e43a5c7e44d5b401dde9df20fc81 WHIRLPOOL 8533e9b701673cef37c86b58ca5761ed4a1739d02b6214f2dceecd2e0f75c7ef78f44b981d1dc024a578f59da1ee0517cfab2e7109ee7e877a8d7183cc91b34c
+MISC ChangeLog 2665 SHA256 79d014f29e04a4872de252d5325b56c89fcb15fabaa734da5108bd80c2171094 SHA512 459505b16688af8a35b1de3850865e516f9b92645e52d8c1d32f8eaf773f0adef1a3546e28631635af72bdfb8dd81e17798bc3ec12ef09817901aacf40b1b683 WHIRLPOOL 4ac09622a8c679ffaa3c03c3f0a6ac73417f3b3f26b7a0835c271777d45075b13bb94785f7f70d8ea930bd6bad5b10668d3fd2f4e84ea61a1d516a05c5435b5b
+MISC ChangeLog-2015 3965 SHA256 e13b67c25fd2a98d77194c7ff4e765cbb20242f85d2f0e7b44c9de9be413de4a SHA512 f17cd3ee68ac2a4d2ef0026e2d6859e2ec30c4892f69541ed0ea1fd41bcc1a51e27d8c366410ba2d14b081dda898644b34bf2565b65b1534d8a3529d7b9a053a WHIRLPOOL 4db4eb3bae7a74e59bf1ec948f8750bade3dd84cc3f28c1a3de76dda523cd5fda688e8ef229ccb976d70b3b4466a14d25693285b88dd45f5575f0bf261243cd0
+MISC metadata.xml 500 SHA256 0e64bba5901a9aebf8b7b6fb28c8416058326b98ca28da95829b2ae9aeeb3835 SHA512 fa87dc923d87b2126f2f4a75d2089dc5fa82e3f9cb362e46b0cec174aa1cc705abecd2242b208ac6b89af743ae106cc7913029887ab8e0112c20158fd92bd7fe WHIRLPOOL f62b9a83134f5f1d666b784bc3d7b9553b744219baf437dcacf1370e903462526e267a84bf08cf627bb10be582bd41c36b6ad37b6d477854e84213da1bafed07
diff --git a/www-misc/bookmarksync/bookmarksync-0.3.4-r2.ebuild b/www-misc/bookmarksync/bookmarksync-0.3.4-r2.ebuild
new file mode 100644
index 000000000000..ade6c8153bbf
--- /dev/null
+++ b/www-misc/bookmarksync/bookmarksync-0.3.4-r2.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="2"
+
+inherit toolchain-funcs
+
+DESCRIPTION="bookmarksync synchronizes various browser bookmark files"
+HOMEPAGE="https://sourceforge.net/projects/booksync/"
+SRC_URI="mirror://sourceforge/booksync/${P}.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ppc x86"
+SLOT="0"
+
+IUSE="perl"
+RESTRICT="mirror"
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ perl? ( dev-lang/perl )"
+
+src_prepare() {
+ sed -i Makefile \
+ -e 's|g++|$(CXX) $(CFLAGS)|g' \
+ -e 's| -o | $(LDFLAGS)&|g' \
+ || die "sed Makefile"
+ tc-export CXX
+}
+
+src_install () {
+ dobin bookmarksync
+ if use perl ; then
+ dobin tools/bookmarksync.pl
+ dodoc tools/README.tools
+ fi
+ dodoc README TODO DEVELOPERS
+}
+
+pkg_postinst () {
+ use perl && ewarn "You will need to modify bookmarksync.pl before use"
+}
diff --git a/www-misc/bookmarksync/metadata.xml b/www-misc/bookmarksync/metadata.xml
new file mode 100644
index 000000000000..6a55e7781e31
--- /dev/null
+++ b/www-misc/bookmarksync/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <longdescription>
+ bookmarksync is a tool used for synchronizing different bookmark files
+ and types. It preserves current bookmark structures and sorts in new
+ ones correctly in existing directorys or create new one if necessary.
+ </longdescription>
+ <upstream>
+ <remote-id type="sourceforge">booksync</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/www-misc/fcgiwrap/Manifest b/www-misc/fcgiwrap/Manifest
new file mode 100644
index 000000000000..650caa309641
--- /dev/null
+++ b/www-misc/fcgiwrap/Manifest
@@ -0,0 +1,8 @@
+DIST fcgiwrap-1.1.0.tar.gz 9924 SHA256 4c7de0db2634c38297d5fcef61ab4a3e21856dd7247d49c33d9b19542bd1c61f SHA512 b8d35762d1d3c94a67602290b0092f0c38cffbbcd3dbc16597abf8b92172909b04450c238de2e430e841a17dd47fdd48d6a001f77539966980ef1af61e447ddc WHIRLPOOL 0df7ab6de6b97db0e516f2ec79185391f0cd2ca2f3ea81b88739546f41a613be3e469394baf3901708b337c8fc7145529e0afb8e884b9ca52d0fba664487e7c0
+DIST fcgiwrap-1.1.0_pre20150419.tar.gz 10834 SHA256 2aefec1bac8cb6131ff994dee7440a3e12f7761bf35152ceb38c472cb4becf9a SHA512 48df3f0b5ad15d172b7ee883d53c59ecbd78c0c401ef1452df8fc03af1a7aed153464b2515ca18881af70f6baf6c80e0b405d1dde4888a20397b9db272ea6ba4 WHIRLPOOL 83aa10235c232efc96af3ae7c37da0565d34183e965733512ec2b8c7f94b29989cc9285adf35f69ada0acf13ff27641e37fa64ff676a3890853164dcbe13c852
+EBUILD fcgiwrap-1.1.0-r1.ebuild 1313 SHA256 a4c1b6d8ef5fcf07d93f94ec158ec1294cd532a1b07ddc59227af239c5fef170 SHA512 82c1d923eaf31578f7bd53beb1e342773dcb0d6d151f892c1e0281944c4bb91b5a9f65075b23045844f7374ac8ceb4948dfc92577060e0645355f1a7f520ae31 WHIRLPOOL 7042481883029dbda435a33d797b9b55dbacc82039539f96c5fda436dc5ca7d63da35428a55478cc91b9f14dcee7c5d1e7f6839e5ee1e45650c409c2fa08ed0b
+EBUILD fcgiwrap-1.1.0_pre20150419.ebuild 1471 SHA256 969ece1ae48b4095189ac6a104821eacd64b5957bc89f49e3a7936449d30257f SHA512 abbcfea26e21a59350035aec6c6ea3d109a56735bc8a00de81226d7e73afe39f5951ce9b3537118f9c2e678e518fa5af5caad4b9af05a12070bd74d02109c211 WHIRLPOOL da8ad47571aacbe1f0906a6567a013fdfeadc6239f22570ae6f924b2f1b3227e62803ab96183dcc8e88cc0671b989ebc3bdd236ad6aa463a9513711a451a22cb
+EBUILD fcgiwrap-9999.ebuild 1361 SHA256 e6c9524edc15014640ee42bc1edd04b39469ade26b6d471875b556573a46318a SHA512 0271ad94f88ec1c158f6c1e52e7037ada92f5c29f872eb8941b42d215c4465642e8ca7c8a905f4dc65fa02559f2995d42225fb048dc0a9ec0833b36d60d87e32 WHIRLPOOL 2ce03af86009c08ea0bd9e658d0777c0ea1ec2b36564cb4968842512230ee85fdf5df8838097471de2b535eb7d141f7bb029831a35e9b821773263fac9e32c33
+MISC ChangeLog 3415 SHA256 2c930316f614bdf7c9d4a26775a53175fa8136a941c5e1b0e9be261fd0815856 SHA512 acc2ce5bb43061fa3626a5d198d69089f571fa2ccf5168a6154c560929f293b7ef873e4c85692fce513ad643c8136e0b2cd1e43824a936c49c76a8a47068893d WHIRLPOOL 8012001d2c5e346cf4d0e81c49a6aa3f0c0144c8171770dbaafc06d27f8ec7553c9913e7b4ae65b7a4c13009a37b1a3988844d362dd90d8f1ee47207d0a0a8e8
+MISC ChangeLog-2015 3151 SHA256 80c748fb9317ed3bc160ef63d123237859f9d9d5cd2941c43e3ebf397301ecb0 SHA512 3ac0b720240431c34fa8bcd8d7fa76a0a33f945e592e8325cfa5f349387815fc3b588274a6ab5ec62ad27801623b4b5c131c07efb037cddb430c9df00ba5785a WHIRLPOOL ae86261266f31b6554f1e019df1b52eb4bacc48dbe7bd8fc667864531bc1691d61dd1a8e41b3dbd2d81f23cf2f6ad8c4e5f17239114e2f69220b3090ec90db3c
+MISC metadata.xml 458 SHA256 36fe0becd3a4300693f5f11364acd85b657cb95bdae17709b36862479880652a SHA512 d668390a3f179b243abeed455b9fe85eaef426848c1484572a564d1d631835ddd069046bbd84f5841ce60eadf81866ed69b60ce0b4bb301a91f5695441c3a1c9 WHIRLPOOL 6e987c9ebe4bea1c6dd68645839fde9eae68df2924392921dfd44ad4426a605d8961170d092a9686e2e579e4c929f14822abbd28f2a07cfe83e27543ba6d9964
diff --git a/www-misc/fcgiwrap/fcgiwrap-1.1.0-r1.ebuild b/www-misc/fcgiwrap/fcgiwrap-1.1.0-r1.ebuild
new file mode 100644
index 000000000000..e30a45f61524
--- /dev/null
+++ b/www-misc/fcgiwrap/fcgiwrap-1.1.0-r1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+[[ ${PV} = *9999* ]] && VCS_ECLASS="git-r3" || VCS_ECLASS=""
+inherit autotools systemd toolchain-funcs ${VCS_ECLASS}
+
+DESCRIPTION="Simple FastCGI wrapper for CGI scripts (CGI support for nginx)"
+HOMEPAGE="https://github.com/gnosek/fcgiwrap"
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="systemd"
+
+if [[ ${PV} == *9999* ]]; then
+ EGIT_REPO_URI="https://github.com/gnosek/${PN}.git"
+else
+ SRC_URI="https://github.com/gnosek/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="amd64 ~arm x86"
+fi
+
+RDEPEND="
+ dev-libs/fcgi
+ systemd? ( sys-apps/systemd )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+DOCS=( README.rst )
+
+src_prepare() {
+ sed -e "s/-Werror//" \
+ -i configure.ac || die "sed failed"
+
+ sed -e '/man8dir = $(DESTDIR)/s/@prefix@//' \
+ -i Makefile.in || die "sed failed"
+
+ sed -e "s/libsystemd-daemon/libsystemd/" \
+ -i configure.ac || die "sed failed"
+ tc-export CC
+
+ # Fix systemd units for Gentoo
+ sed -i -e '/User/d' systemd/fcgiwrap.service || die
+ sed -i -e '/Group/d' systemd/fcgiwrap.service || die
+
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_with systemd) \
+ "$(systemd_with_unitdir)"
+}
+
+pkg_postinst() {
+ einfo 'You may want to install www-servers/spawn-fcgi to use with fcgiwrap.'
+}
diff --git a/www-misc/fcgiwrap/fcgiwrap-1.1.0_pre20150419.ebuild b/www-misc/fcgiwrap/fcgiwrap-1.1.0_pre20150419.ebuild
new file mode 100644
index 000000000000..b6310e79a9d5
--- /dev/null
+++ b/www-misc/fcgiwrap/fcgiwrap-1.1.0_pre20150419.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+[[ ${PV} = *9999* ]] && VCS_ECLASS="git-r3" || VCS_ECLASS=""
+inherit autotools systemd toolchain-funcs ${VCS_ECLASS}
+
+DESCRIPTION="Simple FastCGI wrapper for CGI scripts (CGI support for nginx)"
+HOMEPAGE="https://github.com/gnosek/fcgiwrap"
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="systemd"
+
+if [[ ${PV} == *9999* ]]; then
+ EGIT_REPO_URI="https://github.com/gnosek/${PN}.git"
+else
+ MY_REV="99c942c90063c73734e56bacaa65f947772d9186"
+ MY_P="gnosek-fcgiwrap-${MY_REV:0:7}"
+ SRC_URI="https://github.com/gnosek/${PN}/tarball/${MY_REV} -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~x86"
+fi
+
+RDEPEND="
+ dev-libs/fcgi
+ systemd? ( sys-apps/systemd )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+DOCS=( README.rst )
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ sed -e "s/-Werror//" \
+ -i configure.ac || die "sed failed"
+
+ sed -e '/man8dir = $(DESTDIR)/s/@prefix@//' \
+ -i Makefile.in || die "sed failed"
+
+ sed -e "s/libsystemd-daemon/libsystemd/" \
+ -i configure.ac || die "sed failed"
+ tc-export CC
+
+ # Fix systemd units for Gentoo
+ sed -i -e '/User/d' systemd/fcgiwrap.service || die
+ sed -i -e '/Group/d' systemd/fcgiwrap.service || die
+
+ eapply_user
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_with systemd) \
+ --with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
+}
+
+pkg_postinst() {
+ einfo 'You may want to install www-servers/spawn-fcgi to use with fcgiwrap.'
+}
diff --git a/www-misc/fcgiwrap/fcgiwrap-9999.ebuild b/www-misc/fcgiwrap/fcgiwrap-9999.ebuild
new file mode 100644
index 000000000000..a51f3f4835ab
--- /dev/null
+++ b/www-misc/fcgiwrap/fcgiwrap-9999.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+[[ ${PV} = *9999* ]] && VCS_ECLASS="git-r3" || VCS_ECLASS=""
+inherit autotools systemd toolchain-funcs ${VCS_ECLASS}
+
+DESCRIPTION="Simple FastCGI wrapper for CGI scripts (CGI support for nginx)"
+HOMEPAGE="https://github.com/gnosek/fcgiwrap"
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="systemd"
+
+if [[ ${PV} == *9999* ]]; then
+ EGIT_REPO_URI="https://github.com/gnosek/${PN}.git"
+else
+ SRC_URI="https://github.com/gnosek/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~x86"
+fi
+
+RDEPEND="
+ dev-libs/fcgi
+ systemd? ( sys-apps/systemd )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+DOCS=( README.rst )
+
+src_prepare() {
+ sed -e "s/-Werror//" \
+ -i configure.ac || die "sed failed"
+
+ sed -e '/man8dir = $(DESTDIR)/s/@prefix@//' \
+ -i Makefile.in || die "sed failed"
+
+ sed -e "s/libsystemd-daemon/libsystemd/" \
+ -i configure.ac || die "sed failed"
+ tc-export CC
+
+ # Fix systemd units for Gentoo
+ sed -i -e '/User/d' systemd/fcgiwrap.service || die
+ sed -i -e '/Group/d' systemd/fcgiwrap.service || die
+
+ eapply_user
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_with systemd) \
+ --with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
+}
+
+pkg_postinst() {
+ einfo 'You may want to install www-servers/spawn-fcgi to use with fcgiwrap.'
+}
diff --git a/www-misc/fcgiwrap/metadata.xml b/www-misc/fcgiwrap/metadata.xml
new file mode 100644
index 000000000000..3f9aecf50673
--- /dev/null
+++ b/www-misc/fcgiwrap/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+ <longdescription lang="en">
+ fcgiwrap is a simple server for running CGI applications over FastCGI. It
+ hopes to provide clean CGI support to Nginx (and other web servers that may
+ need it).
+ </longdescription>
+ <upstream>
+ <remote-id type="github">gnosek/fcgiwrap</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/www-misc/gurlchecker/Manifest b/www-misc/gurlchecker/Manifest
new file mode 100644
index 000000000000..b6cfc342c062
--- /dev/null
+++ b/www-misc/gurlchecker/Manifest
@@ -0,0 +1,8 @@
+AUX gurlchecker-0.10.5-autoconf-tidy.patch 457 SHA256 0d81425d3897d749a9ff1f8b8d251f37bbd72d8082a79336bd22821ec8a44eeb SHA512 00a039a8697530c89012433a975c24a5456488a35eed248d912eee08a9535c926804877efaa10283b6622f1b60c20f7dd56a95ad1b9f6c3fd3b26161248f16ee WHIRLPOOL 2388a600877507223fdf28965153a1e2573b5b07ca46ea1e45a88359d59fd90d1af1833f3f0a7deb42cbe5dcba1fb5ba84fe8c74398d3cd334bf7a610294ea13
+AUX gurlchecker-0.13.1-gnutls.patch 883 SHA256 9e4e4e555dab58a1f656979782c904f7b2a0675b643137156ff99186d7940dde SHA512 206831678a0f3b1401dac2df78b934033a0ec5413037d063887662a261cc422b7b7f04d2dffc365f22479152be11be7647c2564cab604ad544be6f188e2059b6 WHIRLPOOL 2fc3cecc7c8da7bb19cb9195cfd0bd5cfe9f9fa1945d31763b9f6e2fde193bd936ce4ea204ea7108f7b5f77aed7ea2c49dd2bcc9c5396a80e4136a9124e32265
+AUX gurlchecker-0.13.1-ldflags.patch 1239 SHA256 2306de08bd12008a75bee97cfde5af8b184c60d3deab1ff50743dcef2bb2bdb8 SHA512 30adb4d68850b02e2e10f0fc8da815adc996031809920006d7193227412db9d3125520ec608392bf52eb5438167a3bc256852faa2646bdba049cfe3b63571ced WHIRLPOOL 2833675fb9906a9c92ac7c7ade4d21d05e07167e7b2b52ddec355dba394ad23b8c71dae25ecd1b46e749ea30beb5bfc1aec860b8fe87ab46601349a0eb1585e1
+DIST gurlchecker-0.13.1.tar.gz 709336 SHA256 a94283094a0ca7f6833cade0ef7a043fd97d0cfe55c0072d9bf508165ca45aeb SHA512 25f76f4b0b84467a5751156fbd8497f25e057202a36fe33b24c91e42906f67dd7dbd21531682b050c534862fa4e62ceb0908d19f44926ac335d628cc9919a746 WHIRLPOOL 9c0c29516240fb16d719ba4406a0a3f772dc11a38971a4b339fa1714afaf7ecc8129bb3a06590fc9d21dea61c6d5aa852e4e3ea5f11fe5aab336d7a957773c75
+EBUILD gurlchecker-0.13.1-r2.ebuild 1658 SHA256 2b57116e9d19e31b013af03b62dc1d2bb23ef5edb0ee34acd779c13423d669e2 SHA512 6209d4af406ae43dc9c1a2349c5af16dfd24bf2e6c9f4dd023ab36ab6cac2b596ebc5a44cb20c8ad13a70e008a3c6f09d358fb211c5ecff6b282fe6ebca69e1f WHIRLPOOL efa64a70a178ae320b1f9d03a91937a41f84af7d4b8869ebaa4f89adbf5e4d711ef0a1e692b18e324ae19ed64350a1fc761ab96fc23827d00ea526f9c3a45cc3
+MISC ChangeLog 2899 SHA256 000839c4f7f8b46c9d5e779467dfa1fa86ec88f0bbb80e9250276a8b460a0fc0 SHA512 4ca1a9d520fb04fcedbcdc7b64d30c2876b8eb40d02d129fa87511e0027a0b08307f75bb6356415a48ebbd782e016f85cad9893d699e6aaabfa95ef3e4d014f1 WHIRLPOOL 42877f7c0890e92e1f2a69a8b6c860a88de4ca015cf0879736425e47e75fd547375e0f6f4429e42799931761b8fb2fb1e6b8489195dc397fb5cb21a275b4d36c
+MISC ChangeLog-2015 9183 SHA256 c0d7a75472ee1fba43c8bfc8fe731b6a53e34ad3ee14013c3794e6ea4999bbe9 SHA512 ac493330726f4e679d31cb78e04a1a5aa4428bc0682423aea63db3acf7c9c8890efe74376bc584953d1049c08504fb78e40b1f69619a3e7b9124334063857acc WHIRLPOOL 03ec541e9861278e02827ac7f9c6c461a445da7e557db7c728c9c83826fdfed12866141e0fc40774f239f9d7ceb30c4fd329842ca98a7790ae39b2cafa3da633
+MISC metadata.xml 563 SHA256 dabbbb5ef41f4ca386a9a5a4490c8075633bbe9f60310838186a115a0c00dac5 SHA512 330f08664d2af12a42184973cf33d0de05ae6d8cd56ead8936dc96c5c0c79f2909bf9d2f8e48e826326e9c0696e7eaf7c0fd170305819a0c6151f224a9269ed1 WHIRLPOOL 7b307131a591d939dae963b08668c21b6ae3836e74b3618a17929803a366d249334510b21175c16fdacd3262b471c9d53c9470b6068db5fe835388407b8fe210
diff --git a/www-misc/gurlchecker/files/gurlchecker-0.10.5-autoconf-tidy.patch b/www-misc/gurlchecker/files/gurlchecker-0.10.5-autoconf-tidy.patch
new file mode 100644
index 000000000000..a3aa4a15c50c
--- /dev/null
+++ b/www-misc/gurlchecker/files/gurlchecker-0.10.5-autoconf-tidy.patch
@@ -0,0 +1,15 @@
+--- a/configure.in 2008-06-23 06:53:17.000000000 +0200
++++ b/configure.in 2008-06-23 20:08:59.000000000 +0200
+@@ -174,10 +174,10 @@
+ [tidyCreate],
+ [
+ AC_CHECK_HEADERS(
+- [tidy.h tidy/tidy.h],
++ [tidy.h],
+ [
+ want_tidy=yes
+- TIDY_FLAGS="$TIDY_FLAGS -DHAVE_TIDY_H_IN_SUBDIR -DENABLE_TIDY"
++ TIDY_FLAGS="$TIDY_FLAGS -DENABLE_TIDY"
+ TIDY_LIBS="-ltidy"
+ #LDFLAGS="$LDFLAGS $want_tidy_path"
+ ],
diff --git a/www-misc/gurlchecker/files/gurlchecker-0.13.1-gnutls.patch b/www-misc/gurlchecker/files/gurlchecker-0.13.1-gnutls.patch
new file mode 100644
index 000000000000..341dc430b5a9
--- /dev/null
+++ b/www-misc/gurlchecker/files/gurlchecker-0.13.1-gnutls.patch
@@ -0,0 +1,26 @@
+Index: src/connection.c
+===================================================================
+--- src/connection.c (revision 827)
++++ src/connection.c (revision 828)
+@@ -230,20 +230,12 @@
+ #ifdef ENABLE_GNUTLS
+ if (strcmp (proto, UC_PROTOCOL_HTTPS) == 0)
+ {
+- const gint cert_type_priority[3] =
+- {
+- GNUTLS_CRT_X509,
+- GNUTLS_CRT_OPENPGP,
+- 0
+- };
+-
+ conn->use_gnutls = TRUE;
+ conn->port = atoi (UC_URL_DEFAULT_SSL_PORT);
+
+ gnutls_init (&conn->session_gnutls, GNUTLS_CLIENT);
+ gnutls_set_default_priority (conn->session_gnutls);
+- gnutls_certificate_type_set_priority (conn->session_gnutls,
+- cert_type_priority);
++ gnutls_set_default_priority (conn->session_gnutls);
+ gnutls_credentials_set (conn->session_gnutls, GNUTLS_CRD_CERTIFICATE,
+ xcred_gnutls);
+ }
diff --git a/www-misc/gurlchecker/files/gurlchecker-0.13.1-ldflags.patch b/www-misc/gurlchecker/files/gurlchecker-0.13.1-ldflags.patch
new file mode 100644
index 000000000000..904eab719f21
--- /dev/null
+++ b/www-misc/gurlchecker/files/gurlchecker-0.13.1-ldflags.patch
@@ -0,0 +1,40 @@
+# Autofoo of this package is just insane, need to rewrite it someday.
+# Don't touch LDFLAGS, there is no need to
+--- a/configure.in 2008-06-15 21:27:45.000000000 +0200
++++ b/configure.in 2008-06-15 21:34:45.000000000 +0200
+@@ -120,7 +120,7 @@
+ [
+ want_croco=yes
+ CROCO_FLAGS="-DENABLE_CROCO $CROCO_CFLAGS"
+- LDFLAGS="$LDFLAGS $want_croco_path"
++ #LDFLAGS="$LDFLAGS $want_croco_path"
+ ],
+ [
+ want_croco=no
+@@ -178,7 +179,7 @@
+ have_tidy=yes
+ TIDY_FLAGS="$TIDY_FLAGS -DHAVE_TIDY_H_IN_SUBDIR -DENABLE_TIDY"
+ TIDY_LIBS="-ltidy"
+- LDFLAGS="$LDFLAGS $want_tidy_path"
++ #LDFLAGS="$LDFLAGS $want_tidy_path"
+ ],
+ [have_tidy=no]
+ )
+@@ -238,7 +240,7 @@
+ have_clamav=yes
+ CLAMAV_FLAGS="$CLAMAV_FLAGS -DENABLE_CLAMAV"
+ CLAMAV_LIBS="-lclamav"
+- LDFLAGS="$LDFLAGS $want_clamav_path"
++ #LDFLAGS="$LDFLAGS $want_clamav_path"
+ ],
+ [have_clamav=no]
+ )
+@@ -298,7 +300,7 @@
+ have_clamav=yes
+ GNUTLS_FLAGS="$GNUTLS_FLAGS -DENABLE_GNUTLS"
+ GNUTLS_LIBS="-lgnutls"
+- LDFLAGS="$LDFLAGS $want_gnutls_path"
++ #LDFLAGS="$LDFLAGS $want_gnutls_path"
+ ],
+ [
+ have_clamav=yes
diff --git a/www-misc/gurlchecker/gurlchecker-0.13.1-r2.ebuild b/www-misc/gurlchecker/gurlchecker-0.13.1-r2.ebuild
new file mode 100644
index 000000000000..678043e21c44
--- /dev/null
+++ b/www-misc/gurlchecker/gurlchecker-0.13.1-r2.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+GCONF_DEBUG="no"
+
+inherit autotools eutils gnome2
+
+DESCRIPTION="Gnome tool that checks links on web pages/sites"
+HOMEPAGE="http://gurlchecker.labs.libre-entreprise.org/"
+SRC_URI="http://labs.libre-entreprise.org/frs/download.php/857/${P}.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="amd64 ppc x86"
+SLOT="0"
+IUSE="clamav json sqlite ssl tidy"
+
+RDEPEND="
+ >=x11-libs/gtk+-2.6:2
+ >=gnome-base/libgnomeui-2
+ >=gnome-base/libglade-2:2.0
+ >=dev-libs/libxml2-2.6:2
+ >=net-libs/gnet-2
+ >=dev-libs/libcroco-0.6
+ clamav? ( app-antivirus/clamav )
+ json? ( >=dev-libs/json-glib-0.8 )
+ sqlite? ( >=dev-db/sqlite-3.6:3 )
+ ssl? ( >=net-libs/gnutls-1 )
+ tidy? ( app-text/htmltidy )
+"
+# docbook-sgml-utils used to build the man page
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ >=dev-util/intltool-0.30
+ app-text/docbook-sgml-utils
+ >=dev-util/gtk-doc-am-1.1
+"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-0.13.1-gnutls.patch"
+
+ # Stop manipulating LDFLAGS for no reason
+ epatch "${FILESDIR}/${PN}-0.13.1-ldflags.patch"
+
+ # Fix tidy.h include dir for Gentoo:
+ epatch "${FILESDIR}/${PN}-0.10.5-autoconf-tidy.patch"
+
+ # Fix .desktop validation
+ sed -e 's/Application;//' \
+ -i gurlchecker.desktop.in || die
+
+ eautoreconf
+
+ gnome2_src_prepare
+}
+
+src_configure() {
+ DOCS="AUTHORS CONTRIBUTORS ChangeLog FAQ NEWS README THANKS TODO"
+
+ gnome2_src_configure \
+ --with-croco \
+ $(use_with clamav) \
+ $(use_with json) \
+ $(use_with sqlite sqlite3) \
+ $(use_with ssl gnutls) \
+ $(use_with tidy)
+}
+
+src_install() {
+ gnome2_src_install
+
+ rm -r "${D}"/usr/share/doc/${PN} || die
+}
diff --git a/www-misc/gurlchecker/metadata.xml b/www-misc/gurlchecker/metadata.xml
new file mode 100644
index 000000000000..407bd35a3d8d
--- /dev/null
+++ b/www-misc/gurlchecker/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+<use>
+ <flag name="json">Enable support for parsing Google Chrome and derivatives bookmarks.</flag>
+ <flag name="sqlite">Enable support for parsing Firefox and derivatives bookmarks.</flag>
+</use>
+<longdescription>
+ gURLChecker is a graphical web links checker for GNU/Linux and
+ other POSIX OS. It can work on a whole site, a single local page
+ or a browser bookmarks file.
+</longdescription>
+</pkgmetadata>
diff --git a/www-misc/htdig/Manifest b/www-misc/htdig/Manifest
new file mode 100644
index 000000000000..10fbd4231951
--- /dev/null
+++ b/www-misc/htdig/Manifest
@@ -0,0 +1,12 @@
+AUX htdig-3.2.0_beta6-as-needed.patch 2215 SHA256 758bfe5d172aa78ad8f4cbd259fb1ab6c424119f7fcfd297a67121e7596adbc9 SHA512 248555727a1b696e152dfa6d60aede6565ecc0cdf886845602a8a3411cdca17aaa1a91b3841c7cc5d8f143e7a8c02a7cdf3d898464eec5bb61a539af80e41e88 WHIRLPOOL f63792682522437cb9d2fae6fb2bab8b05cd92d60974164c3cb7d4c632938c5cf42e4d9f66597184e3a630a317b10d36c33df1fd0021a26b3b7a3ce7c1bebd67
+AUX htdig-3.2.0_beta6-gcc4.patch 512 SHA256 956548b3647d7800485c025401a7679b02a5c68e94e77dcabaf78b314f1db168 SHA512 254234878eb397732b4e153ec644248287cee3a1c7f68883c4caa1920f60ae23d74a812efca6364a1231104a9d41541d8871b0fd067d0a95f6b33e9b5742e14b WHIRLPOOL 02f48da6168b4a2d2eaa9e806123f62a9b46b79d8c048b9de09222d89539440793c2626ea2bf2e68939ca1ee54ff1406a3241539cf057e19aaf6c9b1a1d15323
+AUX htdig-3.2.0_beta6-gcc6.patch 3673 SHA256 5bd4dc77a914470f654111c4aa6e893fe347af6330785dd3cc170cdfa15df9ab SHA512 e0bc9555ff09005791410a2202062e9cad5216fd09c45493268a8155d65f170e90670ecbc197737a2223e1038f6c0a7210b008ef8f608956a59269e50434cee5 WHIRLPOOL f28163792095fde8fe6930dce1260b1d8a7d39063a89f22560a27989f179584fc9974efc2b793793f449243f0de2d6cc05efea4767293d21ec3731e21e1c6793
+AUX htdig-3.2.0_beta6-musl.patch 1188 SHA256 2989e370ad3e31c99b90ab12bdf0b35e74f70e041b66930a62b0e4c9069a0fcd SHA512 2c766f4d49e941de8c56b3858ed32d9e90efff9f43ec699cd30c0a87c19bab786e113412087a5bec698de26b4454f5df4306a95f9e16c6cd829f5ef8572ea0a3 WHIRLPOOL c7eaa723c37871ed811267134164f5c061b2f0b3911fea3b45da8cd439df211d7e9ddc6f5ce23927cd6ce3f92593e6ee2601020e016493521cf74bbbb13953be
+AUX htdig-3.2.0_beta6-quoting.patch 1130 SHA256 d84222aa6895305c2ee87f9975bfc348a7872f63ee02a33e862b325f125b8109 SHA512 7edadb8cecb378eac8352e43ce12d5fa6af711f847f1e1ca0a49303daedffb1cef9795b74eb8cd64120e981c57c947f082f60d857985ee5ac0d54537fd6b4181 WHIRLPOOL f2be945441f52c0eba84153d5da1d403272f80dbdcc58fd8b3e300948a258839982bb08c51944251c4fe30926fc8de7f0ecc975f91f98d832687549739ab7b7e
+DIST htdig-3.2.0b6.tar.gz 3104936 SHA256 6da9e0ee8627d5302f5685a1b3e5de5f1e6e8df4c0a92c0ca00796bca9e546c8 SHA512 29832f4aebd2b1f944cc4d800a5202342c8ce66936980476d49f679ec169c0268a902e85cd7440a3b6bea9db0a3b640bb1a9719c680d857ff00d34590af63064 WHIRLPOOL 63b0635873a24ad84c62fb85b6f9e645b3166630a4db52948604e6179f5f41978ef3c1b663122e8e5b74173c2e1cad269d4d92c5e678dcaf4dbac06d6b930cf3
+EBUILD htdig-3.2.0_beta6-r3.ebuild 1780 SHA256 f3f805e15d4868da441527522ed461c0f84ab3f048f5166c97b5b6d530efb837 SHA512 d024ba18cd4966a73fae304253ed2e27a41bf820fab6c8900804ec9d6d9cb9c081b146bdc0ce83f4d7c4f287f65f775c8e416764a5ec79bf4b444d1f2de79673 WHIRLPOOL 4646dce205cc7d91e6e1105fac65edb4449dd27edeab0547c730b2a11160d3ab048ea07061beb3b85cc3a674af41becdb78760eddf92fe34299adb0d9e5eca71
+EBUILD htdig-3.2.0_beta6-r4.ebuild 1796 SHA256 77f7f52744740b24ae8d2378659832176679d2b5346b92945d2e2dafe20037f4 SHA512 ebe4ec3a20208249e1cd45952a30617f8af49b1bc575f492962d55b2e97864dcdc519363f0e225beb21c208c0c498cca4642ff25b1f32d887519b787c3e7e256 WHIRLPOOL aa3d654de046e3ba737cc7d7ffe27db48e26bcdc7bde1aae4761fba12adee288c75ab762ba9c8c54e1597af60b13d517aa0a28ea9d96311e126bce06b14b30f8
+EBUILD htdig-3.2.0_beta6-r5.ebuild 1660 SHA256 9dcfe8559b6758da033db661175f9a648b84e7f3de752136c46d869a4cb2813c SHA512 004b63df7e1e0ee506a96e3d76271a7b080dbe4106a26e9046db9458a5eb0422b06b0edc889d3cc7c9daae339b3380117ef55716ba496a9ba040262fa7a1be84 WHIRLPOOL 7ee6a9b8552aeb5376dc518c92d2005a8fd3f2e573793c7e3362ba7c197143b64fa3b0e2306134218c6f935b5b638ee3743e025304ea74e7695ea78a0cfc4074
+MISC ChangeLog 2763 SHA256 2d8ce4c283507b7b08628023b2a679873a448708e909ee563d551b3bee1ac2de SHA512 7c0e980479973e3d182f1531bba6f6804d4dcef22ee8dae185436fcb0ae4a1481a6219e918e1859c0cafa1c5da8e6623c1b24d5ce5907aaa3e157a3739b06bd9 WHIRLPOOL f2643ab0c382b5483f2ddfd19cf003d3c849916dc44d518f7084e619257af6e6bb1be0d29e5b29bc6ba74933400112c21107242dd3a0d2eb9a2d0716ae401fc7
+MISC ChangeLog-2015 10350 SHA256 63636e2794f9ec4590396bf08f7512522a540570cb4a489d11950945c45b6f7e SHA512 91e288272866dd8085db1d5f51f0cf541adbbb0bde5b89be7ac7dbc1ff9e09af5d58a6ae00c8c180b1e2d392bfd3144dc6653242fd8a505c5ec5d7bbe5774a80 WHIRLPOOL 0029b503e944abffe8da4c914f3608ca7fb4ba224c6732de9c04224c2eaace0867e18384297ebdc8cee2405f2023cd52b40d5f08ce7de5bf5873807b9fae98c9
+MISC metadata.xml 246 SHA256 f696b469729aeeb7810f246774e90471415680a9ebd6b55c56c13a5213057508 SHA512 1181711d3b020b2ca7beae0a539a9b7f1abe70962cd8561900e5f06e14c9c871c61ca6088fb674de19ef3b844a1b3c29cf0f84f638b2d0cb7c030f60cd1d42ed WHIRLPOOL fef696fa5b101de1ba4bdc0188a4757648d9eb40d4b01408cf17416d1f39909026a80e4b082d8497801aae1caea588b6d28616cd3853e1b03b94a8fd672f9c85
diff --git a/www-misc/htdig/files/htdig-3.2.0_beta6-as-needed.patch b/www-misc/htdig/files/htdig-3.2.0_beta6-as-needed.patch
new file mode 100644
index 000000000000..6cc9efc121d6
--- /dev/null
+++ b/www-misc/htdig/files/htdig-3.2.0_beta6-as-needed.patch
@@ -0,0 +1,61 @@
+--- a/Makefile.config 2006-11-19 08:49:57.000000000 -0800
++++ b/Makefile.config 2006-11-19 08:51:19.000000000 -0800
+@@ -22,10 +22,7 @@
+ $(LOCAL_DEFINES) $(PROFILING)
+
+ HTLIBS= $(top_builddir)/htnet/libhtnet.la \
+- $(top_builddir)/htcommon/libcommon.la \
+- $(top_builddir)/htword/libhtword.la \
+ $(top_builddir)/htlib/libht.la \
+ $(top_builddir)/htcommon/libcommon.la \
+ $(top_builddir)/htword/libhtword.la \
+- $(top_builddir)/db/libhtdb.la \
+- $(top_builddir)/htlib/libht.la
++ $(top_builddir)/db/libhtdb.la
+--- htdig-3.2.0b6/htlib/Makefile.am.orig 2006-11-19 09:13:47.000000000 -0800
++++ htdig-3.2.0b6/htlib/Makefile.am 2006-11-19 09:17:50.000000000 -0800
+@@ -1,7 +1,8 @@
+ include $(top_srcdir)/Makefile.config
+
+ pkglib_LTLIBRARIES = libht.la
+-
++libht_la_DEPENDENCIES = $(top_builddir)/db/libhtdb.la
++libht_la_LIBADD= $(top_builddir)/db/libhtdb.la
+ libht_la_SOURCES = Configuration.cc Database.cc Dictionary.cc \
+ DB2_db.cc IntObject.cc List.cc Object.cc \
+ ParsedString.cc Queue.cc QuotedStringList.cc Stack.cc \
+@@ -17,9 +18,6 @@
+ myqsort.c \
+ md5.cc mhash_md5.c
+
+-libht_la_LIBADD=@LTLIBOBJS@
+-# this includes regex.c
+-
+ libht_la_LDFLAGS = -release $(HTDIG_MAJOR_VERSION).$(HTDIG_MINOR_VERSION).$(HTDIG_MICRO_VERSION) ${extra_ldflags}
+
+ pkginclude_HEADERS = \
+--- htdig-3.2.0b6/htword/Makefile.am.orig 2006-11-19 08:55:08.000000000 -0800
++++ htdig-3.2.0b6/htword/Makefile.am 2006-11-19 08:56:51.000000000 -0800
+@@ -10,7 +10,8 @@
+ LOCAL_DEFINES =
+
+ pkglib_LTLIBRARIES = libhtword.la
+-
++libhtword_la_DEPENDENCIES = $(top_builddir)/htlib/libht.la
++libhtword_la_LIBADD = $(top_builddir)/htlib/libht.la
+ libhtword_la_SOURCES = \
+ WordBitCompress.cc \
+ WordContext.cc \
+
+--- htdig-3.2.0b6/htcommon/Makefile.am.orig 2006-11-19 09:32:39.000000000 -0800
++++ htdig-3.2.0b6/htcommon/Makefile.am 2006-11-19 09:33:42.000000000 -0800
+@@ -12,7 +12,8 @@
+ EXTRA_DIST=conf_lexer.cxx conf_parser.cxx
+
+ pkglib_LTLIBRARIES = libcommon.la
+-
++libcommon_la_DEPENDENCIES = $(top_builddir)/htword/libhtword.la
++libcommon_la_LIBADD = $(top_builddir)/htword/libhtword.la
+ libcommon_la_SOURCES = DocumentDB.cc DocumentRef.cc \
+ HtWordReference.cc HtWordList.cc defaults.cc \
+ HtURLCodec.cc URL.cc URLTrans.cc \
diff --git a/www-misc/htdig/files/htdig-3.2.0_beta6-gcc4.patch b/www-misc/htdig/files/htdig-3.2.0_beta6-gcc4.patch
new file mode 100644
index 000000000000..6054df50d54f
--- /dev/null
+++ b/www-misc/htdig/files/htdig-3.2.0_beta6-gcc4.patch
@@ -0,0 +1,15 @@
+diff -Naurp htdig-3.2.0b6.orig/htsearch/Collection.h htdig-3.2.0b6/htsearch/Collection.h
+--- a/htsearch/Collection.h 2004-05-28 06:15:24.000000000 -0700
++++ b/htsearch/Collection.h 2006-03-22 11:35:40.000000000 -0800
+@@ -36,9 +36,9 @@ public:
+ const char *docExcerpt);
+ ~Collection();
+
+- void Collection::Open();
++ void Open();
+
+- void Collection::Close();
++ void Close();
+
+ char *getWordFile() { return wordFile.get(); }
+ DocumentRef *getDocumentRef(int id);
diff --git a/www-misc/htdig/files/htdig-3.2.0_beta6-gcc6.patch b/www-misc/htdig/files/htdig-3.2.0_beta6-gcc6.patch
new file mode 100644
index 000000000000..095ec92f2e3e
--- /dev/null
+++ b/www-misc/htdig/files/htdig-3.2.0_beta6-gcc6.patch
@@ -0,0 +1,65 @@
+--- a/htfuzzy/Accents.cc
++++ b/htfuzzy/Accents.cc
+@@ -44,38 +44,38 @@
+ `--------------------------------------------------*/
+
+ static char MinusculeISOLAT1[256] = {
+- 0, 1, 2, 3, 4, 5, 6, 7,
+- 8, 9, 10, 11, 12, 13, 14, 15,
+- 16, 17, 18, 19, 20, 21, 22, 23,
+- 24, 25, 26, 27, 28, 29, 30, 31,
+- 32, 33, 34, 35, 36, 37, 38, 39,
+- 40, 41, 42, 43, 44, 45, 46, 47,
+- 48, 49, 50, 51, 52, 53, 54, 55,
+- 56, 57, 58, 59, 60, 61, 62, 63,
+- 64, 'a', 'b', 'c', 'd', 'e', 'f', 'g',
++ (char) 0, (char) 1, (char) 2, (char) 3, (char) 4, (char) 5, (char) 6, (char) 7,
++ (char) 8, (char) 9, (char) 10, (char) 11, (char) 12, (char) 13, (char) 14, (char) 15,
++ (char) 16, (char) 17, (char) 18, (char) 19, (char) 20, (char) 21, (char) 22, (char) 23,
++ (char) 24, (char) 25, (char) 26, (char) 27, (char) 28, (char) 29, (char) 30, (char) 31,
++ (char) 32, (char) 33, (char) 34, (char) 35, (char) 36, (char) 37, (char) 38, (char) 39,
++ (char) 40, (char) 41, (char) 42, (char) 43, (char) 44, (char) 45, (char) 46, (char) 47,
++ (char) 48, (char) 49, (char) 50, (char) 51, (char) 52, (char) 53, (char) 54, (char) 55,
++ (char) 56, (char) 57, (char) 58, (char) 59, (char) 60, (char) 61, (char) 62, (char) 63,
++ (char) 64, 'a', 'b', 'c', 'd', 'e', 'f', 'g',
+ 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o',
+ 'p', 'q', 'r', 's', 't', 'u', 'v', 'w',
+- 'x', 'y', 'z', 91, 92, 93, 94, 95,
+- 96, 'a', 'b', 'c', 'd', 'e', 'f', 'g',
++ 'x', 'y', 'z', (char) 91, (char) 92, (char) 93, (char) 94, (char) 95,
++ (char) 96, 'a', 'b', 'c', 'd', 'e', 'f', 'g',
+ 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o',
+ 'p', 'q', 'r', 's', 't', 'u', 'v', 'w',
+- 'x', 'y', 'z', 123, 124, 125, 126, 127,
+- 128, 129, 130, 131, 132, 133, 134, 135,
+- 136, 137, 138, 139, 140, 141, 142, 143,
+- 144, 145, 146, 147, 148, 149, 150, 151,
+- 152, 153, 154, 155, 156, 157, 158, 159,
+- 160, 161, 162, 163, 164, 165, 166, 167,
+- 168, 168, 170, 171, 172, 173, 174, 175,
+- 176, 177, 178, 179, 180, 181, 182, 183,
+- 184, 185, 186, 187, 188, 189, 190, 191,
++ 'x', 'y', 'z', (char) 123, (char) 124, (char) 125, (char) 126, (char) 127,
++ (char) 128, (char) 129, (char) 130, (char) 131, (char) 132, (char) 133, (char) 134, (char) 135,
++ (char) 136, (char) 137, (char) 138, (char) 139, (char) 140, (char) 141, (char) 142, (char) 143,
++ (char) 144, (char) 145, (char) 146, (char) 147, (char) 148, (char) 149, (char) 150, (char) 151,
++ (char) 152, (char) 153, (char) 154, (char) 155, (char) 156, (char) 157, (char) 158, (char) 159,
++ (char) 160, (char) 161, (char) 162, (char) 163, (char) 164, (char) 165, (char) 166, (char) 167,
++ (char) 168, (char) 168, (char) 170, (char) 171, (char) 172, (char) 173, (char) 174, (char) 175,
++ (char) 176, (char) 177, (char) 178, (char) 179, (char) 180, (char) 181, (char) 182, (char) 183,
++ (char) 184, (char) 185, (char) 186, (char) 187, (char) 188, (char) 189, (char) 190, (char) 191,
+ 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'c',
+ 'e', 'e', 'e', 'e', 'i', 'i', 'i', 'i',
+- 208, 'n', 'o', 'o', 'o', 'o', 'o', 'o',
+- 'o', 'u', 'u', 'u', 'u', 'y', 222, 223,
++ (char) 208, 'n', 'o', 'o', 'o', 'o', 'o', 'o',
++ 'o', 'u', 'u', 'u', 'u', 'y', (char) 222, (char) 223,
+ 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'c',
+ 'e', 'e', 'e', 'e', 'i', 'i', 'i', 'i',
+- 240, 'n', 'o', 'o', 'o', 'o', 'o', 'o',
+- 'o', 'u', 'u', 'u', 'u', 'y', 254, 255};
++ (char) 240, 'n', 'o', 'o', 'o', 'o', 'o', 'o',
++ 'o', 'u', 'u', 'u', 'u', 'y', (char) 254, (char) 255};
+
+
+ //*****************************************************************************
diff --git a/www-misc/htdig/files/htdig-3.2.0_beta6-musl.patch b/www-misc/htdig/files/htdig-3.2.0_beta6-musl.patch
new file mode 100644
index 000000000000..5b405993a792
--- /dev/null
+++ b/www-misc/htdig/files/htdig-3.2.0_beta6-musl.patch
@@ -0,0 +1,33 @@
+--- a/configure.in
++++ b/configure.in
+@@ -176,7 +176,7 @@
+ AC_FUNC_STRFTIME
+ AC_FUNC_STRPTIME
+ AC_FUNC_VPRINTF
+-AC_CHECK_FUNCS([alarm btowc bzero ftime getcwd gettimeofday localtime_r memcmp memcpy memmove memset mkstemp munmap pstat_getdynamic raise re_comp regcomp select setlocale strchr strcspn strdup strerror strrchr strstr strtol strtoul timegm])
++AC_CHECK_FUNCS([alarm btowc bzero ftime getcwd gettimeofday localtime_r memcmp memcpy memmove memset mkstemp munmap pstat_getdynamic raise re_comp regcomp rresvport select setlocale strchr strcspn strdup strerror strrchr strstr strtol strtoul timegm])
+ AC_REPLACE_FUNCS(snprintf vsnprintf)
+
+ # More header checks--here use C++
+diff -ur a/htdig-3.2.0b6/htnet/Connection.cc b/htdig-3.2.0b6/htnet/Connection.cc
+--- a/htnet/Connection.cc
++++ b/htnet/Connection.cc
+@@ -64,7 +64,7 @@
+
+ typedef void (*SIGNAL_HANDLER) (...);
+
+-#ifndef _MSC_VER /* _WIN32 */
++#ifdef HAVE_RRESVPORT
+ extern "C" {
+ int rresvport(int *);
+ }
+@@ -161,8 +161,7 @@
+ {
+ int aport = IPPORT_RESERVED - 1;
+
+-// Native Windows (MSVC) has no rresvport
+-#ifndef _MSC_VER /* _WIN32 */
++#ifdef HAVE_RRESVPORT
+ sock = rresvport(&aport);
+ #else
+ return NOTOK;
diff --git a/www-misc/htdig/files/htdig-3.2.0_beta6-quoting.patch b/www-misc/htdig/files/htdig-3.2.0_beta6-quoting.patch
new file mode 100644
index 000000000000..57b0e3b78731
--- /dev/null
+++ b/www-misc/htdig/files/htdig-3.2.0_beta6-quoting.patch
@@ -0,0 +1,26 @@
+Index: htdig-3.2.0b6/htsearch/Display.cc
+===================================================================
+--- htdig-3.2.0b6.orig/htsearch/Display.cc
++++ htdig-3.2.0b6/htsearch/Display.cc
+@@ -137,7 +137,7 @@ Display::display(int pageNumber)
+ // Must temporarily stash the message in a String, since
+ // displaySyntaxError will overwrite the static temp used in form.
+
+- String s(form("No such sort method: `%s'", (const char*)config->Find("sort")));
++ String s("invalid sort method");
+
+ displaySyntaxError(s);
+ return;
+Index: htdig-3.2.0b6/libhtdig/ResultFetch.cc
+===================================================================
+--- htdig-3.2.0b6.orig/libhtdig/ResultFetch.cc
++++ htdig-3.2.0b6/libhtdig/ResultFetch.cc
+@@ -142,7 +142,7 @@ ResultFetch::fetch()
+ // Must temporarily stash the message in a String, since
+ // displaySyntaxError will overwrite the static temp used in form.
+
+- String s(form("No such sort method: `%s'", (const char *) config->Find("sort")));
++ String s("invalid sort method");
+
+ displaySyntaxError(s);
+ //return;
diff --git a/www-misc/htdig/htdig-3.2.0_beta6-r3.ebuild b/www-misc/htdig/htdig-3.2.0_beta6-r3.ebuild
new file mode 100644
index 000000000000..70d2b5c98003
--- /dev/null
+++ b/www-misc/htdig/htdig-3.2.0_beta6-r3.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils autotools
+
+MY_PV=${PV/_beta/b}
+S=${WORKDIR}/${PN}-${MY_PV}
+
+DESCRIPTION="HTTP/HTML indexing and searching system"
+HOMEPAGE="http://www.htdig.org"
+SRC_URI="http://www.htdig.org/files/${PN}-${MY_PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm ~arm64 hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE="ssl"
+
+DEPEND=">=sys-libs/zlib-1.1.3
+ app-arch/unzip
+ ssl? ( dev-libs/openssl )"
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-gcc4.patch
+ epatch "${FILESDIR}"/${P}-as-needed.patch
+ epatch "${FILESDIR}"/${P}-quoting.patch
+ sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.in db/configure.in || die
+ eautoreconf
+}
+
+src_compile() {
+ use prefix || EPREFIX=
+
+ econf \
+ --with-config-dir="${EPREFIX}"/etc/${PN} \
+ --with-default-config-file="${EPREFIX}"/etc/${PN}/${PN}.conf \
+ --with-database-dir="${EPREFIX}"/var/lib/${PN}/db \
+ --with-cgi-bin-dir="${EPREFIX}"/var/www/localhost/cgi-bin \
+ --with-search-dir="${EPREFIX}"/var/www/localhost/htdocs/${PN} \
+ --with-image-dir="${EPREFIX}"/var/www/localhost/htdocs/${PN} \
+ $(use_with ssl)
+
+# --with-image-url-prefix="file://${EPREFIX}/var/www/localhost/htdocs/${PN}" \
+
+ emake || die "emake failed"
+}
+
+src_install () {
+ use prefix || ED="${D}"
+
+ emake DESTDIR="${D}" install || die "make install failed"
+
+ dodoc ChangeLog README
+ dohtml -r htdoc
+
+ sed -i "s:${D}::g" \
+ "${ED}"/etc/${PN}/${PN}.conf \
+ "${ED}"/usr/bin/rundig \
+ || die "sed failed (removing \${D} from installed files)"
+
+ # symlink htsearch so it can be easily found. see bug #62087
+ dosym ../../var/www/localhost/cgi-bin/htsearch /usr/bin/htsearch
+}
diff --git a/www-misc/htdig/htdig-3.2.0_beta6-r4.ebuild b/www-misc/htdig/htdig-3.2.0_beta6-r4.ebuild
new file mode 100644
index 000000000000..3a45503a87a8
--- /dev/null
+++ b/www-misc/htdig/htdig-3.2.0_beta6-r4.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils autotools
+
+MY_PV=${PV/_beta/b}
+S=${WORKDIR}/${PN}-${MY_PV}
+
+DESCRIPTION="HTTP/HTML indexing and searching system"
+HOMEPAGE="http://www.htdig.org"
+SRC_URI="http://www.htdig.org/files/${PN}-${MY_PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE="libressl ssl"
+
+DEPEND=">=sys-libs/zlib-1.1.3
+ app-arch/unzip
+ ssl? (
+ !libressl? ( dev-libs/openssl:0 )
+ libressl? ( dev-libs/libressl )
+ )"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gcc4.patch
+ epatch "${FILESDIR}"/${P}-as-needed.patch
+ epatch "${FILESDIR}"/${P}-quoting.patch
+ epatch "${FILESDIR}"/${P}-gcc6.patch
+ sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.in db/configure.in || die
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --with-config-dir="${EPREFIX}"/etc/${PN} \
+ --with-default-config-file="${EPREFIX}"/etc/${PN}/${PN}.conf \
+ --with-database-dir="${EPREFIX}"/var/lib/${PN}/db \
+ --with-cgi-bin-dir="${EPREFIX}"/var/www/localhost/cgi-bin \
+ --with-search-dir="${EPREFIX}"/var/www/localhost/htdocs/${PN} \
+ --with-image-dir="${EPREFIX}"/var/www/localhost/htdocs/${PN} \
+ $(use_with ssl)
+
+# --with-image-url-prefix="file://${EPREFIX}/var/www/localhost/htdocs/${PN}" \
+}
+
+src_install () {
+ emake DESTDIR="${D}" install || die "make install failed"
+
+ dodoc ChangeLog README
+ dohtml -r htdoc
+
+ sed -i "s:${D}::g" \
+ "${ED}"/etc/${PN}/${PN}.conf \
+ "${ED}"/usr/bin/rundig \
+ || die "sed failed (removing \${D} from installed files)"
+
+ # symlink htsearch so it can be easily found. see bug #62087
+ dosym ../../var/www/localhost/cgi-bin/htsearch /usr/bin/htsearch
+}
diff --git a/www-misc/htdig/htdig-3.2.0_beta6-r5.ebuild b/www-misc/htdig/htdig-3.2.0_beta6-r5.ebuild
new file mode 100644
index 000000000000..7bbba8ccf4d0
--- /dev/null
+++ b/www-misc/htdig/htdig-3.2.0_beta6-r5.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+MY_PV=${PV/_beta/b}
+S=${WORKDIR}/${PN}-${MY_PV}
+
+DESCRIPTION="HTTP/HTML indexing and searching system"
+HOMEPAGE="http://www.htdig.org"
+SRC_URI="http://www.htdig.org/files/${PN}-${MY_PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE="libressl ssl"
+
+DEPEND="
+ >=sys-libs/zlib-1.1.3
+ app-arch/unzip
+ ssl? (
+ !libressl? ( dev-libs/openssl:0 )
+ libressl? ( dev-libs/libressl )
+ )"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-gcc4.patch
+ "${FILESDIR}"/${P}-as-needed.patch
+ "${FILESDIR}"/${P}-quoting.patch
+ "${FILESDIR}"/${P}-gcc6.patch
+ "${FILESDIR}"/${P}-musl.patch
+)
+
+HTML_DOCS=( htdoc )
+
+src_prepare() {
+ default
+ sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.in db/configure.in || die
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --with-config-dir="${EPREFIX}"/etc/${PN} \
+ --with-default-config-file="${EPREFIX}"/etc/${PN}/${PN}.conf \
+ --with-database-dir="${EPREFIX}"/var/lib/${PN}/db \
+ --with-cgi-bin-dir="${EPREFIX}"/var/www/localhost/cgi-bin \
+ --with-search-dir="${EPREFIX}"/var/www/localhost/htdocs/${PN} \
+ --with-image-dir="${EPREFIX}"/var/www/localhost/htdocs/${PN} \
+ $(use_with ssl)
+}
+
+src_install () {
+ default
+ sed -i "s:${D}::g" \
+ "${ED}"/etc/${PN}/${PN}.conf \
+ "${ED}"/usr/bin/rundig \
+ || die "sed failed (removing \${D} from installed files)"
+ # symlink htsearch so it can be easily found. see bug #62087
+ dosym ../../var/www/localhost/cgi-bin/htsearch /usr/bin/htsearch
+}
diff --git a/www-misc/htdig/metadata.xml b/www-misc/htdig/metadata.xml
new file mode 100644
index 000000000000..f2f2ba9e2823
--- /dev/null
+++ b/www-misc/htdig/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>web-apps@gentoo.org</email>
+ <name>Gentoo Webapps</name>
+</maintainer>
+</pkgmetadata>
diff --git a/www-misc/litmus/Manifest b/www-misc/litmus/Manifest
new file mode 100644
index 000000000000..da9a71dbe4da
--- /dev/null
+++ b/www-misc/litmus/Manifest
@@ -0,0 +1,6 @@
+AUX 0.13-autotools-neon-version.patch 344 SHA256 15394127af20b5d29a8c4666c2a9156046aa2069795d9e811a68a307e288ef0b SHA512 ffc549b2c676a124bbb5a4d9df5ffe3178ac7186dafbad0cbae85b6092b6e204c9ac15e054084efd5eb5bf74620cedeaa88924c02c1f0861e9c258bae7ff9012 WHIRLPOOL 27ff6d16c0d2eb65fb7d62efd9a279c6a5cda3579e9cda7732fe4e558d6320228d69b72fee054af4be2917f40141c2b738592d62367c64d5b33f67584aa61cb9
+DIST litmus-0.13.tar.gz 467532 SHA256 09d615958121706444db67e09c40df5f753ccf1fa14846fdeb439298aa9ac3ff SHA512 a1c04a17cbe4a17b5e0ed768017296256c9f234ae3f238f838f55064855b254246ba1d2e41b07145e1a9587698145b36b67e31488cfce817a9b5b119ee505b1e WHIRLPOOL a9809b9e3a3faf0f51dc234a117812442bac84dddfe339f1746094237096164bbfcab8eb4739d7c4a325480124828217194374401a1396e1c7f1f1807883e9eb
+EBUILD litmus-0.13.ebuild 1591 SHA256 b7286ef3a1eab506e6979066c26c2b87e2cc5d49fec4c1fd1eb3d82d5bfa1a7b SHA512 35aa843ced2559537307d46c2f9fc701a1330a18b59354613b00a9fe16ea0ad6ee1da72526d20d5b0be733aafc407b26f82c885868982bedda0f351c5df25348 WHIRLPOOL 7a5dbef36654200e4e60e5f481b306c35422079d7585deb9cd9c7656e8c4e7cfc2ad3f86951932a46517a6d0d9daa04ed4feb98b9178a63446c3851f1376536d
+MISC ChangeLog 2612 SHA256 c12049c8bad62e3813b3085ec5d1bfa7e6f260f46e8f0683c9e9a0893efad4e4 SHA512 b469839bc5d22840444adef1ea8c05c0d14cbb8769d3426cda0e310efa806f78ba22b336228eea37b6ede96ec95ffb76c9111d4af87f8d91a218ba67450a57dc WHIRLPOOL 6b9f3f1343931daa3bd325da17d7343ec91dab548336c71a6a2bb4c16169bddad75b3358d6ed0b138f54bc991bff304015d64c4d98759d234e59e2d9deb93676
+MISC ChangeLog-2015 1076 SHA256 173a83419bd9d0974577162f8e7515e229bd0c0d126e7d6ee92f80a7ccbe5523 SHA512 248a45da333e0b6b8e75405b8d460d8616a4b4cba2413d8550ed21f9721f53fc84c02d6233c3e5bdcef859918fe5863d49dd304479e0a7801ddf825889ac408f WHIRLPOOL 8224c74265f23d08fbcc20bac7ec2c8bc665a33e96c3433c6c986adea214c659ede26e4b34c1572d6604c4df97ba9d0612887bfcb9f9d6e05abf729941a2ec3a
+MISC metadata.xml 750 SHA256 6d35e0ee910bce1c9dc7099afd8924f3c378484d22f8355b19eb438b2b09b5dc SHA512 d6973143e28fd6462a846248c48d82f88ae11d93286e4d4499cf6aa9d186e816057b4d93f3a2b1e4104e2baab5b590ab1321ac8e971d1d4f556d3e221cdba7bb WHIRLPOOL ad36a8280687989400273cb5c7537acecf1fdaf30df148eaa4ef74f2f94bc261877376cd8fd3a2a565e2a67cb174e1a78f7cde073fa50eee6e0b36d7c398e8f9
diff --git a/www-misc/litmus/files/0.13-autotools-neon-version.patch b/www-misc/litmus/files/0.13-autotools-neon-version.patch
new file mode 100644
index 000000000000..c2e0211b6508
--- /dev/null
+++ b/www-misc/litmus/files/0.13-autotools-neon-version.patch
@@ -0,0 +1,11 @@
+--- configure.ac.ori 2014-01-31 01:00:58.796123088 +0100
++++ configure.ac 2014-01-31 01:00:43.767787763 +0100
+@@ -20,7 +20,7 @@
+ dnl List of tests
+ AC_SUBST([TESTS], ["basic copymove props locks http"])
+
+-NE_REQUIRE_VERSIONS([0], [25 26 27 28 29])
++NE_REQUIRE_VERSIONS([0], [25 26 27 28 29 30])
+ NEON_WITHOUT_ZLIB
+ NEON_WITHOUT_ACL
+ NEON_TEST
diff --git a/www-misc/litmus/litmus-0.13.ebuild b/www-misc/litmus/litmus-0.13.ebuild
new file mode 100644
index 000000000000..979cadc02fce
--- /dev/null
+++ b/www-misc/litmus/litmus-0.13.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit autotools eutils
+
+# TODO: FAIL (connection refused by '...' port 80: Connection refused)
+# We can't run tests that connect with the internet.
+RESTRICT="test"
+
+DESCRIPTION="WebDAV server protocol compliance test suite"
+HOMEPAGE="http://www.webdav.org/neon/litmus"
+SRC_URI="http://www.webdav.org/neon/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug expat gnutls kerberos libproxy +libxml2 pkcs11 +ssl threads"
+REQUIRED_USE="?? ( gnutls ssl )
+ ^^ ( expat libxml2 )
+ threads? ( ^^ ( gnutls ssl ) )"
+
+NEON_DEP="net-libs/neon:0="
+DEPEND="${NEON_DEP}[expat?,gnutls?,kerberos?,libproxy?,pkcs11?,ssl?,zlib]
+
+ expat? ( dev-libs/expat:0 )
+ gnutls? ( net-libs/gnutls:0 )
+ kerberos? ( app-crypt/mit-krb5:0 )
+ libproxy? ( net-libs/libproxy:0 )
+ libxml2? ( dev-libs/libxml2:2 )
+ pkcs11? ( dev-libs/pakchois:0 )
+ ssl? ( dev-libs/openssl:0 )"
+RDEPEND="${DEPEND}"
+
+DOCS=( ChangeLog FAQ NEWS README THANKS TODO )
+
+src_prepare() {
+ # Accept Neon 0.30.
+ epatch "${FILESDIR}/${PV}-autotools-neon-version.patch"
+
+ eautoreconf
+}
+
+src_configure() {
+ # No EGD available in the Portage tree.
+ econf \
+ --enable-warnings \
+ --without-egd \
+ --with-neon \
+ --without-included-neon \
+ $(use_enable debug) \
+ $(use_enable threads threadsafe-ssl posix) \
+ $(use_with gnutls ssl gnutls) \
+ $(use_with ssl ssl openssl) \
+ $(use_with expat) \
+ $(use_with libxml2) \
+ $(use_with kerberos gssapi) \
+ $(use_with pkcs11 pakchois) \
+ $(use_with libproxy)
+}
diff --git a/www-misc/litmus/metadata.xml b/www-misc/litmus/metadata.xml
new file mode 100644
index 000000000000..368745c5187e
--- /dev/null
+++ b/www-misc/litmus/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>bertrand@jacquin.bzh</email>
+ <name>Bertrand Jacquin</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <longdescription>WebDAV server protocol compliance test suite</longdescription>
+ <use>
+ <flag name="libproxy">Support for automatic proxy configuratino management through <pkg>net-libs/libproxy</pkg>.</flag>
+ <flag name="libxml2">Use dev-libs/libxml2 to parse XML</flag>
+ <flag name="pkcs11">Support for PKCS #11 through PaKChoiS (<pkg>dev-libs/pakchois</pkg>).</flag>
+ </use>
+</pkgmetadata>
diff --git a/www-misc/log-toolkit/Manifest b/www-misc/log-toolkit/Manifest
new file mode 100644
index 000000000000..0054e1794939
--- /dev/null
+++ b/www-misc/log-toolkit/Manifest
@@ -0,0 +1,5 @@
+DIST log-toolkit-0.9.6.tar.bz2 69062 SHA256 d742400c8efeaaafa2430708174974e8d3fded314ea1961ccf1a2566f6111728 SHA512 acc922a67a3559d1322cc38b9e47c39737866e9d2dc4a5be131a24751f49f3cd70facdec88c770122a3a5eafe5bf6e0a88080071be61bc6b4dbcd31a3ac9c4fb WHIRLPOOL cd7aff06a48033615c7017f56bf7ff2267c73a252f36303609387f2edb2e837f6fc99f5fd56324bf3072b47511d50b2f7a1101f9239dd63f447e750740239c4c
+EBUILD log-toolkit-0.9.6-r1.ebuild 386 SHA256 61618821fb98664b45905ebbf193e69cae6c64d73ec71b1aaab6bb881cd7b5d9 SHA512 530add02837aae3fd0fc6224a41315e89af4dda5f0a6df8660a99c261102f3bd86e6e32b974ed7b7820801a228365b52041f9b7b2c74245d00d9592f51fb6d0c WHIRLPOOL fd8dcf162b25646556099cc8baec4cfacb2ae72d6d422921fe55208265f795257b001f479810ab1a419ba78c9c053be942c702c61c5c8c3e003bdc2385c420ce
+MISC ChangeLog 2650 SHA256 704fb739991e2db32a3169f1472a3c4d28706aa3c3a6a54c1d62e3ef3a79adf5 SHA512 cfca0628309b70a3f602df9c33f4257ff15d8c4626ad396cd7e391b3965e06a9499f5d25a0ace590a356e17d9848cd2ad74ad01ee8704ce955b84a58e7ff6ef6 WHIRLPOOL 01b4d642de2ed5dd4ad5c17e8860572ca7e2a2f63354efbcc267e51bfc8d7666d6a2e32289daddcadc7a2fe30300827685ce6abb7f09c1394e247a7abed58347
+MISC ChangeLog-2015 1717 SHA256 ed2441beb908d0b38fa0f3c259c5e1c7fbcca28575c976be7d00c10d3535ee5e SHA512 c2f9cf4cfbb0fac0da0f329ad12a183c312d1f0e5bd7b887d9cf15118a651a9073b669e17673b31067a1c2bf84c7b822b31bcbb8119eca103635186c5353a983 WHIRLPOOL a6436076fb15c4f31c33e293172169b2b1a7dde1594785c99152804e2ecbc4499b4b92e35b589ac949f9975547cf24507cb9d3bb3fbb55a6e7a441daa5649945
+MISC metadata.xml 248 SHA256 ae7b11e0b8fe6a22741895fb483de69bdfe059c0b96862b109da023d6da8de0d SHA512 3c2b87b65cc5d67f61ddb24eda67b9bd890729674fea0133d9959e1c30fb696724578a6324556c8cd9efbfe837974a37a6c8bc1dae0e2cd110d3296b6a66e73c WHIRLPOOL 18dd36c12d92d9a0269566ac00e3f29a9267b8cb17b4c922dab12d0afced707bb55644bf9377f0dfaa5651780869f68917c6abafa5fe5554a25500334a04a4b4
diff --git a/www-misc/log-toolkit/log-toolkit-0.9.6-r1.ebuild b/www-misc/log-toolkit/log-toolkit-0.9.6-r1.ebuild
new file mode 100644
index 000000000000..b99b4cd70013
--- /dev/null
+++ b/www-misc/log-toolkit/log-toolkit-0.9.6-r1.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit depend.apache
+
+DESCRIPTION="set of tools to manipulate and maintain webserver logfiles"
+HOMEPAGE="https://sourceforge.net/projects/log-toolkit/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+need_apache
diff --git a/www-misc/log-toolkit/metadata.xml b/www-misc/log-toolkit/metadata.xml
new file mode 100644
index 000000000000..2da8eb1af720
--- /dev/null
+++ b/www-misc/log-toolkit/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <upstream>
+ <remote-id type="sourceforge">log-toolkit</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/www-misc/mergelog/Manifest b/www-misc/mergelog/Manifest
new file mode 100644
index 000000000000..fa164ab97415
--- /dev/null
+++ b/www-misc/mergelog/Manifest
@@ -0,0 +1,7 @@
+AUX mergelog-4.5-asneeded.patch 1106 SHA256 eb7b0df76642cfa1c93dcabaff48388c7051b517aa6e48137af7f2876c491db2 SHA512 88c6e44645b41d84e67e4973dede40e550ea64b8d98490eed4c55b8240e3cecbedcf6697b5b73264e5358f3c4eea11cf2534f9588c0bf638d288678e60f8f5fa WHIRLPOOL 32c8f50d069fb05de575d6d9f86c3628ee23f0684d15798c5d536300fa407f9db64470475ac277b32b50739dc77b14d63b16843480a904a48e5b396a72183bba
+AUX mergelog-4.5-splitlog.patch 13678 SHA256 904df097cb884fe497440dbd9a967d933490861552e45bc62afa0feabe0664f5 SHA512 1d3b104e0ea27e41227cf903196a1cdbd4f362a85f9aabe95ea2a648dcc3db5378dc0a64c06b406237c88db91ac8cd63b73bce32de3a80bd44b14f5cf24de803 WHIRLPOOL a7f4840a6a0ad419cc8cb1d91b1507398205f56b1c2e5b4c22bde4331026db5b4eed8414e29dda17e3a59bc0181c5404a17b649b4d8626cdd8e01f49b45e8c67
+DIST mergelog-4.5.tar.gz 39407 SHA256 fd97c5b9ae88fbbf57d3be8d81c479e0df081ed9c4a0ada48b1ab8248a82676d SHA512 f2259cb8981871c1f9d7cadc5414997789aa13eed0e18701673ffbddedc74954e137e282c1357cafaf515e18b39e256f890ec31568a305feefa1089a9347991f WHIRLPOOL 2c4382a3787c47ae5375492850fdb7cefff225537d4331fed2f97bdec76df6f324afae4888c341923709e9ea2b89199df6376ab5d738de974892dddaa722be2a
+EBUILD mergelog-4.5-r2.ebuild 553 SHA256 974d5dd6192db1c1792e28b5e880c3b02d93188abbce2a79fb13bb75b0f7a153 SHA512 c88404e2cb413c57f6802756c31d4b53d4073df9e68735b9bd78004f00e1991cdb283648f8e570db48c6c23fec613d3bb52c342fc39f31b7d4b5f018d385c595 WHIRLPOOL e6f9eee2b8330866f8bdb4369d0020f3c0c6b1ccb889dda731c76eeae92b784594081034ad820942dd647d9444d26dd9607008556d171fe329159b760d4744a8
+MISC ChangeLog 2601 SHA256 574d76de89d2f154f5459bb3c1fae45f71cfe5afa86412f1a1f8eca9a237d6e4 SHA512 3ef4a10cdf2a1a1460332543dc1a14047e1b82519969a9081bc2fd7a9a64fe968927fd78586a5bccc20e3c2f215d45b0c10003c54817e159a8c80e9b36b97394 WHIRLPOOL db21c7bfe3be3acaa95e051d5f1dd787bd3be75a81f7db96d3c9557b766e8647da0cb057837b9f6c318967b6d538355381e1e5275934c7554974e997ff0e5650
+MISC ChangeLog-2015 3047 SHA256 a98fda3528f547f7614e855e58764a8271910ae5fe372a6bf3996ad1d5255ba0 SHA512 69b2f1e08b3637493e343eaf46021f760aef7f77a3a4abcb11869cd40e5c03bb355fc0e2bc7a8deeba48f0674aca14ba3f3e96d281c8fccc07eec8d1bbb54cd6 WHIRLPOOL d27b33d91651db412bc28db02e7add8b06aa931c03bfcd20d2bdd0db442c17357e639d97616dcea2d2369e43017f167937d58649caf3a3de5a50fd7a7a1f7ed4
+MISC metadata.xml 588 SHA256 085e6bfba30e2b608b11003985f05e348dedf95cde60778d0fc589e401dc23d9 SHA512 8301f5e4da25f389e6d3c26bad59c5170c6f971f56b79cd62786cb6fba287e9b3d865f648c04ae4ab22a40fb2815ca69ad36afd917b92d0bab97cd75cbfa41ca WHIRLPOOL 4972ddaaccd71d0efad6b0937fd7512b5ee9f106e620ce941b3d43e10b269feef1dcfb7d100a37dc8c74bada9e90addb497e0c908fe4719d42d22a907e6992eb
diff --git a/www-misc/mergelog/files/mergelog-4.5-asneeded.patch b/www-misc/mergelog/files/mergelog-4.5-asneeded.patch
new file mode 100644
index 000000000000..77573cc60f9e
--- /dev/null
+++ b/www-misc/mergelog/files/mergelog-4.5-asneeded.patch
@@ -0,0 +1,32 @@
+Index: mergelog-4.5/configure.in
+===================================================================
+--- mergelog-4.5.orig/configure.in
++++ mergelog-4.5/configure.in
+@@ -10,6 +10,7 @@ AC_PROG_INSTALL()
+
+ dnl Checks for programs.
+ AC_PROG_CC
++AM_PROG_CC_C_O
+
+ dnl Checks for libraries.
+ dnl Replace `main' with a function in -lz:
+Index: mergelog-4.5/src/Makefile.am
+===================================================================
+--- mergelog-4.5.orig/src/Makefile.am
++++ mergelog-4.5/src/Makefile.am
+@@ -1,7 +1,10 @@
+ bin_PROGRAMS=mergelog zmergelog
+
+-mergelog: mergelog.c
+- $(COMPILE) $(LIBS) -DVERSION=\"$(VERSION)\" -Wall mergelog.c -o $@
+-
+-zmergelog: mergelog.c
+- $(COMPILE) $(LIBS) -DVERSION=\"$(VERSION)\" -Wall -DUSE_ZLIB mergelog.c -o $@
++# This is a bit of a hack, but it preserves the original design of the
++# upstream Makefile.am in assuming that $VERSION will be defined in the
++# Makefile that is actually fed to make.
++AM_CPPFLAGS=-DVERSION=\"@VERSION@\"
++AM_CFLAGS=-Wall
++mergelog_SOURCES = mergelog.c
++zmergelog_SOURCES = mergelog.c
++zmergelog_CPPFLAGS = $(AM_CPPFLAGS) -DUSE_ZLIB
diff --git a/www-misc/mergelog/files/mergelog-4.5-splitlog.patch b/www-misc/mergelog/files/mergelog-4.5-splitlog.patch
new file mode 100644
index 000000000000..ddc0348543be
--- /dev/null
+++ b/www-misc/mergelog/files/mergelog-4.5-splitlog.patch
@@ -0,0 +1,384 @@
+Index: mergelog-4.5/configure.in
+===================================================================
+--- mergelog-4.5.orig/configure.in
++++ mergelog-4.5/configure.in
+@@ -2,7 +2,7 @@ dnl Process this file with autoconf to p
+ AC_INIT(src/mergelog.c)
+
+ PACKAGE=mergelog
+-VERSION=4.5
++VERSION=4.5-split
+ AM_INIT_AUTOMAKE($PACKAGE,$VERSION,nosubst)
+
+ AC_ARG_PROGRAM
+Index: mergelog-4.5/man/mergelog.1
+===================================================================
+--- mergelog-4.5.orig/man/mergelog.1
++++ mergelog-4.5/man/mergelog.1
+@@ -1,8 +1,9 @@
+-.TH MERGELOG 1 "22 Jan 2001"
++.TH MERGELOG 1 "20 Jun 2001"
+ .SH NAME
+ mergelog \- a fast tool to merge http log files by date
+ .SH SYNOPSIS
+ .B mergelog
++.IR [-vh]\ [-o\ outfmt]
+ .IR logfile1
+ .IR logfile2 \ ...
+ .SH DESCRIPTION
+Index: mergelog-4.5/man/zmergelog.1
+===================================================================
+--- mergelog-4.5.orig/man/zmergelog.1
++++ mergelog-4.5/man/zmergelog.1
+@@ -1,8 +1,9 @@
+-.TH ZMERGELOG 1 "22 Jan 2001"
++.TH ZMERGELOG 1 "20 Jun 2001"
+ .SH NAME
+ zmergelog \- a fast tool to merge gzipped http log files by date
+ .SH SYNOPSIS
+ .B zmergelog
++.IR [-vh]\ [-o\ outfmt]
+ .IR logfile1
+ .IR logfile2 \ ...
+ .SH DESCRIPTION
+Index: mergelog-4.5/src/mergelog.c
+===================================================================
+--- mergelog-4.5.orig/src/mergelog.c
++++ mergelog-4.5/src/mergelog.c
+@@ -45,12 +45,16 @@
+ #define mygets(a,b,c,d) fast_gzgets(a,b,c,d)
+ #define myrewind gzrewind
+ #define myclose gzclose
++#define mywrite(f,b,l) gzwrite((f),(b),(l))
++#define MYSUFFIX ".gz"
+ #else
+ #define myFH FILE
+ #define myopen fopen
+ #define mygets(a,b,c,d) fgets(a,b,c)
+ #define myrewind rewind
+ #define myclose fclose
++#define mywrite(f,b,l) fwrite((b),1,(l),(f))
++#define MYSUFFIX
+ #endif
+
+
+@@ -112,20 +116,141 @@ int main (int argc, char *argv[]) {
+ char *trans_digits[60];
+ char *trans_year[200];
+ char months[24]="anebarprayunulugepctovec";
++ int goc;
++ int goUsage = 0, goVerbose = 0;
++ const char* goOutput = NULL;
++ const char* argv0 = *argv;
++ struct tm gotmFlags;
++ const char* goOutPtr;
++ myFH *outFile = NULL;
++ char outFileName[512];
++ struct tm outFileTM;
++ char outFileNewName[512];
++ size_t outBytes;
++
++ while((goc=getopt(argc,argv,"vho:"))!=-1) {
++ switch(goc) {
++ case 'h': /* -h print usage */
++ goUsage++;
++ break;
++ case 'v': /* -v verbose */
++ goVerbose++;
++ break;
++ case 'o': /* -o fmt output specification */
++ goOutput = optarg;
++ break;
++ default: /* whatever.. but we better print out usage */
++ goUsage++;
++ break;
++ }
++ }
++ argv = &argv[optind];
++ argc -= optind;
+
+- /*
+- print usage if necessary
+- */
+- if (argc == 1) {
+- fprintf(stderr,"usage: %s logfile1 logfile2 ...\nmergelog %s Copyright (C) 2000-2001 Bertrand Demiddelaer\n",argv[0],VERSION);
++ if(argc<1)
++ goUsage++;
++ if(goUsage) {
++ printf(
++ "mergelog " VERSION " Copyright (c) 2000-2001 Bertrand Demiddelaer\n\n"
++ "I have at least %d reason(s) for lending you a helping hand on using the program.\n\n"
++ "Usage: %s [-vh] [-o fmt] logfile1 logfile2 ..\n\n"
++ " -h Print this message\n"
++ " -v Increase verbosity\n"
++ " -o Give template for output file name to write log to\n"
++ " instead of standard output in strftime(3) form.\n"
++ " ( eg. -o %%Y-%%m-%%d-access.log" MYSUFFIX ")\n",
++ goUsage,argv0);
+ exit(1);
+ }
+
++ /* Analyze output format if given. It's better than trying to
++ * regenerate file name and compare it to the filename currently being
++ * written each time we want to dump one line. */
++ if(goOutput) {
++ memset(&gotmFlags,0,sizeof(gotmFlags));
++ for(goOutPtr=goOutput;*goOutPtr;goOutPtr++) {
++ if( (*goOutPtr=='%') && goOutPtr[1]) {
++ switch(*(++goOutPtr)) {
++ case 'a': /* abbreviated weekday */
++ case 'A': /* full weekday */
++ case 'u': /* day of week number */
++ case 'w': /* zerobased weekday number */
++ gotmFlags.tm_wday = 1;
++ break;
++ case 'b': /* abbreviated month */
++ case 'h': /* %b */
++ case 'B': /* full month */
++ case 'm': /* month number */
++ gotmFlags.tm_mon = 1;
++ break;
++ case 'C': /* century */
++ case 'y': /* centuryless year */
++ case 'Y': /* year with a century */
++ gotmFlags.tm_year = 1;
++ break;
++ case 'd': /* day of month */
++ case 'e': /* day of month space padded */
++ gotmFlags.tm_mday = 1;
++ break;
++ case 'D': /* %m/%d/%y americanism */
++ gotmFlags.tm_mon = gotmFlags.tm_mday = gotmFlags.tm_year = 1;
++ break;
++ case 'G': /* ISO 8601 year repsesentation. depends on week */
++ case 'g': /* ISO 8601 year repsesentation without century. depends on week */
++ case 'U': /* sunday-based week number */
++ case 'V': /* ISO 8601 week number */
++ case 'W': /* monday-based week number */
++ case 'x': /* preferred date representation for locale without the time */
++ gotmFlags.tm_yday = gotmFlags.tm_year = 1;
++ break;
++ case 'H': /* 24h format hour */
++ case 'I': /* 12h format hour */
++ case 'k': /* 24h format hour space padded */
++ case 'l': /* 12h format hour space padded */
++ case 'p': /* AM/PM indicator */
++ case 'P': /* am/pm indicator */
++ gotmFlags.tm_hour = 1;
++ break;
++ case 'j': /* day of year */
++ gotmFlags.tm_yday = 1;
++ break;
++ case 'M': /* minute */
++ gotmFlags.tm_min = 1;
++ break;
++ case 'n': /* newline character */
++ case 't': /* tab character */
++ case 'z': /* time zone as an offset from GMT */
++ case 'Z': /* timezone name or abbreviation */
++ case '%': /* % character */
++ break;
++ case 'r': /* %I:%M:%S %p time in am/pm notation*/
++ case 'T': /* %H:%M:%S time in 24h notation */
++ case 'X': /* preferred time representation for locale without the date */
++ gotmFlags.tm_hour = gotmFlags.tm_min = gotmFlags.tm_sec = 1;
++ break;
++ case 'R': /* %H:%M time in 24h notation without seconds */
++ gotmFlags.tm_hour = gotmFlags.tm_min = 1;
++ break;
++ case 'S': /* second */
++ gotmFlags.tm_sec = 1;
++ break;
++ case 'c': /* preferred date and time representation for locale */
++ case 'E': /* weird modifier */
++ case 'O': /* weird modifier */
++ case 's': /* number of seconds since epoch */
++ case '+': /* date and time in date(1) format */
++ memset(&gotmFlags,0xFF,sizeof(gotmFlags));
++ break;
++ }
++ }
++ }
++ }
++
+ #ifdef USE_ZLIB
+ /*
+ check if there are enough gunzip buffers
+ */
+- if(argc>MAX_FILES) {
++ if(argc>=MAX_FILES) {
+ fputs("too many gzipped log files, aborting\n",stderr);
+ exit(1);
+ }
+@@ -134,9 +259,9 @@ int main (int argc, char *argv[]) {
+ /*
+ open log files
+ */
+- for (i=1;i<argc;i++) {
+- log_file[i-1]=myopen(argv[i],"r");
+- if (log_file[i-1] == NULL) {
++ for (i=0;i<argc;i++) {
++ log_file[i]=myopen(argv[i],"r");
++ if (log_file[i] == NULL) {
+ fprintf(stderr,"can't open %s, aborting\n",argv[i]);
+ exit(1);
+ }
+@@ -174,8 +299,8 @@ int main (int argc, char *argv[]) {
+ /*
+ init things for each log file and get the older date to start with
+ */
+- nb_files=argc-1;
+- for (i=0;i<argc-1;i++) {
++ nb_files=argc;
++ for (i=0;i<argc;i++) {
+
+ #ifdef USE_ZLIB
+ /*
+@@ -230,7 +355,7 @@ int main (int argc, char *argv[]) {
+ */
+ log_date=memchr(log_scan[i],'[',SCAN_SIZE);
+ if (log_date == NULL) {
+- fprintf(stderr,"abort due to a problem with %s:\n%s\n",argv[i+1],log_buffer[i]);
++ fprintf(stderr,"abort due to a problem with %s:\n%s\n",argv[i],log_buffer[i]);
+ exit(1);
+ }
+
+@@ -239,7 +364,7 @@ int main (int argc, char *argv[]) {
+ */
+ for (j=0;((j == 12)&&(memcmp(months+2*j,log_date+5,2) != 0));j++);
+ if (j == 12) {
+- fprintf(stderr,"abort due to a problem with %s:\n%s\n",argv[i+1],log_buffer[i]);
++ fprintf(stderr,"abort due to a problem with %s:\n%s\n",argv[i],log_buffer[i]);
+ exit(1);
+ }
+ memcpy(log_month[i],trans_digits[j],2);
+@@ -255,7 +380,7 @@ int main (int argc, char *argv[]) {
+ extract the date of this first line
+ */
+ if (sscanf(log_date+1,"%d/%3c/%d:%d:%d:%d",&day,month,&year,&hour,&minut,&second) < 6) {
+- fprintf(stderr,"abort due to a problem with %s:\n%s\n",argv[i+1],log_buffer[i]);
++ fprintf(stderr,"abort due to a problem with %s:\n%s\n",argv[i],log_buffer[i]);
+ exit(1);
+ }
+
+@@ -270,7 +395,7 @@ int main (int argc, char *argv[]) {
+ date->tm_isdst=-1;
+ for (j=0;((j<12)&&(memcmp(months+2*j,month+1,2) != 0));j++);
+ if (j == 12) {
+- fprintf(stderr,"abort due to a problem with %s:\n%s\n",argv[i+1],log_buffer[i]);
++ fprintf(stderr,"abort due to a problem with %s:\n%s\n",argv[i],log_buffer[i]);
+ exit(1);
+ }
+ date->tm_mon=j;
+@@ -303,6 +428,8 @@ int main (int argc, char *argv[]) {
+ exit if we have only empty files
+ */
+ if (nb_files == 0) {
++ if(outFile)
++ myclose(outFile);
+ exit(0);
+ }
+
+@@ -323,7 +450,7 @@ int main (int argc, char *argv[]) {
+ /*
+ start to compute since this date
+ */
+- nb_files_orig=argc-1;
++ nb_files_orig=argc;
+ for(;;) {
+
+ /*
+@@ -377,7 +504,55 @@ int main (int argc, char *argv[]) {
+ write the log line
+ faster than a puts and we are sure to find a '\0' in log_buffer[i]
+ */
+- write(1,log_buffer[i],(size_t)((char *)memchr(log_buffer[i],0,BUFFER_SIZE)-log_buffer[i]));
++ if(goOutput) {
++ /* Check whether any of the date/time components concerned
++ * have changes or if we have no output file opened. It
++ * doesn't make much sense to do all the comparinsons in case
++ * we have no output file opened, but it makes even less sense
++ * to check for file handle each time we evaluate date. */
++ if(
++# define TMCOMPARE(tmpart) ( gotmFlags.tm_##tmpart && (outFileTM.tm_##tmpart!=date->tm_##tmpart) )
++ TMCOMPARE(sec) || TMCOMPARE(min) || TMCOMPARE(hour)
++ || TMCOMPARE(mday) || TMCOMPARE(mon) || TMCOMPARE(year)
++ || TMCOMPARE(wday) || TMCOMPARE(yday)
++ || !outFile
++# undef TMCOMPARE
++ ) {
++ if(!strftime(outFileNewName,sizeof(outFileNewName)-1,goOutput,date)) {
++ fprintf(stderr,"abort due to a failed attempt to generate output file name\n");
++ if(outFile)
++ myclose(outFile);
++ exit(1);
++ }
++ if( (!outFile) || strcmp(outFileName,outFileNewName) ) {
++ /* okay, we're about to change output file or start
++ * writing first file */
++ if(outFile) {
++ myclose(outFile);
++ }
++ if(goVerbose)
++ fprintf(stderr, "Writing to \"%s\"..\n",outFileNewName);
++ outFile = myopen(outFileNewName,"a");
++ if(!outFile) {
++ fprintf(stderr, "abort due to a failed attempt to open/create output file %s: %m\n",outFileNewName);
++ exit(1);
++ }
++ memmove(outFileName,outFileNewName,sizeof(outFileName));
++ memmove(&outFileTM,date,sizeof(outFileTM));
++ }
++ }
++ /* %Y-%m-%d_%H-%M-%S-access.log */
++ outBytes = (size_t)((char *)memchr(log_buffer[i],0,BUFFER_SIZE)-log_buffer[i]);
++ if( mywrite(outFile,log_buffer[i],outBytes) != outBytes) {
++ fprintf(stderr,"abort due to a failed write operation on output file %s: %m\n",outFileName);
++ if(outFile)
++ myclose(outFile);
++ exit(1);
++ }
++ }else{
++ /* do it the way we would do without */
++ write(1,log_buffer[i],(size_t)((char *)memchr(log_buffer[i],0,BUFFER_SIZE)-log_buffer[i]));
++ }
+
+ /*
+ is it an end of file ?
+@@ -388,7 +563,9 @@ int main (int argc, char *argv[]) {
+ close all log files and exit if all end of files are reached
+ */
+ if (--nb_files == 0) {
+- for (j=0;j<argc-1;j++) {
++ if(outFile)
++ myclose(outFile);
++ for (j=0;j<argc;j++) {
+ myclose(log_file[j]);
+ }
+ exit(0);
+@@ -425,7 +602,7 @@ int main (int argc, char *argv[]) {
+ } else {
+ for (j=0;((j<12)&&(memcmp(months+2*j,log_date+5,2) != 0));j++);
+ if (j == 12) {
+- fprintf(stderr,"problem with %s:\n%s\ncontinuing...\n",argv[i+1],log_buffer[i]);
++ fprintf(stderr,"problem with %s:\n%s\ncontinuing...\n",argv[i],log_buffer[i]);
+ } else {
+ memcpy(log_month[i],trans_digits[j],2);
+ memcpy(log_month[i]+2,months+2*j,2);
+@@ -439,7 +616,7 @@ int main (int argc, char *argv[]) {
+ }
+ }
+ } else {
+- fprintf(stderr,"problem with %s:\n%s\ncontinuing...\n",argv[i+1],log_buffer[i]);
++ fprintf(stderr,"problem with %s:\n%s\ncontinuing...\n",argv[i],log_buffer[i]);
+ }
+ }
+ }
+@@ -451,3 +628,7 @@ int main (int argc, char *argv[]) {
+ */
+ exit(1);
+ }
++/* vim:set textwidth=72: */
++/* vim:set cindent smartindent: */
++/* vim:set formatoptions-=t formatoptions+=croql: */
++/* vim:set expandtab shiftwidth=2: */
diff --git a/www-misc/mergelog/mergelog-4.5-r2.ebuild b/www-misc/mergelog/mergelog-4.5-r2.ebuild
new file mode 100644
index 000000000000..936acbb1f570
--- /dev/null
+++ b/www-misc/mergelog/mergelog-4.5-r2.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+AUTOTOOLS_AUTORECONF=1
+inherit autotools-utils eutils
+
+DESCRIPTION="A utility to merge apache logs in chronological order"
+SRC_URI="mirror://sourceforge/mergelog/${P}.tar.gz"
+HOMEPAGE="http://mergelog.sourceforge.net"
+
+IUSE=""
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="amd64 ppc x86"
+
+RDEPEND="sys-libs/zlib"
+DEPEND="${DEPEND}"
+
+DOCS=( AUTHORS ChangeLog README)
+PATCHES=(
+ "${FILESDIR}"/${P}-splitlog.patch
+ "${FILESDIR}"/${P}-asneeded.patch
+)
diff --git a/www-misc/mergelog/metadata.xml b/www-misc/mergelog/metadata.xml
new file mode 100644
index 000000000000..ae81af2b9617
--- /dev/null
+++ b/www-misc/mergelog/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <longdescription>
+The Apache HTTP Server Project is an effort to develop and maintain an open-source HTTP server for modern operating systems including UNIX and Windows NT. The goal of this project is to provide a secure, efficient and extensible server that provides HTTP services in sync with the current HTTP standards.
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">mergelog</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/www-misc/metadata.xml b/www-misc/metadata.xml
new file mode 100644
index 000000000000..811b23e1852c
--- /dev/null
+++ b/www-misc/metadata.xml
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE catmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<catmetadata>
+ <longdescription lang="en">
+ The www-misc category contains various miscellaneous world wide web
+ software.
+ </longdescription>
+ <longdescription lang="de">
+ Die Kategorie www-misc enthält verschiedene Programme für das World
+ Wide Web (z.B. htdig, squidanalyser)
+ </longdescription>
+ <longdescription lang="es">
+ La categoría www-misc contiene software misceláneo relacionado con la
+ world wide web (WWW).
+ </longdescription>
+ <longdescription lang="ja">
+ www-miscカテゴリーには多種多様なワールド・ワイド・ウェブの
+ ソフトウェアが含まれています。
+ </longdescription>
+ <longdescription lang="nl">
+ De www-misc categorie bevat verschillende programma's voor het WWW zoals
+ htdig en squidanalyser.
+ </longdescription>
+ <longdescription lang="vi">
+ Nhóm www-misc chứa các phần mềm www khác nhau.
+ </longdescription>
+ <longdescription lang="it">
+ La categoria www-misc contiene software per il world wide web (WWW).
+ </longdescription>
+ <longdescription lang="pt">
+ A categoria www-misc contém vários programas de world wide web
+ (WWW) mistos.
+ </longdescription>
+ <longdescription lang="pl">
+ Kategoria www-misc zawiera dodatkowe oprogramowanie związane z WWW.
+ </longdescription>
+</catmetadata>
+
diff --git a/www-misc/monitorix/Manifest b/www-misc/monitorix/Manifest
new file mode 100644
index 000000000000..df1472d33521
--- /dev/null
+++ b/www-misc/monitorix/Manifest
@@ -0,0 +1,10 @@
+AUX monitorix.init 659 SHA256 8f31271226287690523f1fe3757e0fb8d0525630b3b22035616746818a7b921b SHA512 a33a62d698ae799d444bb8cc30b452ff78541fd7d721428e82943fb6cb898d84aa276b75fa069aa010ae712dcdba587ccd4ca6a211c87e36bb7674bc716f4fb8 WHIRLPOOL e217cb511b0bfd5b32f71107f75f0250c53183c13170759aaebf4ddbf89726ec64ec8dd83a023c8e5a2e0c3b14909b2751a3cf3d4a5fb569c4c4dc9186d2bc09
+DIST monitorix-3.5.1.tar.gz 218548 SHA256 8cbd749153f48e17a253791c2079912e50b499026de0083e5f25b87a782f3004 SHA512 cf64f89e147f3ddf31d48e593d5a5f09be827fd9a104c5cc28b1146e491507476d4f86bf249fda24ce92d7e37a3699dd94501d441c3767d12dfbabe4d782c37c WHIRLPOOL 2b894222f4defd5396c9c82554caeaccdcb64dd387dd78a0f2beabf896c6fedbf4571b2f2822786b2dc4165946588f72b5d4e1f6f5d2f4acde17beddd57ceab7
+DIST monitorix-3.8.1.tar.gz 270985 SHA256 84bdf73d9ce409527bfd62a9b774d58641723d2498ed0b325c61a7f3816bb028 SHA512 d07f6b2fc69efffd3fccd76db7ca94640d68fd016979b41fd19f1aa5951c0da7dd5513fe82482c020d4b60ab5187e3c7b704cca80331bd826d050f2ac8538b02 WHIRLPOOL a035e64a103c189b3138173436ff6ca76882c59e74433d60cb83519c035b3e43fb8bbb795b780697e3a15d6a42a9900e36baacc08248cfdd914b85f3957e7f30
+DIST monitorix-3.9.0.tar.gz 288443 SHA256 e29243bf6bb4fad02f1b302b64977e8eca081b1a6f4a073b5ff48a8b3369d5cf SHA512 599f3fa004c2e9657f255ca0ef0ae69ca63623976d17ebf8883a8c19b8a76193916634844f794da508439336edc37e424263aa6ccd8e06bb3584b6cf3cda783b WHIRLPOOL c1dc94590d1200701212610d0fa5c58b8252dac8fc697b3bb54c923e5ff1decea7f5050b88a006d95ab0bcb24842004b2f668b59bc091b704fc16afb0d0d38ac
+EBUILD monitorix-3.5.1.ebuild 2446 SHA256 423b24cb0158a4c18eb52f173f3f5b14ff2b00d3fe0b75b7821268d31d68820a SHA512 1465b39ed3cadd34d347bf6297b53de7f71598144b7bbde4e688f6023e011beebfceb7c5156b34abe4ba66751ea743875faca45c8ae3bd3f9c44e36c29b6923e WHIRLPOOL a2efb1258ede337d820dea23f8d95a42b753ff42a2e824076eed0190137102382f7d170cdcd8b9c0583407fd4a66075f35cfcb7bc3e4dccd42c4ac451ceaa3ed
+EBUILD monitorix-3.8.1-r1.ebuild 2614 SHA256 e72137a66390e1c581d7661e3b05312f927f588c72fed866a38847837aba6665 SHA512 0b5681b3328bd6802bf8439409dfa02a14dd299b16d49440a75f5f9b927823548d6b6f8d46df971eb9c56a9cd696bddfd54da5fd09b80e9ec7c42b6881b63808 WHIRLPOOL 34393b640c087ad25d5efa147291cb8176867c62f4d01f0d8362df6968bbf0e9d83f9ca12a975a1ad8ab48fe38d7a7161e7f5d62aac57175852f99e08da1859b
+EBUILD monitorix-3.9.0.ebuild 2654 SHA256 32f227228bce63cc3b6bf927e24963f2046ca1051ba99e28a1e2790e6dde78f6 SHA512 c43839a7b5d16f45cdf0fadcab14c223cfe1e052bcfb73750257e471df7352a8ac79a64f9f9ad1a8562d2b1d31a13c4ffa37f597b18120698a6219b52b5055d8 WHIRLPOOL b9caea5e452200a858b434ed30bceb941eb57ad9d039c6246d630a462226ca07da9054d4038771700295ba89fa49eb2456ad1491572775595c03790e58751336
+MISC ChangeLog 5937 SHA256 ad1b366a7e1b426f989e925f1fa1cdf6826f6044ff6305ffc3973f95031bd4c2 SHA512 a846476a0e12c2cfc21c549a03f892d28d8c2b08ae15c4a076ebec83e4de8ccc81dac5a628751d37b8ec56e6b641db5a13271444689e3b91841de86f57120079 WHIRLPOOL cc16ce2bc8cb11d9104b6e284ef771b11e48bb92257f5709bf7ecf02432d02e7326051bc2ac028193509d306f5e9002c15e3c057424430357d66f9044093b07a
+MISC ChangeLog-2015 2223 SHA256 f33067e734fde8310144ba1a3cae7fb316f721c7ed1651aac9bcac1bf44530fd SHA512 2b87c2e00a77712ebc397e7811133c89038ebe39ecf4be1d9abbb81f9fa18aea0707be88c7a92feee65f1a1e79ef9b52abbda5379f8b30cd79e2aaf59ae90970 WHIRLPOOL 595ddd29c0a93001862709e7ee7b179939bb55d96be7c7000b049c9dfd93b4b44be810c98b4d8e13e457d2072085cb91d6697459003a3b6fe1b0ca4f27cfad55
+MISC metadata.xml 939 SHA256 b34c90daeb0a4680a31b675a45a778d2b56a6150dd3803e110fecef70630c5c9 SHA512 5eafd36d6bde14a568564b8d1cf7affa34c8d1a6a6a24832bbfe3cf889e1915a75c09fce24704a144aa9f87c1f89b06e7158195dd679e8491d06d2a21489e633 WHIRLPOOL e5e0d6ae174c46259bb6c1850cf16a523fce741c16cae2e7f4ec9bba88db6c54d3d57e765c3a32328ef2a083ce428ea5c06bdc33fa6dabacb7efe2af7d21df85
diff --git a/www-misc/monitorix/files/monitorix.init b/www-misc/monitorix/files/monitorix.init
new file mode 100644
index 000000000000..a614bd0bd4a1
--- /dev/null
+++ b/www-misc/monitorix/files/monitorix.init
@@ -0,0 +1,24 @@
+#!/sbin/openrc-run
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting monitorix"
+ start-stop-daemon --start --exec /usr/sbin/monitorix --pidfile /var/run/monitorix.pid -- -c /etc/monitorix/monitorix.conf -p /var/run/monitorix.pid
+ local i=0
+ local timeout=5
+ while [ ! -f /var/run/monitorix.pid ] && [ $i -le $timeout ]; do
+ sleep 1
+ i=$(($i + 1))
+ done
+ [ $timeout -gt $i ]
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping monitorix"
+ start-stop-daemon --stop --signal QUIT --stop --exec /usr/sbin/monitorix --pidfile /var/run/monitorix.pid
+ eend $?
+}
diff --git a/www-misc/monitorix/metadata.xml b/www-misc/monitorix/metadata.xml
new file mode 100644
index 000000000000..2de5de79c871
--- /dev/null
+++ b/www-misc/monitorix/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>silmano@gmail.com</email>
+ <name>Pedro Arizmendi</name>
+ <description>Proxied maintainer; set to assignee in all bugs</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Gentoo Proxy Maintainers Project</name>
+ </maintainer>
+ <longdescription>A lightweight system monitoring tool</longdescription>
+ <use>
+ <flag name="apcupsd">Make use of a daemon that controls APC UPSes with <pkg>sys-power/apcupsd</pkg>.</flag>
+ <flag name="httpd">Enables the CGI webserver with any package that satisfies <pkg>virtual/httpd-cgi</pkg>.</flag>
+ <flag name="postfix">Analyze postfix logs with <pkg>net-mail/pflogsumm</pkg>.</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">mikaku/Monitorix</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/www-misc/monitorix/monitorix-3.5.1.ebuild b/www-misc/monitorix/monitorix-3.5.1.ebuild
new file mode 100644
index 000000000000..9f78f1643553
--- /dev/null
+++ b/www-misc/monitorix/monitorix-3.5.1.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils systemd user
+
+DESCRIPTION="A lightweight system monitoring tool"
+HOMEPAGE="http://www.monitorix.org/"
+SRC_URI="http://www.${PN}.org/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="apcupsd hddtemp httpd lm_sensors postfix"
+
+DEPEND="sys-apps/sed"
+RDEPEND="dev-perl/Config-General
+ dev-perl/DBI
+ dev-perl/HTTP-Server-Simple
+ dev-perl/IO-Socket-SSL
+ dev-perl/libwww-perl
+ dev-perl/MIME-Lite
+ dev-perl/XML-Simple
+ net-analyzer/rrdtool[graph,perl]
+ dev-perl/CGI
+ apcupsd? ( sys-power/apcupsd )
+ hddtemp? ( app-admin/hddtemp )
+ httpd? ( virtual/httpd-cgi )
+ lm_sensors? ( sys-apps/lm_sensors )
+ postfix? ( net-mail/pflogsumm dev-perl/MailTools )"
+
+pkg_setup() {
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
+}
+
+src_prepare() {
+ # Put better Gentoo defaults in the configuration file.
+ sed -i "s|\(base_dir.*\)/usr/share/${PN}|\1/usr/share/${PN}/htdocs|" ${PN}.conf
+ sed -i "s|\(secure_log.*\)/var/log/secure|\1/var/log/auth.log|" ${PN}.conf
+ sed -i "s|nobody|${PN}|g" ${PN}.conf
+}
+
+src_install() {
+ dosbin ${PN}
+
+ newinitd "${FILESDIR}"/${PN}.init ${PN}
+
+ insinto /etc/monitorix
+ doins ${PN}.conf
+
+ dodir /etc/${PN}/conf.d
+
+ insinto /etc/logrotate.d
+ newins docs/${PN}.logrotate ${PN}
+
+ dodoc Changes README{,.nginx} docs/${PN}.service docs/${PN}-{alert.sh,apache.conf,lighttpd.conf}
+ doman man/man5/${PN}.conf.5
+ doman man/man8/${PN}.8
+
+ insinto /var/lib/${PN}/www
+ doins logo_bot.png logo_top.png ${PN}ico.png
+
+ dodir /var/lib/${PN}/imgs
+ dosym /var/lib/${PN}/imgs /var/lib/${PN}/www/imgs
+
+ exeinto /var/lib/${PN}/www/cgi
+ doexe ${PN}.cgi
+
+ dodir /usr/lib/${PN}
+ exeinto /usr/lib/${PN}
+ doexe lib/*.pm
+
+ dodir /var/lib/${PN}/usage
+ insinto /var/lib/${PN}/reports
+ doins -r reports/*
+
+ systemd_dounit docs/${PN}.service
+}
+
+pkg_postinst() {
+ chown monitorix:monitorix /var/lib/${PN}/imgs
+
+ elog "WARNING: ${PN} has changed its config format twice, in versions"
+ elog "3.0.0 and 3.4.0; this format may be incompatible with your existing"
+ elog "config file. Please take care if upgrading from an old version."
+ elog ""
+
+ elog "${PN} includes its own web server as of version 3.0.0."
+ elog "For this reason, the dependency on the webapp framework"
+ elog "has been removed. If you wish to use your own web server,"
+ elog "the ${PN} web data can be found at:"
+ elog "/var/lib/${PN}/www/"
+}
diff --git a/www-misc/monitorix/monitorix-3.8.1-r1.ebuild b/www-misc/monitorix/monitorix-3.8.1-r1.ebuild
new file mode 100644
index 000000000000..a65bc9ee53be
--- /dev/null
+++ b/www-misc/monitorix/monitorix-3.8.1-r1.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit systemd user
+
+DESCRIPTION="A lightweight system monitoring tool"
+HOMEPAGE="http://www.monitorix.org/"
+SRC_URI="https://github.com/mikaku/Monitorix/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="apcupsd hddtemp httpd lm_sensors postfix"
+S="${WORKDIR}/Monitorix-${PV}"
+
+RDEPEND="dev-perl/Config-General
+ dev-perl/DBI
+ dev-perl/HTTP-Server-Simple
+ dev-perl/IO-Socket-SSL
+ dev-perl/libwww-perl
+ dev-perl/MIME-Lite
+ dev-perl/XML-Simple
+ net-analyzer/rrdtool[graph,perl]
+ dev-perl/CGI
+ apcupsd? ( sys-power/apcupsd )
+ hddtemp? ( app-admin/hddtemp )
+ httpd? ( virtual/httpd-cgi )
+ lm_sensors? ( sys-apps/lm_sensors )
+ postfix? ( net-mail/pflogsumm dev-perl/MailTools )"
+
+pkg_setup() {
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
+}
+
+src_prepare() {
+ # Put better Gentoo defaults in the configuration file.
+ sed -e "s|\(base_dir.*\)/usr/share/${PN}|\1/usr/share/${PN}/htdocs|" \
+ -e "s|\(secure_log.*\)/var/log/secure|\1/var/log/auth.log|" \
+ -e "s|nobody|${PN}|g" -i ${PN}.conf || die
+}
+
+# Override compile phase
+src_compile() { :; }
+
+src_install() {
+ dosbin ${PN}
+
+ newinitd "${FILESDIR}"/${PN}.init ${PN}
+
+ insinto /etc/monitorix
+ doins ${PN}.conf
+
+ dodir /etc/${PN}/conf.d
+
+ insinto /etc/logrotate.d
+ newins docs/${PN}.logrotate ${PN}
+
+ dodoc Changes README{,.nginx} docs/${PN}-{alert.sh,apache.conf,lighttpd.conf}
+ doman man/man5/${PN}.conf.5
+ doman man/man8/${PN}.8
+
+ insinto /var/lib/${PN}/www
+ doins logo_bot.png logo_top.png ${PN}ico.png
+
+ dodir /var/lib/${PN}/www/imgs
+ fowners monitorix:monitorix /var/lib/${PN}/www/imgs
+
+ exeinto /var/lib/${PN}/www/cgi
+ doexe ${PN}.cgi
+
+ dodir /usr/lib/${PN}
+ exeinto /usr/lib/${PN}
+ doexe lib/*.pm
+
+ dodir /var/lib/${PN}/usage
+ insinto /var/lib/${PN}/reports
+ doins -r reports/*
+
+ systemd_dounit docs/${PN}.service
+}
+
+pkg_postinst() {
+ elog "WARNING: ${PN} has changed its config format twice, in versions"
+ elog "3.0.0 and 3.4.0; this format may be incompatible with your existing"
+ elog "config file. Please take care if upgrading from an old version."
+ elog ""
+
+ elog "${PN} includes its own web server as of version 3.0.0."
+ elog "For this reason, the dependency on the webapp framework"
+ elog "has been removed. If you wish to use your own web server,"
+ elog "the ${PN} web data can be found at:"
+ elog "/var/lib/${PN}/www/"
+
+ elog ""
+ elog "If you are not using monitorix built-in web server, please set"
+ elog "the correct user and group ownership of /var/lib/${PN}/www/imgs/"
+}
diff --git a/www-misc/monitorix/monitorix-3.9.0.ebuild b/www-misc/monitorix/monitorix-3.9.0.ebuild
new file mode 100644
index 000000000000..77ea0f1d00ef
--- /dev/null
+++ b/www-misc/monitorix/monitorix-3.9.0.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit systemd user
+
+DESCRIPTION="A lightweight system monitoring tool"
+HOMEPAGE="http://www.monitorix.org/"
+SRC_URI="https://github.com/mikaku/Monitorix/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="apcupsd hddtemp httpd lm_sensors postfix"
+S="${WORKDIR}/Monitorix-${PV}"
+
+RDEPEND="dev-perl/Config-General
+ dev-perl/DBI
+ dev-perl/HTTP-Server-Simple
+ dev-perl/IO-Socket-SSL
+ dev-perl/libwww-perl
+ dev-perl/MIME-Lite
+ dev-perl/XML-Simple
+ net-analyzer/rrdtool[graph,perl]
+ dev-perl/CGI
+ apcupsd? ( sys-power/apcupsd )
+ hddtemp? ( app-admin/hddtemp )
+ httpd? ( virtual/httpd-cgi )
+ lm_sensors? ( sys-apps/lm_sensors )
+ postfix? ( net-mail/pflogsumm dev-perl/MailTools )"
+
+pkg_setup() {
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
+}
+
+src_prepare() {
+ # Put better Gentoo defaults in the configuration file.
+ sed -e "s|\(base_dir.*\)/usr/share/${PN}|\1/usr/share/${PN}/htdocs|" \
+ -e "s|\(secure_log.*\)/var/log/secure|\1/var/log/auth.log|" \
+ -e "s|nobody|${PN}|g" -i ${PN}.conf || die
+ eapply_user
+}
+
+# Override compile phase
+src_compile() { :; }
+
+src_install() {
+ dosbin ${PN}
+
+ newinitd "${FILESDIR}"/${PN}.init ${PN}
+
+ insinto /etc/monitorix
+ doins ${PN}.conf
+
+ keepdir /etc/${PN}/conf.d
+
+ insinto /etc/logrotate.d
+ newins docs/${PN}.logrotate ${PN}
+
+ dodoc Changes README{,.nginx} docs/${PN}-{alert.sh,apache.conf,lighttpd.conf}
+ doman man/man5/${PN}.conf.5
+ doman man/man8/${PN}.8
+
+ insinto /var/lib/${PN}/www
+ doins logo_bot.png logo_top.png ${PN}ico.png
+
+ keepdir /var/lib/${PN}/www/imgs
+ fowners monitorix:monitorix /var/lib/${PN}/www/imgs
+
+ exeinto /var/lib/${PN}/www/cgi
+ doexe ${PN}.cgi
+
+ dodir /usr/lib/${PN}
+ exeinto /usr/lib/${PN}
+ doexe lib/*.pm
+
+ keepdir /var/lib/${PN}/usage
+ insinto /var/lib/${PN}/reports
+ doins -r reports/*
+
+ systemd_dounit docs/${PN}.service
+}
+
+pkg_postinst() {
+ elog "WARNING: ${PN} has changed its config format twice, in versions"
+ elog "3.0.0 and 3.4.0; this format may be incompatible with your existing"
+ elog "config file. Please take care if upgrading from an old version."
+ elog ""
+
+ elog "${PN} includes its own web server as of version 3.0.0."
+ elog "For this reason, the dependency on the webapp framework"
+ elog "has been removed. If you wish to use your own web server,"
+ elog "the ${PN} web data can be found at:"
+ elog "${EROOT%/}/var/lib/${PN}/www/"
+
+ elog ""
+ elog "If you are not using monitorix built-in web server, please set"
+ elog "the correct user and group ownership of ${EROOT%/}/var/lib/${PN}/www/imgs/"
+}
diff --git a/www-misc/multisort/Manifest b/www-misc/multisort/Manifest
new file mode 100644
index 000000000000..c6fd0abb43a2
--- /dev/null
+++ b/www-misc/multisort/Manifest
@@ -0,0 +1,5 @@
+DIST multisort-1.1.tar.gz 3520 SHA256 50cc0e84738f1c9b4b587e4d13564c233be20c693fd2154f2e8a293f3d5bc17d SHA512 346be785a223814086536bfc8aacb11122ca91cf6cb63c8bbe2ae70f323bd36812f25575114c1422c431f658328bbb7fc75b839e74b7f37c12c4a3f179e05e1b WHIRLPOOL 81be8d7acf6f3810e8e4c07ce2b7d889952d35b5a049a9ced0cfbb998269520277741ca1cb1aea3c7d08ce6d6f21945a6a92aceca5a0ac7e6934a06fe9e0bae9
+EBUILD multisort-1.1-r1.ebuild 601 SHA256 9dfd1c32f631b708a7e545cf699b9198561486f0c100ecf794418b2d933dc561 SHA512 161769135f8db803012ea97a1758e95dea391f05354440fffcb9cab9d83c0cbdc2528c1e101ccd8aa53b768fe1c694f2954dc1ac77cbe08eba55b0e00e6284fc WHIRLPOOL d079d3e294396aeaac947e3f67364f9b187d0b035b090e7ec503991f7076699fd4eec20a751dc33c65156841aa89cb616dee6fa4d052846c0f2eff9cb77cf4d5
+MISC ChangeLog 2530 SHA256 4fd17beeae896f9c21ed29c1a7675e228f16d376176c9616e67eb5645530fed5 SHA512 c29b77fdb648fbfee419825159c1983c4a1b8ccaccf74958ebc7415fcc26394bae50442590a87a0a3dcbeb76b65b72a4091fa13217fdee5a167dd1458a6dde3b WHIRLPOOL ab7b4c4cd3a53c190362b8ef39945286109763f4af6903d10e996d56317604ce75bb14968757a8a86c6b27828ac2c054433adbba2a2ac249b7b23757d5972f7d
+MISC ChangeLog-2015 844 SHA256 fed38db4a81ba685408f5567a4b62877c1a4f5d323578417d854da6999d3c1d1 SHA512 72c724f15baee74a00cc81565032768a646445811b397cd7fbc8ddfe89bf1fc9a348f74dbe900d4f2dc124e9fb57a2129e8cd3b79933b1a281bb715bbf3c9b5b WHIRLPOOL 120c9fa0da9c3ea842513c506402a69beeae0cd9cf974964900e392e82a11e169e30c9cbca27b9dcb0f2479547f5287443d7797d3672345428c343cd30d3aa8f
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/www-misc/multisort/metadata.xml b/www-misc/multisort/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/www-misc/multisort/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/www-misc/multisort/multisort-1.1-r1.ebuild b/www-misc/multisort/multisort-1.1-r1.ebuild
new file mode 100644
index 000000000000..b64e30c6c887
--- /dev/null
+++ b/www-misc/multisort/multisort-1.1-r1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit toolchain-funcs
+
+DESCRIPTION="Merges httpd logfiles in the Common Log Format"
+HOMEPAGE="http://www.xach.com/multisort/"
+SRC_URI="http://www.xach.com/${PN}/${PN}-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+
+src_prepare() {
+ # respect LDFLAGS wrt bug #337359
+ sed -i -e 's/$(CFLAGS)/& \$(LDFLAGS)/' Makefile || die 'sed on Makefile failed'
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
+}
+
+src_install() {
+ dosbin multisort
+}
diff --git a/www-misc/nx_util/Manifest b/www-misc/nx_util/Manifest
new file mode 100644
index 000000000000..10b234bd7a47
--- /dev/null
+++ b/www-misc/nx_util/Manifest
@@ -0,0 +1,8 @@
+AUX 0.52.1-fix-install-paths.patch 1931 SHA256 e37f1418e8f5cc2cfe078b57e3f23450cdd3783afb4b86dd53587f4169c73846 SHA512 151c71732de120f3ff982097de084f2096e1592f8317a87c95b8cc4af66b7705f25f120b6ba972f0e296c9fa5528b5450bcb7f6b6fa67a33e149be3223964dca WHIRLPOOL 428bbc228c445ae22bd48c21e1cb5de59474ceeee6c6e1d6e65d54066f6b9d7bac4b1d119e7cd882ec38ea2280c33f23b14f9a6ca149ffd75f7b26ecba7b85e8
+DIST ngx_http_naxsi-0.52-1.tar.gz 162044 SHA256 0f23b0f17f03591775e95294a115d609ad47e2874e5f01c4fed1ebb680ea07bc SHA512 e1d3b4b3284d5b3f44ec5888023e6853c06519f99f3de768d8420d50a8bd50ae4d77c2413e441caa5dedc420f28ab3413d79fe56fc9aee8636a9b20adea7be74 WHIRLPOOL b42c4dc99c2a0b670b4e06ee9b5a0eb1b38b96f670c04c56fa30f13b8d3263836b54ff641dc1effd0e461f0fb3e0b935f945c2467b27c83f80b8407a3b42f739
+DIST ngx_http_naxsi-0.53-1.tar.gz 165627 SHA256 cde175f940cd2e8c595b95512642cd3f8ae6f3c4a2ee10c2fda214ffeb808274 SHA512 33e3a92242304f4e5900cb66915651f1c5ba78f40b27f41c1d81353390ef6baef5a6a03042441c200d4e489e70f251d782efe0644b916a2ff34833be8a8fd385 WHIRLPOOL 67c5cb73cc04381bf874222f9aa20d8ec063f074d139b8fa882bc9a84526f5d192f066b621a429086f93b1a55ea235e98623dfcb69952451dd870bcf316bd928
+EBUILD nx_util-0.52.1.ebuild 937 SHA256 5505df8d8ffacab6c3c3b9c8263102781306b95a9336060524971069911e5387 SHA512 c1813fb0456476a16d77e51a63d7e41554f365d8059dd3b8a0d15ed30e7fa09294389f1d972de3b6fb5544d161f97b161e0cdcd2ee8926c5858fa88dd0d8f718 WHIRLPOOL 49537011accf16958b9e619eaea2ac3a589810d409860ec981e80295cf3e257b73b21f990c57783874ab9b1924d4ff1f16093af83ce60ce3e0970d023a2b8166
+EBUILD nx_util-0.53.1.ebuild 938 SHA256 572c45d242276ca847adf1bf44b286b364597ce442347f45ac45419b5fd81d71 SHA512 aab6d59065cf4b914ac60c5b7740b083b56e45cd9061e080b3372e20c2f2762808c34f7d9788c0331557e21934d8b528d0e595d1f303e86541ee4e0780498651 WHIRLPOOL eef1710197c8db1f380658bfd3c9a809c6d913308748bac396f4752952604fd0f2d16370cc1ecb8d764b875b0a0301995445bc8560376110d4fa220a0f739132
+MISC ChangeLog 2309 SHA256 c5b5ee5f905277b185b7f36cfa1719d8fe33a7ef7cf693f50a31858b324d311e SHA512 29a926c77b5eba8e9933dc3f78f7150683516df5ac12dc3854b2036428e4efac74e0951ccf970bd1ecbcf120d773a17c8467179a4ebf8586a0fc6e97f08b425f WHIRLPOOL 121f93ad26dedd34fcbafd6993291be7e5f0ebd548b9d8770465378cdd931146ef7778171ff9212f1e7d966f7d86d16af1634afaa5ee2587327728ad948c0ef6
+MISC ChangeLog-2015 971 SHA256 26797c136da3b387ce07fad0c78ab4325bb7a7d811e2f7a87d27704a4e5547d7 SHA512 da75de2676f71e16e3404fc1b18e796e96481042369038409308c5ac87f94caddd992f66ac2505ac44dbb6e7cc41cc9010be669870127b9e78e5480097caf8dc WHIRLPOOL 719737e25aee94c7c140188abdfdf9016533ab34a79fcb28211c3c1a08bb51c4a419f8ef50ac8ff605a7e48d998de89c8533e1684738200b732b0cec84798445
+MISC metadata.xml 381 SHA256 a238d571535ddcfcae6fc8440721010383128174e49ba1200c820568ff6e5dbf SHA512 9da7d67a3663f7ab3bc28cfa880d60a8ad70706a106dc00d181146b099e550f1c66940113c9c26f52b0639e7013407eafd9ee58d53f41a55f1330eb203d345f5 WHIRLPOOL 45def46f434d1490001e2a155c44bfb15e13660200b4026d5f084b7d6db20d89c5e35f5e40f5d313de62fc002bb06edee01257e40c8c265b8cb929b57e4eebb2
diff --git a/www-misc/nx_util/files/0.52.1-fix-install-paths.patch b/www-misc/nx_util/files/0.52.1-fix-install-paths.patch
new file mode 100644
index 000000000000..1a2752e3b20b
--- /dev/null
+++ b/www-misc/nx_util/files/0.52.1-fix-install-paths.patch
@@ -0,0 +1,49 @@
+diff --git a/nx_util/nx_util.conf b/nx_util/nx_util.conf
+index cd2a591..818daaf 100644
+--- a/nx_util/nx_util.conf
++++ b/nx_util/nx_util.conf
+@@ -1,4 +1,4 @@
+ [nx_util]
+-data_dir=/usr/local/nx_datas
++data_dir=/usr/share/nx_datas
+ database_dir=
+ naxsi_core_rules=/etc/nginx/naxsi_core.rules
+diff --git a/nx_util/nx_util.py b/nx_util/nx_util.py
+old mode 100644
+new mode 100755
+index 0509b51..38be37e
+--- a/nx_util/nx_util.py
++++ b/nx_util/nx_util.py
+@@ -62,8 +62,8 @@ if __name__ == "__main__":
+
+ # Configuration
+ parser.add_option("-c", "--config", dest="conf_path",
+- help="Path to configuration (defaults to /usr/local/etc/nx_util.conf)",
+- type="string", default="/usr/local/etc/nx_util.conf")
++ help="Path to configuration (defaults to /etc/nx_util.conf)",
++ type="string", default="/etc/nx_util.conf")
+
+ # Filtering options should go here :)
+ parser.add_option("-f", "--filters", dest="usr_filter",
+diff --git a/nx_util/setup.py b/nx_util/setup.py
+index cc48a5c..b855459 100644
+--- a/nx_util/setup.py
++++ b/nx_util/setup.py
+@@ -8,14 +8,14 @@ setup(name='nx_util',
+ author='Naxsi Dev Team',
+ author_email='thibault.koechlin@nbs-system.com',
+ url='naxsi.googlecode.com',
+- scripts=['nx_util.py'],
++ scripts=['nx_util'],
+ packages=['nx_lib'],
+- data_files=[('nx_datas', ['nx_datas/bootstrap.min.css',
++ data_files=[('/usr/share/nx_datas', ['nx_datas/bootstrap.min.css',
+ 'nx_datas/bootstrap-responsive.min.css',
+ 'nx_datas/highcharts.js',
+ 'nx_datas/map.tpl',
+ 'nx_datas/bootstrap.min.js',
+ 'nx_datas/country2coords.txt']),
+ ('/usr/share/man/man1', ['nx_util.1.gz']),
+- ('/usr/local/etc/', ['nx_util.conf'])]
++ ('/etc/', ['nx_util.conf'])]
+ )
diff --git a/www-misc/nx_util/metadata.xml b/www-misc/nx_util/metadata.xml
new file mode 100644
index 000000000000..ac4aa6c210b4
--- /dev/null
+++ b/www-misc/nx_util/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>dev-zero@gentoo.org</email>
+ <name>Tiziano Müller</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="google-code">naxsi</remote-id>
+ <remote-id type="github">nbs-system/naxsi</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/www-misc/nx_util/nx_util-0.52.1.ebuild b/www-misc/nx_util/nx_util-0.52.1.ebuild
new file mode 100644
index 000000000000..0a83e644c16f
--- /dev/null
+++ b/www-misc/nx_util/nx_util-0.52.1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="sqlite"
+DISTUTILS_SINGLE_IMPL=true
+
+inherit distutils-r1 versionator
+
+MY_PV="$(replace_version_separator 2 '-')"
+
+DESCRIPTION="Whitelist & Reports generation for Naxsi (Web Application Firewall module for Nginx)"
+HOMEPAGE="https://github.com/nbs-system/naxsi"
+# keep the name in sync with what's in the nginx ebuild to avoid duplication
+SRC_URI="https://github.com/nbs-system/naxsi/archive/${MY_PV}.tar.gz -> ngx_http_naxsi-${MY_PV}.tar.gz"
+
+LICENSE="GPL-2+ Apache-2.0 CC-BY-NC-SA-3.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND=""
+RDEPEND="www-servers/nginx[nginx_modules_http_naxsi]"
+
+PATCHES=( "${FILESDIR}/${PV}-fix-install-paths.patch" )
+
+S="${WORKDIR}/naxsi-${MY_PV}/nx_util"
+
+src_prepare() {
+ distutils-r1_src_prepare
+ mv nx_util{.py,} || die "renaming script failed"
+}
diff --git a/www-misc/nx_util/nx_util-0.53.1.ebuild b/www-misc/nx_util/nx_util-0.53.1.ebuild
new file mode 100644
index 000000000000..aba910cabe96
--- /dev/null
+++ b/www-misc/nx_util/nx_util-0.53.1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="sqlite"
+DISTUTILS_SINGLE_IMPL=true
+
+inherit distutils-r1 versionator
+
+MY_PV="$(replace_version_separator 2 '-')"
+
+DESCRIPTION="Whitelist & Reports generation for Naxsi (Web Application Firewall module for Nginx)"
+HOMEPAGE="https://github.com/nbs-system/naxsi"
+# keep the name in sync with what's in the nginx ebuild to avoid duplication
+SRC_URI="https://github.com/nbs-system/naxsi/archive/${MY_PV}.tar.gz -> ngx_http_naxsi-${MY_PV}.tar.gz"
+
+LICENSE="GPL-2+ Apache-2.0 CC-BY-NC-SA-3.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND=""
+RDEPEND="www-servers/nginx[nginx_modules_http_naxsi]"
+
+PATCHES=( "${FILESDIR}/0.52.1-fix-install-paths.patch" )
+
+S="${WORKDIR}/naxsi-${MY_PV}/nx_util"
+
+src_prepare() {
+ distutils-r1_src_prepare
+ mv nx_util{.py,} || die "renaming script failed"
+}
diff --git a/www-misc/profile-sync-daemon/Manifest b/www-misc/profile-sync-daemon/Manifest
new file mode 100644
index 000000000000..08df21ba4956
--- /dev/null
+++ b/www-misc/profile-sync-daemon/Manifest
@@ -0,0 +1,8 @@
+DIST profile-sync-daemon-5.45.1.tar.gz 25543 SHA256 da4e215f053ca3f2b4cfae3f83e8a8e8370ef328aa343eea1011719a3ca9ede8 SHA512 8a61ebfe52031bd59c70416adfd477edc313641cec93a4e96c80f316517cdb53f49840cfd7711ea2f6180ecce8e8e5d45f01d7bd85ba787c3fe288a14426b944 WHIRLPOOL 07a377c71557c4e285893a2b03513cedf99b5f2c4c7805de1c297393716873d32be2d003090c59fa2a260da64cf48611d910515ffcb907cfe9637614ddfc90bd
+DIST profile-sync-daemon-6.31.tar.gz 20490 SHA256 ea57be912ab158cde18f3e4bf58996b640713a1c8b84fa56a9e4d3a34c51ac29 SHA512 7e7585e902c2428c28dc980c73ebf77ea7f2b39133a6ad0c82e714c2789811c42785ac5d403f965f1b3de8c685d7cba51810ea99206e2b7351dbd607a2cd0fdb WHIRLPOOL b14559cd27f4b4f42dc5b8549218c91a9a6157f2f7acd5bcfce01d22b56e803b68449fa3fcc30f64e7a312cd3ef0185034d072977bd22c6db64330be494d73d4
+EBUILD profile-sync-daemon-5.45.1.ebuild 797 SHA256 38bd5312ebdd30eb3336afa66b41bceedadbfb17d84557672ec1a7942ffc4a1b SHA512 3d67d5cdc991efe7fde32a962966674408d4c7645e65c9a27e152afcce230c92f4c6c6d561773dc2ae282437fdf716d80e7c851cb0cff1329508a87a7c4448e5 WHIRLPOOL 8d53caef9eed17b717b9e9b2fb3020e801e703f0fae1138f9f93cb230ddd3689ead71993c446d5788c9c4120a9c93fdf794ebc36a0814cf0b29dfff589394846
+EBUILD profile-sync-daemon-6.31.ebuild 787 SHA256 8455d847d50ac99cd521127a9561e4ccdc7a82a430f7bdcc92f7fb99a7f56985 SHA512 584197ff6492dd5cc3e7d2c9682808872a68d5880f1d9c04bef9608f74a01caecd98ec4bba933e2639f7dede29a170a3e45d950230d25612dfc83c376a12bb68 WHIRLPOOL 51f7b4f1c6eee2eceb6736826c4aff1d0674060e6179415a2bebdc927abd56aa14d5195dbbed772df2a804fa01cf0e3a6df9a97ebf393668a428589f2b618f2a
+EBUILD profile-sync-daemon-9999.ebuild 414 SHA256 45ecf48a50923cc99c35dfd671bc3b88d1ded83c76748c208ea04beee859e466 SHA512 320f2c02f049c099bac9f319e8725b98b36e597357729e95ef70be6f42ccfef17fae32a7bb55826cf46bc72056b662af7573055dae67d1c725db0d7c020d233b WHIRLPOOL 9425a408b3b0f0046c7c8ceb748073436cb1bc78df1720d0fd0139844906e7e18ee483d059b7779cf624992ad30fe347e04f4355f563e8ec9deab99799da85f7
+MISC ChangeLog 2831 SHA256 f9f14a874339656cbc68ac3572b4d67ca4e134e41572398a222df6cbfba65a81 SHA512 384bffe576033e916b8314910ecfcf2b2630a502ac1072eff35a81f3350c8159ff409f2a1d5248f0f56a6581b626da2cbbd6a9672022ef61ea64f8bcc650d2e8 WHIRLPOOL a7dd595e4ccb348396ed864c2e9f4223760e89a3b362f915f19697ed7084c779536ee4854e15d61f1390e6a6c0317a1fc1c99f5e004896f8859f2fc1b203a967
+MISC ChangeLog-2015 4075 SHA256 2419bafc405be62d94e311c01436efcfc95198878a45cb02bca7a9f81cb6f6fd SHA512 3c302d64c5833eb2cc3ddd3c513d45fcd21de799aa5b31d71c1e1c8fbed755c8f25f52d5c443ebc2252b77b6e3c75eca5b6c11664d7d3f9d4df40ca114b7d0c4 WHIRLPOOL 39112990cabc70698dacbb69d982705f4a0b3e02c3758a8bb84b7e6b875805a5de657d06ae4cbac62b9e2561e4c3b152cdccd932978b5a429bebb6dc76fe61f2
+MISC metadata.xml 260 SHA256 f1dedb8e1a0734d92ccf32d976cee1b952b9ba3388f5e8d2e6337029cdc0b692 SHA512 a5a602103d5329cac407769e8b94240601f1905c81ce7cd1de78f19a304eb97e05f17d838acdd983304306405d0ccaaebf574cd1549cfc2e35b2345629b60087 WHIRLPOOL d328fa362a0a0d5e3e2fac3b190c7b13ddd9f7edbaac953b37679443a37a871b8161dfec09993da05607e304aedd6fa42503c83b0cd776cc1fb2c99a7b7261c8
diff --git a/www-misc/profile-sync-daemon/metadata.xml b/www-misc/profile-sync-daemon/metadata.xml
new file mode 100644
index 000000000000..9fad3221afac
--- /dev/null
+++ b/www-misc/profile-sync-daemon/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <upstream>
+ <remote-id type="github">graysky2/profile-sync-daemon</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/www-misc/profile-sync-daemon/profile-sync-daemon-5.45.1.ebuild b/www-misc/profile-sync-daemon/profile-sync-daemon-5.45.1.ebuild
new file mode 100644
index 000000000000..85871cee8021
--- /dev/null
+++ b/www-misc/profile-sync-daemon/profile-sync-daemon-5.45.1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Symlinks and syncs browser profile dirs to RAM."
+HOMEPAGE="https://wiki.archlinux.org/index.php/Profile-sync-daemon"
+SRC_URI="https://github.com/graysky2/profile-sync-daemon/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2 GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="systemd"
+
+RDEPEND="
+ app-shells/bash
+ net-misc/rsync
+ systemd? ( sys-apps/systemd )"
+
+src_install() {
+ emake -j1 DESTDIR="${ED}" \
+ install-openrc-all \
+ $(usex systemd "install-systemd" "")
+
+ fperms -x /etc/cron.hourly/psd-update
+}
+
+pkg_postinst() {
+ elog "The cronjob is -x by default."
+ elog "You might want to set it +x if you don't use"
+ elog "the systemd provided \"psd-resync.timer\"."
+}
diff --git a/www-misc/profile-sync-daemon/profile-sync-daemon-6.31.ebuild b/www-misc/profile-sync-daemon/profile-sync-daemon-6.31.ebuild
new file mode 100644
index 000000000000..ac608d23f44e
--- /dev/null
+++ b/www-misc/profile-sync-daemon/profile-sync-daemon-6.31.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit versionator
+
+DESCRIPTION="Symlinks and syncs browser profile dirs to RAM."
+HOMEPAGE="https://wiki.archlinux.org/index.php/Profile-sync-daemon"
+
+SRC_URI="https://github.com/graysky2/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+KEYWORDS="~amd64 ~x86"
+
+LICENSE="MIT"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ app-shells/bash
+ net-misc/rsync[xattr]
+ sys-apps/systemd"
+
+pkg_postinst() {
+ local replacing
+ for replacing in ${REPLACING_VERSIONS}; do
+ if [[ "$(get_major_version ${replacing})" == "5" ]]; then
+ ewarn "${PN}-6 and later dropped OpenRC and /etc/psd.conf support"
+ ewarn "See https://github.com/graysky2/profile-sync-daemon#note-for-version-6"
+ break
+ fi
+ done
+}
diff --git a/www-misc/profile-sync-daemon/profile-sync-daemon-9999.ebuild b/www-misc/profile-sync-daemon/profile-sync-daemon-9999.ebuild
new file mode 100644
index 000000000000..e710ff290224
--- /dev/null
+++ b/www-misc/profile-sync-daemon/profile-sync-daemon-9999.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit git-r3
+
+DESCRIPTION="Symlinks and syncs browser profile dirs to RAM."
+HOMEPAGE="https://wiki.archlinux.org/index.php/Profile-sync-daemon"
+EGIT_REPO_URI="https://github.com/graysky2/${PN}"
+
+LICENSE="MIT"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ app-shells/bash
+ net-misc/rsync[xattr]
+ sys-apps/systemd"
diff --git a/www-misc/shellinabox/Manifest b/www-misc/shellinabox/Manifest
new file mode 100644
index 000000000000..1056e3e3675d
--- /dev/null
+++ b/www-misc/shellinabox/Manifest
@@ -0,0 +1,7 @@
+AUX shellinaboxd.conf 3564 SHA256 0a06231c8238acc3a721209f20cf84d58e639cad12e208eb998abf9d72ea0725 SHA512 62c29e61a9fb332660806210533d30cdbd473f7c8acba9d1bb7d1960013920962f23b4af5e98b0ccc8a05a6ebfb6907f77b2c26ef3f8d5dee8fb23d2d074681a WHIRLPOOL 5c4a2355771c03e64c817e9a00d5530f9b86baeb9a8b7091394763f4d6582d91508aad00f18fd4f3f6614dc143aecd9643423c59c22bb7165515165e6a2a3122
+AUX shellinaboxd.init 1673 SHA256 57a53d1d230c5caca8d2ff3ed73b3577ca55d097b3de8c8b65660045e6517433 SHA512 7fc79a4a7633c452277ebcfb871ce34f4f3350beae863ad0cf5540ca12c9c8f33367cedddd8777eb1ea75d3ef7816935ef176d8eefac700b3e2917d11bfd280b WHIRLPOOL 51112ae9805ffbee4cf9946c8583bd2e9876182abc47ee6160137a810ad1de2bc9f75e1fb01d3e89d0b7708aa50b139f20d57c22ba84c5d969cd05f0471df46a
+AUX shellinaboxd.service 420 SHA256 7e438a7a7f3e1dfbc0471962bb63c2863eef8843a496d21dd794d3d1796e0e80 SHA512 cdb22177b92794c7cda2e10c461f1f31ed165ede156c682fec5b682afbd48f8c9c564420950f3d39f9943cbfbfdb864869a96a2dae60f2bbe1bd36bd61282aa5 WHIRLPOOL 669d2f9514a1bf14328411515b4ca5f06e3f2cdbc67ef23635cba0e2fd2fb055fe9f70fceb4c4496a84534771cf714208a32688a0a46f8a174fda50f999b5052
+DIST shellinabox-2.20.zip 792359 SHA256 2b79ed66e5d20a8a46f68d88ba3a74d5302ffe7e5eb048a46b92b268351419f4 SHA512 0537b6400cb7f4880c76cce270e5eefd6f536eae7e27b5f7b12de0465a1e354f7980bb2f67230237eda1f7945afb1d3bb18013106bf7c3a02e7974532f0d9190 WHIRLPOOL a41f1d4010b6fd5386a8e37d6106d774a4600ac43e4baa3efc7a3b3d0f4c22214f13c5eb3d821a7b169731115ea17c9c0f5a6ad762c9791658a5ad98983f1356
+EBUILD shellinabox-2.20-r1.ebuild 2696 SHA256 1863a6e421d8dc674a4468a3f7d6ed89af0af311c52971796582e1da1ced4c4f SHA512 470af184e4e1a98d2515e80025a57ba850609c52ad77d41130605d2c1d4be2b329353e93dc29f3437de0bb78d7a89a82375d071b176ed76e5c242f6a25d0b302 WHIRLPOOL 8d3f528ebca1823e8800dcaf38239bc35664508bd6c4e3abbb2209eb7e7351e32f8c51be3e21d1c3f2fe0ea5e20ca87ee463ff664c02f8ab0b9c16eca7880c79
+MISC ChangeLog 3587 SHA256 e51bb8a3bda5143dd180869792f11303a2099f0ffc6e85a9500b75290f4044f8 SHA512 82f81dcea1188fd26dd854aaaa523a1a71229fb9422cf33f570b68817dbd43dcb5eb737f6a40b9d0104c12eed46b2aa24ea3dab070408be68e0b6fe5d6d6d13d WHIRLPOOL 847fd9ee402edbac2f92f11fa96eff04c96c6ba0a6afaf1cc389bd812e66209865194aa490336bcdae0d3cd80cc03eb36c6621af93f02c569704cfd80af0476d
+MISC metadata.xml 526 SHA256 ee92fa40008e4ee6e0622388809ce0603570836dc5d1768f6d7efd9af213de5f SHA512 c9986b020184cb4393a1934b30dc2fce77ef6e926bd3f1f2f474adc201ae8302fe759c2b64e2775506b3ec0a097f10891490c39b9928359f31886d7818c8b64d WHIRLPOOL caffcb57ab2675edba3e839a665a3a294bb87436dd97ac15b7002aa0d87f536360d810ce087a7efc92788329812b0b702a8c089ce5d73af28fe54f8a50362be4
diff --git a/www-misc/shellinabox/files/shellinaboxd.conf b/www-misc/shellinabox/files/shellinaboxd.conf
new file mode 100644
index 000000000000..3c34ab08f5e9
--- /dev/null
+++ b/www-misc/shellinabox/files/shellinaboxd.conf
@@ -0,0 +1,74 @@
+# conf.d file for shellinaboxd
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Options available (copied from the man page):
+#
+# Sometimes, it is not necessary to replace the entire style sheet using the
+# --static-file option. But instead a small incremental change should be made to
+# the visual appearance of the terminal. The --css option provides a means to
+# append additional style rules to the end of the default styles.css sheet. More
+# than one --css option can be given on the same command line.
+#
+# You shouldn't need to change this value
+# unless you want to load your own style sheets.
+SIAB_CSS_DIR="/usr/share/shellinabox-resources"
+
+# If built with SSL/TLS support enabled, the daemon will look in SIAB_CERT_DIR for any
+# certificates. If unspecified, this defaults to the current working directory.
+#
+# If the browser negotiated a Server Name Identification the daemon will look for
+# a matching certificate-SERVERNAME.pem file. This allows for virtual hosting
+# of multiple server names on the same IP address and port.
+#
+# If no SNI handshake took place, it falls back on using the certificate in the
+# certificate.pem file.
+#
+# The administrator should make sure that there are matching certificates for
+# each of the virtual hosts on this server, and that there is a generic certifi‐
+# cate.pem file.
+#
+# If no suitable certificate is installed, shellinaboxd will attempt to invoke
+# /usr/bin/openssl and create a new self-signed certificate. This only
+# succeeds if, after dropping privileges, shellinaboxd has write
+# permissions for SIAB_CERT_DIR.
+#
+# Most browsers show a warning message when encountering a self-signed
+# certificate and then allow the user the option of accepting the certificate.
+# Due to this usability problem, and due to the perceived security
+# implications, the use of auto-generated self-signed certificates is intended
+# for testing or in intranet deployments, only.
+#
+SIAB_CERT_DIR="/etc/shellinabox/cert"
+
+# By default, shellinaboxd redirectes all incoming HTTP requests to their
+# equivalent HTTPS URLs. If promoting of connections to encrypted SSL/TLS
+# sessions is undesired, this behavior can be disabled.
+#
+# This option is also useful during testing or for deployment in trusted
+# intranets, if SSL certificates are unavailable.
+#
+# SIAB_DISABLE_SSL and SIAB_CERT_DIR are mutually exclusive options.
+#
+# Add this option to SIAB_OPTS if you don't want SSL support.
+SIAB_DISABLE_SSL="--disable-ssl"
+
+# Default port to listen on.
+SIAB_HTTP_PORT="4200"
+
+# Run shellinabox as this user.
+SIAB_USER="shellinaboxd"
+
+# Run shellinabox as this group.
+SIAB_GROUP="shellinaboxd"
+
+# Default service to launch
+SIAB_SERVICE="/:LOGIN"
+
+# Do not add both SIAB_CSS_DIR or SIAB_CERT_DIR to SIAB_OPTS.
+
+# Default setup turns off SSL.
+SIAB_OPTS="${SIAB_DISABLE_SSL} --port=${SIAB_HTTP_PORT} --user=${SIAB_USER} --group=${SIAB_GROUP} --service=${SIAB_SERVICE}"
+
+# Uncomment this line to activate SSL.
+# SIAB_OPTS="--cert=${SIAB_CERT_DIR} --port=${SIAB_HTTP_PORT} --user=${SIAB_USER} --group=${SIAB_GROUP} --service=${SIAB_SERVICE}"
diff --git a/www-misc/shellinabox/files/shellinaboxd.init b/www-misc/shellinabox/files/shellinaboxd.init
new file mode 100644
index 000000000000..657a137a5c6b
--- /dev/null
+++ b/www-misc/shellinabox/files/shellinaboxd.init
@@ -0,0 +1,63 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+my_daemon="shellinaboxd"
+pidfile="/var/run/${my_daemon}.pid"
+command="/usr/sbin/${my_daemon}"
+command_args="${SIAB_OPTS}"
+
+depend() {
+ use net
+}
+
+start_pre() {
+ function my_join() { local IFS="${1}"; shift; echo "$*"; }
+
+ if [[ -n ${SIAB_CSS_DIR} ]]; then
+ # This code searches SIAB_CSS_DIR for CSS files
+ # and formats the --user-css option accordingly.
+ local CSS_FILES=( "${SIAB_CSS_DIR}"/*.css )
+ local SIAB_CSS_FILES=()
+
+ # Try to keep environment pollution low.
+ local _CSS _BASE _NAME
+
+ for _CSS in "${CSS_FILES[@]}"; do
+ _BASE="$(basename ${_CSS})"
+ _NAME="${_BASE%%\.css}"
+ _NAME="${_NAME//-/_}"
+ _NAME="${_NAME^}"
+ # These are the default style sheets. Don't load them.
+ [[ ${_NAME} =~ ^(Print|Styles).*? ]] && continue
+ SIAB_CSS_FILES+=("\"${_NAME}\":-${_CSS}")
+ done
+
+ # The 1st one, which the default one, must be turned on using a + sign.
+ SIAB_CSS_FILES[0]=$(sed 's#:-#:+#' <<< ${SIAB_CSS_FILES[0]})
+
+ command_args="${command_args} --user-css=$(my_join , "${SIAB_CSS_FILES[@]}")"
+ fi
+
+ return 0
+}
+
+start() {
+ ebegin "Starting ${my_daemon}"
+ start-stop-daemon \
+ --start \
+ --background \
+ --pidfile ${pidfile} \
+ --make-pidfile \
+ --exec ${command} \
+ -- ${command_args}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${my_daemon}"
+ start-stop-daemon \
+ --stop \
+ --pidfile ${pidfile}
+ eend $?
+}
diff --git a/www-misc/shellinabox/files/shellinaboxd.service b/www-misc/shellinabox/files/shellinaboxd.service
new file mode 100644
index 000000000000..1915b0ca924f
--- /dev/null
+++ b/www-misc/shellinabox/files/shellinaboxd.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Shell In A Box daemon
+Documentation=man:shellinaboxd(1)
+After=network.target nss-lookup.target
+
+[Service]
+EnvironmentFile=/etc/conf.d/shellinaboxd
+WorkingDirectory=/usr/share/shellinabox-resources
+ExecStart=/usr/sbin/shellinaboxd ${SIAB_DISABLE_SSL} --port=${SIAB_HTTP_PORT} --user=${SIAB_USER} --group=${SIAB_GROUP} --service=${SIAB_SERVICE}
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target
+
diff --git a/www-misc/shellinabox/metadata.xml b/www-misc/shellinabox/metadata.xml
new file mode 100644
index 000000000000..1a5ec634fb68
--- /dev/null
+++ b/www-misc/shellinabox/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>monsieurp@gentoo.org</email>
+ <name>Patrice Clement</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>shell-tools@gentoo.org</email>
+ <name>Gentoo Shell Tools Project</name>
+ </maintainer>
+ <use>
+ <flag name="pam">Enable PAM support.</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">shellinabox/shellinabox</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/www-misc/shellinabox/shellinabox-2.20-r1.ebuild b/www-misc/shellinabox/shellinabox-2.20-r1.ebuild
new file mode 100644
index 000000000000..11203d1d18cc
--- /dev/null
+++ b/www-misc/shellinabox/shellinabox-2.20-r1.ebuild
@@ -0,0 +1,107 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF="yes"
+AUTOTOOLS_IN_SOURCE_BUILD="yes"
+
+inherit user autotools-utils systemd
+
+DESCRIPTION="Export command line tools to a web based terminal emulator"
+HOMEPAGE="https://github.com/shellinabox/shellinabox"
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.zip -> ${P}.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86"
+IUSE="+pam"
+
+DEPEND="
+ dev-libs/openssl:0=
+ pam? ( virtual/pam )"
+
+SIAB_CERT_DIR="/etc/shellinabox/cert"
+SIAB_SSL_BASH="${SIAB_CERT_DIR}/gen_ssl_cert.bash"
+SIAB_DAEMON="${PN}d"
+
+shellinbox_gen_ssl_setup() {
+ read -r -d '' SIAB_SSL_SETUP << EOF
+cd ${SIAB_CERT_DIR}
+openssl genrsa -des3 -out server.key 1024
+openssl req -new -key server.key -out server.csr
+cp server.key server.key.org
+openssl rsa -in server.key.org -out server.key
+openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
+cat server.crt server.key > certificate.pem
+EOF
+}
+
+pkg_setup() {
+ enewgroup "${SIAB_DAEMON}"
+ enewuser "${SIAB_DAEMON}" -1 -1 -1 "${SIAB_DAEMON}"
+}
+
+src_configure() {
+ local myeconf=(
+ --disable-runtime-loading
+ --enable-ssl
+ )
+
+ econf \
+ $(use_enable pam) \
+ "${myeconf[@]}"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ # make installs the binary in bin...
+ rm -rf "${D}/usr/bin" || die
+
+ # ... whereas it should put it in sbin.
+ dosbin "${SIAB_DAEMON}"
+
+ # Install init+conf files.
+ newinitd "${FILESDIR}/${SIAB_DAEMON}.init" "${SIAB_DAEMON}"
+ newconfd "${FILESDIR}/${SIAB_DAEMON}.conf" "${SIAB_DAEMON}"
+
+ # Install systemd unit files
+ systemd_dounit "${FILESDIR}"/shellinaboxd.service
+
+ # Install CSS files.
+ insinto "/usr/share/${PN}-resources"
+ doins -r "${PN}"/*.css
+
+ # Create directory where SSL certificates will be generated.
+ dodir "${SIAB_CERT_DIR}"
+ fowners "${SIAB_DAEMON}:${SIAB_DAEMON}" "${SIAB_CERT_DIR}"
+
+ # Generate set up variable.
+ shellinbox_gen_ssl_setup
+
+ # Dump it in a bash script.
+ echo "#!/usr/bin/env bash" > "${D}/${SIAB_SSL_BASH}" || die
+ echo "${SIAB_SSL_SETUP}" >> "${D}/${SIAB_SSL_BASH}" || die
+ chmod +x "${D}/${SIAB_SSL_BASH}" || die
+}
+
+pkg_postinst() {
+ ewarn
+ ewarn "The default configuration exposes a login shell"
+ ewarn "with SSL disabled on the localhost interface only."
+ ewarn
+
+ shellinbox_gen_ssl_setup
+
+ einfo
+ einfo "To generate self-signed SSL certificates"
+ einfo "please read the procedure explained here:"
+ einfo "https://code.google.com/p/shellinabox/issues/detail?id=59#c15"
+ einfo
+ einfo "${SIAB_SSL_SETUP}"
+ einfo
+ einfo "This walkthrough has been written in ${SIAB_SSL_BASH} for your convenience."
+ einfo "Make sure to execute this script."
+ einfo
+}
diff --git a/www-misc/surl/Manifest b/www-misc/surl/Manifest
new file mode 100644
index 000000000000..7707700db865
--- /dev/null
+++ b/www-misc/surl/Manifest
@@ -0,0 +1,5 @@
+DIST surl-0.7.1.1.tar.gz 23873 SHA256 17fab62195630ba6289fa1d2e07b8854ed71b176108a2a015fa2ef713a2810da SHA512 45895431d1b6a2854bf19e183f635689388c77b61823933f7d9ee6d87ff40510259018baa969a0253b2c96580aed04ef35a037608313cbf5a6bf558f10269257 WHIRLPOOL 3f79fd3d0034ff9ed11a188af6e121b8188dcef0865aae75901459d4fedf181078dbbbb9c926ec8c027b7513c692c22ea1b6fa44255130d82f67f2ab62e82c37
+EBUILD surl-0.7.1.1-r1.ebuild 409 SHA256 a50f70a9490e3dc3126c719105b556ffc992c6bc2f8392740d4b929054d7c622 SHA512 d0bc24880c7b7f245448e16a6924ff2ad4889330747df7fcecf067c6572f64b73e349ee89fba295d676c109fd62c7f903f656b87f6b9d0a21ebaafb00cea359a WHIRLPOOL 3f38dbb97c8dceee52698d0c1c644787ce2534378f836477dbd93d7f4ab77df7415008ad9014fb6e0c6403b712db1bd7d804619b9e0159718db8383aa1ea794c
+MISC ChangeLog 2602 SHA256 d0825d341a55ddc90c28f650d4ce0d2835317ffde8840ae6001dd6cf4b052177 SHA512 466c4e5e2781b786dc33e2f28faecf0739ffdcceb28f5d6422c6bd041058f22bace83823f3e7d2c2e14d9fe2a6dbc49fbe556f7f8020a2feec279541c406bfa6 WHIRLPOOL bf59ae1c29bd6a4e028fb5c39262afcad72c1699abf63313af626457529da1aa7d1f6aa709bfec2da1571480168f155e2a991b822df368ab5b31a10d11f39b97
+MISC ChangeLog-2015 848 SHA256 acbcd1b30a4917880afaf48bb23ce1e583d48d510251221dca9d73d91e1b89cd SHA512 1312f66f9162ac4ede87e2e10550cb6a515fe9dfa34b91d23db48cf77568622854fef7967e8497a710b931f1ff2d920542d36d7cb9978fbe6002f7f990febcf5 WHIRLPOOL a915ebd63a5c5388e35f49fcc8cd49a7753e83a892d1edb08502079ccb660e23550d120eb9dc672f8d5e1a81b7bf057bb15b7d976aef274a15a14be07637caa7
+MISC metadata.xml 323 SHA256 a77a4f8d45735c4b29020bed2e666a9fc53b54d492e6da9b6e73ddd8ce4d28a3 SHA512 2163bb9c26e5542a97d68bf2a58a89df900827b3693085fea28bf262f3588309d8f2106059c5725d393b7c5cadb0af1a5c0c61c0a0567fcaf19b2c1b25c7b5dd WHIRLPOOL 8f0ee583766f7c2aa4c8c6933a54d786736d4b8e9b67bbb7b5ab25a5636e84345f30f85cd4b40f9bd978890305bfc35cf809e4199c2a40e417cd5a4c6368b196
diff --git a/www-misc/surl/metadata.xml b/www-misc/surl/metadata.xml
new file mode 100644
index 000000000000..5f5327071648
--- /dev/null
+++ b/www-misc/surl/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>monsieurp@gentoo.org</email>
+ <name>Patrice Clement</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="launchpad">surl</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/www-misc/surl/surl-0.7.1.1-r1.ebuild b/www-misc/surl/surl-0.7.1.1-r1.ebuild
new file mode 100644
index 000000000000..4f04c69fb1b3
--- /dev/null
+++ b/www-misc/surl/surl-0.7.1.1-r1.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="URL shortening command line application that supports various sites"
+HOMEPAGE="https://launchpad.net/surl"
+SRC_URI="https://launchpad.net/${PN}/trunk/${PV%.*}/+download/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
diff --git a/www-misc/urlwatch/Manifest b/www-misc/urlwatch/Manifest
new file mode 100644
index 000000000000..a56de055dbe8
--- /dev/null
+++ b/www-misc/urlwatch/Manifest
@@ -0,0 +1,7 @@
+DIST urlwatch-2.5.tar.gz 25322 SHA256 6010a45dbc20d5449f214655c94977a65e1e2b8ba32f58e9045ddfdaaabf3962 SHA512 993d2596288d014a3b84ae22c29ce89282c4320dd95b339c9892db07997059fc80a96198cb89ba04d935f68d2d051da96dc981f8e8b3657492443b060d2126a1 WHIRLPOOL d8be345d19027e475825d708f9ce2c55fe4abb23e903d629aec872104a0e890f225dfe3f1c8de87541e9cbed7c62592d362e464f3014f0a7ce27000fd9a5f880
+DIST urlwatch-2.6.tar.gz 30412 SHA256 57a90a0a7a3f056bbf77c917621a124338de20e15ce356873b9abba72f57d6f4 SHA512 52d71984972c6888ade01fcc635d33a60c024424b82ac9319554f548438f8a4e2f32a8b7d3047ed86654c8ef67e3b6eac99728f9409b60cdffe7e842fd8fe16c WHIRLPOOL 29ffa3606e5ba00006b3f3767beef2804c2952453fd11db9aa3cb99515dc347f215c127df5bef38ee185e0c89ab8edd377bb4066d1b8a65b6085ec251dc436b6
+EBUILD urlwatch-2.5.ebuild 997 SHA256 eb1de11263a5e8956e48333c8360580752055afa18edcd4148e6daabf607c955 SHA512 e5171a55f7c5e9e779f8bb5b14f8060498b52adcef276fe5938316eb9a301f3a4d752be4d86fbac37e3488c172f1def2509da0fb50e1df633d15f15587ce025f WHIRLPOOL 2742d050a1beff2855b82f47ee7609d9e2501f4da8591270c1c0932857088970d7400cfc6d388af7a393a7db740a812392f7e3d29076f593bb7e171307cc35b3
+EBUILD urlwatch-2.6.ebuild 1202 SHA256 d69fe5f886d1075d28568e212184c16bade2be9c1c6c28ee118cce91bd8c815b SHA512 2fbfab0eb605525f2fed9a7f8aed7b3b75827038f3760d794daa8ac7e1f2042c2578fea1e26e4744e1ee4ddf867237c4ddca28b8cd57913b989f0ff81f1f4595 WHIRLPOOL a446c606c1e110498914e928d6bf464681a3ca77ee95540e8a39101fc4b6a9a21b520408678d9de1122b2c4c32c4195126e53bd8c373b8c1d8f7f3edcf8391b0
+MISC ChangeLog 5273 SHA256 2efdb4a5b9584aaaab9551423f4e94fc8b8b557de11cb395ca50dc7eae603c2d SHA512 ddee078d170d9a80fc6812611d4535566c0d8aca3b3d03a606833d7e75e95c0a4f83ab3c4f61a0a17649a8fcf493ccfa0b926e266a52cb6badd8893d6ff5568f WHIRLPOOL 94e8ad0c8da2c81d4cb0baf79e1c43aed2d679745ff08f9be5a85a0fb436e973a0f246716ac1d52d20dbdfd53f9232cd538542fc8f561b09a0af13cab03ef9dc
+MISC ChangeLog-2015 1645 SHA256 7d4ac1ee4bc1f25d0361454f973287daf5442e272b69c05f0c5b8d78b6b83e1e SHA512 886c353ae5e4ce353cfff27acb02e752931ca80a3721ba34966f32a21391e6ea502c1e95e86c1d2416ad8c8dec20bdb4acf531ea6d8da955c14bc9fb7a9939c0 WHIRLPOOL 2574291a86ead100c0fe5b924c82c135f29ea1899b703203a4bd7c7c3ecbf816034b8bd74c681cc48e367ea4957722beb1b620c3ee0472f658f038090b611e45
+MISC metadata.xml 434 SHA256 8c16054f5c86b7b54b1327081648cf9f1daf30fe2db2a58cd7b81bff37192c5e SHA512 e9364ac1375b0f6a86f2be3cc1bb5ace69397ec1e1fe4d737db572d56cea20d6df1abdeeea12d9c8dc2b532cbc14736d51ec35686b370098cc9ea8677506667f WHIRLPOOL 272e2b3783ebe9d114dc8135c0d783be7e2cd47f56de274500beef92ef7a644cb5765bc725a82b209d47ebae0e2cb2427b9f8fb39b903c9f51dab4d69b4cf932
diff --git a/www-misc/urlwatch/metadata.xml b/www-misc/urlwatch/metadata.xml
new file mode 100644
index 000000000000..66d70930108d
--- /dev/null
+++ b/www-misc/urlwatch/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>monsieurp@gentoo.org</email>
+ <name>Patrice Clement</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">urlwatch</remote-id>
+ <remote-id type="github">thp/urlwatch</remote-id>
+ <bugs-to>https://github.com/thp/urlwatch/issues</bugs-to>
+ </upstream>
+</pkgmetadata>
diff --git a/www-misc/urlwatch/urlwatch-2.5.ebuild b/www-misc/urlwatch/urlwatch-2.5.ebuild
new file mode 100644
index 000000000000..464d5de6a619
--- /dev/null
+++ b/www-misc/urlwatch/urlwatch-2.5.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+PYTHON_COMPAT=( python{3_4,3_5} )
+
+inherit distutils-r1
+
+DESCRIPTION="A tool for monitoring webpages for updates"
+HOMEPAGE="https://thp.io/2008/urlwatch/ https://pypi.python.org/pypi/urlwatch"
+SRC_URI="https://thp.io/2008/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="test"
+
+RDEPEND="
+ dev-python/keyring[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ dev-python/minidb[${PYTHON_USEDEP}]
+ dev-python/requests[${PYTHON_USEDEP}]
+ || ( www-client/lynx app-text/html2text )
+"
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ ${RDEPEND}
+ dev-python/nose[${PYTHON_USEDEP}]
+ )
+"
+
+python_test() {
+ nosetests test || die "tests failed with ${EPYTHON}"
+}
+
+pkg_postinst() {
+ if [[ -z "${REPLACING_VERSIONS}" ]] && \
+ ! has_version dev-python/chump; then
+ elog "Install 'dev-python/chump' to enable Pushover" \
+ "notifications support"
+ fi
+}
diff --git a/www-misc/urlwatch/urlwatch-2.6.ebuild b/www-misc/urlwatch/urlwatch-2.6.ebuild
new file mode 100644
index 000000000000..c76412f85d62
--- /dev/null
+++ b/www-misc/urlwatch/urlwatch-2.6.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python{3_4,3_5} )
+
+inherit distutils-r1
+
+DESCRIPTION="A tool for monitoring webpages for updates"
+HOMEPAGE="https://thp.io/2008/urlwatch/ https://pypi.python.org/pypi/urlwatch"
+SRC_URI="https://thp.io/2008/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND="
+ dev-python/keyring[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ dev-python/minidb[${PYTHON_USEDEP}]
+ dev-python/requests[${PYTHON_USEDEP}]
+ || ( www-client/lynx app-text/html2text )
+"
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ ${RDEPEND}
+ dev-python/nose[${PYTHON_USEDEP}]
+ dev-python/pycodestyle[${PYTHON_USEDEP}]
+ )
+"
+
+python_test() {
+ nosetests test || die "tests failed with ${EPYTHON}"
+}
+
+pkg_postinst() {
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then
+ if ! has_version dev-python/chump; then
+ elog "Install 'dev-python/chump' to enable Pushover" \
+ "notifications support"
+ fi
+ if ! has_version dev-python/pushbullet-py; then
+ elog "Install 'dev-python/pushbullet-py' to enable" \
+ "Pushbullet notifications support"
+ fi
+ fi
+}
diff --git a/www-misc/vdradmin-am/Manifest b/www-misc/vdradmin-am/Manifest
new file mode 100644
index 000000000000..e829751490ad
--- /dev/null
+++ b/www-misc/vdradmin-am/Manifest
@@ -0,0 +1,13 @@
+AUX vdradmin-3.6.6.conf 557 SHA256 4208bf776bb594e373f0fe215a285f0a4523ce65b083505f15bd501b27c7aa01 SHA512 253ad76deb8c4b5d8ca69464381a7322efa6c638bb78049db8dce3dfc44aaa9a36e37ac62d0ac945418dd4afbde573b0b11ecab3ace149c06a8ded2c4832afe6 WHIRLPOOL 31065d079f6f6367220f288e572853776d3abc3a3bf94328f3dd409c6e3b703f40a950bf7b66f1d78b26eccb0735197302798352ef8e46a01706d1f8f8b2c39c
+AUX vdradmin-3.6.6.logrotate 116 SHA256 2eb705ff7ab186d2a0287d3e91afe7d59be39f896fd9a62d875d8f13db1312af SHA512 27d730b67210adf314c53e87fb4ba7e6ab0a1461db0f8ddb517878341badcb27531eaedc8034ba2e72572bbaa8db07c61781be6063aaee7ef63043d4d5979b98 WHIRLPOOL 3c80e6c95a447ed23697b454b4176a72a4f30282d77eee0278c0b8038ce95853982d67aec16cf88f50636a51b64b66666d241bd9e01421b78d04e3adec5787c9
+AUX vdradmin-3.6.7.init 1860 SHA256 c8dc8e91cd32ed5d9bb75106f0045fb2dc75a4c5bdcc55172f2643754a51156a SHA512 73a175c7ae8f233442dedc5d2d94a81a4a63d3973c4548d508496f2d99e06eeb0683f51b8621ee8cefd5111ad2240c90d7225b96fef96b15e618b21418136731 WHIRLPOOL c91a432b738d885922aa03f0335d4487a8645209d61d8aee06267143fe31a1bfb616feca3378965f9028d72027a0a1c37c08471b5dd8cf44da7ae72c0dedad05
+AUX vdradmind.conf 92 SHA256 e1ca8d661db9b3077495b2b51e1292e3dda531d840cbce0170f1b6d0597c3b05 SHA512 d54253b0eb684dfcfa924e141b5f0975cea659f3258a519afd625e692855de45d9c863a8d9eb11d4b16597fa76eee955694350f224b443733b238071b3ad9d16 WHIRLPOOL f5362fd588a1a8c202be29a923f6454f1ed45a94ed305e1858921f372b166455fbca56e7bd2ac0da5cb1a33d99be056d52705699c713bea53af4c48830c66640
+AUX vdradmind.service 278 SHA256 7e6288d205c401e0e5facc740a7825082a84f35a8668caa51043b6224cf86d1a SHA512 e862d5a54e0f9b1b8c3604933ccea840e1256fac49f1b93cd7c6446f9aa4f6b8371fbd8d8b767574efe2420c7141e7af0cd5578733311a94377db8797de32b28 WHIRLPOOL 850b7a8b8cc4e4b4767e604de2c8ab9d3e11f45b91931f4ec51b8aea896240882baf74877975f66e38a902990e3187ff5b75b8ed2ef80147ab1da4c64ea48fb6
+DIST vdradmin-am-3.6.10.tar.bz2 606665 SHA256 a206b85f26860d0adc65bea93756445bf418db1d19e51c83b1caa3355cd496a6 SHA512 f7546f79b786ca383c0846656e74bd69dc9faf57fe5794ffd68776123497ec2a96c2f131801e3d5d19247ac36eaa896801e1ac9cd11291418abb518ba208e597 WHIRLPOOL 91286787f4693a6f5045d50661668254c66afe155866f5c8d3dfa9c2744c36b6109098914bb8f136b2b96af05465d6872310d6b8a7e6f431d2315646dbaaa495
+DIST vdradmin-am-3.6.9.tar.bz2 562006 SHA256 5f0421ca0ea2b4c7669d5332d43b04af8b0c40d2964dd152a265c18f4d7f2715 SHA512 1c84ce56da238db6ab2a2fc3d59582945440436e174b3998c21b6bcb5b99c914a195728aa24fef7de8841c3be09b6e9976497acd873e768aab5fdaacddd473d5 WHIRLPOOL 25f21395fda80a35b7e67fdcf1bdf2a789af73ba59c049d3604da8ecd4863e85c2e551334757d0ac53bfc33d128747ee570520171648be3818a406baa23b0737
+EBUILD vdradmin-am-3.6.10.ebuild 4733 SHA256 ed6cda495cb38ebd0366f6bdc750aec52a6fb3fbac26cc9bf1aef9f38febfb23 SHA512 fe8f935a54169aa261696d07e90f02958c120d610b5b11a0608f3fd6df50fb2f9d38641a28e7e5b4faa5aa604d5846d184a6d60f8b478d02cd11808be18c5b8a WHIRLPOOL 8703a71f94bdf68fc906f30d68b455ebf3bcea66dfe6e273a7d21304e2911bb42f9bf9fffa21c800409ccf5747a746c1fb00cf8a0fcb0bf0cfe14a7667420fa2
+EBUILD vdradmin-am-3.6.9-r3.ebuild 4733 SHA256 ed6cda495cb38ebd0366f6bdc750aec52a6fb3fbac26cc9bf1aef9f38febfb23 SHA512 fe8f935a54169aa261696d07e90f02958c120d610b5b11a0608f3fd6df50fb2f9d38641a28e7e5b4faa5aa604d5846d184a6d60f8b478d02cd11808be18c5b8a WHIRLPOOL 8703a71f94bdf68fc906f30d68b455ebf3bcea66dfe6e273a7d21304e2911bb42f9bf9fffa21c800409ccf5747a746c1fb00cf8a0fcb0bf0cfe14a7667420fa2
+EBUILD vdradmin-am-3.6.9.ebuild 4318 SHA256 999dd92039ad5cb4211e89b9dbca800641fd85ac99f590051694813a5507262d SHA512 f64a92d865b4647d70140bfd89faeeba2e926b0c4cc65a803c9a084ff11091166c11a51e3f4aafe511a146204d6194ccb7d950d83e365edab0585a06748da4dd WHIRLPOOL 488bf7c22476dca133f5ad797f413d1e3098f66453115c7aeb4936a127dcd27bb2f8f37bf2cb525c80e4cfff754ead571eba976cb9cef3d4d493301ba9d67c89
+MISC ChangeLog 2849 SHA256 00153254b89eda76baaa97a08d1ca22ab2cfd5421f15aebecd600acd498d03d0 SHA512 97e5d70c027fd7b1fa7d6d60b47c2310c48ca729a808608fc9d2b69d64a62ce70801e12cade3c2186b4fd4189812f472950d3bdac7ef3eab4a9e3b2064471dbe WHIRLPOOL 12432f886442ce1b779fa39bd529b2c12de591604a5498366e3b3be842aea612ce59a811cd886948f3eb97f1d13f6e3b4f40c3081e0f63c6fa48fdb94ead54af
+MISC ChangeLog-2015 12152 SHA256 495a169ee2245a7d95bc5f494750a45678a6b1749c627023577eadcad2fe35eb SHA512 150c2b13840835c6d4f1c3a522e11bc9c5d714dba8eb7825e2ebd69417e82f0e08c9097fa7c15c5fc7a0aa7695608c38cb6556ad0bd96557f0e161e35e84f079 WHIRLPOOL 415e040d395c504982bbc592c8d67f342ded2cceb59bd0db92305d5f71aada735a2f68321ac1d83ea663dbe2cb2d334b5e073fba40858d956b41ae9f50ec9562
+MISC metadata.xml 644 SHA256 cfdb718ffcf604604bea48660b7a6666e7eb3575f45dd0675681ed39b84f9e2a SHA512 a51923afa708144a4ee6ea9b5f5ee08b90c69840218979a855f5021f2ea351838206c2d2bd6f9be52a61884ce4da3990630672d85e2a077b504351ddb202422f WHIRLPOOL bafcb7e70896f369956ac31627c3b7475c97419e5869143b1986b8946a4a7bef9597e9dfcc2955e1a0085c01d0cc6cf0e6ef2eb019d034ee3cf6896e8605b955
diff --git a/www-misc/vdradmin-am/files/vdradmin-3.6.6.conf b/www-misc/vdradmin-am/files/vdradmin-3.6.6.conf
new file mode 100644
index 000000000000..fe6efecbab89
--- /dev/null
+++ b/www-misc/vdradmin-am/files/vdradmin-3.6.6.conf
@@ -0,0 +1,26 @@
+# Settings for vdradmin-am
+
+# Run vdradmin-am as this user:
+#
+# If you want vdradmin to run on a port below 1024 you
+# should nevertheless have vdradmin running as root.
+#
+VDRADMIN_USER="vdradmin"
+
+# Use ssl connection
+# Allowed values: yes no
+# SSL using will disable non SSL connections
+#SSL=no
+
+# Use the ipv6 protocol [EXPERIMENTAL]
+# Allowed values: yes no
+#IPV6=no
+
+# Enable Logging
+# Allowed values: syslog file no
+# Setting this value to file will log to /var/log/vdradmin/vdradmind.log
+#LOGGING=no
+
+# Set loglevel
+# Allowed values: 0-7
+#LOGLEVEL=4
diff --git a/www-misc/vdradmin-am/files/vdradmin-3.6.6.logrotate b/www-misc/vdradmin-am/files/vdradmin-3.6.6.logrotate
new file mode 100644
index 000000000000..a4f726c63c15
--- /dev/null
+++ b/www-misc/vdradmin-am/files/vdradmin-3.6.6.logrotate
@@ -0,0 +1,9 @@
+/var/log/vdradmin/vdradmind.log {
+ compress
+ rotate 4
+ weekly
+ delaycompress
+ copytruncate
+ missingok
+ notifempty
+}
diff --git a/www-misc/vdradmin-am/files/vdradmin-3.6.7.init b/www-misc/vdradmin-am/files/vdradmin-3.6.7.init
new file mode 100644
index 000000000000..10ffa6cd74ec
--- /dev/null
+++ b/www-misc/vdradmin-am/files/vdradmin-3.6.7.init
@@ -0,0 +1,56 @@
+#!/sbin/openrc-run
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2 or later
+
+depend() {
+ use vdr
+}
+
+start() {
+ ebegin "Starting vdradmin"
+
+ : ${VDRADMIN_USER:=vdradmin}
+
+ local dir vdradmin_opts
+
+ # Prepare directories
+ for dir in cache log run; do
+ checkpath -q -d -m 0755 -o ${VDRADMIN_USER}:vdradmin "/var/${dir}/vdradmin"
+ done
+ checkpath -q -d -m 0755 -o ${VDRADMIN_USER}:vdradmin "/etc/vdradmin" \
+ "/etc/vdradmin/certs"
+ checkpath -q -f -m 0644 -o ${VDRADMIN_USER}:vdradmin "/etc/vdradmin/vdradmind.conf" \
+ "/etc/vdradmin/certs/server-cert.pem" \
+ "/etc/vdradmin/certs/server-key.pem"
+
+ if [ "${SSL}" = "yes" ]; then vdradmin_opts="${vdradmin_opts} --ssl"; fi
+ if [ "${IPV6}" = "yes" ]; then vdradmin_opts="${vdradmin_opts} --ipv6"; fi
+ vdradmin_opts="${vdradmin_opts} --log ${LOGLEVEL:=4}"
+
+ if [ "${LOGGING}" = "syslog" ]; then
+ sed -i -e "/LOGGING/s-LOGGING.*-LOGGING = 1-" /etc/vdradmin/vdradmind.conf
+ sed -i -e "/LOGFILE/s-LOGFILE.*-LOGFILE = syslog-" /etc/vdradmin/vdradmind.conf
+ elif [ "${LOGGING}" = "file" ]; then
+ sed -i -e "/LOGGING/s-LOGGING.*-LOGGING = 1-" /etc/vdradmin/vdradmind.conf
+ sed -i -e "/LOGFILE/s-LOGFILE.*-LOGFILE = vdradmind.log-" /etc/vdradmin/vdradmind.conf
+ else
+ sed -i -e "/LOGGING/s-LOGGING.*-LOGGING = 0-" /etc/vdradmin/vdradmind.conf
+ fi
+
+ if [ -n "${RC_UNAME}" ]; then
+ # running on baselayout-2/openrc
+ start-stop-daemon --start --background --user "${VDRADMIN_USER}" \
+ --pidfile /var/run/vdradmin/vdradmind.pid \
+ --exec /usr/bin/perl /usr/bin/vdradmind -- ${vdradmin_opts}
+ else
+ start-stop-daemon --start --background --chuid "${VDRADMIN_USER}" \
+ --exec /usr/bin/vdradmind -- ${vdradmin_opts}
+ fi
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping vdradmin"
+ start-stop-daemon --stop --quiet --pidfile /var/run/vdradmin/vdradmind.pid
+ eend $?
+}
diff --git a/www-misc/vdradmin-am/files/vdradmind.conf b/www-misc/vdradmin-am/files/vdradmind.conf
new file mode 100644
index 000000000000..a5208a89b1b9
--- /dev/null
+++ b/www-misc/vdradmin-am/files/vdradmind.conf
@@ -0,0 +1,2 @@
+d /var/cache/vdradmin 0755 vdradmin vdradmin -
+d /var/log/vdradmin 0755 vdradmin vdradmin -
diff --git a/www-misc/vdradmin-am/files/vdradmind.service b/www-misc/vdradmin-am/files/vdradmind.service
new file mode 100644
index 000000000000..c7cd8752b3d6
--- /dev/null
+++ b/www-misc/vdradmin-am/files/vdradmind.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=WWW interface daemon for VDR
+Documentation=man:vdradmind(8)
+Documentation=file:///usr/share/doc/vdradmin-am/INSTALL
+
+[Service]
+ExecStart=/usr/bin/vdradmind --nofork
+User=vdradmin
+StandardOutput=syslog
+SyslogLevel=warning
+
+[Install]
+WantedBy=multi-user.target
diff --git a/www-misc/vdradmin-am/metadata.xml b/www-misc/vdradmin-am/metadata.xml
new file mode 100644
index 000000000000..3213a8bef936
--- /dev/null
+++ b/www-misc/vdradmin-am/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>vdr@gentoo.org</email>
+ <name>Gentoo VDR Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ To program and steer central service over a Browser the VDR
+ </longdescription>
+ <longdescription lang="de">
+ Zentraler Dienst um ueber einen Browser den VDR zu programmiern
+ und zu steuern.
+ </longdescription>
+ <use>
+ <flag name="vdr">
+ Support for media-video/vdr.
+ Disable this if the VDR you want to control runs at a remote machine.
+ </flag>
+ </use>
+</pkgmetadata>
diff --git a/www-misc/vdradmin-am/vdradmin-am-3.6.10.ebuild b/www-misc/vdradmin-am/vdradmin-am-3.6.10.ebuild
new file mode 100644
index 000000000000..dd8b73c217f3
--- /dev/null
+++ b/www-misc/vdradmin-am/vdradmin-am-3.6.10.ebuild
@@ -0,0 +1,177 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils ssl-cert systemd user
+
+DESCRIPTION="WWW Admin for the Video Disk Recorder"
+HOMEPAGE="http://andreas.vdr-developer.org/vdradmin-am/index.html"
+SRC_URI="http://andreas.vdr-developer.org/vdradmin-am/download/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="ipv6 ssl"
+
+DEPEND="dev-lang/perl
+ dev-perl/Template-Toolkit
+ dev-perl/libwww-perl
+ dev-perl/URI
+ dev-perl/Locale-gettext
+ virtual/perl-IO-Compress
+ ipv6? ( dev-perl/IO-Socket-INET6 )
+ ssl? ( dev-perl/IO-Socket-SSL )
+ virtual/perl-libnet
+ dev-perl/Authen-SASL
+ dev-perl/Digest-HMAC"
+RDEPEND="${DEPEND}"
+
+ETC_DIR=/etc/vdradmin
+CERTS_DIR=/etc/vdradmin/certs
+LIB_DIR=/usr/share/vdradmin
+CACHE_DIR=/var/cache/vdradmin
+VDRADMIN_USER=vdradmin
+VDRADMIN_GROUP=vdradmin
+
+create_ssl_cert() {
+ # The ssl-cert eclass is not flexible enough so do some steps manually
+ SSL_ORGANIZATION="${SSL_ORGANIZATION:-vdradmin-am}"
+ SSL_COMMONNAME="${SSL_COMMONNAME:-`hostname -f`}"
+
+ gen_cnf || return 1
+
+ gen_key 1 || return 1
+ gen_csr 1 || return 1
+ gen_crt 1 || return 1
+}
+
+pkg_setup() {
+ enewgroup ${VDRADMIN_GROUP}
+ enewuser ${VDRADMIN_USER} -1 /bin/bash ${CACHE_DIR} ${VDRADMIN_GROUP}
+}
+
+src_unpack() {
+ unpack ${A}
+ cp "${FILESDIR}"/vdradmind.service "${WORKDIR}"/vdradmind.service
+}
+
+src_prepare() {
+ sed -i vdradmind.pl \
+ -e "s-FILES_IN_SYSTEM = 0;-FILES_IN_SYSTEM = 1;-g" || die
+
+ if use ipv6; then
+ sed -e "s:/usr/bin/vdradmind:/usr/bin/vdradmind --ipv6:" \
+ -i "${WORKDIR}"/vdradmind.service
+ fi
+
+ if use ssl; then
+ sed -e "s:/usr/bin/vdradmind:/usr/bin/vdradmind --ssl:" \
+ -i "${WORKDIR}"/vdradmind.service
+ fi
+}
+
+src_install() {
+ newinitd "${FILESDIR}"/vdradmin-3.6.7.init vdradmin
+ newconfd "${FILESDIR}"/vdradmin-3.6.6.conf vdradmin
+
+ systemd_dounit "${WORKDIR}"/vdradmind.service
+ systemd_dotmpfilesd "${FILESDIR}"/vdradmind.conf
+
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/vdradmin-3.6.6.logrotate vdradmin
+
+ newbin vdradmind.pl vdradmind
+
+ insinto ${LIB_DIR}/template
+ doins -r "${S}"/template/*
+
+ insinto ${LIB_DIR}/lib/Template/Plugin
+ doins -r "${S}"/lib/Template/Plugin/JavaScript.pm
+
+ insinto /usr/share/locale/
+ doins -r "${S}"/locale/*
+
+ newman vdradmind.pl.1 vdradmind.8
+
+ dodoc CREDITS ChangeLog FAQ HISTORY INSTALL README* REQUIREMENTS
+ docinto contrib
+ dodoc "${S}"/contrib/*
+
+ diropts "-m755 -o ${VDRADMIN_USER} -g ${VDRADMIN_GROUP}"
+ keepdir ${ETC_DIR}
+ use ssl && keepdir ${CERTS_DIR}
+}
+
+pkg_preinst() {
+ install -m 0644 -o ${VDRADMIN_USER} -g ${VDRADMIN_GROUP} /dev/null \
+ "${D}"${ETC_DIR}/vdradmind.conf || die
+
+ if [[ -f "${ROOT}"${ETC_DIR}/vdradmind.conf ]]; then
+ cp "${ROOT}"${ETC_DIR}/vdradmind.conf \
+ "${D}"${ETC_DIR}/vdradmind.conf || die
+ else
+ elog
+ elog "Creating a new config-file."
+ echo
+
+ cat <<-EOF > "${D}"${ETC_DIR}/vdradmind.conf
+ VDRCONFDIR = "${ROOT%/}"/etc/vdr
+ VIDEODIR = "${ROOT%/}"/var/vdr/video
+ EPG_FILENAME = "${ROOT%/}"/var/vdr/video/epg.data
+ EPGIMAGES = "${ROOT%/}"/var/vdr/video/epgimages
+ PASSWORD = gentoo-vdr
+ USERNAME = gentoo-vdr
+ EOF
+ # Feed it with newlines
+ yes "" \
+ | "${D}"/usr/bin/vdradmind --cfgdir "${D}"${ETC_DIR} --config \
+ |sed -e 's/: /: \n/g'
+
+ [[ ${PIPESTATUS[1]} == "0" ]] \
+ || die "Failed to create initial configuration."
+
+ elog
+ elog "Created default user/password: gentoo-vdr/gentoo-vdr"
+ elog
+ elog "You can run \"emerge --config ${PN}\" if the default-values"
+ elog "do not match your installation or change them in the Setup-Menu"
+ elog "of the Web-Interface."
+ fi
+}
+
+pkg_postinst() {
+ if use ipv6; then
+ elog
+ elog "To make use of the ipv6 protocol"
+ elog "you need to enable it in ${ROOT%/}/etc/conf.d/vdradmin"
+ fi
+
+ if use ssl; then
+ elog
+ elog "To use ssl connection to your vdr"
+ elog "you need to enable it in ${ROOT%/}/etc/conf.d/vdradmin"
+
+ if [[ ! -f "${ROOT}"${CERTS_DIR}/server-cert.pem || \
+ ! -f "${ROOT}"${CERTS_DIR}/server-key.pem ]]; then
+ create_ssl_cert
+ local base=$(get_base 1)
+ install -D -m 0400 -o ${VDRADMIN_USER} -g ${VDRADMIN_GROUP} \
+ "${base}".key "${ROOT}"${CERTS_DIR}/server-key.pem || die
+ install -D -m 0444 -o ${VDRADMIN_USER} -g ${VDRADMIN_GROUP} \
+ "${base}".crt "${ROOT}"${CERTS_DIR}/server-cert.pem || die
+ fi
+ fi
+
+ elog
+ elog "To extend ${PN} you can emerge"
+ elog ">=media-plugins/vdr-epgsearch-0.9.25 to search the EPG,"
+ elog "media-plugins/vdr-streamdev for livetv streaming and/or"
+ elog "media-video/vdr with USE=\"liemikuutio/vasarajanauloja/none\" "
+ elog "(depend on your vdr version) to rename recordings"
+ elog "on the machine running the VDR you connect to with ${PN}."
+}
+
+pkg_config() {
+ "${ROOT}"/usr/bin/vdradmind -c
+}
diff --git a/www-misc/vdradmin-am/vdradmin-am-3.6.9-r3.ebuild b/www-misc/vdradmin-am/vdradmin-am-3.6.9-r3.ebuild
new file mode 100644
index 000000000000..dd8b73c217f3
--- /dev/null
+++ b/www-misc/vdradmin-am/vdradmin-am-3.6.9-r3.ebuild
@@ -0,0 +1,177 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils ssl-cert systemd user
+
+DESCRIPTION="WWW Admin for the Video Disk Recorder"
+HOMEPAGE="http://andreas.vdr-developer.org/vdradmin-am/index.html"
+SRC_URI="http://andreas.vdr-developer.org/vdradmin-am/download/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="ipv6 ssl"
+
+DEPEND="dev-lang/perl
+ dev-perl/Template-Toolkit
+ dev-perl/libwww-perl
+ dev-perl/URI
+ dev-perl/Locale-gettext
+ virtual/perl-IO-Compress
+ ipv6? ( dev-perl/IO-Socket-INET6 )
+ ssl? ( dev-perl/IO-Socket-SSL )
+ virtual/perl-libnet
+ dev-perl/Authen-SASL
+ dev-perl/Digest-HMAC"
+RDEPEND="${DEPEND}"
+
+ETC_DIR=/etc/vdradmin
+CERTS_DIR=/etc/vdradmin/certs
+LIB_DIR=/usr/share/vdradmin
+CACHE_DIR=/var/cache/vdradmin
+VDRADMIN_USER=vdradmin
+VDRADMIN_GROUP=vdradmin
+
+create_ssl_cert() {
+ # The ssl-cert eclass is not flexible enough so do some steps manually
+ SSL_ORGANIZATION="${SSL_ORGANIZATION:-vdradmin-am}"
+ SSL_COMMONNAME="${SSL_COMMONNAME:-`hostname -f`}"
+
+ gen_cnf || return 1
+
+ gen_key 1 || return 1
+ gen_csr 1 || return 1
+ gen_crt 1 || return 1
+}
+
+pkg_setup() {
+ enewgroup ${VDRADMIN_GROUP}
+ enewuser ${VDRADMIN_USER} -1 /bin/bash ${CACHE_DIR} ${VDRADMIN_GROUP}
+}
+
+src_unpack() {
+ unpack ${A}
+ cp "${FILESDIR}"/vdradmind.service "${WORKDIR}"/vdradmind.service
+}
+
+src_prepare() {
+ sed -i vdradmind.pl \
+ -e "s-FILES_IN_SYSTEM = 0;-FILES_IN_SYSTEM = 1;-g" || die
+
+ if use ipv6; then
+ sed -e "s:/usr/bin/vdradmind:/usr/bin/vdradmind --ipv6:" \
+ -i "${WORKDIR}"/vdradmind.service
+ fi
+
+ if use ssl; then
+ sed -e "s:/usr/bin/vdradmind:/usr/bin/vdradmind --ssl:" \
+ -i "${WORKDIR}"/vdradmind.service
+ fi
+}
+
+src_install() {
+ newinitd "${FILESDIR}"/vdradmin-3.6.7.init vdradmin
+ newconfd "${FILESDIR}"/vdradmin-3.6.6.conf vdradmin
+
+ systemd_dounit "${WORKDIR}"/vdradmind.service
+ systemd_dotmpfilesd "${FILESDIR}"/vdradmind.conf
+
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/vdradmin-3.6.6.logrotate vdradmin
+
+ newbin vdradmind.pl vdradmind
+
+ insinto ${LIB_DIR}/template
+ doins -r "${S}"/template/*
+
+ insinto ${LIB_DIR}/lib/Template/Plugin
+ doins -r "${S}"/lib/Template/Plugin/JavaScript.pm
+
+ insinto /usr/share/locale/
+ doins -r "${S}"/locale/*
+
+ newman vdradmind.pl.1 vdradmind.8
+
+ dodoc CREDITS ChangeLog FAQ HISTORY INSTALL README* REQUIREMENTS
+ docinto contrib
+ dodoc "${S}"/contrib/*
+
+ diropts "-m755 -o ${VDRADMIN_USER} -g ${VDRADMIN_GROUP}"
+ keepdir ${ETC_DIR}
+ use ssl && keepdir ${CERTS_DIR}
+}
+
+pkg_preinst() {
+ install -m 0644 -o ${VDRADMIN_USER} -g ${VDRADMIN_GROUP} /dev/null \
+ "${D}"${ETC_DIR}/vdradmind.conf || die
+
+ if [[ -f "${ROOT}"${ETC_DIR}/vdradmind.conf ]]; then
+ cp "${ROOT}"${ETC_DIR}/vdradmind.conf \
+ "${D}"${ETC_DIR}/vdradmind.conf || die
+ else
+ elog
+ elog "Creating a new config-file."
+ echo
+
+ cat <<-EOF > "${D}"${ETC_DIR}/vdradmind.conf
+ VDRCONFDIR = "${ROOT%/}"/etc/vdr
+ VIDEODIR = "${ROOT%/}"/var/vdr/video
+ EPG_FILENAME = "${ROOT%/}"/var/vdr/video/epg.data
+ EPGIMAGES = "${ROOT%/}"/var/vdr/video/epgimages
+ PASSWORD = gentoo-vdr
+ USERNAME = gentoo-vdr
+ EOF
+ # Feed it with newlines
+ yes "" \
+ | "${D}"/usr/bin/vdradmind --cfgdir "${D}"${ETC_DIR} --config \
+ |sed -e 's/: /: \n/g'
+
+ [[ ${PIPESTATUS[1]} == "0" ]] \
+ || die "Failed to create initial configuration."
+
+ elog
+ elog "Created default user/password: gentoo-vdr/gentoo-vdr"
+ elog
+ elog "You can run \"emerge --config ${PN}\" if the default-values"
+ elog "do not match your installation or change them in the Setup-Menu"
+ elog "of the Web-Interface."
+ fi
+}
+
+pkg_postinst() {
+ if use ipv6; then
+ elog
+ elog "To make use of the ipv6 protocol"
+ elog "you need to enable it in ${ROOT%/}/etc/conf.d/vdradmin"
+ fi
+
+ if use ssl; then
+ elog
+ elog "To use ssl connection to your vdr"
+ elog "you need to enable it in ${ROOT%/}/etc/conf.d/vdradmin"
+
+ if [[ ! -f "${ROOT}"${CERTS_DIR}/server-cert.pem || \
+ ! -f "${ROOT}"${CERTS_DIR}/server-key.pem ]]; then
+ create_ssl_cert
+ local base=$(get_base 1)
+ install -D -m 0400 -o ${VDRADMIN_USER} -g ${VDRADMIN_GROUP} \
+ "${base}".key "${ROOT}"${CERTS_DIR}/server-key.pem || die
+ install -D -m 0444 -o ${VDRADMIN_USER} -g ${VDRADMIN_GROUP} \
+ "${base}".crt "${ROOT}"${CERTS_DIR}/server-cert.pem || die
+ fi
+ fi
+
+ elog
+ elog "To extend ${PN} you can emerge"
+ elog ">=media-plugins/vdr-epgsearch-0.9.25 to search the EPG,"
+ elog "media-plugins/vdr-streamdev for livetv streaming and/or"
+ elog "media-video/vdr with USE=\"liemikuutio/vasarajanauloja/none\" "
+ elog "(depend on your vdr version) to rename recordings"
+ elog "on the machine running the VDR you connect to with ${PN}."
+}
+
+pkg_config() {
+ "${ROOT}"/usr/bin/vdradmind -c
+}
diff --git a/www-misc/vdradmin-am/vdradmin-am-3.6.9.ebuild b/www-misc/vdradmin-am/vdradmin-am-3.6.9.ebuild
new file mode 100644
index 000000000000..bc4de53ee76e
--- /dev/null
+++ b/www-misc/vdradmin-am/vdradmin-am-3.6.9.ebuild
@@ -0,0 +1,160 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils ssl-cert user
+
+DESCRIPTION="WWW Admin for the Video Disk Recorder"
+HOMEPAGE="http://andreas.vdr-developer.org/vdradmin-am/index.html"
+SRC_URI="http://andreas.vdr-developer.org/vdradmin-am/download/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="ipv6 ssl +vdr"
+
+DEPEND="dev-lang/perl
+ dev-perl/Template-Toolkit
+ dev-perl/libwww-perl
+ dev-perl/URI
+ dev-perl/Locale-gettext
+ virtual/perl-IO-Compress
+ ipv6? ( dev-perl/IO-Socket-INET6 )
+ ssl? ( dev-perl/IO-Socket-SSL )
+ vdr? ( media-video/vdr )
+ virtual/perl-libnet
+ dev-perl/Authen-SASL
+ dev-perl/Digest-HMAC"
+RDEPEND="${DEPEND}"
+
+ETC_DIR=/etc/vdradmin
+CERTS_DIR=/etc/vdradmin/certs
+LIB_DIR=/usr/share/vdradmin
+CACHE_DIR=/var/cache/vdradmin
+VDRADMIN_USER=vdradmin
+VDRADMIN_GROUP=vdradmin
+
+create_ssl_cert() {
+ # The ssl-cert eclass is not flexible enough so do some steps manually
+ SSL_ORGANIZATION="${SSL_ORGANIZATION:-vdradmin-am}"
+ SSL_COMMONNAME="${SSL_COMMONNAME:-`hostname -f`}"
+
+ gen_cnf || return 1
+
+ gen_key 1 || return 1
+ gen_csr 1 || return 1
+ gen_crt 1 || return 1
+}
+
+pkg_setup() {
+ enewgroup ${VDRADMIN_GROUP}
+ enewuser ${VDRADMIN_USER} -1 /bin/bash ${CACHE_DIR} ${VDRADMIN_GROUP}
+}
+
+src_prepare() {
+ sed -i vdradmind.pl \
+ -e "s-FILES_IN_SYSTEM = 0;-FILES_IN_SYSTEM = 1;-g" || die
+}
+
+src_install() {
+ newinitd "${FILESDIR}"/vdradmin-3.6.7.init vdradmin
+ newconfd "${FILESDIR}"/vdradmin-3.6.6.conf vdradmin
+
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/vdradmin-3.6.6.logrotate vdradmin
+
+ newbin vdradmind.pl vdradmind
+
+ insinto ${LIB_DIR}/template
+ doins -r "${S}"/template/*
+
+ insinto ${LIB_DIR}/lib/Template/Plugin
+ doins -r "${S}"/lib/Template/Plugin/JavaScript.pm
+
+ insinto /usr/share/locale/
+ doins -r "${S}"/locale/*
+
+ newman vdradmind.pl.1 vdradmind.8
+
+ dodoc CREDITS ChangeLog FAQ HISTORY INSTALL README* REQUIREMENTS
+ docinto contrib
+ dodoc "${S}"/contrib/*
+
+ diropts "-m755 -o ${VDRADMIN_USER} -g ${VDRADMIN_GROUP}"
+ keepdir ${ETC_DIR}
+ use ssl && keepdir ${CERTS_DIR}
+}
+
+pkg_preinst() {
+ install -m 0644 -o ${VDRADMIN_USER} -g ${VDRADMIN_GROUP} /dev/null \
+ "${D}"${ETC_DIR}/vdradmind.conf || die
+
+ if [[ -f "${ROOT}"${ETC_DIR}/vdradmind.conf ]]; then
+ cp "${ROOT}"${ETC_DIR}/vdradmind.conf \
+ "${D}"${ETC_DIR}/vdradmind.conf || die
+ else
+ elog
+ elog "Creating a new config-file."
+ echo
+
+ cat <<-EOF > "${D}"${ETC_DIR}/vdradmind.conf
+ VDRCONFDIR = "${ROOT%/}"/etc/vdr
+ VIDEODIR = "${ROOT%/}"/var/vdr/video
+ EPG_FILENAME = "${ROOT%/}"/var/vdr/video/epg.data
+ EPGIMAGES = "${ROOT%/}"/var/vdr/video/epgimages
+ PASSWORD = gentoo-vdr
+ USERNAME = gentoo-vdr
+ EOF
+ # Feed it with newlines
+ yes "" \
+ | "${D}"/usr/bin/vdradmind --cfgdir "${D}"${ETC_DIR} --config \
+ |sed -e 's/: /: \n/g'
+
+ [[ ${PIPESTATUS[1]} == "0" ]] \
+ || die "Failed to create initial configuration."
+
+ elog
+ elog "Created default user/password: gentoo-vdr/gentoo-vdr"
+ elog
+ elog "You can run \"emerge --config ${PN}\" if the default-values"
+ elog "do not match your installation or change them in the Setup-Menu"
+ elog "of the Web-Interface."
+ fi
+}
+
+pkg_postinst() {
+ if use ipv6; then
+ elog
+ elog "To make use of the ipv6 protocol"
+ elog "you need to enable it in ${ROOT%/}/etc/conf.d/vdradmin"
+ fi
+
+ if use ssl; then
+ elog
+ elog "To use ssl connection to your vdr"
+ elog "you need to enable it in ${ROOT%/}/etc/conf.d/vdradmin"
+
+ if [[ ! -f "${ROOT}"${CERTS_DIR}/server-cert.pem || \
+ ! -f "${ROOT}"${CERTS_DIR}/server-key.pem ]]; then
+ create_ssl_cert
+ local base=$(get_base 1)
+ install -D -m 0400 -o ${VDRADMIN_USER} -g ${VDRADMIN_GROUP} \
+ "${base}".key "${ROOT}"${CERTS_DIR}/server-key.pem || die
+ install -D -m 0444 -o ${VDRADMIN_USER} -g ${VDRADMIN_GROUP} \
+ "${base}".crt "${ROOT}"${CERTS_DIR}/server-cert.pem || die
+ fi
+ fi
+
+ elog
+ elog "To extend ${PN} you can emerge"
+ elog ">=media-plugins/vdr-epgsearch-0.9.25 to search the EPG,"
+ elog "media-plugins/vdr-streamdev for livetv streaming and/or"
+ elog "media-video/vdr with USE=\"liemikuutio/vasarajanauloja/none\" "
+ elog "(depend on your vdr version) to rename recordings"
+ elog "on the machine running the VDR you connect to with ${PN}."
+}
+
+pkg_config() {
+ "${ROOT}"/usr/bin/vdradmind -c
+}
diff --git a/www-misc/visitors/Manifest b/www-misc/visitors/Manifest
new file mode 100644
index 000000000000..14d5377f5808
--- /dev/null
+++ b/www-misc/visitors/Manifest
@@ -0,0 +1,5 @@
+DIST visitors-0.7.tar.gz 100154 SHA256 d2149e33ffe96b1f52b0587cff65973b0bc0b24ec43cdf072a782c1bd52148ab SHA512 41902a44d802b7318e0a2aec7b2947ca478cac94c97e071fefbae0ba67fe74d2985e7c27bdc64d8789d41ab46586a0478cc8f4b6ed83cb6a32139799cb328a11 WHIRLPOOL 0bbf40a4cdf0eb9b51102bed76498950469aa185ee5a558f4c3282757fe1f577cb7797bc3dcd2a9a9c255fe407f3c9120a1a84fe2fac5c6778adb72e78ce5033
+EBUILD visitors-0.7-r1.ebuild 753 SHA256 3601476744f28fd53e06f2a40d537e5cc9c8ec1a547425a838b0801f0c3f2786 SHA512 fa947597bbbeccc883fc5fbfcd98cd9b41610e60a3dd3aa9db80ab3423a38ba88461c6bb0ef90b203735b577c0d0912657d5104efee6dd6cc31d02a2326da1c0 WHIRLPOOL 18679cba3b030a6a368c2f67a86073b498aab5557be17f7220aa0642e5fb3ac05c5acb05506de606b52565e6e6ad7eeaae1ea8002db95bff68fd122b7f8a0653
+MISC ChangeLog 2527 SHA256 cc0b43e1ba2f3154aa7800f88e1ab3e6bec8d7347dabacc3234b62a2ae2f202b SHA512 0ae42712bc9d745a6592d7f3cc6f0e647b555c756c20e73940729332c24fde8f06b00fbc9ce9ed962310f84da6ae37a9b7e9a7f9ac4a1bc21a8a3fb5ab349ab9 WHIRLPOOL ee550780322e21647cf1f8d0aa69bc2d5a87ba651759b7baf2af65836f47c1ded68e32e315e240a5dcb67d06cf0017fc74425fb09510f813678133e645996fba
+MISC ChangeLog-2015 2607 SHA256 397126a9f83bc2bb661fa858cea8a8c9f89c061ab5bc802d7f77e9c23e0a5ad6 SHA512 0e976aa15708bf91eb146f13c0e0729d7ac6fa0a9de4881eb51b54e9c3973892d63cbefb22877945d3c3a3c6b16dbc1c331ba8380d81d43f1ce8e70f03ee700d WHIRLPOOL 00a928d05d8b34875a2f125743042737ddc5a240402af12a91ecd96ef2f64452c90522fb1966e162c712f6bb96af7abffba255a115da0160a95933feabc0b188
+MISC metadata.xml 415 SHA256 e42cbe0293a5859e5ecb80a2b9135511296e05bcb9a7282b2368194c940fbdee SHA512 4b99f5e8c2d9e6698e45047a373003b388a96ac11b99ada162a650b0f1172cd51ffb32341f300edce2329800a648ab818fa99057eaf809e22dce69b34b280388 WHIRLPOOL 26591332a06cf4f28ca6b81453446efd20d7d07f7e14351c80300cf12a1247fcfc3b6fa531dc3a41804cc22302ec5da00b5ebf93d6cb7754605eedf207de136a
diff --git a/www-misc/visitors/metadata.xml b/www-misc/visitors/metadata.xml
new file mode 100644
index 000000000000..ce202fcf50c5
--- /dev/null
+++ b/www-misc/visitors/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <longdescription>
+ Visitors is a very fast web log analyzer for Linux, Windows, and other
+ Unix-like operating systems. It takes as input a web server log file, and
+ outputs statistics in form of different types of reports.
+ </longdescription>
+</pkgmetadata>
diff --git a/www-misc/visitors/visitors-0.7-r1.ebuild b/www-misc/visitors/visitors-0.7-r1.ebuild
new file mode 100644
index 000000000000..470c1035fc8f
--- /dev/null
+++ b/www-misc/visitors/visitors-0.7-r1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="2"
+
+inherit toolchain-funcs
+
+DESCRIPTION="Fast web log analyzer"
+HOMEPAGE="http://www.hping.org/visitors/"
+SRC_URI="http://www.hping.org/${PN}/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+S="${WORKDIR}/${P/-/_}"
+
+src_prepare() {
+ sed -i doc.html \
+ -e 's:graph\.gif:graph.png:' \
+ || die "sed doc.html"
+ sed -i Makefile \
+ -e 's| -o | $(LDFLAGS)&|g' \
+ || die "sed Makefile"
+}
+
+src_compile() {
+ emake \
+ CC=$(tc-getCC) \
+ CFLAGS="${CFLAGS} -Wall -W" \
+ DEBUG="" \
+ || die "emake failed"
+}
+
+src_install() {
+ dobin visitors
+ dodoc AUTHORS Changelog README TODO
+ dohtml doc.html visitors.css visitors.png
+}
diff --git a/www-misc/wsmake/Manifest b/www-misc/wsmake/Manifest
new file mode 100644
index 000000000000..b997f5ff8a3f
--- /dev/null
+++ b/www-misc/wsmake/Manifest
@@ -0,0 +1,7 @@
+AUX wsmake-0.6.4-bv.diff 308 SHA256 f4db7881039ebb6e259c374b6b2d10945108bbc16a69322a3e6d5ec8f97377a9 SHA512 4ce6d02261097a2ff15f4bfe00ef46566ea8c429e8c1e0d99b0889d3f0631299462b9abd4ede2065b789ff119ecde818188d00c22e3028f96872e8a1122b0761 WHIRLPOOL 24a1a0392e7335a965951a21ef43cdf177e1b20449d17b57071e4f9680ad1915f8fa2917e3eaa7b69e533c12eb2378e25992bab5ff230c50667ea43369fe91cd
+AUX wsmake-0.6.4-gcc43.patch 771 SHA256 55c223f6213922a06f90d8cbb93f73eef229eaf10cb3647f4b5aa9f3836bafcf SHA512 452d050b3b48247444760e57aa7668018934f6d3d23a0615ea261bba3ac012c10f3fb599aee8610240a46264b7eb1e7d24b79c29a49d8d0dea2f0b57f02e5174 WHIRLPOOL d069278b0cf9880428c04b3d93d90b2083a77433acebaecec6bf4bdb6cd8ab11d99434ffb74f78cbcfc0a2599368f4466c2e258488c1b08fc571b33298279d7f
+DIST wsmake-0.6.4.tar.bz2 351688 SHA256 884ca4e635d454776888526cf94f6af6639f76b317aa10f9f6d651d9208188d6 SHA512 0f5d125053222c624f9c19f4147f0d97311acb11050e09112ae7b13175ea64d0ba75942c5772e2ffe12d2913cea370ed663d7cb649eef67e0f8379775a3459c4 WHIRLPOOL a72eae2811936ed27cbdc63fec9bbf25999dbfdc95d0cdf81e357fc5bb130b10571332520e6aae2537707c0a40d08aff6995276487eb4d0b66e70014a44db5ab
+EBUILD wsmake-0.6.4.ebuild 765 SHA256 b9c7cd7ebc91156afcfcf58568dfad7d1595f000dff5666a2efd8f123757920b SHA512 26f1f1256fe652c828929ced2fae3d83e78a25201922f05d9cfab27f2b562111b16e27f499bf1d18916d22b987351f9b15d75b1b8e43b1fff097986944dca778 WHIRLPOOL 1d5b1c9c36190658db81141244728a136f68ad7d73144d8f3df2be67fd067801d2d6ab6789ac1dfaed5fbff891a4091d182790cb98ab8b3956e3642db748e27f
+MISC ChangeLog 2583 SHA256 c645cc9735d3e5ae305406b90932683faf25e4d0a8793e9e7b894480fa8933d0 SHA512 6f513a4ba9ab77cfab64ec94bec45cb28cfaf71278262d91eb5daa8693a47a4738a35ea2e2fed567d84f34a0525b91aa9f4c1430041deda255dba37f281472c3 WHIRLPOOL b473a8d3abfe4f82154e3abfe3fd72eae0ebc3ba2c35ea1ab7d66c5a12cc8c64c8f144d903d3f7b716049fe9b03a59e8dc2449e69996032034ee5e6b2c07e8bc
+MISC ChangeLog-2015 1283 SHA256 44f947c3880e8fb4ca46d226e04acb6d9a12c0ef1103669a556134c86a3536f5 SHA512 045f73e799a732064fb29f90f2626aebe3577523fe856f3f632741fe14702943f879cea83d34e185e3dbd7aac5f556e185e246f116d80aa9b8a77cfef0be74cc WHIRLPOOL b7f95e2b20940d4024eda3bcdfbbc2808f74bdadf3e32c830a6ce019a175b66e9038ebe4c9512a856d83648c57ca31b23d6b4be5aa4d0bf574772c16bb74743f
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/www-misc/wsmake/files/wsmake-0.6.4-bv.diff b/www-misc/wsmake/files/wsmake-0.6.4-bv.diff
new file mode 100644
index 000000000000..d10aa5769c2d
--- /dev/null
+++ b/www-misc/wsmake/files/wsmake-0.6.4-bv.diff
@@ -0,0 +1,13 @@
+--- libwsmake/wsUtil.cpp.orig Sat Sep 1 22:09:13 2001
++++ libwsmake/wsUtil.cpp Tue Sep 3 20:19:04 2002
+@@ -714,7 +714,8 @@
+ if(__wsmake_quiet) return;
+
+ vfprintf(out,output,*ap);
+- va_end((void*&)*ap);
++ //BV: this does not compile: va_end((void*&)*ap);
++ va_end((char*&)*ap);
+ }
+
+ #ifdef DEBUG
+
diff --git a/www-misc/wsmake/files/wsmake-0.6.4-gcc43.patch b/www-misc/wsmake/files/wsmake-0.6.4-gcc43.patch
new file mode 100644
index 000000000000..0ecfe62003f5
--- /dev/null
+++ b/www-misc/wsmake/files/wsmake-0.6.4-gcc43.patch
@@ -0,0 +1,33 @@
+https://bugs.gentoo.org/show_bug.cgi?id=251745
+https://sourceforge.net/tracker/index.php?func=detail&aid=2520894&group_id=5982&atid=105982
+
+--- libwsmake/wsSubTag.cpp
++++ libwsmake/wsSubTag.cpp.new
+@@ -22,6 +22,7 @@
+ ***********************************************************************/
+ #include <cstdio>
+ #include <cstring>
++#include <cstdlib>
+
+ #include <unistd.h>
+ #ifdef HAVE_SYS_WAIT_H
+--- libwsmake/wsWebPage.cpp
++++ libwsmake/wsWebPage.cpp.new
+@@ -23,6 +23,7 @@
+ #include <cassert>
+ #include <cerrno>
+ #include <ctime>
++#include <cstdlib>
+
+ #include "wsmake.h"
+
+--- libwsmake/wsUtil.cpp
++++ libwsmake/wsUtil.cpp.new
+@@ -28,6 +28,7 @@
+ #include <cassert>
+ #include <cerrno>
+ #include <cstring>
++#include <cstdlib>
+
+ #ifdef HAVE_UTIME_H
+ #include <utime.h>
diff --git a/www-misc/wsmake/metadata.xml b/www-misc/wsmake/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/www-misc/wsmake/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/www-misc/wsmake/wsmake-0.6.4.ebuild b/www-misc/wsmake/wsmake-0.6.4.ebuild
new file mode 100644
index 000000000000..7299d6dc862b
--- /dev/null
+++ b/www-misc/wsmake/wsmake-0.6.4.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils
+
+DESCRIPTION="Website Pre-processor"
+HOMEPAGE="http://www.wsmake.org/"
+SRC_URI="http://ftp.wsmake.org/pub/wsmake6/stable/wsmake-0.6.4.tar.bz2"
+
+KEYWORDS="x86"
+LICENSE="GPL-2 Artistic"
+SLOT="0"
+IUSE=""
+
+src_unpack () {
+ unpack ${A} && cd "${S}"
+ epatch "${FILESDIR}"/${P}-bv.diff
+ epatch "${FILESDIR}"/${P}-gcc43.patch # 251745
+}
+
+src_compile () {
+ econf || die "econf failed"
+ emake || die "emake failed"
+ cd doc
+ tar -cf examples.tar examples || die
+}
+
+src_install () {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc AUTHORS COPYING ChangeLog* DEVELOPERS LICENSE NEWS README TODO
+ cd doc
+ dodoc manual.txt examples.tar
+}
diff --git a/www-misc/xxv/Manifest b/www-misc/xxv/Manifest
new file mode 100644
index 000000000000..a112a53864ed
--- /dev/null
+++ b/www-misc/xxv/Manifest
@@ -0,0 +1,8 @@
+AUX xxv.utf8-v5 2006 SHA256 29276ffecfe81323c9f883e3eeb900a6dd218604b5168498e4fbe909691f5ddd SHA512 049045e65f653701e4642cadce259eb73855f2a13364d89a8d0f4b08e41d1feac3096d9e339398add4587a0d6ca9be86051f7c7fa0d30b8807c0b1d2b0871a29 WHIRLPOOL 32f36c4d03643c4805f3d6551372f0b22ab647550e295ddee9701e591a5f118ec185b438d542a277a5a64b3eb1526e0a0f050745a848ff3fb9d4e83861e31317
+AUX xxvd-1.0.cfg 2257 SHA256 a49c7c402e8c9990f84e8b3ae5207559f9dd9262075b5ab0606058ff08061016 SHA512 b1507123e680b7766e07a1d45234f2769dc1bedb0a8a2eceb9162c82fb5f888c2963f9f432c6de4591da047ba48ac3ade1e2b0c67ddb7ed86d761fbb4f948646 WHIRLPOOL 9e0c81095841862686b8518fbdb394ffc19e1e7661cfa7c54bb625db234749781f2778f6f89f1ec06db040416a4103ab36c59867ecbc32a03f976eb6cdd8cd89
+AUX xxvd-logrotate 367 SHA256 bdbbd18a42a7706b096f61a132db6c6c7bd4f5403cb18da9433fc03e190d9901 SHA512 b10918d478a42f90a9f24e3b358fc8af7fd8366146a42291ea6c5bed258414d834348dd58688f260aecc69c4f76af362c881ebd5a4abef52c1244310a8751c0e WHIRLPOOL 7c261dd2d18435d8c96dedddc0a6f47cba10cb105a9206ada61d584cc5d5386b7f559f3ba99a3d4c58ea490d384a5cb2eb5299b5f00327f970827c26c6e35d38
+DIST xxv-1.6.1.tgz 992065 SHA256 14288f7fb4c16c536e0c861b4f213bc1a7bf19e036b6d37777989acaa9b82643 SHA512 e5171ea02d00d7c07d0faf5361a5261bf882d3c5a996b864593216a941c35f823b09431579341f43cf75f87dd42a1635275e8a24b393d407c83c7eb299095566 WHIRLPOOL 5cf598c7bb688ff143e74cf9f6047c3f7f05a6ddf200708d7b5f8c05cf19b917ac2a790440a850e3b131e374c2263704f2560e024c531fbcdd93851d019806c1
+EBUILD xxv-1.6.1-r1.ebuild 4665 SHA256 616bfbc4264bbecbdbebdd9f9f2fc3a06f092c899ea230ab09ef0a9121d763da SHA512 41dcf75b7ffffaab12dc49a94fdacf44ec8ca52dd16b8d122725ac1a96f4eab3bf7c2362722ad8501bf49b93397e76f1f1da5e4721a5542ae84be322cb34a5f6 WHIRLPOOL c1867362f5f6c9b7966fbc43d047e68cdafb3d7fc6f0ec2b20a84b3754286efc3d88db1449947f1229cfc47df980664e19f851544cf6614ef013fe96b3d3a4ba
+MISC ChangeLog 3214 SHA256 f2fc5a4df704d62296fd280c1c523ded6a14ab1e5e96665d7e467c736afaa55d SHA512 1e12a20b1165bd3410165eae6452b59bb9d401d461e84f2c139c407cf66e902373b6433d9ea19e9678a8c27f85a17f3873f4c689202b2511c17c543b9a48972f WHIRLPOOL 4d4664b0c8fdbf9e4c6cd64f32a09199929252e02e948776b17b24c7084dd9fb65726b36e9e2f04b49d4576cd6c9d48c9d3a3599dae2623fc2063c593f5045e7
+MISC ChangeLog-2015 6630 SHA256 70b0276c5fa7eb154d9a767b0b0cfc2d39c5aaaf4328ea4a30cf48856cf6660c SHA512 9fc73099c83a789e92c97f712d9b5642de9aad94d4703050ff4e2d46266ebb833e1be9775ebb272335d9db0f5b916960aa369a376645c3612ee846a15502e888 WHIRLPOOL 390eed6e7529628195e0e6e2e1c9ba66ff8b8d8521f0c3b37e70b7b4dac4eaf9cb8fad5354c8283570f821397bf126d694236067e39c4383b1f536ade6b026d6
+MISC metadata.xml 599 SHA256 6e0f74a1ec47af5938fb4dced9fca17a5bd4a0e2888067333d5f91457967f8ad SHA512 840993092f3f752b59ec9c2a8401c3befad44463116b6febc0692e06a8e781238f19e84a0112c15b9e96e3c4c1a75344c34697c6c8590f657f50a6deeb9e7e8c WHIRLPOOL ca8ce13222997c827c4b9e7c69f6d6f1b4d6919b88b933de98aaaccd3b3517ab41d9fd8c563d4a4299ca4ff92fea05c2be81308bb12fb7fdc1543140dc7521fd
diff --git a/www-misc/xxv/files/xxv.utf8-v5 b/www-misc/xxv/files/xxv.utf8-v5
new file mode 100644
index 000000000000..1a6880c7aacd
--- /dev/null
+++ b/www-misc/xxv/files/xxv.utf8-v5
@@ -0,0 +1,100 @@
+#!/sbin/openrc-run
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2 or later
+
+RUNAS_USER="vdr"
+
+# Set Verbose Level 0 -> 5
+VERBOSE="1"
+
+#export LANG=de_DE.utf8
+
+depend() {
+ need vdr
+}
+
+# some fixed Path
+CONFIGFILE="/etc/xxv/xxvd.cfg"
+PIDFILE="/var/run/xxv/xxvd.pid"
+XXV_BIN="/usr/bin/xxvd"
+LOGFILE="/var/log/xxv/xxvd.log"
+
+xxv_logger() {
+ printf "\tXXV running as user: ${RUNAS_USER}\n" >> "${LOGFILE}"
+ printf "\tVerbose Level: ${VERBOSE}\n" >> "${LOGFILE}"
+ printf "\tYou can change this in xxv init script\n\n" >> "${LOGFILE}"
+}
+
+check_vdradmin() {
+
+ # Check at first, is VDR-Admin running
+ # Stopping, while running on same ports
+ if [ -n "`netstat -anp | grep vdradmin | grep 8080`" ] ; then
+ echo
+ eerror "VDR-Admin will Stop at first now"
+ eerror "vdradmin and xxv can not run on the same port"
+ echo
+ /etc/init.d/vdradmin stop
+ fi
+}
+
+xxv_kill_pid() {
+
+ # After unclear stop, xxvd.pid will not removed, fixed with next line
+ if [ ! -x /etc/init.d/root ]; then
+ if [ -e ${PIDFILE} -a ! -L /var/lib/init.d/started/xxv ]; then
+ rm ${PIDFILE}
+ killall xxvd 2> /dev/null
+ fi
+ fi
+
+}
+
+xxv_kill_initfile() {
+
+ # After unclear stop, init file in /var/lib/init.d/started/ still not removed
+
+ if [ ! -x /etc/init.d/root ]; then
+ if [ -L /var/lib/init.d/started/xxv -a ! -e ${PIDFILE} ]; then
+ rm /var/lib/init.d/started/xxv
+ /etc/init.d/xxv zap
+ killall xxvd 2> /dev/null
+ fi
+ fi
+
+}
+
+start() {
+ check_vdradmin
+ xxv_logger
+
+ ebegin "Start xxv"
+ echo
+ einfo "xxv running as user: ${RUNAS_USER}"
+ einfo "Verbose Level: ${VERBOSE}"
+
+ start-stop-daemon --nicelevel 15 --pidfile ${PIDFILE} --start -u ${RUNAS_USER} --exec ${XXV_BIN} -- \
+ -configfile=${CONFIGFILE} -verbose=${VERBOSE} -pidfile=${PIDFILE}
+ eend $?
+}
+
+
+stop() {
+
+ ebegin "Stopping xxvd"
+ start-stop-daemon --stop --quiet --pidfile ${PIDFILE}
+
+ xxv_kill_pid
+ xxv_kill_initfile
+
+ eend $?
+}
+
+#restart() {
+
+# xxv_kill_pid
+# xxv_kill_initfile
+
+# svc_stop
+# svc_start
+#}
diff --git a/www-misc/xxv/files/xxvd-1.0.cfg b/www-misc/xxv/files/xxvd-1.0.cfg
new file mode 100644
index 000000000000..b18f899ba581
--- /dev/null
+++ b/www-misc/xxv/files/xxvd-1.0.cfg
@@ -0,0 +1,162 @@
+[AUTOTIMER]
+active=y
+exclude=POS > 250
+interval=300
+
+[CHANNELS]
+empty=n
+file=/etc/vdr/channels.conf
+filterCA=0,1,2,3,4
+interval=300
+stripCH=short,long;provider
+
+[EPG]
+epgfile=/var/vdr/epg.data
+epgimages=/var/vdr/video/epgimages
+interval=300
+periods=12:00,18:00,20:20,22:00,23:00,00:00,02:00,04:00
+restart=3
+timeframe=2
+
+[GRAB]
+file=/tmp/live.jpg
+font=VeraBI.ttf
+imgfontsize=12
+imgquality=90
+imgtext=[?- i = channel.split(" ") -?][[? i.shift ?]] [? i.join(" ") ?]: [? event.Title ?]
+vpos=20
+xsize=480
+ysize=360
+
+[General]
+DSN=DBI:mysql:database=xxv;host=localhost;port=3306
+Language=de_DE
+PWD=xpix97
+USR=xpix
+initscript=/etc/init.d/xxv
+
+[HTTPD]
+Clients=1000
+HtmlRoot=html
+Port=8080
+StartPage=schema
+active=y
+
+[INTERFACE]
+Clients=5
+Port=8002
+active=y
+
+[LOGREAD]
+active=y
+rows=100
+syslog=/var/log/syslog
+tail=/usr/bin/tail
+
+[MUSIC]
+active=y
+clients=5
+coverimages=/var/cache/xxv/cover
+host=192.168.0.23
+path=/var/lib/video.00/MUSIC
+port=8100
+proxy=
+
+[NEWS::JABBER]
+active=n
+level=1
+passwd=password
+receiveUser=receiveUser@jabber.org
+user=newsxxv@jabber.org
+
+[NEWS::MAIL]
+active=n
+address=xxv@example.com
+interval=6
+level=1
+smtp=smtp.googlemail.com
+spwd=password
+susr=user
+
+[NEWS::RSS]
+active=y
+level=1
+
+[NEWS::VDR]
+active=y
+level=1
+
+[RECORDS]
+commandfile=/etc/vdr/reccmds.conf
+interval=600
+previewbinary=/usr/bin/vdr2jpeg
+previewcommand=vdr2jpeg
+previewcount=3
+previewimages=/var/cache/xxv/preview
+previewlistthumbs=n
+previewlog=/var/log/xxv/xxvd_mplayer.log
+vfat=n
+videodir=/var/vdr/video
+
+[REMOTE]
+active=y
+commands=/etc/vdr/commands.conf
+
+[REPORT]
+active=y
+host=www.dyndns.org
+interval=6
+
+[ROBOT]
+active=y
+interval=3600
+
+[STATUS]
+active=y
+dfBinary=/bin/df
+font=VeraBI.ttf
+history=1
+interval=15
+wcBinary=/usr/bin/wc
+whoBinary=/usr/bin/who
+
+[STREAM]
+host=192.168.0.23
+netvideo=\\192.168.0.23\video
+
+[SVDRP]
+VdrHost=localhost
+VdrPort=2001
+
+[TELNET]
+Clients=5
+Port=8001
+active=y
+
+[TIMERS]
+DVBCards=1
+Lifetime=50
+Priority=50
+afterminutes=5
+deactive=y
+file=/etc/vdr/timers.conf
+interval=300
+prevminutes=1
+
+[USER]
+active=y
+noAuth=192.168.0.0/24, 127.0.0.1/32
+tempimages=/var/cache/xxv/temp
+withAuth=192.168.1.0/24
+
+[VTX]
+active=y
+cache=packed
+dir=/var/cache/vdr/vtx
+vtximages=./share/vtx
+
+[WAPD]
+Clients=5
+Port=8085
+WMLRoot=/usr/share/xxv-0.91_pre1126/wml
+active=y
diff --git a/www-misc/xxv/files/xxvd-logrotate b/www-misc/xxv/files/xxvd-logrotate
new file mode 100644
index 000000000000..da5bf2627a93
--- /dev/null
+++ b/www-misc/xxv/files/xxvd-logrotate
@@ -0,0 +1,26 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+/var/log/xxv/xxvd.log {
+ compress
+ daily
+ dateext
+ maxage 365
+ rotate 99
+ size=+4096k
+ notifempty
+ missingok
+ copytruncate
+}
+
+/var/log/xxv/xxvd_mplayer.log {
+ compress
+ daily
+ dateext
+ maxage 365
+ rotate 99
+ size=+4096k
+ notifempty
+ missingok
+ copytruncate
+}
diff --git a/www-misc/xxv/metadata.xml b/www-misc/xxv/metadata.xml
new file mode 100644
index 000000000000..974f0802cc90
--- /dev/null
+++ b/www-misc/xxv/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>hd_brummy@gentoo.org</email>
+ <name>Joerg Bornkessel</name>
+ </maintainer>
+ <longdescription lang="en">
+ To program and steer central service over a Browser the VDR
+ </longdescription>
+ <longdescription lang="de">
+ Zentraler Dienst um ueber einen Browser den VDR zu programmiern
+ und zu steuern.
+ </longdescription>
+ <use>
+ <flag name="themes">Enable more themes via
+ <pkg>x11-themes/xxv-skins</pkg></flag>
+ </use>
+</pkgmetadata>
diff --git a/www-misc/xxv/xxv-1.6.1-r1.ebuild b/www-misc/xxv/xxv-1.6.1-r1.ebuild
new file mode 100644
index 000000000000..201fd74841e1
--- /dev/null
+++ b/www-misc/xxv/xxv-1.6.1-r1.ebuild
@@ -0,0 +1,190 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils versionator
+
+VERSION="718" # every bump, new version
+
+DESCRIPTION="WWW Admin for the VDR (Video Disk Recorder)"
+HOMEPAGE="http://projects.vdr-developer.org/projects/xxv"
+SRC_URI="mirror://vdr-developerorg/${VERSION}/${P}.tgz
+ mirror://gentoo/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="-mplayer themes"
+
+RDEPEND=">=media-video/vdr-1.2.6
+ media-video/vdr2jpeg
+ media-fonts/corefonts
+ virtual/mysql
+ dev-perl/CGI
+ virtual/perl-Digest-MD5
+ virtual/perl-Getopt-Long
+ virtual/perl-MIME-Base64
+ virtual/perl-Time-HiRes
+ virtual/perl-IO-Compress
+ dev-perl/Config-Tiny
+ dev-perl/Date-Manip
+ dev-perl/DBD-mysql
+ dev-perl/DBI
+ dev-perl/Digest-HMAC
+ dev-perl/Encode-Detect
+ dev-perl/Event
+ dev-perl/Font-TTF
+ dev-perl/GD[png,gif]
+ dev-perl/IO-Socket-INET6
+ dev-perl/JSON
+ dev-perl/JSON-XS
+ dev-perl/Linux-Inotify2
+ dev-perl/Locale-gettext
+ dev-perl/MP3-Info
+ dev-perl/Net-Amazon
+ dev-perl/Net-Telnet
+ dev-perl/Net-XMPP
+ dev-perl/Proc-ProcessTable
+ dev-perl/SOAP-Lite
+ dev-perl/txt2html
+ dev-perl/Template-GD
+ dev-perl/Template-Toolkit
+ dev-perl/XML-RSS
+ themes? ( >=x11-themes/${PN}-skins-1.6 )"
+
+PDEPEND="mplayer? ( media-video/mplayer )"
+
+SHAREDIR="/usr/share/${PN}"
+LIBDIR="/usr/lib/${PN}"
+
+DB_VERS="32"
+
+db_update_check() {
+
+ DB_VERS_OLD="`cat /var/db/pkg/www-misc/xxv-*/xxv-*.ebuild | grep DB_VERS | head -n 1 | cut -c10-11`"
+
+ if [ "${DB_VERS_OLD}" -lt "${DB_VERS}" ]; then
+ echo
+ elog "An update of the XXV Database is necessary !!!"
+ echo
+ elog "\tcd ${SHAREDIR}/contrib"
+ echo
+ elog "\tIt is really important to edit the create-database.sql file first"
+ elog "\tdue to UTF-8 Support changes in the MySQL DB !!!"
+ echo
+ elog "\tafter this run ./update-xxv -h for more info"
+ echo
+ else
+ echo
+ elog "If this is a new install"
+ elog "You have to create an empty DB for XXV"
+ echo
+ elog "do this by:"
+ elog "cd ${SHAREDIR}/contrib"
+ eerror "read the README"
+ elog "For UTF-8 support it is really important to"
+ elog "edit create-database.sql file first and run"
+ elog "emerge --config ${PN}"
+ elog "afterwards"
+ echo
+ elog "Set your own language in"
+ elog "${SHAREDIR}/locale"
+ echo
+ elog "The default user/password is:"
+ elog "User/Password: xxv:xxv"
+ elog "You should change it immediately!"
+ echo
+ eerror "edit /etc/xxv/xxvd.cfg !"
+ fi
+}
+
+pkg_setup() {
+
+ if ! has_version "www-misc/${PN}"; then
+ echo
+ einfo "After you install xxv the very first time you should consider to read"
+ einfo "http://www.vdr-wiki.de/wiki/index.php/Xxv (German only)"
+ echo
+ fi
+
+ db_update_check
+}
+
+src_prepare() {
+
+ sed -i "${S}"/bin/xxvd \
+ -e "s:debian:Gentoo:" \
+ -e "s:/var/log/xxvd.log:/var/log/xxv/xxvd.log:" \
+ -e "s:/var/run/xxvd.pid:/var/run/xxv/xxvd.pid:" \
+ -e "s:\$RealBin/../lib:${LIBDIR}:" \
+ -e "s:\$RealBin/../locale:${SHAREDIR}/locale:" \
+ -e "s:\$RealBin/../lib/XXV/MODULES:${LIBDIR}/XXV/MODULES:" \
+ -e "s:\$RealBin/../etc/xxvd.cfg:/etc/xxv/xxvd.cfg:" \
+ -e "s:\$RealBin/../doc:/usr/share/doc/${P}:" \
+ -e "s:HTMLDIR => \"\$RealBin/../:HTMLDIR => \"${SHAREDIR}/skins:" \
+ -e "s:\$RealBin/../share/vtx:${SHAREDIR}/vtx:" \
+ -e "s:\$Real Bin/../lib/XXV/OUTPUT:${LIBDIR}/XXV/OUTPUT:" \
+ -e "s:\$RealBin/../share/news:${SHAREDIR}/news:" \
+ -e "s:\$RealBin/../contrib:${SHAREDIR}/contrib:" \
+ -e "s:\$RealBin/../share/fonts/ttf-bitstream-vera:/usr/share/fonts/corefonts:" \
+ -e "s:\$RealBin/../share/xmltv:${SHAREDIR}/xmltv:"
+
+ sed -i "s:\$RealBin/../lib:${LIBDIR}:" ./locale/xgettext.pl
+}
+
+src_install() {
+
+ newinitd "${FILESDIR}"/xxv.utf8-v5 xxv
+
+ dobin bin/xxvd
+
+ insinto /etc/"${PN}"
+ newins "${FILESDIR}"/xxvd-1.0.cfg xxvd.cfg
+ chown vdr:vdr "${D}"/etc/"${PN}"/xxvd.cfg
+
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/xxvd-logrotate xxvd
+
+ diropts -m755 -ovdr -gvdr
+ keepdir /var/cache/xxv
+ keepdir /var/run/xxv
+ keepdir /var/log/xxv
+
+ insinto "${LIBDIR}"
+ doins -r "${S}"/lib/*
+
+ insinto "${SHAREDIR}"
+ doins -r "${S}"/share/{news,xmltv}
+
+ insinto "${SHAREDIR}"/locale
+ doins -r "${S}"/locale/*
+ fperms 0755 "${SHAREDIR}"/locale/xgettext.pl
+
+ insinto "${SHAREDIR}"/contrib
+ doins -r "${S}"/contrib/*
+ fperms 0755 "${SHAREDIR}"/contrib/update-xxv
+
+ insinto "${SHAREDIR}"/skins
+ doins -r "${S}"/{html,wml}
+ doins "${S}"/doc/docu.tmpl
+
+ cd "${S}"/doc
+ insinto /usr/share/doc/"${P}"
+ doins docu.tmpl CHANGELOG README
+ fowners vdr:vdr /usr/share/doc/"${P}"
+
+ doman xxvd.1
+}
+
+pkg_config() {
+
+ cd "${ROOT}"/"${SHAREDIR}"
+ cat ./contrib/create-database.sql | mysql -u root -p
+}
+
+pkg_postrm() {
+
+ einfo "Cleanup for old "${P}" files"
+ rm -r /usr/share/doc/"${P}"
+}
diff --git a/www-misc/zoneminder/Manifest b/www-misc/zoneminder/Manifest
new file mode 100644
index 000000000000..3cb50f26c1c6
--- /dev/null
+++ b/www-misc/zoneminder/Manifest
@@ -0,0 +1,19 @@
+AUX 10_zoneminder.conf 444 SHA256 a8e3642eb6abbbbccd3dca354eef53314d10e9cba98bb886e9ac8efb1d9c6d65 SHA512 e8e13da2c6c9262fe52eb4de59c0f0b56ee51d7ef21596c36215b237f8379cb9a365afc19913b231262082b0792f8e9673626b95c3927e6e56f3d54b22ffa635 WHIRLPOOL c3f12e51e10e9c06210ffc634d79504d135cfb74b6cf19d8c89c5bbcda21c36f1b71c292ed37733d637c3250d4a88cf1ae329abd4fad198bce5a030a9ada178a
+AUX 10_zoneminder.conf-r1 370 SHA256 8157bd7d04c50d28fe801d165a322e2b648b237c27230395c95375cad5b64c99 SHA512 8e0117a2d3f7b5b2266850d5965280fec3787c8769e278c65e5d34edcdc81b1e7fe0ad34b2315f23e3dd8cdec03c4555e594e184efcac0ed2028b8f62c346b25 WHIRLPOOL d1229b06e8ff9464efb76e26c2eb9f76b701f1cb228a07385f724f5897e82f9d1032e4e3a24bb8b5327b3b66cf8bbc975e1c1bb498115d4bff02ebb485643ad0
+AUX README.gentoo 1140 SHA256 d603fabbaa5e81275c3705fb85fa47f45a64e0d7e4e3848527a0c751198d5130 SHA512 302973faebe204fcd75910b8f03eed3d13f5ff733be376849487af1e6f39e834e4d6646c0750c3b9f182fdf098560de9780518aee46e524aaecbf1d950268dd2 WHIRLPOOL 796255267bcab57999515908366f1bf3d6fd5e8e153bf7606d1783eea6b8d380512a9c2427c129185c6be990009c97171165422e6d7560b677edd31ee35a04c3
+AUX conf.d 138 SHA256 65e935cb63bf3d072b9317842944d808550ef3f933d834bb95aaacf3253bd85c SHA512 66a3447869a5c7ed613a90a81ae3b0464836a8d1804b195770dd4832e61e89f826998f58dba1ce42d7d411c543d485290e670b0bf929646ad99f48a996bc609a WHIRLPOOL 9e2326d83fd63bd1ad38485024017813ff18c73d6b173c4f38506247dbbead97f5fbcde805966f3056131cb75bac250d74f7c048ac2d7bac54e78ef66faa65c7
+AUX init.d 415 SHA256 1c934962f7b6f5dfcd038e5f6045776a178cae119f0ee3137219112dee6cdd67 SHA512 97ab5d9ddf450241513be6a778bcb346e449b3dab4d6b3d55be41dfe7bb48233a08a598f4306e2f9b35336ab14021b2a2b0e68ddef83bb121f720e11cfcd0bb5 WHIRLPOOL 9baa3f1e0a5f6d6dad622ca1e073f5433315848717b553568a18f4c04012d06bdd05f0588d10443581ad007180a657ff4d70111012c0899369f05ff17ff3d49e
+AUX zoneminder-1.26.5-automagic.patch 1064 SHA256 44b88912f3f98b7e9eddeb78890bef3dffe44c7475ebd3b7ec70354db4f0f33f SHA512 3bd257233d7b5a376418fed1285bd82aa69e83461251bd941a756acbf87189e23fe3b82c56105d12b90fd5d294ce9708dc8895440fc0f154f4590385fa42e657 WHIRLPOOL 3f495ada57e73d918784eb17bddd770898c1aa4f13294b600b5740b3d6fd5a1113a984b2c3de92cf2790ff1bba23ecd7646f36716951701fdb461bfb0e70de7c
+AUX zoneminder-1.28.1-mysql_include_path.patch 774 SHA256 6b6a7901dc4e13ee4052d8047c829cd15fab1f41eb8e9447404efeca5c05342c SHA512 98088b9578bee1343621231c4f4142d5c82a559177ba359911ff1919328ba1032f52bf820acf5a15e8d7f331187d7d62e3efd578e62b83a465b26a3c7d4d5a28 WHIRLPOOL 90c085f4882e55e1189cf3f87a0586ef5830c33fe8211047763e1319c40bfc7772ce752b89fa136b18d3ec2ad38895ae860bcd4b4c5cd6852bb42d7d25e6a2c1
+AUX zoneminder-1.30.2-diskspace.patch 709 SHA256 80540517427b3b0be9b26e0340cd052f4eeeee99f76696c424a051970343d53d SHA512 e6fee1a1c1319fe55f271abf729f06d75bcdb97abe2fab3e426b51698b79384f894d48501b1f47c274425bc09e56ad59fb780ab5e51bc8b8f31cd9c8f152392a WHIRLPOOL 44f19fb0540bbc5859c21392d7e0a8bfea263ec4c325d747636cef9b6b63131bd4acb898204c6efc92b73416d81f8363f8b71f8d3d5aa7c689d51e3e7f7c5e07
+AUX zoneminder.service 212 SHA256 4dff49a15f4a926bf0cfe7be5600cce3047c9e223fe2d300455cfdb41b18021a SHA512 3824076594e18ee89ca28e622f87bf9bd51156d0ef9d71fe8d20d69b682ecf8c96fb779cbaf33f1709aec0ec9fd1b5448b8524c781510718549282e68c095a90 WHIRLPOOL 83ad97950652136f1b4c9fbd5377f75a1dd083a726285700fb9708f640f0e968a747e4eb9ace2dfb440eaf9beeddc5696173df44cf9d96fd930a22cef882674f
+DIST Crud-3.0.10.tar.gz 72960 SHA256 462d05e21d17cc6b11cdc441971d1a7f07688512b5f7903217a574c6c39efd91 SHA512 2f60557f2c783bb448e06c1ca40b536a1d7d5f3caf0626fa6716a28f808492d4799e238f16c022571be96921105b074b6763920fd7b9cc77b76d17ceadae2040 WHIRLPOOL 6c8d78dd30e8373a2b014fe4f6d17a4e2ec1051a6dc09d8b0759c6cd76ae78cb633e2c1eaab125aa29e66903de201337da979b3e412e8861a2431588251d817b
+DIST Crud-3.1.0.tar.gz 72993 SHA256 e30a916c04ca282509c728c0b0e48fa62a3036f2d735cc9b7ea810947d81259f SHA512 7ec84afaa336b1bd582b7f39724f77081bdb3008947c4124ad96e4bc7755a03fbe31e01666d4d1939ebe17b342db37bf3766a42d88fbed0e99706807ff5b9d01 WHIRLPOOL 8be4760c112bc8f0b08bf2b5f274113ef2203c8b21da39a1aa9f85c89e30077fb5c697700b5e6e3ec02c77b302089773cdd3be0612cd75d25bca2a8326d496b5
+DIST zoneminder-1.30.0.tar.gz 9757409 SHA256 e7c964c339305f42a044ca8e34fa4e6a33c452fdaf33642458735daf8b864325 SHA512 cbff14447a568648a0475e878be5cd19cb694c65814fe33c20774752410e31f3f4ff9e5695667d4d50634b3193dc50aaca2d950efc151bbb968d3f9609d35db4 WHIRLPOOL af901055bb1ac9ae668fae23f80aff20632d6ee785e0fe5ab6f71f86fe6e1a8ca2e4dae919c1754ac84025f7bc614cc9cea7470209b2a7a35d3b27746eb9a46b
+DIST zoneminder-1.30.2.tar.gz 9931753 SHA256 499277b295bdcc2bb38b562a9061fac171236536b88b590f948f4f41ad1f7b5c SHA512 98bd6d42ecc19bcd317a30e1a9c57bd6bd295593bcc6c12e2fbe1beddfe43fb0301e042323a88969fd5f7da1dc45a1c01324878837633e5a5ed4fa54bed8690a WHIRLPOOL 98b4882dcf6fddb25bc912f22766ad1cc7c374bfb74e76ceceb8c4392d7408057460ab07e4a3d370b1fb646d10f489d81685c8a7904f43c3756ed64fd46f194f
+EBUILD zoneminder-1.30.0.ebuild 4523 SHA256 7ca2e28832dd4467138beccdaa11bfc3893e84ba67bd79b1724af2f5296c3d7e SHA512 9724891d672b12f7c216f767d882ff102940b21159612d0589b2e100a55977633a59a3f5970ca718d4ba8f536588641bd1caa410df42c0de37b0e80877d5cf8b WHIRLPOOL 0f48aad807b2efaca57a2a5dcaf435c72aa33d7c3f01938376bdc28eb43be54a316fe1ba1a9a6a8e9e04c173bfe3da1de746db2c4dd1d12cfd6e6e08468a078c
+EBUILD zoneminder-1.30.2-r1.ebuild 4576 SHA256 d435256adbccc242679dd22415a4a6a0a06c93b82612b11639d21260f8e7218a SHA512 4e7ec33807f651d3d26a6ea6fb302d0b3ec82d070f80c2931ccfdb16653c86a7d6830d9492b89a50b2452ced89c71985afb1ab6912d4b087db26ee5882e9dfb5 WHIRLPOOL 3b67f8282a4010a19cd48f1d3a1c09d76f81dc0a3fdadd987646f9a8578dabe9d0465f63f072ac0b2fcdede5d15df99c066ff1486807f247b32d7912fd8380f2
+EBUILD zoneminder-1.30.2.ebuild 4521 SHA256 ac8ec3668a7faf94a185c8c805d9b9a8a70f41eb3af777213b0efe72a9609b58 SHA512 5ae0532f791ca26688714a6d6831a8c9b6af1411a95656ec8300c67121db563e173a752cdca6e8de94b3bd6228e80434f60f799e2a2ec76d5f4875d4e308b5d0 WHIRLPOOL dafac410ea7242f1a656eb4ea1db1a007c7874b1f6fbff72018ccb26addbdb4604e31218254c9ecb78016958c9e1e35ea20fed0241528f9c67ba0c63a7671b54
+MISC ChangeLog 4064 SHA256 3b8e9508a0cdebbad7c4d67e299cd141f6fdcef1038c46d0fb451957707501ad SHA512 ccabf9b8f93c4164b28f61db8d8cf979616a1345872dcbcc8e9eb232e15b5a75951061e9fddb0a695a603dd8c66221aeb7936a3027c3c19adb181f45b70a6fb9 WHIRLPOOL fa1debad5320d689814aa90a5fdfdfecc4252e9ca8ad254ca7d9736acab2526355631c90bdf3756604999fd69e0b6f97c99d1852186d1f9ae3137a2063538cce
+MISC ChangeLog-2015 1340 SHA256 36c81f29e41d094defb8e75e6a51b6e4e3dd5fb90f14c04a392ce1cfc50bd744 SHA512 1a256e8d7701c11f6ee287ed904c38ef71cd6242d972bede05e64aaf5338a03535b1c5738e60d375e216f831dbd087dd9c609f268bd586c4dcd9996bc2cc2a32 WHIRLPOOL 803d704393f689ecc8c72a1f69e80ed2740db53045ff088f65f4451794096b4e50e1472ba8d93e40c5a883d697dc1dff03bfc8e7b56daa06e2453ee467dfad7f
+MISC metadata.xml 550 SHA256 2c432fa716659641f1add09467f937161f7f5a0d588b1f0f3a9ca76198a0d757 SHA512 4b284af6cef7a77e824517e45fabcadabb7162e37c5fb39daeff99656697b340c421949e8508483c3fb209fa1db723383e751da79ddc3b7bfbea1af1de0310b1 WHIRLPOOL 2a588801b0050ca0c14e24676045d47aaa6c2d247969ca527b933e414320bd21d5b316fbe15b0004437c649f3cf22bffd907c8e43b5c19d9eb0c6e7384a01ef5
diff --git a/www-misc/zoneminder/files/10_zoneminder.conf b/www-misc/zoneminder/files/10_zoneminder.conf
new file mode 100644
index 000000000000..277d680d24b4
--- /dev/null
+++ b/www-misc/zoneminder/files/10_zoneminder.conf
@@ -0,0 +1,18 @@
+ScriptAlias /cgi-bin/zms "/usr/libexec/zoneminder/cgi-bin/zms"
+ScriptAlias /cgi-bin/nph-zms "/usr/libexec/zoneminder/cgi-bin/nph-zms"
+
+<Directory "/usr/libexec/zoneminder/cgi-bin">
+ AllowOverride All
+ Options ExecCGI
+ Order allow,deny
+ Allow from all
+</Directory>
+
+Alias /zoneminder "%ZM_WEBDIR%"
+
+<Directory "%ZM_WEBDIR%">
+ Options -Indexes MultiViews FollowSymLinks
+ AllowOverride All
+ Order allow,deny
+ Allow from all
+</Directory>
diff --git a/www-misc/zoneminder/files/10_zoneminder.conf-r1 b/www-misc/zoneminder/files/10_zoneminder.conf-r1
new file mode 100644
index 000000000000..441c793d1890
--- /dev/null
+++ b/www-misc/zoneminder/files/10_zoneminder.conf-r1
@@ -0,0 +1,17 @@
+ScriptAlias /zm/cgi-bin/ "/usr/libexec/zoneminder/cgi-bin/"
+
+<Directory "/usr/libexec/zoneminder/cgi-bin">
+ AllowOverride All
+ Options ExecCGI
+ Order allow,deny
+ Allow from all
+</Directory>
+
+Alias /zoneminder "%ZM_WEBDIR%"
+
+<Directory "%ZM_WEBDIR%">
+ Options -Indexes MultiViews FollowSymLinks
+ AllowOverride All
+ Order allow,deny
+ Allow from all
+</Directory>
diff --git a/www-misc/zoneminder/files/README.gentoo b/www-misc/zoneminder/files/README.gentoo
new file mode 100644
index 000000000000..07995214d1cf
--- /dev/null
+++ b/www-misc/zoneminder/files/README.gentoo
@@ -0,0 +1,27 @@
+1. If this is a new installation, you will need to create a MySQL
+ database for zoneminder to use
+ (see https://wiki.gentoo.org/wiki/MySQL/Startup_Guide).
+ E.g., when logged into mysql as root,
+ mysql> CREATE DATABASE \`zm\`;
+ mysql> GRANT ALL ON zm.* TO 'zmuser'@'localhost' IDENTIFIED BY 'topsecretpassword';
+ Once you completed that you should execute the following:
+ cd /usr/share/zoneminder
+ mysql -u zmuser -p < db/zm_create.sql
+
+2. Set your database settings in /etc/zm.conf, including above topsecretpassword
+
+3. Configure apache to use zoneminder, see /usr/share/doc/zoneminder*/10_zoneminder.conf
+ for an example configuration snippet.
+
+4. Enable PHP in your webserver configuration,
+ enable short_open_tags in php.ini (likely on by default now)
+ set the time zone in php.ini,
+ and restart/reload the webserver.
+
+5. Start the zoneminder daemon:
+ /etc/init.d/zoneminder start
+
+6. Finally point your browser to http://your.webserver/zm
+
+If you are upgrading, you will need to run the zmupdate.pl script:
+ /usr/bin/zmupdate.pl --version=oldversionnumber [--user=zmuser --pass=topsecretpassword]
diff --git a/www-misc/zoneminder/files/conf.d b/www-misc/zoneminder/files/conf.d
new file mode 100644
index 000000000000..d2e03363867a
--- /dev/null
+++ b/www-misc/zoneminder/files/conf.d
@@ -0,0 +1,6 @@
+ZM_SCRIPT=/usr/bin/zmpkg.pl
+
+# Commands for starting and stopping the server
+
+CMD_START="${ZM_SCRIPT} start"
+CMD_STOP="${ZM_SCRIPT} stop"
diff --git a/www-misc/zoneminder/files/init.d b/www-misc/zoneminder/files/init.d
new file mode 100644
index 000000000000..6ee8a160155e
--- /dev/null
+++ b/www-misc/zoneminder/files/init.d
@@ -0,0 +1,25 @@
+#!/sbin/openrc-run
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need mysql
+ need apache2
+}
+
+start_pre() {
+ checkpath -d -m 0775 -o apache:apache /var/run/zm
+ checkpath -d -m 0775 -o apache:apache /var/tmp/zm
+}
+
+start() {
+ ebegin "Starting zoneminder"
+ ${CMD_START}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping zoneminder"
+ ${CMD_STOP}
+ eend $?
+}
diff --git a/www-misc/zoneminder/files/zoneminder-1.26.5-automagic.patch b/www-misc/zoneminder/files/zoneminder-1.26.5-automagic.patch
new file mode 100644
index 000000000000..266bd649baa6
--- /dev/null
+++ b/www-misc/zoneminder/files/zoneminder-1.26.5-automagic.patch
@@ -0,0 +1,34 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 83e9d81..8619c8b 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -171,6 +171,7 @@ else(PCRE_LIBRARIES)
+ set(optlibsnotfound "${optlibsnotfound} PCRE")
+ endif(PCRE_LIBRARIES)
+
++if(HAVE_GCRYPT)
+ # gcrypt (using find_library and find_path)
+ find_library(GCRYPT_LIBRARIES gcrypt)
+ if(GCRYPT_LIBRARIES)
+@@ -187,7 +188,11 @@ if(GCRYPT_LIBRARIES)
+ else(GCRYPT_LIBRARIES)
+ set(optlibsnotfound "${optlibsnotfound} GCrypt")
+ endif(GCRYPT_LIBRARIES)
++else(HAVE_GCRYPT)
++ set(optlibsnotfound "${optlibsnotfound} GCrypt")
++endif(HAVE_GCRYPT)
+
++if(HAVE_GNUTLS)
+ # gnutls (using find_library and find_path)
+ find_library(GNUTLS_LIBRARIES gnutls)
+ if(GNUTLS_LIBRARIES)
+@@ -205,6 +210,9 @@ if(GNUTLS_LIBRARIES)
+ else(GNUTLS_LIBRARIES)
+ set(optlibsnotfound "${optlibsnotfound} GnuTLS")
+ endif(GNUTLS_LIBRARIES)
++else(HAVE_GNUTLS)
++ set(optlibsnotfound "${optlibsnotfound} GnuTLS")
++endif(HAVE_GNUTLS)
+
+ # mysqlclient (using find_library and find_path)
+ find_library(MYSQLCLIENT_LIBRARIES mysqlclient PATH_SUFFIXES mysql)
diff --git a/www-misc/zoneminder/files/zoneminder-1.28.1-mysql_include_path.patch b/www-misc/zoneminder/files/zoneminder-1.28.1-mysql_include_path.patch
new file mode 100644
index 000000000000..cb645528c051
--- /dev/null
+++ b/www-misc/zoneminder/files/zoneminder-1.28.1-mysql_include_path.patch
@@ -0,0 +1,20 @@
+--- a/CMakeLists.txt 2015-10-27 17:28:48.059203421 +0000
++++ b/CMakeLists.txt 2015-10-27 17:30:11.951226715 +0000
+@@ -255,7 +255,16 @@
+ if(MYSQLCLIENT_LIBRARIES)
+ set(HAVE_LIBMYSQLCLIENT 1)
+ list(APPEND ZM_BIN_LIBS "${MYSQLCLIENT_LIBRARIES}")
+- find_path(MYSQLCLIENT_INCLUDE_DIR mysql/mysql.h)
++ find_file(MYSQL_CONFIG mysql_config)
++ if(MYSQL_CONFIG)
++ execute_process(COMMAND ${MYSQL_CONFIG}
++ --variable=pkgincludedir OUTPUT_VARIABLE
++ MYSQLCLIENT_INCLUDE_DIR)
++ STRING(REGEX REPLACE "\n" "" MYSQLCLIENT_INCLUDE_DIR
++ ${MYSQLCLIENT_INCLUDE_DIR})
++ else()
++ find_path(MYSQLCLIENT_INCLUDE_DIR mysql/mysql.h)
++ endif()
+ if(MYSQLCLIENT_INCLUDE_DIR)
+ include_directories("${MYSQLCLIENT_INCLUDE_DIR}")
+ set(CMAKE_REQUIRED_INCLUDES "${MYSQLCLIENT_INCLUDE_DIR}")
diff --git a/www-misc/zoneminder/files/zoneminder-1.30.2-diskspace.patch b/www-misc/zoneminder/files/zoneminder-1.30.2-diskspace.patch
new file mode 100644
index 000000000000..fee5b783c356
--- /dev/null
+++ b/www-misc/zoneminder/files/zoneminder-1.30.2-diskspace.patch
@@ -0,0 +1,15 @@
+https://forums.zoneminder.com/viewtopic.php?t=24534
+& personal message by simon@rustyspoon.co_m
+
+diff -ruN ZoneMinder-1.30.2.orig/web/includes/functions.php ZoneMinder-1.30.2/web/includes/functions.php
+--- ZoneMinder-1.30.2.orig/web/includes/functions.php 2017-03-30 20:43:06.000000000 +0200
++++ ZoneMinder-1.30.2/web/includes/functions.php 2017-04-16 21:13:43.841371345 +0200
+@@ -1442,7 +1442,7 @@
+ return( $load[0] );
+ }
+
+-function getDiskPercent($path = ZM_DIR_EVENTS) {
++function getDiskPercent($path = ZM_PATH_WEB.'/'.ZM_DIR_EVENTS) {
+ $total = disk_total_space($path);
+ if ( $total === false ) {
+ Error("disk_total_space returned false. Verify the web account user has access to " . $path );
diff --git a/www-misc/zoneminder/files/zoneminder.service b/www-misc/zoneminder/files/zoneminder.service
new file mode 100644
index 000000000000..9ef5bc6ee552
--- /dev/null
+++ b/www-misc/zoneminder/files/zoneminder.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Video Security and Survellance System
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/zmpkg.pl start
+ExecReload=/usr/bin/zmpkg.pl reload
+PIDFile=/run/zm/zm.pid
+
+[Install]
+WantedBy=multi-user.target
diff --git a/www-misc/zoneminder/metadata.xml b/www-misc/zoneminder/metadata.xml
new file mode 100644
index 000000000000..7c8aa13b6d80
--- /dev/null
+++ b/www-misc/zoneminder/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>dilfridge@gentoo.org</email>
+ <name>Andreas K. Huettel</name>
+ </maintainer>
+ <use>
+ <flag name="curl">Enable using net-misc/curl for streaming from cameras</flag>
+ <flag name="gcrypt">...</flag>
+ <flag name="vlc">Enable using media-libs/vlc for streaming from cameras</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">ZoneMinder/ZoneMinder</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/www-misc/zoneminder/zoneminder-1.30.0.ebuild b/www-misc/zoneminder/zoneminder-1.30.0.ebuild
new file mode 100644
index 000000000000..2698565ed30b
--- /dev/null
+++ b/www-misc/zoneminder/zoneminder-1.30.0.ebuild
@@ -0,0 +1,176 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# TO DO:
+# * dependencies of unknown status:
+# dev-perl/Device-SerialPort
+# dev-perl/MIME-Lite
+# dev-perl/MIME-tools
+# dev-perl/PHP-Serialization
+# virtual/perl-Archive-Tar
+# virtual/perl-libnet
+# virtual/perl-Module-Load
+
+EAPI=6
+
+inherit versionator perl-functions readme.gentoo-r1 cmake-utils depend.apache flag-o-matic systemd
+
+MY_PN="ZoneMinder"
+
+MY_CRUD_VERSION="3.0.10"
+
+DESCRIPTION="Capture, analyse, record and monitor any cameras attached to your system"
+HOMEPAGE="http://www.zoneminder.com/"
+SRC_URI="
+ https://github.com/${MY_PN}/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ https://github.com/FriendsOfCake/crud/archive/v${MY_CRUD_VERSION}.tar.gz -> Crud-${MY_CRUD_VERSION}.tar.gz
+"
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64"
+IUSE="curl ffmpeg gcrypt gnutls +mmap +ssl libressl vlc"
+SLOT="0"
+
+REQUIRED_USE="
+ || ( ssl gnutls )
+"
+
+DEPEND="
+ app-eselect/eselect-php[apache2]
+ dev-lang/perl:=
+ dev-lang/php:*[apache2,cgi,curl,gd,inifile,pdo,mysql,mysqli,sockets]
+ dev-libs/libpcre
+ dev-perl/Archive-Zip
+ dev-perl/Class-Std-Fast
+ dev-perl/Data-Dump
+ dev-perl/Date-Manip
+ dev-perl/Data-UUID
+ dev-perl/DBD-mysql
+ dev-perl/DBI
+ dev-perl/IO-Socket-Multicast
+ dev-perl/SOAP-WSDL
+ dev-perl/Sys-CPU
+ dev-perl/Sys-MemInfo
+ dev-perl/URI-Encode
+ dev-perl/libwww-perl
+ sys-auth/polkit
+ sys-libs/zlib
+ virtual/ffmpeg
+ virtual/httpd-php:*
+ virtual/jpeg:0
+ virtual/mysql
+ virtual/perl-ExtUtils-MakeMaker
+ virtual/perl-Getopt-Long
+ virtual/perl-Sys-Syslog
+ virtual/perl-Time-HiRes
+ www-servers/apache
+ curl? ( net-misc/curl )
+ gcrypt? ( dev-libs/libgcrypt:0= )
+ gnutls? ( net-libs/gnutls )
+ mmap? ( dev-perl/Sys-Mmap )
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ )
+ vlc? ( media-video/vlc[live] )
+"
+RDEPEND="${DEPEND}"
+
+# we cannot use need_httpd_cgi here, since we need to setup permissions for the
+# webserver in global scope (/etc/zm.conf etc), so we hardcode apache here.
+need_apache
+
+S=${WORKDIR}/${MY_PN}-${PV}
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.26.5"-automagic.patch
+ "${FILESDIR}/${PN}-1.28.1"-mysql_include_path.patch
+)
+
+MY_ZM_WEBDIR=/usr/share/zoneminder/www
+
+src_prepare() {
+ cmake-utils_src_prepare
+
+ rmdir "${S}/web/api/app/Plugin/Crud" || die
+ mv "${WORKDIR}/crud-${MY_CRUD_VERSION}" "${S}/web/api/app/Plugin/Crud" || die
+}
+
+src_configure() {
+ append-cxxflags -D__STDC_CONSTANT_MACROS
+ perl_set_version
+
+ mycmakeargs=(
+ -DZM_PERL_SUBPREFIX=${VENDOR_LIB#/usr}
+ -DZM_TMPDIR=/var/tmp/zm
+ -DZM_SOCKDIR=/var/run/zm
+ -DZM_WEB_USER=apache
+ -DZM_WEB_GROUP=apache
+ -DZM_WEBDIR=${MY_ZM_WEBDIR}
+ -DZM_NO_MMAP="$(usex mmap OFF ON)"
+ -DZM_NO_X10=OFF
+ -DZM_NO_FFMPEG="$(usex ffmpeg OFF ON)"
+ -DZM_NO_CURL="$(usex curl OFF ON)"
+ -DZM_NO_LIBVLC="$(usex vlc OFF ON)"
+ -DCMAKE_DISABLE_FIND_PACKAGE_OpenSSL="$(usex ssl OFF ON)"
+ -DHAVE_GNUTLS="$(usex gnutls ON OFF)"
+ -DHAVE_GCRYPT="$(usex gcrypt ON OFF)"
+ )
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ # the log directory
+ keepdir /var/log/zm
+ fowners apache:apache /var/log/zm
+
+ # the logrotate script
+ insinto /etc/logrotate.d
+ newins distros/ubuntu1204/zoneminder.logrotate zoneminder
+
+ # now we duplicate the work of zmlinkcontent.sh
+ keepdir /var/lib/zoneminder /var/lib/zoneminder/images /var/lib/zoneminder/events /var/lib/zoneminder/api_tmp
+ fperms -R 0775 /var/lib/zoneminder
+ fowners -R apache:apache /var/lib/zoneminder
+ dosym /var/lib/zoneminder/images ${MY_ZM_WEBDIR}/images
+ dosym /var/lib/zoneminder/events ${MY_ZM_WEBDIR}/events
+ dosym /var/lib/zoneminder/api_tmp ${MY_ZM_WEBDIR}/api/app/tmp
+
+ # bug 523058
+ keepdir ${MY_ZM_WEBDIR}/temp
+ fowners -R apache:apache ${MY_ZM_WEBDIR}/temp
+
+ # the configuration file
+ fperms 0640 /etc/zm.conf
+ fowners root:apache /etc/zm.conf
+
+ # init scripts etc
+ newinitd "${FILESDIR}"/init.d zoneminder
+ newconfd "${FILESDIR}"/conf.d zoneminder
+
+ # systemd unit file
+ systemd_dounit "${FILESDIR}"/zoneminder.service
+
+ cp "${FILESDIR}"/10_zoneminder.conf "${T}"/10_zoneminder.conf
+ sed -i "${T}"/10_zoneminder.conf -e "s:%ZM_WEBDIR%:${MY_ZM_WEBDIR}:g"
+
+ dodoc AUTHORS BUGS ChangeLog INSTALL NEWS README.md TODO "${T}"/10_zoneminder.conf
+
+ perl_delete_packlist
+
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ readme.gentoo_print_elog
+
+ local v
+ for v in ${REPLACING_VERSIONS}; do
+ if ! version_is_at_least ${PV} ${v}; then
+ elog "You have upgraded zoneminder and may have to upgrade your database now using the 'zmupdate.pl' script."
+ fi
+ done
+}
diff --git a/www-misc/zoneminder/zoneminder-1.30.2-r1.ebuild b/www-misc/zoneminder/zoneminder-1.30.2-r1.ebuild
new file mode 100644
index 000000000000..d37f30cc0bf8
--- /dev/null
+++ b/www-misc/zoneminder/zoneminder-1.30.2-r1.ebuild
@@ -0,0 +1,177 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# TO DO:
+# * dependencies of unknown status:
+# dev-perl/Device-SerialPort
+# dev-perl/MIME-Lite
+# dev-perl/MIME-tools
+# dev-perl/PHP-Serialization
+# virtual/perl-Archive-Tar
+# virtual/perl-libnet
+# virtual/perl-Module-Load
+
+EAPI=6
+
+inherit versionator perl-functions readme.gentoo-r1 cmake-utils depend.apache flag-o-matic systemd
+
+MY_PN="ZoneMinder"
+
+MY_CRUD_VERSION="3.1.0"
+
+DESCRIPTION="Capture, analyse, record and monitor any cameras attached to your system"
+HOMEPAGE="http://www.zoneminder.com/"
+SRC_URI="
+ https://github.com/${MY_PN}/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
+ https://github.com/FriendsOfCake/crud/archive/v${MY_CRUD_VERSION}.tar.gz -> Crud-${MY_CRUD_VERSION}.tar.gz
+"
+
+LICENSE="GPL-2"
+KEYWORDS=""
+IUSE="curl ffmpeg gcrypt gnutls +mmap +ssl libressl vlc"
+SLOT="0"
+
+REQUIRED_USE="
+ || ( ssl gnutls )
+"
+
+DEPEND="
+ app-eselect/eselect-php[apache2]
+ dev-lang/perl:=
+ dev-lang/php:*[apache2,cgi,curl,gd,inifile,pdo,mysql,mysqli,sockets]
+ dev-libs/libpcre
+ dev-perl/Archive-Zip
+ dev-perl/Class-Std-Fast
+ dev-perl/Data-Dump
+ dev-perl/Date-Manip
+ dev-perl/Data-UUID
+ dev-perl/DBD-mysql
+ dev-perl/DBI
+ dev-perl/IO-Socket-Multicast
+ dev-perl/SOAP-WSDL
+ dev-perl/Sys-CPU
+ dev-perl/Sys-MemInfo
+ dev-perl/URI-Encode
+ dev-perl/libwww-perl
+ sys-auth/polkit
+ sys-libs/zlib
+ virtual/ffmpeg
+ virtual/httpd-php:*
+ virtual/jpeg:0
+ virtual/mysql
+ virtual/perl-ExtUtils-MakeMaker
+ virtual/perl-Getopt-Long
+ virtual/perl-Sys-Syslog
+ virtual/perl-Time-HiRes
+ www-servers/apache
+ curl? ( net-misc/curl )
+ gcrypt? ( dev-libs/libgcrypt:0= )
+ gnutls? ( net-libs/gnutls )
+ mmap? ( dev-perl/Sys-Mmap )
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ )
+ vlc? ( media-video/vlc[live] )
+"
+RDEPEND="${DEPEND}"
+
+# we cannot use need_httpd_cgi here, since we need to setup permissions for the
+# webserver in global scope (/etc/zm.conf etc), so we hardcode apache here.
+need_apache
+
+S=${WORKDIR}/${MY_PN}-${PV}
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.26.5"-automagic.patch
+ "${FILESDIR}/${PN}-1.28.1"-mysql_include_path.patch
+ "${FILESDIR}/${PN}-1.30.2"-diskspace.patch
+)
+
+MY_ZM_WEBDIR=/usr/share/zoneminder/www
+
+src_prepare() {
+ cmake-utils_src_prepare
+
+ rmdir "${S}/web/api/app/Plugin/Crud" || die
+ mv "${WORKDIR}/crud-${MY_CRUD_VERSION}" "${S}/web/api/app/Plugin/Crud" || die
+}
+
+src_configure() {
+ append-cxxflags -D__STDC_CONSTANT_MACROS
+ perl_set_version
+
+ mycmakeargs=(
+ -DZM_PERL_SUBPREFIX=${VENDOR_LIB#/usr}
+ -DZM_TMPDIR=/var/tmp/zm
+ -DZM_SOCKDIR=/var/run/zm
+ -DZM_WEB_USER=apache
+ -DZM_WEB_GROUP=apache
+ -DZM_WEBDIR=${MY_ZM_WEBDIR}
+ -DZM_NO_MMAP="$(usex mmap OFF ON)"
+ -DZM_NO_X10=OFF
+ -DZM_NO_FFMPEG="$(usex ffmpeg OFF ON)"
+ -DZM_NO_CURL="$(usex curl OFF ON)"
+ -DZM_NO_LIBVLC="$(usex vlc OFF ON)"
+ -DCMAKE_DISABLE_FIND_PACKAGE_OpenSSL="$(usex ssl OFF ON)"
+ -DHAVE_GNUTLS="$(usex gnutls ON OFF)"
+ -DHAVE_GCRYPT="$(usex gcrypt ON OFF)"
+ )
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ # the log directory
+ keepdir /var/log/zm
+ fowners apache:apache /var/log/zm
+
+ # the logrotate script
+ insinto /etc/logrotate.d
+ newins distros/ubuntu1204/zoneminder.logrotate zoneminder
+
+ # now we duplicate the work of zmlinkcontent.sh
+ keepdir /var/lib/zoneminder /var/lib/zoneminder/images /var/lib/zoneminder/events /var/lib/zoneminder/api_tmp
+ fperms -R 0775 /var/lib/zoneminder
+ fowners -R apache:apache /var/lib/zoneminder
+ dosym /var/lib/zoneminder/images ${MY_ZM_WEBDIR}/images
+ dosym /var/lib/zoneminder/events ${MY_ZM_WEBDIR}/events
+ dosym /var/lib/zoneminder/api_tmp ${MY_ZM_WEBDIR}/api/app/tmp
+
+ # bug 523058
+ keepdir ${MY_ZM_WEBDIR}/temp
+ fowners -R apache:apache ${MY_ZM_WEBDIR}/temp
+
+ # the configuration file
+ fperms 0640 /etc/zm.conf
+ fowners root:apache /etc/zm.conf
+
+ # init scripts etc
+ newinitd "${FILESDIR}"/init.d zoneminder
+ newconfd "${FILESDIR}"/conf.d zoneminder
+
+ # systemd unit file
+ systemd_dounit "${FILESDIR}"/zoneminder.service
+
+ cp "${FILESDIR}"/10_zoneminder.conf-r1 "${T}"/10_zoneminder.conf || die
+ sed -i "${T}"/10_zoneminder.conf -e "s:%ZM_WEBDIR%:${MY_ZM_WEBDIR}:g" || die
+
+ dodoc AUTHORS BUGS ChangeLog INSTALL NEWS README.md TODO "${T}"/10_zoneminder.conf
+
+ perl_delete_packlist
+
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ readme.gentoo_print_elog
+
+ local v
+ for v in ${REPLACING_VERSIONS}; do
+ if ! version_is_at_least ${PV} ${v}; then
+ elog "You have upgraded zoneminder and may have to upgrade your database now using the 'zmupdate.pl' script."
+ fi
+ done
+}
diff --git a/www-misc/zoneminder/zoneminder-1.30.2.ebuild b/www-misc/zoneminder/zoneminder-1.30.2.ebuild
new file mode 100644
index 000000000000..74bea7e3cbfd
--- /dev/null
+++ b/www-misc/zoneminder/zoneminder-1.30.2.ebuild
@@ -0,0 +1,176 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# TO DO:
+# * dependencies of unknown status:
+# dev-perl/Device-SerialPort
+# dev-perl/MIME-Lite
+# dev-perl/MIME-tools
+# dev-perl/PHP-Serialization
+# virtual/perl-Archive-Tar
+# virtual/perl-libnet
+# virtual/perl-Module-Load
+
+EAPI=6
+
+inherit versionator perl-functions readme.gentoo-r1 cmake-utils depend.apache flag-o-matic systemd
+
+MY_PN="ZoneMinder"
+
+MY_CRUD_VERSION="3.1.0"
+
+DESCRIPTION="Capture, analyse, record and monitor any cameras attached to your system"
+HOMEPAGE="http://www.zoneminder.com/"
+SRC_URI="
+ https://github.com/${MY_PN}/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
+ https://github.com/FriendsOfCake/crud/archive/v${MY_CRUD_VERSION}.tar.gz -> Crud-${MY_CRUD_VERSION}.tar.gz
+"
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64"
+IUSE="curl ffmpeg gcrypt gnutls +mmap +ssl libressl vlc"
+SLOT="0"
+
+REQUIRED_USE="
+ || ( ssl gnutls )
+"
+
+DEPEND="
+ app-eselect/eselect-php[apache2]
+ dev-lang/perl:=
+ dev-lang/php:*[apache2,cgi,curl,gd,inifile,pdo,mysql,mysqli,sockets]
+ dev-libs/libpcre
+ dev-perl/Archive-Zip
+ dev-perl/Class-Std-Fast
+ dev-perl/Data-Dump
+ dev-perl/Date-Manip
+ dev-perl/Data-UUID
+ dev-perl/DBD-mysql
+ dev-perl/DBI
+ dev-perl/IO-Socket-Multicast
+ dev-perl/SOAP-WSDL
+ dev-perl/Sys-CPU
+ dev-perl/Sys-MemInfo
+ dev-perl/URI-Encode
+ dev-perl/libwww-perl
+ sys-auth/polkit
+ sys-libs/zlib
+ virtual/ffmpeg
+ virtual/httpd-php:*
+ virtual/jpeg:0
+ virtual/mysql
+ virtual/perl-ExtUtils-MakeMaker
+ virtual/perl-Getopt-Long
+ virtual/perl-Sys-Syslog
+ virtual/perl-Time-HiRes
+ www-servers/apache
+ curl? ( net-misc/curl )
+ gcrypt? ( dev-libs/libgcrypt:0= )
+ gnutls? ( net-libs/gnutls )
+ mmap? ( dev-perl/Sys-Mmap )
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ )
+ vlc? ( media-video/vlc[live] )
+"
+RDEPEND="${DEPEND}"
+
+# we cannot use need_httpd_cgi here, since we need to setup permissions for the
+# webserver in global scope (/etc/zm.conf etc), so we hardcode apache here.
+need_apache
+
+S=${WORKDIR}/${MY_PN}-${PV}
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.26.5"-automagic.patch
+ "${FILESDIR}/${PN}-1.28.1"-mysql_include_path.patch
+)
+
+MY_ZM_WEBDIR=/usr/share/zoneminder/www
+
+src_prepare() {
+ cmake-utils_src_prepare
+
+ rmdir "${S}/web/api/app/Plugin/Crud" || die
+ mv "${WORKDIR}/crud-${MY_CRUD_VERSION}" "${S}/web/api/app/Plugin/Crud" || die
+}
+
+src_configure() {
+ append-cxxflags -D__STDC_CONSTANT_MACROS
+ perl_set_version
+
+ mycmakeargs=(
+ -DZM_PERL_SUBPREFIX=${VENDOR_LIB#/usr}
+ -DZM_TMPDIR=/var/tmp/zm
+ -DZM_SOCKDIR=/var/run/zm
+ -DZM_WEB_USER=apache
+ -DZM_WEB_GROUP=apache
+ -DZM_WEBDIR=${MY_ZM_WEBDIR}
+ -DZM_NO_MMAP="$(usex mmap OFF ON)"
+ -DZM_NO_X10=OFF
+ -DZM_NO_FFMPEG="$(usex ffmpeg OFF ON)"
+ -DZM_NO_CURL="$(usex curl OFF ON)"
+ -DZM_NO_LIBVLC="$(usex vlc OFF ON)"
+ -DCMAKE_DISABLE_FIND_PACKAGE_OpenSSL="$(usex ssl OFF ON)"
+ -DHAVE_GNUTLS="$(usex gnutls ON OFF)"
+ -DHAVE_GCRYPT="$(usex gcrypt ON OFF)"
+ )
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ # the log directory
+ keepdir /var/log/zm
+ fowners apache:apache /var/log/zm
+
+ # the logrotate script
+ insinto /etc/logrotate.d
+ newins distros/ubuntu1204/zoneminder.logrotate zoneminder
+
+ # now we duplicate the work of zmlinkcontent.sh
+ keepdir /var/lib/zoneminder /var/lib/zoneminder/images /var/lib/zoneminder/events /var/lib/zoneminder/api_tmp
+ fperms -R 0775 /var/lib/zoneminder
+ fowners -R apache:apache /var/lib/zoneminder
+ dosym /var/lib/zoneminder/images ${MY_ZM_WEBDIR}/images
+ dosym /var/lib/zoneminder/events ${MY_ZM_WEBDIR}/events
+ dosym /var/lib/zoneminder/api_tmp ${MY_ZM_WEBDIR}/api/app/tmp
+
+ # bug 523058
+ keepdir ${MY_ZM_WEBDIR}/temp
+ fowners -R apache:apache ${MY_ZM_WEBDIR}/temp
+
+ # the configuration file
+ fperms 0640 /etc/zm.conf
+ fowners root:apache /etc/zm.conf
+
+ # init scripts etc
+ newinitd "${FILESDIR}"/init.d zoneminder
+ newconfd "${FILESDIR}"/conf.d zoneminder
+
+ # systemd unit file
+ systemd_dounit "${FILESDIR}"/zoneminder.service
+
+ cp "${FILESDIR}"/10_zoneminder.conf "${T}"/10_zoneminder.conf
+ sed -i "${T}"/10_zoneminder.conf -e "s:%ZM_WEBDIR%:${MY_ZM_WEBDIR}:g"
+
+ dodoc AUTHORS BUGS ChangeLog INSTALL NEWS README.md TODO "${T}"/10_zoneminder.conf
+
+ perl_delete_packlist
+
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ readme.gentoo_print_elog
+
+ local v
+ for v in ${REPLACING_VERSIONS}; do
+ if ! version_is_at_least ${PV} ${v}; then
+ elog "You have upgraded zoneminder and may have to upgrade your database now using the 'zmupdate.pl' script."
+ fi
+ done
+}