diff options
Diffstat (limited to 'app-admin')
1170 files changed, 43452 insertions, 0 deletions
diff --git a/app-admin/389-admin-console/389-admin-console-1.1.8-r1.ebuild b/app-admin/389-admin-console/389-admin-console-1.1.8-r1.ebuild new file mode 100644 index 000000000000..9062bf185770 --- /dev/null +++ b/app-admin/389-admin-console/389-admin-console-1.1.8-r1.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-ant-2 + +MY_PV=${PV/_alpha/.a} +MY_PV=${MY_PV/_rc/.rc} + +DESCRIPTION="389 Server Management Console (jar and help files)" +HOMEPAGE="http://port389.org/" +SRC_URI="http://directory.fedoraproject.org/sources/${P}.tar.bz2" + +LICENSE="LGPL-2.1" +SLOT="1.1" +KEYWORDS="~amd64 ~x86" +IUSE="" + +COMMON_DEP="dev-java/jss:3.4 + dev-java/ldapsdk:4.1 + >=dev-java/idm-console-framework-1.1.7" +RDEPEND="|| ( >=virtual/jre-1.5 >=virtual/jdk-1.5 ) + ${COMMON_DEP}" +DEPEND="sys-apps/sed + >=virtual/jdk-1.5 + ${COMMON_DEP}" +PDEPEND="net-nds/389-admin" + +src_prepare() { + # Gentoo java rules say no jars with version number + # so sed away the version indicator '-' + sed -e "s!-\*!\*!g" -i build.xml + + java-pkg_jar-from ldapsdk-4.1 ldapjdk.jar + java-pkg_jar-from jss-3.4 xpclass.jar jss4.jar + java-pkg_jar-from idm-console-framework-1.1 +} + +src_compile() { + eant -Dbuilt.dir="${S}"/build \ + -Dldapjdk.location="${S}" \ + -Djss.location="${S}" \ + -Dconsole.location="${S}" ${antflags} + use doc && eant -Dbuilt.dir="${S}"/build \ + -Dldapjdk.location="${S}" \ + -Djss.location="${S}" \ + -Dconsole.location="${S}" ${antflags} javadoc +} + +src_install() { + java-pkg_jarinto /usr/share/dirsrv/html/java + # have to install versioned jars, otherwise 389-console will crash + java-pkg_newjar "${S}"/build/package/389-admin-${MY_PV}.jar 389-admin-${MY_PV}.jar + java-pkg_newjar "${S}"/build/package/389-admin-${MY_PV}_en.jar 389-admin-${MY_PV}_en.jar + + dosym 389-admin-${MY_PV}.jar /usr/share/dirsrv/html/java/389-admin.jar + dosym 389-admin-${MY_PV}.jar /usr/share/dirsrv/html/java/389-admin-${SLOT}.jar + dosym 389-admin-${MY_PV}_en.jar /usr/share/dirsrv/html/java/389-admin_en.jar + dosym 389-admin-${MY_PV}_en.jar /usr/share/dirsrv/html/java/389-admin-${SLOT}_en.jar + + insinto /usr/share/dirsrv/manual/en/admin + doins "${S}"/help/en/*.html + doins "${S}"/help/en/tokens.map + + insinto /usr/share/dirsrv/manual/en/admin/help + doins "${S}"/help/en/help/*.html + + use doc && java-pkg_dojavadoc build/doc + use source && java-pkg_dosrc src/com +} diff --git a/app-admin/389-admin-console/Manifest b/app-admin/389-admin-console/Manifest new file mode 100644 index 000000000000..78af32deafc6 --- /dev/null +++ b/app-admin/389-admin-console/Manifest @@ -0,0 +1 @@ +DIST 389-admin-console-1.1.8.tar.bz2 126004 SHA256 6f2e05299876c11380c6b98540772d45a0e2128f3ec9fcd15f9cd7cc80ce4e4d SHA512 85ac61f8032450e1a86f973b244c136784016bfe6782fff2b992881fd427190223cd4655caf6a592bda7bc8b13e6dde04a5644abbc833c0472c287127a397ae5 WHIRLPOOL f286f37744a12400f27732d17e0d1deb7b09f1801b9f110db8835ef1ff0e1d39bb7f1b897c708938ba6668a9adcfc17a46972d1a7eac57dd4d088a9d65dab519 diff --git a/app-admin/389-admin-console/metadata.xml b/app-admin/389-admin-console/metadata.xml new file mode 100644 index 000000000000..f941fa3103d1 --- /dev/null +++ b/app-admin/389-admin-console/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>java</herd> +<maintainer> + <email>maintainer-needed@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/app-admin/389-console/389-console-1.1.7-r1.ebuild b/app-admin/389-console/389-console-1.1.7-r1.ebuild new file mode 100644 index 000000000000..2ede4b173fb5 --- /dev/null +++ b/app-admin/389-console/389-console-1.1.7-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +JAVA_PKG_IUSE="" + +inherit java-pkg-2 eutils java-ant-2 + +DESCRIPTION="A Java based console for remote management 389 server" +HOMEPAGE="http://port389.org/" +SRC_URI="http://directory.fedoraproject.org/sources/${P}.tar.bz2 + http://dev.gentoo.org/~lxnay/${PN}/fedora.png" + +LICENSE="LGPL-2.1" +SLOT="1.1" +KEYWORDS="~amd64 ~x86" +IUSE="" + +COMMON_DEP="dev-java/jss:3.4 + dev-java/ldapsdk:4.1 + >=dev-java/idm-console-framework-1.1" + +RDEPEND="|| ( >=virtual/jre-1.6 >=virtual/jdk-1.6 ) + ${COMMON_DEP}" + +DEPEND=">=virtual/jdk-1.6 + ${COMMON_DEP}" + +src_prepare() { + java-pkg_jar-from ldapsdk-4.1 ldapjdk.jar + java-pkg_jar-from jss-3.4 xpclass.jar jss4.jar + java-pkg_jar-from idm-console-framework-1.1 +} + +src_compile() { + eant -Dbuilt.dir="${S}"/build \ + -Dldapjdk.local.location="${S}" \ + -Djss.local.location="${S}" \ + -Dconsole.local.location="${S}" ${antflags} \ + || die "eant failed" +} + +src_install() { + java-pkg_newjar "${S}"/build/389-console-${PV}_en.jar 389-console_en.jar + java-pkg_dolauncher ${PN} --main com.netscape.management.client.console.Console \ + --pwd "/usr/share/dirsrv/html/java/" \ + --pkg_args "-Djava.util.prefs.systemRoot=\"\$HOME/.${PN}\" -Djava.util.prefs.userRoot=\"\$HOME/.${PN}\"" \ + || die + + doicon "${DISTDIR}"/fedora.png || die "doicon failed" + make_desktop_entry ${PN} "Port389 Management Console" fedora System +} diff --git a/app-admin/389-console/Manifest b/app-admin/389-console/Manifest new file mode 100644 index 000000000000..aeac3cb71d2e --- /dev/null +++ b/app-admin/389-console/Manifest @@ -0,0 +1,2 @@ +DIST 389-console-1.1.7.tar.bz2 112970 SHA256 dcaf63654ec4c6986b9a3b10d79d8e0592f334fd42d34869b0b767bbffd01a05 SHA512 d2ea4c65ea6bb01d3163271a44bb4fab4167863e2df1389e8d4bd2782083c33563ddfd232512d8b28f0de037a7cf0dd7ee554c1660d40fa50d731224748d9f6e WHIRLPOOL dc1fed080e91fdee1a4dd7150a779a5d525c81020e2121127f9e7824e4a23f366907edf40c565332515cf7ba1654262bae82c7819185b31b99154050910548f0 +DIST fedora.png 11606 SHA256 88318e1704924c7d33aac3e37c195f99d29eb6f6f6235f254f254881257bbb0e SHA512 f6adbf8d3cb0e09a819baa54fc638bf48a478bbea666a49ed7f6ac91c3ee2e03ded61d7e17a184ae29dddfc128a11fee724dfaa42e0493a57dd7c91531809aad WHIRLPOOL c105c9daaa4ca4e1329a8bc7f6e403bfacf873db3f719e00b099fa2fb91eac550aa7222967518f8ad0ab99b94f59406082e27d99827c5bbf5ceeaecdb36a9d3c diff --git a/app-admin/389-console/metadata.xml b/app-admin/389-console/metadata.xml new file mode 100644 index 000000000000..2061856c98ee --- /dev/null +++ b/app-admin/389-console/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>java</herd> +<maintainer> + <email>maintainer-needed@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/app-admin/389-ds-console/389-ds-console-1.2.6-r1.ebuild b/app-admin/389-ds-console/389-ds-console-1.2.6-r1.ebuild new file mode 100644 index 000000000000..918732df5032 --- /dev/null +++ b/app-admin/389-ds-console/389-ds-console-1.2.6-r1.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-ant-2 eutils versionator + +MY_PV=${PV/_alpha/.a} +MY_PV=${MY_PV/_rc/.rc} +MY_MV="$(get_version_component_range 1-2)" + +DESCRIPTION="Java based remote management console used for Managing 389-admin 389-ds" +HOMEPAGE="http://port389.org/" +SRC_URI="http://directory.fedoraproject.org/sources/${P}.tar.bz2" + +LICENSE="LGPL-2.1" +SLOT="1.2" +KEYWORDS="~amd64 ~x86" +IUSE="" + +COMMON_DEP="dev-java/jss:3.4 + dev-java/ldapsdk:4.1 + >=dev-java/idm-console-framework-1.1 + net-nds/389-ds-base" +RDEPEND="|| ( >=virtual/jre-1.6 >=virtual/jdk-1.6 ) + ${COMMON_DEP}" +DEPEND="sys-apps/sed + >=virtual/jdk-1.6 + ${COMMON_DEP}" + +src_prepare() { + # Gentoo java rules say no jars with version number + # so sed away the version indicator '-' + sed -e "s!-\*!\*!g" -i build.xml || die "sed failed" + + java-pkg_jar-from ldapsdk-4.1 ldapjdk.jar + java-pkg_jar-from jss-3.4 xpclass.jar jss4.jar + java-pkg_jar-from idm-console-framework-1.1 +} + +src_compile() { + eant -Dbuilt.dir="${S}"/build \ + -Dldapjdk.location="${S}" \ + -Djss.location="${S}" \ + -Dconsole.location="${S}" ${antflags} + use doc && eant -Dbuilt.dir="${S}"/build \ + -Dldapjdk.location="${S}" \ + -Djss.location="${S}" \ + -Dconsole.location="${S}" ${antflags} javadoc +} + +src_install() { + java-pkg_jarinto /usr/share/dirsrv/html/java + java-pkg_newjar "${S}"/build/package/389-ds-${MY_PV}.jar 389-ds-${MY_PV}.jar + java-pkg_newjar "${S}"/build/package/389-ds-${MY_PV}_en.jar 389-ds-${MY_PV}_en.jar + + dosym 389-ds-${MY_PV}.jar /usr/share/dirsrv/html/java/389-ds.jar + dosym 389-ds-${MY_PV}_en.jar /usr/share/dirsrv/html/java/389-ds_en.jar + dosym 389-ds-${MY_PV}.jar /usr/share/dirsrv/html/java/389-ds-${MY_MV}.jar + dosym 389-ds-${MY_PV}_en.jar /usr/share/dirsrv/html/java/389-ds-${MY_MV}_en.jar + + insinto /usr/share/dirsrv/manual/en/slapd + doins "${S}"/help/en/*.html + doins "${S}"/help/en/tokens.map + + insinto /usr/share/dirsrv/manual/en/slapd/help + doins "${S}"/help/en/help/*.html + + use doc && java-pkg_dojavadoc build/doc + use source && java-pkg_dosrc src/com +} diff --git a/app-admin/389-ds-console/Manifest b/app-admin/389-ds-console/Manifest new file mode 100644 index 000000000000..681aca50118c --- /dev/null +++ b/app-admin/389-ds-console/Manifest @@ -0,0 +1 @@ +DIST 389-ds-console-1.2.6.tar.bz2 791388 SHA256 142a8e1e22bb4c617d2bcdb3d2257e92f2b34d2cd839ed1325f59fc52b70f410 SHA512 ae62afec7860365156f991a420c701e7057190793f577823e5f8b0e1e3d9c9fb240f8d2f30d9a9160baa86aa968e242ef6a9d9faf6608e1218da8f071a620e02 WHIRLPOOL def2e14fb8c7771711efde18cb53f6d6c36de077221c27e219cf97797a5d5c6fb126bf9485a2133676be2f239c065970fb8731c9ddccf3088bcc18ab485169f5 diff --git a/app-admin/389-ds-console/metadata.xml b/app-admin/389-ds-console/metadata.xml new file mode 100644 index 000000000000..2061856c98ee --- /dev/null +++ b/app-admin/389-ds-console/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>java</herd> +<maintainer> + <email>maintainer-needed@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/app-admin/abrt/Manifest b/app-admin/abrt/Manifest new file mode 100644 index 000000000000..9e28084abaf1 --- /dev/null +++ b/app-admin/abrt/Manifest @@ -0,0 +1 @@ +DIST abrt-2.0.12.tar.gz 1090121 SHA256 2957f4136958078c3c8c9b2031febd8b322ef8705ca25a51592279b3ccd5c9e2 SHA512 5432205edb4483fb1883b9bcebab48784b16dd9e72c3a929ea0d50c48dab638d80f136b6b0d7648d8ec9fcb79d5ce8c1be37d36301d3b2b151868901be82a63a WHIRLPOOL 9b39fe91f77e2de5b3816d5cfc10f75c7c3d7dedfc354ed4e052b50e6cebb94bd26fec94aaba6cfd1cc79b71f1cc34b77bfd70d27d25761fa853a6a2af5ef7ce diff --git a/app-admin/abrt/abrt-2.0.12-r2.ebuild b/app-admin/abrt/abrt-2.0.12-r2.ebuild new file mode 100644 index 000000000000..b9da8ae1e7f7 --- /dev/null +++ b/app-admin/abrt/abrt-2.0.12-r2.ebuild @@ -0,0 +1,116 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +# Need gnome2-utils for gnome2_icon_cache_update +inherit autotools eutils gnome2-utils python-single-r1 systemd user + +DESCRIPTION="Automatic bug detection and reporting tool" +HOMEPAGE="https://fedorahosted.org/abrt/" +SRC_URI="https://fedorahosted.org/released/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="debug" + +COMMON_DEPEND="${PYTHON_DEPS} + >=dev-libs/btparser-0.18 + >=dev-libs/glib-2.21:2 + >=dev-libs/libreport-2.0.11[${PYTHON_USEDEP}] + dev-libs/libxml2 + dev-libs/nss + sys-apps/dbus + sys-auth/polkit + sys-fs/inotify-tools + x11-libs/gtk+:3 + x11-libs/libnotify" +RDEPEND="${COMMON_DEPEND} + app-arch/cpio + dev-libs/elfutils + >=sys-devel/gdb-7" +DEPEND="${COMMON_DEPEND} + app-text/asciidoc + app-text/xmlto + >=dev-util/intltool-0.35.0 + virtual/pkgconfig + >=sys-devel/gettext-0.17" + +REQUIRED_USE=${PYTHON_REQUIRED_USE} + +pkg_setup() { + python-single-r1_pkg_setup + + enewgroup abrt + enewuser abrt -1 -1 -1 abrt +} + +src_prepare() { + # Disable redhat-specific code not usable in gentoo, or that requires + # bugs.gentoo.org infra support. + epatch "${FILESDIR}/${PN}-2.0.12-gentoo.patch" + + # Using a server response as a format string is a bad idea + epatch "${FILESDIR}/${PN}-2.0.6-format-security.patch" + + # pyhook test is sensitive to the format of python's error messages, and + # fails with certain python versions + sed -e '/pyhook.at/ d' \ + -i tests/Makefile.* tests/testsuite.at || die "sed 2 failed" + + # automake-1.12, #427926 + epatch "${FILESDIR}/${PN}-2.0.12-automake-1.12.patch" + + # Fix dbus timeout in gui; in next release + epatch "${FILESDIR}/${P}-dbus-fallback.patch" + + eautoreconf + + python_fix_shebang . +} + +src_configure() { + myeconfargs=( + "--localstatedir=${EPREFIX}/var" + "$(systemd_with_unitdir)" + ) + # --disable-debug enables debug! + use debug && myeconfargs=( "${myeconfargs[@]}" --enable-debug ) + econf "${myeconfargs[@]}" +} + +src_install() { + default + + keepdir /var/run/abrt + # /var/spool/abrt is created by dev-libs/libreport + + diropts -m 700 -o abrt -g abrt + keepdir /var/spool/abrt-upload + + diropts -m 775 -o abrt -g abrt + keepdir /var/cache/abrt-di + + find "${D}" -name '*.la' -exec rm -f {} + || die + + newinitd "${FILESDIR}/${PN}-2.0.12-r1-init" abrt + newconfd "${FILESDIR}/${PN}-2.0.12-r1-conf" abrt +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update + elog "To start the bug detection service on an openrc-based system, do" + elog "# /etc/init.d/abrt start" +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/app-admin/abrt/files/abrt-2.0.12-automake-1.12.patch b/app-admin/abrt/files/abrt-2.0.12-automake-1.12.patch new file mode 100644 index 000000000000..e2723067cb6e --- /dev/null +++ b/app-admin/abrt/files/abrt-2.0.12-automake-1.12.patch @@ -0,0 +1,64 @@ +From 00704d4eb30dd12d6f4fcf97320c354ed3eacfa7 Mon Sep 17 00:00:00 2001 +From: Alexandre Rostovtsev <tetromino@gentoo.org> +Date: Sat, 22 Sep 2012 05:50:38 -0400 +Subject: [PATCH] Fix automake-1.12 autoreconf issues + +Need -Wno-portablity for '%'-style pattern rules in doc/Makefile.am and +':='-style assignments and $(wildcard *~) in src/hooks/Makefile.am. + +Need AM_PROG_CC_C_O for src/applet/applet.c + +gettext-0.18.1.1's AM_GNU_GETTEXT requires AM_PROG_MKDIR_P, causing +problems for automake-1.12. +--- + configure.ac | 8 +++----- + src/daemon/Makefile.am | 2 +- + 2 files changed, 4 insertions(+), 6 deletions(-) + +diff --git a/configure.ac b/configure.ac +index a78d9f8..42acccf 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -3,7 +3,7 @@ AC_INIT([abrt], + [crash-catcher@fedorahosted.org]) + + AC_CONFIG_MACRO_DIR([m4]) +-AM_INIT_AUTOMAKE([-Wall -Werror foreign]) ++AM_INIT_AUTOMAKE([-Wall -Wno-portability -Werror foreign]) + # Support silent build rules. Disable by either passing --disable-silent-rules + # to ./configure or passing V=1 to make + m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES]) +@@ -12,8 +12,9 @@ AM_SILENT_RULES([yes]) + + + AC_DISABLE_STATIC ++AM_PROG_AR + AC_PROG_LIBTOOL +-AC_PROG_CC ++AM_PROG_CC_C_O + AC_PROG_LN_S + + AC_SYS_LARGEFILE +@@ -30,9 +31,6 @@ GETTEXT_PACKAGE=abrt + AC_SUBST(GETTEXT_PACKAGE) + AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Package name for gettext]) + +-AM_GNU_GETTEXT([external]) +-AM_GNU_GETTEXT_VERSION([0.17]) +- + IT_PROG_INTLTOOL([0.35.0]) + + dnl ****** END **************************************** +diff --git a/src/daemon/Makefile.am b/src/daemon/Makefile.am +index 777dfc4..5a5f0ea 100644 +--- a/src/daemon/Makefile.am ++++ b/src/daemon/Makefile.am +@@ -63,4 +63,4 @@ EXTRA_DIST = abrt-handle-upload + DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ + + install-data-local: +- $(mkdir_p) '$(DESTDIR)/$(VAR_RUN)' ++ $(MKDIR_P) '$(DESTDIR)/$(VAR_RUN)' +-- +1.7.12 + diff --git a/app-admin/abrt/files/abrt-2.0.12-dbus-fallback.patch b/app-admin/abrt/files/abrt-2.0.12-dbus-fallback.patch new file mode 100644 index 000000000000..e15731bbf04c --- /dev/null +++ b/app-admin/abrt/files/abrt-2.0.12-dbus-fallback.patch @@ -0,0 +1,111 @@ +From 3ddf2f38a47c7cc13dd6f480841b9b90f6304ed4 Mon Sep 17 00:00:00 2001 +From: Denys Vlasenko <vda.linux@googlemail.com> +Date: Mon, 3 Sep 2012 19:01:24 +0200 +Subject: [PATCH] abrt-gui: fall back to direct access if dbus access fails. + Closes #484 + +It looks like this: + +root> abrt-gui +Can't connect to system DBus: Error connecting: No such file or directory +Error in DBus communication, falling back to direct access to '/var/spool/abrt' + +Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> +--- + src/gui-gtk/main.c | 44 +++++++++++++++++++++++++++----------------- + src/lib/problem_api.c | 5 +++-- + 2 files changed, 30 insertions(+), 19 deletions(-) + +diff --git a/src/gui-gtk/main.c b/src/gui-gtk/main.c +index 2cc4bef..e6e8ef0 100644 +--- a/src/gui-gtk/main.c ++++ b/src/gui-gtk/main.c +@@ -252,23 +252,6 @@ static void add_directory_to_dirlist(const char *problem_dir_path, gpointer data + VERB1 log("added: %s", problem_dir_path); + } + +-static void query_dbus_and_add_to_dirlist(void) +-{ +- GList *problem_dirs = get_problems_over_dbus(g_authorize); +- +- if (problem_dirs) +- { +- g_list_foreach(problem_dirs, (GFunc)add_directory_to_dirlist, /*use_dbus:*/ (void*)true); +- list_free_with_free(problem_dirs); +- } +- +- /* HACK ALERT! We "magically know" that dbus-reported problem dirs +- * live in g_settings_dump_location. +- * Notifications on changes should be implemented to go over dbus too. +- */ +- watch_this_dir(g_settings_dump_location); +-} +- + static void scan_directory_and_add_to_dirlist(const char *path) + { + DIR *dp = opendir(path); +@@ -296,6 +279,33 @@ static void scan_directory_and_add_to_dirlist(const char *path) + watch_this_dir(path); + } + ++static void query_dbus_and_add_to_dirlist(void) ++{ ++ GList *problem_dirs = get_problems_over_dbus(g_authorize); ++ ++ if (problem_dirs == ERR_PTR) ++ { ++ /* One way to trigger this is to temporarily rename ++ * dbus socket (/var/run/dbus/system_bus_socket) ++ */ ++ error_msg("Error in DBus communication, falling back to direct access to '%s'", g_settings_dump_location); ++ scan_directory_and_add_to_dirlist(g_settings_dump_location); ++ return; ++ } ++ ++ if (problem_dirs) ++ { ++ g_list_foreach(problem_dirs, (GFunc)add_directory_to_dirlist, /*use_dbus:*/ (void*)true); ++ list_free_with_free(problem_dirs); ++ } ++ ++ /* HACK ALERT! We "magically know" that dbus-reported problem dirs ++ * live in g_settings_dump_location. ++ * Notifications on changes should be implemented to go over dbus too. ++ */ ++ watch_this_dir(g_settings_dump_location); ++} ++ + static void scan_dirs_and_add_to_dirlist(void) + { + if (!(g_opts & OPT_D)) +diff --git a/src/lib/problem_api.c b/src/lib/problem_api.c +index b9967e8..04f4069 100644 +--- a/src/lib/problem_api.c ++++ b/src/lib/problem_api.c +@@ -144,7 +144,7 @@ GList *get_problems_over_dbus(bool authorize) + { + GDBusProxy *proxy = get_dbus_proxy(); + if (!proxy) +- return NULL; ++ return ERR_PTR; + + GError *error = NULL; + GVariant *result = g_dbus_proxy_call_sync(proxy, +@@ -159,6 +159,7 @@ GList *get_problems_over_dbus(bool authorize) + { + error_msg(_("Can't get problem list from abrt-dbus: %s"), error->message); + g_error_free(error); ++ return ERR_PTR; + } + + GList *list = NULL; +@@ -172,4 +173,4 @@ GList *get_problems_over_dbus(bool authorize) + } + + return list; +-} +\ No newline at end of file ++} +-- +1.7.12 + diff --git a/app-admin/abrt/files/abrt-2.0.12-gentoo.patch b/app-admin/abrt/files/abrt-2.0.12-gentoo.patch new file mode 100644 index 000000000000..0aa4267910e6 --- /dev/null +++ b/app-admin/abrt/files/abrt-2.0.12-gentoo.patch @@ -0,0 +1,398 @@ +From 1f56956ade3bd28ef192fba675e798db58b3ae40 Mon Sep 17 00:00:00 2001 +From: Alexandre Rostovtsev <tetromino@gentoo.org> +Date: Sat, 22 Sep 2012 05:45:28 -0400 +Subject: [PATCH] Disable code not relevant for Gentoo + +Disable code that is only relevant for an RPM-based distro or that +requires additional bugs.gentoo.org infrastructure support. Ensure that +crashes still get analyzed even if they cannot be assigned to any +package (since we lack any way of doing that at the moment). +--- + configure.ac | 1 - + doc/Makefile.am | 2 -- + src/daemon/Makefile.am | 18 ---------- + src/daemon/abrt_event.conf | 14 +++++--- + src/plugins/Makefile.am | 71 +------------------------------------ + src/plugins/abrt-action-list-dsos | 18 +++------- + src/plugins/ccpp_event.conf | 29 +-------------- + src/plugins/ccpp_retrace_event.conf | 8 +---- + src/plugins/koops_event.conf | 15 -------- + src/plugins/python_event.conf | 16 --------- + src/plugins/xorg_event.conf | 2 +- + 11 files changed, 17 insertions(+), 177 deletions(-) + +diff --git a/configure.ac b/configure.ac +index bb2b986..a78d9f8 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -79,7 +79,6 @@ PKG_CHECK_MODULES([GTK], [gtk+-3.0]) + PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.21]) + PKG_CHECK_MODULES([DBUS], [dbus-1]) + PKG_CHECK_MODULES([LIBXML], [libxml-2.0]) +-PKG_CHECK_MODULES([RPM], [rpm]) + PKG_CHECK_MODULES([LIBNOTIFY], [libnotify]) + PKG_CHECK_MODULES([NSS], [nss]) + PKG_CHECK_MODULES([BTPARSER], [btparser]) +diff --git a/doc/Makefile.am b/doc/Makefile.am +index 0a829d4..33cc8e6 100644 +--- a/doc/Makefile.am ++++ b/doc/Makefile.am +@@ -16,11 +16,9 @@ MAN1_TXT += abrt-cli.txt + MAN1_TXT += abrt-action-save-package-data.txt + MAN1_TXT += abrt-install-ccpp-hook.txt + MAN1_TXT += abrt-action-analyze-vmcore.txt +-MAN1_TXT += abrt-bodhi.txt + + MAN5_TXT = + MAN5_TXT += abrt.conf.txt +-MAN5_TXT += abrt-action-save-package-data.conf.txt + + MAN8_TXT = + MAN8_TXT += abrtd.txt abrt-dbus.txt +diff --git a/src/daemon/Makefile.am b/src/daemon/Makefile.am +index 2e24403..777dfc4 100644 +--- a/src/daemon/Makefile.am ++++ b/src/daemon/Makefile.am +@@ -6,9 +6,6 @@ dist_eventsconf_DATA = \ + bin_SCRIPTS = \ + abrt-handle-upload + +-bin_PROGRAMS = \ +- abrt-action-save-package-data +- + sbin_PROGRAMS = \ + abrtd \ + abrt-server +@@ -55,21 +52,6 @@ abrt_handle_event_LDADD = \ + $(LIBREPORT_LIBS) \ + $(BTPARSER_LIBS) + +-abrt_action_save_package_data_SOURCES = \ +- rpm.h rpm.c \ +- abrt-action-save-package-data.c +-abrt_action_save_package_data_CPPFLAGS = \ +- -I$(srcdir)/../include \ +- -I$(srcdir)/../lib \ +- -DCONF_DIR=\"$(CONF_DIR)\" \ +- $(GLIB_CFLAGS) \ +- $(LIBREPORT_CFLAGS) \ +- -D_GNU_SOURCE +-abrt_action_save_package_data_LDADD = \ +- $(RPM_LIBS) \ +- $(LIBREPORT_LIBS) \ +- ../lib/libabrt.la +- + daemonconfdir = $(CONF_DIR) + dist_daemonconf_DATA = \ + abrt.conf \ +diff --git a/src/daemon/abrt_event.conf b/src/daemon/abrt_event.conf +index a1411e4..aab7dc0 100644 +--- a/src/daemon/abrt_event.conf ++++ b/src/daemon/abrt_event.conf +@@ -44,7 +44,7 @@ + + + # Determine in which package/component the crash happened (if not yet done): +-EVENT=post-create component= remote!=1 ++#EVENT=post-create component= remote!=1 + abrt-action-save-package-data + + +@@ -60,19 +60,19 @@ EVENT=post-create + if [ -f uid ]; then getent passwd "`cat uid`" | cut -d: -f1 >username; fi + + +-EVENT=notify package!= uid!= ++EVENT=notify uid!= + dbus-send --system --type=signal /com/redhat/abrt com.redhat.abrt.Crash \ + string:"`cat package`" string:"$DUMP_DIR" string:"`cat uid`" + +-EVENT=notify package!= uid= ++EVENT=notify uid= + dbus-send --system --type=signal /com/redhat/abrt com.redhat.abrt.Crash \ + string:"`cat package`" string:"$DUMP_DIR" + +-EVENT=notify-dup package!= uid!= ++EVENT=notify-dup uid!= + dbus-send --system --type=signal /com/redhat/abrt com.redhat.abrt.Crash \ + string:"`cat package`" string:"$DUMP_DIR" string:"`cat uid`" + +-EVENT=notify-dup package!= uid= ++EVENT=notify-dup uid= + dbus-send --system --type=signal /com/redhat/abrt com.redhat.abrt.Crash \ + string:"`cat package`" string:"$DUMP_DIR" + +@@ -108,6 +108,10 @@ EVENT=notify-dup package!= uid= + #EVENT=post-create + reporter-upload -u scp://user:password@server.name/var/spool/abrt-upload || : + ++#report-gui event is used for reporting by abrt-applet and abrt-gui ++ ++EVENT=report-gui analyzer=CCpp ++ report-gtk -e analyze_LocalGDB -e report_Logger -- "$DUMP_DIR" + + #open-gui event is used by abrt-gui's "Edit"->"Open problem data" + +diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am +index 10ab579..f0248b1 100644 +--- a/src/plugins/Makefile.am ++++ b/src/plugins/Makefile.am +@@ -1,7 +1,6 @@ + -include ../../config.mak + + bin_SCRIPTS = \ +- abrt-action-install-debuginfo \ + abrt-action-analyze-core \ + abrt-action-analyze-vmcore \ + abrt-action-list-dsos +@@ -16,12 +15,7 @@ bin_PROGRAMS = \ + abrt-action-trim-files \ + abrt-action-generate-backtrace \ + abrt-action-generate-core-backtrace \ +- abrt-action-analyze-backtrace \ +- abrt-retrace-client \ +- abrt-dedup-client \ +- abrt-bodhi +- +-libexec_PROGRAMS = abrt-action-install-debuginfo-to-abrt-cache ++ abrt-action-analyze-backtrace + + #dist_pluginsconf_DATA = Python.conf + +@@ -44,7 +38,6 @@ eventsconfdir = $(EVENTS_CONF_DIR) + + dist_eventsconf_DATA = \ + ccpp_event.conf \ +- ccpp_retrace_event.conf \ + koops_event.conf \ + xorg_event.conf \ + vmcore_event.conf \ +@@ -56,7 +49,6 @@ dist_eventsconf_DATA = \ + + + PYTHON_FILES = \ +- abrt-action-install-debuginfo.in \ + abrt-action-list-dsos \ + abrt-action-analyze-core \ + abrt-action-analyze-vmcore.in +@@ -69,7 +61,6 @@ EXTRA_DIST = \ + collect_vimrc_user.xml.in \ + collect_vimrc_system.xml.in \ + analyze_LocalGDB.xml.in \ +- analyze_RetraceServer.xml.in \ + analyze_VMcore.xml.in \ + abrt-action-analyze-vmcore \ + https-utils.h \ +@@ -204,64 +195,4 @@ abrt_action_analyze_backtrace_LDADD = \ + $(LIBREPORT_LIBS) \ + $(BTPARSER_LIBS) + +-abrt_action_install_debuginfo_to_abrt_cache_SOURCES = \ +- abrt-action-install-debuginfo-to-abrt-cache.c +-abrt_action_install_debuginfo_to_abrt_cache_CPPFLAGS = \ +- -I$(srcdir)/../include \ +- -I$(srcdir)/../lib \ +- -D_GNU_SOURCE \ +- $(LIBREPORT_CFLAGS) \ +- -Wall -Wwrite-strings +-abrt_action_install_debuginfo_to_abrt_cache_LDADD = \ +- $(LIBREPORT_LIBS) \ +- ../lib/libabrt.la +- +-abrt_retrace_client_SOURCES = \ +- abrt-retrace-client.c \ +- https-utils.c +- abrt_retrace_client_CFLAGS = \ +- -I$(srcdir)/../include \ +- -I$(srcdir)/../lib \ +- $(NSS_CFLAGS) \ +- $(GLIB_CFLAGS) \ +- -D_GNU_SOURCE \ +- $(LIBREPORT_CFLAGS) +- abrt_retrace_client_LDADD = \ +- $(LIBREPORT_LIBS) \ +- $(BTPARSER_LIBS) \ +- $(NSS_LIBS) +- +-abrt_dedup_client_SOURCES = \ +- abrt-dedup-client.c \ +- https-utils.c +- abrt_dedup_client_CFLAGS = \ +- -I$(srcdir)/../include \ +- -I$(srcdir)/../lib \ +- $(NSS_CFLAGS) \ +- $(GLIB_CFLAGS) \ +- -D_GNU_SOURCE \ +- $(LIBREPORT_CFLAGS) +- abrt_dedup_client_LDADD = \ +- $(LIBREPORT_LIBS) \ +- $(BTPARSER_LIBS) \ +- $(NSS_LIBS) +- +-abrt_bodhi_SOURCES = \ +- bodhi.c +- abrt_bodhi_CPPFLAGS = \ +- -I$(srcdir)/../include \ +- -I$(srcdir)/../lib \ +- $(GLIB_CFLAGS) \ +- $(LIBREPORT_CFLAGS) \ +- $(LIBREPORT_WEB_CFLAGS) \ +- $(JSON_C_CFLAGS) \ +- $(RPM_CFLAGS) \ +- -D_GNU_SOURCE +- abrt_bodhi_LDADD = \ +- $(JSON_C_LIBS) \ +- $(RPM_LIBS) \ +- $(LIBREPORT_LIBS) \ +- $(LIBREPORT_WEB_LIBS) +- +- + DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ +diff --git a/src/plugins/abrt-action-list-dsos b/src/plugins/abrt-action-list-dsos +index 81a9927..bf1491c 100644 +--- a/src/plugins/abrt-action-list-dsos ++++ b/src/plugins/abrt-action-list-dsos +@@ -5,7 +5,6 @@ + import sys + import os + import getopt +-import rpm + + def log(s): + sys.stderr.write("%s\n" % s) +@@ -68,19 +67,10 @@ if __name__ == "__main__": + try: + dso_paths = parse_maps(memfile) + for path in dso_paths: +- ts = rpm.TransactionSet() +- mi = ts.dbMatch('basenames', path) +- if len(mi): +- for h in mi: +- if outname: +- outfile = xopen(outname, "w") +- outname = None +- outfile.write("%s %s (%s) %s\n" % +- (path, +- h[rpm.RPMTAG_NEVRA], +- h[rpm.RPMTAG_VENDOR], +- h[rpm.RPMTAG_INSTALLTIME]) +- ) ++ if outname: ++ outfile = xopen(outname, "w") ++ outname = None ++ outfile.write(path) + + except Exception, ex: + error_msg_and_die("Can't get the DSO list: %s" % ex) +diff --git a/src/plugins/ccpp_event.conf b/src/plugins/ccpp_event.conf +index 81b14d2..cda0b7d 100644 +--- a/src/plugins/ccpp_event.conf ++++ b/src/plugins/ccpp_event.conf +@@ -31,31 +31,4 @@ EVENT=collect_xsession_errors analyzer=CCpp dso_list~=.*/libX11.* + # or was this ability lost with move to python installer? + EVENT=analyze_LocalGDB analyzer=CCpp + abrt-action-analyze-core --core=coredump -o build_ids && +- /usr/libexec/abrt-action-install-debuginfo-to-abrt-cache --size_mb=4096 && +- abrt-action-generate-backtrace && +- abrt-action-analyze-backtrace && +- ( +- bug_id=$(reporter-bugzilla -h `cat duphash`) && +- if test -n "$bug_id"; then +- abrt-bodhi -r -b $bug_id +- fi +- ) +- +- +-# Bugzilla requires nonempty duphash +-EVENT=report_Bugzilla analyzer=CCpp duphash!= +- abrt-dedup-client +- test -f component || abrt-action-save-package-data +- reporter-bugzilla -b -c /etc/libreport/plugins/bugzilla.conf +- +-# Send micro report +-EVENT=report_uReport analyzer=CCpp +- reporter-ureport +- +-# update ABRT database after successful report to bugzilla +-EVENT=post_report analyzer=CCpp +- reporter-ureport -r +- +-# Reporting of C/Cpp problems +-EVENT=report-gui analyzer=CCpp +- report-gtk -e report_uReport -e analyze_RetraceServer -e report_Bugzilla -e post_report -- "$DUMP_DIR" ++ abrt-action-generate-backtrace +diff --git a/src/plugins/ccpp_retrace_event.conf b/src/plugins/ccpp_retrace_event.conf +index 60e53d7..893502f 100644 +--- a/src/plugins/ccpp_retrace_event.conf ++++ b/src/plugins/ccpp_retrace_event.conf +@@ -1,9 +1,3 @@ + EVENT=analyze_RetraceServer analyzer=CCpp + abrt-retrace-client batch --dir "$DUMP_DIR" --status-delay 10 && +- abrt-action-analyze-backtrace && +- ( +- bug_id=$(reporter-bugzilla -h `cat duphash`) && +- if test -n "$bug_id"; then +- abrt-bodhi -r -b $bug_id +- fi +- ) ++ abrt-action-analyze-backtrace +diff --git a/src/plugins/koops_event.conf b/src/plugins/koops_event.conf +index 91759b1..41708df 100644 +--- a/src/plugins/koops_event.conf ++++ b/src/plugins/koops_event.conf +@@ -14,18 +14,3 @@ EVENT=post-create analyzer=Kerneloops + # report + #EVENT=report_Kerneloops analyzer=Kerneloops + reporter-kerneloops +- +-EVENT=report_Bugzilla analyzer=Kerneloops +- reporter-bugzilla -b +- +-# Send micro report +-EVENT=report_uReport analyzer=Kerneloops +- reporter-ureport +- +-# update ABRT database after successful report to bugzilla +-EVENT=post_report analyzer=Kerneloops +- reporter-ureport -r +- +-# Reporting of kernel oopses +-EVENT=report-gui analyzer=Kerneloops +- report-gtk -e report_uReport -e report_Bugzilla -e post_report -- "$DUMP_DIR" +diff --git a/src/plugins/python_event.conf b/src/plugins/python_event.conf +index e60df11..66b41f2 100644 +--- a/src/plugins/python_event.conf ++++ b/src/plugins/python_event.conf +@@ -1,19 +1,3 @@ + EVENT=post-create analyzer=Python + abrt-action-analyze-python + abrt-action-generate-core-backtrace +- +-EVENT=report_Bugzilla analyzer=Python +- test -f component || abrt-action-save-package-data +- reporter-bugzilla -b -c /etc/libreport/plugins/bugzilla.conf +- +-# Send micro report +-EVENT=report_uReport analyzer=Python +- reporter-ureport +- +-# update ABRT database after successful report to bugzilla +-EVENT=post_report analyzer=Python +- reporter-ureport -r +- +-# Reporting of python exceptions +-EVENT=report-gui analyzer=Python +- report-gtk -e report_uReport -e report_Bugzilla -e post_report -- "$DUMP_DIR" +diff --git a/src/plugins/xorg_event.conf b/src/plugins/xorg_event.conf +index b974a6b..5476230 100644 +--- a/src/plugins/xorg_event.conf ++++ b/src/plugins/xorg_event.conf +@@ -33,4 +33,4 @@ EVENT=report_Bugzilla analyzer=xorg + + # Reporting of xorg problems + EVENT=report-gui analyzer=xorg +- report-gtk -e report_Bugzilla -- "$DUMP_DIR" ++ report-gtk -e report_Logger -- "$DUMP_DIR" +-- +1.7.12 + diff --git a/app-admin/abrt/files/abrt-2.0.12-r1-conf b/app-admin/abrt/files/abrt-2.0.12-r1-conf new file mode 100644 index 000000000000..073eb0daf82e --- /dev/null +++ b/app-admin/abrt/files/abrt-2.0.12-r1-conf @@ -0,0 +1,27 @@ +# abrtd command-line options +# Default: "" +ABRTD_OPTS="" + +# Run abrt-harvest-vmcore to make new kdump dumps available for abrtd +START_VMCORE="yes" + +# Install abrt-ccpp hook to watch for segfaults +START_CCPP="yes" + +# Call abrt-dump-oops to log kernel oops +START_OOPS="yes" +# log file to watch for kernel oops +# Default: "/var/log/messages" +OOPS_WATCH_LOG="/var/log/messages" +# abrt-dump-oops command-line options +# Default: "-xD" +OOPS_DUMP_OPTS="-xD" + +# Call abrt-dump-xorg to log X crashes +START_XORG="yes" +# log file to watch for X crashes +# Default: "/var/log/Xorg.0.log" +XORG_WATCH_LOG="/var/log/Xorg.0.log" +# abrt-dump-xorg command-line options +# Default: "-xD" +XORG_DUMP_OPTS="-xD" diff --git a/app-admin/abrt/files/abrt-2.0.12-r1-init b/app-admin/abrt/files/abrt-2.0.12-r1-init new file mode 100644 index 000000000000..b3e57431bf48 --- /dev/null +++ b/app-admin/abrt/files/abrt-2.0.12-r1-init @@ -0,0 +1,77 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +description="Automated crash detection service" + +depend() { + need dbus logger +} + +start() { + ebegin "Starting abrtd" + start-stop-daemon --start --quiet --pidfile /var/run/abrt/abrtd.pid \ + --exec /usr/sbin/abrtd -- ${ABRTD_OPTS} + eend $? + + if [[ "${START_VMCORE}" = "yes" ]]; then + ebegin "Running abrt-harvest-vmcore" + /usr/sbin/abrt-harvest-vmcore + eend $? + fi + + if [[ "${START_CCPP}" = "yes" ]]; then + ebegin "Installing abrt-ccpp hook" + /usr/sbin/abrt-install-ccpp-hook install + eend $? + fi + + if [[ "${START_OOPS}" = "yes" ]]; then + ebegin "Starting abrt-dump-oops" + start-stop-daemon --start --quiet \ + --pidfile /var/run/abrt/abrt-dump-oops.pid \ + --make-pidfile --background \ + --exec /usr/bin/abrt-watch-log -- \ + -F "`/usr/bin/abrt-dump-oops -m`" ${OOPS_WATCH_LOG} -- \ + /usr/bin/abrt-dump-oops ${OOPS_DUMP_OPTS} + eend $? + fi + + if [[ "${START_XORG}" = "yes" ]]; then + ebegin "Starting abrt-dump-xorg" + start-stop-daemon --start --quiet \ + --pidfile /var/run/abrt/abrt-dump-xorg.pid \ + --make-pidfile --background \ + --exec /usr/bin/abrt-watch-log -- \ + -F "`/usr/bin/abrt-dump-xorg -m`" ${XORG_WATCH_LOG} -- \ + /usr/bin/abrt-dump-xorg ${XORG_DUMP_OPTS} + eend $? + fi +} + +stop() { + if [[ "${START_XORG}" = "yes" ]]; then + ebegin "Stopping abrt-dump-xorg" + start-stop-daemon --stop --quiet \ + --pidfile /var/run/abrt/abrt-dump-xorg.pid + eend $? + fi + + if [[ "${START_OOPS}" = "yes" ]]; then + ebegin "Stopping abrt-dump-oops" + start-stop-daemon --stop --quiet \ + --pidfile /var/run/abrt/abrt-dump-oops.pid + eend $? + fi + + if [[ "${START_CCPP}" = "yes" ]]; then + ebegin "Uninstalling abrt-ccpp hook" + /usr/sbin/abrt-install-ccpp-hook uninstall + eend $? + fi + + ebegin "Stopping abrtd" + start-stop-daemon --stop --quiet --pidfile /var/run/abrt/abrtd.pid + eend $? +} diff --git a/app-admin/abrt/files/abrt-2.0.6-format-security.patch b/app-admin/abrt/files/abrt-2.0.6-format-security.patch new file mode 100644 index 000000000000..6b5c8d0e3721 --- /dev/null +++ b/app-admin/abrt/files/abrt-2.0.6-format-security.patch @@ -0,0 +1,27 @@ +From d0d7954713541df4612ab5b54b2808aae9a3d6f0 Mon Sep 17 00:00:00 2001 +From: Alexandre Rostovtsev <tetromino@gentoo.org> +Date: Wed, 16 Nov 2011 00:41:10 -0500 +Subject: [PATCH] Don't use server response as a format string + +It's bad practice even for trusted servers, and makes gcc complain about +format-security. +--- + src/plugins/abrt-retrace-client.c | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/src/plugins/abrt-retrace-client.c b/src/plugins/abrt-retrace-client.c +index 0fb17a3..4c30334 100644 +--- a/src/plugins/abrt-retrace-client.c ++++ b/src/plugins/abrt-retrace-client.c +@@ -958,7 +958,7 @@ static int create(bool delete_temp_archive, + if (response_code == 500 || response_code == 507) + { + alert_server_error(); +- error_msg_and_die(http_body); ++ error_msg_and_die("%s", http_body); + } + else if (response_code == 403) + { +-- +1.7.8.rc1 + diff --git a/app-admin/abrt/metadata.xml b/app-admin/abrt/metadata.xml new file mode 100644 index 000000000000..dad9001338dc --- /dev/null +++ b/app-admin/abrt/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>gnome</herd> +</pkgmetadata> diff --git a/app-admin/amazon-ec2-init/amazon-ec2-init-20101127.ebuild b/app-admin/amazon-ec2-init/amazon-ec2-init-20101127.ebuild new file mode 100644 index 000000000000..885b6f872592 --- /dev/null +++ b/app-admin/amazon-ec2-init/amazon-ec2-init-20101127.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +DESCRIPTION="Init script to setup Amazon EC2 instance parameters" +HOMEPAGE="http://www.gentoo.org/" +SRC_URI="" + +# Amazon only provides x86 and amd64 Linux Xen guests, possibly FreeBSD, +# so just don't go adding further keywords. +KEYWORDS="-* ~amd64 ~x86" + +LICENSE="GPL-2" +SLOT="0" +IUSE="" + +RDEPEND="net-misc/wget" +DEPEND="" + +src_install() { + newinitd "${FILESDIR}/amazon-ec2.init" amazon-ec2 || die +} + +pkg_postinst() { + elog "Remember to add amazon-ec2 init script to your boot runlevel" + elog "otherwise it won't bring up the correct interfaces and won't." + elog "start before the hostname has been set." +} diff --git a/app-admin/amazon-ec2-init/files/amazon-ec2.init b/app-admin/amazon-ec2-init/files/amazon-ec2.init new file mode 100644 index 000000000000..4a13e5aaf547 --- /dev/null +++ b/app-admin/amazon-ec2-init/files/amazon-ec2.init @@ -0,0 +1,35 @@ +#!/sbin/runscript +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + before hostname + need net.eth0 +} + +start() { + einfo "Fetching metadata from EC2 servers" + + ebegin " hostname" + local hostname=$(wget -t 2 -T 5 -q -O - http://169.254.169.254/latest/meta-data/local-hostname) + echo "hostname=${hostname}" >> /etc/conf.d/hostname + eend $? + + ebegin " SSH keys" + + mkdir -p /root/.ssh + + local keys=$(wget -t 2 -T 5 -q -O - http://169.254.169.254/latest/meta-data/public-keys/ | cut -d = -f 1 | xargs echo) + [ -n "${keys}" ] && \ + wget -t 2 -T 5 -q -O - $(for key in $keys; do echo "http://169.254.169.254/latest/meta-data/public-keys/$key/openssh-key"; done) \ + >> /root/.ssh/authorized_keys \ + 2>/dev/null + + if [ -f /root/.ssh/authorized_keys ]; then + chown root:root /root/.ssh/authorized_keys + chmod 0600 /root/.ssh/authorized_keys + fi + + eend $? +} diff --git a/app-admin/amazon-ec2-init/metadata.xml b/app-admin/amazon-ec2-init/metadata.xml new file mode 100644 index 000000000000..1470e032181b --- /dev/null +++ b/app-admin/amazon-ec2-init/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/app-admin/analog/Manifest b/app-admin/analog/Manifest new file mode 100644 index 000000000000..173efca8b0ac --- /dev/null +++ b/app-admin/analog/Manifest @@ -0,0 +1 @@ +DIST analog-6.0.tar.gz 1553316 SHA256 31c0e2bedd0968f9d4657db233b20427d8c497be98194daf19d6f859d7f6fcca SHA512 42b766d45f86a32d2e97cc2be35ebb5f4e0ffc2fb72d48196939027ea1ed3398a8cc0a43c47868f542bfb464199ab35bd93fa2ba5e37c4fc83ff15cfe19b9c60 WHIRLPOOL fd5b2685cf443a3336904973cfd2985a2393a5d021b06708d23ac717f6e4f53310942923ae3e41c69640d22b435e6bd0d44647502ec50af7b0517f9f48aa14cb diff --git a/app-admin/analog/analog-6.0-r4.ebuild b/app-admin/analog/analog-6.0-r4.ebuild new file mode 100644 index 000000000000..344dd3829a6f --- /dev/null +++ b/app-admin/analog/analog-6.0-r4.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils toolchain-funcs + +DESCRIPTION="A webserver log analyzer" +HOMEPAGE="http://www.analog.cx/" +SRC_URI="http://www.analog.cx/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ppc ppc64 sparc x86" +IUSE="" + +DEPEND=">=dev-libs/libpcre-3.4 + >=media-libs/gd-1.8.4-r2[jpeg,png] + sys-libs/zlib" +RDEPEND="${DEPEND}" + +src_prepare() { + cd src/ + epatch "${FILESDIR}/${PN}-5.1-gentoo.diff" + epatch "${FILESDIR}/${P}-bzip2.patch" + epatch "${FILESDIR}/${P}-undefined-macro.patch" + + sed -i Makefile \ + -e 's| -o | $(LDFLAGS)&|g' \ + || die "sed Makefile" +} + +src_compile() { + tc-export CC + # emake in main dir just executes "cd src && make", + # i.e. MAKEOPTS are ignored + emake -C src +} + +src_install() { + dobin analog + newman analog.man analog.1 + + dodoc README.txt Licence.txt analog.cfg + dohtml -a html,gif,css,ico docs/* + dohtml -r how-to + dodoc -r examples + docinto cgi ; dodoc anlgform.pl + + insinto /usr/share/analog/images ; doins images/* + insinto /usr/share/analog/lang ; doins lang/* + dodir /var/log/analog + dosym /usr/share/analog/images /var/log/analog/images + insinto /etc/analog ; doins "${FILESDIR}/analog.cfg" +} diff --git a/app-admin/analog/files/analog-5.1-gentoo.diff b/app-admin/analog/files/analog-5.1-gentoo.diff new file mode 100644 index 000000000000..b604c254c572 --- /dev/null +++ b/app-admin/analog/files/analog-5.1-gentoo.diff @@ -0,0 +1,20 @@ +--- a/src/anlghead.h Wed Nov 7 06:06:46 2001 ++++ b/src/anlghead.h Mon Dec 31 16:47:43 2001 +@@ -81,15 +81,11 @@ + and use that directory; or the current directory if it couldn't deduce a + directory. This may or may not work, so it's better to specify a location + explicitly here if you know where the files will be kept. */ +-#ifndef LANGDIR +-#define LANGDIR NULL +-#endif ++#define LANGDIR "/usr/share/analog/lang/" + /* Directory where the language files live. Actually, if this one is defined + to be NULL, they will be looked for inside the "lang" subdirectory of the + directory containing the analog binary. */ +-#ifndef CONFIGDIR +-#define CONFIGDIR NULL +-#endif ++#define CONFIGDIR "/etc/analog/" + /* Directory containing configuration files. */ + #ifndef LOGSDIR + #define LOGSDIR NULL diff --git a/app-admin/analog/files/analog-6.0-bzip2.patch b/app-admin/analog/files/analog-6.0-bzip2.patch new file mode 100644 index 000000000000..f950a30ef470 --- /dev/null +++ b/app-admin/analog/files/analog-6.0-bzip2.patch @@ -0,0 +1,64 @@ +Use system bzip2 library. Get CC and CFLAGS from environment. + -jer (bug #249140) + + +--- a/src/Makefile 2004-12-19 14:51:30.000000000 +0100 ++++ b/src/Makefile 2008-12-15 22:50:04.000000000 +0100 +@@ -2,16 +2,16 @@ + # Please read docs/Readme.html, or http://www.analog.cx/ + # This is a general Unix-like Makefile: Makefiles for other OS's can be found + # in the "build" directory. +-CC = gcc # which compiler to use: eg cc, acc, gcc. NB Different ++# CC is set in the environment. + # compilers need different CFLAGS, e.g., -O instead of -O2. + MAKE = make # which "make" to use +-CFLAGS = -O2 # options, e.g. for optimisation or ANSI compilation. ++# CFLAGS is set in the environment. + # Some OS's need -D_FILE_OFFSET_BITS=64 to support files > 2MB. + # HP/UX cc needs CFLAGS = -Aa (HP/UX 9) or -Ae (HP/UX 10) + # BeOS needs CFLAGS = -O2 -Wl,-L/boot/home/config/lib + # BS2000/OSD needs CFLAGS = -XLLML -XLLMK + # NeXTSTEP needs CFLAGS = -O2 -pipe -no-precomp +-DEFS = # any combination of -DNOPIPES -DNODNS -DNODIRENT -DNOGLOB ... ++DEFS = -DHAVE_GD -DHAVE_PCRE -DHAVE_ZLIB -DHAVE_BZLIB + # ... -DNOOPEN -DNOFOLLOW -DNOALARM -DNOGRAPHICS -DNOGMTIME ... + # ... -DEBCDIC -DUSE_PLAIN_SETJMP ... + # ... -DHAVE_GD -DHAVE_ZLIB -DHAVE_BZLIB -DHAVE_PCRE ... +@@ -30,7 +30,7 @@ + # + OS = UNIX # Operating system: UNIX, DOS, WIN32, MAC, OS2, OSX, VMS + # RISCOS, BEOS, NEXTSTEP, MPEIX, BS2000, AS400, OS390 +-LIBS = -lm # extra libraries needed; most platforms (but not OS X or BeOS) ++LIBS = -lgd -lz -lbz2 -lpcre -lm -lpng -ljpeg + # need -lm LAST + # if you defined HAVE_GD above you also need -lgd -lpng -ljpeg -lz + # if you defined HAVE_ZLIB above you also need -lz +@@ -54,7 +54,7 @@ + input.o macinput.o macstuff.o output.o output2.o outcro.o outhtml.o \ + outlatex.o outplain.o outxhtml.o outxml.o process.o settings.o sort.o \ + tree.o utils.o win32.o +-SUBDIRS = bzip2 libgd libpng pcre unzip zlib ++SUBDIRS = libgd libpng pcre unzip zlib + SUBDIROBJS = libgd/gd.o libgd/gd_io.o libgd/gd_io_file.o libgd/gd_png.o \ + libgd/gdfontf.o libgd/gdfonts.o libgd/gdtables.o \ + libpng/png.o libpng/pngerror.o libpng/pngmem.o libpng/pngset.o \ +@@ -63,9 +63,7 @@ + zlib/adler32.o zlib/compress.o zlib/crc32.o zlib/deflate.o \ + zlib/gzio.o zlib/infblock.o zlib/infcodes.o zlib/inffast.o \ + zlib/inflate.o zlib/inftrees.o zlib/infutil.o zlib/trees.o \ +- zlib/uncompr.o zlib/zutil.o unzip/ioapi.o unzip/unzip.o \ +- bzip2/bzlib.o bzip2/blocksort.o bzip2/compress.o bzip2/crctable.o \ +- bzip2/decompress.o bzip2/huffman.o bzip2/randtable.o ++ zlib/uncompr.o zlib/zutil.o unzip/ioapi.o unzip/unzip.o + HEADERS = anlghead.h anlghea2.h anlghea3.h anlghea4.h macdir.h \ + pcre/pcre.h libgd/gd.h libgd/gdfontf.h libgd/gdfonts.h unzip/unzip.h \ + zlib/zlib.h bzip2/bzlib.h +@@ -77,8 +75,6 @@ + + # There doesn't seem to be a good way to write all these rules in a generic + # form that works for all "make" programs +-bzip2: ALWAYS +- cd bzip2 && $(MAKE) 'CC=$(CC)' 'ALLCFLAGS=$(ALLCFLAGS)' + + libgd: ALWAYS + cd libgd && $(MAKE) 'CC=$(CC)' 'ALLCFLAGS=$(ALLCFLAGS)' diff --git a/app-admin/analog/files/analog-6.0-undefined-macro.patch b/app-admin/analog/files/analog-6.0-undefined-macro.patch new file mode 100644 index 000000000000..5a98541c465c --- /dev/null +++ b/app-admin/analog/files/analog-6.0-undefined-macro.patch @@ -0,0 +1,38 @@ +--- a/src/unzip/ioapi.h 2004-12-19 14:51:32.000000000 +0100 ++++ b/src/unzip/ioapi.h 2012-01-11 18:07:59.570768250 +0100 +@@ -35,6 +35,16 @@ + extern "C" { + #endif + ++/* Work-around for NetBSD. Its zconf.h doesn't define OF(x) */ ++#ifndef OF ++#ifdef __STDC__ ++#define OF(x) x ++#else ++#define OF(x) () ++#endif ++#endif ++ ++ + typedef voidpf (ZCALLBACK *open_file_func) OF((voidpf opaque, const char* filename, int mode)); + typedef uLong (ZCALLBACK *read_file_func) OF((voidpf opaque, voidpf stream, void* buf, uLong size)); + typedef uLong (ZCALLBACK *write_file_func) OF((voidpf opaque, voidpf stream, const void* buf, uLong size)); +--- a/src/unzip/unzip.h 2004-12-19 14:51:32.000000000 +0100 ++++ b/src/unzip/unzip.h 2012-01-11 18:00:25.988120225 +0100 +@@ -47,6 +47,15 @@ + extern "C" { + #endif + ++/* Work-around for NetBSD. Its zconf.h doesn't define OF(x) */ ++#ifndef OF ++#ifdef __STDC__ ++#define OF(x) x ++#else ++#define OF(x) () ++#endif ++#endif ++ + #ifndef _ZLIB_H + #include "../zlib/zlib.h" + #endif + diff --git a/app-admin/analog/files/analog.cfg b/app-admin/analog/files/analog.cfg new file mode 100644 index 000000000000..99e452b36e3d --- /dev/null +++ b/app-admin/analog/files/analog.cfg @@ -0,0 +1,101 @@ +# Configuration file for analog 5.1 +# See http://www.analog.cx/ +# +# This is a simple default configuration file which works when you run +# analog with no command line parameters. There are much more extensive +# configuration examples included with the documentation. +# See the big.cfg example file. +# +# If you need a LOGFORMAT command (most people don't -- try it without first!), +# it must go here, above the LOGFILE commands. +LOGFILE /var/log/apache/access_log +OUTFILE /var/log/analog/index.html +LANGUAGE ENGLISH +IMAGEDIR images/ +# HOSTNAME "[my organisation]" +REQLINKINCLUDE pages +REFLINKINCLUDE * +REDIRREFLINKINCLUDE * +FAILREFLINKINCLUDE * +UNCOMPRESS *.gz,*.Z "gzip -cd" +BROWOUTPUTALIAS IWENG AOL +SUBBROW */* +SUBTYPE *.gz,*.Z +# Add whichever of these types of pages you have on your server, or others. +# PAGEINCLUDE *.shtml +# PAGEINCLUDE *.asp +# PAGEINCLUDE *.jsp +# PAGEINCLUDE *.cfm +# PAGEINCLUDE *.pl +# PAGEINCLUDE *.php +SEARCHENGINE http://*altavista.*/* q +SEARCHENGINE http://*yahoo.*/* p +SEARCHENGINE http://*google.*/* q +SEARCHENGINE http://*lycos.*/* query +SEARCHENGINE http://*aol.*/* query +SEARCHENGINE http://*excite.*/* search +SEARCHENGINE http://*go2net.*/* general +SEARCHENGINE http://*metacrawler.*/* general +SEARCHENGINE http://*msn.*/* MT +SEARCHENGINE http://*hotbot.com/* MT +SEARCHENGINE http://*netscape.*/* search +SEARCHENGINE http://*looksmart.*/* key +SEARCHENGINE http://*infoseek.*/* qt +SEARCHENGINE http://*webcrawler.*/* search,searchText +SEARCHENGINE http://*goto.*/* Keywords +SEARCHENGINE http://*snap.*/* keyword +SEARCHENGINE http://*dogpile.*/* q +SEARCHENGINE http://*askjeeves.*/* ask +SEARCHENGINE http://*ask.*/* ask +SEARCHENGINE http://*aj.*/* ask +SEARCHENGINE http://*directhit.*/* qry +SEARCHENGINE http://*alltheweb.*/* query +SEARCHENGINE http://*northernlight.*/* qr +SEARCHENGINE http://*nlsearch.*/* qr +SEARCHENGINE http://*dmoz.*/* search +SEARCHENGINE http://*newhoo.*/* search +SEARCHENGINE http://*netfind.*/* query,search,s +SEARCHENGINE http://*/netfind* query +SEARCHENGINE http://*/pursuit query +ROBOTINCLUDE REGEXPI:robot +ROBOTINCLUDE REGEXPI:spider +ROBOTINCLUDE REGEXPI:crawler +ROBOTINCLUDE Googlebot* +ROBOTINCLUDE Infoseek* +ROBOTINCLUDE Scooter* +ROBOTINCLUDE Slurp* +ROBOTINCLUDE Ultraseek* +TYPEOUTPUTALIAS .html ".html [Hypertext Markup Language]" +TYPEOUTPUTALIAS .htm ".htm [Hypertext Markup Language]" +TYPEOUTPUTALIAS .shtml ".shtml [Server-parsed HTML]" +TYPEOUTPUTALIAS .ps ".ps [PostScript]" +TYPEOUTPUTALIAS .gz ".gz [Gzip compressed files]" +TYPEOUTPUTALIAS .tar.gz ".tar.gz [Compressed archives]" +TYPEOUTPUTALIAS .jpg ".jpg [JPEG graphics]" +TYPEOUTPUTALIAS .jpeg ".jpeg [JPEG graphics]" +TYPEOUTPUTALIAS .gif ".gif [GIF graphics]" +TYPEOUTPUTALIAS .png ".png [PNG graphics]" +TYPEOUTPUTALIAS .txt ".txt [Plain text]" +TYPEOUTPUTALIAS .cgi ".cgi [CGI scripts]" +TYPEOUTPUTALIAS .pl ".pl [Perl scripts]" +TYPEOUTPUTALIAS .css ".css [Cascading Style Sheets]" +TYPEOUTPUTALIAS .class ".class [Java class files]" +TYPEOUTPUTALIAS .pdf ".pdf [Adobe Portable Document Format]" +TYPEOUTPUTALIAS .zip ".zip [Zip archives]" +TYPEOUTPUTALIAS .hqx ".hqx [Macintosh archives]" +TYPEOUTPUTALIAS .exe ".exe [Executables]" +TYPEOUTPUTALIAS .wav ".wav [WAV sound files]" +TYPEOUTPUTALIAS .avi ".avi [AVI movies]" +TYPEOUTPUTALIAS .arc ".arc [Compressed archives]" +TYPEOUTPUTALIAS .mid ".mid [MIDI sound files]" +TYPEOUTPUTALIAS .mp3 ".mp3 [MP3 sound files]" +TYPEOUTPUTALIAS .doc ".doc [Microsoft Word document]" +TYPEOUTPUTALIAS .rtf ".rtf [Rich Text Format]" +TYPEOUTPUTALIAS .mov ".mov [Quick Time movie]" +TYPEOUTPUTALIAS .mpg ".mpg [MPEG movie]" +TYPEOUTPUTALIAS .mpeg ".mpeg [MPEG movie]" +TYPEOUTPUTALIAS .asp ".asp [Active Server Pages]" +TYPEOUTPUTALIAS .jsp ".jsp [Java Server Pages]" +TYPEOUTPUTALIAS .cfm ".cfm [Cold Fusion]" +TYPEOUTPUTALIAS .php ".php [PHP]" +TYPEOUTPUTALIAS .js ".js [JavaScript code]" diff --git a/app-admin/analog/metadata.xml b/app-admin/analog/metadata.xml new file mode 100644 index 000000000000..f9d50da18d39 --- /dev/null +++ b/app-admin/analog/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> + <email>maintainer-needed@gentoo.org</email> + <description>This package lacks a primary herd or maintainer.</description> + </maintainer> +</pkgmetadata> diff --git a/app-admin/ansible/Manifest b/app-admin/ansible/Manifest new file mode 100644 index 000000000000..282ffd0a6332 --- /dev/null +++ b/app-admin/ansible/Manifest @@ -0,0 +1 @@ +DIST ansible-1.9.2.tar.gz 927525 SHA256 c25ef4738b08fdfb3094247c012f3fd1b29972acbd37f988070b2a85f5fbee00 SHA512 6c0b3eaac11e11bf90f5b63c54da86df0cb33b0ee98c987c48a68fa643b39e9f0817884767f2bd9c0f6e8852d37fd1b197d5299abc574fccc181fbb22985d4ad WHIRLPOOL 19d50845b9920d85c5ce0380303144e7a4237e673dd4beb5ff020042d7bac59dc0706cff88f08155029ce1a3aa9decc3c54261f9f16524b6e5e3b42e599d3a6b diff --git a/app-admin/ansible/ansible-1.9.2.ebuild b/app-admin/ansible/ansible-1.9.2.ebuild new file mode 100644 index 000000000000..a08091ba13b4 --- /dev/null +++ b/app-admin/ansible/ansible-1.9.2.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 eutils readme.gentoo + +DESCRIPTION="Radically simple deployment, model-driven configuration management, and command execution framework" +HOMEPAGE="http://ansible.com/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86 ~x64-macos" +IUSE="test" + +RDEPEND=" + dev-python/httplib2[${PYTHON_USEDEP}] + dev-python/jinja[${PYTHON_USEDEP}] + dev-python/keyczar[${PYTHON_USEDEP}] + >=dev-python/pycrypto-2.6[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + net-misc/sshpass + virtual/ssh +" +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + ${RDEPEND} + dev-python/mock[${PYTHON_USEDEP}] + dev-python/nose[${PYTHON_USEDEP}] + dev-python/passlib[${PYTHON_USEDEP}] + dev-vcs/git + )" + +# not included in release tarball +RESTRICT="test" + +python_test() { + nosetests -d -w test/units -v --with-coverage --cover-package=ansible --cover-branches || die +} + +python_install_all() { + EXAMPLES=( examples ) + distutils-r1_python_install_all + + doman docs/man/man1/*.1 + + newenvd "${FILESDIR}"/${PN}.env 95ansible +} + +src_install() { + distutils-r1_src_install + readme.gentoo_create_doc +} + +pkg_postinst() { + optfeature "Alternative ssh transport" dev-python/paramiko +} diff --git a/app-admin/ansible/ansible-9999.ebuild b/app-admin/ansible/ansible-9999.ebuild new file mode 100644 index 000000000000..175ebc5dcfbf --- /dev/null +++ b/app-admin/ansible/ansible-9999.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 git-r3 readme.gentoo + +DESCRIPTION="Radically simple deployment, model-driven configuration management, and command execution framework" +HOMEPAGE="http://ansible.com/" +SRC_URI="" +EGIT_REPO_URI="git://github.com/ansible/ansible.git" +EGIT_BRANCH="devel" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="" +IUSE="test" + +RDEPEND=" + dev-python/httplib2[${PYTHON_USEDEP}] + dev-python/jinja[${PYTHON_USEDEP}] + dev-python/keyczar[${PYTHON_USEDEP}] + >=dev-python/pycrypto-2.6[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + net-misc/sshpass + virtual/ssh +" +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + ${RDEPEND} + dev-python/mock[${PYTHON_USEDEP}] + dev-python/nose[${PYTHON_USEDEP}] + dev-python/passlib[${PYTHON_USEDEP}] + dev-vcs/git + )" + +python_test() { + nosetests -d -w test/units -v --with-coverage --cover-package=ansible --cover-branches || die +} + +python_install_all() { + EXAMPLES=( examples ) + distutils-r1_python_install_all + + doman docs/man/man1/*.1 + + newenvd "${FILESDIR}"/${PN}.env 95ansible +} + +src_install() { + distutils-r1_src_install + readme.gentoo_create_doc +} + +pkg_postinst() { + optfeature "Alternative ssh transport" dev-python/paramiko +} diff --git a/app-admin/ansible/files/README.gentoo b/app-admin/ansible/files/README.gentoo new file mode 100644 index 000000000000..828e13cddeb6 --- /dev/null +++ b/app-admin/ansible/files/README.gentoo @@ -0,0 +1,8 @@ +You can define parameters through shell variables OR use config files +Examples of config files installed in /usr/share/ansible/examples +You have to create ansible hosts file! +More info on http://docs.ansible.com/intro_getting_started.html + +Some optional dependencies, you might want to install: +dev-python/keyczar - needed to support accelerated mode +dev-python/paramiko - alternative SSH backend" diff --git a/app-admin/ansible/files/ansible.env b/app-admin/ansible/files/ansible.env new file mode 100644 index 000000000000..9df5a2ab5a9a --- /dev/null +++ b/app-admin/ansible/files/ansible.env @@ -0,0 +1,2 @@ +# Use ssh transport by default. Comment it out if you want to use paramiko +ANSIBLE_TRANSPORT="ssh" diff --git a/app-admin/ansible/metadata.xml b/app-admin/ansible/metadata.xml new file mode 100644 index 000000000000..cc686a343c0f --- /dev/null +++ b/app-admin/ansible/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> + <email>pinkbyte@gentoo.org</email> + <name>Sergey Popov</name> + </maintainer> + <maintainer> + <email>jlec@gentoo.org</email> + <name>Justin Lecher</name> + </maintainer> + <upstream> + <remote-id type="pypi">ansible</remote-id> + <remote-id type="github">ansible/ansible</remote-id> + <bugs-to>https://github.com/ansible/ansible/issues</bugs-to> + </upstream> + <longdescription lang="en"> +Radically simple deployment, model-driven configuration management, and +command execution framework. +</longdescription> +</pkgmetadata> diff --git a/app-admin/apache-tools/Manifest b/app-admin/apache-tools/Manifest new file mode 100644 index 000000000000..d0beaf9580b6 --- /dev/null +++ b/app-admin/apache-tools/Manifest @@ -0,0 +1,4 @@ +DIST httpd-2.2.29.tar.bz2 5625498 SHA256 574b4f994b99178dfd5160bcb14025402e2ce381be9889b83e4be0ffbf5839a4 SHA512 0b953c97d79dfaaedaee72c6260e7a8e2e1711d47b19f9ace961b33f1226eeb58e37e04694a3e1207e0cf151a9ffbebf379d2bb81306bbf5111ec6db621a68b8 WHIRLPOOL d161104824c5bd6a42675489facf528a8ac2e727a8d2a295111b182e73bb17e7e8a52b720e74a37371e8bd3ddf5745afea32b32171831d95870daa440e7ac2a7 +DIST httpd-2.2.31.tar.bz2 5610489 SHA256 f32f9d19f535dac63b06cb55dfc023b40dcd28196b785f79f9346779e22f26ac SHA512 5aa47d4b76f692bbd8b309135ff99152df98cf69b505b9daf3f13f7f2a31443eaf4995161adfbc47a133b4d0e091fda2d95fc6b87a956f0ada18d7466ee28e74 WHIRLPOOL a2e3e53c51719cb6f7e641b41788cd89ce7b4d2ea105b403bfa3b3d4479b69c5604228269062f66722594e105e91121d05b1c9f27ca7dc4ecfcf339da8b8375c +DIST httpd-2.4.12.tar.bz2 5054838 SHA256 ad6d39edfe4621d8cc9a2791f6f8d6876943a9da41ac8533d77407a2e630eae4 SHA512 f69db14b421f0e1e4861fe4d8b652688d50ca9eb41c622242d11ae55687eb6c2142a8505a8c3fb6f2bd53167be535bc0a77ca1af97e0720930fc7f20f4c1f8e8 WHIRLPOOL 56512066e8978c4a3d47d0cc2bb92093fd468a9b2f46b8b07fe4db366f55fa5e74ae58bbebe2377cbe0c66f1585759115c786f62f18ac1abc534fb257689d250 +DIST httpd-2.4.16.tar.bz2 5101005 SHA256 ac660b47aaa7887779a6430404dcb40c0b04f90ea69e7bd49a40552e9ff13743 SHA512 039750ff962c08a7261896acc8272e59874d066f7d52721aaf967ddb737fc5716acc47e1effaf7c4d156ba61bc393e0738f64f8e89cc277ba2651e0f61d56628 WHIRLPOOL f67a4449409cd1a50fcdf4d192a3a0c90e6e3483269d19e9f0454557cbfbda7fb3535063e1738de60d6f524e22eac7fc159d2abe5a60952219c1b01ee143ae05 diff --git a/app-admin/apache-tools/apache-tools-2.2.29.ebuild b/app-admin/apache-tools/apache-tools-2.2.29.ebuild new file mode 100644 index 000000000000..a0a17b5dee90 --- /dev/null +++ b/app-admin/apache-tools/apache-tools-2.2.29.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" +inherit flag-o-matic eutils + +DESCRIPTION="Useful Apache tools - htdigest, htpasswd, ab, htdbm" +HOMEPAGE="http://httpd.apache.org/" +SRC_URI="mirror://apache/httpd/httpd-${PV}.tar.bz2" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" +IUSE="ssl" +RESTRICT="test" + +RDEPEND="=dev-libs/apr-1* + =dev-libs/apr-util-1* + dev-libs/expat + dev-libs/libpcre + kernel_linux? ( sys-apps/util-linux ) + ssl? ( dev-libs/openssl ) + !<www-servers/apache-2.2.4" + +DEPEND="${RDEPEND} + sys-devel/libtool" + +S="${WORKDIR}/httpd-${PV}" + +src_prepare() { + # Apply these patches: + # (1) apache-tools-2.2.20-Makefile.patch: + # - fix up the `make install' for support/ + # - remove envvars from `make install' + epatch "${FILESDIR}"/${PN}-2.2.20-Makefile.patch +} + +src_configure() { + # Brain dead check. + tc-is-cross-compiler && export ap_cv_void_ptr_lt_long="no" + + # Instead of filtering --as-needed (bug #128505), append --no-as-needed + append-ldflags $(no-as-needed) + + # econf overwrites the stuff from config.layout. + econf \ + --sbindir=/usr/sbin \ + --with-z=/usr \ + --with-apr=/usr \ + --with-apr-util=/usr \ + --with-pcre=/usr \ + $(use_enable ssl) \ + $(usex ssl '--with-ssl=/usr' '') +} + +src_compile() { + cd support || die + emake +} + +src_install () { + cd support || die + + make DESTDIR="${D}" install || die + + # install manpages + doman "${S}"/docs/man/{dbmmanage,htdigest,htpasswd,htdbm}.1 \ + "${S}"/docs/man/{htcacheclean,rotatelogs,ab,logresolve}.8 + + # Providing compatiblity symlinks for #177697 (which we'll stop to install + # at some point). + pushd "${D}"/usr/sbin/ >/dev/null || die + for i in *; do + dosym /usr/sbin/${i} /usr/sbin/${i}2 + done + popd >/dev/null || die + + # Provide a symlink for ab-ssl + if use ssl; then + dosym /usr/sbin/ab /usr/sbin/ab-ssl + dosym /usr/sbin/ab /usr/sbin/ab2-ssl + fi + + # make htpasswd accessible for non-root users + dosym /usr/sbin/htpasswd /usr/bin/htpasswd + dosym /usr/sbin/htdigest /usr/bin/htdigest + + dodoc "${S}"/CHANGES +} diff --git a/app-admin/apache-tools/apache-tools-2.2.31.ebuild b/app-admin/apache-tools/apache-tools-2.2.31.ebuild new file mode 100644 index 000000000000..abeb8444f490 --- /dev/null +++ b/app-admin/apache-tools/apache-tools-2.2.31.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" +inherit flag-o-matic eutils + +DESCRIPTION="Useful Apache tools - htdigest, htpasswd, ab, htdbm" +HOMEPAGE="http://httpd.apache.org/" +SRC_URI="mirror://apache/httpd/httpd-${PV}.tar.bz2" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" +IUSE="ssl" +RESTRICT="test" + +RDEPEND="=dev-libs/apr-1* + =dev-libs/apr-util-1* + dev-libs/expat + dev-libs/libpcre + kernel_linux? ( sys-apps/util-linux ) + ssl? ( dev-libs/openssl ) + !<www-servers/apache-2.2.4" + +DEPEND="${RDEPEND} + sys-devel/libtool" + +S="${WORKDIR}/httpd-${PV}" + +src_prepare() { + # Apply these patches: + # (1) apache-tools-2.2.20-Makefile.patch: + # - fix up the `make install' for support/ + # - remove envvars from `make install' + epatch "${FILESDIR}"/${PN}-2.2.20-Makefile.patch +} + +src_configure() { + # Brain dead check. + tc-is-cross-compiler && export ap_cv_void_ptr_lt_long="no" + + # Instead of filtering --as-needed (bug #128505), append --no-as-needed + append-ldflags $(no-as-needed) + + # econf overwrites the stuff from config.layout. + econf \ + --sbindir=/usr/sbin \ + --with-z=/usr \ + --with-apr=/usr \ + --with-apr-util=/usr \ + --with-pcre=/usr \ + $(use_enable ssl) \ + $(usex ssl '--with-ssl=/usr' '') +} + +src_compile() { + cd support || die + emake +} + +src_install () { + cd support || die + + make DESTDIR="${D}" install || die + + # install manpages + doman "${S}"/docs/man/{dbmmanage,htdigest,htpasswd,htdbm}.1 \ + "${S}"/docs/man/{htcacheclean,rotatelogs,ab,logresolve}.8 + + # Providing compatiblity symlinks for #177697 (which we'll stop to install + # at some point). + pushd "${D}"/usr/sbin/ >/dev/null || die + for i in *; do + dosym /usr/sbin/${i} /usr/sbin/${i}2 + done + popd >/dev/null || die + + # Provide a symlink for ab-ssl + if use ssl; then + dosym /usr/sbin/ab /usr/sbin/ab-ssl + dosym /usr/sbin/ab /usr/sbin/ab2-ssl + fi + + # make htpasswd accessible for non-root users + dosym /usr/sbin/htpasswd /usr/bin/htpasswd + dosym /usr/sbin/htdigest /usr/bin/htdigest + + dodoc "${S}"/CHANGES +} diff --git a/app-admin/apache-tools/apache-tools-2.4.12.ebuild b/app-admin/apache-tools/apache-tools-2.4.12.ebuild new file mode 100644 index 000000000000..0dbc9b827f25 --- /dev/null +++ b/app-admin/apache-tools/apache-tools-2.4.12.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit flag-o-matic eutils multilib toolchain-funcs + +DESCRIPTION="Useful Apache tools - htdigest, htpasswd, ab, htdbm" +HOMEPAGE="http://httpd.apache.org/" +SRC_URI="mirror://apache/httpd/httpd-${PV}.tar.bz2" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc64-solaris ~x64-solaris" +IUSE="ssl" +RESTRICT="test" + +RDEPEND=">=dev-libs/apr-1.5.0:1 + dev-libs/apr-util:1 + dev-libs/expat + dev-libs/libpcre + kernel_linux? ( sys-apps/util-linux ) + ssl? ( dev-libs/openssl:0= )" + +DEPEND="${RDEPEND} + sys-devel/libtool" + +S="${WORKDIR}/httpd-${PV}" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-2.4.7-Makefile.patch #459446 + + # This package really should upgrade to using pcre's .pc file. + cat <<-\EOF >"${T}"/pcre-config + #!/bin/sh + [ "${flag}" = "--version" ] && set -- --modversion + exec ${PKG_CONFIG} libpcre "$@" + EOF + chmod a+x "${T}"/pcre-config +} + +src_configure() { + # Brain dead check. + tc-is-cross-compiler && export ap_cv_void_ptr_lt_long="no" + + tc-export PKG_CONFIG + + # Instead of filtering --as-needed (bug #128505), append --no-as-needed + append-ldflags $(no-as-needed) + + # econf overwrites the stuff from config.layout. + ac_cv_path_PKGCONFIG=${PKG_CONFIG} \ + econf \ + --libexecdir="${EPREFIX}"/usr/$(get_libdir)/apache2/modules \ + --sbindir="${EPREFIX}"/usr/sbin \ + --with-perl="${EPREFIX}"/usr/bin/perl \ + --with-expat="${EPREFIX}"/usr \ + --with-z="${EPREFIX}"/usr \ + --with-apr="${SYSROOT}${EPREFIX}"/usr \ + --with-apr-util="${SYSROOT}${EPREFIX}"/usr \ + --with-pcre="${T}"/pcre-config \ + $(use_enable ssl) \ + $(usex ssl '--with-ssl="${EPREFIX}"/usr' '') + sed -i \ + -e '/^LTFLAGS/s:--silent::' \ + build/rules.mk build/config_vars.mk || die +} + +src_compile() { + emake -C support +} + +src_install() { + emake -C support DESTDIR="${D}" install + dodoc CHANGES + doman docs/man/{dbmmanage,htdigest,htpasswd,htdbm,ab,logresolve}.1 \ + docs/man/{htcacheclean,rotatelogs}.8 + + # Providing compatiblity symlinks for #177697 (which we'll stop to install + # at some point). + pushd "${ED}"/usr/sbin >/dev/null || die + local i + for i in *; do + dosym ${i} /usr/sbin/${i}2 + done + popd >/dev/null || die + + # Provide a symlink for ab-ssl + if use ssl; then + dosym ab /usr/bin/ab-ssl + dosym ab /usr/bin/ab2-ssl + fi +} diff --git a/app-admin/apache-tools/apache-tools-2.4.16.ebuild b/app-admin/apache-tools/apache-tools-2.4.16.ebuild new file mode 100644 index 000000000000..0dbc9b827f25 --- /dev/null +++ b/app-admin/apache-tools/apache-tools-2.4.16.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit flag-o-matic eutils multilib toolchain-funcs + +DESCRIPTION="Useful Apache tools - htdigest, htpasswd, ab, htdbm" +HOMEPAGE="http://httpd.apache.org/" +SRC_URI="mirror://apache/httpd/httpd-${PV}.tar.bz2" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc64-solaris ~x64-solaris" +IUSE="ssl" +RESTRICT="test" + +RDEPEND=">=dev-libs/apr-1.5.0:1 + dev-libs/apr-util:1 + dev-libs/expat + dev-libs/libpcre + kernel_linux? ( sys-apps/util-linux ) + ssl? ( dev-libs/openssl:0= )" + +DEPEND="${RDEPEND} + sys-devel/libtool" + +S="${WORKDIR}/httpd-${PV}" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-2.4.7-Makefile.patch #459446 + + # This package really should upgrade to using pcre's .pc file. + cat <<-\EOF >"${T}"/pcre-config + #!/bin/sh + [ "${flag}" = "--version" ] && set -- --modversion + exec ${PKG_CONFIG} libpcre "$@" + EOF + chmod a+x "${T}"/pcre-config +} + +src_configure() { + # Brain dead check. + tc-is-cross-compiler && export ap_cv_void_ptr_lt_long="no" + + tc-export PKG_CONFIG + + # Instead of filtering --as-needed (bug #128505), append --no-as-needed + append-ldflags $(no-as-needed) + + # econf overwrites the stuff from config.layout. + ac_cv_path_PKGCONFIG=${PKG_CONFIG} \ + econf \ + --libexecdir="${EPREFIX}"/usr/$(get_libdir)/apache2/modules \ + --sbindir="${EPREFIX}"/usr/sbin \ + --with-perl="${EPREFIX}"/usr/bin/perl \ + --with-expat="${EPREFIX}"/usr \ + --with-z="${EPREFIX}"/usr \ + --with-apr="${SYSROOT}${EPREFIX}"/usr \ + --with-apr-util="${SYSROOT}${EPREFIX}"/usr \ + --with-pcre="${T}"/pcre-config \ + $(use_enable ssl) \ + $(usex ssl '--with-ssl="${EPREFIX}"/usr' '') + sed -i \ + -e '/^LTFLAGS/s:--silent::' \ + build/rules.mk build/config_vars.mk || die +} + +src_compile() { + emake -C support +} + +src_install() { + emake -C support DESTDIR="${D}" install + dodoc CHANGES + doman docs/man/{dbmmanage,htdigest,htpasswd,htdbm,ab,logresolve}.1 \ + docs/man/{htcacheclean,rotatelogs}.8 + + # Providing compatiblity symlinks for #177697 (which we'll stop to install + # at some point). + pushd "${ED}"/usr/sbin >/dev/null || die + local i + for i in *; do + dosym ${i} /usr/sbin/${i}2 + done + popd >/dev/null || die + + # Provide a symlink for ab-ssl + if use ssl; then + dosym ab /usr/bin/ab-ssl + dosym ab /usr/bin/ab2-ssl + fi +} diff --git a/app-admin/apache-tools/files/apache-tools-2.2.20-Makefile.patch b/app-admin/apache-tools/files/apache-tools-2.2.20-Makefile.patch new file mode 100644 index 000000000000..0ac4885feed6 --- /dev/null +++ b/app-admin/apache-tools/files/apache-tools-2.2.20-Makefile.patch @@ -0,0 +1,41 @@ +=== modified file 'support/Makefile.in' +--- support/Makefile.in 2011-09-01 06:33:22 +0000 ++++ support/Makefile.in 2011-09-01 06:43:51 +0000 +@@ -1,9 +1,10 @@ + DISTCLEAN_TARGETS = apxs apachectl dbmmanage log_server_status \ +- logresolve.pl phf_abuse_log.cgi split-logfile envvars-std ++ logresolve.pl phf_abuse_log.cgi split-logfile + + CLEAN_TARGETS = suexec + +-PROGRAMS = htpasswd htdigest rotatelogs logresolve ab htdbm htcacheclean httxt2dbm $(NONPORTABLE_SUPPORT) ++PROGRAMS = htpasswd htdigest rotatelogs logresolve ab htdbm htcacheclean httxt2dbm \ ++ $(NONPORTABLE_SUPPORT) log_server_status split-logfile dbmmanage + TARGETS = $(PROGRAMS) + + PROGRAM_LDADD = $(UTIL_LDFLAGS) $(PROGRAM_DEPENDENCIES) $(EXTRA_LIBS) $(AP_LIBS) +@@ -12,22 +13,13 @@ + include $(top_builddir)/build/rules.mk + + install: +- @test -d $(DESTDIR)$(bindir) || $(MKINSTALLDIRS) $(DESTDIR)$(bindir) + @test -d $(DESTDIR)$(sbindir) || $(MKINSTALLDIRS) $(DESTDIR)$(sbindir) +- @test -d $(DESTDIR)$(libexecdir) || $(MKINSTALLDIRS) $(DESTDIR)$(libexecdir) +- @cp -p $(top_builddir)/server/httpd.exp $(DESTDIR)$(libexecdir) +- @for i in apxs apachectl dbmmanage; do \ ++ @for i in $(PROGRAMS) ; do \ + if test -f "$(builddir)/$$i"; then \ + cp -p $$i $(DESTDIR)$(sbindir); \ + chmod 755 $(DESTDIR)$(sbindir)/$$i; \ + fi ; \ + done +- @if test -f "$(builddir)/envvars-std"; then \ +- cp -p envvars-std $(DESTDIR)$(sbindir); \ +- if test ! -f $(DESTDIR)$(sbindir)/envvars; then \ +- cp -p envvars-std $(DESTDIR)$(sbindir)/envvars ; \ +- fi ; \ +- fi + + htpasswd_OBJECTS = htpasswd.lo + htpasswd: $(htpasswd_OBJECTS) + diff --git a/app-admin/apache-tools/files/apache-tools-2.4.7-Makefile.patch b/app-admin/apache-tools/files/apache-tools-2.4.7-Makefile.patch new file mode 100644 index 000000000000..b7d3c274ea48 --- /dev/null +++ b/app-admin/apache-tools/files/apache-tools-2.4.7-Makefile.patch @@ -0,0 +1,47 @@ +https://bugs.gentoo.org/459446 + +https://raw.github.com/archlinuxcn/repo/master/apache-tools/apache-tools-Makefile.patch + +--- a/support/Makefile.in ++++ b/support/Makefile.in +@@ -1,9 +1,9 @@ + DISTCLEAN_TARGETS = apxs apachectl dbmmanage log_server_status \ +- logresolve.pl phf_abuse_log.cgi split-logfile envvars-std ++ logresolve.pl phf_abuse_log.cgi split-logfile + + CLEAN_TARGETS = suexec + +-bin_PROGRAMS = htpasswd htdigest htdbm ab logresolve httxt2dbm ++bin_PROGRAMS = htpasswd htdigest htdbm ab logresolve httxt2dbm dbmmanage + sbin_PROGRAMS = htcacheclean rotatelogs $(NONPORTABLE_SUPPORT) + TARGETS = $(bin_PROGRAMS) $(sbin_PROGRAMS) + +@@ -15,26 +15,18 @@ + install: + @test -d $(DESTDIR)$(bindir) || $(MKINSTALLDIRS) $(DESTDIR)$(bindir) + @test -d $(DESTDIR)$(sbindir) || $(MKINSTALLDIRS) $(DESTDIR)$(sbindir) +- @test -d $(DESTDIR)$(libexecdir) || $(MKINSTALLDIRS) $(DESTDIR)$(libexecdir) +- @cp -p $(top_builddir)/server/httpd.exp $(DESTDIR)$(libexecdir) +- @for i in apxs dbmmanage; do \ ++ @for i in $(bin_PROGRAMS); do \ + if test -f "$(builddir)/$$i"; then \ + cp -p $$i $(DESTDIR)$(bindir); \ + chmod 755 $(DESTDIR)$(bindir)/$$i; \ + fi ; \ + done +- @for i in apachectl; do \ ++ @for i in $(sbin_PROGRAMS); do \ + if test -f "$(builddir)/$$i"; then \ + cp -p $$i $(DESTDIR)$(sbindir); \ + chmod 755 $(DESTDIR)$(sbindir)/$$i; \ + fi ; \ + done +- @if test -f "$(builddir)/envvars-std"; then \ +- cp -p envvars-std $(DESTDIR)$(sbindir); \ +- if test ! -f $(DESTDIR)$(sbindir)/envvars; then \ +- cp -p envvars-std $(DESTDIR)$(sbindir)/envvars ; \ +- fi ; \ +- fi + + htpasswd.lo: passwd_common.h + passwd_common.lo: passwd_common.h diff --git a/app-admin/apache-tools/metadata.xml b/app-admin/apache-tools/metadata.xml new file mode 100644 index 000000000000..0530e463d6b4 --- /dev/null +++ b/app-admin/apache-tools/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> + <email>polynomial-c@gentoo.org</email> + <name>Lars Wendler</name> + </maintainer> + <longdescription lang="en"> + app-admin/apache-tools contains tools that might be useful without + having apache itself installed (like htdigest/htpasswd, but also ab - + the apache benchmark). + </longdescription> +</pkgmetadata> diff --git a/app-admin/apachetop/Manifest b/app-admin/apachetop/Manifest new file mode 100644 index 000000000000..40174c1081f3 --- /dev/null +++ b/app-admin/apachetop/Manifest @@ -0,0 +1 @@ +DIST apachetop-0.12.6.tar.gz 126930 SHA256 850062414517055eab2440b788b503d45ebe9b290d4b2e027a5f887ad70f3f29 SHA512 35081772f817c6a83a1fcf78790d2a288a9e4e48234c4b3163a09ad15f49a78d649b77f41aa002940fb9416c263cea159c5092a9b87285488eb450964c823c3a WHIRLPOOL 8b23d825b26c0ce43d1536edb3e6b613d9773c93cd62d02b84e479b9d1b0e89ef0f03b09b3e0cf3616fd3f05f2304b19c261c87e78c623bdabedfecbb5a5e8ae diff --git a/app-admin/apachetop/apachetop-0.12.6-r1.ebuild b/app-admin/apachetop/apachetop-0.12.6-r1.ebuild new file mode 100644 index 000000000000..ac608e7ac599 --- /dev/null +++ b/app-admin/apachetop/apachetop-0.12.6-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +inherit eutils autotools + +DESCRIPTION="A realtime Apache log analyzer" +HOMEPAGE="http://www.webta.org/projects/apachetop" +SRC_URI="http://www.webta.org/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 hppa ~mips ppc sparc x86" +IUSE="fam pcre adns" + +DEPEND="fam? ( virtual/fam ) + pcre? ( dev-libs/libpcre ) + adns? ( net-libs/adns )" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-gcc41.patch + epatch "${FILESDIR}"/${P}-configure.patch + epatch "${FILESDIR}"/${P}-maxpathlen.patch + epatch "${FILESDIR}"/${P}-ac_config_header.patch + eautoreconf +} + +src_configure() { + econf --with-logfile=/var/log/apache2/access_log \ + $(use_with fam) \ + $(use_with pcre) \ + $(use_with adns) +} + +src_compile() { + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + dodoc AUTHORS ChangeLog INSTALL NEWS README TODO +} diff --git a/app-admin/apachetop/apachetop-0.12.6-r2.ebuild b/app-admin/apachetop/apachetop-0.12.6-r2.ebuild new file mode 100644 index 000000000000..d6a0ccbc743d --- /dev/null +++ b/app-admin/apachetop/apachetop-0.12.6-r2.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils autotools + +DESCRIPTION="A realtime Apache log analyzer" +HOMEPAGE="http://www.webta.org/projects/apachetop" +SRC_URI="http://www.webta.org/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 hppa ~mips ppc sparc x86" +IUSE="fam pcre" + +RDEPEND=" + fam? ( virtual/fam ) + pcre? ( dev-libs/libpcre ) +" +DEPEND="${RDEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-gcc41.patch + epatch "${FILESDIR}"/${P}-configure.patch + epatch "${FILESDIR}"/${P}-maxpathlen.patch + epatch "${FILESDIR}"/${P}-ac_config_header.patch + eautoreconf +} + +src_configure() { + econf \ + --with-logfile=/var/log/apache2/access_log \ + --without-adns \ + $(use_with fam) \ + $(use_with pcre) +} diff --git a/app-admin/apachetop/files/apachetop-0.12.6-ac_config_header.patch b/app-admin/apachetop/files/apachetop-0.12.6-ac_config_header.patch new file mode 100644 index 000000000000..aabdb13d75f3 --- /dev/null +++ b/app-admin/apachetop/files/apachetop-0.12.6-ac_config_header.patch @@ -0,0 +1,12 @@ +diff -uNr apachetop-0.12.6.orig/configure.ac apachetop-0.12.6/configure.ac +--- apachetop-0.12.6.orig/configure.ac 2013-07-09 14:06:14.000000000 -0400 ++++ apachetop-0.12.6/configure.ac 2013-07-09 14:07:36.000000000 -0400 +@@ -6,7 +6,7 @@ + AC_CONFIG_AUX_DIR(config) + #AC_CONFIG_MACRO_DIR(m4) # 2.58 + +-AM_CONFIG_HEADER(config.h) ++AC_CONFIG_HEADER(config.h) + AM_INIT_AUTOMAKE(apachetop, 0.12.6) # 2.53 only? + + # Add non-standard directories to the include path diff --git a/app-admin/apachetop/files/apachetop-0.12.6-configure.patch b/app-admin/apachetop/files/apachetop-0.12.6-configure.patch new file mode 100644 index 000000000000..38a1fc7f6a1a --- /dev/null +++ b/app-admin/apachetop/files/apachetop-0.12.6-configure.patch @@ -0,0 +1,101 @@ +Index: apachetop-0.12.6/configure.ac +=================================================================== +--- apachetop-0.12.6.orig/configure.ac ++++ apachetop-0.12.6/configure.ac +@@ -52,48 +52,60 @@ AC_FUNC_VPRINTF + AC_CHECK_FUNCS([inet_aton memset strchr strdup kqueue strerror strstr]) + + # pcre {{{ +-AC_ARG_WITH(pcre, +- [ --with-pcre=<path> prefix of pcre installation (eg /usr/local)], +- [ +- CPPFLAGS="$CPPFLAGS -I $withval/include" +- LDFLAGS="$LDFLAGS -L $withval/lib" +- ] +-) +- +-AC_CHECK_HEADERS(pcre.h, +- AC_SEARCH_LIBS([pcre_compile], [pcre]) , +- AC_MSG_WARN([*** pcre.h not found -- consider using --with-pcre]) +-) ++AC_ARG_WITH([pcre], ++ [ --with-pcre=<path> prefix of pcre installation (eg /usr/local)], ++ [case "${withval}" in ++ yes) with_pcre="/usr";; ++ no) with_pcre="no";; ++ *) with_pcre="/usr";; ++ esac], ++ [with_pcre="/usr"]) ++ ++if test x$with_pcre != xno; then ++ CPPFLAGS="$CPPFLAGS -I $withval/include" ++ LDFLAGS="$LDFLAGS -L $withval/lib" ++ AC_CHECK_HEADERS(pcre.h, ++ AC_SEARCH_LIBS([pcre_compile], [pcre]), ++ AC_MSG_WARN([*** pcre.h not found -- consider using --with-pcre])) ++fi + # }}} + + # fam {{{ +-AC_ARG_WITH(fam, +- [ --with-fam=<path> prefix of fam installation (eg /usr/local)], +- [ +- CPPFLAGS="$CPPFLAGS -I $withval/include" +- LDFLAGS="$LDFLAGS -L $withval/lib" +- ] +-) +- +-AC_CHECK_HEADERS(fam.h, +- AC_SEARCH_LIBS([FAMOpen], [fam]) , +- AC_MSG_WARN([*** fam.h not found -- consider using --with-fam]) +-) ++AC_ARG_WITH([fam], ++ [ --with-fam=<path> prefix of fam installation (eg /usr/local)], ++ [case "${withval}" in ++ yes) with_fam="/usr";; ++ no) with_fam="no";; ++ *) with_fam="/usr";; ++ esac], ++ [with_fam="/usr"]) ++ ++if test x$with_fam != xno; then ++ CPPFLAGS="$CPPFLAGS -I $with_fam/include" ++ LDFLAGS="$LDFLAGS -L $with_fam/lib" ++ AC_CHECK_HEADERS(fam.h, ++ AC_SEARCH_LIBS([FAMOpen], [fam]), ++ AC_MSG_WARN([*** fam.h not found -- consider using --with-fam])) ++fi + # }}} + + # adns {{{ +-AC_ARG_WITH(adns, +- [ --with-adns=<path> prefix of adns installation (eg /usr/local)], +- [ +- CPPFLAGS="$CPPFLAGS -I $withval/include" +- LDFLAGS="$LDFLAGS -L $withval/lib" +- ] +-) +- +-AC_CHECK_HEADERS(adns.h, +- AC_SEARCH_LIBS([adns_submit], [adns]) , +- AC_MSG_WARN([*** adns.h not found -- consider using --with-adns]) +-) ++AC_ARG_WITH([adns], ++ [ --with-adns=<path> prefix of adns installation (eg /usr/local)], ++ [case "${withval}" in ++ yes) with_adns="/usr";; ++ no) with_adns="no";; ++ *) with_adns="/usr";; ++ esac], ++ [with_adns="/usr"]) ++ ++if test x$with_adns != xno; then ++ CPPFLAGS="$CPPFLAGS -I $with_adns/include" ++ LDFLAGS="$LDFLAGS -L $with_adns/lib" ++ AC_CHECK_HEADERS(adns.h, ++ AC_SEARCH_LIBS([adns_submit], [adns]), ++ AC_MSG_WARN([*** adns.h not found -- consider using --with-adns])) ++fi + # }}} + + # --with-logfile {{{ diff --git a/app-admin/apachetop/files/apachetop-0.12.6-gcc41.patch b/app-admin/apachetop/files/apachetop-0.12.6-gcc41.patch new file mode 100644 index 000000000000..566c9226a3f7 --- /dev/null +++ b/app-admin/apachetop/files/apachetop-0.12.6-gcc41.patch @@ -0,0 +1,13 @@ +--- src/resolver.h ++++ src/resolver.h +@@ -10,8 +10,8 @@ + class Resolver + { + public: +- Resolver::Resolver(void); +- Resolver::~Resolver(void); ++ Resolver(void); ++ ~Resolver(void); + int add_request(char *request, enum resolver_action act); + + diff --git a/app-admin/apachetop/files/apachetop-0.12.6-maxpathlen.patch b/app-admin/apachetop/files/apachetop-0.12.6-maxpathlen.patch new file mode 100644 index 000000000000..b648b07cbfc5 --- /dev/null +++ b/app-admin/apachetop/files/apachetop-0.12.6-maxpathlen.patch @@ -0,0 +1,39 @@ +Patch by Robert Scheck <robert@fedoraproject.org> for apachetop <= 0.12.6, which +adds some includes in order to have a real change to get MAXPATHLEN defined with +a valid value. Once MAXPATHLEN really gets filled with 128, it will just cause a +buffer overflow. + +See Red Hat Bugzilla #446199 (https://bugzilla.redhat.com/show_bug.cgi?id=446199) +for more information. This patch should solve the mentioned bug report and should +be sane enough to get included by upstream of apachetop for the next release. It +is important to run autoheader before ./configure to get these changes activated. + +--- apachetop-0.12.6/configure.ac 2005-10-27 18:39:25.000000000 +0200 ++++ apachetop-0.12.6/configure.ac.maxpathlen 2008-06-21 16:00:38.000000000 +0200 +@@ -34,7 +34,8 @@ + # Checks for header files. + AC_HEADER_STDC + AC_CHECK_HEADERS([arpa/inet.h netdb.h netinet/in.h \ +- string.h strings.h sys/socket.h time.h sys/time.h]) ++ string.h strings.h sys/socket.h time.h sys/time.h \ ++ limits.h sys/param.h]) + + # Checks for typedefs, structures, and compiler characteristics. + #AC_HEADER_STDBOOL # not in 2.53? +--- apachetop-0.12.6/src/apachetop.h 2005-10-15 18:10:01.000000000 +0200 ++++ apachetop-0.12.6/src/apachetop.h.maxpatlen 2008-06-21 16:02:00.000000000 +0200 +@@ -89,8 +89,12 @@ + #define getMIN(a,b) (a < b ? a : b) + #define getMAX(a,b) (a > b ? a : b) + +-#ifndef MAXPATHLEN +-# define MAXPATHLEN 128 ++#ifdef HAVE_SYS_PARAM_H ++# include <sys/param.h> ++#endif ++ ++#if HAVE_LIMITS_H ++# include <limits.h> + #endif + + /* upon startup, each input file is put into an element of this array, diff --git a/app-admin/apachetop/metadata.xml b/app-admin/apachetop/metadata.xml new file mode 100644 index 000000000000..48919ac33d6c --- /dev/null +++ b/app-admin/apachetop/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> + <email>neurogeek@gentoo.org</email> + <name>Jesus Rivero</name> +</maintainer> +</pkgmetadata> diff --git a/app-admin/apg/Manifest b/app-admin/apg/Manifest new file mode 100644 index 000000000000..c673d949fc64 --- /dev/null +++ b/app-admin/apg/Manifest @@ -0,0 +1 @@ +DIST apg-2.3.0b.tar.gz 109995 SHA256 d1e52029709e2d7f9cb99bedce3e02ee7a63cff7b8e2b4c2bc55b3dc03c28b92 SHA512 3112d2267f2311f960a52fa268b55a5faf0250a4a8c5e7444f0c1326afa2844a476a54befcf79e5b8532d74c53f6f58ffc420591c8c36798dd82b43c14869e1a WHIRLPOOL 519b9b9137db3e3009d91ca9ab0b0e782c4840aae7b32b3aed035aebdb9380091b82169c9c6bd37829464792dc686219b70403c88b029b713278e7bea7f105d8 diff --git a/app-admin/apg/apg-2.3.0b-r5.ebuild b/app-admin/apg/apg-2.3.0b-r5.ebuild new file mode 100644 index 000000000000..07375890cbde --- /dev/null +++ b/app-admin/apg/apg-2.3.0b-r5.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +inherit eutils toolchain-funcs + +DESCRIPTION="Another Password Generator" +HOMEPAGE="http://www.adel.nursat.kz/apg/" +SRC_URI="http://www.adel.nursat.kz/apg/download/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha amd64 hppa ppc ~ppc64 x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="cracklib" + +DEPEND="cracklib? ( sys-libs/cracklib )" +RDEPEND="${DEPEND}" + +src_prepare() { + chmod -R 0700 "${S}" + if use cracklib; then + epatch "${FILESDIR}"/${P}-cracklib.patch + epatch "${FILESDIR}"/${PN}-glibc-2.4.patch + fi + epatch "${FILESDIR}"/${P}-crypt_password.patch +} + +src_compile() { + sed -i 's,^#\(APG_CS_CLIBS += -lnsl\)$,\1,' Makefile \ + || die "Sed failed" + if [[ ${CHOST} == *-darwin* ]]; then + sed -i 's,^APG_CLIBS += -lcrypt,APG_CLIBS += ,' Makefile \ + || die "Sed failed" + fi + + emake \ + FLAGS="${CFLAGS} ${LDFLAGS}" CFLAGS="${CFLAGS} ${LDFLAGS}" \ + CC="$(tc-getCC)" \ + standalone || die "compile problem" + emake FLAGS="${CFLAGS} ${LDFLAGS}" CC="$(tc-getCC)" \ + -C bfconvert || die "compile problem" +} + +src_install() { + dobin apg apgbfm bfconvert/bfconvert || die + dodoc CHANGES INSTALL README THANKS TODO || die + cd doc + doman man/apg.1 man/apgbfm.1 || die + dodoc APG_TIPS pronun.txt rfc0972.txt rfc1750.txt || die +} diff --git a/app-admin/apg/files/apg-2.3.0b-cracklib.patch b/app-admin/apg/files/apg-2.3.0b-cracklib.patch new file mode 100644 index 000000000000..a1c34a14f5a0 --- /dev/null +++ b/app-admin/apg/files/apg-2.3.0b-cracklib.patch @@ -0,0 +1,17 @@ +--- Makefile 2003-08-07 09:40:39.000000000 -0600 ++++ Makefile.cracklib 2004-10-14 07:16:17.288530686 -0600 +@@ -44,10 +44,10 @@ + # If you want to use cracklib for password quality check then you + # must uncomment the folowing 4 lines (you must not do this for WIN32) + # +-#CRACKLIB_DICTPATH = "/usr/local/lib/pw_dict" +-#STANDALONE_OPTIONS += -DAPG_USE_CRACKLIB '-DCRACKLIB_DICTPATH=${CRACKLIB_DICTPATH}' -I/usr/local/include -L/usr/local/lib +-#CLISERV_OPTIONS += -DAPG_USE_CRACKLIB '-DCRACKLIB_DICTPATH=${CRACKLIB_DICTPATH}' -I/usr/local/include -L/usr/local/lib +-#APG_CLIBS += -lcrack ++CRACKLIB_DICTPATH = "/usr/lib/cracklib_dict" ++STANDALONE_OPTIONS += -DAPG_USE_CRACKLIB '-DCRACKLIB_DICTPATH=${CRACKLIB_DICTPATH}' ++CLISERV_OPTIONS += -DAPG_USE_CRACKLIB '-DCRACKLIB_DICTPATH=${CRACKLIB_DICTPATH}' ++APG_CLIBS += -lcrack + + ################################################################## + # Support for ANSI X9.17/SHA1 PRNG diff --git a/app-admin/apg/files/apg-2.3.0b-crypt_password.patch b/app-admin/apg/files/apg-2.3.0b-crypt_password.patch new file mode 100644 index 000000000000..93f3f152a2b4 --- /dev/null +++ b/app-admin/apg/files/apg-2.3.0b-crypt_password.patch @@ -0,0 +1,31 @@ +--- restrict.c 2007-03-09 13:48:27.000000000 +0300 ++++ restrict.c 2007-03-09 13:49:31.000000000 +0300 +@@ -33,6 +33,9 @@ + #include <stdio.h> + #include <stdlib.h> + #include <string.h> ++#if defined(APG_USE_CRACKLIB) ++#include <crack.h> ++#endif /* APG_USE_CRACKLIB */ + #include "restrict.h" + extern struct sym smbl[94]; + /* +--- apg.c 2007-03-08 17:32:40.000000000 +0300 ++++ apg.c 2007-03-08 17:34:07.000000000 +0300 +@@ -100,6 +100,7 @@ + #else /* CLISERV */ + #if defined(APG_USE_CRACKLIB) + #define APG_PROGRAMM_OPTIONS "M:E:a:r:b:p:n:m:x:vkt" ++#include <crack.h> + #else /* CRACKLIB */ + #define APG_PROGRAMM_OPTIONS "M:E:a:r:b:p:n:m:x:vt" + #endif /* CRACKLIB */ +@@ -709,7 +710,7 @@ + */ + char * crypt_passstring (const char *p) + { +- char salt[10]; ++ char salt[11]; + gen_rand_pass (salt, 10, 10, S_SL|S_CL|S_NB); + return (crypt(p, salt)); + } diff --git a/app-admin/apg/files/apg-glibc-2.4.patch b/app-admin/apg/files/apg-glibc-2.4.patch new file mode 100644 index 000000000000..be90c6355e66 --- /dev/null +++ b/app-admin/apg/files/apg-glibc-2.4.patch @@ -0,0 +1,11 @@ +--- restrict.h.orig 2006-03-26 03:33:50.168661936 +0400 ++++ restrict.h 2006-03-26 03:34:10.427582112 +0400 +@@ -33,6 +33,8 @@ + #ifndef APG_RESTRICT_H + #define APG_RESTRICT_H 1 + ++#define uint32_t int ++ + #if defined(APG_USE_CRACKLIB) + #include <packer.h> + #endif diff --git a/app-admin/apg/metadata.xml b/app-admin/apg/metadata.xml new file mode 100644 index 000000000000..6569104ff6e8 --- /dev/null +++ b/app-admin/apg/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>proxy-maintainers</herd> +<maintainer> + <email>gentoobugsie.20.dsurawicz@spamgourmet.com</email> + <name>Dustin Polke</name> + <description>Proxy Maintainer. CC him on bugs.</description> +</maintainer> +<longdescription>Another Password Generator. Generates random, pronouncable passwords with a variety of algorithms</longdescription> +</pkgmetadata> diff --git a/app-admin/augeas/Manifest b/app-admin/augeas/Manifest new file mode 100644 index 000000000000..410ed9fee10b --- /dev/null +++ b/app-admin/augeas/Manifest @@ -0,0 +1,3 @@ +DIST augeas-0.10.0.tar.gz 1676906 SHA256 ec111af06186216930176ebe5ecccdf7bf528528aee9acde1d5d70088484afca SHA512 4b23c69ce92971ad63cd5829044051a53b7976a7e3ccb9006282333a2dd06789e7c5da671450eb81904d237c36d449ac0924b06d9690dc7e5de4b8b40a58ec8c WHIRLPOOL 8b542cfa1bdcad3508cfd3cf25803ed27304ecdaaab4c9e7ce6ae2b7798c4cdc3d344ab4793cb2a0fd7b1b276eee20385b129d9fcf3b5b3b4596c3b0c96424cc +DIST augeas-1.1.0.tar.gz 1940928 SHA256 9d81e4228329e2d5cccb018ab06bc8b734fb2dede2c4d9b5c02303d4a690b76b SHA512 ddb06f71993079330fc5b134ccd45476c1ab24f475b7a859c5920a7af3bd00d4dae31bf8110841ded4c4f5197e72911c298d7fcfe32d1d3e6821bca74aa67e26 WHIRLPOOL be1c83ecb1c8c7378374132bdd56be641e1200950e6e6d46e94ef35fc97be98157214b994071cf56f2aaafda29d91993c9a023ded5256c36364abbc9cbb498ca +DIST augeas-1.3.0.tar.gz 1983656 SHA256 80763031af76515a8ea66013ddc3c466742a15d2e907c7c8e2e3b7410262e2af SHA512 92cc2cf83faa42e83621fe0f73fe9f7247d802f17da781e51d068056d20b1645de1f0ea0d5070c0d5729a3f6554d64a95e31111bf3e44b959386559619843e79 WHIRLPOOL 4e4c3374adca662ce90f94eb204028526ec0c3a9b0bc6644515994b88e289f3e1aa5f2b6ce7c28103a2a64e5185c8ba64d55e1a448e14f745d53aec4bf20e8b3 diff --git a/app-admin/augeas/augeas-0.10.0-r1.ebuild b/app-admin/augeas/augeas-0.10.0-r1.ebuild new file mode 100644 index 000000000000..8c56a570c5a2 --- /dev/null +++ b/app-admin/augeas/augeas-0.10.0-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools-utils + +DESCRIPTION="A library for changing configuration files" +HOMEPAGE="http://augeas.net/" +SRC_URI="http://augeas.net/download/${P}.tar.gz" + +SLOT="0" +LICENSE="LGPL-2.1" +KEYWORDS="~alpha ~amd64 hppa ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="static-libs test" + +RDEPEND=" + dev-libs/libxml2 + sys-libs/readline" +DEPEND="${RDEPEND} + virtual/pkgconfig + >=app-doc/NaturalDocs-1.40 + test? ( dev-lang/ruby )" + +PATCHES=( + "${FILESDIR}"/${P}-gets.patch + "${FILESDIR}"/${P}-test.patch + "${FILESDIR}"/${P}-test2.patch + "${FILESDIR}"/${P}-libxml2-pkgconfig.patch + ) + +src_prepare() { + if [ -f /usr/share/NaturalDocs/Config/Languages.txt ] ; then + addwrite /usr/share/NaturalDocs/Config/Languages.txt + fi + if [ -f /usr/share/NaturalDocs/Config/Topics.txt ] ; then + addwrite /usr/share/NaturalDocs/Config/Topics.txt + fi + autotools-utils_src_prepare +} + +src_configure() { + # Needs to implemented + local myeconfargs=( --without-selinux ) + autotools-utils_src_configure +} + +AUTOTOOLS_IN_SOURCE_BUILD=1 diff --git a/app-admin/augeas/augeas-0.10.0-r2.ebuild b/app-admin/augeas/augeas-0.10.0-r2.ebuild new file mode 100644 index 000000000000..9a57f0e20338 --- /dev/null +++ b/app-admin/augeas/augeas-0.10.0-r2.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools-utils + +DESCRIPTION="A library for changing configuration files" +HOMEPAGE="http://augeas.net/" +SRC_URI="http://augeas.net/download/${P}.tar.gz" + +SLOT="0" +LICENSE="LGPL-2.1" +KEYWORDS="alpha amd64 hppa ~ia64 ppc ~ppc64 sparc x86" +IUSE="static-libs test" + +RDEPEND=" + dev-libs/libxml2 + sys-libs/readline" +DEPEND="${RDEPEND} + virtual/pkgconfig + >=app-doc/NaturalDocs-1.40 + test? ( dev-lang/ruby )" + +PATCHES=( + "${FILESDIR}"/${P}-gets.patch + "${FILESDIR}"/${P}-test.patch + "${FILESDIR}"/${P}-test2.patch + "${FILESDIR}"/${P}-libxml2-pkgconfig.patch + "${FILESDIR}/cve-bunch-of-them-symlink.patch" + ) + +src_prepare() { + if [ -f /usr/share/NaturalDocs/Config/Languages.txt ] ; then + addwrite /usr/share/NaturalDocs/Config/Languages.txt + fi + if [ -f /usr/share/NaturalDocs/Config/Topics.txt ] ; then + addwrite /usr/share/NaturalDocs/Config/Topics.txt + fi + autotools-utils_src_prepare +} + +src_configure() { + # Needs to implemented + local myeconfargs=( --without-selinux ) + autotools-utils_src_configure +} + +AUTOTOOLS_IN_SOURCE_BUILD=1 diff --git a/app-admin/augeas/augeas-0.10.0.ebuild b/app-admin/augeas/augeas-0.10.0.ebuild new file mode 100644 index 000000000000..9b837aa6b3bb --- /dev/null +++ b/app-admin/augeas/augeas-0.10.0.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" +inherit eutils + +DESCRIPTION="A library for changing configuration files" +HOMEPAGE="http://augeas.net/" +SRC_URI="http://augeas.net/download/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="alpha amd64 hppa ppc ~ppc64 sparc x86" +IUSE="static-libs test" + +RDEPEND="sys-libs/readline + dev-libs/libxml2" +DEPEND="${RDEPEND} + virtual/pkgconfig + >=app-doc/NaturalDocs-1.40 + test? ( dev-lang/ruby )" + +src_prepare() { + if [ -f /usr/share/NaturalDocs/Config/Languages.txt ] ; then + addwrite /usr/share/NaturalDocs/Config/Languages.txt + fi + if [ -f /usr/share/NaturalDocs/Config/Topics.txt ] ; then + addwrite /usr/share/NaturalDocs/Config/Topics.txt + fi +} + +src_configure() { + econf $(use_enable static-libs static) || die +} + +src_install() { + default + + use static-libs || find "${ED}" -name '*.la' -delete + + dodoc AUTHORS ChangeLog README NEWS +} diff --git a/app-admin/augeas/augeas-1.1.0.ebuild b/app-admin/augeas/augeas-1.1.0.ebuild new file mode 100644 index 000000000000..816f66a0b543 --- /dev/null +++ b/app-admin/augeas/augeas-1.1.0.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools-utils + +DESCRIPTION="A library for changing configuration files" +HOMEPAGE="http://augeas.net/" +SRC_URI="http://download.augeas.net/${P}.tar.gz" + +SLOT="0" +LICENSE="LGPL-2.1" +KEYWORDS="alpha amd64 hppa ia64 ppc ~ppc64 sparc x86" +IUSE="static-libs test" + +RDEPEND=" + dev-libs/libxml2 + sys-libs/readline" +DEPEND="${RDEPEND} + virtual/pkgconfig + >=app-doc/NaturalDocs-1.40 + test? ( dev-lang/ruby )" + +#PATCHES=( +# "${FILESDIR}"/${P}-gets.patch +# "${FILESDIR}"/${P}-test.patch +# "${FILESDIR}"/${P}-test2.patch +# "${FILESDIR}"/${P}-libxml2-pkgconfig.patch +# ) + +src_prepare() { + if [ -f /usr/share/NaturalDocs/Config/Languages.txt ] ; then + addwrite /usr/share/NaturalDocs/Config/Languages.txt + fi + if [ -f /usr/share/NaturalDocs/Config/Topics.txt ] ; then + addwrite /usr/share/NaturalDocs/Config/Topics.txt + fi + autotools-utils_src_prepare +} + +src_configure() { + # Needs to implemented + local myeconfargs=( --without-selinux ) + autotools-utils_src_configure +} + +AUTOTOOLS_IN_SOURCE_BUILD=1 diff --git a/app-admin/augeas/augeas-1.3.0.ebuild b/app-admin/augeas/augeas-1.3.0.ebuild new file mode 100644 index 000000000000..40ad36b6159c --- /dev/null +++ b/app-admin/augeas/augeas-1.3.0.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools-utils + +DESCRIPTION="A library for changing configuration files" +HOMEPAGE="http://augeas.net/" +SRC_URI="http://download.augeas.net/${P}.tar.gz" + +SLOT="0" +LICENSE="LGPL-2.1" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="static-libs test" + +RDEPEND=" + dev-libs/libxml2 + sys-libs/readline" +DEPEND="${RDEPEND} + virtual/pkgconfig + >=app-doc/NaturalDocs-1.40 + test? ( dev-lang/ruby )" + +#PATCHES=( +# "${FILESDIR}"/${P}-gets.patch +# "${FILESDIR}"/${P}-test.patch +# "${FILESDIR}"/${P}-test2.patch +# "${FILESDIR}"/${P}-libxml2-pkgconfig.patch +# ) + +src_prepare() { + if [ -f /usr/share/NaturalDocs/Config/Languages.txt ] ; then + addwrite /usr/share/NaturalDocs/Config/Languages.txt + fi + if [ -f /usr/share/NaturalDocs/Config/Topics.txt ] ; then + addwrite /usr/share/NaturalDocs/Config/Topics.txt + fi + autotools-utils_src_prepare +} + +src_configure() { + # Needs to implemented + local myeconfargs=( --without-selinux ) + autotools-utils_src_configure +} + +AUTOTOOLS_IN_SOURCE_BUILD=1 diff --git a/app-admin/augeas/files/augeas-0.10.0-gets.patch b/app-admin/augeas/files/augeas-0.10.0-gets.patch new file mode 100644 index 000000000000..5f754955be6c --- /dev/null +++ b/app-admin/augeas/files/augeas-0.10.0-gets.patch @@ -0,0 +1,15 @@ + gnulib/lib/stdio.in.h | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/gnulib/lib/stdio.in.h b/gnulib/lib/stdio.in.h +index 9091497..fa7e3fb 100644 +--- a/gnulib/lib/stdio.in.h ++++ b/gnulib/lib/stdio.in.h +@@ -162,7 +162,6 @@ _GL_WARN_ON_USE (fflush, "fflush is not always POSIX compliant - " + so any use of gets warrants an unconditional warning. Assume it is + always declared, since it is required by C89. */ + #undef gets +-_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); + + #if @GNULIB_FOPEN@ + # if @REPLACE_FOPEN@ diff --git a/app-admin/augeas/files/augeas-0.10.0-libxml2-pkgconfig.patch b/app-admin/augeas/files/augeas-0.10.0-libxml2-pkgconfig.patch new file mode 100644 index 000000000000..aaa418670154 --- /dev/null +++ b/app-admin/augeas/files/augeas-0.10.0-libxml2-pkgconfig.patch @@ -0,0 +1,24 @@ +From b41deef293841da50a236023bad486ea3f57e4dc Mon Sep 17 00:00:00 2001 +From: "Richard W.M. Jones" <rjones@redhat.com> +Date: Sat, 3 Dec 2011 14:21:50 +0000 +Subject: [PATCH] pkg-config: Augeas requires libxml2. + +--- + augeas.pc.in | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/augeas.pc.in b/augeas.pc.in +index c97847d..9e166db 100644 +--- a/augeas.pc.in ++++ b/augeas.pc.in +@@ -6,6 +6,6 @@ includedir=@includedir@ + Name: augeas + Version: @VERSION@ + Description: Augeas configuration editing library +-Requires: ++Requires.private: libxml-2.0 + Libs: -L${libdir} -laugeas @LIBS@ + Cflags: -I${includedir} +-- +1.7.6 + diff --git a/app-admin/augeas/files/augeas-0.10.0-test.patch b/app-admin/augeas/files/augeas-0.10.0-test.patch new file mode 100644 index 000000000000..e2630014f29a --- /dev/null +++ b/app-admin/augeas/files/augeas-0.10.0-test.patch @@ -0,0 +1,56 @@ +From 075f8d35497fb36d9193e5364c055049c66fa5eb Mon Sep 17 00:00:00 2001 +From: Lubomir Rintel <lubo.rintel@gooddata.com> +Date: Mon, 9 Jan 2012 18:52:11 +0100 +Subject: [PATCH 1/2] Allow JSON number literals to be followed by whitespace + +Add a test case. + +Fixes https://fedorahosted.org/augeas/ticket/247 +--- + AUTHORS | 1 + + lenses/json.aug | 2 +- + lenses/tests/test_json.aug | 3 +++ + 3 files changed, 5 insertions(+), 1 deletions(-) + +diff --git a/AUTHORS b/AUTHORS +index df63f95..e7870f2 100644 +--- a/AUTHORS ++++ b/AUTHORS +@@ -44,6 +44,7 @@ Contributions by: + Bill Pemberton <wfp5p@virginia.edu> + Alan Pevec <apevec@redhat.com> + Robin Lee Powell <rlpowell@digitalkingdom.org> ++ Lubomir Rintel <lubo.rintel@gooddata.com> + Roman Rakus <rrakus@redhat.com> + Satoru SATOH <satoru.satoh@gmail.com> + Nicolas Valcárcel Scerpella <nvalcarcel@ubuntu.com> +diff --git a/lenses/json.aug b/lenses/json.aug +index c22ad90..6ceab09 100644 +--- a/lenses/json.aug ++++ b/lenses/json.aug +@@ -29,7 +29,7 @@ let str_store = + let q = del "\"" "\"" in + q . store /[^"]*/ . q . ws (* " Emacs, relax *) + +-let number = [ label "number" . store /-?[0-9]+(\.[0-9]+)?([eE][+-]?[0-9]+)?/ ] ++let number = [ label "number" . store /-?[0-9]+(\.[0-9]+)?([eE][+-]?[0-9]+)?/ . ws ] + let str = [ label "string" . str_store ] + + let const (r:regexp) = [ label "const" . store r . ws ] +diff --git a/lenses/tests/test_json.aug b/lenses/tests/test_json.aug +index 0bcd25d..d8b7fa8 100644 +--- a/lenses/tests/test_json.aug ++++ b/lenses/tests/test_json.aug +@@ -8,6 +8,9 @@ test lns get "true" = { "const" = "true" } + + test lns get "3.141" = { "number" = "3.141" } + ++test lns get "{ \"key\" : 666 }" = ++ { "dict" { "entry" = "key" { "number" = "666" } } } ++ + test lns get "[true, 0, \"yo\"]" = + { "array" { "const" = "true" } { "number" = "0" } { "string" = "yo" } } + +-- +1.7.7.5 + diff --git a/app-admin/augeas/files/augeas-0.10.0-test2.patch b/app-admin/augeas/files/augeas-0.10.0-test2.patch new file mode 100644 index 000000000000..743ccfdce1fc --- /dev/null +++ b/app-admin/augeas/files/augeas-0.10.0-test2.patch @@ -0,0 +1,49 @@ +From 100a7b38222a63c6435a72b4974b55f39a28989e Mon Sep 17 00:00:00 2001 +From: Lubomir Rintel <lubo.rintel@gooddata.com> +Date: Mon, 9 Jan 2012 19:24:41 +0100 +Subject: [PATCH 2/2] Correctly parse empty object and arrays in JSON + +Add a test case. +Fix from David Lutterkort <lutter@redhat.com>. + +https://fedorahosted.org/augeas/ticket/248 +--- + lenses/json.aug | 4 ++-- + lenses/tests/test_json.aug | 5 +++++ + 2 files changed, 7 insertions(+), 2 deletions(-) + +diff --git a/lenses/json.aug b/lenses/json.aug +index 6ceab09..2645806 100644 +--- a/lenses/json.aug ++++ b/lenses/json.aug +@@ -37,9 +37,9 @@ let const (r:regexp) = [ label "const" . store r . ws ] + let value0 = str | number | const /true|false|null/ + + let fix_value (value:lens) = +- let array = [ label "array" . lbrack . Build.opt_list value comma . rbrack ] in ++ let array = [ label "array" . lbrack . (Build.opt_list value comma)? . rbrack ] in + let pair = [ label "entry" . str_store . colon . value ] in +- let obj = [ label "dict" . lbrace . Build.opt_list pair comma . rbrace ] in ++ let obj = [ label "dict" . lbrace . (Build.opt_list pair comma)? . rbrace ] in + (str | number | obj | array | const /true|false|null/) + + (* Typecheck finitely deep nesting *) +diff --git a/lenses/tests/test_json.aug b/lenses/tests/test_json.aug +index d8b7fa8..aec7d4c 100644 +--- a/lenses/tests/test_json.aug ++++ b/lenses/tests/test_json.aug +@@ -30,6 +30,11 @@ test lns get "{ \"0\": true, \"1\":false }" = + test lns get "{\"menu\": \"entry one\"}" = + { "dict" { "entry" = "menu" { "string" = "entry one" } } } + ++test lns get "[ ]" = ++ { "array" } ++ ++test lns get "{}" = ++ { "dict" } + + let s = "{\"menu\": { + \"id\": \"file\", +-- +1.7.7.5 + diff --git a/app-admin/augeas/files/cve-bunch-of-them-symlink.patch b/app-admin/augeas/files/cve-bunch-of-them-symlink.patch new file mode 100644 index 000000000000..3bd1d95ae42d --- /dev/null +++ b/app-admin/augeas/files/cve-bunch-of-them-symlink.patch @@ -0,0 +1,76 @@ +From 051c73a9a7ffe9e525f6f0a1b8f5198ff8cc6752 Mon Sep 17 00:00:00 2001 +From: Dominic Cleal <dcleal@redhat.com> +Date: Sat, 11 Aug 2012 20:39:14 +0100 +Subject: [PATCH] Fix regression in permissions of created files + +Commit 16387744 changed temporary file creation to use mkstemp, resulting in +new files being created with 0600 permissions. For brand new files created +through Augeas, their permissions stayed at 0600 rather than being set by the +umask as before. + + * src/transform.c (transform_save): chmod after creating new files to + permissions implied by the umask +--- + src/transform.c | 10 ++++++++++ + tests/test-preserve.sh | 15 ++++++++++++++- + 2 files changed, 24 insertions(+), 1 deletion(-) + +diff --git a/src/transform.c b/src/transform.c +index a3acd10..1ca3d5f 100644 +--- a/src/transform.c ++++ b/src/transform.c +@@ -1096,6 +1096,16 @@ int transform_save(struct augeas *aug, struct tree *xfm, + err_status = "xfer_attrs"; + goto done; + } ++ } else { ++ /* Since mkstemp is used, the temp file will have secure permissions ++ * instead of those implied by umask, so change them for new files */ ++ mode_t curumsk = umask(022); ++ umask(curumsk); ++ ++ if (fchmod(fileno(fp), 0666 - curumsk) < 0) { ++ err_status = "create_chmod"; ++ return -1; ++ } + } + + if (tree != NULL) +diff --git a/tests/test-preserve.sh b/tests/test-preserve.sh +index 042dab9..9719ac6 100755 +--- a/tests/test-preserve.sh ++++ b/tests/test-preserve.sh +@@ -59,9 +59,12 @@ if [ $selinux = yes -a xetc_t != "x$act_con" ] ; then + exit 1 + fi + +-# Check that we create new files without error ++# Check that we create new files without error and with permissions implied ++# from the umask + init_dirs + ++oldumask=$(umask) ++umask 0002 + $AUGTOOL > /dev/null <<EOF + set /files/etc/hosts/1/ipaddr 127.0.0.1 + set /files/etc/hosts/1/canonical host.example.com +@@ -71,6 +74,16 @@ if [ $? != 0 ] ; then + echo "augtool failed on new file" + exit 1 + fi ++if [ ! -e $hosts ]; then ++ echo "augtool didn't create new /etc/hosts file" ++ exit 1 ++fi ++act_mode=$(ls -l $hosts | cut -b 1-10) ++if [ x-rw-rw-r-- != "x$act_mode" ] ; then ++ echo "Expected mode 0664 due to $(umask) umask but got $act_mode" ++ exit 1 ++fi ++umask $oldumask + + # Check that we create new files without error when backups are requested + init_dirs +-- +1.8.5.1 + diff --git a/app-admin/augeas/metadata.xml b/app-admin/augeas/metadata.xml new file mode 100644 index 000000000000..ffb39ba605d4 --- /dev/null +++ b/app-admin/augeas/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>prometheanfire@gentoo.org</email> + </maintainer> + <longdescription lang="en"> +A library for programmatically editing configuration files. Augeas parses +configuration files into a tree structure, which it exposes through its +public API. Changes made through the API are written back to the initially +read files. + +The transformation works very hard to preserve comments and formatting +details. It is controlled by ``lens'' definitions that describe the file +format and the transformation into a tree. +</longdescription> +</pkgmetadata> diff --git a/app-admin/authbind/Manifest b/app-admin/authbind/Manifest new file mode 100644 index 000000000000..5e42b4d6214e --- /dev/null +++ b/app-admin/authbind/Manifest @@ -0,0 +1 @@ +DIST authbind_2.1.1.tar.gz 14407 SHA256 65b26b83b7ca5aa713524e0aff439f71a0ba8970913768457a22239540a9c73a SHA512 f3a45fcf1d8d6e6762bc1cef7a1b89f211e4af56c68b4c6c5e508a2f7ee039499b8b2f11ce8aeb94822d20377d309035760fa7b58aabaa4e87417ca25811c812 WHIRLPOOL 55098ccd252073403ef88546559bb5fcb268daed06501e82e1b79ab0ce63ea4eaff7335fb40a9d07342947a41e14a1432b53d082f1d8bca9d61bd8b17cabe0d1 diff --git a/app-admin/authbind/authbind-2.1.1.ebuild b/app-admin/authbind/authbind-2.1.1.ebuild new file mode 100644 index 000000000000..3e2ebe2f0059 --- /dev/null +++ b/app-admin/authbind/authbind-2.1.1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils multilib flag-o-matic + +DESCRIPTION="Bind sockets to privileged ports without root" +HOMEPAGE="http://www.chiark.greenend.org.uk/ucgi/~ian/git/authbind.git/" +SRC_URI="mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +DEPEND="" +RDEPEND="" + +src_prepare() { + epatch "${FILESDIR}/${P}-respect-flags.patch" +} + +src_configure() { + sed -i \ + -e "s|^prefix=.*|prefix=/usr|" \ + -e "s|^lib_dir=.*|lib_dir=\$(prefix)/$(get_libdir)|" \ + -e "s|^libexec_dir=.*|libexec_dir=\$(prefix)/libexec/authbind|" \ + -e "s|^SHARED_LDFLAGS=.*|SHARED_LDFLAGS=$(raw-ldflags)|" \ + Makefile || die "sed failed" + + sed -i \ + -e 's|/usr/lib|/usr/libexec|' \ + authbind-helper.8 || die "sed failed" +} + +src_install() { + dobin authbind + doman authbind.1 authbind-helper.8 + + ln -s libauthbind.so.* libauthbind.so.$(awk -F= '/MAJOR=/ { print $2 }' < Makefile) + dolib.so libauthbind.so* + + exeinto /usr/libexec/authbind + exeopts -m4755 + doexe helper + + keepdir /etc/authbind/by{addr,port,uid} + + dodoc debian/changelog +} diff --git a/app-admin/authbind/files/authbind-2.1.1-respect-flags.patch b/app-admin/authbind/files/authbind-2.1.1-respect-flags.patch new file mode 100644 index 000000000000..2a9eb5f6b84c --- /dev/null +++ b/app-admin/authbind/files/authbind-2.1.1-respect-flags.patch @@ -0,0 +1,26 @@ +diff --git a/Makefile b/Makefile +index c1eed73..932ea60 100644 +--- a/Makefile ++++ b/Makefile +@@ -34,10 +34,9 @@ INSTALL_PROGRAM ?= install -o root -g root -m 755 -s + INSTALL_DIR ?= install -o root -g root -m 755 -d + STRIP ?= strip + +-OPTIMISE= -O2 +-LDFLAGS= -g + LIBS= -ldl -lc +-CFLAGS= -g $(OPTIMISE) \ ++SHARED_LDFLAGS= ++CFLAGS+= \ + -Wall -Wwrite-strings -Wpointer-arith -Wimplicit \ + -Wnested-externs -Wmissing-prototypes -Wstrict-prototypes + CPPFLAGS= -DMAJOR_VER='"$(MAJOR)"' -DMINOR_VER='"$(MINOR)"' \ +@@ -82,7 +81,7 @@ helper: helper.o + helper.o authbind.o: authbind.h + + $(LIBTARGET): libauthbind.o +- ld -shared -soname $(LIBCANON) -o $@ $< $(LIBS) ++ $(LD) $(SHARED_LDFLAGS) -shared -soname $(LIBCANON) -o $@ $< $(LIBS) + + clean distclean: + rm -f $(TARGETS) *.o *~ ./#*# *.bak *.new core diff --git a/app-admin/authbind/metadata.xml b/app-admin/authbind/metadata.xml new file mode 100644 index 000000000000..5b2a5c55470b --- /dev/null +++ b/app-admin/authbind/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> + <email>dev-zero@gentoo.org</email> + <name>Tiziano Müller</name> + </maintainer> +</pkgmetadata> diff --git a/app-admin/aws-as-tools/Manifest b/app-admin/aws-as-tools/Manifest new file mode 100644 index 000000000000..1c451137e02b --- /dev/null +++ b/app-admin/aws-as-tools/Manifest @@ -0,0 +1 @@ +DIST AutoScaling-1.0.49.1.zip 12387808 SHA256 8273186a025c465ca3b69523c50f114dc6c2cececb2c9e8b8d6c6eb886dd97a3 SHA512 aefc4dfc970757062ca972c5d532485c9e28ceb771b6fa0a4fb2fe25460bd67e3023bcefde57f9852340b6015e7ab2771c49beb0826e1394710ea7eea94948ed WHIRLPOOL 99c6daa8d5cfa00d26cc43c03406824897e960b1d13d49540a4e8f829d8abba18bd15f1e63a67f9e408973eb74af59ed3769f2aad806496ed163bcbd13f1df1d diff --git a/app-admin/aws-as-tools/aws-as-tools-1.0.49.1.ebuild b/app-admin/aws-as-tools/aws-as-tools-1.0.49.1.ebuild new file mode 100644 index 000000000000..e2005bb81785 --- /dev/null +++ b/app-admin/aws-as-tools/aws-as-tools-1.0.49.1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +DESCRIPTION="The API tools serve as the client interface to the Auto Scaling web service" +HOMEPAGE="http://aws.amazon.com/developertools/2535" +# SRC_URI="http://ec2-downloads.s3.amazonaws.com/AutoScaling-2011-01-01.zip" +SRC_URI="mirror://sabayon/app-admin/AutoScaling-1.0.49.1.zip" + +S="${WORKDIR}/AutoScaling-${PV}" + +LICENSE="Amazon" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +DEPEND="app-arch/unzip" +RDEPEND="virtual/jre" +RESTRICT="mirror" + +src_unpack() { + unpack ${A} + cd "${S}" + find . -name '*.cmd' -delete || die + rm bin/as-cmd-2009-05-15 + rm bin/service-2009-05-15 +} + +src_install() { + dodir /opt/${PN} + insinto /opt/${PN}/lib + doins -r "${S}"/lib/* + exeinto /opt/${PN}/bin + doexe "${S}"/bin/* + + dodir /etc/env.d + cat - > "${T}"/99${PN} <<EOF +AWS_AUTO_SCALING_HOME=/opt/${PN} +PATH=/opt/${PN}/bin +ROOTPATH=/opt/${PN}/bin +EOF + doenvd "${T}"/99${PN} + + dodoc "THIRDPARTYLICENSE.TXT" +} + +pkg_postinst() { + ewarn "Remember to run: env-update && source /etc/profile if you plan" + ewarn "to use these tools in a shell before logging out (or restarting" + ewarn "your login manager)" + elog + elog "You need to put the following in your ~/.bashrc replacing the" + elog "values with the full path to your AWS credentials file." + elog + elog " export AWS_CREDENTIAL_FILE=/path/and_filename_of_credential_file" + elog + elog "It should contains two lines: the first line lists the AWS Account's" + elog "AWS Access Key ID, and the second line lists the AWS Account's" + elog "Secret Access Key. For example:" + elog + elog " AWSAccessKeyId=AKIAIOSFODNN7EXAMPLE" + elog " AWSSecretKey=wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY" +} diff --git a/app-admin/aws-as-tools/metadata.xml b/app-admin/aws-as-tools/metadata.xml new file mode 100644 index 000000000000..1a971abe53b5 --- /dev/null +++ b/app-admin/aws-as-tools/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>proxy-maintainers</herd> + <maintainer> + <email>lxnay@gentoo.org</email> + </maintainer> + <maintainer> + <email>sergey.zhuga@gmail.com</email> + <name>Sergey Zhuga</name> + <description>Proxy maintainers. CC him on bugs</description> + </maintainer> +</pkgmetadata> diff --git a/app-admin/aws-cw-tools/Manifest b/app-admin/aws-cw-tools/Manifest new file mode 100644 index 000000000000..3a9adb969bbd --- /dev/null +++ b/app-admin/aws-cw-tools/Manifest @@ -0,0 +1 @@ +DIST CloudWatch-1.0.12.1.zip 6156651 SHA256 9dfec389bda10600b68ed9a77a16fd0a9c4279421e1de2848c65c35a20e4b50e SHA512 881a428a2861b86196a691f24a3471058426f049170d16f067d7cc319712beb161c80041e9ae89339d5298ffbf2869c04509fbe4620cd60cc74658c8d3ab11ec WHIRLPOOL 572dbc99d25f021d08efb2668ee582d83d55bcf8d68e18902dfd507e80083eb4de2562b8a0f0b7f5cf83ff30d6080f399f49de6e2a060eef37a0ac78eb7de006 diff --git a/app-admin/aws-cw-tools/aws-cw-tools-1.0.12.1.ebuild b/app-admin/aws-cw-tools/aws-cw-tools-1.0.12.1.ebuild new file mode 100644 index 000000000000..cc03b70d0419 --- /dev/null +++ b/app-admin/aws-cw-tools/aws-cw-tools-1.0.12.1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +DESCRIPTION="The API tools serve as the client interface to the Amazon CloudWatch web service" +HOMEPAGE="http://aws.amazon.com/developertools/2534" +# SRC_URI="http://ec2-downloads.s3.amazonaws.com/CloudWatch-2010-08-01.zip" +SRC_URI="mirror://sabayon/${CATEGORY}/CloudWatch-${PV}.zip" + +S="${WORKDIR}/CloudWatch-${PV}" + +LICENSE="Amazon" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +DEPEND="app-arch/unzip" +RDEPEND="virtual/jre" +RESTRICT="mirror" + +src_unpack() { + unpack ${A} + cd "$S" + find . -name '*.cmd' -delete || die +} + +src_install() { + dodir /opt/${PN} + insinto /opt/${PN}/lib + doins -r "${S}"/lib/* + exeinto /opt/${PN}/bin + doexe "${S}"/bin/* + + dodir /etc/env.d + cat - > "${T}"/99${PN} <<EOF +AWS_CLOUDWATCH_HOME=/opt/${PN} +PATH=/opt/${PN}/bin +ROOTPATH=/opt/${PN}/bin +EOF + doenvd "${T}"/99${PN} + + dodoc "THIRDPARTYLICENSE.TXT" +} + +pkg_postinst() { + ewarn "Remember to run: env-update && source /etc/profile if you plan" + ewarn "to use these tools in a shell before logging out (or restarting" + ewarn "your login manager)" + elog + elog "You need to put the following in your ~/.bashrc replacing the" + elog "values with the full path to your AWS credentials file." + elog + elog " export AWS_CREDENTIAL_FILE=/path/and_filename_of_credential_file" + elog + elog "It should contains two lines: the first line lists the AWS Account's" + elog "AWS Access Key ID, and the second line lists the AWS Account's" + elog "Secret Access Key. For example:" + elog + elog " AWSAccessKeyId=AKIAIOSFODNN7EXAMPLE" + elog " AWSSecretKey=wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY" +} diff --git a/app-admin/aws-cw-tools/metadata.xml b/app-admin/aws-cw-tools/metadata.xml new file mode 100644 index 000000000000..1a971abe53b5 --- /dev/null +++ b/app-admin/aws-cw-tools/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>proxy-maintainers</herd> + <maintainer> + <email>lxnay@gentoo.org</email> + </maintainer> + <maintainer> + <email>sergey.zhuga@gmail.com</email> + <name>Sergey Zhuga</name> + <description>Proxy maintainers. CC him on bugs</description> + </maintainer> +</pkgmetadata> diff --git a/app-admin/aws-elb-tools/Manifest b/app-admin/aws-elb-tools/Manifest new file mode 100644 index 000000000000..3f85d0af84e7 --- /dev/null +++ b/app-admin/aws-elb-tools/Manifest @@ -0,0 +1 @@ +DIST ElasticLoadBalancing-1.0.15.1.zip 6717939 SHA256 4b1f25de9be87ae1340426de58d966712b86baadd947ee9014d03784bcc0b5a7 SHA512 813f00d632b483a5ec98632d830be4b02fc1bc71aa7bd845faa477f7d05bda7c801e5d83992c111dfc136bf5e1204bf96b00a1c24e5b19438decb356d0841725 WHIRLPOOL b7b4d0eb103c845c887525dd33b4308ee1553b46d3d709db1231cbd972824bc99264f4f48c1229620cb27ba75ae53b8e2255fd75fc1f5c0cf8473a74b95de4a9 diff --git a/app-admin/aws-elb-tools/aws-elb-tools-1.0.15.1.ebuild b/app-admin/aws-elb-tools/aws-elb-tools-1.0.15.1.ebuild new file mode 100644 index 000000000000..1772852952de --- /dev/null +++ b/app-admin/aws-elb-tools/aws-elb-tools-1.0.15.1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +DESCRIPTION="The API tools serve as the client interface to the Elastic Load Balancing web service" +HOMEPAGE="http://aws.amazon.com/developertools/Amazon-EC2/2536" +SRC_URI="mirror://sabayon/${CATEGORY}/ElasticLoadBalancing-${PV}.zip" + +S="${WORKDIR}/ElasticLoadBalancing-${PV}" + +LICENSE="Amazon" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +DEPEND="app-arch/unzip" +RDEPEND="virtual/jre" +RESTRICT="mirror" + +src_unpack() { + unpack ${A} + cd "$S" + find . -name '*.cmd' -delete || die +} + +src_install() { + dodir /opt/${PN} + insinto /opt/${PN}/lib + doins -r "${S}"/lib/* + exeinto /opt/${PN}/bin + doexe "${S}"/bin/* + + dodir /etc/env.d + cat - > "${T}"/99${PN} <<EOF +AWS_ELB_HOME=/opt/${PN} +PATH=/opt/${PN}/bin +ROOTPATH=/opt/${PN}/bin +EOF + doenvd "${T}"/99${PN} + + dodoc "THIRDPARTYLICENSE.TXT" +} + +pkg_postinst() { + ewarn "Remember to run: env-update && source /etc/profile if you plan" + ewarn "to use these tools in a shell before logging out (or restarting" + ewarn "your login manager)" + elog + elog "You need to put the following in your ~/.bashrc replacing the" + elog "values with the full path to your AWS credentials file." + elog + elog " export AWS_CREDENTIAL_FILE=/path/and_filename_of_credential_file" + elog + elog "It should contains two lines: the first line lists the AWS Account's" + elog "AWS Access Key ID, and the second line lists the AWS Account's" + elog "Secret Access Key. For example:" + elog + elog " AWSAccessKeyId=AKIAIOSFODNN7EXAMPLE" + elog " AWSSecretKey=wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY" +} diff --git a/app-admin/aws-elb-tools/metadata.xml b/app-admin/aws-elb-tools/metadata.xml new file mode 100644 index 000000000000..c964a88f43ca --- /dev/null +++ b/app-admin/aws-elb-tools/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>lxnay@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/app-admin/aws-iam-tools/Manifest b/app-admin/aws-iam-tools/Manifest new file mode 100644 index 000000000000..25352ac91b4c --- /dev/null +++ b/app-admin/aws-iam-tools/Manifest @@ -0,0 +1 @@ +DIST IAMCli-1.3.0.zip 3957057 SHA256 4878b19d889dab063d09f724b342b67fb872843ac60c1105a77cf2f6610908d1 SHA512 5012ece2d0569545848d83cf879b4d05f7f955f22bbc31b86f3993e4f5ee48de3099369fddf7f2b2d98f89e56c8c329e427a1f7dca0afa728ea9593c1b36497c WHIRLPOOL b228ce1cf048eed4e1cd9679510184321657a47491d8215b624db37345cadebf3f61325556e52e65fea8f622cbc611f0a126f92e9061d51e7486589c9829374f diff --git a/app-admin/aws-iam-tools/aws-iam-tools-1.3.0.ebuild b/app-admin/aws-iam-tools/aws-iam-tools-1.3.0.ebuild new file mode 100644 index 000000000000..15afc3264526 --- /dev/null +++ b/app-admin/aws-iam-tools/aws-iam-tools-1.3.0.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +DESCRIPTION="The Command Line Interface (CLI) for the AWS Identity and Access Management (IAM) Service" +HOMEPAGE="http://aws.amazon.com/developertools/AWS-Identity-and-Access-Management/4143" +SRC_URI="mirror://sabayon/${CATEGORY}/IAMCli-${PV}.zip" + +S="${WORKDIR}/IAMCli-${PV}" + +LICENSE="Amazon" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +DEPEND="app-arch/unzip" +RDEPEND="virtual/jre" +RESTRICT="mirror" + +src_unpack() { + unpack ${A} + cd "${WORKDIR}/IAMCli-${PV}" + find . -name '*.cmd' -delete || die +} + +src_install() { + dodir /opt/${PN} + insinto /opt/${PN}/lib + doins -r "${S}"/lib/* + exeinto /opt/${PN}/bin + doexe "${S}"/bin/* + + dodir /etc/env.d + cat - > "${T}"/99${PN} <<EOF +AWS_IAM_HOME=/opt/${PN} +PATH=/opt/${PN}/bin +ROOTPATH=/opt/${PN}/bin +EOF + doenvd "${T}"/99${PN} + + dodoc "LICENSE.txt" +} + +pkg_postinst() { + ewarn "Remember to run: env-update && source /etc/profile if you plan" + ewarn "to use these tools in a shell before logging out (or restarting" + ewarn "your login manager)" + elog + elog "You need to put the following in your ~/.bashrc replacing the" + elog "values with the full path to your AWS credentials file." + elog + elog " export AWS_CREDENTIAL_FILE=/path/and_filename_of_credential_file" + elog + elog "It should contains two lines: the first line lists the AWS Account's" + elog "AWS Access Key ID, and the second line lists the AWS Account's" + elog "Secret Access Key. For example:" + elog + elog " AWSAccessKeyId=AKIAIOSFODNN7EXAMPLE" + elog " AWSSecretKey=wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY" +} diff --git a/app-admin/aws-iam-tools/metadata.xml b/app-admin/aws-iam-tools/metadata.xml new file mode 100644 index 000000000000..1a971abe53b5 --- /dev/null +++ b/app-admin/aws-iam-tools/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>proxy-maintainers</herd> + <maintainer> + <email>lxnay@gentoo.org</email> + </maintainer> + <maintainer> + <email>sergey.zhuga@gmail.com</email> + <name>Sergey Zhuga</name> + <description>Proxy maintainers. CC him on bugs</description> + </maintainer> +</pkgmetadata> diff --git a/app-admin/aws-rds-tools/Manifest b/app-admin/aws-rds-tools/Manifest new file mode 100644 index 000000000000..f27e73566040 --- /dev/null +++ b/app-admin/aws-rds-tools/Manifest @@ -0,0 +1 @@ +DIST RDSCli-1.6.001.zip 6291974 SHA256 2261aa6b89b7e22eefde751eeb7060f864efd64b494fdf43e5b8e9d2a1391087 SHA512 29eb31064cc9b067bdc625e9777dd1cc77bdbd01a167c91c396d52f89fd9617496e2383fe343a17abb0d8029e47eb87f8ae7e60c0dd5a89cee485dbe45a05963 WHIRLPOOL 8e73ff6cfa3ce5f32ad79f73e5e295f725f6adc75997bcd3a76b52a76de631a7eb2e3bd504ad6190785b7bf713951340ef7adb0e417fb5027c4cf974dcab43bd diff --git a/app-admin/aws-rds-tools/aws-rds-tools-1.6.001.ebuild b/app-admin/aws-rds-tools/aws-rds-tools-1.6.001.ebuild new file mode 100644 index 000000000000..9751200d6b9f --- /dev/null +++ b/app-admin/aws-rds-tools/aws-rds-tools-1.6.001.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +DESCRIPTION="The Command Line Toolkit for the Amazon Relational Database Service" +HOMEPAGE="http://aws.amazon.com/developertools/2928" +SRC_URI="mirror://sabayon/${CATEGORY}/RDSCli-${PV}.zip" + +S="${WORKDIR}/RDSCli-${PV}" + +LICENSE="Amazon" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +DEPEND="app-arch/unzip" +RDEPEND="virtual/jre" +RESTRICT="mirror" + +src_unpack() { + unpack ${A} + cd "$S" + find . -name '*.cmd' -delete || die +} + +src_install() { + dodir /opt/${PN} + insinto /opt/${PN}/lib + doins -r "${S}"/lib/* + exeinto /opt/${PN}/bin + doexe "${S}"/bin/* + + dodir /etc/env.d + cat - > "${T}"/99${PN} <<EOF +AWS_RDS_HOME=/opt/${PN} +PATH=/opt/${PN}/bin +ROOTPATH=/opt/${PN}/bin +EOF + doenvd "${T}"/99${PN} + + dodoc "THIRDPARTYLICENSE.TXT" +} + +pkg_postinst() { + ewarn "Remember to run: env-update && source /etc/profile if you plan" + ewarn "to use these tools in a shell before logging out (or restarting" + ewarn "your login manager)" + elog + elog "You need to put the following in your ~/.bashrc replacing the" + elog "values with the full path to your AWS credentials file." + elog + elog " export AWS_CREDENTIAL_FILE=/path/and_filename_of_credential_file" + elog + elog "It should contains two lines: the first line lists the AWS Account's" + elog "AWS Access Key ID, and the second line lists the AWS Account's" + elog "Secret Access Key. For example:" + elog + elog " AWSAccessKeyId=AKIAIOSFODNN7EXAMPLE" + elog " AWSSecretKey=wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY" +} diff --git a/app-admin/aws-rds-tools/metadata.xml b/app-admin/aws-rds-tools/metadata.xml new file mode 100644 index 000000000000..1a971abe53b5 --- /dev/null +++ b/app-admin/aws-rds-tools/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>proxy-maintainers</herd> + <maintainer> + <email>lxnay@gentoo.org</email> + </maintainer> + <maintainer> + <email>sergey.zhuga@gmail.com</email> + <name>Sergey Zhuga</name> + <description>Proxy maintainers. CC him on bugs</description> + </maintainer> +</pkgmetadata> diff --git a/app-admin/bastille/Manifest b/app-admin/bastille/Manifest new file mode 100644 index 000000000000..ae837f777488 --- /dev/null +++ b/app-admin/bastille/Manifest @@ -0,0 +1,2 @@ +DIST Bastille-3.0.9.tar.bz2 319045 SHA256 1fd66ef724441a36459d5f937ce76c3bb9f7ccc9584d318a916ff59f709fc02d SHA512 a97ab2c2bb64c655d43ddcfd4000cee8666787e5b5923390e3155b258c3a2cf7d131abd474f9b0dd415eb455b664ab26a875da6636268b2a715ea87dd4dae2f0 WHIRLPOOL 5e2044814844d6779dcdd9d8154696502936a73fd599f630c18ff218b32c75edb094a3c3b50ec496d6db05a0569f3df08f423f65f86ca4de98bca3888aac48b6 +DIST bastille-3.0.9-gentoo-0.2.patch.bz2 14117 SHA256 91773f8fda6aa67dd87c4451f04ed525965c7408590281b960a3e717ff57880c SHA512 a4ecfc064d6cf8c12b6f53c81dea841931df270293b03c39266861121f3def28fcbc4127b3bc9374028983e584736fb85361443badaadec7441cfb1570bdea8f WHIRLPOOL 624d539d140b540e29e453d178afd23f6ba8d8f1584309852eee2f73c179f1d8e5eb907ddaddc939c4b47a5581400956c7c5a17fb9c039ed54cda49d22144c00 diff --git a/app-admin/bastille/bastille-3.0.9-r1.ebuild b/app-admin/bastille/bastille-3.0.9-r1.ebuild new file mode 100644 index 000000000000..9b8a129ad736 --- /dev/null +++ b/app-admin/bastille/bastille-3.0.9-r1.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PERL_EXPORT_PHASE_FUNCTIONS=no +inherit eutils perl-module + +PATCHVER=0.2 +MY_PN=${PN/b/B} +MY_P=${MY_PN}-${PV} +S=${WORKDIR}/${MY_PN} +DESCRIPTION="Bastille-Linux is a security hardening tool" +HOMEPAGE="http://bastille-linux.org/" +SRC_URI="mirror://sourceforge/${PN}-linux/${MY_P}.tar.bz2 + mirror://gentoo/${P}-gentoo-${PATCHVER}.patch.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~ppc ~sparc ~alpha ~amd64" +IUSE="X" + +RDEPEND=" + net-firewall/iptables + app-admin/logrotate + dev-perl/Curses + net-firewall/psad + X? ( dev-perl/perl-tk ) + virtual/logger +" + +src_prepare() { + epatch "${WORKDIR}"/${P}-gentoo-${PATCHVER}.patch + + # make sure the Perl modules go into vendor dir + epatch "${FILESDIR}/${P}-perl.patch" + perl_set_version + + cd "${S}" + chmod a+x Install.sh bastille-ipchains bastille-netfilter +} + +src_install() { + perl_set_version + export VENDOR_LIB + + cd "${S}" + DESTDIR="${D}" ./Install.sh + + # Example configs + cd "${S}" + insinto /usr/share/Bastille + doins *.config + + newinitd ${PN}-firewall.gentoo-init ${PN}-firewall + + # Documentation + cd "${S}" + dodoc *.txt BUGS Change* README* + cd "${S}"/docs + doman *.1m +} + +pkg_postinst() { + elog "Please be aware that when using the Server Lax, Server Moderate, or" + elog "Server Paranoia configurations, you may need to use InteractiveBastille" + elog "to set any advanced network information, such as masquerading and" + elog "internal interfaces, if you plan to use them." +} diff --git a/app-admin/bastille/files/bastille-3.0.9-perl.patch b/app-admin/bastille/files/bastille-3.0.9-perl.patch new file mode 100644 index 000000000000..ab109093bc14 --- /dev/null +++ b/app-admin/bastille/files/bastille-3.0.9-perl.patch @@ -0,0 +1,25 @@ +diff -ruN Bastille-gentoo-2/Install.sh Bastille/Install.sh +--- Bastille-gentoo-2/Install.sh 2014-12-09 23:05:55.674808824 +0100 ++++ Bastille/Install.sh 2014-12-09 23:17:25.907847419 +0100 +@@ -3,7 +3,7 @@ + umask 077 + + mkdir -p ${DESTDIR}/usr/sbin +-mkdir -p ${DESTDIR}/usr/lib/perl5/site_perl/Curses ++mkdir -p ${DESTDIR}/${VENDOR_LIB}/Curses + mkdir -p ${DESTDIR}/usr/lib/Bastille + mkdir -p ${DESTDIR}/usr/share/Bastille + mkdir -p ${DESTDIR}/usr/share/Bastille/OSMap +@@ -13,9 +13,9 @@ + + cp AutomatedBastille ${DESTDIR}/usr/sbin/ + cp BastilleBackEnd ${DESTDIR}/usr/sbin +-cp Bastille_Curses.pm ${DESTDIR}/usr/lib/perl5/site_perl +-cp Bastille_Tk.pm ${DESTDIR}/usr/lib/perl5/site_perl +-cp Curses/Widgets.pm ${DESTDIR}/usr/lib/perl5/site_perl/Curses ++cp Bastille_Curses.pm ${DESTDIR}/${VENDOR_LIB} ++cp Bastille_Tk.pm ${DESTDIR}/${VENDOR_LIB} ++cp Curses/Widgets.pm ${DESTDIR}/${VENDOR_LIB}/Curses + cp InteractiveBastille ${DESTDIR}/usr/sbin + # Questions.txt has been replaced by Modules.txt and Questions/ + #cp Questions.txt ${DESTDIR}/usr/share/Bastille diff --git a/app-admin/bastille/metadata.xml b/app-admin/bastille/metadata.xml new file mode 100644 index 000000000000..c60ce0ba2450 --- /dev/null +++ b/app-admin/bastille/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>hardened</herd> + <longdescription>The Bastille Hardening System attempts to "harden" or "tighten" Unix operating systems.</longdescription> + <upstream> + <remote-id type="sourceforge">bastille-linux</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/bcfg2/Manifest b/app-admin/bcfg2/Manifest new file mode 100644 index 000000000000..a0d36f6c121f --- /dev/null +++ b/app-admin/bcfg2/Manifest @@ -0,0 +1 @@ +DIST bcfg2-1.2.4.tar.gz 1959767 SHA256 c874139508c7a1c31c224548ae53dc40fe54e091cc0c036cc9d9c382263d4d16 SHA512 15f9079dd18485088464da5ea63e53435e2a2141970e6c0400797424bd3c612928349438ed0f6bb2874eb4599768e210e3fef970ed09f8fb2c2d673b986221d9 WHIRLPOOL 4b87826149ef86e9e5f955c2f0b79351c6fd46b9a3c18f773e25e35d60424605bfc47125c9ed3ac3b5174017595d9a173a20b9b0fe9aa69da51e0bde1836da65 diff --git a/app-admin/bcfg2/bcfg2-1.2.4-r1.ebuild b/app-admin/bcfg2/bcfg2-1.2.4-r1.ebuild new file mode 100644 index 000000000000..97ae64fb9028 --- /dev/null +++ b/app-admin/bcfg2/bcfg2-1.2.4-r1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE='ssl' + +inherit distutils-r1 + +DESCRIPTION="Configuration management tool" +HOMEPAGE="http://bcfg2.org" +SRC_URI="ftp://ftp.mcs.anl.gov/pub/bcfg/${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x64-solaris" +IUSE="doc cheetah genshi server" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" +RDEPEND="app-portage/gentoolkit[${PYTHON_USEDEP}] + cheetah? ( dev-python/cheetah[${PYTHON_USEDEP}] ) + genshi? ( dev-python/genshi[${PYTHON_USEDEP}] ) + server? ( + dev-libs/libgamin[python,${PYTHON_USEDEP}] + dev-python/lxml[${PYTHON_USEDEP}] + dev-python/nose[${PYTHON_USEDEP}] + virtual/fam )" + +python_compile_all() { + if use doc; then + einfo "Building Bcfg2 documentation" + sphinx-build doc doc_output || die + fi +} + +python_install() { + distutils-r1_python_install \ + --record=PY_SERVER_LIBS + + if ! use server; then + rm -f "${ED%/}"/usr/bin/bcfg2-* || die + rm -f "${D%/}$(python_get_scriptdir)"/bcfg2-* || die + rm -rf "${ED%/}"/usr/share/bcfg2 || die + rm -rf "${ED%/}"/usr/share/man/man8 || die + else + newinitd "${FILESDIR}/${PN}-server-1.2.0.rc" bcfg2-server + fi + + insinto /etc + doins examples/bcfg2.conf + + if use doc; then + cd doc_output || die + docinto html + dodoc -r [a-z]* _images _static + fi +} + +pkg_postinst () { + if use server; then + einfo "If this is a new installation, you probably need to run:" + einfo " bcfg2-admin init" + fi +} diff --git a/app-admin/bcfg2/files/bcfg2-server-1.2.0.rc b/app-admin/bcfg2/files/bcfg2-server-1.2.0.rc new file mode 100644 index 000000000000..d3edc5ca949a --- /dev/null +++ b/app-admin/bcfg2/files/bcfg2-server-1.2.0.rc @@ -0,0 +1,23 @@ +#!/sbin/runscript +# +# bcfgd - bcfg configuration daemon +# +# + +depend () { + need net +} + +start () { + ebegin "Starting bcfg2-server" + start-stop-daemon --start --quiet --pidfile /var/run/bcfg2-server.pid \ + --exec /usr/sbin/bcfg2-server -- -D /var/run/bcfg2-server.pid + eend $? "Failed to start bcfg2-server" +} + +stop () { + ebegin "Stopping bcfg2-server" + start-stop-daemon --stop --quiet --pidfile /var/run/bcfg2-server.pid \ + --signal INT + eend $? "Failed to stop bcfg2-server" +} diff --git a/app-admin/bcfg2/metadata.xml b/app-admin/bcfg2/metadata.xml new file mode 100644 index 000000000000..0f2dd7febf21 --- /dev/null +++ b/app-admin/bcfg2/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>proxy-maintainers</herd> +<maintainer> + <email>xmw@gentoo.org</email> + <name>Michael Weber</name> + <description>Proxy Maintainer</description> +</maintainer> +<maintainer> + <email>mjinks@uchicago.edu</email> + <name>Michael Jinks</name> +</maintainer> +<use> + <flag name='cheetah'>Include dev-python/cheetah support</flag> + <flag name='genshi'>Include dev-python/genshi support</flag> + <flag name='server'>Installs scripts to be used on the server-side of this app</flag> +</use> +</pkgmetadata> diff --git a/app-admin/calamares/Manifest b/app-admin/calamares/Manifest new file mode 100644 index 000000000000..4f3c7bc63df7 --- /dev/null +++ b/app-admin/calamares/Manifest @@ -0,0 +1 @@ +DIST calamares-1.1.2.tar.gz 3642991 SHA256 6adf5777f51998a88b19f37c3dd4bb8256be4464106ffbd5d1393ef67109d49c SHA512 567bfae24691576fb814297d7db66f61b39a639b71b2191defb43fd0d2e56b9ccf70dfd666e1fd1faaa1b954c349aea96ad2b5d1b5d59bdc5a351cde6bbdcea6 WHIRLPOOL e6b88ec952d31088c138a6467b98bd66f739ee48daf7689b5e8356274565beddd602ae02df559d6aa9f6483f797da3b7e284d04071eb3e54cf7b8679abe3730a diff --git a/app-admin/calamares/calamares-1.1.2-r1.ebuild b/app-admin/calamares/calamares-1.1.2-r1.ebuild new file mode 100644 index 000000000000..5f732d8e5a2f --- /dev/null +++ b/app-admin/calamares/calamares-1.1.2-r1.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python{3_3,3_4} ) +inherit kde5 python-r1 + +DESCRIPTION="Distribution-independent installer framework" +HOMEPAGE="http://calamares.io" +if [[ ${KDE_BUILD_TYPE} == live ]] ; then + EGIT_REPO_URI="git://github.com/${PN}/${PN}" + KEYWORDS="" +else + SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.gz" + KEYWORDS="~amd64" +fi + +LICENSE="GPL-3" +IUSE="+networkmanager +upower" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND="${PYTHON_DEPS} + >=dev-cpp/yaml-cpp-0.5.1 + >=dev-libs/boost-1.55:=[${PYTHON_USEDEP}] + $(add_frameworks_dep kconfig) + $(add_frameworks_dep ki18n) + $(add_frameworks_dep kcoreaddons) + $(add_frameworks_dep solid) + dev-qt/linguist-tools:5 + dev-qt/qtdbus:5 + dev-qt/qtgui:5 + dev-qt/qtquick1:5 + dev-qt/qtsvg:5 + dev-qt/qtwidgets:5 + sys-apps/dbus + sys-apps/dmidecode + sys-auth/polkit-qt[qt5] +" + +RDEPEND="${DEPEND} + app-admin/sudo + dev-libs/libatasmart + net-misc/rsync + sys-apps/gptfdisk + >=sys-block/parted-3.0 + || ( sys-boot/grub:2 sys-boot/gummiboot ) + sys-boot/os-prober + sys-fs/squashfs-tools + sys-fs/udisks:2[systemd] + virtual/udev[systemd] + networkmanager? ( net-misc/networkmanager ) + upower? ( sys-power/upower ) +" + +src_prepare() { + python_setup + export PYTHON_INCLUDE_DIRS="$(python_get_includedir)" \ + PYTHON_INCLUDE_PATH="$(python_get_library_path)"\ + PYTHON_CFLAGS="$(python_get_CFLAGS)"\ + PYTHON_LIBS="$(python_get_LIBS)" + export QT_SELECT=qt5 +} + +src_configure() { + local mycmakeargs=( "-DWITH_PARTITIONMANAGER=1" ) + kde5_src_configure + sed -i -e 's:pkexec /usr/bin/calamares:calamares-pkexec:' "${S}"/calamares.desktop + sed -i -e 's:Icon=calamares:Icon=drive-harddisk:' "${S}"/calamares.desktop +} + +src_install() { + kde5_src_install + dobin "${FILESDIR}"/calamares-pkexec +} diff --git a/app-admin/calamares/files/calamares-pkexec b/app-admin/calamares/files/calamares-pkexec new file mode 100644 index 000000000000..3300d3b70c61 --- /dev/null +++ b/app-admin/calamares/files/calamares-pkexec @@ -0,0 +1,2 @@ +#!/bin/sh +pkexec "/usr/bin/calamares" "$@" diff --git a/app-admin/calamares/metadata.xml b/app-admin/calamares/metadata.xml new file mode 100644 index 000000000000..b719686ba39d --- /dev/null +++ b/app-admin/calamares/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> + <email>johu@gentoo.org</email> + <name>Johannes Huber</name> + </maintainer> + <longdescription> + Calamares is a distribution-independent system installer, with an + advanced partitioning feature for both manual and automated + partitioning operations. It is the first installer with an automated + “Replace Partition” option, which makes it easy to reuse a partition + over and over for distribution testing. Calamares is designed to be + customizable by distribution maintainers without need for cumbersome + patching, thanks to third party branding and external modules support. + </longdescription> + <upstream> + <remote-id type="github">calamares/calamares</remote-id> + </upstream> +</pkgmetadata> + diff --git a/app-admin/cancd/Manifest b/app-admin/cancd/Manifest new file mode 100644 index 000000000000..cd6ebdfb995f --- /dev/null +++ b/app-admin/cancd/Manifest @@ -0,0 +1 @@ +DIST cancd-0.1.0.tar.gz 7634 SHA256 aea21e3eadee64d2b76591d272dcd03c566215b2320d7fef5cfe0937c3ef0315 SHA512 9b01ed3ea1e27276799d657572645a7b40da9cf80910a73e2de9d733e8f3cfa374e29764b1e5853d7fb5a6835edda3103a1a6d31fd699010f98318631e62c5fb WHIRLPOOL 84e1b6461bc5ae40b01c71112fed9999e590a7cbed54da6850131bd475eafb6ab7830a418a6fc46bf217645ed73aec080af6d4117a9ea97f1b48dad92cc93caf diff --git a/app-admin/cancd/cancd-0.1.0-r3.ebuild b/app-admin/cancd/cancd-0.1.0-r3.ebuild new file mode 100644 index 000000000000..dce28970573c --- /dev/null +++ b/app-admin/cancd/cancd-0.1.0-r3.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils + +DESCRIPTION="the CA NetConsole Daemon, a daemon to receive output from the Linux netconsole driver" +HOMEPAGE="http://oss.oracle.com/projects/cancd/" +SRC_URI="http://oss.oracle.com/projects/cancd/dist/files/source/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +src_prepare() { + epatch "${FILESDIR}"/${P}-build.patch #246734 + epatch "${FILESDIR}"/${P}-c-cleanup.patch + # slight makefile cleanup + sed -i \ + -e '/^CFLAGS/s,-g,,' \ + -e '/^CFLAGS/s,-O2,-Wall -W -Wextra -Wundef -Wendif-labels -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wredundant-decls -Wunreachable-code -Wlong-long,' \ + -e '/rm cancd cancd.o/s,rm,rm -f,' \ + Makefile || die +} + +src_install() { + dosbin cancd + newinitd "${FILESDIR}"/cancd-init.d cancd + newconfd "${FILESDIR}"/cancd-conf.d cancd + newinitd "${FILESDIR}"/netconsole-init.d netconsole + newconfd "${FILESDIR}"/netconsole-conf.d netconsole + keepdir /var/crash + fowners adm:nobody /var/crash + fperms 700 /var/crash +} diff --git a/app-admin/cancd/files/cancd-0.1.0-build.patch b/app-admin/cancd/files/cancd-0.1.0-build.patch new file mode 100644 index 000000000000..b1c99b1cd565 --- /dev/null +++ b/app-admin/cancd/files/cancd-0.1.0-build.patch @@ -0,0 +1,14 @@ +fix building with newer glibc + +http://bugs.gentoo.org/246734 + +--- cancd.c ++++ cancd.c +@@ -36,6 +36,7 @@ + #include <libgen.h> + #include <getopt.h> + #include <stdarg.h> ++#include <limits.h> + #include <sys/socket.h> + #include <arpa/inet.h> + #include <netinet/in.h> diff --git a/app-admin/cancd/files/cancd-0.1.0-c-cleanup.patch b/app-admin/cancd/files/cancd-0.1.0-c-cleanup.patch new file mode 100644 index 000000000000..47defb3e43b2 --- /dev/null +++ b/app-admin/cancd/files/cancd-0.1.0-c-cleanup.patch @@ -0,0 +1,65 @@ +diff -Nuar --exclude '*~' --exclude '*.orig' --exclude Makefile cancd-0.1.0/cancd.c cancd-0.1.0.new/cancd.c +--- cancd-0.1.0/cancd.c 2005-08-18 11:47:48.000000000 -0700 ++++ cancd-0.1.0.new/cancd.c 2006-03-17 17:09:46.402025517 -0800 +@@ -199,7 +199,7 @@ + char *path; + }; + +-static int make_tree(const char *path, int mode) ++static int make_tree(const char *path, mode_t mode) + { + struct stat stat_buf; + char *ptr, *tmp; +@@ -319,7 +319,7 @@ + static int open_socket() + { + int rc; +- struct sockaddr_in servaddr = {0, }; ++ struct sockaddr_in servaddr; + + sock_fd = socket(PF_INET, SOCK_DGRAM, 0); + if (sock_fd < 0) +@@ -438,7 +438,7 @@ + int rc; + static int block = 1; + +- rc = recvfrom(sock_fd, buf, bufsize, 0, ++ rc = recvfrom(fd, buf, bufsize, 0, + (struct sockaddr *)from, fromlen); + if (rc < 0) + { +@@ -569,7 +569,7 @@ + + static int valid_format() + { +- struct in_addr addr = {0, }; ++ struct in_addr addr; + char *name; + int rc; + +@@ -599,9 +599,11 @@ + exit(rc); + } + ++/* + extern char *optarg; + extern int optopt; + extern int opterr; ++*/ + static int parse_options(int argc, char *argv[]) + { + int c; +@@ -641,11 +643,11 @@ + optarg); + print_usage(-EINVAL); + } +- log_prefix = optarg; ++ log_prefix = strdup(optarg); + break; + + case 'o': +- log_format = optarg; ++ log_format = strdup(optarg); + if (!log_format || !*log_format || !valid_format()) + { + fprintf(stderr, diff --git a/app-admin/cancd/files/cancd-conf.d b/app-admin/cancd/files/cancd-conf.d new file mode 100644 index 000000000000..8a46f420e425 --- /dev/null +++ b/app-admin/cancd/files/cancd-conf.d @@ -0,0 +1,20 @@ +#!/sbin/runscript +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# user to run as, root strongly discouraged +# user should have /bin/false for a shell +# but file access into /var +CHUID='adm:nobody' + +# port to listen on +CANCD_PORT=6667 + +# directory to output to +CRASH_DIR=/var/crash + +# one file per minute, one dir per host/date +#CRASH_FORMAT="%Q/%Y-%m-%d/%H:%M.log" +# one file per day, one dir per host +CRASH_FORMAT="%Q/%Y-%m-%d.log" diff --git a/app-admin/cancd/files/cancd-init.d b/app-admin/cancd/files/cancd-init.d new file mode 100644 index 000000000000..8031ca00ec33 --- /dev/null +++ b/app-admin/cancd/files/cancd-init.d @@ -0,0 +1,23 @@ +#!/sbin/runscript +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + need net +} + +start() { + mkdir -p ${CRASH_DIR} + chown ${CHUID} ${CRASH_DIR} + chmod 700 ${CRASH_DIR} + ebegin "Starting cancd" + start-stop-daemon --start --quiet --user ${CHUID} --exec /usr/sbin/cancd -- -p ${CANCD_PORT} -l "${CRASH_DIR}" -o "${CRASH_FORMAT}" + eend ${?} +} + +stop() { + ebegin "Stopping cancd" + start-stop-daemon --stop --quiet --exec /usr/sbin/cancd + eend ${?} +} diff --git a/app-admin/cancd/files/netconsole-conf.d b/app-admin/cancd/files/netconsole-conf.d new file mode 100644 index 000000000000..9db98b781e3e --- /dev/null +++ b/app-admin/cancd/files/netconsole-conf.d @@ -0,0 +1,28 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# required! +TGT_IP='' + +DEVICE=eth0 + +SRC_IP='' +# will default to first address on $DEVICE +# must be specified if the device does not have an IP at init time +SRC_PORT=6665 # default + +# note that cancd daemon uses 6667 as default +# but netconsole.txt says 6666 is the default +TGT_PORT=6667 + +# if you want to broadcast, specify 'broadcast' here. +# it's a security hole on an untrusted network. +TGT_MAC='' + +LOGLEVEL='1' +# LOGLEVEL are the kernel console logging levels +# [0..7] = EMERG,ALERT,CRIT,ERR,WARNING,NOTICE,INFO,DEBUG +# 1 means only kernel panics are reported (default) +# this affects all console logging +# see syslog(2) for more info diff --git a/app-admin/cancd/files/netconsole-init.d b/app-admin/cancd/files/netconsole-init.d new file mode 100644 index 000000000000..e94aeab468d3 --- /dev/null +++ b/app-admin/cancd/files/netconsole-init.d @@ -0,0 +1,68 @@ +#!/sbin/runscript +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + need net +} + +start() { + checkconfig || return 1 + if [ -z "${TGT_MAC}" ]; then + LC_ALL=C /bin/ping -nq -c 3 "${TGT_IP}" -I "${DEVICE}" 1>/dev/null 2>/dev/null + ret=$? + # ping worked, try arp + if [ $ret -eq 0 ]; then + TGT_MAC="$(LC_ALL=C arp -an -i ${DEVICE} ${TGT_IP} |egrep -v 'incomplete|no match' | awk '{print $4}')" + fi + elif [ "${TGT_MAC}" == "broadcast" ]; then + TGT_MAC='' + fi + ebegin "Starting netconsole ${SRC_IP}:${SRC_PORT}(${DEVICE}) -> ${TGT_IP}:${TGT_PORT} ${TGT_MAC}" + # else we use the MAC that we are given + modprobe netconsole netconsole=${SRC_PORT}@${SRC_IP}/${DEVICE},${TGT_PORT}@${TGT_IP}/${TGT_MAC} + ret=$? + [ $ret -eq 0 ] && dmesg -n ${LOGLEVEL} + eend $ret +} + +stop() { + ebegin "Stopping netconsole" + modprobe -r netconsole + eend $? +} + +checkconfig() { + # kernel uses 15 internally + if [ "$LOGLEVEL" -lt 0 -o "${LOGLEVEL}" -gt 15 ]; then + eerror "Invalid kernel console loglevel." + return 1 + fi + + if [ "$SRC_PORT" -le 0 ]; then + eerror "Invalid source port." + return 1 + fi + + LC_ALL=C ifconfig "${DEVICE}" 1>/dev/null 2>/dev/null + ret=$? + + if [ -z "${DEVICE}" -o "${ret}" -gt 0 ]; then + eerror "Source device invalid." + return 1 + fi + + if [ "$TGT_PORT" -le 0 ]; then + eerror "Invalid target port." + return 1 + fi + + if [ -z "$TGT_IP" ]; then + eerror "Unspecified target address." + return 1 + fi + + return 0 +} +# vim: ts=4 sw=4 sts=4: diff --git a/app-admin/cancd/metadata.xml b/app-admin/cancd/metadata.xml new file mode 100644 index 000000000000..a732fd8b2f03 --- /dev/null +++ b/app-admin/cancd/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> + <email>robbat2@gentoo.org</email> + <name>Robin H. Johnson</name> + </maintainer> +</pkgmetadata> diff --git a/app-admin/ccze/Manifest b/app-admin/ccze/Manifest new file mode 100644 index 000000000000..71616016a9fc --- /dev/null +++ b/app-admin/ccze/Manifest @@ -0,0 +1 @@ +DIST ccze-0.2.1.tar.gz 139795 SHA256 8263a11183fd356a033b6572958d5a6bb56bfd2dba801ed0bff276cfae528aa3 SHA512 1704da8d4c97a3403a57d7841db8a6e4ba6116e401f91d9ecf1b1371cc18b40641e5665c9414740d6a523874be6b6527f5c0d4f3a3796c7b96ed83192146b2b7 WHIRLPOOL 93f8891c3a7885ca264f7269493893e6555865c89dee5cf5c890754f55db0ac60dce26d76318c8f838d7ee6ff6fe8e2454e9b4490ab607e496a5fdc0ef4f7685 diff --git a/app-admin/ccze/ccze-0.2.1-r3.ebuild b/app-admin/ccze/ccze-0.2.1-r3.ebuild new file mode 100644 index 000000000000..9150eed38e6b --- /dev/null +++ b/app-admin/ccze/ccze-0.2.1-r3.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit fixheadtails autotools eutils toolchain-funcs + +DESCRIPTION="A flexible and fast logfile colorizer" +HOMEPAGE="http://dev.gentoo.org/~joker/ccze/ccze.txt" +SRC_URI="mirror://gentoo/${P}.tar.gz" + +RESTRICT="test" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86 ~x86-fbsd" +IUSE="" + +DEPEND="dev-libs/libpcre + sys-libs/ncurses" + +RDEPEND="${DEPEND}" + +DOCS=( AUTHORS ChangeLog ChangeLog-0.1 NEWS THANKS README FAQ ) + +src_prepare() { + + epatch "${FILESDIR}"/ccze-fbsd.patch + epatch "${FILESDIR}"/ccze-segfault.patch + epatch "${FILESDIR}"/ccze-ldflags.patch + epatch "${FILESDIR}"/${P}-tinfo.patch + + # GCC 4.x fixes + sed -e 's/-Wswitch -Wmulticharacter/-Wswitch/' \ + -i src/Makefile.in || die + sed -e '/AC_CHECK_TYPE(error_t, int)/d' \ + -i configure.ac || die + + eautoreconf + + ht_fix_file Rules.mk.in + + tc-export CC +} diff --git a/app-admin/ccze/files/ccze-0.2.1-tinfo.patch b/app-admin/ccze/files/ccze-0.2.1-tinfo.patch new file mode 100644 index 000000000000..d0d7550e3337 --- /dev/null +++ b/app-admin/ccze/files/ccze-0.2.1-tinfo.patch @@ -0,0 +1,10 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -100,6 +100,7 @@ + strndup strstr]) + + AC_CHECK_LIB(ncurses, initscr, [], [AC_ERROR(NCurses library not found)]) ++AC_SEARCH_LIBS(stdscr, tinfo,,[AC_ERROR([Cannot find a library providing stdscr])]) + AC_CHECK_FUNC(dlopen, [], [AC_CHECK_LIB(dl, dlopen)]) + AC_CHECK_FUNC(getopt_long, [], [AC_CHECK_LIB(gnugetopt, getopt_long)]) + diff --git a/app-admin/ccze/files/ccze-fbsd.patch b/app-admin/ccze/files/ccze-fbsd.patch new file mode 100644 index 000000000000..ae694e0e4423 --- /dev/null +++ b/app-admin/ccze/files/ccze-fbsd.patch @@ -0,0 +1,25 @@ +--- a/src/ccze-compat.h ++++ b/src/ccze-compat.h +@@ -29,6 +29,11 @@ + #include <stddef.h> + #include <stdio.h> + ++# ifndef __error_t_defined ++typedef int error_t; ++# define __error_t_defined 1 ++# endif ++ + #ifndef HAVE_STRNDUP + char *strndup (const char *s, size_t size); + #endif +--- a/src/ccze-compat.c ++++ b/src/ccze-compat.c +@@ -275,7 +275,7 @@ + char **valuep) + { + int i = getsubopt (optionp, tokens, valuep); +-#if HAVE_SUBOPTARg ++#if HAVE_SUBOPTARG + if (!*valuep && suboptarg) + *valuep = strdup (suboptarg); + #endif diff --git a/app-admin/ccze/files/ccze-ldflags.patch b/app-admin/ccze/files/ccze-ldflags.patch new file mode 100644 index 000000000000..4f8c8f207209 --- /dev/null +++ b/app-admin/ccze/files/ccze-ldflags.patch @@ -0,0 +1,11 @@ +--- a/src/Makefile.in ++++ b/src/Makefile.in +@@ -75,7 +75,7 @@ + ${PROGRAM}: ${OBJECTS} ${PLUGIN_SOBJS} + ${CC} -rdynamic ${ALL_CFLAGS} -o $@ $^ ${ALL_LDFLAGS} + ccze-dump ccze-cssdump: %: %.o ccze-compat.o ccze-color.c +- ${CC} ${ALL_CFLAGS} -o $@ $@.o ccze-compat.o ++ ${CC} ${ALL_CFLAGS} ${ALL_LDFLAGS} -o $@ $@.o ccze-compat.o + ccze-builtins.c: Makefile + echo '#include <ccze.h>' >$@ + echo '#include "ccze-private.h"' >>$@ diff --git a/app-admin/ccze/files/ccze-segfault.patch b/app-admin/ccze/files/ccze-segfault.patch new file mode 100644 index 000000000000..5bdd823e4120 --- /dev/null +++ b/app-admin/ccze/files/ccze-segfault.patch @@ -0,0 +1,29 @@ +--- a/src/ccze.c ++++ b/src/ccze.c +@@ -209,7 +209,7 @@ + } + break; + case 'a': +- plugin = strtok (optarg, "="); ++ plugin = strtok (arg, "="); + value = strtok (NULL, "\n"); + ccze_plugin_argv_set (plugin, value); + break; +@@ -249,7 +249,7 @@ + ccze_config.remfac = 1; + break; + case 'm': +- subopts = optarg; ++ subopts = arg; + while (*subopts != '\0') + { + switch (getsubopt (&subopts, m_subopts, &value)) +@@ -273,7 +273,7 @@ + } + break; + case 'o': +- subopts = optarg; ++ subopts = arg; + while (*subopts != '\0') + { + switch (getsubopt (&subopts, o_subopts, &value)) diff --git a/app-admin/ccze/metadata.xml b/app-admin/ccze/metadata.xml new file mode 100644 index 000000000000..2c85fc4869de --- /dev/null +++ b/app-admin/ccze/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> + <email>joker@gentoo.org</email> + <name>Christian Birchinger</name> + <description>Please take over if you want it</description> +</maintainer> +<longdescription> + CCZE is my C port of RASZi's colorize, with a set of bug fixes and enhancements. + It uses PCRE to do the matching, and NCurses for the output. The goal was to + create a log coloriser, that is fast and light on resources. Also, being extensible + via plug-ins is an important feature too. +</longdescription> +</pkgmetadata> diff --git a/app-admin/cdist/Manifest b/app-admin/cdist/Manifest new file mode 100644 index 000000000000..2db64ac15fb9 --- /dev/null +++ b/app-admin/cdist/Manifest @@ -0,0 +1 @@ +DIST cdist-3.1.9.tar.gz 260817 SHA256 37eb340a83f52f035468b817d9f1218c5954ba2910fb7a800dfe04cf8abae85b SHA512 e2cc40a38961fa5cbb6f51fc5ea2f6a8a1f86cd5b42d85204f2f71e2aba8393d5041a63e756d7c5666cc30c9ab528a9e0e5bccaea8c5a9ed079453cc87d76d06 WHIRLPOOL 41f9d06401149e06969f3d799c7b812e6a992ade3892c6de9f0723bf2a697d45a6c4d1fc46805ee81c340d1f8cb5ffead32d45e7e5bb8b46cbf6aca8a53dd7fa diff --git a/app-admin/cdist/cdist-3.1.9.ebuild b/app-admin/cdist/cdist-3.1.9.ebuild new file mode 100644 index 000000000000..1e53a499d257 --- /dev/null +++ b/app-admin/cdist/cdist-3.1.9.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python{3_3,3_4} ) +inherit distutils-r1 + +DESCRIPTION="A usable configuration management system" +HOMEPAGE="http://www.nico.schottelius.org/software/cdist/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc" + +DOCS=( README ) + +python_install_all() { + if use doc; then + HTML_DOCS=( docs/man/man1/*.html docs/man/man7/*.html ) + fi + distutils-r1_python_install_all + doman docs/man/man1/*.1 docs/man/man7/*.7 +} diff --git a/app-admin/cdist/metadata.xml b/app-admin/cdist/metadata.xml new file mode 100644 index 000000000000..688513dd0ab0 --- /dev/null +++ b/app-admin/cdist/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>proxy-maintainers</herd> + <maintainer> + <email>nerve@ipwar.ch</email> + <name>Daniel Heule</name> + <description>Maintainer. Assign bugs to him</description> + </maintainer> + <upstream> + <remote-id type="pypi">cdist</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/cgmanager/Manifest b/app-admin/cgmanager/Manifest new file mode 100644 index 000000000000..6c026dbd5c83 --- /dev/null +++ b/app-admin/cgmanager/Manifest @@ -0,0 +1,2 @@ +DIST cgmanager-0.36.tar.gz 428374 SHA256 f4707f0130efb50ccd8a1900e7ae626c0631947528ce921a63b15ef848fb2a0d SHA512 3325c03e25b7bd7b8dcfb68bb3dedccf9367ce80c23ac8df3f1af6cdb9ee706eafc0f95fcea055cc1fe9b31acb5bb66c61b16b21dfa057e661fdace3ff207f43 WHIRLPOOL dcaad06e6281f89e672b843f9903473cb1ee5d1b938c72d1b806f7bc7a1014144dd9e6e304e9ce6e2b941a1b224177747dacc7affa122f9a17a14598969a4779 +DIST cgmanager-0.37.tar.gz 430522 SHA256 8309e7f2ae5f4a6b52cc2fca62c098b18ecfe90bca2c9c034ba80f68aa427b6e SHA512 fbe96af36d556c988351f1136f4382d907b8fb6d4098a90b17f4abfbdf182060d8ba059878455a8842597e7ad33ff12b91bddf68a6c42b02ad9549a2ad900a89 WHIRLPOOL 9a78226ec2a6a84c7fb84f3bb2622df159a4b857d990b2d4f22a1d8c7d02d071c0ed046e5d17ea9d2bd4b970a0a6ad9bf59ba68401248db318b89e16010c720a diff --git a/app-admin/cgmanager/cgmanager-0.36-r1.ebuild b/app-admin/cgmanager/cgmanager-0.36-r1.ebuild new file mode 100644 index 000000000000..fad5d258467e --- /dev/null +++ b/app-admin/cgmanager/cgmanager-0.36-r1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +DESCRIPTION="Control Group manager daemon" +HOMEPAGE="https://linuxcontainers.org/cgmanager/introduction/" +SRC_URI="https://linuxcontainers.org/downloads/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" + +RDEPEND=" + sys-libs/libnih[dbus] + sys-apps/dbus" +DEPEND="${RDEPEND}" + +src_prepare() { + # systemd expects files in /sbin but we will have them in /usr/sbin + pushd config/init/systemd > /dev/null || die + sed -i -e "s@sbin@usr/&@" {${PN},cgproxy}.service || \ + die "Failed to fix paths in systemd service files" + popd > /dev/null || die +} + +src_configure() { + econf \ + --with-distro=gentoo \ + --with-init-script=systemd +} + +src_install () { + default + # I see no reason to have the tests in the filesystem. Drop them + rm -r "${D}"/usr/share/${PN}/tests || die "Failed to remove ${PN} tests" + # FIXME: openRC init scripts are not well tested + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newinitd "${FILESDIR}"/cgproxy.initd cgproxy +} diff --git a/app-admin/cgmanager/cgmanager-0.37.ebuild b/app-admin/cgmanager/cgmanager-0.37.ebuild new file mode 100644 index 000000000000..fad5d258467e --- /dev/null +++ b/app-admin/cgmanager/cgmanager-0.37.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +DESCRIPTION="Control Group manager daemon" +HOMEPAGE="https://linuxcontainers.org/cgmanager/introduction/" +SRC_URI="https://linuxcontainers.org/downloads/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" + +RDEPEND=" + sys-libs/libnih[dbus] + sys-apps/dbus" +DEPEND="${RDEPEND}" + +src_prepare() { + # systemd expects files in /sbin but we will have them in /usr/sbin + pushd config/init/systemd > /dev/null || die + sed -i -e "s@sbin@usr/&@" {${PN},cgproxy}.service || \ + die "Failed to fix paths in systemd service files" + popd > /dev/null || die +} + +src_configure() { + econf \ + --with-distro=gentoo \ + --with-init-script=systemd +} + +src_install () { + default + # I see no reason to have the tests in the filesystem. Drop them + rm -r "${D}"/usr/share/${PN}/tests || die "Failed to remove ${PN} tests" + # FIXME: openRC init scripts are not well tested + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newinitd "${FILESDIR}"/cgproxy.initd cgproxy +} diff --git a/app-admin/cgmanager/files/cgmanager.initd b/app-admin/cgmanager/files/cgmanager.initd new file mode 100644 index 000000000000..26c915f4dac8 --- /dev/null +++ b/app-admin/cgmanager/files/cgmanager.initd @@ -0,0 +1,28 @@ +#!/sbin/runscript +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +DAEMON=/usr/sbin/cgmanager +PIDFILE=/run/cgmanager.pid +NESTED=yes +OPTIONS= + +depend() { + after cgproxy +} + +start() { + ebegin "Starting cgmanager server" + + start-stop-daemon --start --pidfile ${PIDFILE} --exec ${DAEMON} \ + -- --daemon -m name=systemd ${OPTIONS} + + eend $? +} + +stop() { + ebegin "Stopping cgproxy server" + start-stop-daemon --stop --quiet -R TERM/45 -p ${PIDFILE} + eend $? +} diff --git a/app-admin/cgmanager/files/cgproxy.initd b/app-admin/cgmanager/files/cgproxy.initd new file mode 100644 index 000000000000..3624598adb31 --- /dev/null +++ b/app-admin/cgmanager/files/cgproxy.initd @@ -0,0 +1,37 @@ +#!/sbin/runscript +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +DAEMON=/usr/sbin/cgproxy +PIDFILE=/run/cgproxy.pid +NESTED=yes +OPTIONS= + +depend() { + before cgmanager +} + +start() { + ebegin "Starting cgproxy server" + if ! /usr/sbin/cgproxy --check-master; then + ewarn "cgmanager is not running" + return 1 + fi + # cgproxy should only run on container unless on older kernel + if [ -e /proc/self/ns/pid ] && [ "$NESTED" != "yes" ]; then + eerror "Too old kernel to support cgroup, please update to >3.8" + return 1 + fi + + start-stop-daemon --start --pidfile ${PIDFILE} --exec ${DAEMON} \ + -- --daemon ${OPTIONS} + + eend $? +} + +stop() { + ebegin "Stopping cgproxy server" + start-stop-daemon --stop --quiet -R TERM/45 -p ${PIDFILE} + eend $? +} diff --git a/app-admin/cgmanager/metadata.xml b/app-admin/cgmanager/metadata.xml new file mode 100644 index 000000000000..230776629fec --- /dev/null +++ b/app-admin/cgmanager/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> +<email>hwoarang@gentoo.org</email> +<name>Markos Chandras</name> +</maintainer> +</pkgmetadata> diff --git a/app-admin/checkrestart/Manifest b/app-admin/checkrestart/Manifest new file mode 100644 index 000000000000..c1525295c588 --- /dev/null +++ b/app-admin/checkrestart/Manifest @@ -0,0 +1 @@ +DIST checkrestart-0.47-sep.tar.bz2 5888 SHA256 e80c89b8e2b082c4e2050a45dbdd375c6ef68dd91bdb000ae701359d0d04558e SHA512 7fe91a3e4c8a0ff09ff19d3d521739e2e289dc45be0def0000e1036cb964916f84ed2beb902fe0558ae999c5e34ecdc891a168342cc8e3ab967254e65c26dd20 WHIRLPOOL 12bcce4e273aeaa2f486d8b225aaf9e1c7eb1336fe77b8b9b6f7cbf6358560c0dc5b9063ef516baca53fe861541fc15553816a5d1d21d9a8f9ccae2276d345c1 diff --git a/app-admin/checkrestart/checkrestart-0.47-r3.ebuild b/app-admin/checkrestart/checkrestart-0.47-r3.ebuild new file mode 100644 index 000000000000..f23c26852cdc --- /dev/null +++ b/app-admin/checkrestart/checkrestart-0.47-r3.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils python-single-r1 + +DESCRIPTION="the sysadmin's rolling upgrade tool" +HOMEPAGE="http://arcdraco.net/checkrestart" +SRC_URI="http://arcdraco.net/~dragon/${P}-sep.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~hppa ~x86" +IUSE="" + +RDEPEND=" + ${PYTHON_DEPS} + sys-apps/lsb-release + app-portage/portage-utils + sys-process/lsof +" + +REQUIRED_USE=${PYTHON_REQUIRED_USE} + +S=${WORKDIR} + +src_prepare() { + epatch "${FILESDIR}"/${P}-list-comprehension-fix.patch + python_fix_shebang ${PN} +} + +src_install() { + dosbin ${PN} +} diff --git a/app-admin/checkrestart/files/checkrestart-0.47-list-comprehension-fix.patch b/app-admin/checkrestart/files/checkrestart-0.47-list-comprehension-fix.patch new file mode 100644 index 000000000000..f22f0b9e50c8 --- /dev/null +++ b/app-admin/checkrestart/files/checkrestart-0.47-list-comprehension-fix.patch @@ -0,0 +1,11 @@ +--- a/checkrestart ++++ b/checkrestart +@@ -216,7 +216,7 @@ + package.initscripts.append(path) + + # Remove duplicate inits +- package.initscripts = [ u for u in package.initscripts if u not in locals()['_[1]'] ] ++ package.initscripts = list(set(package.initscripts)) + + restartable = [] + nonrestartable = [] diff --git a/app-admin/checkrestart/metadata.xml b/app-admin/checkrestart/metadata.xml new file mode 100644 index 000000000000..1470e032181b --- /dev/null +++ b/app-admin/checkrestart/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/app-admin/chroot_safe/Manifest b/app-admin/chroot_safe/Manifest new file mode 100644 index 000000000000..6b9a3556b325 --- /dev/null +++ b/app-admin/chroot_safe/Manifest @@ -0,0 +1 @@ +DIST chroot_safe-1.4.tgz 25886 SHA256 dcdd299e0275838531bbc53de3bb5ecd70f99d0af5fa328e8de761b4de4623bf SHA512 7eee0d8e2c75ccf4bd918f610c21511498a6499b638d09634993a4d6874882a0dbc8c27eea95e9776f1722593e3445399a893557bfa6398a11b85447564dfe61 WHIRLPOOL 749e5924d233e1818330692f1a693e4e41bfb7eca732c97a49c17f69513212a84a2b02feb38f7224c0086a42d547680721712ae92f7776b048a69b77c906f4d9 diff --git a/app-admin/chroot_safe/chroot_safe-1.4.ebuild b/app-admin/chroot_safe/chroot_safe-1.4.ebuild new file mode 100644 index 000000000000..0618c943d0f3 --- /dev/null +++ b/app-admin/chroot_safe/chroot_safe-1.4.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit eutils multilib + +DESCRIPTION="a tool to chroot any dynamically linked application in a safe and sane manner" +HOMEPAGE="http://chrootsafe.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN//_}/${P}.tgz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +src_prepare() { + epatch "${FILESDIR}"/${P}-ldflags.patch +} + +src_configure() { + econf --libexecdir="${EPREFIX}/usr/$(get_libdir)" +} + +src_compile() { + emake CPPFLAGS="${CXXFLAGS}" CXX="$(tc-getCXX)" +} + +src_install() { + dolib.so chroot_safe.so + dosbin chroot_safe + sed -i -e "s:/chroot_safe::" "${ED}"/usr/sbin/chroot_safe \ + || die "sed chroot_safe failed" + doman chroot_safe.1 + dodoc CHANGES.txt +} diff --git a/app-admin/chroot_safe/files/chroot_safe-1.4-ldflags.patch b/app-admin/chroot_safe/files/chroot_safe-1.4-ldflags.patch new file mode 100644 index 000000000000..e9e94580ac42 --- /dev/null +++ b/app-admin/chroot_safe/files/chroot_safe-1.4-ldflags.patch @@ -0,0 +1,13 @@ +diff --git a/Makefile.in b/Makefile.in +index ce69ab7..e8542b5 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -12,7 +12,7 @@ install=@INSTALL@ + all: chroot_safe.so + + chroot_safe.so: chroot_safe.cpp Makefile +- $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(DEFINES) $(SOFLAGS) -o chroot_safe.so $< ++ $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) $(DEFINES) $(SOFLAGS) -o chroot_safe.so $< + + clean: + rm -f *.o *.so *~ diff --git a/app-admin/chroot_safe/metadata.xml b/app-admin/chroot_safe/metadata.xml new file mode 100644 index 000000000000..4145ddd1b330 --- /dev/null +++ b/app-admin/chroot_safe/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> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="sourceforge">chrootsafe</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/chrootuid/Manifest b/app-admin/chrootuid/Manifest new file mode 100644 index 000000000000..7a66c32939e9 --- /dev/null +++ b/app-admin/chrootuid/Manifest @@ -0,0 +1 @@ +DIST chrootuid1.3.tar.gz 5439 SHA256 93dd1af0220bce0c0265c9f810a89f7fae56b34b7077397f8ea2dcb54ec169b3 SHA512 55ccc60e6010910466e700f9d0f2f666bc16ab72af3fbc1115916b4e005684d9ad28bc0b8b1cba3804ca68384c3b0fbe137114623eba70241eb8653325382a1f WHIRLPOOL 74345cb020589f0af4b99b3c3a55b38a7d10e6fd81801e80da70347e038c703641d0904add57f90cb7c1c557aec9796193a77210c976c2b9ccd3ea6dc89f62e0 diff --git a/app-admin/chrootuid/chrootuid-1.3-r1.ebuild b/app-admin/chrootuid/chrootuid-1.3-r1.ebuild new file mode 100644 index 000000000000..547465c5a6b6 --- /dev/null +++ b/app-admin/chrootuid/chrootuid-1.3-r1.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit toolchain-funcs + +MY_P="${P/-/}" + +DESCRIPTION="run a network service at low privilege level and with restricted file system access" +HOMEPAGE="ftp://ftp.porcupine.org/pub/security/index.html" +SRC_URI="ftp://ftp.porcupine.org/pub/security/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 arm ia64 ppc x86" +IUSE="" + +S="${WORKDIR}/${MY_P}" + +src_compile() { + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS} ${LDFLAGS}" +} + +src_install() { + dobin chrootuid + doman chrootuid.1 + dodoc README chrootuid_license +} diff --git a/app-admin/chrootuid/chrootuid-1.3.ebuild b/app-admin/chrootuid/chrootuid-1.3.ebuild new file mode 100644 index 000000000000..634641170f1a --- /dev/null +++ b/app-admin/chrootuid/chrootuid-1.3.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit toolchain-funcs + +MY_P="${P/-/}" + +DESCRIPTION="run a network service at low privilege level and with restricted file system access" +HOMEPAGE="ftp://ftp.porcupine.org/pub/security/index.html" +SRC_URI="ftp://ftp.porcupine.org/pub/security/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 arm ia64 ppc x86" +IUSE="" + +S="${WORKDIR}/${MY_P}" + +src_compile() { + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" +} + +src_install() { + dobin chrootuid + doman chrootuid.1 + dodoc README chrootuid_license +} diff --git a/app-admin/chrootuid/metadata.xml b/app-admin/chrootuid/metadata.xml new file mode 100644 index 000000000000..c9141f702442 --- /dev/null +++ b/app-admin/chrootuid/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>hattya@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/app-admin/chrpath/Manifest b/app-admin/chrpath/Manifest new file mode 100644 index 000000000000..45973747e025 --- /dev/null +++ b/app-admin/chrpath/Manifest @@ -0,0 +1 @@ +DIST chrpath-0.13.tar.gz 125129 SHA256 c1aa5342eac0daad81b8da05aa282ae1ccd6f68bc75ca94064304f541eed071b SHA512 9ec2ab2731fb553497996939b421130ae221d478dab8887c184ae91f7d3ae697688e7a30e3bea30cc0cf765f1dc8c7f47d2a1f4369b36079b4033e8d0303d75e WHIRLPOOL 7bd658095647ef13bbad2e07e14ea3d3b7d3de7bb71c272465701a5430a76ce33639a641f8964194c8a78c181401522d175181da6c73336392e5f8444d43f1e8 diff --git a/app-admin/chrpath/chrpath-0.13-r2.ebuild b/app-admin/chrpath/chrpath-0.13-r2.ebuild new file mode 100644 index 000000000000..a4b88c5b789f --- /dev/null +++ b/app-admin/chrpath/chrpath-0.13-r2.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +inherit eutils autotools + +DESCRIPTION="chrpath can modify the rpath and runpath of ELF executables" +HOMEPAGE="http://directory.fsf.org/project/chrpath/" +# original upstream no longer exists (ftp://ftp.hungry.com/pub/hungry) +SRC_URI="http://ftp.tux.org/pub/X-Windows/ftp.hungry.com/chrpath/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 arm ~mips ppc ppc64 x86 ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~x86-linux ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="static-libs" + +src_prepare() { + epatch "${FILESDIR}"/${P}-multilib.patch + epatch "${FILESDIR}"/${PN}-keepgoing.patch + epatch "${FILESDIR}"/${P}-testsuite-1.patch + # disable installing redundant docs in the wrong dir + sed -i -e '/doc_DATA/d' Makefile.am || die + # fix for automake-1.13, #467538 + sed -i -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.ac || die + eautoreconf +} + +src_configure() { + econf $(use_enable static-libs static) || die +} + +src_install() { + emake DESTDIR="${D}" install || die + dodoc ChangeLog AUTHORS NEWS README + use static-libs || find "${D}" -name "*.la" -exec rm '{}' + +} diff --git a/app-admin/chrpath/files/chrpath-0.13-multilib.patch b/app-admin/chrpath/files/chrpath-0.13-multilib.patch new file mode 100644 index 000000000000..e7db0a124053 --- /dev/null +++ b/app-admin/chrpath/files/chrpath-0.13-multilib.patch @@ -0,0 +1,160 @@ +Index: chrpath-0.13/Makefile.am +=================================================================== +--- chrpath-0.13.orig/Makefile.am ++++ chrpath-0.13/Makefile.am +@@ -12,12 +12,19 @@ debs: + fakeroot debian/rules binary + + chrpath_SOURCES = \ +- chrpath.c \ +- killrpath.c \ + main.c \ +- elf.c \ + protos.h + ++chrpath_LDADD = $(LDLIBS) ++ ++lib_LTLIBRARIES = libchrpath32.la libchrpath64.la ++libchrpath32_la_SOURCES = chrpath.c killrpath.c elf.c protos.h ++libchrpath32_la_CFLAGS = -DSIZEOF_VOID_P=4 ++libchrpath32_la_LDFLAGS = -avoid-version ++libchrpath64_la_SOURCES = chrpath.c killrpath.c elf.c protos.h ++libchrpath64_la_CFLAGS = -DSIZEOF_VOID_P=8 ++libchrpath64_la_LDFLAGS = -avoid-version ++ + EXTRA_DIST = ChangeLog.usermap $(man_MANS) + + CLEANFILES = *.bb *.bbg *.da *.gcov testsuite/*.bb testsuite/*.bbg +Index: chrpath-0.13/configure.ac +=================================================================== +--- chrpath-0.13.orig/configure.ac ++++ chrpath-0.13/configure.ac +@@ -16,6 +16,7 @@ CHRPATH_LDRPATH_OPTION + dnl Checks for programs. + AC_PROG_CC + AC_PROG_INSTALL ++AC_PROG_LIBTOOL + + dnl Checks for libraries. + +@@ -26,11 +27,19 @@ AC_CHECK_HEADERS([getopt.h elf.h fcntl.h + dnl Checks for typedefs, structures, and compiler characteristics. + AC_C_CONST + AC_C_BIGENDIAN +-AC_CHECK_SIZEOF(void *) + + dnl Checks for library functions. + AC_CHECK_FUNCS(getopt_long) + ++dnl See if we need -ldl on this platform for dlopen ++LDLIBS= ++save_LIBS="$LIBS" ++LIBS= ++AC_SEARCH_LIBS([dlopen], [dl]) ++LDLIBS=${LIBS} ++LIBS="${save_LIBS}" ++AC_SUBST([LDLIBS]) ++ + if eval "test x$GCC = xyes"; then + for flag in \ + -ansi \ +Index: chrpath-0.13/main.c +=================================================================== +--- chrpath-0.13.orig/main.c ++++ chrpath-0.13/main.c +@@ -12,13 +12,19 @@ + # include "config.h" + #endif + ++#include <dlfcn.h> ++#include <elf.h> ++#include <fcntl.h> + #include <stdio.h> + #include <stdlib.h> ++#include <string.h> + #include <unistd.h> + #ifdef HAVE_GETOPT_H + #include <getopt.h> + #endif +-#include "protos.h" ++ ++typedef int (*killrpath_t)(const char *filename); ++typedef int (*chrpath_t)(const char *filename, const char *newpath, int convert); + + #ifdef HAVE_GETOPT_LONG + # define GETOPT_LONG getopt_long +@@ -61,6 +67,30 @@ usage(char *progname) + printf("\n"); + } + ++static unsigned ++elf_class(const char *filename) ++{ ++ Elf32_Ehdr ehdr; ++ int fd; ++ ++ fd = open(filename, O_RDONLY); ++ if (fd == -1) ++ return 0; ++ if (read(fd, &ehdr, sizeof(ehdr)) != sizeof(ehdr)) ++ { ++ close(fd); ++ return 0; ++ } ++ close(fd); ++ if ((memcmp(ehdr.e_ident, ELFMAG, SELFMAG) != 0) ++ || (ehdr.e_ident[EI_VERSION] != EV_CURRENT)) ++ { ++ fprintf(stderr, "`%s' probably isn't an ELF file.\n", filename); ++ return 0; ++ } ++ return ehdr.e_ident[EI_CLASS]; ++} ++ + int + main(int argc, char * const argv[]) + { +@@ -73,6 +103,9 @@ main(int argc, char * const argv[]) + #ifdef HAVE_GETOPT_LONG + int option_index = 0; + #endif /* HAVE_GETOPT_LONG */ ++ void* dll[2]; ++ killrpath_t killrpath[2]; ++ chrpath_t chrpath[2]; + + if (argc < 2) + { +@@ -116,14 +149,31 @@ main(int argc, char * const argv[]) + } + } while (-1 != opt); + ++ dll[0] = dlopen("libchrpath32.so", RTLD_LAZY); ++ killrpath[0] = (killrpath_t)dlsym(dll[0], "killrpath"); ++ chrpath[0] = (chrpath_t)dlsym(dll[0], "chrpath"); ++ ++ dll[1] = dlopen("libchrpath64.so", RTLD_LAZY); ++ killrpath[1] = (killrpath_t)dlsym(dll[1], "killrpath"); ++ chrpath[1] = (chrpath_t)dlsym(dll[1], "chrpath"); ++ + while (optind < argc && (!retval || keep_going)) + { ++ const char* program = argv[optind++]; ++ unsigned eclass = elf_class(program); ++ if (!eclass) ++ { ++ retval = 1; ++ continue; ++ } + if (remove) +- retval |= killrpath(argv[optind++]); ++ retval |= killrpath[eclass - ELFCLASS32](program); + else + /* list by default, replace if path is set */ +- retval |= chrpath(argv[optind++], newpath, convert); ++ retval |= chrpath[eclass - ELFCLASS32](program, newpath, convert); + } + ++ dlclose(dll[0]); ++ dlclose(dll[1]); + return retval; + } diff --git a/app-admin/chrpath/files/chrpath-0.13-testsuite-1.patch b/app-admin/chrpath/files/chrpath-0.13-testsuite-1.patch new file mode 100644 index 000000000000..1a30ce1eb94a --- /dev/null +++ b/app-admin/chrpath/files/chrpath-0.13-testsuite-1.patch @@ -0,0 +1,19 @@ +Submitted By: Mario Fetka (geos_one) (mario dot fetka at gmail dot com) +Date: 2010-04-04 +Initial Package Version: 0.13 +Origin: me +Upstream Status: unknown +Description: make the testsuite run with the new mltilib design + +diff -Naur chrpath-0.13.orig/testsuite/runtest.sh chrpath-0.13/testsuite/runtest.sh +--- chrpath-0.13.orig/testsuite/runtest.sh 2010-04-04 09:02:21.859114159 +0000 ++++ chrpath-0.13/testsuite/runtest.sh 2010-04-04 09:42:08.762112560 +0000 +@@ -2,6 +2,8 @@ + + set -x + ++export LD_LIBRARY_PATH=$PWD/../.libs:$LD_LIBRARY_PATH ++ + CHRPATH=../chrpath + + retval=0 diff --git a/app-admin/chrpath/files/chrpath-keepgoing.patch b/app-admin/chrpath/files/chrpath-keepgoing.patch new file mode 100644 index 000000000000..d8f6965729ff --- /dev/null +++ b/app-admin/chrpath/files/chrpath-keepgoing.patch @@ -0,0 +1,20 @@ +--- chrpath-0.13/main.c.orig 2006-02-27 20:21:06.000000000 +0100 ++++ chrpath-0.13/main.c 2006-02-27 21:07:16.027641500 +0100 +@@ -57,6 +57,7 @@ + printf(" -r <path>|--replace <path> Replace current rpath/runpath setting\n"); + printf(" with the path given\n"); + printf(" -l|--list List the current rpath/runpath (default)\n"); ++ printf(" -k|--keepgoing Continue as much as possible after an error.\n"); + printf(" -h|--help Show this usage information.\n"); + #ifndef HAVE_GETOPT_LONG + printf("\n *** The long options are not available on this platform"); +--- chrpath-0.13/chrpath.1.orig 2004-09-19 10:35:44.000000000 +0200 ++++ chrpath-0.13/chrpath.1 2006-02-28 10:06:28.187060500 +0100 +@@ -22,6 +22,7 @@ + [ \fB-r\fP \fI<path>\fP |\ \fB--replace\fP \fI<path>\fP ] + [ \fB-c\fP | \fB--convert\fP ] + [ \fB-l\fP | \fB--list\fP ] ++[ \fB-k\fP | \fB--keepgoing\fP ] + [ \fB-h\fP | \fB--help\fP ] + \fI<program>\fP [ \fI<program>\fP ... ] + .SH DESCRIPTION diff --git a/app-admin/chrpath/metadata.xml b/app-admin/chrpath/metadata.xml new file mode 100644 index 000000000000..66cf774185dd --- /dev/null +++ b/app-admin/chrpath/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>prefix</herd> + <maintainer> + <email>grobian@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/app-admin/clog/Manifest b/app-admin/clog/Manifest new file mode 100644 index 000000000000..200558d91e07 --- /dev/null +++ b/app-admin/clog/Manifest @@ -0,0 +1 @@ +DIST clog-1.1.0.tar.gz 76267 SHA256 ff4ac19b2622d49b4fca0d44ee3659398f3486f54d77562650e45310c6a5d4f7 SHA512 e44449025a1eb7490152d467167a7417f8982caf14dbdf6b54cf83fd5f47cf037740d99ec322b74381052f96064a1f6e0f01fced9a2414644ad86eeab0ce448d WHIRLPOOL caeba7c0c6a676353cb41751dedc1f5ffc889849474a6fe91ad8160cd85e5fc352e01bf372ec7bfc239f895a6c6cd6682b8021baef1ce711e9c64c0b73baa3f0 diff --git a/app-admin/clog/clog-1.1.0.ebuild b/app-admin/clog/clog-1.1.0.ebuild new file mode 100644 index 000000000000..1ccebb1a4cc5 --- /dev/null +++ b/app-admin/clog/clog-1.1.0.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +EGIT_REPO_URI="https://git.tasktools.org/scm/ut/${PN}.git" +[[ ${PV} == *9999* ]] && \ + inherit git-2 + +inherit cmake-utils bash-completion-r1 + +DESCRIPTION="A colorized log tail utility" +HOMEPAGE="http://tasktools.org/projects/clog.html" +[[ ${PV} == *9999* ]] || \ + SRC_URI="http://taskwarrior.org/download/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +[[ ${PV} == *9999* ]] || \ + KEYWORDS="~amd64 ~x86 ~x64-macos" + +src_prepare() { + # Use the correct directory locations + sed -i -e "s:/usr/local/share/doc/clog/rc:${EPREFIX}/usr/share/clog/rc:" \ + doc/man/clog.1.in || die +} + +src_configure() { + mycmakeargs=( + -DTASK_DOCDIR="${EPREFIX}"/usr/share/doc/${PF} + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install +} diff --git a/app-admin/clog/metadata.xml b/app-admin/clog/metadata.xml new file mode 100644 index 000000000000..d1f1caa60dca --- /dev/null +++ b/app-admin/clog/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> + <email>alicef@gentoo.org</email> + <name>Alice Ferrazzi</name> + </maintainer> +</pkgmetadata> diff --git a/app-admin/clsync/Manifest b/app-admin/clsync/Manifest new file mode 100644 index 000000000000..a815e0c547a5 --- /dev/null +++ b/app-admin/clsync/Manifest @@ -0,0 +1,2 @@ +DIST clsync-0.4.1-20150524-v2.patch.xz 13632 SHA256 90a1ef820c83629c528e8c6fe4da5183caf60f8079c4de01a6d26945734c92f7 SHA512 d39c3c4f116eff2365668374ef62f4dfd8e5926267cbbf36b430f97ad5306f92cf6be3164c0e1c3d959db55453f5ded00d98d48af62f9eacde39a9f9667cfbf9 WHIRLPOOL d22fc6a1f0a59514506377f26ab7d9c0f4faca0abab044f2ce2e61ffa973ff04b43da561a4dd5c69d99e21108baa71d77bb2ea524313661b3b2440ceddca56aa +DIST clsync-0.4.1.tar.gz 253890 SHA256 3f14a72d7c3c1747ea908e373f25bd1918ce00450492fbb7094549db6bf21e27 SHA512 875280f706026d44806b92c22fa58d016136b2792f67a6b7e77f932465081da7a1ebaf22c25e538e4b58bfe04cd1cd5450ecab99c3df53ddd2a0fa966442d444 WHIRLPOOL 10ab11821766f7d16d03993069ac4da5fe362a1e5977ea6721e49ada7044d3659e59b507b03be4de09609b0a0ca9d7878407d7b6e1f40df5dbe1d041dac373cb diff --git a/app-admin/clsync/clsync-0.4.1.ebuild b/app-admin/clsync/clsync-0.4.1.ebuild new file mode 100644 index 000000000000..88f6b6f9ae0b --- /dev/null +++ b/app-admin/clsync/clsync-0.4.1.ebuild @@ -0,0 +1,115 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +if [[ ${PV} == "9999" ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/xaionaro/${PN}.git" +else + PVER="20150524-v2" + SRC_URI=" + https://github.com/xaionaro/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz + http://dev.gentoo.org/~bircoph/patches/${P}-${PVER}.patch.xz + " + KEYWORDS="~amd64 ~x86" +fi + +inherit autotools eutils linux-info + +DESCRIPTION="Live sync tool based on inotify, written in GNU C" +HOMEPAGE="https://github.com/xaionaro/clsync http://ut.mephi.ru/oss/clsync" +LICENSE="GPL-3+" +SLOT="0" +IUSE="+caps cluster control-socket cgroups debug extra-debug +extra-hardened gio hardened +highload-locks +inotify mhash +namespaces seccomp" + +REQUIRED_USE=" + || ( gio inotify ) + extra-debug? ( debug ) + extra-hardened? ( hardened ) + mhash? ( cluster ) + seccomp? ( caps ) +" +RDEPEND=" + dev-libs/glib:2 + cgroups? ( dev-libs/libcgroup ) + mhash? ( app-crypt/mhash ) +" +DEPEND="${CDEPEND} + virtual/pkgconfig +" +RDEPEND="${CDEPEND} + ~app-doc/clsync-docs-${PV} +" + +pkg_pretend() { + use namespaces && CONFIG_CHECK="~NAMESPACES ~UTS_NS ~IPC_NS ~USER_NS ~PID_NS ~NET_NS" + use seccomp && CONFIG_CHECK+=" ~SECCOMP" + check_extra_config +} + +src_prepare() { + # upstream fixes for 0.4.1 + epatch "${WORKDIR}/${P}-${PVER}.patch" + eautoreconf +} + +src_configure() { + local harden_level=0 + use hardened && harden_level=1 + use extra-hardened && harden_level=2 + + local debug_level=0 + use debug && debug_level=1 + use extra-debug && debug_level=2 + + econf \ + --docdir="${EPREFIX}/usr/share/doc/${PF}" \ + --disable-socket-library \ + --enable-clsync \ + --enable-debug=${debug_level} \ + --enable-paranoid=${harden_level} \ + --without-bsm \ + --without-kqueue \ + $(use_enable caps capabilities) \ + $(use_enable cluster) \ + $(use_enable control-socket socket) \ + $(use_enable highload-locks) \ + $(use_enable namespaces unshare) \ + $(use_enable seccomp) \ + $(use_with cgroups libcgroup) \ + $(use_with gio gio lib) \ + $(use_with inotify inotify native) \ + $(use_with mhash) +} + +src_install() { + emake DESTDIR="${D}" install + + # docs go into clsync-docs + rm -rf "${ED}/usr/share/doc" || die + + newinitd "${FILESDIR}/${PN}.initd" "${PN}" + newconfd "${FILESDIR}/${PN}.confd" "${PN}" + + # filter rules and sync scripts are supposed to be here + keepdir "${EPREFIX}/etc/${PN}" + insinto "/etc/${PN}" + newins "${FILESDIR}/${PN}.conf" "${PN}.conf" +} + +pkg_postinst() { + einfo "${PN} is just a convenient way to run synchronization tools on live data," + einfo "it doesn't copy data itself, so you need to install software to do actual" + einfo "data transfer. Usually net-misc/rsync is a good choise, but ${PN} is" + einfo "is flexible enough to use any user tool, see manual page for details." + einfo + einfo "${PN} init script can be multiplexed, to use symlink init script to" + einfo "othername and use conf.d/othername to configure it." + einfo + einfo "If you're interested in improved security, enable" + einfo "USE=\"caps cgroups hardened namespaces seccomp\"" +} diff --git a/app-admin/clsync/files/clsync.conf b/app-admin/clsync/files/clsync.conf new file mode 100644 index 000000000000..91f38f17cd5c --- /dev/null +++ b/app-admin/clsync/files/clsync.conf @@ -0,0 +1,18 @@ +# clsync system configuration file +# +# General recommendations: +# 1. Put --dir-lists on tmpfs. +# 2. Use --uid and --gid to drop privileges whenever possible. +# 3. Keeep your clsync rules and sync scripts in /etc/clsync/. + +[default] +# Put your options here, see clsync man pages for a list of valid options. +# Also check examples directory (/usr/share/doc/clsync-*/examples). +# +#watch-dir = /what/dir/to/sync +#sync-handler = /etc/clsync/action.sh +#rules-dir = /etc/clsync/rules +#lists-dir = /tmp/clsync +#threading = safe +#delay-sync = 5 +#delay-collect = 5 diff --git a/app-admin/clsync/files/clsync.confd b/app-admin/clsync/files/clsync.confd new file mode 100644 index 000000000000..389f84e5d4b9 --- /dev/null +++ b/app-admin/clsync/files/clsync.confd @@ -0,0 +1,20 @@ +# /etc/conf.d/clsync: config file for /etc/init.d/clsync + +# config file, default is /etc/clsync/clsync.conf. +# to disable set to /dev/null +#CLSYNC_CONF="/etc/clsync/clsync.conf" + +# clsync options, have precedence over config file, +# see man clsync and $docdir/examples for details +#CLSYNC_OPTS="" + +# Example of direct rsync usage: +#CLSYNC_OPTS="--lists-dir /tmp/clsync --mode rsyncshell +#--watch-dir /source/dir --sync-handler /usr/bin/rsync +#--rules-file /etc/clsync/rules --distination-dir /destination/dir" + +# Change clsync nice level (default is unset) +#CLSYNC_NICE="0" + +# Change clsync ionice level (default is unset) +#CLSYNC_IONICE="2:7" diff --git a/app-admin/clsync/files/clsync.initd b/app-admin/clsync/files/clsync.initd new file mode 100644 index 000000000000..d350f3ddb40b --- /dev/null +++ b/app-admin/clsync/files/clsync.initd @@ -0,0 +1,18 @@ +#!/sbin/runscript +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +[[ -n "${CLSYNC_CONF}" ]] && conffile="--config-file ${CLSYNC_CONF}" +[[ -n "${CLSYNC_NICE}" ]] && cmd_nice="--nice ${CLSYNC_NICE}" +[[ -n "${CLSYNC_IONICE}" ]] && cmd_ionice="--ionice ${CLSYNC_IONICE}" + +command="/usr/bin/clsync" +pidfile="/var/run/${SVCNAME}.pid" +command_args="--background --output=syslog --pid-file=${pidfile} \ +${conffile} ${CLSYNC_OPTS}" +start_stop_daemon_args="${cmd_nice} ${cmd_ionice}" + +depend() { + use net +} diff --git a/app-admin/clsync/metadata.xml b/app-admin/clsync/metadata.xml new file mode 100644 index 000000000000..1d11fa5416aa --- /dev/null +++ b/app-admin/clsync/metadata.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>bircoph@gentoo.org</email> + <name>Andrew Savchenko</name> + </maintainer> + <longdescription> + Clsync recursively watches for source directory and executes external + program to sync the changes. Clsync is adapted to be used together with rsync. + This utility is much more lightweight than competitors and supports such + features as separate queue for big files, regex file filter, multi-threading + and multicast notifing clsync instances on another nodes to prevent loop + syncing. Clsync can use advanced features for isolation: capabilities, cgroups, + namespaces, seccomp, code hardening. +</longdescription> + <use> + <flag name="cluster">Enable clustering support (allows master-master clsync on multiple hosts). Not fully implemented yet.</flag> + <flag name="control-socket">Enable AF_UNIX control socket support.</flag> + <flag name="cgroups">Use cgroups to limit /dev access.</flag> + <flag name="extra-debug">Enable extra debugging. This will hurt performance badly. Be ready for tons of output.</flag> + <flag name="extra-hardened">Enable extra security checks. This will hurt performance.</flag> + <flag name="gio">Enable GIO for FS monitoring (glib based alternative to inotify interface, not recommended; if both are compiled, may be selected at runtime).</flag> + <flag name="highload-locks">Allows to use spinlocks for short delays instead of mutexes, but only on SMP systems.</flag> + <flag name="namespaces">Enable namespaces isolation.</flag> + <flag name="seccomp">Enable seccomp for system call filtering.</flag> + </use> + <upstream> + <remote-id type="github">xaionaro/clsync</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/clustershell/Manifest b/app-admin/clustershell/Manifest new file mode 100644 index 000000000000..ee8aa23a2070 --- /dev/null +++ b/app-admin/clustershell/Manifest @@ -0,0 +1 @@ +DIST clustershell-1.6.tar.gz 950548 SHA256 ea119555ba9a4a8aa17d355345772263c20e2cc362140f55933ce217d7633e07 SHA512 d94979bf5b5ead406f49e4ba691cf8541c03398913eb2fb9da724f50ba8b47059b76ddb6058dc5aaea86bbc8588b4d9c75cc34a8a7a94dcfa184ca73250c3b02 WHIRLPOOL 889c250e6ef364dcab20960fb0fd84e6d8e00d8c185d40704b9a5845e4f45ea3fe074bdba5713aadb5cad04e11933b1d8a98fb7b80ec559682c699850c517975 diff --git a/app-admin/clustershell/clustershell-1.6.ebuild b/app-admin/clustershell/clustershell-1.6.ebuild new file mode 100644 index 000000000000..60165a381a72 --- /dev/null +++ b/app-admin/clustershell/clustershell-1.6.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# TODO: test phase + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="xml" +inherit distutils-r1 + +DESCRIPTION="Python framework for efficient cluster administration" +HOMEPAGE="http://cea-hpc.github.com/clustershell/" +SRC_URI="https://github.com/cea-hpc/clustershell/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="CeCILL-C" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="doc" + +RDEPEND="dev-libs/openssl" +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" + +src_install() { + distutils-r1_src_install + + if use doc ; then + local i + for i in $(ls -I man "${S}"/doc) ; do + dodoc -r doc/${i} + done + fi + + doman doc/man/man*/* + + insinto /etc/${PN} + doins -r conf/* +} + +pkg_postinst() { + einfo + einfo "Some default system-wide config files have been installed into" + einfo "/etc/${PN}" + einfo +} diff --git a/app-admin/clustershell/metadata.xml b/app-admin/clustershell/metadata.xml new file mode 100644 index 000000000000..21e59a0a13ea --- /dev/null +++ b/app-admin/clustershell/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> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="github">cea-hpc/clustershell</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/collectd/Manifest b/app-admin/collectd/Manifest new file mode 100644 index 000000000000..6698b99e6355 --- /dev/null +++ b/app-admin/collectd/Manifest @@ -0,0 +1,2 @@ +DIST collectd-5.4.0.tar.bz2 1506520 SHA256 90973894a1f10775d409fe23ce7bc4d89c1b7c6f4d9918b305d160605871923e SHA512 10de94d082e6bf2e0a8e2f0b179868c0f25b223c61cb8a5fda641d01f90d6332062459410d54d74a4d666f7149bb429976e9542dabeda988ed6772df9001b222 WHIRLPOOL 19db89217dfaf38fd358a60a64155e01bd68d4c8ca4fad13b97667eb3e4e4d8dbe4e9cae8568e970d8d6fe5e8dde960b06159b3026d1a554fad7a455f973ff0a +DIST collectd-5.4.1.tar.bz2 1521907 SHA256 75452129f271cb0aad28e57f12a49070618bbb7b6a9d64cf869e8766fa2f66e0 SHA512 96289f52d3d1da55c862ae9ee2f57972682d7eab87387e97efa41fb5197599e097abd71aed2fe014e26af37c9ae98471e06dd181c725849976242642ce5c9492 WHIRLPOOL 2ed85b9d6d00c4e7dc6af236b637e282f17c6c0b20c1ba3da9c12ea85c5fdea1add2e29165874c7e9620852e422282d489436a4e245b161902f8926185edec16 diff --git a/app-admin/collectd/collectd-5.4.0.ebuild b/app-admin/collectd/collectd-5.4.0.ebuild new file mode 100644 index 000000000000..6e56ffbf10ca --- /dev/null +++ b/app-admin/collectd/collectd-5.4.0.ebuild @@ -0,0 +1,374 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +GENTOO_DEPEND_ON_PERL="no" + +inherit autotools base eutils linux-info multilib perl-app systemd user + +DESCRIPTION="A a daemon which collects system statistic and provides mechanisms to store the values" + +HOMEPAGE="http://collectd.org" +SRC_URI="${HOMEPAGE}/files/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="contrib debug kernel_linux kernel_FreeBSD kernel_Darwin perl selinux static-libs" + +# The plugin lists have to follow here since they extend IUSE + +# Plugins that to my knowledge cannot be supported (eg. dependencies not in gentoo) +COLLECTD_IMPOSSIBLE_PLUGINS="aquaero mic netapp pinba sigrok xmms" + +# Plugins that still need some work +COLLECTD_UNTESTED_PLUGINS="amqp apple_sensors genericjmx ipvs lpar modbus redis + tape write_redis zfs_arc" + +# Plugins that have been (compile) tested and can be enabled via COLLECTD_PLUGINS +COLLECTD_TESTED_PLUGINS="aggregation apache apcups ascent battery bind cgroups + conntrack contextswitch cpu cpufreq csv curl curl_json curl_xml dbi df disk dns + email entropy ethstat exec filecount fscache gmond hddtemp interface ipmi + iptables irq java libvirt load logfile lvm madwifi match_empty_counter + match_hashed match_regex match_timediff match_value mbmon md memcachec memcached + memory multimeter mysql netlink network network nfs nginx notify_desktop + notify_email ntpd numa nut olsrd onewire openvpn oracle perl perl ping postgresql + powerdns processes protocols python python routeros rrdcached rrdcached rrdtool + sensors serial snmp statsd swap syslog table tail target_notification + target_replace target_scale target_set tcpconns teamspeak2 ted thermal threshold + tokyotyrant unixsock uptime users uuid varnish vmem vserver wireless + write_graphite write_http write_mongodb" + +COLLECTD_DISABLED_PLUGINS="${COLLECTD_IMPOSSIBLE_PLUGINS} ${COLLECTD_UNTESTED_PLUGINS}" + +COLLECTD_ALL_PLUGINS=${COLLECTD_TESTED_PLUGINS} + +for plugin in ${COLLECTD_ALL_PLUGINS}; do + IUSE="${IUSE} collectd_plugins_${plugin}" +done +unset plugin + +# Now come the dependencies. + +COMMON_DEPEND=" + dev-libs/libgcrypt:0 + sys-devel/libtool + perl? ( dev-lang/perl:=[ithreads] ) + collectd_plugins_apache? ( net-misc/curl ) + collectd_plugins_ascent? ( net-misc/curl dev-libs/libxml2 ) + collectd_plugins_bind? ( dev-libs/libxml2 ) + collectd_plugins_curl? ( net-misc/curl ) + collectd_plugins_curl_json? ( net-misc/curl dev-libs/yajl ) + collectd_plugins_curl_xml? ( net-misc/curl dev-libs/libxml2 ) + collectd_plugins_dbi? ( dev-db/libdbi ) + collectd_plugins_dns? ( net-libs/libpcap ) + collectd_plugins_gmond? ( sys-cluster/ganglia ) + collectd_plugins_ipmi? ( >=sys-libs/openipmi-2.0.16-r1 ) + collectd_plugins_iptables? ( >=net-firewall/iptables-1.4.13 ) + collectd_plugins_java? ( virtual/jre dev-java/java-config-wrapper ) + collectd_plugins_libvirt? ( app-emulation/libvirt dev-libs/libxml2 ) + collectd_plugins_lvm? ( sys-fs/lvm2 ) + collectd_plugins_memcachec? ( dev-libs/libmemcached ) + collectd_plugins_mysql? ( >=virtual/mysql-5.0 ) + collectd_plugins_netlink? ( net-libs/libmnl ) + collectd_plugins_nginx? ( net-misc/curl ) + collectd_plugins_notify_desktop? ( x11-libs/libnotify ) + collectd_plugins_notify_email? ( net-libs/libesmtp dev-libs/openssl ) + collectd_plugins_nut? ( sys-power/nut ) + collectd_plugins_onewire? ( sys-fs/owfs ) + collectd_plugins_oracle? ( dev-db/oracle-instantclient-basic ) + collectd_plugins_perl? ( dev-lang/perl:=[ithreads] ) + collectd_plugins_ping? ( net-libs/liboping ) + collectd_plugins_postgresql? ( dev-db/postgresql ) + collectd_plugins_python? ( =dev-lang/python-2* ) + collectd_plugins_routeros? ( net-libs/librouteros ) + collectd_plugins_rrdcached? ( net-analyzer/rrdtool ) + collectd_plugins_rrdtool? ( net-analyzer/rrdtool ) + collectd_plugins_sensors? ( sys-apps/lm_sensors ) + collectd_plugins_snmp? ( net-analyzer/net-snmp ) + collectd_plugins_tokyotyrant? ( net-misc/tokyotyrant ) + collectd_plugins_varnish? ( www-servers/varnish ) + collectd_plugins_write_http? ( net-misc/curl ) + collectd_plugins_write_mongodb? ( dev-libs/mongo-c-driver ) + + kernel_FreeBSD? ( + collectd_plugins_disk? ( sys-libs/libstatgrab ) + collectd_plugins_interface? ( sys-libs/libstatgrab ) + collectd_plugins_load? ( sys-libs/libstatgrab ) + collectd_plugins_memory? ( sys-libs/libstatgrab ) + collectd_plugins_swap? ( sys-libs/libstatgrab ) + collectd_plugins_users? ( sys-libs/libstatgrab ) + )" + +DEPEND="${COMMON_DEPEND} + virtual/pkgconfig + kernel_linux? ( + collectd_plugins_vserver? ( sys-kernel/vserver-sources ) + )" + +RDEPEND="${COMMON_DEPEND} + collectd_plugins_syslog? ( virtual/logger ) + selinux? ( sec-policy/selinux-collectd )" + +PATCHES=( + "${FILESDIR}/${PN}-4.10.2"-{libocci,nohal}.patch + "${FILESDIR}/${PN}-4.10.3"-werror.patch + "${FILESDIR}/${PN}-5.1.0"-libperl.patch + "${FILESDIR}/${PN}-5.1.1"-lt.patch +) + +# @FUNCTION: collectd_plugin_kernel_linux +# @DESCRIPTION: +# USAGE: <plug-in name> <kernel_options> <severity> +# kernel_options is a list of kernel configurations options; the check tests whether at least +# one of them is enabled. If no, depending on the third argument an elog, ewarn, or eerror message +# is emitted. +collectd_plugin_kernel_linux() { + local multi_opt opt + if has ${1} ${COLLECTD_ALL_PLUGINS}; then + if use collectd_plugins_${1}; then + for opt in ${2}; do + if linux_chkconfig_present ${opt}; then return 0; fi + done + multi_opt=${2//\ /\ or\ } + case ${3} in + (info) + elog "The ${1} plug-in can use kernel features that are disabled now; enable ${multi_opt} in your kernel" + ;; + (warn) + ewarn "The ${1} plug-in uses kernel features that are disabled now; enable ${multi_opt} in your kernel" + ;; + (error) + eerror "The ${1} plug-in needs kernel features that are disabled now; enable ${multi_opt} in your kernel" + ;; + (*) + die "function collectd_plugin_kernel_linux called with invalid third argument" + ;; + esac + fi + fi +} + +collectd_linux_kernel_checks() { + linux-info_pkg_setup + + # battery.c:/proc/pmu/battery_%i + # battery.c:/proc/acpi/battery + collectd_plugin_kernel_linux battery ACPI_BATTERY warn + + # cgroups.c:/sys/fs/cgroup/ + collectd_plugin_kernel_linux cgroups CONFIG_CGROUPS warn + + # cpufreq.c:/sys/devices/system/cpu/cpu%d/cpufreq/ + collectd_plugin_kernel_linux cpufreq SYSFS warn + collectd_plugin_kernel_linux cpufreq CPU_FREQ_STAT warn + + # nfs.c:/proc/net/rpc/nfs + # nfs.c:/proc/net/rpc/nfsd + collectd_plugin_kernel_linux nfs NFS_COMMON warn + + # serial.c:/proc/tty/driver/serial + # serial.c:/proc/tty/driver/ttyS + collectd_plugin_kernel_linux serial SERIAL_CORE warn + + # swap.c:/proc/meminfo + collectd_plugin_kernel_linux swap SWAP warn + + # thermal.c:/proc/acpi/thermal_zone + # thermal.c:/sys/class/thermal + collectd_plugin_kernel_linux thermal "PROC_FS SYSFS" warn + collectd_plugin_kernel_linux thermal ACPI_THERMAL warn + + # vmem.c:/proc/vmstat + collectd_plugin_kernel_linux vmem VM_EVENT_COUNTERS warn + + # uuid.c:/sys/hypervisor/uuid + collectd_plugin_kernel_linux uuid SYSFS info + + # wireless.c:/proc/net/wireless + collectd_plugin_kernel_linux wireless "MAC80211 IEEE80211" warn +} + +pkg_setup() { + if use kernel_linux; then + if linux_config_exists; then + einfo "Checking your linux kernel configuration:" + collectd_linux_kernel_checks + else + elog "Cannot find a linux kernel configuration. Continuing anyway." + fi + fi + + enewgroup collectd + enewuser collectd -1 -1 /var/lib/collectd collectd +} + +src_prepare() { + base_src_prepare + + # There's some strange prefix handling in the default config file, resulting in + # paths like "/usr/var/..." + sed -i -e "s:@prefix@/var:/var:g" src/collectd.conf.in || die + + sed -i -e "s:/etc/collectd/collectd.conf:/etc/collectd.conf:g" contrib/collectd.service || die + + # fix installdirs for perl, bug 444360 + sed -i -e 's/INSTALL_BASE=$(DESTDIR)$(prefix) //' bindings/Makefile.am || die + + rm -r libltdl || die + + eautoreconf +} + +src_configure() { + # Now come the lists of os-dependent plugins. Any plugin that is not listed anywhere here + # should work independent of the operating system. + + local linux_plugins="battery cpu cpufreq disk entropy ethstat interface iptables ipvs irq load + memory md netlink nfs numa processes serial swap tcpconns thermal users vmem vserver + wireless" + + local libstatgrab_plugins="cpu disk interface load memory swap users" + local bsd_plugins="cpu tcpconns ${libstatgrab_plugins}" + + local darwin_plugins="apple_sensors battery cpu disk interface memory processes tcpconns" + + local osdependent_plugins="${linux_plugins} ${bsd_plugins} ${darwin_plugins}" + local myos_plugins="" + if use kernel_linux; then + einfo "Enabling Linux plugins." + myos_plugins=${linux_plugins} + elif use kernel_FreeBSD; then + einfo "Enabling FreeBSD plugins." + myos_plugins=${bsd_plugins} + elif use kernel_Darwin; then + einfo "Enabling Darwin plugins." + myos_plugins=${darwin_plugins} + fi + + # Do we debug? + local myconf="$(use_enable debug)" + + local plugin + + # Disable what needs to be disabled. + for plugin in ${COLLECTD_DISABLED_PLUGINS}; do + myconf+=" --disable-${plugin}" + done + + # Set enable/disable for each single plugin. + for plugin in ${COLLECTD_ALL_PLUGINS}; do + if has ${plugin} ${osdependent_plugins}; then + # plugin is os-dependent ... + if has ${plugin} ${myos_plugins}; then + # ... and available in this os + myconf+=" $(use_enable collectd_plugins_${plugin} ${plugin})" + else + # ... and NOT available in this os + if use collectd_plugins_${plugin}; then + ewarn "You try to enable the ${plugin} plugin, but it is not available for this" + ewarn "kernel. Disabling it automatically." + fi + myconf+=" --disable-${plugin}" + fi + elif [[ "${plugin}" = "collectd_plugins_perl" ]]; then + if use collectd_plugins_perl && ! use perl; then + ewarn "Perl plugin disabled as perl bindings disabled by -perl use flag" + myconf+= --disable-perl + else + myconf+=" $(use_enable collectd_plugins_${plugin} ${plugin})" + fi + else + myconf+=" $(use_enable collectd_plugins_${plugin} ${plugin})" + fi + done + + # Need JAVA_HOME for java. + if use collectd_plugins_java; then + myconf+=" --with-java=$(java-config -g JAVA_HOME)" + fi + + # Need libiptc ONLY for iptables. If we try to use it otherwise bug 340109 happens. + if ! use collectd_plugins_iptables; then + myconf+=" --with-libiptc=no" + fi + + if use perl; then + myconf+=" --with-perl-bindings=INSTALLDIRS=vendor" + else + myconf+=" --without-perl-bindings" + fi + + # No need for v5upgrade + myconf+=" --disable-target_v5upgrade" + + # Finally, run econf. + KERNEL_DIR="${KERNEL_DIR}" econf --config-cache --without-included-ltdl $(use_enable static-libs static) --localstatedir=/var ${myconf} +} + +src_install() { + emake DESTDIR="${D}" install + + perl_delete_localpod + + find "${D}/usr/" -name "*.la" -exec rm -f {} + + + # use collectd_plugins_ping && setcap cap_net_raw+ep ${D}/usr/sbin/collectd + # we cannot do this yet + + fowners root:collectd /etc/collectd.conf + fperms u=rw,g=r,o= /etc/collectd.conf + + dodoc AUTHORS ChangeLog NEWS README TODO + + if use contrib ; then + insinto /usr/share/doc/${PF} + doins -r contrib + fi + + keepdir /var/lib/${PN} + fowners collectd:collectd /var/lib/${PN} + + newinitd "${FILESDIR}/${PN}.initd" ${PN} + newconfd "${FILESDIR}/${PN}.confd" ${PN} + systemd_dounit "contrib/${PN}.service" + + insinto /etc/logrotate.d + newins "${FILESDIR}/logrotate" collectd + + sed -i -e 's:^.*PIDFile "/var/run/collectd.pid":PIDFile "/var/run/collectd/collectd.pid":' "${D}"/etc/collectd.conf || die + sed -i -e 's:^# SocketFile "/var/run/collectd-unixsock":# SocketFile "/var/run/collectd/collectd-unixsock":' "${D}"/etc/collectd.conf || die + sed -i -e 's:^.*LoadPlugin perl$:# The new, correct way to load the perl plugin -- \n# <LoadPlugin perl>\n# Globals true\n# </LoadPlugin>:' "${D}"/etc/collectd.conf || die + sed -i -e 's:^.*LoadPlugin python$:# The new, correct way to load the python plugin -- \n# <LoadPlugin python>\n# Globals true\n# </LoadPlugin>:' "${D}"/etc/collectd.conf || die +} + +collectd_rdeps() { + if (use collectd_plugins_${1} && ! has_version "${2}"); then + elog "The ${1} plug-in needs ${2} to be installed locally or remotely to work." + fi +} + +pkg_postinst() { + collectd_rdeps apcups sys-power/apcupsd + collectd_rdeps hddtemp app-admin/hddtemp + collectd_rdeps mbmon sys-apps/xmbmon + collectd_rdeps memcached ">=net-misc/memcached-1.2.2-r2" + collectd_rdeps ntpd net-misc/ntp + collectd_rdeps openvpn ">=net-misc/openvpn-2.0.9" + collectd_rdeps write_mongodb "dev-db/mongodb" + + echo + elog "collectd is now started as unprivileged user by default." + elog "You may want to recheck the configuration." + elog + + if use collectd_plugins_email; then + ewarn "The email plug-in is deprecated. To submit statistics please use the unixsock plugin." + fi + if use contrib; then + elog "The scripts in /usr/share/doc/${PF}/collection3 for generating graphs need dev-perl/HTML-Parser," + elog "dev-perl/config-general, dev-perl/regexp-common, and net-analyzer/rrdtool[perl] to be installed." + fi +} diff --git a/app-admin/collectd/collectd-5.4.1-r1.ebuild b/app-admin/collectd/collectd-5.4.1-r1.ebuild new file mode 100644 index 000000000000..e0c319218b8e --- /dev/null +++ b/app-admin/collectd/collectd-5.4.1-r1.ebuild @@ -0,0 +1,379 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +GENTOO_DEPEND_ON_PERL="no" +# XXX: 5.4.1-r0 stated 2* but it builds fine against 3.4 +PYTHON_COMPAT=( python2_7 ) + +inherit autotools base eutils linux-info multilib perl-app python-single-r1 systemd user + +DESCRIPTION="A a daemon which collects system statistic and provides mechanisms to store the values" + +HOMEPAGE="http://collectd.org" +SRC_URI="${HOMEPAGE}/files/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="contrib debug kernel_linux kernel_FreeBSD kernel_Darwin perl selinux static-libs" + +# The plugin lists have to follow here since they extend IUSE + +# Plugins that to my knowledge cannot be supported (eg. dependencies not in gentoo) +COLLECTD_IMPOSSIBLE_PLUGINS="aquaero mic netapp pinba sigrok xmms" + +# Plugins that still need some work +COLLECTD_UNTESTED_PLUGINS="amqp apple_sensors genericjmx ipvs lpar modbus redis + tape write_redis zfs_arc" + +# Plugins that have been (compile) tested and can be enabled via COLLECTD_PLUGINS +COLLECTD_TESTED_PLUGINS="aggregation apache apcups ascent battery bind cgroups + conntrack contextswitch cpu cpufreq csv curl curl_json curl_xml dbi df disk dns + email entropy ethstat exec filecount fscache gmond hddtemp interface ipmi + iptables irq java libvirt load logfile lvm madwifi match_empty_counter + match_hashed match_regex match_timediff match_value mbmon md memcachec memcached + memory multimeter mysql netlink network network nfs nginx notify_desktop + notify_email ntpd numa nut olsrd onewire openvpn oracle perl perl ping postgresql + powerdns processes protocols python python routeros rrdcached rrdcached rrdtool + sensors serial snmp statsd swap syslog table tail target_notification + target_replace target_scale target_set tcpconns teamspeak2 ted thermal threshold + tokyotyrant unixsock uptime users uuid varnish vmem vserver wireless + write_graphite write_http write_mongodb" + +COLLECTD_DISABLED_PLUGINS="${COLLECTD_IMPOSSIBLE_PLUGINS} ${COLLECTD_UNTESTED_PLUGINS}" + +COLLECTD_ALL_PLUGINS=${COLLECTD_TESTED_PLUGINS} + +for plugin in ${COLLECTD_ALL_PLUGINS}; do + IUSE="${IUSE} collectd_plugins_${plugin}" +done +unset plugin + +# Now come the dependencies. + +COMMON_DEPEND=" + dev-libs/libgcrypt:0 + sys-devel/libtool + perl? ( dev-lang/perl:=[ithreads] ) + collectd_plugins_apache? ( net-misc/curl ) + collectd_plugins_ascent? ( net-misc/curl dev-libs/libxml2 ) + collectd_plugins_bind? ( dev-libs/libxml2 ) + collectd_plugins_curl? ( net-misc/curl ) + collectd_plugins_curl_json? ( net-misc/curl dev-libs/yajl ) + collectd_plugins_curl_xml? ( net-misc/curl dev-libs/libxml2 ) + collectd_plugins_dbi? ( dev-db/libdbi ) + collectd_plugins_dns? ( net-libs/libpcap ) + collectd_plugins_gmond? ( sys-cluster/ganglia ) + collectd_plugins_ipmi? ( >=sys-libs/openipmi-2.0.16-r1 ) + collectd_plugins_iptables? ( >=net-firewall/iptables-1.4.13 ) + collectd_plugins_java? ( virtual/jre dev-java/java-config-wrapper ) + collectd_plugins_libvirt? ( app-emulation/libvirt dev-libs/libxml2 ) + collectd_plugins_lvm? ( sys-fs/lvm2 ) + collectd_plugins_memcachec? ( dev-libs/libmemcached ) + collectd_plugins_mysql? ( >=virtual/mysql-5.0 ) + collectd_plugins_netlink? ( net-libs/libmnl ) + collectd_plugins_nginx? ( net-misc/curl ) + collectd_plugins_notify_desktop? ( x11-libs/libnotify ) + collectd_plugins_notify_email? ( net-libs/libesmtp dev-libs/openssl ) + collectd_plugins_nut? ( sys-power/nut ) + collectd_plugins_onewire? ( sys-fs/owfs ) + collectd_plugins_oracle? ( dev-db/oracle-instantclient-basic ) + collectd_plugins_perl? ( dev-lang/perl:=[ithreads] ) + collectd_plugins_ping? ( net-libs/liboping ) + collectd_plugins_postgresql? ( dev-db/postgresql ) + collectd_plugins_python? ( ${PYTHON_DEPS} ) + collectd_plugins_routeros? ( net-libs/librouteros ) + collectd_plugins_rrdcached? ( net-analyzer/rrdtool ) + collectd_plugins_rrdtool? ( net-analyzer/rrdtool ) + collectd_plugins_sensors? ( sys-apps/lm_sensors ) + collectd_plugins_snmp? ( net-analyzer/net-snmp ) + collectd_plugins_tokyotyrant? ( net-misc/tokyotyrant ) + collectd_plugins_varnish? ( www-servers/varnish ) + collectd_plugins_write_http? ( net-misc/curl ) + collectd_plugins_write_mongodb? ( dev-libs/mongo-c-driver ) + + kernel_FreeBSD? ( + collectd_plugins_disk? ( sys-libs/libstatgrab ) + collectd_plugins_interface? ( sys-libs/libstatgrab ) + collectd_plugins_load? ( sys-libs/libstatgrab ) + collectd_plugins_memory? ( sys-libs/libstatgrab ) + collectd_plugins_swap? ( sys-libs/libstatgrab ) + collectd_plugins_users? ( sys-libs/libstatgrab ) + )" + +DEPEND="${COMMON_DEPEND} + virtual/pkgconfig + kernel_linux? ( + collectd_plugins_vserver? ( sys-kernel/vserver-sources ) + )" + +RDEPEND="${COMMON_DEPEND} + collectd_plugins_syslog? ( virtual/logger ) + selinux? ( sec-policy/selinux-collectd )" + +REQUIRED_USE=" + collectd_plugins_python? ( ${PYTHON_REQUIRED_USE} )" + +PATCHES=( + "${FILESDIR}/${PN}-5.4.1"-{nohal,libocci,libperl,lt}.patch + "${FILESDIR}/${PN}-4.10.3"-werror.patch +) + +# @FUNCTION: collectd_plugin_kernel_linux +# @DESCRIPTION: +# USAGE: <plug-in name> <kernel_options> <severity> +# kernel_options is a list of kernel configurations options; the check tests whether at least +# one of them is enabled. If no, depending on the third argument an elog, ewarn, or eerror message +# is emitted. +collectd_plugin_kernel_linux() { + local multi_opt opt + if has ${1} ${COLLECTD_ALL_PLUGINS}; then + if use collectd_plugins_${1}; then + for opt in ${2}; do + if linux_chkconfig_present ${opt}; then return 0; fi + done + multi_opt=${2//\ /\ or\ } + case ${3} in + (info) + elog "The ${1} plug-in can use kernel features that are disabled now; enable ${multi_opt} in your kernel" + ;; + (warn) + ewarn "The ${1} plug-in uses kernel features that are disabled now; enable ${multi_opt} in your kernel" + ;; + (error) + eerror "The ${1} plug-in needs kernel features that are disabled now; enable ${multi_opt} in your kernel" + ;; + (*) + die "function collectd_plugin_kernel_linux called with invalid third argument" + ;; + esac + fi + fi +} + +collectd_linux_kernel_checks() { + linux-info_pkg_setup + + # battery.c:/proc/pmu/battery_%i + # battery.c:/proc/acpi/battery + collectd_plugin_kernel_linux battery ACPI_BATTERY warn + + # cgroups.c:/sys/fs/cgroup/ + collectd_plugin_kernel_linux cgroups CONFIG_CGROUPS warn + + # cpufreq.c:/sys/devices/system/cpu/cpu%d/cpufreq/ + collectd_plugin_kernel_linux cpufreq SYSFS warn + collectd_plugin_kernel_linux cpufreq CPU_FREQ_STAT warn + + # nfs.c:/proc/net/rpc/nfs + # nfs.c:/proc/net/rpc/nfsd + collectd_plugin_kernel_linux nfs NFS_COMMON warn + + # serial.c:/proc/tty/driver/serial + # serial.c:/proc/tty/driver/ttyS + collectd_plugin_kernel_linux serial SERIAL_CORE warn + + # swap.c:/proc/meminfo + collectd_plugin_kernel_linux swap SWAP warn + + # thermal.c:/proc/acpi/thermal_zone + # thermal.c:/sys/class/thermal + collectd_plugin_kernel_linux thermal "PROC_FS SYSFS" warn + collectd_plugin_kernel_linux thermal ACPI_THERMAL warn + + # vmem.c:/proc/vmstat + collectd_plugin_kernel_linux vmem VM_EVENT_COUNTERS warn + + # uuid.c:/sys/hypervisor/uuid + collectd_plugin_kernel_linux uuid SYSFS info + + # wireless.c:/proc/net/wireless + collectd_plugin_kernel_linux wireless "MAC80211 IEEE80211" warn +} + +pkg_setup() { + if use kernel_linux; then + if linux_config_exists; then + einfo "Checking your linux kernel configuration:" + collectd_linux_kernel_checks + else + elog "Cannot find a linux kernel configuration. Continuing anyway." + fi + fi + + use collectd_plugins_python && python-single-r1_pkg_setup + + enewgroup collectd + enewuser collectd -1 -1 /var/lib/collectd collectd +} + +src_prepare() { + base_src_prepare + + # There's some strange prefix handling in the default config file, resulting in + # paths like "/usr/var/..." + sed -i -e "s:@prefix@/var:/var:g" src/collectd.conf.in || die + + sed -i -e "s:/etc/collectd/collectd.conf:/etc/collectd.conf:g" contrib/collectd.service || die + + # fix installdirs for perl, bug 444360 + sed -i -e 's/INSTALL_BASE=$(DESTDIR)$(prefix) //' bindings/Makefile.am || die + + rm -r libltdl || die + + eautoreconf +} + +src_configure() { + # Now come the lists of os-dependent plugins. Any plugin that is not listed anywhere here + # should work independent of the operating system. + + local linux_plugins="battery cpu cpufreq disk entropy ethstat interface iptables ipvs irq load + memory md netlink nfs numa processes serial swap tcpconns thermal users vmem vserver + wireless" + + local libstatgrab_plugins="cpu disk interface load memory swap users" + local bsd_plugins="cpu tcpconns ${libstatgrab_plugins}" + + local darwin_plugins="apple_sensors battery cpu disk interface memory processes tcpconns" + + local osdependent_plugins="${linux_plugins} ${bsd_plugins} ${darwin_plugins}" + local myos_plugins="" + if use kernel_linux; then + einfo "Enabling Linux plugins." + myos_plugins=${linux_plugins} + elif use kernel_FreeBSD; then + einfo "Enabling FreeBSD plugins." + myos_plugins=${bsd_plugins} + elif use kernel_Darwin; then + einfo "Enabling Darwin plugins." + myos_plugins=${darwin_plugins} + fi + + # Do we debug? + local myconf="$(use_enable debug)" + + local plugin + + # Disable what needs to be disabled. + for plugin in ${COLLECTD_DISABLED_PLUGINS}; do + myconf+=" --disable-${plugin}" + done + + # Set enable/disable for each single plugin. + for plugin in ${COLLECTD_ALL_PLUGINS}; do + if has ${plugin} ${osdependent_plugins}; then + # plugin is os-dependent ... + if has ${plugin} ${myos_plugins}; then + # ... and available in this os + myconf+=" $(use_enable collectd_plugins_${plugin} ${plugin})" + else + # ... and NOT available in this os + if use collectd_plugins_${plugin}; then + ewarn "You try to enable the ${plugin} plugin, but it is not available for this" + ewarn "kernel. Disabling it automatically." + fi + myconf+=" --disable-${plugin}" + fi + elif [[ "${plugin}" = "collectd_plugins_perl" ]]; then + if use collectd_plugins_perl && ! use perl; then + ewarn "Perl plugin disabled as perl bindings disabled by -perl use flag" + myconf+= --disable-perl + else + myconf+=" $(use_enable collectd_plugins_${plugin} ${plugin})" + fi + else + myconf+=" $(use_enable collectd_plugins_${plugin} ${plugin})" + fi + done + + # Need JAVA_HOME for java. + if use collectd_plugins_java; then + myconf+=" --with-java=$(java-config -g JAVA_HOME)" + fi + + # Need libiptc ONLY for iptables. If we try to use it otherwise bug 340109 happens. + if ! use collectd_plugins_iptables; then + myconf+=" --with-libiptc=no" + fi + + if use perl; then + myconf+=" --with-perl-bindings=INSTALLDIRS=vendor" + else + myconf+=" --without-perl-bindings" + fi + + # No need for v5upgrade + myconf+=" --disable-target_v5upgrade" + + # Finally, run econf. + KERNEL_DIR="${KERNEL_DIR}" econf --config-cache --without-included-ltdl $(use_enable static-libs static) --localstatedir=/var ${myconf} +} + +src_install() { + emake DESTDIR="${D}" install + + perl_delete_localpod + + find "${D}/usr/" -name "*.la" -exec rm -f {} + + + # use collectd_plugins_ping && setcap cap_net_raw+ep ${D}/usr/sbin/collectd + # we cannot do this yet + + fowners root:collectd /etc/collectd.conf + fperms u=rw,g=r,o= /etc/collectd.conf + + dodoc AUTHORS ChangeLog NEWS README TODO + + if use contrib ; then + insinto /usr/share/doc/${PF} + doins -r contrib + fi + + keepdir /var/lib/${PN} + fowners collectd:collectd /var/lib/${PN} + + newinitd "${FILESDIR}/${PN}.initd" ${PN} + newconfd "${FILESDIR}/${PN}.confd" ${PN} + systemd_dounit "contrib/${PN}.service" + + insinto /etc/logrotate.d + newins "${FILESDIR}/logrotate" collectd + + sed -i -e 's:^.*PIDFile "/var/run/collectd.pid":PIDFile "/var/run/collectd/collectd.pid":' "${D}"/etc/collectd.conf || die + sed -i -e 's:^# SocketFile "/var/run/collectd-unixsock":# SocketFile "/var/run/collectd/collectd-unixsock":' "${D}"/etc/collectd.conf || die + sed -i -e 's:^.*LoadPlugin perl$:# The new, correct way to load the perl plugin -- \n# <LoadPlugin perl>\n# Globals true\n# </LoadPlugin>:' "${D}"/etc/collectd.conf || die + sed -i -e 's:^.*LoadPlugin python$:# The new, correct way to load the python plugin -- \n# <LoadPlugin python>\n# Globals true\n# </LoadPlugin>:' "${D}"/etc/collectd.conf || die +} + +collectd_rdeps() { + if (use collectd_plugins_${1} && ! has_version "${2}"); then + elog "The ${1} plug-in needs ${2} to be installed locally or remotely to work." + fi +} + +pkg_postinst() { + collectd_rdeps apcups sys-power/apcupsd + collectd_rdeps hddtemp app-admin/hddtemp + collectd_rdeps mbmon sys-apps/xmbmon + collectd_rdeps memcached ">=net-misc/memcached-1.2.2-r2" + collectd_rdeps ntpd net-misc/ntp + collectd_rdeps openvpn ">=net-misc/openvpn-2.0.9" + collectd_rdeps write_mongodb "dev-db/mongodb" + + echo + elog "collectd is now started as unprivileged user by default." + elog "You may want to revisit the configuration." + elog + + if use collectd_plugins_email; then + ewarn "The email plug-in is deprecated. To submit statistics please use the unixsock plugin." + fi + if use contrib; then + elog "The scripts in /usr/share/doc/${PF}/collection3 for generating graphs need dev-perl/HTML-Parser," + elog "dev-perl/config-general, dev-perl/regexp-common, and net-analyzer/rrdtool[perl] to be installed." + fi +} diff --git a/app-admin/collectd/collectd-5.4.1.ebuild b/app-admin/collectd/collectd-5.4.1.ebuild new file mode 100644 index 000000000000..554a27e3ea91 --- /dev/null +++ b/app-admin/collectd/collectd-5.4.1.ebuild @@ -0,0 +1,372 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +GENTOO_DEPEND_ON_PERL="no" + +inherit autotools base eutils linux-info multilib perl-app systemd user + +DESCRIPTION="A a daemon which collects system statistic and provides mechanisms to store the values" + +HOMEPAGE="http://collectd.org" +SRC_URI="${HOMEPAGE}/files/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="contrib debug kernel_linux kernel_FreeBSD kernel_Darwin perl selinux static-libs" + +# The plugin lists have to follow here since they extend IUSE + +# Plugins that to my knowledge cannot be supported (eg. dependencies not in gentoo) +COLLECTD_IMPOSSIBLE_PLUGINS="aquaero mic netapp pinba sigrok xmms" + +# Plugins that still need some work +COLLECTD_UNTESTED_PLUGINS="amqp apple_sensors genericjmx ipvs lpar modbus redis + tape write_redis zfs_arc" + +# Plugins that have been (compile) tested and can be enabled via COLLECTD_PLUGINS +COLLECTD_TESTED_PLUGINS="aggregation apache apcups ascent battery bind cgroups + conntrack contextswitch cpu cpufreq csv curl curl_json curl_xml dbi df disk dns + email entropy ethstat exec filecount fscache gmond hddtemp interface ipmi + iptables irq java libvirt load logfile lvm madwifi match_empty_counter + match_hashed match_regex match_timediff match_value mbmon md memcachec memcached + memory multimeter mysql netlink network network nfs nginx notify_desktop + notify_email ntpd numa nut olsrd onewire openvpn oracle perl perl ping postgresql + powerdns processes protocols python python routeros rrdcached rrdcached rrdtool + sensors serial snmp statsd swap syslog table tail target_notification + target_replace target_scale target_set tcpconns teamspeak2 ted thermal threshold + tokyotyrant unixsock uptime users uuid varnish vmem vserver wireless + write_graphite write_http write_mongodb" + +COLLECTD_DISABLED_PLUGINS="${COLLECTD_IMPOSSIBLE_PLUGINS} ${COLLECTD_UNTESTED_PLUGINS}" + +COLLECTD_ALL_PLUGINS=${COLLECTD_TESTED_PLUGINS} + +for plugin in ${COLLECTD_ALL_PLUGINS}; do + IUSE="${IUSE} collectd_plugins_${plugin}" +done +unset plugin + +# Now come the dependencies. + +COMMON_DEPEND=" + dev-libs/libgcrypt:0 + sys-devel/libtool + perl? ( dev-lang/perl:=[ithreads] ) + collectd_plugins_apache? ( net-misc/curl ) + collectd_plugins_ascent? ( net-misc/curl dev-libs/libxml2 ) + collectd_plugins_bind? ( dev-libs/libxml2 ) + collectd_plugins_curl? ( net-misc/curl ) + collectd_plugins_curl_json? ( net-misc/curl dev-libs/yajl ) + collectd_plugins_curl_xml? ( net-misc/curl dev-libs/libxml2 ) + collectd_plugins_dbi? ( dev-db/libdbi ) + collectd_plugins_dns? ( net-libs/libpcap ) + collectd_plugins_gmond? ( sys-cluster/ganglia ) + collectd_plugins_ipmi? ( >=sys-libs/openipmi-2.0.16-r1 ) + collectd_plugins_iptables? ( >=net-firewall/iptables-1.4.13 ) + collectd_plugins_java? ( virtual/jre dev-java/java-config-wrapper ) + collectd_plugins_libvirt? ( app-emulation/libvirt dev-libs/libxml2 ) + collectd_plugins_lvm? ( sys-fs/lvm2 ) + collectd_plugins_memcachec? ( dev-libs/libmemcached ) + collectd_plugins_mysql? ( >=virtual/mysql-5.0 ) + collectd_plugins_netlink? ( net-libs/libmnl ) + collectd_plugins_nginx? ( net-misc/curl ) + collectd_plugins_notify_desktop? ( x11-libs/libnotify ) + collectd_plugins_notify_email? ( net-libs/libesmtp dev-libs/openssl ) + collectd_plugins_nut? ( sys-power/nut ) + collectd_plugins_onewire? ( sys-fs/owfs ) + collectd_plugins_oracle? ( dev-db/oracle-instantclient-basic ) + collectd_plugins_perl? ( dev-lang/perl:=[ithreads] ) + collectd_plugins_ping? ( net-libs/liboping ) + collectd_plugins_postgresql? ( dev-db/postgresql ) + collectd_plugins_python? ( =dev-lang/python-2* ) + collectd_plugins_routeros? ( net-libs/librouteros ) + collectd_plugins_rrdcached? ( net-analyzer/rrdtool ) + collectd_plugins_rrdtool? ( net-analyzer/rrdtool ) + collectd_plugins_sensors? ( sys-apps/lm_sensors ) + collectd_plugins_snmp? ( net-analyzer/net-snmp ) + collectd_plugins_tokyotyrant? ( net-misc/tokyotyrant ) + collectd_plugins_varnish? ( www-servers/varnish ) + collectd_plugins_write_http? ( net-misc/curl ) + collectd_plugins_write_mongodb? ( dev-libs/mongo-c-driver ) + + kernel_FreeBSD? ( + collectd_plugins_disk? ( sys-libs/libstatgrab ) + collectd_plugins_interface? ( sys-libs/libstatgrab ) + collectd_plugins_load? ( sys-libs/libstatgrab ) + collectd_plugins_memory? ( sys-libs/libstatgrab ) + collectd_plugins_swap? ( sys-libs/libstatgrab ) + collectd_plugins_users? ( sys-libs/libstatgrab ) + )" + +DEPEND="${COMMON_DEPEND} + virtual/pkgconfig + kernel_linux? ( + collectd_plugins_vserver? ( sys-kernel/vserver-sources ) + )" + +RDEPEND="${COMMON_DEPEND} + collectd_plugins_syslog? ( virtual/logger ) + selinux? ( sec-policy/selinux-collectd )" + +PATCHES=( + "${FILESDIR}/${PN}-5.4.1"-{nohal,libocci,libperl,lt}.patch + "${FILESDIR}/${PN}-4.10.3"-werror.patch +) + +# @FUNCTION: collectd_plugin_kernel_linux +# @DESCRIPTION: +# USAGE: <plug-in name> <kernel_options> <severity> +# kernel_options is a list of kernel configurations options; the check tests whether at least +# one of them is enabled. If no, depending on the third argument an elog, ewarn, or eerror message +# is emitted. +collectd_plugin_kernel_linux() { + local multi_opt opt + if has ${1} ${COLLECTD_ALL_PLUGINS}; then + if use collectd_plugins_${1}; then + for opt in ${2}; do + if linux_chkconfig_present ${opt}; then return 0; fi + done + multi_opt=${2//\ /\ or\ } + case ${3} in + (info) + elog "The ${1} plug-in can use kernel features that are disabled now; enable ${multi_opt} in your kernel" + ;; + (warn) + ewarn "The ${1} plug-in uses kernel features that are disabled now; enable ${multi_opt} in your kernel" + ;; + (error) + eerror "The ${1} plug-in needs kernel features that are disabled now; enable ${multi_opt} in your kernel" + ;; + (*) + die "function collectd_plugin_kernel_linux called with invalid third argument" + ;; + esac + fi + fi +} + +collectd_linux_kernel_checks() { + linux-info_pkg_setup + + # battery.c:/proc/pmu/battery_%i + # battery.c:/proc/acpi/battery + collectd_plugin_kernel_linux battery ACPI_BATTERY warn + + # cgroups.c:/sys/fs/cgroup/ + collectd_plugin_kernel_linux cgroups CONFIG_CGROUPS warn + + # cpufreq.c:/sys/devices/system/cpu/cpu%d/cpufreq/ + collectd_plugin_kernel_linux cpufreq SYSFS warn + collectd_plugin_kernel_linux cpufreq CPU_FREQ_STAT warn + + # nfs.c:/proc/net/rpc/nfs + # nfs.c:/proc/net/rpc/nfsd + collectd_plugin_kernel_linux nfs NFS_COMMON warn + + # serial.c:/proc/tty/driver/serial + # serial.c:/proc/tty/driver/ttyS + collectd_plugin_kernel_linux serial SERIAL_CORE warn + + # swap.c:/proc/meminfo + collectd_plugin_kernel_linux swap SWAP warn + + # thermal.c:/proc/acpi/thermal_zone + # thermal.c:/sys/class/thermal + collectd_plugin_kernel_linux thermal "PROC_FS SYSFS" warn + collectd_plugin_kernel_linux thermal ACPI_THERMAL warn + + # vmem.c:/proc/vmstat + collectd_plugin_kernel_linux vmem VM_EVENT_COUNTERS warn + + # uuid.c:/sys/hypervisor/uuid + collectd_plugin_kernel_linux uuid SYSFS info + + # wireless.c:/proc/net/wireless + collectd_plugin_kernel_linux wireless "MAC80211 IEEE80211" warn +} + +pkg_setup() { + if use kernel_linux; then + if linux_config_exists; then + einfo "Checking your linux kernel configuration:" + collectd_linux_kernel_checks + else + elog "Cannot find a linux kernel configuration. Continuing anyway." + fi + fi + + enewgroup collectd + enewuser collectd -1 -1 /var/lib/collectd collectd +} + +src_prepare() { + base_src_prepare + + # There's some strange prefix handling in the default config file, resulting in + # paths like "/usr/var/..." + sed -i -e "s:@prefix@/var:/var:g" src/collectd.conf.in || die + + sed -i -e "s:/etc/collectd/collectd.conf:/etc/collectd.conf:g" contrib/collectd.service || die + + # fix installdirs for perl, bug 444360 + sed -i -e 's/INSTALL_BASE=$(DESTDIR)$(prefix) //' bindings/Makefile.am || die + + rm -r libltdl || die + + eautoreconf +} + +src_configure() { + # Now come the lists of os-dependent plugins. Any plugin that is not listed anywhere here + # should work independent of the operating system. + + local linux_plugins="battery cpu cpufreq disk entropy ethstat interface iptables ipvs irq load + memory md netlink nfs numa processes serial swap tcpconns thermal users vmem vserver + wireless" + + local libstatgrab_plugins="cpu disk interface load memory swap users" + local bsd_plugins="cpu tcpconns ${libstatgrab_plugins}" + + local darwin_plugins="apple_sensors battery cpu disk interface memory processes tcpconns" + + local osdependent_plugins="${linux_plugins} ${bsd_plugins} ${darwin_plugins}" + local myos_plugins="" + if use kernel_linux; then + einfo "Enabling Linux plugins." + myos_plugins=${linux_plugins} + elif use kernel_FreeBSD; then + einfo "Enabling FreeBSD plugins." + myos_plugins=${bsd_plugins} + elif use kernel_Darwin; then + einfo "Enabling Darwin plugins." + myos_plugins=${darwin_plugins} + fi + + # Do we debug? + local myconf="$(use_enable debug)" + + local plugin + + # Disable what needs to be disabled. + for plugin in ${COLLECTD_DISABLED_PLUGINS}; do + myconf+=" --disable-${plugin}" + done + + # Set enable/disable for each single plugin. + for plugin in ${COLLECTD_ALL_PLUGINS}; do + if has ${plugin} ${osdependent_plugins}; then + # plugin is os-dependent ... + if has ${plugin} ${myos_plugins}; then + # ... and available in this os + myconf+=" $(use_enable collectd_plugins_${plugin} ${plugin})" + else + # ... and NOT available in this os + if use collectd_plugins_${plugin}; then + ewarn "You try to enable the ${plugin} plugin, but it is not available for this" + ewarn "kernel. Disabling it automatically." + fi + myconf+=" --disable-${plugin}" + fi + elif [[ "${plugin}" = "collectd_plugins_perl" ]]; then + if use collectd_plugins_perl && ! use perl; then + ewarn "Perl plugin disabled as perl bindings disabled by -perl use flag" + myconf+= --disable-perl + else + myconf+=" $(use_enable collectd_plugins_${plugin} ${plugin})" + fi + else + myconf+=" $(use_enable collectd_plugins_${plugin} ${plugin})" + fi + done + + # Need JAVA_HOME for java. + if use collectd_plugins_java; then + myconf+=" --with-java=$(java-config -g JAVA_HOME)" + fi + + # Need libiptc ONLY for iptables. If we try to use it otherwise bug 340109 happens. + if ! use collectd_plugins_iptables; then + myconf+=" --with-libiptc=no" + fi + + if use perl; then + myconf+=" --with-perl-bindings=INSTALLDIRS=vendor" + else + myconf+=" --without-perl-bindings" + fi + + # No need for v5upgrade + myconf+=" --disable-target_v5upgrade" + + # Finally, run econf. + KERNEL_DIR="${KERNEL_DIR}" econf --config-cache --without-included-ltdl $(use_enable static-libs static) --localstatedir=/var ${myconf} +} + +src_install() { + emake DESTDIR="${D}" install + + perl_delete_localpod + + find "${D}/usr/" -name "*.la" -exec rm -f {} + + + # use collectd_plugins_ping && setcap cap_net_raw+ep ${D}/usr/sbin/collectd + # we cannot do this yet + + fowners root:collectd /etc/collectd.conf + fperms u=rw,g=r,o= /etc/collectd.conf + + dodoc AUTHORS ChangeLog NEWS README TODO + + if use contrib ; then + insinto /usr/share/doc/${PF} + doins -r contrib + fi + + keepdir /var/lib/${PN} + fowners collectd:collectd /var/lib/${PN} + + newinitd "${FILESDIR}/${PN}.initd" ${PN} + newconfd "${FILESDIR}/${PN}.confd" ${PN} + systemd_dounit "contrib/${PN}.service" + + insinto /etc/logrotate.d + newins "${FILESDIR}/logrotate" collectd + + sed -i -e 's:^.*PIDFile "/var/run/collectd.pid":PIDFile "/var/run/collectd/collectd.pid":' "${D}"/etc/collectd.conf || die + sed -i -e 's:^# SocketFile "/var/run/collectd-unixsock":# SocketFile "/var/run/collectd/collectd-unixsock":' "${D}"/etc/collectd.conf || die + sed -i -e 's:^.*LoadPlugin perl$:# The new, correct way to load the perl plugin -- \n# <LoadPlugin perl>\n# Globals true\n# </LoadPlugin>:' "${D}"/etc/collectd.conf || die + sed -i -e 's:^.*LoadPlugin python$:# The new, correct way to load the python plugin -- \n# <LoadPlugin python>\n# Globals true\n# </LoadPlugin>:' "${D}"/etc/collectd.conf || die +} + +collectd_rdeps() { + if (use collectd_plugins_${1} && ! has_version "${2}"); then + elog "The ${1} plug-in needs ${2} to be installed locally or remotely to work." + fi +} + +pkg_postinst() { + collectd_rdeps apcups sys-power/apcupsd + collectd_rdeps hddtemp app-admin/hddtemp + collectd_rdeps mbmon sys-apps/xmbmon + collectd_rdeps memcached ">=net-misc/memcached-1.2.2-r2" + collectd_rdeps ntpd net-misc/ntp + collectd_rdeps openvpn ">=net-misc/openvpn-2.0.9" + collectd_rdeps write_mongodb "dev-db/mongodb" + + echo + elog "collectd is now started as unprivileged user by default." + elog "You may want to revisit the configuration." + elog + + if use collectd_plugins_email; then + ewarn "The email plug-in is deprecated. To submit statistics please use the unixsock plugin." + fi + if use contrib; then + elog "The scripts in /usr/share/doc/${PF}/collection3 for generating graphs need dev-perl/HTML-Parser," + elog "dev-perl/config-general, dev-perl/regexp-common, and net-analyzer/rrdtool[perl] to be installed." + fi +} diff --git a/app-admin/collectd/files/collectd-4.10.2-libocci.patch b/app-admin/collectd/files/collectd-4.10.2-libocci.patch new file mode 100644 index 000000000000..2ae42dc14163 --- /dev/null +++ b/app-admin/collectd/files/collectd-4.10.2-libocci.patch @@ -0,0 +1,20 @@ +diff -r -u collectd-4.10.2.orig/configure.in collectd-4.10.2/configure.in +--- collectd-4.10.2.orig/configure.in 2010-11-28 03:27:47.000000000 +0100 ++++ collectd-4.10.2/configure.in 2010-11-28 03:28:23.000000000 +0100 +@@ -2446,14 +2446,14 @@ + ]) + if test "x$ORACLE_HOME" != "x" + then +- with_oracle_cppflags="-I$ORACLE_HOME/rdbms/public" ++ with_oracle_cppflags="-I$ORACLE_HOME/rdbms/public -locci" + + if test -e "$ORACLE_HOME/lib/ldflags" + then + with_oracle_libs=`cat "$ORACLE_HOME/lib/ldflags"` + fi + #with_oracle_libs="-L$ORACLE_HOME/lib $with_oracle_libs -lclntsh" +- with_oracle_libs="-L$ORACLE_HOME/lib -lclntsh" ++ with_oracle_libs="-L$ORACLE_HOME/lib -lclntsh -locci" + fi + if test "x$with_oracle" = "xyes" + then diff --git a/app-admin/collectd/files/collectd-4.10.2-nohal.patch b/app-admin/collectd/files/collectd-4.10.2-nohal.patch new file mode 100644 index 000000000000..a82a3bc78034 --- /dev/null +++ b/app-admin/collectd/files/collectd-4.10.2-nohal.patch @@ -0,0 +1,23 @@ +diff -ruN collectd-4.10.2.orig/configure.in collectd-4.10.2/configure.in +--- collectd-4.10.2.orig/configure.in 2010-11-27 11:10:38.000000000 +0100 ++++ collectd-4.10.2/configure.in 2011-02-07 21:55:22.000000000 +0100 +@@ -1109,18 +1109,7 @@ + AM_CONDITIONAL(BUILD_WITH_LIBRESOLV, test "x$with_libresolv" = "xyes") + + dnl Check for HAL (hardware abstraction library) +-with_libhal="yes" +-AC_CHECK_LIB(hal,libhal_device_property_exists, +- [AC_DEFINE(HAVE_LIBHAL, 1, [Define to 1 if you have 'hal' library])], +- [with_libhal="no"]) +-if test "x$with_libhal" = "xyes"; then +- if test "x$PKG_CONFIG" != "x"; then +- BUILD_WITH_LIBHAL_CFLAGS="`pkg-config --cflags hal`" +- BUILD_WITH_LIBHAL_LIBS="`pkg-config --libs hal`" +- AC_SUBST(BUILD_WITH_LIBHAL_CFLAGS) +- AC_SUBST(BUILD_WITH_LIBHAL_LIBS) +- fi +-fi ++with_libhal="no" + + m4_divert_once([HELP_WITH], [ + collectd additional packages:]) diff --git a/app-admin/collectd/files/collectd-4.10.3-werror.patch b/app-admin/collectd/files/collectd-4.10.3-werror.patch new file mode 100644 index 000000000000..6ddb508cdc1f --- /dev/null +++ b/app-admin/collectd/files/collectd-4.10.3-werror.patch @@ -0,0 +1,24 @@ +diff -ruN collectd-4.10.3.orig/src/Makefile.am collectd-4.10.3/src/Makefile.am +--- collectd-4.10.3.orig/src/Makefile.am 2011-03-26 17:08:53.000000000 +0100 ++++ collectd-4.10.3/src/Makefile.am 2011-04-24 22:56:39.521229944 +0200 +@@ -7,7 +7,7 @@ + endif + + if COMPILER_IS_GCC +-AM_CFLAGS = -Wall -Werror ++AM_CFLAGS = -Wall + endif + + AM_CPPFLAGS = -DPREFIX='"${prefix}"' +diff -ruN collectd-4.10.3.orig/src/libcollectdclient/Makefile.am collectd-4.10.3/src/libcollectdclient/Makefile.am +--- collectd-4.10.3.orig/src/libcollectdclient/Makefile.am 2011-03-26 17:04:26.000000000 +0100 ++++ collectd-4.10.3/src/libcollectdclient/Makefile.am 2011-04-24 22:57:12.231229943 +0200 +@@ -1,7 +1,7 @@ + AUTOMAKE_OPTIONS = foreign no-dependencies + + if COMPILER_IS_GCC +-AM_CFLAGS = -Wall -Werror ++AM_CFLAGS = -Wall + endif + + pkginclude_HEADERS = client.h lcc_features.h diff --git a/app-admin/collectd/files/collectd-5.1.0-libperl.patch b/app-admin/collectd/files/collectd-5.1.0-libperl.patch new file mode 100644 index 000000000000..9a44d5b57ad8 --- /dev/null +++ b/app-admin/collectd/files/collectd-5.1.0-libperl.patch @@ -0,0 +1,30 @@ +diff --git a/configure.in b/configure.in +index 1cfc2fc..384c298 100644 +--- a/configure.in ++++ b/configure.in +@@ -2944,11 +2944,13 @@ if test "x$with_libperl" = "xyes" \ + then + SAVE_CFLAGS="$CFLAGS" + SAVE_LDFLAGS="$LDFLAGS" ++ SAVE_LIBS="$LIBS" + dnl ARCHFLAGS="" -> disable multi -arch on OSX (see Config_heavy.pl:fetch_string) + PERL_CFLAGS=`ARCHFLAGS="" $perl_interpreter -MExtUtils::Embed -e ccopts` + PERL_LDFLAGS=`ARCHFLAGS="" $perl_interpreter -MExtUtils::Embed -e ldopts` + CFLAGS="$CFLAGS $PERL_CFLAGS" + LDFLAGS="$LDFLAGS $PERL_LDFLAGS" ++ LIBS="$LIBS -lperl -lpthread" + + AC_CACHE_CHECK([for libperl], + [c_cv_have_libperl], +@@ -2967,7 +2969,10 @@ dnl ARCHFLAGS="" -> disable multi -arch on OSX (see Config_heavy.pl:fetch_string + Nullsv); + ]]), + [c_cv_have_libperl="yes"], +- [c_cv_have_libperl="no"] ++ [ ++ c_cv_have_libperl="no" ++ LIBS="$SAVE_LIBS" ++ ] + ) + ) +
\ No newline at end of file diff --git a/app-admin/collectd/files/collectd-5.1.1-lt.patch b/app-admin/collectd/files/collectd-5.1.1-lt.patch new file mode 100644 index 000000000000..4aa734b1efa4 --- /dev/null +++ b/app-admin/collectd/files/collectd-5.1.1-lt.patch @@ -0,0 +1,32 @@ +diff --git a/Makefile.am b/Makefile.am +index 5267123..a7e0d0c 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -1,6 +1,4 @@ +-ACLOCAL_AMFLAGS = -I libltdl/m4 +- +-SUBDIRS = libltdl src bindings . ++SUBDIRS = src bindings . + + INCLUDES = $(LTDLINCL) + +diff --git a/configure.in b/configure.in +index eff8d61..a22a561 100644 +--- a/configure.in ++++ b/configure.in +@@ -7,7 +7,6 @@ AC_CONFIG_AUX_DIR([libltdl/config]) + m4_ifdef([LT_PACKAGE_VERSION], + # libtool >= 2.2 + [ +- LT_CONFIG_LTDL_DIR([libltdl]) + LT_INIT([dlopen]) + LTDL_INIT([convenience]) + AC_DEFINE(LIBTOOL_VERSION, 2, [Define to used libtool version.]) +@@ -19,7 +18,6 @@ m4_ifdef([LT_PACKAGE_VERSION], + AC_SUBST(LTDLINCL) + AC_SUBST(LIBLTDL) + AC_LIBTOOL_DLOPEN +- AC_CONFIG_SUBDIRS(libltdl) + AC_DEFINE(LIBTOOL_VERSION, 1, [Define to used libtool version.]) + ] + )
\ No newline at end of file diff --git a/app-admin/collectd/files/collectd-5.4.1-libocci.patch b/app-admin/collectd/files/collectd-5.4.1-libocci.patch new file mode 100644 index 000000000000..14b7d6992bb6 --- /dev/null +++ b/app-admin/collectd/files/collectd-5.4.1-libocci.patch @@ -0,0 +1,21 @@ +diff --git configure.ac configure.ac +index 7029e1e..72f6ff4 100644 +--- configure.ac ++++ configure.ac +@@ -2941,14 +2941,14 @@ AC_ARG_WITH(oracle, [AS_HELP_STRING([--with-oracle@<:@=ORACLE_HOME@:>@], [Path t + ]) + if test "x$ORACLE_HOME" != "x" + then +- with_oracle_cppflags="-I$ORACLE_HOME/rdbms/public" ++ with_oracle_cppflags="-I$ORACLE_HOME/rdbms/public -locci" + + if test -e "$ORACLE_HOME/lib/ldflags" + then + with_oracle_libs=`cat "$ORACLE_HOME/lib/ldflags"` + fi + #with_oracle_libs="-L$ORACLE_HOME/lib $with_oracle_libs -lclntsh" +- with_oracle_libs="-L$ORACLE_HOME/lib -lclntsh" ++ with_oracle_libs="-L$ORACLE_HOME/lib -lclntsh -locci" + fi + if test "x$with_oracle" = "xyes" + then
\ No newline at end of file diff --git a/app-admin/collectd/files/collectd-5.4.1-libperl.patch b/app-admin/collectd/files/collectd-5.4.1-libperl.patch new file mode 100644 index 000000000000..4f60802240ac --- /dev/null +++ b/app-admin/collectd/files/collectd-5.4.1-libperl.patch @@ -0,0 +1,29 @@ +diff --git configure.ac configure.ac +index ce8a9bc..eaa464e 100644 +--- configure.ac ++++ configure.ac +@@ -3109,11 +3109,13 @@ if test "x$with_libperl" = "xyes" \ + then + SAVE_CFLAGS="$CFLAGS" + SAVE_LDFLAGS="$LDFLAGS" ++ SAVE_LIBS="$LIBS" + dnl ARCHFLAGS="" -> disable multi -arch on OSX (see Config_heavy.pl:fetch_string) + PERL_CFLAGS=`ARCHFLAGS="" $perl_interpreter -MExtUtils::Embed -e ccopts` + PERL_LDFLAGS=`ARCHFLAGS="" $perl_interpreter -MExtUtils::Embed -e ldopts` + CFLAGS="$CFLAGS $PERL_CFLAGS" + LDFLAGS="$LDFLAGS $PERL_LDFLAGS" ++ LIBS="$LIBS -lperl -lpthread" + + AC_CACHE_CHECK([for libperl], + [c_cv_have_libperl], +@@ -3132,7 +3134,10 @@ dnl ARCHFLAGS="" -> disable multi -arch on OSX (see Config_heavy.pl:fetch_string + ]]] + )], + [c_cv_have_libperl="yes"], +- [c_cv_have_libperl="no"] ++ [ ++ c_cv_have_libperl="no" ++ LIBS="$SAVE_LIBS" ++ ] + ) + ) diff --git a/app-admin/collectd/files/collectd-5.4.1-lt.patch b/app-admin/collectd/files/collectd-5.4.1-lt.patch new file mode 100644 index 000000000000..bac1809f1c30 --- /dev/null +++ b/app-admin/collectd/files/collectd-5.4.1-lt.patch @@ -0,0 +1,32 @@ +diff --git Makefile.am Makefile.am +index 5267123..a7e0d0c 100644 +--- Makefile.am ++++ Makefile.am +@@ -1,6 +1,4 @@ +-ACLOCAL_AMFLAGS = -I libltdl/m4 +- +-SUBDIRS = libltdl src bindings . ++SUBDIRS = src bindings . + + INCLUDES = $(LTDLINCL) + +diff --git configure.ac configure.ac +index eaa464e..d652d46 100644 +--- configure.ac ++++ configure.ac +@@ -7,7 +7,6 @@ AC_CONFIG_AUX_DIR([libltdl/config]) + m4_ifdef([LT_PACKAGE_VERSION], + # libtool >= 2.2 + [ +- LT_CONFIG_LTDL_DIR([libltdl]) + LT_INIT([dlopen]) + LTDL_INIT([convenience]) + AC_DEFINE(LIBTOOL_VERSION, 2, [Define to used libtool version.]) +@@ -19,7 +18,6 @@ m4_ifdef([LT_PACKAGE_VERSION], + AC_SUBST(LTDLINCL) + AC_SUBST(LIBLTDL) + AC_LIBTOOL_DLOPEN +- AC_CONFIG_SUBDIRS(libltdl) + AC_DEFINE(LIBTOOL_VERSION, 1, [Define to used libtool version.]) + ] + )
\ No newline at end of file diff --git a/app-admin/collectd/files/collectd-5.4.1-nohal.patch b/app-admin/collectd/files/collectd-5.4.1-nohal.patch new file mode 100644 index 000000000000..9978296e8df6 --- /dev/null +++ b/app-admin/collectd/files/collectd-5.4.1-nohal.patch @@ -0,0 +1,24 @@ +diff --git configure.ac configure.ac +index 7029e1e..ad5e336 100644 +--- configure.ac ++++ configure.ac +@@ -1351,18 +1351,7 @@ AC_CHECK_LIB(resolv, res_search, + AM_CONDITIONAL(BUILD_WITH_LIBRESOLV, test "x$with_libresolv" = "xyes") + + dnl Check for HAL (hardware abstraction library) +-with_libhal="yes" +-AC_CHECK_LIB(hal,libhal_device_property_exists, +- [AC_DEFINE(HAVE_LIBHAL, 1, [Define to 1 if you have 'hal' library])], +- [with_libhal="no"]) +-if test "x$with_libhal" = "xyes"; then +- if test "x$PKG_CONFIG" != "x"; then +- BUILD_WITH_LIBHAL_CFLAGS="`pkg-config --cflags hal`" +- BUILD_WITH_LIBHAL_LIBS="`pkg-config --libs hal`" +- AC_SUBST(BUILD_WITH_LIBHAL_CFLAGS) +- AC_SUBST(BUILD_WITH_LIBHAL_LIBS) +- fi +-fi ++with_libhal="no" + + m4_divert_once([HELP_WITH], [ + collectd additional packages:])
\ No newline at end of file diff --git a/app-admin/collectd/files/collectd.confd b/app-admin/collectd/files/collectd.confd new file mode 100644 index 000000000000..979b7255b0fc --- /dev/null +++ b/app-admin/collectd/files/collectd.confd @@ -0,0 +1,22 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# Nice value used to launch collectd, to change priority of the process. As +# you usually will want to run it in background, a default of 5 is used. +# +#COLLECTD_NICELVL='5' + +# Location of configuration file. Modify if you don't like the standard one. +# +#COLLECTD_CFGFILE='/etc/collectd.conf' + +# File used to store the PID file. Usually you won't need to touch it. +# +#COLLECTD_PIDFILE='/var/run/collectd/collectd.pid' + +# User to run collectd as (default is collectd, change to root or give +# collectd user appropriate privileges if you use one of the plugins that +# require it, as e.g. ping or iptables plugins) +# +#COLLECTD_USER='collectd' diff --git a/app-admin/collectd/files/collectd.initd b/app-admin/collectd/files/collectd.initd new file mode 100644 index 000000000000..4f48a116c37f --- /dev/null +++ b/app-admin/collectd/files/collectd.initd @@ -0,0 +1,60 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +: ${COLLECTD_PIDFILE:='/var/run/collectd/collectd.pid'} +: ${COLLECTD_CFGFILE:='/etc/collectd.conf'} +: ${COLLECTD_NICELVL:='5'} +: ${COLLECTD_USER:='collectd'} + +extra_commands="configtest" + +depend() { + use net +} + +configtest() { + ebegin "Checking ${SVCNAME} configuration" + checkconfig + eend $? +} + +checkconfig() { + if [ $(sed '/^$\|^#/d' ${COLLECTD_CFGFILE} | grep -c 'LoadPlugin\w\+oracle') != 0 ] ; then + if [ -e /etc/env.d/50oracle-instantclient-basic ] ; then + . /etc/env.d/50oracle-instantclient-basic + export ORACLE_HOME + export TNS_ADMIN + else + ewarn "Unable to set Oracle environment, Oracle plugin wont work" + fi + fi + + /usr/sbin/collectd -t -C "${COLLECTD_CFGFILE}" 1>/dev/null 2>&1 + ret=$? + if [ $ret -ne 0 ]; then + eerror "${SVCNAME} has detected an error in your setup:" + /usr/sbin/collectd -t -C "${COLLECTD_CFGFILE}" + fi + + return $ret +} + +start() { + checkconfig || return 1 + [ -d /var/run/collectd ] || mkdir /var/run/collectd && chown collectd:collectd /var/run/collectd + + ebegin "Starting collectd" + start-stop-daemon --start --user "${COLLECTD_USER}:collectd" \ + --nicelevel "${COLLECTD_NICELVL}" --exec /usr/sbin/collectd -- \ + -P "${COLLECTD_PIDFILE}" -C "${COLLECTD_CFGFILE}" + eend $? "Failed to start collectd" +} + +stop() { + ebegin "Stopping collectd" + start-stop-daemon --stop \ + --pidfile "${COLLECTD_PIDFILE}" + eend $? "Failed to stop collectd" +} diff --git a/app-admin/collectd/files/logrotate b/app-admin/collectd/files/logrotate new file mode 100644 index 000000000000..5d344f6208f1 --- /dev/null +++ b/app-admin/collectd/files/logrotate @@ -0,0 +1,9 @@ +# +# /etc/logrotate.d/collectd +# +/var/log/collectd.log { + daily + rotate 5 + notifempty + missingok +} diff --git a/app-admin/collectd/metadata.xml b/app-admin/collectd/metadata.xml new file mode 100644 index 000000000000..536b2ec9cf52 --- /dev/null +++ b/app-admin/collectd/metadata.xml @@ -0,0 +1,115 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>proxy-maintainers</herd> + <longdescription>Collectd gathers statistics about the system it is running on and stores this information. Those statistics can then be used to find current performance bottlenecks (i.e. performance analysis) and predict future system load (i.e. capacity planning). Or if you just want pretty graphs of your private server and are fed up with some homegrown solution you're at the right place.</longdescription> + <maintainer> + <email>bugs@bergstroem.nu</email> + <name>Johan Bergström</name> + <description>Proxied Maintainer</description> + </maintainer> + <use> + <flag name='collectd_plugins_aggregation'>Build the aggregation plugin (aggregate multiplte values into a single value)</flag> + <flag name='collectd_plugins_apache'>Build the apache input plugin (transferred bytes, handled requests, detailed scoreboard statistics)</flag> + <flag name='collectd_plugins_apcups'>Build the apcups input plugin (UPS charge, load, input/output/battery voltage, etc.)</flag> + <flag name='collectd_plugins_ascent'>Build the ascent input plugin (statistics about a free server for World of Warcraft)</flag> + <flag name='collectd_plugins_battery'>Build the battery input plugin (charge, current and voltage of ACPI and PMU based laptop batteries)</flag> + <flag name='collectd_plugins_bind'>Build the bind input plugin (name server and resolver statistics)</flag> + <flag name='collectd_plugins_cgroups'>Build the cgroups CPU accounting collection plugin</flag> + <flag name='collectd_plugins_conntrack'>Build the conntrack input plugin (number of nf_conntrack entries)</flag> + <flag name='collectd_plugins_contextswitch'>Build the contextswitch input plugin (number of context switches done by the operating system)</flag> + <flag name='collectd_plugins_cpu'>Build the cpu input plugin (time spent in the system, user, nice, idle, and related states)</flag> + <flag name='collectd_plugins_cpufreq'>Build the cpufreq input plugin (CPU frequency, for laptops with speedstep or similar)</flag> + <flag name='collectd_plugins_csv'>Build the csv output plugin (write to comma separated values (CSV) files)</flag> + <flag name='collectd_plugins_curl'>Build the curl input plugin (parse statistics from websites using regular expressions)</flag> + <flag name='collectd_plugins_curl_json'>Build the curl_json input plugin (get json data via curl and parse it)</flag> + <flag name='collectd_plugins_curl_xml'>Build the curl_xml input plugin (get xml data via curl and parse it)</flag> + <flag name='collectd_plugins_dbi'>Build the dbi input plugin (execute SQL statements on databases and interpret the reply)</flag> + <flag name='collectd_plugins_df'>Build the df input plugin (mountpoint usage)</flag> + <flag name='collectd_plugins_disk'>Build the disk input plugin (sectors read/written, number of read/write actions, average completion time of IO-operations)</flag> + <flag name='collectd_plugins_dns'>Build the dns input plugin (collects statistics of your DNS traffic on port udp/53)</flag> + <flag name='collectd_plugins_email'>Build the email input plugin (opens a UNIX domain socket and starts accepting connections on that socket)</flag> + <flag name='collectd_plugins_entropy'>Build the entropy input plugin (available entropy on a system)</flag> + <flag name='collectd_plugins_ethstat'>Build the ethstat input plugin (performance statistics of Linux ethernet cards)</flag> + <flag name='collectd_plugins_exec'>Build the exec input/output plugin (executes scripts / applications and reads values back)</flag> + <flag name='collectd_plugins_filecount'>Build the filecount input plugin (countd the number of files in a directory and all its subdirectories)</flag> + <flag name='collectd_plugins_fscache'>Build the fscache input plugin (information about the caching infrastructure for network file-systems etc)</flag> + <flag name='collectd_plugins_gmond'>Build the gmond input plugin (receive data from gmond, the client daemon of the Ganglia project)</flag> + <flag name='collectd_plugins_hddtemp'>Build the hddtemp input plugin (temperature of hard disks)</flag> + <flag name='collectd_plugins_interface'>Build the interface input plugin (information about traffic, packets and errors of interfaces)</flag> + <flag name='collectd_plugins_ipmi'>Build the ipmi input plugin (read hardware sensors from servers using the Intelligent Platform Management Interface (IPMI))</flag> + <flag name='collectd_plugins_iptables'>Build the iptables input plugin (statistics from a ip_tables based packet filter)</flag> + <flag name='collectd_plugins_irq'>Build the irq input plugin (number of times each interrupt has been handled by the os)</flag> + <flag name='collectd_plugins_java'>Build the java input plugin (embeds a JVM into collectd for writing plugins)</flag> + <flag name='collectd_plugins_libvirt'>Build the libvirt input plugin (statistics about virtualized guests on a system)</flag> + <flag name='collectd_plugins_load'>Build the load input plugin (system load)</flag> + <flag name='collectd_plugins_logfile'>Build the logfile output plugin (writes log messages to a text file)</flag> + <flag name='collectd_plugins_lvm'>Build the LVM input plugin</flag> + <flag name='collectd_plugins_madwifi'>Build the madwifi input plugin (information about Atheros wireless LAN chipsets)</flag> + <flag name='collectd_plugins_match_empty_counter'>Build the match_empty_counter filter plugin</flag> + <flag name='collectd_plugins_match_hashed'>Build the match_hashed filter plugin</flag> + <flag name='collectd_plugins_match_regex'>Build the match_regex filter plugin</flag> + <flag name='collectd_plugins_match_timediff'>Build the match_timediff filter plugin</flag> + <flag name='collectd_plugins_match_value'>Build the match_value filter plugin</flag> + <flag name='collectd_plugins_mbmon'>Build the mbmon input plugin (information from mainboard sensors)</flag> + <flag name='collectd_plugins_md'>Build the md input plugin (disk states in Linux md devices)</flag> + <flag name='collectd_plugins_memcachec'>Build the memcachec input plugin (connects to a memcached server)</flag> + <flag name='collectd_plugins_memcached'>Build the memcached input plugin (connects to a memcached daemon)</flag> + <flag name='collectd_plugins_memory'>Build the memory input plugin (physical memory utilization)</flag> + <flag name='collectd_plugins_multimeter'>Build the multimeter input plugin (reads a voltage or current from a multimeter connected to a serial bus)</flag> + <flag name='collectd_plugins_mysql'>Build the mysql input plugin (connects to an MySQL-database and issues a SHOW STATUS command)</flag> + <flag name='collectd_plugins_netlink'>Build the netlink input plugin (opens a netlink socket to the Linux kernel for getting statistics)</flag> + <flag name='collectd_plugins_network'>Build the network input/output plugin (communicates with other instances of collectd)</flag> + <flag name='collectd_plugins_nfs'>Build the nfs input plugin (usage of the Network File System)</flag> + <flag name='collectd_plugins_nginx'>Build the nginx input plugin (number of requests handled by the nginx daemon)</flag> + <flag name='collectd_plugins_notify_desktop'>Build the notify_desktop output plugin (uses libnotify to display notifications to the user)</flag> + <flag name='collectd_plugins_notify_email'>Build the notify_email output plugin (uses libESMTP to send notifications to a configured email address)</flag> + <flag name='collectd_plugins_ntpd'>Build the ntpd input plugin (queries an NTP server)</flag> + <flag name='collectd_plugins_numa'>Build the numa input plugin (statistics of the Linux Non-Uniform Memory Access (NUMA) subsystem)</flag> + <flag name='collectd_plugins_nut'>Build the nut input plugin (collects UPS statistics using the Network UPS Tools)</flag> + <flag name='collectd_plugins_oracle'>Build the oracle input plugin (SQL-queries one or more Oracle database systems)</flag> + <flag name='collectd_plugins_olsrd'>Build the olsrd input plugin (reads information about the Optimized Link State Routing daemon)</flag> + <flag name='collectd_plugins_onewire'>Build the onewire input plugin (collects temperature information from sensors)</flag> + <flag name='collectd_plugins_openvpn'>Build the openvpn input plugin (reads the status file printed by OpenVPN)</flag> + <flag name='collectd_plugins_perl'>Build the perl language binding plugin (embeds a Perl interpreter into collectd for writing plugins)</flag> + <flag name='collectd_plugins_ping'>Build the ping input plugin (measures network latency)</flag> + <flag name='collectd_plugins_postgresql'>Build the postgresql input plugin (connects to and executes SQL statements on a PostgreSQL database)</flag> + <flag name='collectd_plugins_powerdns'>Build the powerdns input plugin (connects to a local PowerDNS instance)</flag> + <flag name='collectd_plugins_processes'>Build the processes input plugin (statistics about processes)</flag> + <flag name='collectd_plugins_protocols'>Build the protocols input plugin (network protocols)</flag> + <flag name='collectd_plugins_python'>Build the python language binding plugin (embeds a Python interpreter into collectd for writing plugins)</flag> + <flag name='collectd_plugins_rrdcached'>Build the rrdcached input/output plugin (connects to rrdcached and submits updates for RRD files)</flag> + <flag name='collectd_plugins_rrdtool'>Build the rrdtool output plugin (writes values to RRD-files)</flag> + <flag name='collectd_plugins_routeros'>Build the routeros input plugin (collect information on devices running RouterOS)</flag> + <flag name='collectd_plugins_sensors'>Build the sensors input plugin (uses lm-sensors to read hardware sensors)</flag> + <flag name='collectd_plugins_serial'>Build the serial input plugin (collects the traffic on serial interfaces)</flag> + <flag name='collectd_plugins_snmp'>Build the snmp input plugin (read values from network devices using SNMP)</flag> + <flag name='collectd_plugins_statsd'>Build the statsd input plugin (accepts statsd-type metrics from a UDP socket)</flag> + <flag name='collectd_plugins_swap'>Build the swap input plugin (amount of memory currently written to swap)</flag> + <flag name='collectd_plugins_syslog'>Build the syslog output plugin (receives messages from collectd and dispatches them to syslog)</flag> + <flag name='collectd_plugins_table'>Build the table input plugin (parses table-like structured plain text)</flag> + <flag name='collectd_plugins_tail'>Build the tail input plugin (follows logfiles as e.g. tail -f)</flag> + <flag name='collectd_plugins_target_notification'>Build the target_notification filter plugin</flag> + <flag name='collectd_plugins_target_replace'>Build the target_replace filter plugin</flag> + <flag name='collectd_plugins_target_scale'>Build the target_scale filter plugin</flag> + <flag name='collectd_plugins_target_set'>Build the target_set filter plugin</flag> + <flag name='collectd_plugins_tcpconns'>Build the tcpconns input plugin (number of TCP connections to or from a specified port)</flag> + <flag name='collectd_plugins_teamspeak2'>Build the teamspeak2 input plugin (collects traffic statistics from a teamspeak2 instance)</flag> + <flag name='collectd_plugins_ted'>Build the ted input plugin (connects to The Energy Detective and reads the current power over connected power lines)</flag> + <flag name='collectd_plugins_thermal'>Build the thermal input plugin (ACPI thermal zone information)</flag> + <flag name='collectd_plugins_threshold'>Build the threshold plugin (checks values against configured thresholds and creates notifications if values are out of bounds)</flag> + <flag name='collectd_plugins_tokyotyrant'>Build the tokyotyrant input plugin (number of records and file size from a running Tokyo Tyrant server)</flag> + <flag name='collectd_plugins_uptime'>Build the uptime input plugin (system uptime)</flag> + <flag name='collectd_plugins_unixsock'>Build the unixsock output plugin (opens a UNIX domain socket and accepts connections)</flag> + <flag name='collectd_plugins_users'>Build the users input plugin (number of users currently logged in)</flag> + <flag name='collectd_plugins_uuid'>Build the uuid plugin (tries hard to determine the UUID of the system it is running on)</flag> + <flag name='collectd_plugins_varnish'>Build the varnish input plugin</flag> + <flag name='collectd_plugins_vmem'>Build the vmem input plugin (information about the virtual memory subsystem)</flag> + <flag name='collectd_plugins_vserver'>Build the vserver input plugin (virtual servers running on a system)</flag> + <flag name='collectd_plugins_wireless'>Build the wireless input plugin (signal quality, signal power and signal-to-noise ratio for wireless LAN cards)</flag> + <flag name='collectd_plugins_write_graphite'>Build the write_graphite output plugin (sends the values collected by collectd to Carbon, the storage layer of the Graphite time-series database)</flag> + <flag name='collectd_plugins_write_http'>Build the write_http output plugin (sends the values collected by collectd to a web-server)</flag> + <flag name='collectd_plugins_write_mongodb'>Build the write_mongodb output plugin (sends the values collected by collectd to a MongoDB)</flag> + <flag name='contrib'>Install user-contributed files in the doc directory</flag> + </use> +</pkgmetadata> diff --git a/app-admin/conky/Manifest b/app-admin/conky/Manifest new file mode 100644 index 000000000000..bf4df4e45b9d --- /dev/null +++ b/app-admin/conky/Manifest @@ -0,0 +1 @@ +DIST conky-1.9.0.tar.bz2 626555 SHA256 baf1b550f135fbfb53e5e286a33aadc03a667d63bf6c4d52ba7637366295bb6f SHA512 98c9f69fd8bee2062e3eddeb7a394cce932199ffd6c8664006d1222f0453569406613e63637848c77a455f7dae3f16be3079a2cab56ecafea51ec043de23c889 WHIRLPOOL 41bbe95ec838dbda2c2d4a9422d2f2f7d22d0cb99e87c59fbd32c0c7856cc83de36cbeefd982c964ec5229ae0b0342e84525aa5343d8c5cf9525205cea4a274a diff --git a/app-admin/conky/conky-1.9.0-r3.ebuild b/app-admin/conky/conky-1.9.0-r3.ebuild new file mode 100644 index 000000000000..aac776f80764 --- /dev/null +++ b/app-admin/conky/conky-1.9.0-r3.ebuild @@ -0,0 +1,145 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools eutils libtool + +DESCRIPTION="An advanced, highly configurable system monitor for X" +HOMEPAGE="http://conky.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE="GPL-3 BSD LGPL-2.1 MIT" +SLOT="0" +KEYWORDS="alpha amd64 ~arm ppc ppc64 sparc x86" +IUSE="apcupsd audacious curl debug eve hddtemp imlib iostats lua lua-cairo lua-imlib math moc mpd nano-syntax ncurses nvidia +portmon rss thinkpad truetype vim-syntax weather-metar weather-xoap wifi X xmms2" + +DEPEND_COMMON=" + X? ( + imlib? ( media-libs/imlib2[X] ) + lua-cairo? ( + >=dev-lua/toluapp-1.0.93 + >=dev-lang/lua-5.1.4-r8 + x11-libs/cairo[X] ) + lua-imlib? ( + >=dev-lua/toluapp-1.0.93 + >=dev-lang/lua-5.1.4-r8 + media-libs/imlib2[X] ) + nvidia? ( media-video/nvidia-settings ) + truetype? ( x11-libs/libXft >=media-libs/freetype-2 ) + x11-libs/libX11 + x11-libs/libXdamage + x11-libs/libXext + audacious? ( >=media-sound/audacious-1.5 dev-libs/glib ) + xmms2? ( media-sound/xmms2 ) + ) + curl? ( net-misc/curl ) + eve? ( net-misc/curl dev-libs/libxml2 ) + portmon? ( dev-libs/glib ) + lua? ( >=dev-lang/lua-5.1.4-r8 ) + ncurses? ( sys-libs/ncurses ) + rss? ( dev-libs/libxml2 net-misc/curl dev-libs/glib ) + wifi? ( net-wireless/wireless-tools ) + weather-metar? ( net-misc/curl ) + weather-xoap? ( dev-libs/libxml2 net-misc/curl ) + virtual/libiconv + " +RDEPEND=" + ${DEPEND_COMMON} + apcupsd? ( sys-power/apcupsd ) + hddtemp? ( app-admin/hddtemp ) + moc? ( media-sound/moc ) + nano-syntax? ( app-editors/nano ) + vim-syntax? ( || ( app-editors/vim app-editors/gvim ) ) + " +DEPEND=" + ${DEPEND_COMMON} + virtual/pkgconfig + " + +src_prepare() { + epatch \ + "${FILESDIR}/${PN}-1.8.1-utf8-scroll.patch" \ + "${FILESDIR}/${P}-ncurses.patch" \ + "${FILESDIR}/${P}-lines-fix.patch" \ + "${FILESDIR}/${P}-update-when-message-count-decreases.patch" \ + "${FILESDIR}/${P}-apcupsd.patch" \ + "${FILESDIR}/${P}-default-graph-size.patch" \ + "${FILESDIR}/${P}-diskio-dmmajor.patch" \ + "${FILESDIR}/${P}-tinfo.patch" + + # Allow user patches #478482 + epatch_user + + eautoreconf +} + +src_configure() { + local myconf + + if use X; then + myconf="--enable-x11 --enable-double-buffer --enable-xdamage" + myconf="${myconf} --enable-argb --enable-own-window" + myconf="${myconf} $(use_enable imlib imlib2) $(use_enable lua-cairo)" + myconf="${myconf} $(use_enable lua-imlib lua-imlib2)" + myconf="${myconf} $(use_enable nvidia) $(use_enable truetype xft)" + myconf="${myconf} $(use_enable audacious) $(use_enable xmms2)" + else + myconf="--disable-x11 --disable-own-window --disable-argb" + myconf="${myconf} --disable-lua-cairo --disable-nvidia --disable-xft" + myconf="${myconf} --disable-audacious --disable-xmms2" + fi + + econf \ + ${myconf} \ + $(use_enable apcupsd) \ + $(use_enable curl) \ + $(use_enable debug) \ + $(use_enable eve) \ + $(use_enable hddtemp) \ + $(use_enable iostats) \ + $(use_enable lua) \ + $(use_enable thinkpad ibm) \ + $(use_enable math) \ + $(use_enable moc) \ + $(use_enable mpd) \ + $(use_enable ncurses) \ + $(use_enable portmon) \ + $(use_enable rss) \ + $(use_enable weather-metar) \ + $(use_enable weather-xoap) \ + $(use_enable wifi wlan) +} + +src_install() { + default + + dohtml doc/*.html + + if use vim-syntax; then + insinto /usr/share/vim/vimfiles/ftdetect + doins "${S}"/extras/vim/ftdetect/conkyrc.vim + + insinto /usr/share/vim/vimfiles/syntax + doins "${S}"/extras/vim/syntax/conkyrc.vim + fi + + if use nano-syntax; then + insinto /usr/share/nano/ + doins "${S}"/extras/nano/conky.nanorc + fi +} + +pkg_postinst() { + if [[ -z "${REPLACING_VERSIONS}" ]]; then + elog "You can find sample configurations at ${ROOT%/}/etc/conky." + elog "To customize, copy to ~/.conkyrc and edit it to your liking." + elog + elog "There are pretty html docs available at the conky homepage" + elog "or in ${ROOT%/}/usr/share/doc/${PF}/html." + elog + elog "Also see https://wiki.gentoo.org/wiki/Conky/HOWTO" + elog + fi +} diff --git a/app-admin/conky/files/conky-1.8.1-utf8-scroll.patch b/app-admin/conky/files/conky-1.8.1-utf8-scroll.patch new file mode 100644 index 000000000000..8b9e1e8fb9d0 --- /dev/null +++ b/app-admin/conky/files/conky-1.8.1-utf8-scroll.patch @@ -0,0 +1,104 @@ +From b1f6a30bcce020b3c377434137de9856a09b899a Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Amadeusz=20=C5=BBo=C5=82nowski?= <aidecoe@aidecoe.name> +Date: Fri, 11 Nov 2011 11:27:43 +0100 +Subject: [PATCH] Make scroll UTF-8 aware. Fixes bug #3134941. + +--- + src/scroll.c | 44 ++++++++++++++++++++++++++++++++++++++++++-- + 1 files changed, 42 insertions(+), 2 deletions(-) + +diff --git a/src/scroll.c b/src/scroll.c +index f78f807..738db0d 100644 +--- a/src/scroll.c ++++ b/src/scroll.c +@@ -34,12 +34,33 @@ + + struct scroll_data { + char *text; ++ unsigned int show_orig; + unsigned int show; + unsigned int step; + unsigned int start; + long resetcolor; + }; + ++int utf8_charlen(char c) { ++ unsigned char uc = (unsigned char) c; ++ int len = 0; ++ ++ if ((uc & 0x80) == 0) ++ return 1; ++ ++ while ((uc & 0x80) != 0) { ++ ++len; ++ uc <<= 1; ++ } ++ ++ return (len > 0 && len <= 4) ? len : -1; ++} ++ ++int is_utf8_char_tail(char c) { ++ unsigned char uc = (unsigned char) c; ++ return (uc & 0xc0) == 0x80; ++} ++ + void parse_scroll_arg(struct text_object *obj, const char *arg, void *free_at_crash) + { + struct scroll_data *sd; +@@ -60,15 +81,18 @@ void parse_scroll_arg(struct text_object *obj, const char *arg, void *free_at_cr + sd->step = 1; + } + sd->text = malloc(strlen(arg + n1) + sd->show + 1); ++ // sd->show value may change when there are UTF-8 chars to be shown, so ++ // save its origin value ++ sd->show_orig = sd->show; + + if (strlen(arg) > sd->show) { + for(n2 = 0; (unsigned int) n2 < sd->show; n2++) { +- sd->text[n2] = ' '; ++ sd->text[n2] = ' '; + } + sd->text[n2] = 0; + } + else +- sd->text[0] = 0; ++ sd->text[0] = 0; + + strcat(sd->text, arg + n1); + sd->start = 0; +@@ -82,9 +106,13 @@ void print_scroll(struct text_object *obj, char *p, int p_max_size, struct infor + { + struct scroll_data *sd = obj->data.opaque; + unsigned int j, colorchanges = 0, frontcolorchanges = 0, visibcolorchanges = 0, strend; ++ int charlen = 0; ++ unsigned int utf8lenfix = 0; + char *pwithcolors; + char buf[max_user_text]; + ++ sd->show = sd->show_orig; ++ + if (!sd) + return; + +@@ -109,6 +137,18 @@ void print_scroll(struct text_object *obj, char *p, int p_max_size, struct infor + while(*(buf + sd->start) == SPECIAL_CHAR) { + sd->start++; + } ++ //skip parts of UTF-8 character which messes up display ++ while(is_utf8_char_tail(*(buf + sd->start))) { ++ sd->start++; ++ } ++ //extend length to be shown for wide characters ++ j = 0; ++ while(j < sd->show + visibcolorchanges + utf8lenfix) { ++ charlen = utf8_charlen(*(buf + sd->start + j)); ++ utf8lenfix += (charlen > 1 ? charlen - 1 : 0); ++ j += charlen; ++ } ++ sd->show = sd->show_orig + utf8lenfix; + //place all chars that should be visible in p, including colorchanges + for(j=0; j < sd->show + visibcolorchanges; j++) { + p[j] = *(buf + sd->start + j); +-- +1.7.8.rc1 + diff --git a/app-admin/conky/files/conky-1.9.0-apcupsd.patch b/app-admin/conky/files/conky-1.9.0-apcupsd.patch new file mode 100644 index 000000000000..9161fbcc5ebb --- /dev/null +++ b/app-admin/conky/files/conky-1.9.0-apcupsd.patch @@ -0,0 +1,106 @@ +Description: Fix broken apcupsd support in Conky 1.8.1 + Revert apcupsd-related code to Conky 1.8.0 in order to fix broken apcupsd + support. This is a workaround until upstream properly addresses this issue. +From: Brian Derr <bderrly@gmail.com> +Forwarded: http://sourceforge.net/support/tracker.php?aid=3083859 +Bug-Ubuntu: https://bugs.launchpad.net/bugs/897495 +Last-Update: 2011-12-02 + +--- a/src/apcupsd.c ++++ b/src/apcupsd.c +@@ -154,7 +154,7 @@ + // + // Conky update function for apcupsd data + // +-int update_apcupsd(void) { ++void update_apcupsd(void) { + + int i; + APCUPSD_S apc; +@@ -164,41 +164,44 @@ + memcpy(apc.items[i], "N/A", 4); // including \0 + + do { +- struct addrinfo hints; +- struct addrinfo *ai, *rp; +- int res; ++ struct hostent* he = 0; ++ struct sockaddr_in addr; + short sz = 0; +- char portbuf[8]; ++#ifdef HAVE_GETHOSTBYNAME_R ++ struct hostent he_mem; ++ int he_errno; ++ char hostbuff[2048]; ++#endif + // + // connect to apcupsd daemon + // +- memset(&hints, 0, sizeof(struct addrinfo)); +- hints.ai_family = AF_UNSPEC; +- hints.ai_socktype = SOCK_STREAM; +- hints.ai_flags = 0; +- hints.ai_protocol = 0; +- snprintf(portbuf, 8, "%d", info.apcupsd.port); +- res = getaddrinfo(info.apcupsd.host, portbuf, &hints, &ai); +- if (res != 0) { +- NORM_ERR("APCUPSD getaddrinfo: %s", gai_strerror(res)); ++ sock = socket(AF_INET, SOCK_STREAM, 0); ++ if (sock < 0) { ++ perror("socket"); + break; + } +- for (rp = ai; rp != NULL; rp = rp->ai_next) { +- sock = socket(rp->ai_family, rp->ai_socktype, rp->ai_protocol); +- if (sock == -1) { +- continue; +- } +- if (connect(sock, rp->ai_addr, rp->ai_addrlen) != -1) { +- break; +- } +- close(sock); ++#ifdef HAVE_GETHOSTBYNAME_R ++ if (gethostbyname_r(info.apcupsd.host, &he_mem, hostbuff, sizeof(hostbuff), &he, &he_errno) || !he ) { ++ NORM_ERR("APCUPSD gethostbyname_r: %s", hstrerror(h_errno)); ++ break; ++ } ++#else /* HAVE_GETHOSTBYNAME_R */ ++ he = gethostbyname(info.apcupsd.host); ++ if (!he) { ++ herror("gethostbyname"); ++ break; + } +- freeaddrinfo(ai); +- if (rp == NULL) { ++#endif /* HAVE_GETHOSTBYNAME_R */ ++ ++ memset(&addr, 0, sizeof(addr)); ++ addr.sin_family = AF_INET; ++ addr.sin_port = info.apcupsd.port; ++ memcpy(&addr.sin_addr, he->h_addr, he->h_length); ++ if (connect(sock, (struct sockaddr*)&addr, sizeof(struct sockaddr)) < 0) { + // no error reporting, the daemon is probably not running + break; + } +- ++ + // + // send status request - "status" - 6B + // +@@ -222,5 +225,5 @@ + // "atomically" copy the data into working set + // + memcpy(info.apcupsd.items, apc.items, sizeof(info.apcupsd.items)); +- return 0; ++ return; + } +--- a/src/apcupsd.h ++++ b/src/apcupsd.h +@@ -49,6 +49,6 @@ + } APCUPSD_S, *PAPCUPSD_S; + + /* Service routine for the conky main thread */ +-int update_apcupsd(void); ++void update_apcupsd(void); + + #endif /*APCUPSD_H_*/ diff --git a/app-admin/conky/files/conky-1.9.0-default-graph-size.patch b/app-admin/conky/files/conky-1.9.0-default-graph-size.patch new file mode 100644 index 000000000000..02f64e314e0e --- /dev/null +++ b/app-admin/conky/files/conky-1.9.0-default-graph-size.patch @@ -0,0 +1,18 @@ +diff -r -U 5 conky-1.9.0/src/specials.c conky-1.9.0/src/specials.c +--- conky-1.9.0/src/specials.c 2012-05-03 22:13:47.000000000 +0100 ++++ conky-1.9.0/src/specials.c 2013-02-27 21:16:15.856669451 +0000 +@@ -186,12 +186,12 @@ + g->scale = defscale; + if (sscanf(args, "%1023s %d,%d %x %x", buf, &g->height, &g->width, &g->first_colour, &g->last_colour) == 5) { + return strndup(buf, text_buffer_size); + } + buf[0] = '\0'; +- g->height = 25; +- g->width = 0; ++ g->height = default_graph_height; ++ g->width = default_graph_width; + if (sscanf(args, "%x %x %u", &g->first_colour, &g->last_colour, &g->scale) == 3) { + return NULL; + } + g->scale = defscale; + if (sscanf(args, "%x %x", &g->first_colour, &g->last_colour) == 2) { diff --git a/app-admin/conky/files/conky-1.9.0-diskio-dmmajor.patch b/app-admin/conky/files/conky-1.9.0-diskio-dmmajor.patch new file mode 100644 index 000000000000..db3516aa292b --- /dev/null +++ b/app-admin/conky/files/conky-1.9.0-diskio-dmmajor.patch @@ -0,0 +1,23 @@ +--- a/src/linux.c ++++ b/src/linux.c +@@ -80,6 +80,10 @@ + #define NBD_MAJOR 43 + #endif + ++#if !defined(DM_MAJOR) ++#define DM_MAJOR 253 ++#endif ++ + #ifdef HAVE_IWLIB + #include <iwlib.h> + #endif +@@ -2336,7 +2340,8 @@ int update_diskio(void) + * + * XXX: ignore devices which are part of a SW RAID (MD_MAJOR) */ + if (col_count == 5 && major != LVM_BLK_MAJOR && major != NBD_MAJOR +- && major != RAMDISK_MAJOR && major != LOOP_MAJOR) { ++ && major != RAMDISK_MAJOR && major != LOOP_MAJOR ++ && major != DM_MAJOR ) { + /* check needed for kernel >= 2.6.31, see sf #2942117 */ + if (is_disk(devbuf)) { + total_reads += reads; diff --git a/app-admin/conky/files/conky-1.9.0-lines-fix.patch b/app-admin/conky/files/conky-1.9.0-lines-fix.patch new file mode 100644 index 000000000000..de48ab95e48a --- /dev/null +++ b/app-admin/conky/files/conky-1.9.0-lines-fix.patch @@ -0,0 +1,36 @@ +diff -urN old/src/conky.c new/src/conky.c +--- old/src/conky.c 2012-05-03 23:22:21.000000000 +0200 ++++ new/src/conky.c 2012-08-15 00:06:59.256311301 +0200 +@@ -3065,12 +3065,26 @@ + og = g; + } + +- /* this is mugfugly, but it works */ +- XDrawLine(display, window.drawable, window.gc, +- cur_x + i + 1, +- specials[special_index].dotgraph ? og : by + h, +- cur_x + i + 1, +- g); ++ if (specials[special_index].dotgraph) { ++ if (og == g) { ++ XDrawPoint(display, window.drawable, ++ window.gc, cur_x + i + 1, g); ++ } else { ++ XDrawLine(display, window.drawable, window.gc, ++ cur_x + i + 1, ++ og, ++ cur_x + i + 1, ++ g); ++ } ++ } else { ++ /* this is mugfugly, but it works */ ++ XDrawLine(display, window.drawable, window.gc, ++ cur_x + i + 1, ++ by + h, ++ cur_x + i + 1, ++ g); ++ } ++ + ++j; + } + if (tmpcolour) free(tmpcolour); diff --git a/app-admin/conky/files/conky-1.9.0-ncurses.patch b/app-admin/conky/files/conky-1.9.0-ncurses.patch new file mode 100644 index 000000000000..91043ed42050 --- /dev/null +++ b/app-admin/conky/files/conky-1.9.0-ncurses.patch @@ -0,0 +1,31 @@ +From fd9462da5ed12369fc6a72e42ebc45c6707403fb Mon Sep 17 00:00:00 2001 +From: Pavel Labath <pavelo@centrum.sk> +Date: Fri, 13 Jul 2012 13:41:09 +0200 +Subject: [PATCH] Fix "conky failes to build with --disable-ncurses" (sf.net #3541329) + +--- + src/conky.c | 4 ++-- + 1 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/conky.c b/src/conky.c +index c5b4bed..17fe1a7 100644 +--- a/src/conky.c ++++ b/src/conky.c +@@ -885,12 +885,12 @@ void generate_text_internal(char *p, int p_max_size, + OBJ(cpu) { + if (cur->cpu_usage) { + if (obj->data.i > info.cpu_count) { +- static bool warned = false; ++ static int warned = 0; + if(!warned) { + NORM_ERR("obj->data.i %i info.cpu_count %i", + obj->data.i, info.cpu_count); + NORM_ERR("attempting to use more CPUs than you have!"); +- warned = true; ++ warned = 1; + } + } else { + percent_print(p, p_max_size, +-- +1.7.0.4 + diff --git a/app-admin/conky/files/conky-1.9.0-tinfo.patch b/app-admin/conky/files/conky-1.9.0-tinfo.patch new file mode 100644 index 000000000000..0018a726f3ff --- /dev/null +++ b/app-admin/conky/files/conky-1.9.0-tinfo.patch @@ -0,0 +1,22 @@ +--- a/configure.ac.in ++++ b/configure.ac.in +@@ -134,7 +134,7 @@ + + AM_CONDITIONAL(BUILD_NCURSES, test x$want_ncurses = xyes) + if test x$want_ncurses = xyes; then +- conky_LIBS="$conky_LIBS -lncurses" ++ PKG_CHECK_MODULES(ncurses,ncurses,conky_LIBS="$conky_LIBS $ncurses_LIBS",AC_MSG_ERROR([ncurses not found])) + AC_DEFINE(NCURSES, 1, [Define for ncurses support]) + AC_CHECK_HEADERS([ncurses.h], [], AC_MSG_ERROR([required header(s) not found])) + fi +--- a/configure.ac ++++ b/configure.ac +@@ -134,7 +134,7 @@ + + AM_CONDITIONAL(BUILD_NCURSES, test x$want_ncurses = xyes) + if test x$want_ncurses = xyes; then +- conky_LIBS="$conky_LIBS -lncurses" ++ PKG_CHECK_MODULES(ncurses,ncurses,conky_LIBS="$conky_LIBS $ncurses_LIBS",AC_MSG_ERROR([ncurses not found])) + AC_DEFINE(NCURSES, 1, [Define for ncurses support]) + AC_CHECK_HEADERS([ncurses.h], [], AC_MSG_ERROR([required header(s) not found])) + fi diff --git a/app-admin/conky/files/conky-1.9.0-update-when-message-count-decreases.patch b/app-admin/conky/files/conky-1.9.0-update-when-message-count-decreases.patch new file mode 100644 index 000000000000..dd422c584e35 --- /dev/null +++ b/app-admin/conky/files/conky-1.9.0-update-when-message-count-decreases.patch @@ -0,0 +1,75 @@ +diff --git a/src/mail.c b/src/mail.c +index 7f60ba3..882b7c8 100644 +--- a/src/mail.c ++++ b/src/mail.c +@@ -630,8 +630,15 @@ int imap_check_status(char *recvbuf, struct mail_s *mail) + + void imap_unseen_command(struct mail_s *mail, unsigned long old_unseen, unsigned long old_messages) + { +- if (strlen(mail->command) > 1 && (mail->unseen > old_unseen +- || (mail->messages > old_messages && mail->unseen > 0))) { ++ /* ++ * Georg Hopp (2012-12-23): ++ * Well, i will read mails from time to time and i want the unseen ++ * count to be reduced when they are read...so, this seems wrong. ++ * Try a better one.... :) ++ */ ++ if (strlen(mail->command) > 1 ++ && (mail->unseen != old_unseen ++ || mail->messages != old_messages)) { + // new mail goodie + if (system(mail->command) == -1) { + perror("system()"); +@@ -813,7 +820,7 @@ static void *imap_thread(void *arg) + if (strlen(recvbuf) > 2) { + unsigned long messages, recent = 0; + char *buf = recvbuf; +- char force_check = 0; ++ char force_check = 1; + buf = strstr(buf, "EXISTS"); + while (buf && strlen(buf) > 1 && strstr(buf + 1, "EXISTS")) { + buf = strstr(buf + 1, "EXISTS"); +@@ -825,9 +832,7 @@ static void *imap_thread(void *arg) + } + if (sscanf(buf, "* %lu EXISTS\r\n", &messages) == 1) { + timed_thread_lock(mail->p_timed_thread); +- if (mail->messages != messages) { +- force_check = 1; +- } ++ force_check = 1; + timed_thread_unlock(mail->p_timed_thread); + } + } +@@ -850,7 +855,10 @@ static void *imap_thread(void *arg) + * something other than 0, or we had a timeout + */ + buf = recvbuf; +- if (recent > 0 || (buf && strstr(buf, " FETCH ")) || fetchtimeout.tv_sec == 0 || force_check) { ++ if (recent > 0 ++ || (buf && strstr(buf, " FETCH ")) ++ || (buf && strstr(buf, " EXPUNGE ")) ++ || fetchtimeout.tv_sec == 0 || force_check) { + // re-check messages and unseen + if (imap_command(sockfd, "DONE\r\n", recvbuf, "a5 OK")) { + fail++; +@@ -868,6 +876,9 @@ static void *imap_thread(void *arg) + fail++; + break; + } ++ imap_unseen_command(mail, old_unseen, old_messages); ++ old_unseen = mail->unseen; ++ old_messages = mail->messages; + strncpy(sendbuf, "a5 IDLE\r\n", MAXDATASIZE); + if (imap_command(sockfd, sendbuf, recvbuf, "+ idling")) { + fail++; +@@ -886,10 +897,7 @@ static void *imap_thread(void *arg) + fail++; + break; + } +- imap_unseen_command(mail, old_unseen, old_messages); + fail = 0; +- old_unseen = mail->unseen; +- old_messages = mail->messages; + } + if (fail) break; + } else { diff --git a/app-admin/conky/metadata.xml b/app-admin/conky/metadata.xml new file mode 100644 index 000000000000..81d6ebe98f1b --- /dev/null +++ b/app-admin/conky/metadata.xml @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>billie@gentoo.org</email> + <name>Daniel Pielmeier</name> + </maintainer> + <upstream> + <maintainer> + <email>brenden@rty.ca</email> + <name>Brenden Matthews</name> + <description>Upstream author</description> + </maintainer> + <remote-id type="sourceforge">conky</remote-id> + </upstream> + <longdescription>Conky is a system monitor that sits in the corner of your desktop. It is a fork of Torsmo that is actually maintained.</longdescription> + <use> + <flag name="apcupsd">enable support for <pkg>sys-power/apcupsd</pkg></flag> + <flag name="audacious">enable monitoring of music played by <pkg>media-sound/audacious</pkg></flag> + <flag name="eve">enable support for the eve-online skill monitor</flag> + <flag name="iostats">enable support for per-task I/O statistics</flag> + <flag name="lua">enable if you want Lua scripting support</flag> + <flag name="lua-cairo">enable if you want Lua Cairo bindings for Conky (also enables lua support)</flag> + <flag name="lua-imlib">enable if you want Lua Imlib2 bindings for Conky (also enables lua and imlib support)</flag> + <flag name="math">enable support for glibc's libm math library</flag> + <flag name="moc">enable monitoring of music played by <pkg>media-sound/moc</pkg></flag> + <flag name="mpd">enable monitoring of music controlled by <pkg>media-sound/mpd</pkg></flag> + <flag name="nano-syntax">enable syntax highlighting for <pkg>app-editors/nano</pkg></flag> + <flag name="nvidia">enable reading of nvidia card temperature sensors via <pkg>media-video/nvidia-settings</pkg></flag> + <flag name="portmon">enable support for tcp (ip4) port monitoring</flag> + <flag name="thinkpad">enable support for IBM/Lenovo notebooks</flag> + <flag name="weather-metar">enable support for metar weather service</flag> + <flag name="weather-xoap">enable support for metar and xoap weather service</flag> + <flag name="xmms2">enable monitoring of music played by <pkg>media-sound/xmms2</pkg></flag> + </use> +</pkgmetadata> diff --git a/app-admin/conkyforecast/Manifest b/app-admin/conkyforecast/Manifest new file mode 100644 index 000000000000..4688cca395aa --- /dev/null +++ b/app-admin/conkyforecast/Manifest @@ -0,0 +1 @@ +DIST conkyforecast_2.24.tar.gz 11347231 SHA256 251dba60bc209a2f4181de856abb1fe553e8b983d1af40998235061e8679a54d SHA512 dcff08915c00915f6be4cd25824e3d8de978ed15ffb6776f002d585d95856f5e0827632371dd4d37016e07d58542e2bc95a7a859ebdc8ab9d1200ac04d4364e0 WHIRLPOOL d7a6967e09a52eeac98ab13f64f3ab86a29f1964b7b79951c78b08f7e42c67d6d41e5c339bd1d7dedad687c523bd7fd059d529d076894d19af2a1c2a8180e718 diff --git a/app-admin/conkyforecast/conkyforecast-2.24-r1.ebuild b/app-admin/conkyforecast/conkyforecast-2.24-r1.ebuild new file mode 100644 index 000000000000..ad5f02ca7983 --- /dev/null +++ b/app-admin/conkyforecast/conkyforecast-2.24-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +# upstream broke setup.py to install into /usr/share... +DISTUTILS_SINGLE_IMPL=1 +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 + +DESCRIPTION="Conky weather forecast script with support for language files" +HOMEPAGE="https://launchpad.net/~conky-companions" +SRC_URI="https://launchpad.net/~conky-companions/+archive/ppa/+files/${PN}_${PV}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="app-admin/conky" + +S=${WORKDIR}/src + +python_prepare_all() { + sed -i -e "s:pythoncmd=.*$:pythoncmd=${EPYTHON}:" conkyForecast* || die + + distutils-r1_python_prepare_all +} + +python_install() { + distutils-r1_python_install + + python_optimize "${ED%/}"/usr/share/${PN} +} + +pkg_postinst() { + elog "You have to define a partner id and registration code for " + elog "the weather.com xoap. You need to copy the template from" + elog "/usr/share/conkyforecast/conkyForecast.config into you account" + elog "as ~/.conkyForecast.config and edit the respective fields." + elog + elog "More details can be found in the README file." +} diff --git a/app-admin/conkyforecast/metadata.xml b/app-admin/conkyforecast/metadata.xml new file mode 100644 index 000000000000..7ad6f3ff7899 --- /dev/null +++ b/app-admin/conkyforecast/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> + <email>xmw@gentoo.org</email> + <name>Michael Weber</name> + </maintainer> + <upstream> + <remote-id type="launchpad">~conky-companions</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/conserver/Manifest b/app-admin/conserver/Manifest new file mode 100644 index 000000000000..4fee7ef33d12 --- /dev/null +++ b/app-admin/conserver/Manifest @@ -0,0 +1 @@ +DIST conserver-8.1.18.tar.gz 323247 SHA256 3c73cebf732419c41c7c860032e41d83c1f152fe3115a30dc9851820b7864e14 SHA512 a8029aef5fd84f93eb3ae56ba7f751d79a6065c012bfd805e050f8c9edf09fd660c272d3f3ce0a47cfb17678574babbecad63f8bfd50ad4fdccdbabc2249435f WHIRLPOOL e12e54f2af25ef696ecf61818da0dd8cd09c23ca03e0fbb8445ee8eca5dc4ec2dbb25e88a68ac4a51c49b89838bf875ac65ac0e59d49337f36aa3929aa02dc81 diff --git a/app-admin/conserver/conserver-8.1.18-r1.ebuild b/app-admin/conserver/conserver-8.1.18-r1.ebuild new file mode 100644 index 000000000000..5c918854667a --- /dev/null +++ b/app-admin/conserver/conserver-8.1.18-r1.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit ssl-cert eutils pam autotools + +DESCRIPTION="Serial Console Manager" +HOMEPAGE="http://www.conserver.com/" +SRC_URI="http://www.conserver.com/${P}.tar.gz" + +LICENSE="BSD GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="kerberos pam ssl tcpd debug" + +DEPEND="ssl? ( >=dev-libs/openssl-0.9.6g ) + pam? ( virtual/pam ) + tcpd? ( sys-apps/tcp-wrappers ) + debug? ( dev-libs/dmalloc ) + kerberos? ( + virtual/krb5 + net-libs/libgssglue + )" +RDEPEND="${DEPEND} + pam? ( >=sys-auth/pambase-20080219.1 )" + +src_prepare() { + # Apply patch to prevent package from stripping binaries + epatch "${FILESDIR}"/${PN}-prestrip.patch + + # Apply patch to use custom dmalloc macro + epatch "${FILESDIR}"/${P}-dmalloc.patch + + AT_M4DIR="m4" eautoreconf +} + +src_configure() { + econf \ + $(use_with ssl openssl) \ + $(use_with pam) \ + $(use_with tcpd libwrap) \ + $(use_with debug dmalloc) \ + $(use_with kerberos gssapi) \ + --with-logfile=/var/log/conserver.log \ + --with-pidfile=/var/run/conserver.pid \ + --with-cffile=conserver/conserver.cf \ + --with-pwdfile=conserver/conserver.passwd \ + --with-master=localhost \ + --with-port=7782 +} + +src_install() { + emake DESTDIR="${D}" exampledir="/usr/share/doc/${PF}/examples" install + + ## create data directory + dodir /var/consoles + fowners daemon:daemon /var/consoles + fperms 700 /var/consoles + + ## add startup and sample config + newinitd "${FILESDIR}"/conserver.initd-r1 conserver + newconfd "${FILESDIR}"/conserver.confd conserver + + dodir /etc/conserver + fperms 700 /etc/conserver + insinto /etc/conserver + newins "${S}"/conserver.cf/conserver.cf conserver.cf.sample + newins "${S}"/conserver.cf/conserver.passwd conserver.passwd.sample + + ## add docs + dohtml conserver.html + dodoc CHANGES FAQ PROTOCOL README TODO + dodoc conserver/Sun-serial contrib/maketestcerts + newdoc conserver.cf/conserver.cf conserver.cf.sample + + # Add pam config + newpamd "${FILESDIR}"/conserver.pam-pambase conserver +} + +pkg_postinst() { + # Add certs if SSL use flag is enabled + if use ssl && [ ! -f "${ROOT}"/etc/ssl/conserver/conserver.key ]; then + install_cert /etc/ssl/conserver/conserver + fi +} diff --git a/app-admin/conserver/conserver-8.1.18.ebuild b/app-admin/conserver/conserver-8.1.18.ebuild new file mode 100644 index 000000000000..4d4b1e78842d --- /dev/null +++ b/app-admin/conserver/conserver-8.1.18.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit ssl-cert eutils pam autotools + +DESCRIPTION="Serial Console Manager" +HOMEPAGE="http://www.conserver.com/" +SRC_URI="http://www.conserver.com/${P}.tar.gz" + +LICENSE="BSD GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86" +IUSE="kerberos pam ssl tcpd debug" + +DEPEND="ssl? ( >=dev-libs/openssl-0.9.6g ) + pam? ( virtual/pam ) + tcpd? ( sys-apps/tcp-wrappers ) + debug? ( dev-libs/dmalloc ) + kerberos? ( + virtual/krb5 + net-libs/libgssglue + )" +RDEPEND="${DEPEND} + pam? ( >=sys-auth/pambase-20080219.1 )" + +src_prepare() { + # Apply patch to prevent package from stripping binaries + epatch "${FILESDIR}"/${PN}-prestrip.patch + + # Apply patch to use custom dmalloc macro + epatch "${FILESDIR}"/${P}-dmalloc.patch + + AT_M4DIR="m4" eautoreconf +} + +src_configure() { + econf \ + $(use_with ssl openssl) \ + $(use_with pam) \ + $(use_with tcpd libwrap) \ + $(use_with debug dmalloc) \ + $(use_with kerberos gssapi) \ + --with-logfile=/var/log/conserver.log \ + --with-pidfile=/var/run/conserver.pid \ + --with-cffile=conserver/conserver.cf \ + --with-pwdfile=conserver/conserver.passwd \ + --with-master=localhost \ + --with-port=7782 +} + +src_install() { + emake DESTDIR="${D}" exampledir="/usr/share/doc/${PF}/examples" install + + ## create data directory + dodir /var/consoles + fowners daemon:daemon /var/consoles + fperms 700 /var/consoles + + ## add startup and sample config + newinitd "${FILESDIR}"/conserver.initd conserver + newconfd "${FILESDIR}"/conserver.confd conserver + + dodir /etc/conserver + fperms 700 /etc/conserver + insinto /etc/conserver + newins "${S}"/conserver.cf/conserver.cf conserver.cf.sample + newins "${S}"/conserver.cf/conserver.passwd conserver.passwd.sample + + ## add docs + dohtml conserver.html + dodoc CHANGES FAQ PROTOCOL README TODO + dodoc conserver/Sun-serial contrib/maketestcerts + newdoc conserver.cf/conserver.cf conserver.cf.sample + + # Add pam config + newpamd "${FILESDIR}"/conserver.pam-pambase conserver +} + +pkg_postinst() { + # Add certs if SSL use flag is enabled + if use ssl && [ ! -f "${ROOT}"/etc/ssl/conserver/conserver.key ]; then + install_cert /etc/ssl/conserver/conserver + fi +} diff --git a/app-admin/conserver/files/conserver-8.1.18-dmalloc.patch b/app-admin/conserver/files/conserver-8.1.18-dmalloc.patch new file mode 100644 index 000000000000..ff82f74b261c --- /dev/null +++ b/app-admin/conserver/files/conserver-8.1.18-dmalloc.patch @@ -0,0 +1,100 @@ +--- configure.in 2011-08-19 01:11:06.000000000 -0400 ++++ configure.in 2011-08-19 02:06:50.000000000 -0400 +@@ -320,6 +320,8 @@ + AC_PROG_LN_S + AC_PROG_MAKE_SET + ++AM_WITH_DMALLOC([cons_with_dmalloc="YES"],[cons_with_dmalloc="NO"]) ++ + dnl ### Compiler characteristics. ################################## + AC_AIX + AC_C_CONST +@@ -578,51 +580,6 @@ + fi] + ) + +-cons_with_dmalloc="NO" +-AC_ARG_WITH(dmalloc, +- AS_HELP_STRING([--with-dmalloc@<:@=PATH@:>@], +- [Compile in dmalloc support]), +- [if test "$withval" != "no"; then +- if test "$withval" != "yes"; then +- DMALLOCCPPFLAGS="-I$withval/include" +- if test "$use_dash_r" != "yes"; then +- DMALLOCLDFLAGS="-L$withval/lib" +- else +- DMALLOCLDFLAGS="-L$withval/lib -R$withval/lib" +- fi +- else +- DMALLOCCPPFLAGS="" +- DMALLOCLDFLAGS="" +- fi +- +- oCPPFLAGS="$CPPFLAGS" +- oLDFLAGS="$LDFLAGS" +- oLIBS="$LIBS" +- have_dmalloc=no +- +- CPPFLAGS="$CPPFLAGS $DMALLOCCPPFLAGS" +- LDFLAGS="$LDFLAGS $DMALLOCLDFLAGS" +- +- AC_CHECK_HEADER([dmalloc.h], +- [LIBS="$LIBS -ldmalloc" +- AC_MSG_CHECKING(for dmalloc libraries -ldmalloc) +- AC_TRY_LINK([#include <dmalloc.h> +- ],[dmalloc_debug(0)], +- [AC_MSG_RESULT(yes) +- cons_with_dmalloc="YES" +- AC_DEFINE(HAVE_DMALLOC) +- have_dmalloc=yes], +- [AC_MSG_RESULT(no)])],) +- +- if test $have_dmalloc = no; then +- LIBS="$oLIBS" +- CPPFLAGS="$oCPPFLAGS" +- LDFLAGS="$oLDFLAGS" +- fi +- fi] +-) +- +- + dnl ### Check for needed functions. ################################ + + dnl dnl The following basically stollen from the less-358 distribution, but +--- /dev/null 2011-08-07 13:18:05.535976733 -0400 ++++ m4/dmalloc.m4 2011-08-19 03:49:03.755073497 -0400 +@@ -0,0 +1,34 @@ ++## ----------------------------------- ## -*- Autoconf -*- ++## Check if --with-dmalloc was given. ## ++## From Franc,ois Pinard ## ++## ----------------------------------- ## ++ ++# Copyright (C) 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2010, ++# 2011 Free Software Foundation, Inc. ++# ++# This file is free software; the Free Software Foundation ++# gives unlimited permission to copy and/or distribute it, ++# with or without modifications, as long as this notice is preserved. ++ ++# serial 7 ++ ++dnl AM_WITH_DMALLOC([ACTION-IF-FOUND],[ACTION-IF-NOT]) ++AC_DEFUN([AM_WITH_DMALLOC], ++[AC_MSG_CHECKING([if malloc debugging is wanted]) ++AC_ARG_WITH([dmalloc], ++[AS_HELP_STRING([--with-dmalloc], ++ [use dmalloc, as in http://www.dmalloc.com])], ++[if test "$withval" = yes; then ++ AC_MSG_RESULT([yes]) ++ AC_DEFINE([WITH_DMALLOC], [1], ++ [Define if using the dmalloc debugging malloc package]) ++ LIBS="$LIBS -ldmalloc" ++ LDFLAGS="$LDFLAGS -g" ++ [$1] ++else ++ AC_MSG_RESULT([no]) ++ [$2] ++fi], [AC_MSG_RESULT([no])]) ++]) ++ ++AU_DEFUN([fp_WITH_DMALLOC], [AM_WITH_DMALLOC]) diff --git a/app-admin/conserver/files/conserver-prestrip.patch b/app-admin/conserver/files/conserver-prestrip.patch new file mode 100644 index 000000000000..e67c49da1a66 --- /dev/null +++ b/app-admin/conserver/files/conserver-prestrip.patch @@ -0,0 +1,24 @@ +diff -Nuar conserver-8.1.14.orig/conserver/Makefile.in conserver-8.1.14/conserver/Makefile.in +--- conserver-8.1.14.orig/conserver/Makefile.in 2006-10-25 17:41:00.398082243 -0600 ++++ conserver-8.1.14/conserver/Makefile.in 2006-10-25 17:41:27.876759095 -0600 +@@ -13,7 +13,7 @@ + + ### Installation programs and flags + INSTALL = @INSTALL@ +-INSTALL_PROGRAM = @INSTALL_PROGRAM@ -s ++INSTALL_PROGRAM = @INSTALL_PROGRAM@ + LN_S = @LN_S@ + MKDIR = @MKDIR@ + +diff -Nuar conserver-8.1.14.orig/console/Makefile.in conserver-8.1.14/console/Makefile.in +--- conserver-8.1.14.orig/console/Makefile.in 2006-10-25 17:41:00.401081662 -0600 ++++ conserver-8.1.14/console/Makefile.in 2006-10-25 17:41:18.188635834 -0600 +@@ -9,7 +9,7 @@ + + ### Installation programs and flags + INSTALL = @INSTALL@ +-INSTALL_PROGRAM = @INSTALL_PROGRAM@ -s ++INSTALL_PROGRAM = @INSTALL_PROGRAM@ + LN_S = @LN_S@ + MKDIR = @MKDIR@ + diff --git a/app-admin/conserver/files/conserver.confd b/app-admin/conserver/files/conserver.confd new file mode 100644 index 000000000000..abbee0b338e2 --- /dev/null +++ b/app-admin/conserver/files/conserver.confd @@ -0,0 +1,7 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +## Config file for /etc/init.d/conserver + +CONSERVER_OPTS="-d" diff --git a/app-admin/conserver/files/conserver.initd b/app-admin/conserver/files/conserver.initd new file mode 100644 index 000000000000..358a17ef744a --- /dev/null +++ b/app-admin/conserver/files/conserver.initd @@ -0,0 +1,38 @@ +#!/sbin/runscript +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + need clock +} + +checkconfig() { + if [ ! -e /etc/conserver/conserver.cf ] ; then + eerror "You need to create /etc/conserver/conserver.cf first." + eerror "A sample is placed there to be renamed and ajusted." + eerror "Read the man page or see /usr/share/doc/conserver-<version>/." + return 1 + fi + + if [ ! -e /etc/conserver/conserver.passwd ] ; then + eerror "You need to create /etc/conserver/conserver.passwd first." + eerror "A sample is placed there to be renamed and ajusted." + eerror "Read the man page or see /usr/share/doc/conserver-<version>/." + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting conserver" + start-stop-daemon --start --quiet --exec \ + /usr/sbin/conserver -- ${CONSERVER_OPTS} 1>/dev/null + eend $? "Failed to start conserver" +} + +stop() { + ebegin "Stopping conserver" + start-stop-daemon --stop --quiet --pidfile /var/run/conserver.pid + eend $? "Failed to stop conserver" +} diff --git a/app-admin/conserver/files/conserver.initd-r1 b/app-admin/conserver/files/conserver.initd-r1 new file mode 100644 index 000000000000..7f4cf32b433c --- /dev/null +++ b/app-admin/conserver/files/conserver.initd-r1 @@ -0,0 +1,38 @@ +#!/sbin/runscript +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + need clock +} + +checkconfig() { + if [ ! -e /etc/conserver/conserver.cf ] ; then + eerror "You need to create /etc/conserver/conserver.cf first." + eerror "A sample is placed there to be renamed and ajusted." + eerror "Read the man page or see /usr/share/doc/conserver-<version>/." + return 1 + fi + + if [ ! -e /etc/conserver/conserver.passwd ] ; then + eerror "You need to create /etc/conserver/conserver.passwd first." + eerror "A sample is placed there to be renamed and ajusted." + eerror "Read the man page or see /usr/share/doc/conserver-<version>/." + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting conserver" + start-stop-daemon --start --quiet --pidfile /var/run/conserver.pid --exec \ + /usr/sbin/conserver -- ${CONSERVER_OPTS} 1>/dev/null + eend $? "Failed to start conserver" +} + +stop() { + ebegin "Stopping conserver" + start-stop-daemon --stop --quiet --pidfile /var/run/conserver.pid + eend $? "Failed to stop conserver" +} diff --git a/app-admin/conserver/files/conserver.pam-pambase b/app-admin/conserver/files/conserver.pam-pambase new file mode 100644 index 000000000000..30025fe1403e --- /dev/null +++ b/app-admin/conserver/files/conserver.pam-pambase @@ -0,0 +1,6 @@ +auth required pam_securetty.so +auth include system-remote-login + +account include system-remote-login +password include system-remote-login +session include system-remote-login diff --git a/app-admin/conserver/metadata.xml b/app-admin/conserver/metadata.xml new file mode 100644 index 000000000000..c3a63c8f01d2 --- /dev/null +++ b/app-admin/conserver/metadata.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>proxy-maintainers</herd> + <maintainer> + <email>dan@danweeks.net</email> + <name>Dan Weeks</name> + <description>Maintainer. Assign bugs to him</description> + </maintainer> + <longdescription> + Conserver is an application that allows multiple users to watch a serial + console at the same time. It can log the data, allows users to take + write-access of a console (one at a time), and has a variety of bells + and whistles to accentuate that basic functionality. The idea is that + conserver will log all your serial traffic so you can go back and review + why something crashed, look at changes (if done on the console), or tie + the console logs into a monitoring system (just watch the logfiles it + creates). With multi-user capabilities you can work on equipment with + others, mentor, train, etc. It also does all that client-server stuff so + that, assuming you have a network connection, you can interact with any + of the equipment from home or wherever. + </longdescription> +</pkgmetadata> diff --git a/app-admin/consolehm/Manifest b/app-admin/consolehm/Manifest new file mode 100644 index 000000000000..79b26d427325 --- /dev/null +++ b/app-admin/consolehm/Manifest @@ -0,0 +1 @@ +DIST consolehm-1.31.tar.gz 21615 SHA256 121bdc1f50f06e7a751bf1aee9d3d7d36415b234a524af6b6f626dcf5b9d5ef6 SHA512 595a5808bf85b878254e10fbe9a7beccffb4e5a35e03fe9fbea710963733fb4d6afe6fe6b70b30fa2b4fd565ed4ac1ffcca624b6717cc3b6d900960e7e6001f8 WHIRLPOOL 81d90880049acb338d4e94b00afcf88f7b897b60377dcb3a1844785d456483cdf1e079692aca387168246b5e945936feaa54759f3df4aaf5d67bedc15ddac577 diff --git a/app-admin/consolehm/consolehm-1.31.ebuild b/app-admin/consolehm/consolehm-1.31.ebuild new file mode 100644 index 000000000000..ade0fa3a3011 --- /dev/null +++ b/app-admin/consolehm/consolehm-1.31.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils + +DESCRIPTION="Console based hardware monitor for FreeBSD" +HOMEPAGE="ftp://ftp.freebsd.org/pub/FreeBSD/ports/local-distfiles/fenner/" +SRC_URI="ftp://ftp.freebsd.org/pub/FreeBSD/ports/local-distfiles/fenner/${P}.tar.gz" +LICENSE="BSD-2" +SLOT="0" + +KEYWORDS="~x86-fbsd" + +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${PN}" + +src_unpack() { + unpack ${A} + epatch "${FILESDIR}"/${PN}-gcc4.patch || die "patch failed" + export CHMS="${S}/consolehm" + # The only 'SMBus' smb.h i've found is in a different place: + cd "${S}/consolehm" + sed -i.orig -e 's:machine/smb.h:dev/smbus/smb.h:g' \ + configure.in \ + configure \ + chm.h || die "sed failed." +} + +src_compile() { + cd "${S}/consolehm" + econf || die "econf failed" + MAKE=make emake || die "emake failed" +} + +src_install() { + dobin "${S}/consolehm/chm" + doman "${S}/consolehm/chm.8" + dodoc "${S}"/CHANGELOG + dodoc "${S}"/README + dodoc "${S}"/TODO +} diff --git a/app-admin/consolehm/files/consolehm-gcc4.patch b/app-admin/consolehm/files/consolehm-gcc4.patch new file mode 100644 index 000000000000..85f677a29cbf --- /dev/null +++ b/app-admin/consolehm/files/consolehm-gcc4.patch @@ -0,0 +1,10 @@ +--- consolehm/consolehm/chm.c.orig 2000-12-23 03:51:45 -0300 ++++ consolehm/consolehm/chm.c 2007-01-12 11:18:27 -0300 +@@ -165,6 +165,7 @@ + printf("Delay: %d microseconds. \n\n",delay); + break; + default: ++ ;; + } + + file_handle = OpenIO(); diff --git a/app-admin/consolehm/metadata.xml b/app-admin/consolehm/metadata.xml new file mode 100644 index 000000000000..ecedda4aa2cc --- /dev/null +++ b/app-admin/consolehm/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>bsd</herd> +</pkgmetadata> diff --git a/app-admin/consul-template/Manifest b/app-admin/consul-template/Manifest new file mode 100644 index 000000000000..0cd0f9c1d7a0 --- /dev/null +++ b/app-admin/consul-template/Manifest @@ -0,0 +1,14 @@ +DIST consul-template-0.9.0.tar.gz 69085 SHA256 5277cc43b61d531630854d707cd7a51bdd84328d8c30bc330dd2e2aa8898ede8 SHA512 39da6029d818f3ee0b9aba332f0a645c9e381b1115549dcc6945245c4dee53cd3d503e3dc3da4c4394192989798b242994b53e3256755ffe02c4b3c9296139d3 WHIRLPOOL 1ba0d1c2a2a9c8617338901f85916e25460155979dda9604752bc62c289e40d904ad27f2c31ca2491936289519d4f09fe72bbe4c176035880f01c789fdf74db2 +DIST copystructure-6fc66267e9da7d155a9d3bd489e00dad02666dc6.tar.gz 4028 SHA256 4e7271e88e101ac324f799c421b1c8c1477d1f54048d6b6b1ff3930498870272 SHA512 3c804e126f676cb7a6c5af775b7fdf6a3b591b42315707ebb83a66a96f583eac414e01402bc489d9b218b64db7780f57bd5a4bd922aff59dca068b869f825de5 WHIRLPOOL 3be054304612292adef0361bbd2d94d51c4186d4a66bf949d326345da0f7f5c6f5558c0db62fb1ed1144899155f5c63ceeb9243c267b82605b024cf6898f31ba +DIST errwrap-7554cd9344cec97297fa6649b055a8c98c2a1e55.tar.gz 8320 SHA256 e77d6aa78ef6342b21358d689edcd043778c5623af5a9b2690ed8e3fa4ea7db0 SHA512 da45b1696253bebe012f3d0e624a63dd11ad1a613d81cc302f2ea6f096f29a8d81015b9c00363bd2590c4cacc59de52a27e84435a7b4ad6512485cdd87df11c0 WHIRLPOOL 5c6013d852711e001a0eca6a3ad11f64e006be527cfc0b46db21049af97506730b48cfe1b2fac10bcfc66f61dce69023f20b06c83558e80ce337d75a127aa90d +DIST go-metrics-a54701ebec11868993bc198c3f315353e9de2ed6.tar.gz 11268 SHA256 2f4206d5d50eaab383cdc4f5c57179e285b93649c028a69dd9e2a4a45b69afe3 SHA512 e3da3f7b98edd32da5c3381afc3e92021b92416d7ea9de0423a05c06bc9ff808e28d29ca9f689c0029809a4b1643819954039516d6ab5890bb5512f5fe99fd6d WHIRLPOOL 815f83ae08bb6a37ee1774a718a8c3b4087ee9a95f190b8a77453f0d1ba1ca88a331e8be12b2f63d0c1fdb9472f2ff35786b94eaf1f61f5cb33fe1e6d9e4e460 +DIST go-msgpack-71c2886f5a673a35f909803f38ece5810165097b.tar.gz 49485 SHA256 c32b90e67762a375981b38154cae65222bb1aaa7722727d0225d5f8de773e4c8 SHA512 e4141e664c3237f7ab4c283b110d04e933bfb36a9d57af374ab42fed00a4ad6d8399e3399b206eebe76c5e142746412b2ada6c20b1ec09088f3bb7d82a7b01a9 WHIRLPOOL 1434e72897de4063515a0d3319e96b066406c110e3e36f710970886ba6ec9411f71908d9696a4528ee0fcb88bea54ab9c064faa230761ce38b82bb5506a2c073 +DIST go-multierror-fcdddc395df1ddf4247c69bd436e84cfa0733f7e.tar.gz 8058 SHA256 af90f9be029c091eb011ff25d270772fdb51edf3c6396cf99f224c4e7ad724c3 SHA512 f5cb12407f9bc986867a274c623037edab04f8e2b664c7d4db3bb7e32f970dd073a3d233d18549a5f01b5e88abff0eb0c1fcf79b6696a531c208e6fe8137080e WHIRLPOOL c997792a5c1b3029b32d0fad3a55a281b5ced2bef306367a1fd49df75cab831b93a3752e76f8a18ce5d08e155f66b3826aa5d9878fb9655821cef7a69b71de31 +DIST go-radix-0bab926c3433cfd6490c6d3c504a7b471362390c.tar.gz 5446 SHA256 f4e628adceee06d7717dce0bf566d5ebd8c009599807f2436b3cda259011b331 SHA512 350904076752e2fda17e9c2891a50b037d2ca165924880d6d5e466b8ed76685d79ff00bbbfbe9a665668e0ebde23c87129d3c1c4bf27ffe0c034df160db9d08f WHIRLPOOL 8571b9e818904a56ea16c35883725013d2009dc294acfdf4f28920a03baff36ffcd3d4d6d8be0ecfc78eefbfeef57e4b2ca224f2ce37d665caae724389346f88 +DIST go-syslog-42a2b573b664dbf281bd48c3cc12c086b17a39ba.tar.gz 4397 SHA256 378f5249729661db9d0c65030fbf636f6ec1d60ee926e67abf8c6dd7921d3907 SHA512 42257d0599936bb215f4a9f9189518418f02bc43e4d7417823ea460bfc45c6fd1f9b0bf5a35dd73881b57cd9e892c702b813a68fe6e417e82dd31c6635c1b24e WHIRLPOOL 26cf1464bf0899ae9bad0067481f57a121433c5fe7c93fef92523a157d7906b8c1c4216c2a4fe738222e4afaa85fc0a7b7b29149254125a3e8b2e7064add6cb1 +DIST go-zookeeper-d0e0d8e11f318e000a8cc434616d69e329edc374.tar.gz 24950 SHA256 773f4428d6eb2bcc53726fc2af7f495d30fd6d962ed182b7ec2edc8f8ad55ef3 SHA512 c1ac076b2abf9106c185c29158fdf8b3a74ea41458f336b5ebc2f5f13168ec6f06be14cbc3df61c1307a0fa4381d2f4f7cd8b569411152ae748c7fe12896bd24 WHIRLPOOL 94bb9b02d4c7e8eafa0fce1d6d9b79a6cf8007d9774a42267cb92673a89d9c30e60a7eb4d2cd464fbdc5e2e644649d3a980a3c92d6badfbf092f99a99306729e +DIST golang-lru-995efda3e073b6946b175ed93901d729ad47466a.tar.gz 7872 SHA256 cac6e889020e8b31e46d50b98e0af9acbb44bf352ad0ca9d30db79b6235849e2 SHA512 29eee70cbdc9c712d1cece1f911f3a74ebfd44318b91dcd1932f0bff031286f0a80db93772dd04be350c0cca3cc77c0676659ef0f85229f31a1140e23c1fc3f5 WHIRLPOOL c4711d30caf5c2d880aeec7330bc06011dc4e741e305f6dcac8d983734b3706cb5967b06755f7684370ca61a91f356a97c9866ffda0e275e26bb11d3a74d0145 +DIST hcl-513e04c400ee2e81e97f5e011c08fb42c6f69b84.tar.gz 28692 SHA256 109ec067ff8ff7f30538e0d2ba1384c1fe25694c99d56972003b1c669d19d0b2 SHA512 90f568373d20cccbb56ada29257bd2ea808bbacb668fd1b82e71abf8f5e2592b4a58dc5d3f1174a2b38c660316cd0227eb333e747aae7a846e94168ebe9d2297 WHIRLPOOL cf5685f25d3c3b69d330e30ad089e2cbc9c6636b0f2ac4933638d6bcad06aa5a50f92d5228a1f1ddabd5e0f8187bc5b16f38f4a3bd86bbbf161a5409d5102ec0 +DIST logutils-367a65d59043b4f846d179341d138f01f988c186.tar.gz 7704 SHA256 9b2173d9277574adbc45400101cb0b65534a5cd3defe62eeb3bff652eeb3e34c SHA512 9a4444fbae3bd1c0b2391981edf2f8155ebdd90a14a367f718bc7bcdced68b37b563ae38141fc3cb35409ff70820bd32b5a44cb218630418bce37f78181ef109 WHIRLPOOL 4973a7ef035807c9ef1135cface87cce4707910e6c33cece87dc8200df5e3d3c351d129ce20214e2cbf6bf58a7b040e9d1c5e12f5414cf37e45890a6a8ec439c +DIST mapstructure-442e588f213303bec7936deba67901f8fc8f18b1.tar.gz 12220 SHA256 b4fa5d3b888734f849c5d6784fc1c5749e4ece168fda65c604676fca39c085d2 SHA512 de79f2579a086cccc047b280ae7e2b5dc5f8a95d504ead9d7f0cbaf01e70d37cb4eea8e7ab9aec446a7c2f1771152add3e2e488c18963d63ca3dac43ed2a33b7 WHIRLPOOL ecf8bd2bc9e50bb9e5ad3b6ebb04f5fdc10cf0e515f25d1381bbd1591c074887706b7c25f03a749ff212555fc537534056dab58eaece9357de9045ba2edd9a51 +DIST reflectwalk-242be0c275dedfba00a616563e6db75ab8f279ec.tar.gz 4290 SHA256 70ccfe92748dcc9e23460f6cedaeb4dd3f4807cc76241298b954beb71448cce6 SHA512 50ceea50f26307903138d5a0e0c395863ae662993a58d2053fce79ca49b0a17f9ba863adcdf4053cd9eb6592c91de02671be486ec4693449439b2b634be55fc1 WHIRLPOOL 4f88fd9ea461838acbf1344be39e9ecc1494ac8ae060917e27f16a6e5b19833b41be23dd8c0638c22933991b802f2f6dfc72e0bb772828bb43b020a08f22f1b1 diff --git a/app-admin/consul-template/consul-template-0.9.0-r1.ebuild b/app-admin/consul-template/consul-template-0.9.0-r1.ebuild new file mode 100644 index 000000000000..fd646ee7809d --- /dev/null +++ b/app-admin/consul-template/consul-template-0.9.0-r1.ebuild @@ -0,0 +1,103 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit systemd user + +KEYWORDS="~amd64" +DESCRIPTION="Generic template rendering and notifications with Consul" +GO_PN="github.com/hashicorp/${PN}" +HOMEPAGE="http://${GO_PN}" +LICENSE="MPL-2.0" +SLOT="0" +IUSE="test" + +DEPEND=">=dev-lang/go-1.4:= + test? ( dev-go/go-tools ) + app-admin/consul + app-admin/vault" +RDEPEND="" + +SRC_URI="https://${GO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz +https://github.com/hashicorp/go-multierror/archive/fcdddc395df1ddf4247c69bd436e84cfa0733f7e.tar.gz -> go-multierror-fcdddc395df1ddf4247c69bd436e84cfa0733f7e.tar.gz +https://github.com/armon/go-radix/archive/0bab926c3433cfd6490c6d3c504a7b471362390c.tar.gz -> go-radix-0bab926c3433cfd6490c6d3c504a7b471362390c.tar.gz +https://github.com/hashicorp/errwrap/archive/7554cd9344cec97297fa6649b055a8c98c2a1e55.tar.gz -> errwrap-7554cd9344cec97297fa6649b055a8c98c2a1e55.tar.gz +https://github.com/armon/go-metrics/archive/a54701ebec11868993bc198c3f315353e9de2ed6.tar.gz -> go-metrics-a54701ebec11868993bc198c3f315353e9de2ed6.tar.gz +https://github.com/hashicorp/go-msgpack/archive/71c2886f5a673a35f909803f38ece5810165097b.tar.gz -> go-msgpack-71c2886f5a673a35f909803f38ece5810165097b.tar.gz +https://github.com/hashicorp/go-syslog/archive/42a2b573b664dbf281bd48c3cc12c086b17a39ba.tar.gz -> go-syslog-42a2b573b664dbf281bd48c3cc12c086b17a39ba.tar.gz +https://github.com/hashicorp/golang-lru/archive/995efda3e073b6946b175ed93901d729ad47466a.tar.gz -> golang-lru-995efda3e073b6946b175ed93901d729ad47466a.tar.gz +https://github.com/hashicorp/hcl/archive/513e04c400ee2e81e97f5e011c08fb42c6f69b84.tar.gz -> hcl-513e04c400ee2e81e97f5e011c08fb42c6f69b84.tar.gz +https://github.com/hashicorp/logutils/archive/367a65d59043b4f846d179341d138f01f988c186.tar.gz -> logutils-367a65d59043b4f846d179341d138f01f988c186.tar.gz +https://github.com/mitchellh/copystructure/archive/6fc66267e9da7d155a9d3bd489e00dad02666dc6.tar.gz -> copystructure-6fc66267e9da7d155a9d3bd489e00dad02666dc6.tar.gz +https://github.com/mitchellh/mapstructure/archive/442e588f213303bec7936deba67901f8fc8f18b1.tar.gz -> mapstructure-442e588f213303bec7936deba67901f8fc8f18b1.tar.gz +https://github.com/mitchellh/reflectwalk/archive/242be0c275dedfba00a616563e6db75ab8f279ec.tar.gz -> reflectwalk-242be0c275dedfba00a616563e6db75ab8f279ec.tar.gz +https://github.com/samuel/go-zookeeper/archive/d0e0d8e11f318e000a8cc434616d69e329edc374.tar.gz -> go-zookeeper-d0e0d8e11f318e000a8cc434616d69e329edc374.tar.gz" +STRIP_MASK="*.a" +S="${WORKDIR}/src/${GO_PN}" + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 -1 -1 ${PN} +} + +get_archive_go_package() { + local archive=${1} uri x + for x in ${SRC_URI}; do + if [[ ${x} == http* ]]; then + uri=${x} + elif [[ ${x} == ${archive} ]]; then + break + fi + done + uri=${uri#https://} + echo ${uri%/archive/*} +} + +unpack_go_packages() { + local go_package x + # Unpack packages to appropriate locations for GOPATH + for x in ${A}; do + unpack ${x} + go_package=$(get_archive_go_package ${x}) + mkdir -p src/${go_package%/*} + mv ${go_package##*/}-* src/${go_package} || die + done +} + +src_unpack() { + unpack_go_packages + export GOPATH=${WORKDIR} +} + +src_prepare() { + sed -e 's|build: deps|build:|' -e 's|test: deps|test:|' \ + -i Makefile || die + + # Disable tests that fail under network-sandbox + sed -e 's:TestRun_onceFlag(:_\0:' -i cli_test.go || die + sed -e 's:TestRunner_quiescence(:_\0:' -i runner_test.go || die +} + +src_compile() { + emake build +} + +src_install() { + local x + + dobin bin/${PN} + dodoc README.md + + keepdir /var/log/${PN} + fowners ${PN}:${PN} /var/log/${PN} + + newinitd "${FILESDIR}/${PN}.initd" "${PN}" + newconfd "${FILESDIR}/${PN}.confd" "${PN}" + systemd_dounit "${FILESDIR}/${PN}.service" + + keepdir /etc/${PN}.d + insinto /etc/${PN}.d + doins "${FILESDIR}/"*.json.example +} diff --git a/app-admin/consul-template/consul-template-0.9.0.ebuild b/app-admin/consul-template/consul-template-0.9.0.ebuild new file mode 100644 index 000000000000..0abadf7d7d2b --- /dev/null +++ b/app-admin/consul-template/consul-template-0.9.0.ebuild @@ -0,0 +1,103 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit systemd user + +KEYWORDS="~amd64" +DESCRIPTION="Generic template rendering and notifications with Consul" +GO_PN="github.com/hashicorp/${PN}" +HOMEPAGE="http://${GO_PN}" +LICENSE="MPL-2.0" +SLOT="0" +IUSE="test" + +DEPEND=">=dev-lang/go-1.4 + test? ( dev-go/go-tools ) + app-admin/consul + app-admin/vault" +RDEPEND="" + +SRC_URI="https://${GO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz +https://github.com/hashicorp/go-multierror/archive/fcdddc395df1ddf4247c69bd436e84cfa0733f7e.tar.gz -> go-multierror-fcdddc395df1ddf4247c69bd436e84cfa0733f7e.tar.gz +https://github.com/armon/go-radix/archive/0bab926c3433cfd6490c6d3c504a7b471362390c.tar.gz -> go-radix-0bab926c3433cfd6490c6d3c504a7b471362390c.tar.gz +https://github.com/hashicorp/errwrap/archive/7554cd9344cec97297fa6649b055a8c98c2a1e55.tar.gz -> errwrap-7554cd9344cec97297fa6649b055a8c98c2a1e55.tar.gz +https://github.com/armon/go-metrics/archive/a54701ebec11868993bc198c3f315353e9de2ed6.tar.gz -> go-metrics-a54701ebec11868993bc198c3f315353e9de2ed6.tar.gz +https://github.com/hashicorp/go-msgpack/archive/71c2886f5a673a35f909803f38ece5810165097b.tar.gz -> go-msgpack-71c2886f5a673a35f909803f38ece5810165097b.tar.gz +https://github.com/hashicorp/go-syslog/archive/42a2b573b664dbf281bd48c3cc12c086b17a39ba.tar.gz -> go-syslog-42a2b573b664dbf281bd48c3cc12c086b17a39ba.tar.gz +https://github.com/hashicorp/golang-lru/archive/995efda3e073b6946b175ed93901d729ad47466a.tar.gz -> golang-lru-995efda3e073b6946b175ed93901d729ad47466a.tar.gz +https://github.com/hashicorp/hcl/archive/513e04c400ee2e81e97f5e011c08fb42c6f69b84.tar.gz -> hcl-513e04c400ee2e81e97f5e011c08fb42c6f69b84.tar.gz +https://github.com/hashicorp/logutils/archive/367a65d59043b4f846d179341d138f01f988c186.tar.gz -> logutils-367a65d59043b4f846d179341d138f01f988c186.tar.gz +https://github.com/mitchellh/copystructure/archive/6fc66267e9da7d155a9d3bd489e00dad02666dc6.tar.gz -> copystructure-6fc66267e9da7d155a9d3bd489e00dad02666dc6.tar.gz +https://github.com/mitchellh/mapstructure/archive/442e588f213303bec7936deba67901f8fc8f18b1.tar.gz -> mapstructure-442e588f213303bec7936deba67901f8fc8f18b1.tar.gz +https://github.com/mitchellh/reflectwalk/archive/242be0c275dedfba00a616563e6db75ab8f279ec.tar.gz -> reflectwalk-242be0c275dedfba00a616563e6db75ab8f279ec.tar.gz +https://github.com/samuel/go-zookeeper/archive/d0e0d8e11f318e000a8cc434616d69e329edc374.tar.gz -> go-zookeeper-d0e0d8e11f318e000a8cc434616d69e329edc374.tar.gz" +STRIP_MASK="*.a" +S="${WORKDIR}/src/${GO_PN}" + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 -1 -1 ${PN} +} + +get_archive_go_package() { + local archive=${1} uri x + for x in ${SRC_URI}; do + if [[ ${x} == http* ]]; then + uri=${x} + elif [[ ${x} == ${archive} ]]; then + break + fi + done + uri=${uri#https://} + echo ${uri%/archive/*} +} + +unpack_go_packages() { + local go_package x + # Unpack packages to appropriate locations for GOPATH + for x in ${A}; do + unpack ${x} + go_package=$(get_archive_go_package ${x}) + mkdir -p src/${go_package%/*} + mv ${go_package##*/}-* src/${go_package} || die + done +} + +src_unpack() { + unpack_go_packages + export GOPATH=${WORKDIR} +} + +src_prepare() { + sed -e 's|build: deps|build:|' -e 's|test: deps|test:|' \ + -i Makefile || die + + # Disable tests that fail under network-sandbox + sed -e 's:TestRun_onceFlag(:_\0:' -i cli_test.go || die + sed -e 's:TestRunner_quiescence(:_\0:' -i runner_test.go || die +} + +src_compile() { + emake build +} + +src_install() { + local x + + dobin bin/${PN} + dodoc README.md + + keepdir /var/log/${PN} + fowners ${PN}:${PN} /var/log/${PN} + + newinitd "${FILESDIR}/${PN}.initd" "${PN}" + newconfd "${FILESDIR}/${PN}.confd" "${PN}" + systemd_dounit "${FILESDIR}/${PN}.service" + + keepdir /etc/${PN}.d + insinto /etc/${PN}.d + doins "${FILESDIR}/"*.json.example +} diff --git a/app-admin/consul-template/consul-template-9999.ebuild b/app-admin/consul-template/consul-template-9999.ebuild new file mode 100644 index 000000000000..40307ab73520 --- /dev/null +++ b/app-admin/consul-template/consul-template-9999.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit git-r3 systemd user + +KEYWORDS="" +DESCRIPTION="Generic template rendering and notifications with Consul" +GO_PN="github.com/hashicorp/${PN}" +HOMEPAGE="http://${GO_PN}" +EGIT_REPO_URI="git://${GO_PN}.git" +LICENSE="MPL-2.0" +SLOT="0" +IUSE="test" + +DEPEND=">=dev-lang/go-1.4:= + test? ( dev-go/go-tools ) + app-admin/consul + app-admin/vault" +RDEPEND="" + +SRC_URI="" +STRIP_MASK="*.a" +S="${WORKDIR}/src/${GO_PN}" +EGIT_CHECKOUT_DIR="${S}" + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 -1 -1 ${PN} +} + +src_unpack() { + export GOPATH=${WORKDIR} + git-r3_src_unpack + go get -d -v ./... $(go list -f '{{range .TestImports}}{{.}} {{end}}' ./...) || die +} + +src_prepare() { + sed -e 's|build: deps|build:|' -e 's|test: deps|test:|' \ + -i Makefile || die + + # Disable tests that fail under network-sandbox + sed -e 's:TestRun_onceFlag(:_\0:' -i cli_test.go || die + sed -e 's:TestRunner_quiescence(:_\0:' -i runner_test.go || die +} + +src_compile() { + emake build +} + +src_install() { + local x + + dobin bin/${PN} + dodoc README.md + + keepdir /var/log/${PN} + fowners ${PN}:${PN} /var/log/${PN} + + newinitd "${FILESDIR}/${PN}.initd" "${PN}" + newconfd "${FILESDIR}/${PN}.confd" "${PN}" + systemd_dounit "${FILESDIR}/${PN}.service" + + keepdir /etc/${PN}.d + insinto /etc/${PN}.d + doins "${FILESDIR}/"*.json.example +} diff --git a/app-admin/consul-template/files/consul-template.confd b/app-admin/consul-template/files/consul-template.confd new file mode 100644 index 000000000000..9af7d023305e --- /dev/null +++ b/app-admin/consul-template/files/consul-template.confd @@ -0,0 +1,7 @@ +# you can change the init script behavior by setting those parameters +# - group (default: consul-template) +# - pidfile (default: /run/consul-template/consul-template.pid) +# - user (default: consul-template) + +# extra arguments for the consul agent +command_args="-config=/etc/consul-template.d" diff --git a/app-admin/consul-template/files/consul-template.initd b/app-admin/consul-template/files/consul-template.initd new file mode 100644 index 000000000000..7add14f3a573 --- /dev/null +++ b/app-admin/consul-template/files/consul-template.initd @@ -0,0 +1,25 @@ +#!/sbin/openrc-run +# Copyright 2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +description="consul-template agent" +group=${group:-${SVCNAME}} +pidfile=${pidfile:-"/run/${SVCNAME}/${SVCNAME}.pid"} +user=${user:-${SVCNAME}} + +command="/usr/bin/${SVCNAME}" +command_args="agent -config-dir=/etc/consul-template.d ${command_args}" +command_background="true" +start_stop_daemon_args="--user ${user} --group ${group} \ + --stdout /var/log/${SVCNAME}/${SVCNAME}.log \ + --stderr /var/log/${SVCNAME}/${SVCNAME}.log" + +depend() { + need net + after net +} + +start_pre() { + checkpath -d -m 0755 -o "${user}":"${group}" "${pidfile%/*}" +} diff --git a/app-admin/consul-template/files/consul-template.service b/app-admin/consul-template/files/consul-template.service new file mode 100644 index 000000000000..be4ac71c7288 --- /dev/null +++ b/app-admin/consul-template/files/consul-template.service @@ -0,0 +1,15 @@ +[Unit] +Description=consul-template daemon +Requires=network-online.target +After=network-online.target + +[Service] +User=consul-template +Environment=CONSUL_TEMPLATE_DAEMON_OPTS="-config=/etc/consul-template.d" +ExecStart=/usr/bin/consul-template $CONSUL_TEMPLATE_DAEMON_OPTS +Restart=on-failure +SuccessExitStatus=12 +ExecReload=/bin/kill -HUP $MAINPID + +[Install] +WantedBy=default.target diff --git a/app-admin/consul-template/files/localhost.json.example b/app-admin/consul-template/files/localhost.json.example new file mode 100644 index 000000000000..64dec09cfc90 --- /dev/null +++ b/app-admin/consul-template/files/localhost.json.example @@ -0,0 +1 @@ +consul = "127.0.0.1:8500" diff --git a/app-admin/consul-template/metadata.xml b/app-admin/consul-template/metadata.xml new file mode 100644 index 000000000000..a12ecb248fbf --- /dev/null +++ b/app-admin/consul-template/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> + <email>zmedico@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="github">hashicorp/consul-template</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/consul/Manifest b/app-admin/consul/Manifest new file mode 100644 index 000000000000..b4da8afaac84 --- /dev/null +++ b/app-admin/consul/Manifest @@ -0,0 +1,27 @@ +DIST bolt-2c04100eb9793f2b8541d243494e2909d2112325.tar.gz 69587 SHA256 c0cdbaa6ec724c73799003ba166a4c9f1c6f1cc1b9760f98ef2d2a2a431577da SHA512 98a34fc045a6646df61d69f156164172e4446159fd790a1875c489583935b644dca4b14de097c0d1331cf46aa5221c77b8d1273a1f74121ac954dc04ef849f86 WHIRLPOOL 0380733bfc41010bc1ba14fb8be1b464a5dcd33cdc784aebc47298ee352d2b1b628ed1ee91d7f35c4346458d6ead87408db0bbe869126c46dd70faf5605d4ae1 +DIST circbuf-f092b4f207b6e5cce0569056fba9e1a2735cb6cf.tar.gz 2748 SHA256 b67d2ffc0a725b6844895680d52ba4a63757987637c8dabbb2c3e4d836512d52 SHA512 0e1db19e79cd0f584adcb0ec0d6f04cad1e855abf0872a5bcf4ac5fedace55374a50e2c5c2086f26d20c63ff46d9f370119959d6ff20ead32bb4888df16e6948 WHIRLPOOL a375ffa2214e527c47815b82579bee7a270bb652582605a83c1a0d13087b2ef2f09cc6ee16f7e735fa61846c106203f3db51822d38eac18345f26f9e942a1ca2 +DIST cli-6cc8bc522243675a2882b81662b0b0d2e04b99c9.tar.gz 12690 SHA256 87d7f733c0f2e778fa72951c55a7fe65ea8694f2a1f621c368ecffb111098b05 SHA512 942f8a30a4570f04932ad263bb6760ec8d940d46058c65e56ffc81b1b5cc2d205afd61908260ce7d8dee44db879c861aafc0112335493b0b5018fa7b3b91fb62 WHIRLPOOL 5ea03493adee35661ed7bd30e857b171160a1a71d10c65aa8eee6e439ddf7d9c7f5ae9c1b9e3c0d70cf2a82d513b3b5570fcb089912822a50cc123fe4bc3ad68 +DIST columnize-44cb4788b2ec3c3d158dd3d1b50aba7d66f4b59a.tar.gz 3680 SHA256 504519c9befbac3045a00a7a70e82cc437622294ece6ac19b85ffd4aa915369f SHA512 1117d4a7efc1f029aef27ad711073fe4f8cff4ddf42021f917ad44cdf246153a39ca9a911892b783128563d09594aec5ffc4f8ee1d44218dd8ead1635ab4a040 WHIRLPOOL bb0417093ff993358cbacfade5df8c416e911ef352ebd760152dbce37b9e3c7c2d0064decc3efee7fe61672b13372b077cc19c579f186128175d2b05fc32d0c4 +DIST consul-0.5.2.tar.gz 1821228 SHA256 acaa3b7a7c874d247175faaa9178bb1e93eabb2d810dc842c79ccf272b4518b6 SHA512 77e76cd090f668a963202aa68fcf5c676edeb30078de1f35ff9af6681c34dd4171eb0da24fedcd376cbe5fa0fa87f7a3453dda4075bfc55a8ba949d4c407ef04 WHIRLPOOL 746cef01f7733838de0774fcde4ef1b8f7c686ed90593218e623a3fc68bd6d590ecda427c8b94d1b412f1e83ebf76b4a357ecb89c39695ebdd890fc9f7976eb1 +DIST consul-migrate-0.1.0.tar.gz 12844 SHA256 f9c2699cf5686065b69c3c0af58f140c65c6c0963e699b35b6e03e06fa7f996b SHA512 8884112f8529dbd48afccc21e89b5e0c401a056d7ca2f223803648c6cfe12a6582a2f91ee548672c10c57bad11028a01297ad039c0be39243180deb165d262df WHIRLPOOL bb977a8823360c8159d356aca9273665b41f02b390984e91c005ef8a57e57d9d77143c575fe0b38933522a8ff03743f9b49bc5583c58c1b37bcb04f8f3ec08b9 +DIST dns-bb1103f648f811d2018d4bedcb2d4b2bce34a0f1.tar.gz 117777 SHA256 4b539f47f2ccf7fffd35490b4840fa4503506223bdb25ce957797b5a373d2743 SHA512 e7c5c5c321147e973d09e516054ef233e59a1326a094f2f07c6ecf4392f50bd0493a9f197789982d4de6ca373e713214ad6166fb513b2beebaa0d94ab5b01aea WHIRLPOOL fdaab64471665f6d5dc9e06599ec9e9de6dac225d5117ca7c008ce385a7b31a707c8fa0ecd13e03e83f9dafd500b3fd8180392e386319dfce53cb37d50b830fc +DIST go-checkpoint-88326f6851319068e7b34981032128c0b1a6524d.tar.gz 9830 SHA256 ea62599bfbe3ec9b616a8b75a14013ccfc288b8b0ccdcac4dac93c82503d41ae SHA512 94c90964fdd343afc4a4054c1e10e71eff04e0e410e72f6f19056471d41258ec1d976b8f0d9d61284832872fbd39a157fb64908a4195d183823b7f21638b0ffb WHIRLPOOL 694685c0fe9141be69bf889a710c357a011342772ac0a1bc7b39a2a43ce4824e1ed98dd8be77dc62216948c1f113e8570bd8781146ac16de154f69451e461308 +DIST go-metrics-a54701ebec11868993bc198c3f315353e9de2ed6.tar.gz 11268 SHA256 2f4206d5d50eaab383cdc4f5c57179e285b93649c028a69dd9e2a4a45b69afe3 SHA512 e3da3f7b98edd32da5c3381afc3e92021b92416d7ea9de0423a05c06bc9ff808e28d29ca9f689c0029809a4b1643819954039516d6ab5890bb5512f5fe99fd6d WHIRLPOOL 815f83ae08bb6a37ee1774a718a8c3b4087ee9a95f190b8a77453f0d1ba1ca88a331e8be12b2f63d0c1fdb9472f2ff35786b94eaf1f61f5cb33fe1e6d9e4e460 +DIST go-msgpack-71c2886f5a673a35f909803f38ece5810165097b.tar.gz 49485 SHA256 c32b90e67762a375981b38154cae65222bb1aaa7722727d0225d5f8de773e4c8 SHA512 e4141e664c3237f7ab4c283b110d04e933bfb36a9d57af374ab42fed00a4ad6d8399e3399b206eebe76c5e142746412b2ada6c20b1ec09088f3bb7d82a7b01a9 WHIRLPOOL 1434e72897de4063515a0d3319e96b066406c110e3e36f710970886ba6ec9411f71908d9696a4528ee0fcb88bea54ab9c064faa230761ce38b82bb5506a2c073 +DIST go-multierror-fcdddc395df1ddf4247c69bd436e84cfa0733f7e.tar.gz 8058 SHA256 af90f9be029c091eb011ff25d270772fdb51edf3c6396cf99f224c4e7ad724c3 SHA512 f5cb12407f9bc986867a274c623037edab04f8e2b664c7d4db3bb7e32f970dd073a3d233d18549a5f01b5e88abff0eb0c1fcf79b6696a531c208e6fe8137080e WHIRLPOOL c997792a5c1b3029b32d0fad3a55a281b5ced2bef306367a1fd49df75cab831b93a3752e76f8a18ce5d08e155f66b3826aa5d9878fb9655821cef7a69b71de31 +DIST go-radix-0bab926c3433cfd6490c6d3c504a7b471362390c.tar.gz 5446 SHA256 f4e628adceee06d7717dce0bf566d5ebd8c009599807f2436b3cda259011b331 SHA512 350904076752e2fda17e9c2891a50b037d2ca165924880d6d5e466b8ed76685d79ff00bbbfbe9a665668e0ebde23c87129d3c1c4bf27ffe0c034df160db9d08f WHIRLPOOL 8571b9e818904a56ea16c35883725013d2009dc294acfdf4f28920a03baff36ffcd3d4d6d8be0ecfc78eefbfeef57e4b2ca224f2ce37d665caae724389346f88 +DIST go-syslog-42a2b573b664dbf281bd48c3cc12c086b17a39ba.tar.gz 4397 SHA256 378f5249729661db9d0c65030fbf636f6ec1d60ee926e67abf8c6dd7921d3907 SHA512 42257d0599936bb215f4a9f9189518418f02bc43e4d7417823ea460bfc45c6fd1f9b0bf5a35dd73881b57cd9e892c702b813a68fe6e417e82dd31c6635c1b24e WHIRLPOOL 26cf1464bf0899ae9bad0067481f57a121433c5fe7c93fef92523a157d7906b8c1c4216c2a4fe738222e4afaa85fc0a7b7b29149254125a3e8b2e7064add6cb1 +DIST golang-lru-995efda3e073b6946b175ed93901d729ad47466a.tar.gz 7872 SHA256 cac6e889020e8b31e46d50b98e0af9acbb44bf352ad0ca9d30db79b6235849e2 SHA512 29eee70cbdc9c712d1cece1f911f3a74ebfd44318b91dcd1932f0bff031286f0a80db93772dd04be350c0cca3cc77c0676659ef0f85229f31a1140e23c1fc3f5 WHIRLPOOL c4711d30caf5c2d880aeec7330bc06011dc4e741e305f6dcac8d983734b3706cb5967b06755f7684370ca61a91f356a97c9866ffda0e275e26bb11d3a74d0145 +DIST gomdb-151f2e08ef45cb0e57d694b2562f351955dff572.tar.gz 100298 SHA256 de5119016d4e12885c474f4f1e682c80984b464a0ae2809f28699aeba1badc68 SHA512 f8f0268b49a091166302440ee34e40ff89a4c6adacfcd2daa62161a04f8ebe2a5e66074c125afa40147eba7493ce5fd5fb75e33b3955ef9f0f836ecc409603a3 WHIRLPOOL bdc42de4d1b8fecd2a9770745d8b80ebaf3afc3471e672e4dd512f8e60272d9cfd7d6991ecafd424f20036b55b894e5befde81281b0a01fefc274df57044050e +DIST hcl-513e04c400ee2e81e97f5e011c08fb42c6f69b84.tar.gz 28692 SHA256 109ec067ff8ff7f30538e0d2ba1384c1fe25694c99d56972003b1c669d19d0b2 SHA512 90f568373d20cccbb56ada29257bd2ea808bbacb668fd1b82e71abf8f5e2592b4a58dc5d3f1174a2b38c660316cd0227eb333e747aae7a846e94168ebe9d2297 WHIRLPOOL cf5685f25d3c3b69d330e30ad089e2cbc9c6636b0f2ac4933638d6bcad06aa5a50f92d5228a1f1ddabd5e0f8187bc5b16f38f4a3bd86bbbf161a5409d5102ec0 +DIST logutils-367a65d59043b4f846d179341d138f01f988c186.tar.gz 7704 SHA256 9b2173d9277574adbc45400101cb0b65534a5cd3defe62eeb3bff652eeb3e34c SHA512 9a4444fbae3bd1c0b2391981edf2f8155ebdd90a14a367f718bc7bcdced68b37b563ae38141fc3cb35409ff70820bd32b5a44cb218630418bce37f78181ef109 WHIRLPOOL 4973a7ef035807c9ef1135cface87cce4707910e6c33cece87dc8200df5e3d3c351d129ce20214e2cbf6bf58a7b040e9d1c5e12f5414cf37e45890a6a8ec439c +DIST mapstructure-442e588f213303bec7936deba67901f8fc8f18b1.tar.gz 12220 SHA256 b4fa5d3b888734f849c5d6784fc1c5749e4ece168fda65c604676fca39c085d2 SHA512 de79f2579a086cccc047b280ae7e2b5dc5f8a95d504ead9d7f0cbaf01e70d37cb4eea8e7ab9aec446a7c2f1771152add3e2e488c18963d63ca3dac43ed2a33b7 WHIRLPOOL ecf8bd2bc9e50bb9e5ad3b6ebb04f5fdc10cf0e515f25d1381bbd1591c074887706b7c25f03a749ff212555fc537534056dab58eaece9357de9045ba2edd9a51 +DIST memberlist-6025015f2dc659ca2c735112d37e753bda6e329d.tar.gz 51853 SHA256 7b808ff100db2e484e6cf338d32ed55512f4c371c5cbba498aeca632f21c830f SHA512 fb70a58c6914919e68210bd2486051e64bdbb03475dc02734b7c03ed51e7537ca19162264bffafb83eccf7ebd24ae7d6f9b400f23be0aeae9d80210addd91de2 WHIRLPOOL 981208444af8343157837c6cd3cb2ae886b1078d27c40f9cbff2a7acd52c682b1e29b9743bef7a709aafa35c3a5f9c1345578c27fb89f7330128e53ba435415a +DIST muxado-f693c7e88ba316d1a0ae3e205e22a01aa3ec2848.tar.gz 25816 SHA256 237354d5acf550d05d20841e0ec6e88cea29ece70fdf8fc73a2d59884ea6be01 SHA512 2ce026db7d0dbe3704e5855970126658c33f45c28ab7c0ad60ab5dcd3c107ea9a3a2617efa59d89148c0dbbfa5dd2c30358e6b5855d9525772685e2c676b3e8e WHIRLPOOL 1a992c5ba09b9bce80dac43d5df2d0d6c72402e7b63cd56a168db5ceecbc6a7c5fad4b51f6e725c21d4e619dbc052270cacfcaf2d0d58dab7accf69eda49a6f4 +DIST net-rpc-msgpackrpc-d377902b7aba83dd3895837b902f6cf3f71edcb2.tar.gz 2805 SHA256 0eb8244654cf9e461ce6338cdb7c6ab28dc118d425497e5f6045808e24932a0f SHA512 635c48bbbdce634fee720038a77a2c80f19a3b1e44cef1566b6eda6623bd00d1bf7cc89eb621517d620917c26f0ee80a23006edd903f8f03cf9d18e64b16ecfe WHIRLPOOL 7874f34649b22630d11f03655a35943b03375575cf5140e2d0de2194bab17b95489afa572fa19137a8001558d4139eae0e84b61b6604aa4d08a771af9f619467 +DIST raft-a8065f298505708bf60f518c09178149f3c06f21.tar.gz 56934 SHA256 a952ce8348085be36a1accbb7555e8c5a1a1c2292066d1966f17994ec90276ef SHA512 66aae260f4aa2b0a64669ff7abf4975fc933a7b873454c63a5eea807d5028360ba9f0396f3f9ac78136d96003af23b50ab4b922bad2b4f821db4faf057ce35ff WHIRLPOOL dd9f36d0213228717c428db9132f67a9efbdd882da1f320cb7893cd40ce569dd981c8aa4542f1d43f2bdc8ceb5b891197d45cbfa7bf055a3a69a4a98471bd0b5 +DIST raft-boltdb-d1e82c1ec3f15ee991f7cc7ffd5b67ff6f5bbaee.tar.gz 8881 SHA256 490ced07cc72baede9b997dcf92499fa0d4298926fbc51ee632bde3d3ea0979e SHA512 4f98cf8cf375561f255822cbd21b6926d3bd12ff2a1d9307b59ce5e12628034f197f6efc85d9cc9cf951eac7402b36954c2ea686bb033075ec840106614f2039 WHIRLPOOL 337d399c6b73893bb72d77a77e6b2c7b5ee914d191b719dec13f72975c0a4ece1ee6a902d32197bbf0f0300bdc3ce8efda082363a1e79a7d3f2d8aec6eb2d436 +DIST raft-mdb-4ec3694ffbc74d34f7532e70ef2e9c3546a0c0b0.tar.gz 9811 SHA256 9873fa73d17174e0e7175216848a2a7c58a9c66701459ed4d4866ab063ef58c1 SHA512 a592adb161dc9c8e40b17606ec0366e61c7ab76d7fb9f074d01abfb1ba1b1f7629582ce103e39989c269d1d49506b4ac24b7a265161aad2c855b60df7e02169b WHIRLPOOL 65f3f2ec309e0d7c0ab6246853fc584a4abb64cf6a09657dad047d4be89509177aabdd149360aa506281187068a1ee0dc465dd717be3479315a3e602794f7a1b +DIST scada-client-c26580cfe35393f6f4bf1b9ba55e6afe33176bae.tar.gz 15805 SHA256 74d7195f4d7b213cb82278ed34c16808a79923be9009aab7e8f1267d5a6675f7 SHA512 dab4b8b2bd6e57727e89e22eec89f0b381cf492797364e8891f2308e381290f4d7359edc5833b47e260e27cce77d7fed32672889c45f24397ad6ae06bb027642 WHIRLPOOL c04510ca20ff25ef4521d2e71b0f27abfdf484bfe24680ee9b92502e93dc1d8bce9e468ce5202f175a7cbc20d787e74618392a1f8f3d8858db303dec46e2d424 +DIST serf-558a6876882b2c5c61df29fd3990fb1765fd71d3.tar.gz 572608 SHA256 ccc9f543adb1c41e0541fd6f0d302e4a7b4e2b1695de695466d5c9e572971edf SHA512 7c6c1c8ae40952311a3a722d0f10b9e236bac1f291e4cd2014ccde495e3ab4b8f0922e619ac90e8bd38ed6b20db6238d66e786ef0f25cab2540663004672334e WHIRLPOOL 9623ab60e0547781f7de058ba96fa6d8bc447b898500054578bdfc3d9dcae531e701e604d3d3cd323143a67f8c6af5b6fb5b1aba37368deccdd43e268f0d8144 +DIST yamux-b2e55852ddaf823a85c67f798080eb7d08acd71d.tar.gz 19249 SHA256 e4ca04b27f2899bd04033d4bb8cf2c5d0eac6e916c87851ded9cfa57d1f70b5f SHA512 9e889a25c20e1de7ffc59d785fba574152689303c41055ee0cb046fa18346df23ce875e1dce6607e3a0a7211b336c6033b66073ae811b7a08aa121bf147dcf1d WHIRLPOOL 3fb8dd868ba126f6044685a848260451ebe611332ecda152145243b150b995fcaa7c36a8205bcc97af00975c2b44901fb1731a8e6a78f40bc2a22a76b3bc7951 diff --git a/app-admin/consul/consul-0.5.2-r1.ebuild b/app-admin/consul/consul-0.5.2-r1.ebuild new file mode 100644 index 000000000000..6fec48bdf537 --- /dev/null +++ b/app-admin/consul/consul-0.5.2-r1.ebuild @@ -0,0 +1,159 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit systemd user + +KEYWORDS="~amd64" +DESCRIPTION="A tool for service discovery, monitoring and configuration" +HOMEPAGE="http://www.consul.io" +GO_PN="github.com/hashicorp/consul" +LICENSE="MPL-2.0" +SLOT="0" +IUSE="test web" + +DEPEND=">=dev-lang/go-1.4:= + dev-go/go-crypto:= + test? ( dev-go/go-tools ) + web? ( + dev-ruby/sass + dev-ruby/uglifier + )" +RDEPEND="" + +SRC_URI="https://github.com/hashicorp/consul/archive/v0.5.2.tar.gz -> ${P}.tar.gz +https://github.com/armon/circbuf/archive/f092b4f207b6e5cce0569056fba9e1a2735cb6cf.tar.gz -> circbuf-f092b4f207b6e5cce0569056fba9e1a2735cb6cf.tar.gz +https://github.com/armon/go-metrics/archive/a54701ebec11868993bc198c3f315353e9de2ed6.tar.gz -> go-metrics-a54701ebec11868993bc198c3f315353e9de2ed6.tar.gz +https://github.com/armon/go-radix/archive/0bab926c3433cfd6490c6d3c504a7b471362390c.tar.gz -> go-radix-0bab926c3433cfd6490c6d3c504a7b471362390c.tar.gz +https://github.com/armon/gomdb/archive/151f2e08ef45cb0e57d694b2562f351955dff572.tar.gz -> gomdb-151f2e08ef45cb0e57d694b2562f351955dff572.tar.gz +https://github.com/boltdb/bolt/archive/2c04100eb9793f2b8541d243494e2909d2112325.tar.gz -> bolt-2c04100eb9793f2b8541d243494e2909d2112325.tar.gz +https://github.com/hashicorp/consul-migrate/archive/v0.1.0.tar.gz -> consul-migrate-0.1.0.tar.gz +https://github.com/hashicorp/go-checkpoint/archive/88326f6851319068e7b34981032128c0b1a6524d.tar.gz -> go-checkpoint-88326f6851319068e7b34981032128c0b1a6524d.tar.gz +https://github.com/hashicorp/go-msgpack/archive/71c2886f5a673a35f909803f38ece5810165097b.tar.gz -> go-msgpack-71c2886f5a673a35f909803f38ece5810165097b.tar.gz +https://github.com/hashicorp/go-multierror/archive/fcdddc395df1ddf4247c69bd436e84cfa0733f7e.tar.gz -> go-multierror-fcdddc395df1ddf4247c69bd436e84cfa0733f7e.tar.gz +https://github.com/hashicorp/go-syslog/archive/42a2b573b664dbf281bd48c3cc12c086b17a39ba.tar.gz -> go-syslog-42a2b573b664dbf281bd48c3cc12c086b17a39ba.tar.gz +https://github.com/hashicorp/golang-lru/archive/995efda3e073b6946b175ed93901d729ad47466a.tar.gz -> golang-lru-995efda3e073b6946b175ed93901d729ad47466a.tar.gz +https://github.com/hashicorp/hcl/archive/513e04c400ee2e81e97f5e011c08fb42c6f69b84.tar.gz -> hcl-513e04c400ee2e81e97f5e011c08fb42c6f69b84.tar.gz +https://github.com/hashicorp/logutils/archive/367a65d59043b4f846d179341d138f01f988c186.tar.gz -> logutils-367a65d59043b4f846d179341d138f01f988c186.tar.gz +https://github.com/hashicorp/memberlist/archive/6025015f2dc659ca2c735112d37e753bda6e329d.tar.gz -> memberlist-6025015f2dc659ca2c735112d37e753bda6e329d.tar.gz +https://github.com/hashicorp/net-rpc-msgpackrpc/archive/d377902b7aba83dd3895837b902f6cf3f71edcb2.tar.gz -> net-rpc-msgpackrpc-d377902b7aba83dd3895837b902f6cf3f71edcb2.tar.gz +https://github.com/hashicorp/raft/archive/a8065f298505708bf60f518c09178149f3c06f21.tar.gz -> raft-a8065f298505708bf60f518c09178149f3c06f21.tar.gz +https://github.com/hashicorp/raft-boltdb/archive/d1e82c1ec3f15ee991f7cc7ffd5b67ff6f5bbaee.tar.gz -> raft-boltdb-d1e82c1ec3f15ee991f7cc7ffd5b67ff6f5bbaee.tar.gz +https://github.com/hashicorp/raft-mdb/archive/4ec3694ffbc74d34f7532e70ef2e9c3546a0c0b0.tar.gz -> raft-mdb-4ec3694ffbc74d34f7532e70ef2e9c3546a0c0b0.tar.gz +https://github.com/hashicorp/scada-client/archive/c26580cfe35393f6f4bf1b9ba55e6afe33176bae.tar.gz -> scada-client-c26580cfe35393f6f4bf1b9ba55e6afe33176bae.tar.gz +https://github.com/hashicorp/serf/archive/558a6876882b2c5c61df29fd3990fb1765fd71d3.tar.gz -> serf-558a6876882b2c5c61df29fd3990fb1765fd71d3.tar.gz +https://github.com/hashicorp/yamux/archive/b2e55852ddaf823a85c67f798080eb7d08acd71d.tar.gz -> yamux-b2e55852ddaf823a85c67f798080eb7d08acd71d.tar.gz +https://github.com/inconshreveable/muxado/archive/f693c7e88ba316d1a0ae3e205e22a01aa3ec2848.tar.gz -> muxado-f693c7e88ba316d1a0ae3e205e22a01aa3ec2848.tar.gz +https://github.com/miekg/dns/archive/bb1103f648f811d2018d4bedcb2d4b2bce34a0f1.tar.gz -> dns-bb1103f648f811d2018d4bedcb2d4b2bce34a0f1.tar.gz +https://github.com/mitchellh/cli/archive/6cc8bc522243675a2882b81662b0b0d2e04b99c9.tar.gz -> cli-6cc8bc522243675a2882b81662b0b0d2e04b99c9.tar.gz +https://github.com/mitchellh/mapstructure/archive/442e588f213303bec7936deba67901f8fc8f18b1.tar.gz -> mapstructure-442e588f213303bec7936deba67901f8fc8f18b1.tar.gz +https://github.com/ryanuber/columnize/archive/44cb4788b2ec3c3d158dd3d1b50aba7d66f4b59a.tar.gz -> columnize-44cb4788b2ec3c3d158dd3d1b50aba7d66f4b59a.tar.gz" + +STRIP_MASK="*.a" +S="${WORKDIR}/src/${GO_PN}" + +pkg_setup() { + enewgroup consul + enewuser consul -1 -1 /var/lib/${PN} consul +} + +get_archive_go_package() { + local archive=${1} uri x + for x in ${SRC_URI}; do + if [[ ${x} == http* ]]; then + uri=${x} + elif [[ ${x} == ${archive} ]]; then + break + fi + done + uri=${uri#https://} + echo ${uri%/archive/*} +} + +unpack_go_packages() { + local go_package x + # Unpack packages to appropriate locations for GOPATH + for x in ${A}; do + unpack ${x} + if [[ ${x} == *.tar.gz ]]; then + go_package=$(get_archive_go_package ${x}) + mkdir -p src/${go_package%/*} + mv ${go_package##*/}-* src/${go_package} || die + fi + done +} + +src_unpack() { + unpack_go_packages + # Create a writable GOROOT in order to avoid sandbox violations + # or other interference from installed instances. + export GOPATH="${WORKDIR}" GOROOT="${WORKDIR}/goroot" + cp -sR "${EPREFIX}"/usr/lib/go "${GOROOT}" || die + while read -r path; do + rm -rf "${GOROOT}/src/${path#${WORKDIR}/src}" \ + "${GOROOT}/pkg/linux_${ARCH}/${path#${WORKDIR}/src}" || die + done < <(find "${WORKDIR}"/src -maxdepth 3 -mindepth 3 -type d) +} + +src_prepare() { + # Avoid the need to have a git checkout + sed -e 's:^GIT.*::' \ + -e 's:-X main.GitCommit.*:" \\:' \ + -i scripts/build.sh || die + + # Disable tests that fail under network-sandbox + sed -e 's:TestServer_StartStop:_TestServer_StartStop:' \ + -i consul/server_test.go || die + sed -e 's:TestRetryJoin(:_TestRetryJoin(:' \ + -i command/agent/command_test.go || die +} + +src_compile() { + emake + + if use web; then + pushd ui >/dev/null || die + emake dist + fi +} + +src_install() { + local x + + dobin bin/* + rm -rf bin + + keepdir /etc/consul.d + insinto /etc/consul.d + doins "${FILESDIR}/"*.json.example + + for x in /var/{lib,log}/${PN}; do + keepdir "${x}" + fowners consul:consul "${x}" + done + + if use web; then + insinto /var/lib/${PN}/ui + doins -r ui/dist/* + fi + + newinitd "${FILESDIR}/consul.initd" "${PN}" + newconfd "${FILESDIR}/consul.confd" "${PN}" + systemd_dounit "${FILESDIR}/consul.service" + + find "${WORKDIR}"/{pkg,src} -name '.git*' -exec rm -rf {} \; 2>/dev/null + find "${WORKDIR}"/src/${GO_PN} -mindepth 1 -maxdepth 1 -type f -delete + while read -r -d '' x; do + x=${x#${WORKDIR}/src} + [[ -d ${WORKDIR}/pkg/${KERNEL}_${ARCH}/${x} || + -f ${WORKDIR}/pkg/${KERNEL}_${ARCH}/${x}.a ]] && continue + rm -rf "${WORKDIR}"/src/${x} + done < <(find "${WORKDIR}"/src/${GO_PN} -mindepth 1 -maxdepth 1 -type d -print0) + insopts -m0644 -p # preserve timestamps for bug 551486 + insinto /usr/lib/go/pkg/${KERNEL}_${ARCH}/${GO_PN%/*} + doins -r "${WORKDIR}"/pkg/${KERNEL}_${ARCH}/${GO_PN} + insinto /usr/lib/go/src/${GO_PN%/*} + doins -r "${WORKDIR}"/src/${GO_PN} +} diff --git a/app-admin/consul/consul-0.5.2.ebuild b/app-admin/consul/consul-0.5.2.ebuild new file mode 100644 index 000000000000..9c47b7fa54e1 --- /dev/null +++ b/app-admin/consul/consul-0.5.2.ebuild @@ -0,0 +1,159 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit systemd user + +KEYWORDS="~amd64" +DESCRIPTION="A tool for service discovery, monitoring and configuration" +HOMEPAGE="http://www.consul.io" +GO_PN="github.com/hashicorp/consul" +LICENSE="MPL-2.0" +SLOT="0" +IUSE="test web" + +DEPEND=">=dev-lang/go-1.4 + dev-go/go-crypto + test? ( dev-go/go-tools ) + web? ( + dev-ruby/sass + dev-ruby/uglifier + )" +RDEPEND="" + +SRC_URI="https://github.com/hashicorp/consul/archive/v0.5.2.tar.gz -> ${P}.tar.gz +https://github.com/armon/circbuf/archive/f092b4f207b6e5cce0569056fba9e1a2735cb6cf.tar.gz -> circbuf-f092b4f207b6e5cce0569056fba9e1a2735cb6cf.tar.gz +https://github.com/armon/go-metrics/archive/a54701ebec11868993bc198c3f315353e9de2ed6.tar.gz -> go-metrics-a54701ebec11868993bc198c3f315353e9de2ed6.tar.gz +https://github.com/armon/go-radix/archive/0bab926c3433cfd6490c6d3c504a7b471362390c.tar.gz -> go-radix-0bab926c3433cfd6490c6d3c504a7b471362390c.tar.gz +https://github.com/armon/gomdb/archive/151f2e08ef45cb0e57d694b2562f351955dff572.tar.gz -> gomdb-151f2e08ef45cb0e57d694b2562f351955dff572.tar.gz +https://github.com/boltdb/bolt/archive/2c04100eb9793f2b8541d243494e2909d2112325.tar.gz -> bolt-2c04100eb9793f2b8541d243494e2909d2112325.tar.gz +https://github.com/hashicorp/consul-migrate/archive/v0.1.0.tar.gz -> consul-migrate-0.1.0.tar.gz +https://github.com/hashicorp/go-checkpoint/archive/88326f6851319068e7b34981032128c0b1a6524d.tar.gz -> go-checkpoint-88326f6851319068e7b34981032128c0b1a6524d.tar.gz +https://github.com/hashicorp/go-msgpack/archive/71c2886f5a673a35f909803f38ece5810165097b.tar.gz -> go-msgpack-71c2886f5a673a35f909803f38ece5810165097b.tar.gz +https://github.com/hashicorp/go-multierror/archive/fcdddc395df1ddf4247c69bd436e84cfa0733f7e.tar.gz -> go-multierror-fcdddc395df1ddf4247c69bd436e84cfa0733f7e.tar.gz +https://github.com/hashicorp/go-syslog/archive/42a2b573b664dbf281bd48c3cc12c086b17a39ba.tar.gz -> go-syslog-42a2b573b664dbf281bd48c3cc12c086b17a39ba.tar.gz +https://github.com/hashicorp/golang-lru/archive/995efda3e073b6946b175ed93901d729ad47466a.tar.gz -> golang-lru-995efda3e073b6946b175ed93901d729ad47466a.tar.gz +https://github.com/hashicorp/hcl/archive/513e04c400ee2e81e97f5e011c08fb42c6f69b84.tar.gz -> hcl-513e04c400ee2e81e97f5e011c08fb42c6f69b84.tar.gz +https://github.com/hashicorp/logutils/archive/367a65d59043b4f846d179341d138f01f988c186.tar.gz -> logutils-367a65d59043b4f846d179341d138f01f988c186.tar.gz +https://github.com/hashicorp/memberlist/archive/6025015f2dc659ca2c735112d37e753bda6e329d.tar.gz -> memberlist-6025015f2dc659ca2c735112d37e753bda6e329d.tar.gz +https://github.com/hashicorp/net-rpc-msgpackrpc/archive/d377902b7aba83dd3895837b902f6cf3f71edcb2.tar.gz -> net-rpc-msgpackrpc-d377902b7aba83dd3895837b902f6cf3f71edcb2.tar.gz +https://github.com/hashicorp/raft/archive/a8065f298505708bf60f518c09178149f3c06f21.tar.gz -> raft-a8065f298505708bf60f518c09178149f3c06f21.tar.gz +https://github.com/hashicorp/raft-boltdb/archive/d1e82c1ec3f15ee991f7cc7ffd5b67ff6f5bbaee.tar.gz -> raft-boltdb-d1e82c1ec3f15ee991f7cc7ffd5b67ff6f5bbaee.tar.gz +https://github.com/hashicorp/raft-mdb/archive/4ec3694ffbc74d34f7532e70ef2e9c3546a0c0b0.tar.gz -> raft-mdb-4ec3694ffbc74d34f7532e70ef2e9c3546a0c0b0.tar.gz +https://github.com/hashicorp/scada-client/archive/c26580cfe35393f6f4bf1b9ba55e6afe33176bae.tar.gz -> scada-client-c26580cfe35393f6f4bf1b9ba55e6afe33176bae.tar.gz +https://github.com/hashicorp/serf/archive/558a6876882b2c5c61df29fd3990fb1765fd71d3.tar.gz -> serf-558a6876882b2c5c61df29fd3990fb1765fd71d3.tar.gz +https://github.com/hashicorp/yamux/archive/b2e55852ddaf823a85c67f798080eb7d08acd71d.tar.gz -> yamux-b2e55852ddaf823a85c67f798080eb7d08acd71d.tar.gz +https://github.com/inconshreveable/muxado/archive/f693c7e88ba316d1a0ae3e205e22a01aa3ec2848.tar.gz -> muxado-f693c7e88ba316d1a0ae3e205e22a01aa3ec2848.tar.gz +https://github.com/miekg/dns/archive/bb1103f648f811d2018d4bedcb2d4b2bce34a0f1.tar.gz -> dns-bb1103f648f811d2018d4bedcb2d4b2bce34a0f1.tar.gz +https://github.com/mitchellh/cli/archive/6cc8bc522243675a2882b81662b0b0d2e04b99c9.tar.gz -> cli-6cc8bc522243675a2882b81662b0b0d2e04b99c9.tar.gz +https://github.com/mitchellh/mapstructure/archive/442e588f213303bec7936deba67901f8fc8f18b1.tar.gz -> mapstructure-442e588f213303bec7936deba67901f8fc8f18b1.tar.gz +https://github.com/ryanuber/columnize/archive/44cb4788b2ec3c3d158dd3d1b50aba7d66f4b59a.tar.gz -> columnize-44cb4788b2ec3c3d158dd3d1b50aba7d66f4b59a.tar.gz" + +STRIP_MASK="*.a" +S="${WORKDIR}/src/${GO_PN}" + +pkg_setup() { + enewgroup consul + enewuser consul -1 -1 /var/lib/${PN} consul +} + +get_archive_go_package() { + local archive=${1} uri x + for x in ${SRC_URI}; do + if [[ ${x} == http* ]]; then + uri=${x} + elif [[ ${x} == ${archive} ]]; then + break + fi + done + uri=${uri#https://} + echo ${uri%/archive/*} +} + +unpack_go_packages() { + local go_package x + # Unpack packages to appropriate locations for GOPATH + for x in ${A}; do + unpack ${x} + if [[ ${x} == *.tar.gz ]]; then + go_package=$(get_archive_go_package ${x}) + mkdir -p src/${go_package%/*} + mv ${go_package##*/}-* src/${go_package} || die + fi + done +} + +src_unpack() { + unpack_go_packages + # Create a writable GOROOT in order to avoid sandbox violations + # or other interference from installed instances. + export GOPATH="${WORKDIR}" GOROOT="${WORKDIR}/goroot" + cp -sR "${EPREFIX}"/usr/lib/go "${GOROOT}" || die + while read -r path; do + rm -rf "${GOROOT}/src/${path#${WORKDIR}/src}" \ + "${GOROOT}/pkg/linux_${ARCH}/${path#${WORKDIR}/src}" || die + done < <(find "${WORKDIR}"/src -maxdepth 3 -mindepth 3 -type d) +} + +src_prepare() { + # Avoid the need to have a git checkout + sed -e 's:^GIT.*::' \ + -e 's:-X main.GitCommit.*:" \\:' \ + -i scripts/build.sh || die + + # Disable tests that fail under network-sandbox + sed -e 's:TestServer_StartStop:_TestServer_StartStop:' \ + -i consul/server_test.go || die + sed -e 's:TestRetryJoin(:_TestRetryJoin(:' \ + -i command/agent/command_test.go || die +} + +src_compile() { + emake + + if use web; then + pushd ui >/dev/null || die + emake dist + fi +} + +src_install() { + local x + + dobin bin/* + rm -rf bin + + keepdir /etc/consul.d + insinto /etc/consul.d + doins "${FILESDIR}/"*.json.example + + for x in /var/{lib,log}/${PN}; do + keepdir "${x}" + fowners consul:consul "${x}" + done + + if use web; then + insinto /var/lib/${PN}/ui + doins -r ui/dist/* + fi + + newinitd "${FILESDIR}/consul.initd" "${PN}" + newconfd "${FILESDIR}/consul.confd" "${PN}" + systemd_dounit "${FILESDIR}/consul.service" + + find "${WORKDIR}"/{pkg,src} -name '.git*' -exec rm -rf {} \; 2>/dev/null + find "${WORKDIR}"/src/${GO_PN} -mindepth 1 -maxdepth 1 -type f -delete + while read -r -d '' x; do + x=${x#${WORKDIR}/src} + [[ -d ${WORKDIR}/pkg/${KERNEL}_${ARCH}/${x} || + -f ${WORKDIR}/pkg/${KERNEL}_${ARCH}/${x}.a ]] && continue + rm -rf "${WORKDIR}"/src/${x} + done < <(find "${WORKDIR}"/src/${GO_PN} -mindepth 1 -maxdepth 1 -type d -print0) + insopts -m0644 -p # preserve timestamps for bug 551486 + insinto /usr/lib/go/pkg/${KERNEL}_${ARCH}/${GO_PN%/*} + doins -r "${WORKDIR}"/pkg/${KERNEL}_${ARCH}/${GO_PN} + insinto /usr/lib/go/src/${GO_PN%/*} + doins -r "${WORKDIR}"/src/${GO_PN} +} diff --git a/app-admin/consul/consul-9999.ebuild b/app-admin/consul/consul-9999.ebuild new file mode 100644 index 000000000000..49971f1f012a --- /dev/null +++ b/app-admin/consul/consul-9999.ebuild @@ -0,0 +1,115 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit git-r3 systemd user + +KEYWORDS="" +DESCRIPTION="A tool for service discovery, monitoring and configuration" +HOMEPAGE="http://www.consul.io" +GO_PN="github.com/hashicorp/consul" +EGIT_REPO_URI="git://${GO_PN}.git" +LICENSE="MPL-2.0" +SLOT="0" +IUSE="test web" + +DEPEND=">=dev-lang/go-1.4:= + dev-go/go-crypto:= + test? ( dev-go/go-tools ) + web? ( + dev-ruby/sass + dev-ruby/uglifier + )" +RDEPEND="" +SRC_URI="" + +STRIP_MASK="*.a" +S="${WORKDIR}/src/${GO_PN}" +EGIT_CHECKOUT_DIR="${S}" + +pkg_setup() { + enewgroup consul + enewuser consul -1 -1 /var/lib/${PN} consul +} + +src_unpack() { + git-r3_src_unpack + cd "${S}" || die + + # Create a writable GOROOT in order to avoid sandbox violations + # or other interference from installed instances. + export GOPATH="${WORKDIR}" GOROOT="${WORKDIR}/goroot" + cp -sR "${EPREFIX}"/usr/lib/go "${GOROOT}" || die + + # Use latest versions of some packages, in case of incompatible + # API changes + rm -rf "${GOROOT}/src/${GO_PN%/*}" \ + "${GOROOT}/pkg/linux_${ARCH}/${GO_PN%/*}" || die + + # Fetch dependencies + emake deps + + # Avoid interference from installed instances + while read -r path; do + rm -rf "${GOROOT}/src/${path#${WORKDIR}/src}" \ + "${GOROOT}/pkg/linux_${ARCH}/${path#${WORKDIR}/src}" || die + done < <(find "${WORKDIR}"/src -maxdepth 3 -mindepth 3 -type d) +} + +src_prepare() { + # Disable tests that fail under network-sandbox + sed -e 's:TestServer_StartStop:_TestServer_StartStop:' \ + -i consul/server_test.go || die + sed -e 's:TestRetryJoin(:_TestRetryJoin(:' \ + -i command/agent/command_test.go || die +} + +src_compile() { + emake + + if use web; then + pushd ui >/dev/null || die + emake dist + fi +} + +src_install() { + local x + + dobin bin/* + rm -rf bin + + keepdir /etc/consul.d + insinto /etc/consul.d + doins "${FILESDIR}/"*.json.example + + for x in /var/{lib,log}/${PN}; do + keepdir "${x}" + fowners consul:consul "${x}" + done + + if use web; then + insinto /var/lib/${PN}/ui + doins -r ui/dist/* + fi + + newinitd "${FILESDIR}/consul.initd" "${PN}" + newconfd "${FILESDIR}/consul.confd" "${PN}" + systemd_dounit "${FILESDIR}/consul.service" + + find "${WORKDIR}"/{pkg,src} -name '.git*' -exec rm -rf {} \; 2>/dev/null + find "${WORKDIR}"/src/${GO_PN} -mindepth 1 -maxdepth 1 -type f -delete + while read -r -d '' x; do + x=${x#${WORKDIR}/src} + [[ -d ${WORKDIR}/pkg/${KERNEL}_${ARCH}/${x} || + -f ${WORKDIR}/pkg/${KERNEL}_${ARCH}/${x}.a ]] && continue + rm -rf "${WORKDIR}"/src/${x} + done < <(find "${WORKDIR}"/src/${GO_PN} -mindepth 1 -maxdepth 1 -type d -print0) + insopts -m0644 -p # preserve timestamps for bug 551486 + insinto /usr/lib/go/pkg/${KERNEL}_${ARCH}/${GO_PN%/*} + doins -r "${WORKDIR}"/pkg/${KERNEL}_${ARCH}/${GO_PN} + insinto /usr/lib/go/src/${GO_PN%/*} + doins -r "${WORKDIR}"/src/${GO_PN} +} diff --git a/app-admin/consul/files/bootstrap.json.example b/app-admin/consul/files/bootstrap.json.example new file mode 100644 index 000000000000..b7d573c0d2b3 --- /dev/null +++ b/app-admin/consul/files/bootstrap.json.example @@ -0,0 +1,4 @@ +{ + "server": true, + "bootstrap_expect": 1 +} diff --git a/app-admin/consul/files/consul.confd b/app-admin/consul/files/consul.confd new file mode 100644 index 000000000000..b15e19c77013 --- /dev/null +++ b/app-admin/consul/files/consul.confd @@ -0,0 +1,10 @@ +# you can change the init script behavior by setting those parameters +# - group (default: consul) +# - pidfile (default: /run/consul/consul.pid) +# - user (default: consul) + +# extra arguments for the consul agent +command_args="-config-dir=/etc/consul.d" + +# upstream strongly recommends > 1 +GOMAXPROCS=2 diff --git a/app-admin/consul/files/consul.initd b/app-admin/consul/files/consul.initd new file mode 100644 index 000000000000..1fb48d016aa1 --- /dev/null +++ b/app-admin/consul/files/consul.initd @@ -0,0 +1,40 @@ +#!/sbin/openrc-run +# Copyright 2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +description="consul agent" +extra_started_commands="reload" +export GOMAXPROCS=${GOMAXPROCS:-2} +group=${group:-${SVCNAME}} +pidfile=${pidfile:-"/run/${SVCNAME}/${SVCNAME}.pid"} +user=${user:-${SVCNAME}} + +command="/usr/bin/${SVCNAME}" +command_args="agent -config-dir=/etc/consul.d ${command_args}" +command_background="true" +start_stop_daemon_args="--user ${user} --group ${group} \ + --stdout /var/log/${SVCNAME}/${SVCNAME}.log \ + --stderr /var/log/${SVCNAME}/${SVCNAME}.log" + +depend() { + need net + after net +} + +reload() { + ebegin "Reloading ${SVCNAME}" + ${command} reload + eend $? +} + +start_pre() { + checkpath -d -m 0755 -o "${user}":"${group}" "${pidfile%/*}" +} + +stop() { + # SIGINT is required for graceful shutdown of consul agent + ebegin "Stopping ${SVCNAME}" + start-stop-daemon --stop --signal SIGINT --pidfile "${pidfile}" + eend $? +} diff --git a/app-admin/consul/files/consul.service b/app-admin/consul/files/consul.service new file mode 100644 index 000000000000..496fe4814789 --- /dev/null +++ b/app-admin/consul/files/consul.service @@ -0,0 +1,16 @@ +[Unit] +Description=consul agent +Requires=network-online.target +After=network-online.target + +[Service] +User=consul +Environment=GOMAXPROCS=2 +Environment=CONSUL_AGENT_OPTS="-config-dir=/etc/consul.d" +ExecStart=/usr/bin/consul agent $CONSUL_AGENT_OPTS +Restart=on-failure +KillSignal=SIGINT +ExecReload=/usr/bin/consul reload + +[Install] +WantedBy=default.target diff --git a/app-admin/consul/files/data-dir.json.example b/app-admin/consul/files/data-dir.json.example new file mode 100644 index 000000000000..af162113af62 --- /dev/null +++ b/app-admin/consul/files/data-dir.json.example @@ -0,0 +1,3 @@ +{ + "data_dir": "/var/lib/consul" +} diff --git a/app-admin/consul/files/ui-dir.json.example b/app-admin/consul/files/ui-dir.json.example new file mode 100644 index 000000000000..e5cf7464b123 --- /dev/null +++ b/app-admin/consul/files/ui-dir.json.example @@ -0,0 +1,3 @@ +{ + "ui_dir": "/var/lib/consul/ui" +} diff --git a/app-admin/consul/metadata.xml b/app-admin/consul/metadata.xml new file mode 100644 index 000000000000..fb274723e247 --- /dev/null +++ b/app-admin/consul/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> + <email>zmedico@gentoo.org</email> + </maintainer> + <maintainer> + <email>ultrabug@gentoo.org</email> + </maintainer> + <use> + <flag name="web">Build the web UI.</flag> + </use> +</pkgmetadata> diff --git a/app-admin/cpulimit/Manifest b/app-admin/cpulimit/Manifest new file mode 100644 index 000000000000..2830b644946a --- /dev/null +++ b/app-admin/cpulimit/Manifest @@ -0,0 +1 @@ +DIST cpulimit-1.8.tar.gz 20610 SHA256 8d0cdc3ec3e462f2ddc6debb195e1a4e7a19cce8233211f473d921f1c517d5f5 SHA512 3098236139b092eb706ec2a6b84528a090b3f4b8b3adfc8debda1b92ffa119ed9adc508898e0f98add593561f5f6b67d52e0966de01a682a6e2e885e3c47b0fa WHIRLPOOL f9be855b9a4b010c8456c2841afc3551a9a28bfc4a9ec3211e2c1e312bf43cdce9e1b745cc325342433feca5a73df03860469ea3a966d3bd37f7ad11a1627510 diff --git a/app-admin/cpulimit/cpulimit-1.8.ebuild b/app-admin/cpulimit/cpulimit-1.8.ebuild new file mode 100644 index 000000000000..2b101c19826b --- /dev/null +++ b/app-admin/cpulimit/cpulimit-1.8.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit toolchain-funcs + +DESCRIPTION="Limits the CPU usage of a process" +HOMEPAGE="http://cpulimit.sourceforge.net" +SRC_URI="mirror://sourceforge/limitcpu/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="" + +DEPEND="" +RDEPEND="" + +src_prepare() { + tc-export CC + # set correct VERSION + sed -i -e '/^#define VERSION/s/1.7/1.8/' cpulimit.c || die 'sed on VERSION string failed' +} + +src_install() { + dosbin ${PN} + doman "${FILESDIR}/${PN}.8" +} diff --git a/app-admin/cpulimit/files/cpulimit.8 b/app-admin/cpulimit/files/cpulimit.8 new file mode 100644 index 000000000000..8e6dcf9bbf42 --- /dev/null +++ b/app-admin/cpulimit/files/cpulimit.8 @@ -0,0 +1,49 @@ +.TH CPULIMIT "8" "July 2006" "cpulimit" "System Management" +.SH NAME +cpulimit -- limits the CPU usage of a process +.SH SYNOPSIS +.B cpulimit +\fITARGET \fR[\fIOPTIONS\fR...] +.SH DESCRIPTION +.P +\fITARGET \fRmust be exactly one of these: +.TP +\fB\-p\fR, \fB\-\-pid\fR=\fIN\fR +pid of the process +.TP +\fB\-e\fR, \fB\-\-exe\fR=\fIFILE\fR +name of the executable program file +.TP +\fB\-P\fR, \fB\-\-path\fR=\fIPATH\fR +absolute path name of the executable program file +.P +\fIOPTIONS\fR +.TP +\fB\-l\fR, \fB\-\-limit\fR=\fIN\fR +percentage of CPU allowed from 0 to 100 (mandatory) +.TP +\fB\-v\fR, \fB\-\-verbose\fR +show control statistics +.TP +\fB\-z\fR, \fB\-\-lazy\fR +exit if there is no suitable target process, or if it dies +.TP +\fB\-h\fR, \fB\-\-help\fR +display this help and exit +.SH EXAMPLES +Assuming you have started \fB`foo \-\-bar`\fR and you find out with \fItop\fR(1) or +\fIps\fR(1) that this process uses all your CPU time you can either +.TP +\[sh] \fBcpulimit \-e foo \-l 50\fR +limits the CPU usage of the process by acting on the executable program file +(note: the argument "\-\-bar" is omitted) +.TP +\[sh] \fBcpulimit \-p 1234 \-l 50\fR +limits the CPU usage of the process by acting on its PID, as shown by +\fIps\fR(1) +.TP +\[sh] \fBcpulimit \-P /usr/bin/foo \-l 50\fR +same as \fI\-e\fR but uses the absolute path name +.SH AUTHOR +This manpage was written for the Debian project by gregor herrmann +<gregor+debian@comodo.priv.at> but may be used by others. diff --git a/app-admin/cpulimit/metadata.xml b/app-admin/cpulimit/metadata.xml new file mode 100644 index 000000000000..39e355636da9 --- /dev/null +++ b/app-admin/cpulimit/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> + <email>nullishzero@gentoo.org</email> + <name>Pavel Kazakov</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">limitcpu</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/cronolog/Manifest b/app-admin/cronolog/Manifest new file mode 100644 index 000000000000..dc51c11a02a7 --- /dev/null +++ b/app-admin/cronolog/Manifest @@ -0,0 +1 @@ +DIST cronolog-1.6.2.tar.gz 133591 SHA256 65e91607643e5aa5b336f17636fa474eb6669acc89288e72feb2f54a27edb88e SHA512 786135aaa1359605840effb9a755c500970098ca32c1c4976c62f9d7481d24cecefe223ce8dcc34a139427259a6f3ba1c435c700a72ee07ed68ffc7f2d36e4ea WHIRLPOOL 2da26cdbbf3de135c1eaaaa4e932ed297f13ae05420f03a6b8f950c87c1d4ac067048058203dc9825e3a977aef7b44b24dbaf37b81c96c53e632e78121651506 diff --git a/app-admin/cronolog/cronolog-1.6.2-r3.ebuild b/app-admin/cronolog/cronolog-1.6.2-r3.ebuild new file mode 100644 index 000000000000..92a71342abc7 --- /dev/null +++ b/app-admin/cronolog/cronolog-1.6.2-r3.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils autotools + +DESCRIPTION="Cronolog apache logfile rotator" +HOMEPAGE="http://cronolog.org/" +SRC_URI="http://cronolog.org/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +RDEPEND="" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${PV}-patches/*.txt + + eautoreconf +} + +src_install() { + make DESTDIR="${D}" install || die + dodoc AUTHORS ChangeLog INSTALL NEWS README TODO +} diff --git a/app-admin/cronolog/cronolog-1.6.2-r4.ebuild b/app-admin/cronolog/cronolog-1.6.2-r4.ebuild new file mode 100644 index 000000000000..a278eb2f8fad --- /dev/null +++ b/app-admin/cronolog/cronolog-1.6.2-r4.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils autotools + +DESCRIPTION="Cronolog apache logfile rotator" +HOMEPAGE="http://cronolog.org/" +SRC_URI="http://cronolog.org/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~arm ~ppc x86" +IUSE="" + +RDEPEND="" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${PV}-patches/*.txt + # patch written for infra usage + epatch "${FILESDIR}"/${PN}-1.6.2-umask.patch + + eautoreconf +} + +src_install() { + make DESTDIR="${D}" install || die + dodoc AUTHORS ChangeLog INSTALL NEWS README TODO +} diff --git a/app-admin/cronolog/files/1.6.2-patches/cronolog-define-strptime.patch.txt b/app-admin/cronolog/files/1.6.2-patches/cronolog-define-strptime.patch.txt new file mode 100644 index 000000000000..a56112aed495 --- /dev/null +++ b/app-admin/cronolog/files/1.6.2-patches/cronolog-define-strptime.patch.txt @@ -0,0 +1,11 @@ +diff -urb cronolog-1.6.2/src/cronoutils.c cronolog-1.6.2-patched/src/cronoutils.c +--- cronolog-1.6.2/src/cronoutils.c 2001-05-03 09:43:21.000000000 -0700 ++++ cronolog-1.6.2/src/cronoutils.c 2008-01-05 22:08:42.000000000 -0800 +@@ -69,6 +69,8 @@ + * + */ + ++#define _GNU_SOURCE ++ + #include "cronoutils.h" + extern char *tzname[2]; diff --git a/app-admin/cronolog/files/1.6.2-patches/cronolog-doc.patch.txt b/app-admin/cronolog/files/1.6.2-patches/cronolog-doc.patch.txt new file mode 100644 index 000000000000..ca3eb91e8079 --- /dev/null +++ b/app-admin/cronolog/files/1.6.2-patches/cronolog-doc.patch.txt @@ -0,0 +1,12 @@ +diff -ur cronolog-1.6.2/doc/cronolog.1m cronolog-1.6.2/doc/cronolog.1m +--- cronolog-1.6.2/doc/cronolog.1m 2001-05-04 01:44:55.000000000 -0700 ++++ cronolog-1.6.2/doc/cronolog.1m 2008-01-06 00:43:33.000000000 -0800 +@@ -77,7 +77,7 @@ + to the current log file. + .\" + .IP "-P \fINAME\fP" +-.IP "--prevlink=\fINAME\fP" ++.IP "--prev-symlink=\fINAME\fP" + maintain a symbolic link from + .I NAME + to the previous log file. Requires that the diff --git a/app-admin/cronolog/files/1.6.2-patches/cronolog-getopt-long.patch.txt b/app-admin/cronolog/files/1.6.2-patches/cronolog-getopt-long.patch.txt new file mode 100644 index 000000000000..a6ec261ee44b --- /dev/null +++ b/app-admin/cronolog/files/1.6.2-patches/cronolog-getopt-long.patch.txt @@ -0,0 +1,24 @@ +diff -urp cronolog-1.6.2/src/cronolog.c cronolog-1.6.2/src/cronolog.c +--- cronolog-1.6.2/src/cronolog.c 2001-05-03 09:42:48.000000000 -0700 ++++ cronolog-1.6.2/src/cronolog.c 2008-01-05 23:54:53.000000000 -0800 +@@ -139,7 +139,8 @@ struct option long_options[] = + { "delay", required_argument, NULL, 'd' }, + { "once-only", no_argument, NULL, 'o' }, + { "help", no_argument, NULL, 'h' }, +- { "version", no_argument, NULL, 'V' } ++ { "version", no_argument, NULL, 'V' }, ++ { NULL, 0, NULL, 0 } + }; + #endif + +diff -urp cronolog-1.6.2/src/cronotest.c cronolog-1.6.2/src/cronotest.c +--- cronolog-1.6.2/src/cronotest.c 2001-05-03 09:26:44.000000000 -0700 ++++ cronolog-1.6.2/src/cronotest.c 2008-01-06 00:02:24.000000000 -0800 +@@ -112,7 +112,8 @@ struct option long_options[] = + { "test-subdirs", required_argument, NULL, 'D' }, + { "help", no_argument, NULL, 'h' }, + { "version", no_argument, NULL, 'V' }, +- { "verbose", no_argument, NULL, 'v' } ++ { "verbose", no_argument, NULL, 'v' }, ++ { NULL, 0, NULL, 0 } + }; diff --git a/app-admin/cronolog/files/1.6.2-patches/cronolog-large-file-patch.txt b/app-admin/cronolog/files/1.6.2-patches/cronolog-large-file-patch.txt new file mode 100644 index 000000000000..862b12d04205 --- /dev/null +++ b/app-admin/cronolog/files/1.6.2-patches/cronolog-large-file-patch.txt @@ -0,0 +1,27 @@ +--- tmp/cronolog.c 2003-10-13 12:35:17.000000000 +0000 ++++ src/cronolog.c 2003-10-13 12:36:36.000000000 +0000 +@@ -82,6 +82,8 @@ + * written to "file" (e.g. /dev/console) or to stderr if "file" is "-". + */ + ++#define _GNU_SOURCE 1 ++ + #include "cronoutils.h" + #include "getopt.h" + +@@ -394,13 +396,13 @@ + timestamp(*pnext_period), *pnext_period, + *pnext_period - time_now)); + +- log_fd = open(pfilename, O_WRONLY|O_CREAT|O_APPEND, FILE_MODE); ++ log_fd = open(pfilename, O_WRONLY|O_CREAT|O_APPEND|O_LARGEFILE, FILE_MODE); + + #ifndef DONT_CREATE_SUBDIRS + if ((log_fd < 0) && (errno == ENOENT)) + { + create_subdirs(pfilename); +- log_fd = open(pfilename, O_WRONLY|O_CREAT|O_APPEND, FILE_MODE); ++ log_fd = open(pfilename, O_WRONLY|O_CREAT|O_APPEND|O_LARGEFILE, FILE_MODE); + } + #endif + diff --git a/app-admin/cronolog/files/1.6.2-patches/cronolog-missing-symlink-patch.txt b/app-admin/cronolog/files/1.6.2-patches/cronolog-missing-symlink-patch.txt new file mode 100644 index 000000000000..1309b0099a37 --- /dev/null +++ b/app-admin/cronolog/files/1.6.2-patches/cronolog-missing-symlink-patch.txt @@ -0,0 +1,11 @@ +--- tmp/cronoutils.c 2003-10-13 12:44:59.000000000 +0000 ++++ src/cronoutils.c 2003-10-13 12:45:08.000000000 +0000 +@@ -199,7 +199,7 @@ + { + unlink(prevlinkname); + } +- if (stat(linkname, &stat_buf) == 0) ++ if (lstat(linkname, &stat_buf) == 0) + { + if (prevlinkname) { + rename(linkname, prevlinkname); diff --git a/app-admin/cronolog/files/1.6.2-patches/cronolog-setugid-patch.txt b/app-admin/cronolog/files/1.6.2-patches/cronolog-setugid-patch.txt new file mode 100644 index 000000000000..d364d88bb000 --- /dev/null +++ b/app-admin/cronolog/files/1.6.2-patches/cronolog-setugid-patch.txt @@ -0,0 +1,390 @@ +diff -Naur cronolog-1.6.2/configure cronolog-1.6.2-new/configure +--- cronolog-1.6.2/configure Thu May 3 17:44:22 2001 ++++ cronolog-1.6.2-new/configure Mon Jun 3 00:38:32 2002 +@@ -1757,15 +1757,49 @@ + + fi + ++echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 ++echo "configure:1762: checking for uid_t in sys/types.h" >&5 ++if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then ++ echo $ac_n "(cached) $ac_c" 1>&6 ++else ++ cat > conftest.$ac_ext <<EOF ++#line 1767 "configure" ++#include "confdefs.h" ++#include <sys/types.h> ++EOF ++if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ++ egrep "uid_t" >/dev/null 2>&1; then ++ rm -rf conftest* ++ ac_cv_type_uid_t=yes ++else ++ rm -rf conftest* ++ ac_cv_type_uid_t=no ++fi ++rm -f conftest* ++ ++fi ++ ++echo "$ac_t""$ac_cv_type_uid_t" 1>&6 ++if test $ac_cv_type_uid_t = no; then ++ cat >> confdefs.h <<\EOF ++#define uid_t int ++EOF ++ ++ cat >> confdefs.h <<\EOF ++#define gid_t int ++EOF ++ ++fi ++ + + + echo $ac_n "checking for strftime""... $ac_c" 1>&6 +-echo "configure:1764: checking for strftime" >&5 ++echo "configure:1798: checking for strftime" >&5 + if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 1769 "configure" ++#line 1803 "configure" + #include "confdefs.h" + /* System header to define __stub macros and hopefully few prototypes, + which can conflict with char strftime(); below. */ +@@ -1788,7 +1822,7 @@ + + ; return 0; } + EOF +-if { (eval echo configure:1792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:1826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_strftime=yes" + else +@@ -1810,7 +1844,7 @@ + echo "$ac_t""no" 1>&6 + # strftime is in -lintl on SCO UNIX. + echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6 +-echo "configure:1814: checking for strftime in -lintl" >&5 ++echo "configure:1848: checking for strftime in -lintl" >&5 + ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +@@ -1818,7 +1852,7 @@ + ac_save_LIBS="$LIBS" + LIBS="-lintl $LIBS" + cat > conftest.$ac_ext <<EOF +-#line 1822 "configure" ++#line 1856 "configure" + #include "confdefs.h" + /* Override any gcc2 internal prototype to avoid an error. */ + /* We use char because int might match the return type of a gcc2 +@@ -1829,7 +1863,7 @@ + strftime() + ; return 0; } + EOF +-if { (eval echo configure:1833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:1867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" + else +@@ -1856,12 +1890,12 @@ + fi + + echo $ac_n "checking for vprintf""... $ac_c" 1>&6 +-echo "configure:1860: checking for vprintf" >&5 ++echo "configure:1894: checking for vprintf" >&5 + if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 1865 "configure" ++#line 1899 "configure" + #include "confdefs.h" + /* System header to define __stub macros and hopefully few prototypes, + which can conflict with char vprintf(); below. */ +@@ -1884,7 +1918,7 @@ + + ; return 0; } + EOF +-if { (eval echo configure:1888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:1922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_vprintf=yes" + else +@@ -1908,12 +1942,12 @@ + + if test "$ac_cv_func_vprintf" != yes; then + echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 +-echo "configure:1912: checking for _doprnt" >&5 ++echo "configure:1946: checking for _doprnt" >&5 + if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 1917 "configure" ++#line 1951 "configure" + #include "confdefs.h" + /* System header to define __stub macros and hopefully few prototypes, + which can conflict with char _doprnt(); below. */ +@@ -1936,7 +1970,7 @@ + + ; return 0; } + EOF +-if { (eval echo configure:1940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:1974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func__doprnt=yes" + else +@@ -1963,12 +1997,12 @@ + for ac_func in mkdir mktime putenv + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:1967: checking for $ac_func" >&5 ++echo "configure:2001: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 1972 "configure" ++#line 2006 "configure" + #include "confdefs.h" + /* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func(); below. */ +@@ -1991,7 +2025,7 @@ + + ; return 0; } + EOF +-if { (eval echo configure:1995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:2029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -2018,12 +2052,12 @@ + for ac_func in strptime localtime_r + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:2022: checking for $ac_func" >&5 ++echo "configure:2056: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 2027 "configure" ++#line 2061 "configure" + #include "confdefs.h" + /* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func(); below. */ +@@ -2046,7 +2080,7 @@ + + ; return 0; } + EOF +-if { (eval echo configure:2050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:2084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +diff -Naur cronolog-1.6.2/configure.in cronolog-1.6.2-new/configure.in +--- cronolog-1.6.2/configure.in Thu May 3 17:30:50 2001 ++++ cronolog-1.6.2-new/configure.in Mon Jun 3 00:38:32 2002 +@@ -56,6 +56,7 @@ + AC_C_CONST + AC_TYPE_SIZE_T + AC_STRUCT_TM ++AC_TYPE_UID_T + + dnl Checks for library functions. + +diff -Naur cronolog-1.6.2/doc/cronolog.1m cronolog-1.6.2-new/doc/cronolog.1m +--- cronolog-1.6.2/doc/cronolog.1m Fri May 4 09:44:55 2001 ++++ cronolog-1.6.2-new/doc/cronolog.1m Mon Jun 3 00:39:10 2002 +@@ -89,6 +89,20 @@ + .IP --help + print a help message and then exit. + .\" ++.IP "-u \fIUSER\fP" ++.IP "--set-uid=\fIUSER\fP" ++sets the user ID of the cronolog process before any logs are opened. ++\fIUSER\fP can be a username or a numeric user ID. If \fIUSER\fP ++contains solely digits, it will be assumed to be a numeric user ID; ++otherwise, it will be assumed to be a username. ++.\" ++.IP "-g \fIGROUP\fP" ++.IP "--set-gid=\fIGROUP\fP" ++sets the group ID of the cronolog process before any logs are opened. ++\fIGROUP\fP can be a group name or a numeric group ID. If \fIGROUP\fP ++contains solely digits, it will be assumed to be a numeric group ID; ++otherwise, it will be assumed to be a group name. ++.\" + .IP "-p \fIPERIOD\fP" + .IP "--period=\fIPERIOD\fP" + specifies the period explicitly as an optional digit string followed +diff -Naur cronolog-1.6.2/src/cronolog.c cronolog-1.6.2-new/src/cronolog.c +--- cronolog-1.6.2/src/cronolog.c Thu May 3 17:42:48 2001 ++++ cronolog-1.6.2-new/src/cronolog.c Mon Jun 3 00:38:32 2002 +@@ -100,6 +100,12 @@ + #define VERSION_MSG "cronolog version 0.1\n" + #endif + ++#ifndef _WIN32 ++#define SETUGID_USAGE " -u USER, --set-uid=USER change to USER before doing anything (name or UID)\n" \ ++ " -g GROUP, --set-gid=GROUP change to GROUP before doing anything (name or GID)\n" ++#else ++#define SETUGID_USAGE "" ++#endif + + #define USAGE_MSG "usage: %s [OPTIONS] logfile-spec\n" \ + "\n" \ +@@ -117,12 +123,17 @@ + " -e, --european European date formats (default)\n" \ + " -s, --start-time=TIME starting time\n" \ + " -z TZ, --time-zone=TZ use TZ for timezone\n" \ ++ SETUGID_USAGE \ + " -V, --version print version number, then exit\n" + + + /* Definition of the short and long program options */ + ++#ifndef _WIN32 ++char *short_options = "ad:eop:s:z:H:P:S:l:hVx:u:g:"; ++#else + char *short_options = "ad:eop:s:z:H:P:S:l:hVx:"; ++#endif + + #ifndef _WIN32 + struct option long_options[] = +@@ -137,6 +148,8 @@ + { "link", required_argument, NULL, 'l' }, + { "period", required_argument, NULL, 'p' }, + { "delay", required_argument, NULL, 'd' }, ++ { "set-uid", required_argument, NULL, 'u' }, ++ { "set-gid", required_argument, NULL, 'g' }, + { "once-only", no_argument, NULL, 'o' }, + { "help", no_argument, NULL, 'h' }, + { "version", no_argument, NULL, 'V' } +@@ -160,6 +173,12 @@ + char *template; + char *linkname = NULL; + char *prevlinkname = NULL; ++#ifndef _WIN32 ++ uid_t new_uid = 0; ++ gid_t new_gid = 0; ++ int change_uid = 0; ++ int change_gid = 0; ++#endif + mode_t linktype = 0; + int n_bytes_read; + int ch; +@@ -234,6 +253,16 @@ + } + break; + ++#ifndef _WIN32 ++ case 'u': ++ new_uid = parse_uid(optarg, argv[0]); ++ change_uid = 1; ++ break; ++ case 'g': ++ new_gid = parse_gid(optarg, argv[0]); ++ change_gid = 1; ++ break; ++#endif + case 'o': + periodicity = ONCE_ONLY; + break; +@@ -265,6 +294,17 @@ + fprintf(stderr, USAGE_MSG, argv[0]); + exit(1); + } ++ ++#ifndef _WIN32 ++ if (change_gid && setgid(new_gid) == -1) { ++ fprintf(stderr, "setgid: unable to change to gid: %d\n", new_gid); ++ exit(1); ++ } ++ if (change_uid && setuid(new_uid) == -1) { ++ fprintf(stderr, "setuid: unable to change to uid: %d\n", new_uid); ++ exit(1); ++ } ++#endif + + DEBUG((VERSION_MSG "\n")); + +diff -Naur cronolog-1.6.2/src/cronoutils.c cronolog-1.6.2-new/src/cronoutils.c +--- cronolog-1.6.2/src/cronoutils.c Thu May 3 17:43:21 2001 ++++ cronolog-1.6.2-new/src/cronoutils.c Mon Jun 3 00:38:32 2002 +@@ -710,4 +710,50 @@ + return retval; + } + +- ++ ++#ifndef _WIN32 ++/* Turn a string specifying either a username or UID into an actual ++ * uid_t for use in setuid(). A string is assumed to be a UID if ++ * it contains only decimal digits. */ ++uid_t ++parse_uid(char *user, char *argv0) ++{ ++ char *probe = user; ++ struct passwd *ent; ++ ++ while (*probe && isdigit(*probe)) { ++ probe++; ++ } ++ if (!(*probe)) { ++ return atoi(user); ++ } ++ if (!(ent = getpwnam(user))) { ++ fprintf(stderr, "%s: Bad username %s\n", argv0, user); ++ exit(1); ++ } ++ return (ent->pw_uid); ++} ++ ++ ++/* Turn a string specifying either a group name or GID into an actual ++ * gid_t for use in setgid(). A string is assumed to be a GID if ++ * it contains only decimal digits. */ ++gid_t ++parse_gid(char *group, char *argv0) ++{ ++ char *probe = group; ++ struct group *ent; ++ ++ while (*probe && isdigit(*probe)) { ++ probe++; ++ } ++ if (!(*probe)) { ++ return atoi(group); ++ } ++ if (!(ent = getgrnam(group))) { ++ fprintf(stderr, "%s: Bad group name %s\n", argv0, group); ++ exit(1); ++ } ++ return (ent->gr_gid); ++} ++#endif /* _WIN32 */ +diff -Naur cronolog-1.6.2/src/cronoutils.h cronolog-1.6.2-new/src/cronoutils.h +--- cronolog-1.6.2/src/cronoutils.h Thu May 3 17:40:12 2001 ++++ cronolog-1.6.2-new/src/cronoutils.h Mon Jun 3 00:38:32 2002 +@@ -84,6 +84,8 @@ + #include <limits.h> + #ifndef _WIN32 + #include <unistd.h> ++#include <pwd.h> ++#include <grp.h> + #else + #include <io.h> + #include <direct.h> +@@ -172,7 +174,8 @@ + void print_debug_msg(char *msg, ...); + time_t parse_time(char *time_str, int); + char *timestamp(time_t thetime); +- ++uid_t parse_uid(char *user, char *argv0); ++gid_t parse_gid(char *group, char *argv0); + + /* Global variables */ + diff --git a/app-admin/cronolog/files/1.6.2-patches/cronolog-sigusr1-patch.txt b/app-admin/cronolog/files/1.6.2-patches/cronolog-sigusr1-patch.txt new file mode 100644 index 000000000000..b3be359c260d --- /dev/null +++ b/app-admin/cronolog/files/1.6.2-patches/cronolog-sigusr1-patch.txt @@ -0,0 +1,46 @@ +*** src/cronolog.c.orig 2001-05-03 17:42:48.000000000 +0100 +--- src/cronolog.c 2003-08-15 14:03:17.000000000 +0100 +*************** +*** 84,95 **** +--- 84,97 ---- + + #include "cronoutils.h" + #include "getopt.h" ++ #include <signal.h> + + + /* Forward function declaration */ + + int new_log_file(const char *, const char *, mode_t, const char *, + PERIODICITY, int, int, char *, size_t, time_t, time_t *); ++ void terminate_self(int); + + + /* Definition of version and usage messages */ +*************** +*** 306,311 **** +--- 308,317 ---- + DEBUG(("Rotation period is per %d %s\n", period_multiple, periods[periodicity])); + + ++ /* set up signal handlers to catch USR1 and HUP when restarting Apache */ ++ signal(SIGUSR1, terminate_self); ++ signal(SIGHUP, terminate_self); ++ + /* Loop, waiting for data on standard input */ + + for (;;) +*************** +*** 416,418 **** +--- 422,432 ---- + } + return log_fd; + } ++ ++ void terminate_self(int sig) ++ { ++ time_t time_now = time(NULL); ++ DEBUG(("%s (%d): received signal USR1; terminating.\n", ++ timestamp(time_now), time_now)); ++ exit(6); ++ } diff --git a/app-admin/cronolog/files/1.6.2-patches/cronolog-strftime-patch.txt b/app-admin/cronolog/files/1.6.2-patches/cronolog-strftime-patch.txt new file mode 100644 index 000000000000..ae0199f140d4 --- /dev/null +++ b/app-admin/cronolog/files/1.6.2-patches/cronolog-strftime-patch.txt @@ -0,0 +1,26 @@ +--- cronolog-1.6.1/src/cronoutils.c Mon Dec 20 00:34:44 1999 ++++ cronolog-1.6.1.new/src/cronoutils.c Mon Feb 11 03:19:32 2002 +@@ -204,9 +204,21 @@ + { + if (ch == '%') + { +- ch = *spec++; +- if (!ch) break; ++ do { ++ ch = *spec++; ++ if (!ch) break; + ++ switch(ch) { ++ case '_': ++ case '-': ++ case '0': ++ continue; ++ } ++ break; ++ } while(1); ++ ++ if(!ch) break; ++ + switch (ch) + { + case 'y': /* two digit year */ diff --git a/app-admin/cronolog/files/cronolog-1.6.2-umask.patch b/app-admin/cronolog/files/cronolog-1.6.2-umask.patch new file mode 100644 index 000000000000..a02e05737d89 --- /dev/null +++ b/app-admin/cronolog/files/cronolog-1.6.2-umask.patch @@ -0,0 +1,86 @@ +Add umask support to cronolog. + +Patch-by: Mike Doty <kingtaco@gentoo.org> +Signed-off-By: Robin H. Johnson <robbat2@gentoo.org> + +--- src/cronolog.c.orig 2010-01-22 16:49:41.000000000 -0800 ++++ src/cronolog.c 2010-01-22 17:31:50.000000000 -0800 +@@ -106,7 +106,8 @@ + + #ifndef _WIN32 + #define SETUGID_USAGE " -u USER, --set-uid=USER change to USER before doing anything (name or UID)\n" \ +- " -g GROUP, --set-gid=GROUP change to GROUP before doing anything (name or GID)\n" ++ " -g GROUP, --set-gid=GROUP change to GROUP before doing anything (name or GID)\n" \ ++ " -U OCTAL, --umask=OCTAL sets umask of file/directory creation\n" + #else + #define SETUGID_USAGE "" + #endif +@@ -134,7 +135,7 @@ + /* Definition of the short and long program options */ + + #ifndef _WIN32 +-char *short_options = "ad:eop:s:z:H:P:S:l:hVx:u:g:"; ++char *short_options = "ad:eop:s:z:H:P:S:l:hVx:u:g:U:"; + #else + char *short_options = "ad:eop:s:z:H:P:S:l:hVx:"; + #endif +@@ -157,10 +158,16 @@ + { "once-only", no_argument, NULL, 'o' }, + { "help", no_argument, NULL, 'h' }, + { "version", no_argument, NULL, 'V' }, ++ { "umask", required_argument, NULL, 'U' }, + { NULL, 0, NULL, 0 } + }; + #endif + ++#ifndef _WIN32 ++static mode_t saved_umask = 0; ++static mode_t new_umask = 0; ++#endif ++ + /* Main function. + */ + int +@@ -193,6 +200,11 @@ + int log_fd = -1; + + #ifndef _WIN32 ++ new_umask=umask(0); ++ umask(new_umask); ++#endif ++ ++#ifndef _WIN32 + while ((ch = getopt_long(argc, argv, short_options, long_options, NULL)) != EOF) + #else + while ((ch = getopt(argc, argv, short_options)) != EOF) +@@ -267,6 +279,9 @@ + new_gid = parse_gid(optarg, argv[0]); + change_gid = 1; + break; ++ case 'U': ++ new_umask = (mode_t)strtol(optarg, NULL, 8); ++ break; + #endif + case 'o': + periodicity = ONCE_ONLY; +@@ -443,6 +458,9 @@ + timestamp(*pnext_period), *pnext_period, + *pnext_period - time_now)); + ++#ifndef _WIN32 ++ saved_umask=umask(new_umask); ++#endif + log_fd = open(pfilename, O_WRONLY|O_CREAT|O_APPEND|O_LARGEFILE, FILE_MODE); + + #ifndef DONT_CREATE_SUBDIRS +@@ -459,6 +477,10 @@ + exit(2); + } + ++#ifndef _WIN32 ++ umask(saved_umask); ++#endif ++ + if (linkname) + { + create_link(pfilename, linkname, linktype, prevlinkname); diff --git a/app-admin/cronolog/metadata.xml b/app-admin/cronolog/metadata.xml new file mode 100644 index 000000000000..6752c3ce0db6 --- /dev/null +++ b/app-admin/cronolog/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> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <longdescription lang="en"> + Cronolog is a simple filter program that reads log file entries from + standard input and writes each entry to the output file specified by a + filename template and the current date and time. When the expanded + filename changes, the current file is closed and a new one opened. + cronolog is intended to be used in conjunction with a Web server, such + as Apache, to split the access log into daily or monthly logs. + </longdescription> +</pkgmetadata> + diff --git a/app-admin/denyhosts/Manifest b/app-admin/denyhosts/Manifest new file mode 100644 index 000000000000..7750d7bef32a --- /dev/null +++ b/app-admin/denyhosts/Manifest @@ -0,0 +1,3 @@ +DIST DenyHosts-2.6.tar.gz 42667 SHA256 5190ead13a7238e3ccf328cb3b71b16716e1c73939909a4f3fa6904ba58ddf7d SHA512 331144348d4930e2fa7a057a779bb7504dfa8ec348660e1a73fcd6a9195258408abb7c77de2bcc96724dfc42afbee918320eebfbc3b380d6ac4ff2d275e89600 WHIRLPOOL a414cd3013508876e63253ffc9c46d12179cca76249ee00cbf66c04c7b88a8578c79bea4d098149081aa83dca115947b10214f3aa8b82bdd78d764032849e27a +DIST denyhosts-2.9.tar.gz 49472 SHA256 751ce6f11c91d1f29c2e726e829c8fe5ddc417bfbb2f229829f5ec820c236716 SHA512 f41e2985e84f0eeaa493def6b8609de934889d02b124962b0bfd02ebe5e41d0670822124eb50ed84eb1c3b8a2a96775fbe09386cef48a3c3e04949fd6b1452c1 WHIRLPOOL 6930899d84a50200c869298cf1061d51a0cebab27edea58252a66c97c81792b13898a726a6bbcba35510cc6041b66d175557d2ddfb5c21c2ae5b62bd4e43fe5d +DIST denyhosts-3.0.tar.gz 56283 SHA256 581cd3b782d7b702f41873ae52d39472d27c90ebd1b2178802cdd623e8e94240 SHA512 8a1c796c259049ffab2c88cef780b175ec75c94216841421f831dfbf45f4ba0cdbcfbb0e3dab7200aa79eeb2416db5234ad5016d5770d8ab2f28ef4c9754e70d WHIRLPOOL 6b8db8e88a5f1693d4a72ea54009b5d185b035040c9407585f829b0f8f918bcbfa38623b0ecb08157256da045427b8b5111f7dc8f520505c56aefdaf1a02a154 diff --git a/app-admin/denyhosts/denyhosts-2.6-r10.ebuild b/app-admin/denyhosts/denyhosts-2.6-r10.ebuild new file mode 100644 index 000000000000..ad3022a9dfb6 --- /dev/null +++ b/app-admin/denyhosts/denyhosts-2.6-r10.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 eutils readme.gentoo systemd + +MY_PN="DenyHosts" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="DenyHosts is a utility to help sys admins thwart ssh hackers" +HOMEPAGE="http://www.denyhosts.net" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ppc sparc x86" +IUSE="" + +DEPEND="" +RDEPEND="" + +S="${WORKDIR}/${MY_P}" + +DISABLE_AUTOFORMATTING="yes" +DOC_CONTENTS=" +You can configure DenyHosts to run as a daemon by running: +# rc-update add denyhosts default +or: +# systemctl enable denyhosts.service +(if you use systemd) + +To run DenyHosts as a cronjob instead of a daemon add the following +to /etc/crontab +# run DenyHosts every 10 minutes +*/10 * * * * root /usr/bin/denyhosts.py -c /etc/denyhosts.conf + +More information can be found at http://denyhosts.sourceforge.net/faq.html" + +src_prepare() { + # changes default file installations + epatch "${FILESDIR}"/${P}-gentoo.patch + epatch "${FILESDIR}"/${P}-log-injection-regex.patch + + # Multiple patches from Fedora and Debian + epatch "${FILESDIR}"/${P}-daemon-control.patch + epatch "${FILESDIR}"/${P}-defconffile.patch + epatch "${FILESDIR}"/${P}-foreground_mode.patch + epatch "${FILESDIR}"/${P}-hostname.patch + epatch "${FILESDIR}"/${P}-plugin_deny.patch + epatch "${FILESDIR}"/${P}-single_config_switch.patch + + epatch "${FILESDIR}"/${P}-cve-2013-6890.patch + + sed -i -e 's:DENY_THRESHOLD_VALID = 10:DENY_THRESHOLD_VALID = 5:' \ + denyhosts.cfg-dist || die "sed failed" + + distutils-r1_src_prepare +} + +src_install() { + readme.gentoo_create_doc + + dodoc CHANGELOG.txt README.txt PKG-INFO + distutils-r1_src_install + + insinto /etc + insopts -m0640 + newins denyhosts.cfg-dist denyhosts.conf + + dodir /etc/logrotate.d + insinto /etc/logrotate.d + newins "${FILESDIR}"/${PN}.logrotate-r2 ${PN} + + newinitd "${FILESDIR}"/denyhosts.init-r2 denyhosts + systemd_dounit "${FILESDIR}"/${PN}.service + + # build system installs docs that we installed above + rm -f "${D}"/usr/share/denyhosts/*.txt + + keepdir /var/lib/denyhosts +} + +pkg_postinst() { + if [[ ! -f "${ROOT}etc/hosts.deny" ]]; then + touch "${ROOT}etc/hosts.deny" + fi + + readme.gentoo_print_elog +} diff --git a/app-admin/denyhosts/denyhosts-2.6-r9.ebuild b/app-admin/denyhosts/denyhosts-2.6-r9.ebuild new file mode 100644 index 000000000000..349e25ad8d0e --- /dev/null +++ b/app-admin/denyhosts/denyhosts-2.6-r9.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 eutils readme.gentoo systemd + +MY_PN="DenyHosts" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="DenyHosts is a utility to help sys admins thwart ssh hackers" +HOMEPAGE="http://www.denyhosts.net" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ppc sparc x86" +IUSE="" + +DEPEND="" +RDEPEND="" + +S="${WORKDIR}/${MY_P}" + +DISABLE_AUTOFORMATTING="yes" +DOC_CONTENTS=" +You can configure DenyHosts to run as a daemon by running: +# rc-update add denyhosts default +or: +# systemctl enable denyhosts.service +(if you use systemd) + +To run DenyHosts as a cronjob instead of a daemon add the following +to /etc/crontab +# run DenyHosts every 10 minutes +*/10 * * * * root /usr/bin/denyhosts.py -c /etc/denyhosts.conf + +More information can be found at http://denyhosts.sourceforge.net/faq.html" + +src_prepare() { + # changes default file installations + epatch "${FILESDIR}"/${P}-gentoo.patch + epatch "${FILESDIR}"/${P}-log-injection-regex.patch + + # Multiple patches from Fedora and Debian + epatch "${FILESDIR}"/${P}-daemon-control.patch + epatch "${FILESDIR}"/${P}-defconffile.patch + epatch "${FILESDIR}"/${P}-foreground_mode.patch + epatch "${FILESDIR}"/${P}-hostname.patch + epatch "${FILESDIR}"/${P}-plugin_deny.patch + epatch "${FILESDIR}"/${P}-single_config_switch.patch + + epatch "${FILESDIR}"/${P}-cve-2013-6890.patch + + sed -i -e 's:DENY_THRESHOLD_VALID = 10:DENY_THRESHOLD_VALID = 5:' \ + denyhosts.cfg-dist || die "sed failed" + + distutils-r1_src_prepare +} + +src_install() { + readme.gentoo_create_doc + + dodoc CHANGELOG.txt README.txt PKG-INFO + distutils-r1_src_install + + insinto /etc + insopts -m0640 + newins denyhosts.cfg-dist denyhosts.conf + + dodir /etc/logrotate.d + insinto /etc/logrotate.d + newins "${FILESDIR}"/${PN}.logrotate ${PN} + + newinitd "${FILESDIR}"/denyhosts.init-r2 denyhosts + systemd_dounit "${FILESDIR}"/${PN}.service + + # build system installs docs that we installed above + rm -f "${D}"/usr/share/denyhosts/*.txt + + keepdir /var/lib/denyhosts +} + +pkg_postinst() { + if [[ ! -f "${ROOT}etc/hosts.deny" ]]; then + touch "${ROOT}etc/hosts.deny" + fi + + readme.gentoo_print_elog +} diff --git a/app-admin/denyhosts/denyhosts-2.9.ebuild b/app-admin/denyhosts/denyhosts-2.9.ebuild new file mode 100644 index 000000000000..4e4c52a3983d --- /dev/null +++ b/app-admin/denyhosts/denyhosts-2.9.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 eutils readme.gentoo systemd + +DESCRIPTION="DenyHosts is a utility to help sys admins thwart ssh hackers" +HOMEPAGE="http://denyhost.sourceforge.net/" +SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm ~hppa ~ppc ~sparc x86" +IUSE="" + +DEPEND="" +RDEPEND="" + +DISABLE_AUTOFORMATTING="yes" +DOC_CONTENTS=" +>=net-misc/openssh-6.7p1 dropped support for sys-apps/tcp-wrappers +(see bug#531156) that means you either have patch openssh or use +denyhosts' iptables feature to get any protection. + +You can configure DenyHosts to run as a daemon by running: +# rc-update add denyhosts default +or: +# systemctl enable denyhosts.service +(if you use systemd) + +To run DenyHosts as a cronjob instead of a daemon add the following +to /etc/crontab +# run DenyHosts every 10 minutes +*/10 * * * * root /usr/bin/denyhosts.py -c /etc/denyhosts.conf + +More information can be found at ${HOMEPAGE}faq.html" + +src_prepare() { + #systemd needs HOSTNAME + epatch "${FILESDIR}"/${PN}-2.6-hostname.patch + + sed -e '/^DENY_THRESHOLD_VALID =/s/=.*/= 5/' \ + -e '/^SECURE_LOG/s/^/#/' \ + -e '\@#SECURE_LOG.*/var/log/messages@s/^#//' \ + -i denyhosts.conf || die "sed failed" + + distutils-r1_src_prepare +} + +src_install() { + readme.gentoo_create_doc + + dodoc CHANGELOG.txt README.txt PKG-INFO + distutils-r1_src_install + + dodir /etc/logrotate.d + insinto /etc/logrotate.d + newins "${FILESDIR}"/${PN}.logrotate-r2 ${PN} + + newinitd "${FILESDIR}"/denyhosts.init-r2 denyhosts + systemd_dounit "${FILESDIR}"/${PN}.service + + keepdir /var/lib/denyhosts +} + +pkg_postinst() { + [[ -f "${EROOT}etc/hosts.deny" ]] || touch "${EROOT}etc/hosts.deny" + + readme.gentoo_print_elog +} diff --git a/app-admin/denyhosts/denyhosts-3.0.ebuild b/app-admin/denyhosts/denyhosts-3.0.ebuild new file mode 100644 index 000000000000..fef100da9c14 --- /dev/null +++ b/app-admin/denyhosts/denyhosts-3.0.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 eutils readme.gentoo systemd + +DESCRIPTION="DenyHosts is a utility to help sys admins thwart ssh hackers" +HOMEPAGE="https://github.com/denyhosts/denyhosts" +SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~sparc ~x86" +IUSE="" + +DEPEND="" +RDEPEND="" + +DISABLE_AUTOFORMATTING="yes" +DOC_CONTENTS=" +>=net-misc/openssh-6.7p1 dropped support for sys-apps/tcp-wrappers +(see bug#531156) that means you either have patch openssh or use +denyhosts' iptables feature to get any protection. + +You can configure DenyHosts to run as a daemon by running: +# rc-update add denyhosts default +or: +# systemctl enable denyhosts.service +(if you use systemd) + +To run DenyHosts as a cronjob instead of a daemon add the following +to /etc/crontab +# run DenyHosts every 10 minutes +*/10 * * * * root /usr/bin/denyhosts.py -c /etc/denyhosts.conf + +More information can be found at ${HOMEPAGE}faq.html" + +src_prepare() { + sed -e '/^DENY_THRESHOLD_VALID =/s/=.*/= 5/' \ + -e '/^SECURE_LOG/s/^/#/' \ + -e '\@#SECURE_LOG.*/var/log/messages@s/^#//' \ + -i denyhosts.conf || die "sed failed" + + distutils-r1_src_prepare +} + +src_install() { + readme.gentoo_create_doc + + dodoc CHANGELOG.txt README.md + distutils-r1_src_install + + dodir /etc/logrotate.d + insinto /etc/logrotate.d + newins "${FILESDIR}"/${PN}.logrotate-r2 ${PN} + + newinitd "${FILESDIR}"/denyhosts.init-r2 denyhosts + systemd_dounit "${FILESDIR}"/${PN}.service + + keepdir /var/lib/denyhosts +} diff --git a/app-admin/denyhosts/files/denyhosts-2.6-cve-2013-6890.patch b/app-admin/denyhosts/files/denyhosts-2.6-cve-2013-6890.patch new file mode 100644 index 000000000000..3065d5e98424 --- /dev/null +++ b/app-admin/denyhosts/files/denyhosts-2.6-cve-2013-6890.patch @@ -0,0 +1,60 @@ +Subject: address remote denial of service CVE-2013-6890 +From: Helmut Grohne <helmut () subdivi de> + +ssh -l 'Invalid user root from 123.123.123.123' 21.21.21.21 + +results in a log lines + +sshd[123]: Invalid user Invalid user root from 123.123.123.123 from 21.21.21.21 +sshd[123]: input_userauth_request: invalid user Invalid user root from 123.123.123.123 [preauth] +sshd[123]: Connection closed by 21.21.21.21 [preauth] + +and causes denyhosts to block both ips 21.21.21.21 and 123.123.123.123. + +This patch tightens the regular expressions used to avoid these and similar +injections. + +Index: denyhosts-2.6/DenyHosts/regex.py +=================================================================== +--- denyhosts-2.6.orig/DenyHosts/regex.py 2013-12-22 11:54:42.000000000 +0100 ++++ denyhosts-2.6/DenyHosts/regex.py 2013-12-22 11:55:05.000000000 +0100 +@@ -6,22 +6,22 @@ + + #DATE_FORMAT_REGEX = re.compile(r"""(?P<month>[A-z]{3,3})\s*(?P<day>\d+)""") + +-SSHD_FORMAT_REGEX = re.compile(r""".* (sshd.*:|\[sshd\]) (?P<message>.*)""") ++SSHD_FORMAT_REGEX = re.compile(r""".*? (sshd.*?:|\[sshd\]) (?P<message>.*)""") + #SSHD_FORMAT_REGEX = re.compile(r""".* sshd.*: (?P<message>.*)""") + +-FAILED_ENTRY_REGEX = re.compile(r"""Failed (?P<method>.*) for (?P<invalid>invalid user |illegal user )?(?P<user>.*?) .*from (::ffff:)?(?P<host>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})""") ++FAILED_ENTRY_REGEX = re.compile(r"""Failed (?P<method>\S*) for (?P<invalid>invalid user |illegal user )?(?P<user>.*) from (::ffff:)?(?P<host>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})$""") + +-FAILED_ENTRY_REGEX2 = re.compile(r"""(?P<invalid>(Illegal|Invalid)) user (?P<user>.*?) .*from (::ffff:)?(?P<host>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})""") ++FAILED_ENTRY_REGEX2 = re.compile(r"""(?P<invalid>(Illegal|Invalid)) user (?P<user>.*) from (::ffff:)?(?P<host>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})$""") + +-FAILED_ENTRY_REGEX3 = re.compile(r"""Authentication failure for (?P<user>.*) .*from (::ffff:)?(?P<host>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})""") ++FAILED_ENTRY_REGEX3 = None + +-FAILED_ENTRY_REGEX4 = re.compile(r"""Authentication failure for (?P<user>.*) .*from (?P<host>.*)""") ++FAILED_ENTRY_REGEX4 = re.compile(r"""Authentication failure for (?P<user>.*) from (::ffff:)?(?P<host>\S+)$""") + +-FAILED_ENTRY_REGEX5 = re.compile(r"""User (?P<user>.*) .*from (?P<host>.*) not allowed because none of user's groups are listed in AllowGroups$""") ++FAILED_ENTRY_REGEX5 = re.compile(r"""User (?P<user>.*) from (::ffff:)?(?P<host>\S+) not allowed because none of user's groups are listed in AllowGroups$""") + +-FAILED_ENTRY_REGEX6 = re.compile(r"""Did not receive identification string .*from (::ffff:)?(?P<host>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})""") ++FAILED_ENTRY_REGEX6 = re.compile(r"""Did not receive identification string .*from (::ffff:)?(?P<host>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})$""") + +-FAILED_ENTRY_REGEX7 = re.compile(r"""User (?P<user>.*) .*from (::ffff:)?(?P<host>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}) not allowed because not listed in AllowUsers""") ++FAILED_ENTRY_REGEX7 = re.compile(r"""User (?P<user>.*) from (::ffff:)?(?P<host>\S+) not allowed because not listed in AllowUsers$""") + + + # these are reserved for future versions +@@ -42,7 +42,7 @@ + FAILED_ENTRY_REGEX_MAP[i] = rx + + +-SUCCESSFUL_ENTRY_REGEX = re.compile(r"""Accepted (?P<method>.*) for (?P<user>.*?) from (::ffff:)?(?P<host>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})""") ++SUCCESSFUL_ENTRY_REGEX = re.compile(r"""Accepted (?P<method>\S+) for (?P<user>.*?) from (::ffff:)?(?P<host>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})$""") + + TIME_SPEC_REGEX = re.compile(r"""(?P<units>\d*)\s*(?P<period>[smhdwy])?""") + diff --git a/app-admin/denyhosts/files/denyhosts-2.6-daemon-control.patch b/app-admin/denyhosts/files/denyhosts-2.6-daemon-control.patch new file mode 100644 index 000000000000..1a733e41280e --- /dev/null +++ b/app-admin/denyhosts/files/denyhosts-2.6-daemon-control.patch @@ -0,0 +1,12 @@ +diff -up ./daemon-control-dist.orig ./daemon-control-dist +--- ./daemon-control-dist.orig 2006-04-21 18:04:43.000000000 -0500 ++++ ./daemon-control-dist 2008-08-28 11:05:01.000000000 -0500 +@@ -13,7 +13,7 @@ + + DENYHOSTS_BIN = "/usr/bin/denyhosts.py" + DENYHOSTS_LOCK = "/var/lock/subsys/denyhosts" +-DENYHOSTS_CFG = "/usr/share/denyhosts/denyhosts.cfg" ++DENYHOSTS_CFG = "/etc/denyhosts.conf" + + PYTHON_BIN = "/usr/bin/env python" + diff --git a/app-admin/denyhosts/files/denyhosts-2.6-defconffile.patch b/app-admin/denyhosts/files/denyhosts-2.6-defconffile.patch new file mode 100644 index 000000000000..c384367d0031 --- /dev/null +++ b/app-admin/denyhosts/files/denyhosts-2.6-defconffile.patch @@ -0,0 +1,12 @@ +diff -up ./DenyHosts/constants.py.defconffile ./DenyHosts/constants.py +--- ./DenyHosts/constants.py.defconffile 2008-07-01 18:12:34.000000000 -0500 ++++ ./DenyHosts/constants.py 2008-07-01 18:12:43.000000000 -0500 +@@ -36,7 +36,7 @@ PURGE_HISTORY = "purge-history" + # Miscellaneous constants # + ################################################################################# + +-CONFIG_FILE = "denyhosts.cfg" # default can be overridden on cmd line ++CONFIG_FILE = "/etc/denyhosts.conf" # default can be overridden on cmd line + + DENY_DELIMITER = "# DenyHosts:" + ENTRY_DELIMITER = " | " diff --git a/app-admin/denyhosts/files/denyhosts-2.6-foreground_mode.patch b/app-admin/denyhosts/files/denyhosts-2.6-foreground_mode.patch new file mode 100644 index 000000000000..9f10707f9be8 --- /dev/null +++ b/app-admin/denyhosts/files/denyhosts-2.6-foreground_mode.patch @@ -0,0 +1,137 @@ +From: Marco Bertorello <marco@bertorello.ns0.it> +Date: Thu, 14 Apr 2011 00:11:35 +0200 +Subject: 08_foreground_mode + +Add a useful switch to denyhost for run in foreground/debugging mode +--- + DenyHosts/deny_hosts.py | 9 +++++++-- + denyhosts.py | 20 +++++++++++++------- + 2 files changed, 20 insertions(+), 9 deletions(-) + +diff --git a/DenyHosts/deny_hosts.py b/DenyHosts/deny_hosts.py +index 7a985e6..f308264 100644 +--- a/DenyHosts/deny_hosts.py ++++ b/DenyHosts/deny_hosts.py +@@ -41,7 +41,7 @@ error = logging.getLogger("denyhosts").error + class DenyHosts: + def __init__(self, logfile, prefs, lock_file, + ignore_offset=0, first_time=0, +- noemail=0, daemon=0): ++ noemail=0, daemon=0, foreground=0): + self.__denied_hosts = {} + self.__prefs = prefs + self.__lock_file = lock_file +@@ -49,6 +49,7 @@ class DenyHosts: + self.__noemail = noemail + self.__report = Report(prefs.get("HOSTNAME_LOOKUP"), is_true(prefs['SYSLOG_REPORT'])) + self.__daemon = daemon ++ self.__foreground = foreground + self.__sync_server = prefs.get('SYNC_SERVER') + self.__sync_upload = is_true(prefs.get("SYNC_UPLOAD")) + self.__sync_download = is_true(prefs.get("SYNC_DOWNLOAD")) +@@ -87,7 +88,7 @@ class DenyHosts: + info("Log file size has not changed. Nothing to do.") + + +- if daemon: ++ if daemon and not foreground: + info("launching DenyHosts daemon (version %s)..." % VERSION) + #logging.getLogger().setLevel(logging.WARN) + +@@ -101,6 +102,10 @@ class DenyHosts: + self.runDaemon(logfile, last_offset) + else: + die("Error creating daemon: %s (%d)" % (retCode[1], retCode[0])) ++ elif foreground: ++ info("launching DenyHosts (version %s)..." % VERSION) ++ self.__lock_file.remove() ++ self.runDaemon(logfile, last_offset) + + + def killDaemon(self, signum, frame): +diff --git a/denyhosts.py b/denyhosts.py +index 48bd837..727e565 100755 +--- a/denyhosts.py ++++ b/denyhosts.py +@@ -34,6 +34,7 @@ def usage(): + print " --migrate: migrate your HOSTS_DENY file so that it is suitable for --purge" + print " --purge: expire entries older than your PURGE_DENY setting" + print " --daemon: run DenyHosts in daemon mode" ++ print " --foreground: run DenyHosts in foreground mode" + print " --sync: run DenyHosts synchronization mode" + print " --version: Prints the version of DenyHosts and exits" + +@@ -63,6 +64,7 @@ if __name__ == '__main__': + purge = 0 + sync_mode = 0 + daemon = 0 ++ foreground = 0 + enable_debug = 0 + upgrade099 = 0 + args = sys.argv[1:] +@@ -70,8 +72,8 @@ if __name__ == '__main__': + (opts, getopts) = getopt.getopt(args, 'f:c:dinuvps?hV', + ["file=", "ignore", "verbose", "debug", + "help", "noemail", "config=", "version", +- "migrate", "purge", "daemon", "sync", +- "upgrade099"]) ++ "migrate", "purge", "daemon", "foreground", ++ "sync", "upgrade099"]) + except: + print "\nInvalid command line option detected." + usage() +@@ -101,6 +103,8 @@ if __name__ == '__main__': + sync_mode = 1 + if opt == '--daemon': + daemon = 1 ++ if opt == '--foreground': ++ foreground = 1 + if opt == '--upgrade099': + upgrade099 = 1 + if opt == '--version': +@@ -131,21 +135,21 @@ if __name__ == '__main__': + + lock_file.create() + +- if upgrade099 and not daemon: ++ if upgrade099 and not (daemon or foreground): + if not prefs.get('PURGE_DENY'): + lock_file.remove() + die("You have supplied the --upgrade099 flag, however you have not set PURGE_DENY in your configuration file") + else: + u = UpgradeTo099(prefs.get("HOSTS_DENY")) + +- if migrate and not daemon: ++ if migrate and not (daemon or foreground): + if not prefs.get('PURGE_DENY'): + lock_file.remove() + die("You have supplied the --migrate flag however you have not set PURGE_DENY in your configuration file.") + else: + m = Migrate(prefs.get("HOSTS_DENY")) + +- if purge and not daemon: ++ if purge and not (daemon or foreground): + purge_time = prefs.get('PURGE_DENY') + if not purge_time: + lock_file.remove() +@@ -162,7 +166,9 @@ if __name__ == '__main__': + try: + for f in logfiles: + dh = DenyHosts(f, prefs, lock_file, ignore_offset, +- first_time, noemail, daemon) ++ first_time, noemail, daemon, foreground) ++ except KeyboardInterrupt: ++ pass + except SystemExit, e: + pass + except Exception, e: +@@ -170,7 +176,7 @@ if __name__ == '__main__': + print "\nDenyHosts exited abnormally" + + +- if sync_mode and not daemon: ++ if sync_mode and not (daemon or foreground): + if not prefs.get('SYNC_SERVER'): + lock_file.remove() + die("You have provided the --sync flag however your configuration file is missing a value for SYNC_SERVER.") +-- diff --git a/app-admin/denyhosts/files/denyhosts-2.6-gentoo.patch b/app-admin/denyhosts/files/denyhosts-2.6-gentoo.patch new file mode 100644 index 000000000000..157b201aa26a --- /dev/null +++ b/app-admin/denyhosts/files/denyhosts-2.6-gentoo.patch @@ -0,0 +1,42 @@ +--- denyhosts.cfg-dist 2006-08-20 14:09:57.000000000 +0000 ++++ denyhosts.cfg-new 2006-12-09 15:41:20.000000000 +0000 +@@ -9,13 +9,13 @@ + # argument + # + # Redhat or Fedora Core: +-SECURE_LOG = /var/log/secure ++#SECURE_LOG = /var/log/secure + # + # Mandrake, FreeBSD or OpenBSD: + #SECURE_LOG = /var/log/auth.log + # +-# SuSE: +-#SECURE_LOG = /var/log/messages ++# Gentoo/SuSE: ++SECURE_LOG = /var/log/messages + # + # Mac OS X (v10.4 or greater - + # also refer to: http://www.denyhosts.net/faq.html#macos +@@ -150,7 +150,7 @@ + # Note: it is recommended that you use an absolute pathname + # for this value (eg. /home/foo/denyhosts/data) + # +-WORK_DIR = /usr/share/denyhosts/data ++WORK_DIR = /var/lib/denyhosts + # + ####################################################################### + +@@ -192,10 +192,10 @@ + # running at a time. + # + # Redhat/Fedora: +-LOCK_FILE = /var/lock/subsys/denyhosts ++#LOCK_FILE = /var/lock/subsys/denyhosts + # +-# Debian +-#LOCK_FILE = /var/run/denyhosts.pid ++# Gentoo/Debian ++LOCK_FILE = /var/run/denyhosts.pid + # + # Misc + #LOCK_FILE = /tmp/denyhosts.lock diff --git a/app-admin/denyhosts/files/denyhosts-2.6-hostname.patch b/app-admin/denyhosts/files/denyhosts-2.6-hostname.patch new file mode 100644 index 000000000000..56d881319c5f --- /dev/null +++ b/app-admin/denyhosts/files/denyhosts-2.6-hostname.patch @@ -0,0 +1,21 @@ +diff -up ./denyhosts.py.orig ./denyhosts.py +--- ./denyhosts.py.orig 2012-01-30 13:14:41.146715839 -0600 ++++ ./denyhosts.py 2012-01-30 14:45:14.372539341 -0600 +@@ -1,5 +1,6 @@ + #!/usr/bin/env python + import os ++import platform + import sys + + import DenyHosts.python_version +@@ -107,6 +108,10 @@ if __name__ == '__main__': + print "DenyHosts version:", VERSION + sys.exit(0) + ++ # This is generally expected to be in the environment, but there's no ++ # non-hackish way to get systemd to set it, so just hack it in here. ++ os.environ['HOSTNAME'] = platform.node() ++ + prefs = Prefs(config_file) + + first_time = 0 diff --git a/app-admin/denyhosts/files/denyhosts-2.6-log-injection-regex.patch b/app-admin/denyhosts/files/denyhosts-2.6-log-injection-regex.patch new file mode 100644 index 000000000000..c6fc20541019 --- /dev/null +++ b/app-admin/denyhosts/files/denyhosts-2.6-log-injection-regex.patch @@ -0,0 +1,21 @@ +Address Log injection reported at + +http://bugs.gentoo.org/show_bug.cgi?id=181213 + +diff -ur a/DenyHosts/regex.py b/DenyHosts/regex.py +--- a/DenyHosts/regex.py 2006-12-07 13:47:04.000000000 -0600 ++++ b/DenyHosts/regex.py 2007-06-19 18:51:54.000000000 -0500 +@@ -17,11 +17,11 @@ + + FAILED_ENTRY_REGEX4 = re.compile(r"""Authentication failure for (?P<user>.*) .*from (?P<host>.*)""") + +-FAILED_ENTRY_REGEX5 = re.compile(r"""User (?P<user>.*) .*from (?P<host>.*) not allowed because none of user's groups are listed in AllowGroups""") ++FAILED_ENTRY_REGEX5 = re.compile(r"""User (?P<user>.*) .*from (?P<host>.*) not allowed because none of user's groups are listed in AllowGroups$""") + + FAILED_ENTRY_REGEX6 = re.compile(r"""Did not receive identification string .*from (::ffff:)?(?P<host>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})""") + +-FAILED_ENTRY_REGEX7 = re.compile(r"""User (?P<user>.*) not allowed because not listed in AllowUsers""") ++FAILED_ENTRY_REGEX7 = re.compile(r"""User (?P<user>.*) .*from (::ffff:)?(?P<host>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}) not allowed because not listed in AllowUsers""") + + + # these are reserved for future versions diff --git a/app-admin/denyhosts/files/denyhosts-2.6-plugin_deny.patch b/app-admin/denyhosts/files/denyhosts-2.6-plugin_deny.patch new file mode 100644 index 000000000000..74868e79678c --- /dev/null +++ b/app-admin/denyhosts/files/denyhosts-2.6-plugin_deny.patch @@ -0,0 +1,23 @@ +From: Marco Bertorello <marco@bertorello.ns0.it> +Date: Thu, 14 Apr 2011 00:11:35 +0200 +Subject: 09_plugin_deny + +Correct the upstream bug http://sourceforge.net/tracker/index.php?func=detail&aid=1734736&group_id=131204&atid=720419 +--- + DenyHosts/deny_hosts.py | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/DenyHosts/deny_hosts.py b/DenyHosts/deny_hosts.py +index f308264..0f5f48d 100644 +--- a/DenyHosts/deny_hosts.py ++++ b/DenyHosts/deny_hosts.py +@@ -443,7 +443,7 @@ allowed based on your %s file""" % (self.__prefs.get("HOSTS_DENY"), + self.__report.add_section(msg, new_denied_hosts) + if self.__sync_server: self.sync_add_hosts(new_denied_hosts) + plugin_deny = self.__prefs.get('PLUGIN_DENY') +- if plugin_deny: plugin.execute(plugin_deny, deny_hosts) ++ if plugin_deny: plugin.execute(plugin_deny, new_denied_hosts) + + new_suspicious_logins = login_attempt.get_new_suspicious_logins() + if new_suspicious_logins: +-- diff --git a/app-admin/denyhosts/files/denyhosts-2.6-single_config_switch.patch b/app-admin/denyhosts/files/denyhosts-2.6-single_config_switch.patch new file mode 100644 index 000000000000..cb39df977be6 --- /dev/null +++ b/app-admin/denyhosts/files/denyhosts-2.6-single_config_switch.patch @@ -0,0 +1,24 @@ +From: Marco Bertorello <marco@bertorello.ns0.it> +Date: Thu, 14 Apr 2011 00:11:35 +0200 +Subject: 11_single_config_switch + +A patch to prevent denyhosts running with a double --config switch +--- + daemon-control-dist | 3 ++- + 1 files changed, 2 insertions(+), 1 deletions(-) + +diff --git a/daemon-control-dist b/daemon-control-dist +index 9f42b60..14d0f70 100755 +--- a/daemon-control-dist ++++ b/daemon-control-dist +@@ -144,7 +144,8 @@ if __name__ == '__main__': + + try: + if option in ('start', 'restart', 'condrestart'): +- if '--config' not in args and '-c' not in args: ++ anystartswith = lambda prefix, xs: any(map(lambda x: x.startswith(prefix), xs)) ++ if not anystartswith('--config', args) and '-c' not in args: + args.append("--config=%s" % DENYHOSTS_CFG) + + cmd = cases[option] +-- diff --git a/app-admin/denyhosts/files/denyhosts.init-r2 b/app-admin/denyhosts/files/denyhosts.init-r2 new file mode 100644 index 000000000000..092c9c4a88bc --- /dev/null +++ b/app-admin/denyhosts/files/denyhosts.init-r2 @@ -0,0 +1,28 @@ +#!/sbin/runscript +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +extra_stopped_commands="purge" + +purge() { + ebegin "Purging hosts.deny" + start-stop-daemon --start --exec /usr/bin/denyhosts.py --pidfile /var/run/denyhosts.pid -- --purge + eend $? +} + +depend() { + use logger sshd +} + +start() { + ebegin "Starting DenyHosts daemon" + start-stop-daemon --start --exec /usr/bin/denyhosts.py --pidfile /var/run/denyhosts.pid -- --daemon -c /etc/denyhosts.conf + eend $? +} + +stop() { + ebegin "Stopping DenyHosts daemon" + start-stop-daemon --quiet --stop --pidfile /var/run/denyhosts.pid + eend $? +} diff --git a/app-admin/denyhosts/files/denyhosts.logrotate b/app-admin/denyhosts/files/denyhosts.logrotate new file mode 100644 index 000000000000..19a478870757 --- /dev/null +++ b/app-admin/denyhosts/files/denyhosts.logrotate @@ -0,0 +1,12 @@ +/var/log/denyhosts { + missingok + notifempty + create 0640 root root + sharedscripts + prerotate + /etc/init.d/denyhosts stop -q + endscript + postrotate + /etc/init.d/denyhosts start -q + endscript +} diff --git a/app-admin/denyhosts/files/denyhosts.logrotate-r2 b/app-admin/denyhosts/files/denyhosts.logrotate-r2 new file mode 100644 index 000000000000..582e72f7a365 --- /dev/null +++ b/app-admin/denyhosts/files/denyhosts.logrotate-r2 @@ -0,0 +1,10 @@ +/var/log/denyhosts { + missingok + notifempty + create 0640 root root + sharedscripts + postrotate + test -e /run/openrc/softlevel && /etc/init.d/denyhosts restart 1>/dev/null || true + test -e /run/systemd/system && systemctl restart denyhosts >/dev/null || true + endscript +} diff --git a/app-admin/denyhosts/files/denyhosts.service b/app-admin/denyhosts/files/denyhosts.service new file mode 100644 index 000000000000..05a59dd27bfc --- /dev/null +++ b/app-admin/denyhosts/files/denyhosts.service @@ -0,0 +1,12 @@ +[Unit] +Description=SSH log watcher +Before=sshd.service + +[Service] +Type=forking +ExecStartPre=/bin/rm -f /var/run/denyhosts.pid +ExecStart=/usr/bin/denyhosts.py --daemon --config=/etc/denyhosts.conf +PIDFile=/var/run/denyhosts.pid + +[Install] +WantedBy=multi-user.target diff --git a/app-admin/denyhosts/metadata.xml b/app-admin/denyhosts/metadata.xml new file mode 100644 index 000000000000..0b1d27f8d6f3 --- /dev/null +++ b/app-admin/denyhosts/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> + <email>ottxor@gentoo.org</email> + <name>Christoph Junghans</name> + </maintainer> + <upstream> + <remote-id type="github">denyhosts/denyhosts</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/diamond/Manifest b/app-admin/diamond/Manifest new file mode 100644 index 000000000000..de109ba841b4 --- /dev/null +++ b/app-admin/diamond/Manifest @@ -0,0 +1 @@ +DIST python-diamond-4.0.tar.gz 491433 SHA256 e84dd3c87b230d524306a07c3fc7c1db1d9796e3748025e8345a4fa18b162256 SHA512 c4a6e63bdc55f9e0ac2fbf3b644be91662635c08ecc864dfaaebf2fe62fb45609c099da63efd93ed498d2dc9e95bbcb64be09f715e21d59b30bce958a96dc56b WHIRLPOOL 2b1f6124001183058cf282d6e9c51bba0878f26308731266f2c31c549bb42db945c579b49b5a34666e0c05ccbda0163135662a11e59a482f8ef031c49c6005ba diff --git a/app-admin/diamond/diamond-4.0-r1.ebuild b/app-admin/diamond/diamond-4.0-r1.ebuild new file mode 100644 index 000000000000..a9dbda4d2cff --- /dev/null +++ b/app-admin/diamond/diamond-4.0-r1.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +if [[ ${PV} = 9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/python-diamond/Diamond.git" + S=${WORKDIR}/diamond-${PV} +else + SRC_URI="https://github.com/python-diamond/Diamond/archive/v${PV}.tar.gz -> python-diamond-${PV}.tar.gz" + KEYWORDS="~amd64 ~x86 ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" + S=${WORKDIR}/Diamond-${PV} +fi + +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 eutils + +DESCRIPTION="Python daemon that collects and publishes system metrics" +HOMEPAGE="https://github.com/python-diamond/Diamond" + +LICENSE="MIT" +SLOT="0" +IUSE="test mongo mysql snmp redis" + +RDEPEND="dev-python/configobj + dev-python/setproctitle + mongo? ( dev-python/pymongo ) + mysql? ( dev-python/mysql-python ) + snmp? ( dev-python/pysnmp ) + redis? ( dev-python/redis-py ) + !kernel_linux? ( >=dev-python/psutil-3 )" +DEPEND="${RDEPEND} + test? ( dev-python/mock )" + +src_prepare() { + # adjust for Prefix + sed -i \ + -e '/default="\/etc\/diamond\/diamond.conf"/s:=":="'"${EPREFIX}"':' \ + bin/diamond* \ + || die + + # fix necessary to make handlers honour their config, simple sed + # doing the same as upstream + # https://github.com/python-diamond/Diamond/commit/3cb29eedd117d2e4146823a5c5811d16cc77206a.patch + sed -i \ + -e '/cls_name =/s/\.__class__//' \ + src/diamond/utils/classes.py \ + || die + + epatch "${FILESDIR}"/${P}-psutil.patch + + distutils-r1_src_prepare +} + +python_test() { + "${PYTHON}" ./test.py || die "Tests fail with ${PYTHON}" +} + +python_install() { + export VIRTUAL_ENV=1 + distutils-r1_python_install + mv "${ED}"/usr/etc "${ED}"/ || die + rm "${ED}"/etc/diamond/*.windows # won't need these + sed -i \ + -e '/pid_file =/s:/var/run:/run:' \ + "${ED}"/etc/diamond/diamond.conf.example || die +} + +src_install() { + distutils-r1_src_install + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} + keepdir /var/log/diamond +} diff --git a/app-admin/diamond/diamond-9999.ebuild b/app-admin/diamond/diamond-9999.ebuild new file mode 100644 index 000000000000..cb7f0784091c --- /dev/null +++ b/app-admin/diamond/diamond-9999.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +if [[ ${PV} = 9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/python-diamond/Diamond.git" + S=${WORKDIR}/diamond-${PV} +else + SRC_URI="https://github.com/python-diamond/Diamond/archive/v${PV}.tar.gz -> python-diamond-${PV}.tar.gz" + KEYWORDS="~amd64 ~x86 ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" + S=${WORKDIR}/Diamond-${PV} +fi + +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 + +DESCRIPTION="Python daemon that collects and publishes system metrics" +HOMEPAGE="https://github.com/python-diamond/Diamond" + +LICENSE="MIT" +SLOT="0" +IUSE="test mongo mysql snmp redis" + +RDEPEND="dev-python/configobj + dev-python/setproctitle + mongo? ( dev-python/pymongo ) + mysql? ( dev-python/mysql-python ) + snmp? ( dev-python/pysnmp ) + redis? ( dev-python/redis-py ) + !kernel_linux? ( >=dev-python/psutil-3 )" +DEPEND="${RDEPEND} + test? ( dev-python/mock )" + +src_prepare() { + # adjust for Prefix + sed -i \ + -e '/default="\/etc\/diamond\/diamond.conf"/s:=":="'"${EPREFIX}"':' \ + bin/diamond* \ + || die + + distutils-r1_src_prepare +} + +python_test() { + "${PYTHON}" ./test.py || die "Tests fail with ${PYTHON}" +} + +python_install() { + export VIRTUAL_ENV=1 + distutils-r1_python_install + mv "${ED}"/usr/etc "${ED}"/ || die + rm "${ED}"/etc/diamond/*.windows # won't need these + sed -i \ + -e '/pid_file =/s:/var/run:/run:' \ + "${ED}"/etc/diamond/diamond.conf.example || die +} + +src_install() { + distutils-r1_src_install + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} + keepdir /var/log/diamond +} diff --git a/app-admin/diamond/files/diamond-4.0-psutil.patch b/app-admin/diamond/files/diamond-4.0-psutil.patch new file mode 100644 index 000000000000..e5f5d3bfb392 --- /dev/null +++ b/app-admin/diamond/files/diamond-4.0-psutil.patch @@ -0,0 +1,48 @@ +From 21ca284ffe6901b06e1136ce57dc07e0effd2a3e Mon Sep 17 00:00:00 2001 +From: Fabian Groffen <grobian@gentoo.org> +Date: Mon, 3 Aug 2015 19:40:59 +0200 +Subject: [PATCH 1/2] NetworkCollector: psutil.network_io_counters was renamed + +--- + src/collectors/network/network.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/collectors/network/network.py b/src/collectors/network/network.py +index d835162..90c2f59 100644 +--- a/src/collectors/network/network.py ++++ b/src/collectors/network/network.py +@@ -96,7 +96,7 @@ def collect(self): + self.log.error('No network metrics retrieved') + return None + +- network_stats = psutil.network_io_counters(True) ++ network_stats = psutil.net_io_counters(True) + for device in network_stats.keys(): + network_stat = network_stats[device] + results[device] = {} + +From 314d6057ca95bae6d3e6369556522574eb905c3f Mon Sep 17 00:00:00 2001 +From: Fabian Groffen <grobian@gentoo.org> +Date: Mon, 3 Aug 2015 19:41:20 +0200 +Subject: [PATCH 2/2] MemoryCollector: psutil renamed phymem_usage and + virtmem_usage + +--- + src/collectors/memory/memory.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/collectors/memory/memory.py b/src/collectors/memory/memory.py +index 7c9b1fb..9057115 100644 +--- a/src/collectors/memory/memory.py ++++ b/src/collectors/memory/memory.py +@@ -103,8 +103,8 @@ def collect(self): + self.log.error('No memory metrics retrieved') + return None + +- phymem_usage = psutil.phymem_usage() +- virtmem_usage = psutil.virtmem_usage() ++ phymem_usage = psutil.virtual_memory() ++ virtmem_usage = psutil.swap_memory() + units = 'B' + + for unit in self.config['byte_unit']: diff --git a/app-admin/diamond/files/diamond.confd b/app-admin/diamond/files/diamond.confd new file mode 100644 index 000000000000..ad9939223182 --- /dev/null +++ b/app-admin/diamond/files/diamond.confd @@ -0,0 +1,2 @@ +# command line options for running diamond +DIAMOND_OPTS= diff --git a/app-admin/diamond/files/diamond.initd b/app-admin/diamond/files/diamond.initd new file mode 100755 index 000000000000..db5d443135b3 --- /dev/null +++ b/app-admin/diamond/files/diamond.initd @@ -0,0 +1,20 @@ +#!/sbin/runscript +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + need net +} + +start() { + ebegin "Starting ${SVCNAME}" + start-stop-daemon --start --exec /usr/bin/diamond --pidfile /run/${SVCNAME}.pid -- -c /etc/diamond/${SVCNAME}.conf ${DIAMOND_OPTS} + eend $? +} + +stop() { + ebegin "Stopping ${SVCNAME}" + start-stop-daemon --stop --pidfile /run/${SVCNAME}.pid --name diamond + eend $? +} diff --git a/app-admin/diamond/metadata.xml b/app-admin/diamond/metadata.xml new file mode 100644 index 000000000000..395cb3eb4234 --- /dev/null +++ b/app-admin/diamond/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> + <email>grobian@gentoo.org</email> + <name>Fabian Groffen</name> + </maintainer> + <longdescription lang="en"> + Diamond is a python daemon that collects system metrics and + publishes them to Graphite (and others). It is capable of + collecting cpu, memory, network, i/o, load and disk metrics. + Additionally, it features an API for implementing custom + collectors for gathering metrics from almost any source. + </longdescription> + <use> + <flag name="mongo">Enable MongoDB support</flag> + <flag name="redis">Enable Redis support</flag> + </use> + <upstream> + <remote-id type="github">python-diamond/Diamond</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/dio/Manifest b/app-admin/dio/Manifest new file mode 100644 index 000000000000..b45bda823a06 --- /dev/null +++ b/app-admin/dio/Manifest @@ -0,0 +1 @@ +DIST dio-1.5.2.tar.gz 44344 SHA256 c9241fe3cc8e51a1ada2a4c95d44a10dd306ef67f205bd9439bc2b95db31163b SHA512 366d2f2d25b8d16439c4a9aaa7cd775ddffb1022980675cdda8e2e4d4de3d3e5dcfa8d0c581b73fcfe4eff66ee8ef682f082c8788f514b7abdf1a2cb2159b9ba WHIRLPOOL 777471d3ec30e97449ddb05cc743ded208e752806cdc3022be99c5d240e6b817cd4b014d377761fb2fa3e32e51a7b70f95bab23c29016996d29c4e21ce0a96c1 diff --git a/app-admin/dio/dio-1.5.2.ebuild b/app-admin/dio/dio-1.5.2.ebuild new file mode 100644 index 000000000000..8fd1f8038a90 --- /dev/null +++ b/app-admin/dio/dio-1.5.2.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit toolchain-funcs + +DESCRIPTION="dio - Device I/O monitoring tool" +HOMEPAGE="https://github.com/donaldmcintosh/dio" +SRC_URI="https://github.com/donaldmcintosh/dio/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND="sys-libs/ncurses:5" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${P}/src" + +src_compile() { + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" +} + +src_install() { + dobin dio + doman dio.1 +} diff --git a/app-admin/dio/metadata.xml b/app-admin/dio/metadata.xml new file mode 100644 index 000000000000..67cb71579bde --- /dev/null +++ b/app-admin/dio/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>proxy-maintainers</herd> + <maintainer> + <email>donaldbmcintosh@yahoo.co.uk</email> + <name>Donald McIntosh</name> + </maintainer> + <upstream> + <remote-id type="github">donaldmcintosh/dio</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/diradm/Manifest b/app-admin/diradm/Manifest new file mode 100644 index 000000000000..6a30392de7e6 --- /dev/null +++ b/app-admin/diradm/Manifest @@ -0,0 +1 @@ +DIST diradm-2.9.7.1.tar.bz2 126172 SHA256 0a10f8b8b872a1f985c1f73da0109e8ba5ebde09ccb4760b56e67d4a1b88f2bf SHA512 5052f7b7072cd61eb9c70d23057f6c0d2fa68a151792d7260ca52716c9588c06234d335af84b967df23da4b4a8650502cab3b18900dc15e71f71b0888224993f WHIRLPOOL 31c2b6eaa913aa0a273652958233e0ace3b309063448add6b446a41e48903b984810f0ce668b27efbbca8c558a20a379692a3d7d3997d8481d0dbfe19827adee diff --git a/app-admin/diradm/diradm-2.9.7.1.ebuild b/app-admin/diradm/diradm-2.9.7.1.ebuild new file mode 100644 index 000000000000..0f774a147951 --- /dev/null +++ b/app-admin/diradm/diradm-2.9.7.1.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +inherit eutils + +DESCRIPTION="diradm is a nearly complete nss/shadow suite for managing POSIX users/groups/data in LDAP" +#HOMEPAGE="http://research.iat.sfu.ca/custom-software/diradm/" +#SRC_URI="${HOMEPAGE}/${P}.tar.bz2" +HOMEPAGE="http://orbis-terrarum.net/~robbat2/" +SRC_URI="http://orbis-terrarum.net/~robbat2/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc ppc64 x86" +IUSE="samba irixpasswd automount test" +RDEPEND=">=net-nds/openldap-2.3 + sys-apps/gawk + sys-apps/coreutils + sys-apps/grep + dev-lang/perl + app-shells/bash + sys-apps/sed + virtual/perl-MIME-Base64 + samba? ( + dev-perl/Crypt-SmbHash + >=net-fs/samba-3.0.6 + )" +DEPEND=" + ${RDEPEND} + test? ( + dev-perl/Crypt-SmbHash + >=net-fs/samba-3.0.6 + dev-util/dejagnu + net-nds/openldap[-minimal] + )" + +pkg_setup() { + use test && elog "Warning, for test usage, diradm is built with all optional features!" +} + +src_configure() { + local myconf + if use test; then + myconf="--enable-samba --enable-automount --enable-irixpasswd" + else + myconf="`use_enable samba` `use_enable automount` `use_enable irixpasswd`" + fi + econf ${myconf} || die "econf failed" +} + +src_install() { + emake install DESTDIR="${D}" || die "emake install failed" + dodoc CHANGES* README AUTHORS ChangeLog NEWS README.prefork \ + THANKS TODO KNOWN-BUGS || die + if use irixpasswd; then + insinto /etc/openldap/schema + doins irixpassword.schema || die "Failed irixpassword.schema" + fi +} + +pkg_postinst() { + elog "The new diradm pulls many settings from your LDAP configuration." + elog "But don't forget to customize /etc/diradm.conf for other settings." + elog "Please see the README to instructions if you problems." + elog "This package is primarily intended for use with nss_ldap & pam_ldap" + elog "and populates many default settings from the /etc/ldap.conf used by" + elog "those packages, with a further fallback to /etc/openldap/ldap.conf" + elog "for server connection settings only." +} + +src_test() { + emake -j1 check +} diff --git a/app-admin/diradm/metadata.xml b/app-admin/diradm/metadata.xml new file mode 100644 index 000000000000..278b560d3df8 --- /dev/null +++ b/app-admin/diradm/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> + <email>robbat2@gentoo.org</email> + <name>Robin H. Johnson</name> + </maintainer> + <use> + <flag name='automount'>Support for automount data in LDAP</flag> + <flag name='irixpasswd'>Support for storing separate IRIX passwords</flag> + </use> +</pkgmetadata> diff --git a/app-admin/drush/Manifest b/app-admin/drush/Manifest new file mode 100644 index 000000000000..5fd5402239ce --- /dev/null +++ b/app-admin/drush/Manifest @@ -0,0 +1,2 @@ +DIST drush-5.8.tar.gz 409642 SHA256 15dd85f04c49b4a896b02dd6960d3140f3ae680bab3eea5d3aba27be0481e480 SHA512 85f7572aece8590d23164dc938e00b740718a5b9bf20ca866083f9e8ce2025ec07f57e06234bf50bfe2351f407f5bad21789103c1e04d18d2fd202fa735637e6 WHIRLPOOL 68f4a8ca09fc61c36de3d6cc6e3aeaab2021b677ba9d732a65f4d5a9940ebbee3cd63dc84f165e119770168547b1997aff6c23497dc50dbe548df348c296188c +DIST drush-6.5.0.tar.gz 509643 SHA256 0e6bfb8a4bd75846dbca25f6d3e3130a706546f6a62edadce2eb00099750e2a7 SHA512 4afd348c025b9303386131687205af4219a77e6c822518b079a3f0475cbd7ed03647797d613300c7a281e2354f0d855435222fe1afe13447153cdbd6a4393add WHIRLPOOL 1f2a1a725e1c0f89cac90a1338e1541e587c7834560fd23d1a44341696be320e65cf93508d4841f02ca9b30ac62f3fed7de772e00f4eaeea64f287cf19682fcc diff --git a/app-admin/drush/drush-5.8.ebuild b/app-admin/drush/drush-5.8.ebuild new file mode 100644 index 000000000000..daccda321913 --- /dev/null +++ b/app-admin/drush/drush-5.8.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit bash-completion-r1 + +DESCRIPTION="Drush is a command line shell and scripting interface for Drupal" +HOMEPAGE="http://drupal.org/project/drush" +SRC_URI="http://ftp.drupal.org/files/projects/${PN}-7.x-${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="+examples" + +DEPEND="dev-lang/php[cli,ctype,simplexml] + dev-php/pear + dev-php/PEAR-Console_Table + dev-php/PEAR-Console_Getopt" +RDEPEND="${DEPEND}" +S="${WORKDIR}/${PN}" + +src_prepare() { + sed -i -e \ + "s!/share/doc/drush!/share/doc/${PF}!" \ + -e "s!README\.txt!\0.bz2!g" \ + includes/bootstrap.inc || die + sed -i \ + -e "s!\.php'!.php.bz2'!" \ + -e "s!\.ini'!.ini.bz2'!" \ + -e "s!\.txt'!.txt.bz2'!" \ + -e "s!\.bashrc'!.bashrc.bz2'!" \ + commands/core/docs.drush.inc || die + sed \ + -e "1,2d" \ + -e "5,11d" \ + drush.complete.sh > drush.bashcomp +} + +src_install() { + local docs="README.txt docs" + use examples && docs="${docs} examples" + insinto /usr/share/drush + doins -r . + exeinto /usr/share/drush + doexe drush + dosym /usr/share/drush/drush /usr/bin/drush + dodoc -r ${docs} + # cleanup + for i in ${docs} LICENSE.txt drush.bat examples includes/.gitignore \ + .gitignore .travis.yml drush.complete.sh ; do + rm -rf "${D}/usr/share/drush/${i}" + done + keepdir /etc/drush + newbashcomp drush.bashcomp drush +} diff --git a/app-admin/drush/drush-6.5.0.ebuild b/app-admin/drush/drush-6.5.0.ebuild new file mode 100644 index 000000000000..7e6f4af7b634 --- /dev/null +++ b/app-admin/drush/drush-6.5.0.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit bash-completion-r1 eutils + +DESCRIPTION="Command line shell and scripting interface for Drupal" +HOMEPAGE="https://github.com/drush-ops/${PN}" +SRC_URI="https://github.com/drush-ops/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="" +RDEPEND="dev-lang/php[cli,ctype,json,simplexml] + dev-php/PEAR-Console_Table" + +src_prepare() { + # Fix the bash completion script, check the patch for Gentoo/upstream + # bug numbers. + epatch "${FILESDIR}/update-bash-completion-script-for-2.1.patch" + + # dodoc compresses all of the documentation, so we fix the filenames + # in a few places. + + # First, the README location in bootstrap.inc. + sed -i -e \ + "s!/share/doc/drush!/share/doc/${PF}!" \ + -e "s!README\.md!\0.bz2!g" \ + includes/bootstrap.inc || die + + # Next, the list of documentation in docs.drush.inc. Note that + # html files don't get compressed. + sed -i \ + -e "s!\.bashrc'!.bashrc.bz2'!" \ + -e "s!\.inc'!.inc.bz2'!" \ + -e "s!\.ini'!.ini.bz2'!" \ + -e "s!\.md'!.md.bz2'!" \ + -e "s!\.php'!.php.bz2'!" \ + -e "s!\.script'!.script.bz2'!" \ + -e "s!\.txt'!.txt.bz2'!" \ + commands/core/docs.drush.inc || die +} + +src_install() { + # Always install the examples; they're referenced within the source + # code and too difficult to exorcise. + dodoc -r README.md docs examples + + insinto /usr/share/drush + doins -r classes commands includes lib misc + doins drush_logo-black.png drush.info drush.php + + exeinto /usr/share/drush + doexe drush + dosym /usr/share/drush/drush /usr/bin/drush + + keepdir /etc/drush + newbashcomp drush.complete.sh drush +} diff --git a/app-admin/drush/files/update-bash-completion-script-for-2.1.patch b/app-admin/drush/files/update-bash-completion-script-for-2.1.patch new file mode 100644 index 000000000000..a6a9b6a0ff43 --- /dev/null +++ b/app-admin/drush/files/update-bash-completion-script-for-2.1.patch @@ -0,0 +1,39 @@ +From e0f53949d35f32d251ab003d6e9e70a7f8c0e69a Mon Sep 17 00:00:00 2001 +From: Michael Orlitzky <mjo@gentoo.org> +Date: Tue, 21 Oct 2014 19:48:37 -0400 +Subject: [PATCH 1/1] Update bash completion script for new + bash-completion-2.1 (Gentoo bug #526222). + +* Don't use `which drush ...` to detect the presence of drush in the + bash-completion script (https://github.com/drush-ops/drush/issues/521). + +* Don't install completions for commands that we don't "own" + (https://github.com/drush-ops/drush/issues/915). + +--- + drush.complete.sh | 5 +---- + 1 file changed, 1 insertion(+), 4 deletions(-) + +diff --git a/drush.complete.sh b/drush.complete.sh +index 067a67c..2f97317 100644 +--- a/drush.complete.sh ++++ b/drush.complete.sh +@@ -5,9 +5,6 @@ + # examples/example.bashrc instead, as it will automatically find and source + # this file. + +-# Ensure drush is available. +-which drush > /dev/null || alias drush &> /dev/null || return +- + __drush_ps1() { + f="${TMPDIR:-/tmp/}/drush-env/drush-drupal-site-$$" + if [ -f $f ] +@@ -31,4 +28,4 @@ _drush_completion() { + } + + # Register our completion function. We include common short aliases for Drush. +-complete -o bashdefault -o default -o nospace -F _drush_completion d dr drush drush5 drush6 drush7 drush.php ++complete -o bashdefault -o default -o nospace -F _drush_completion drush +-- +2.0.4 + diff --git a/app-admin/drush/metadata.xml b/app-admin/drush/metadata.xml new file mode 100644 index 000000000000..4cf1bb2441f4 --- /dev/null +++ b/app-admin/drush/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>mjo@gentoo.org</email> + <name>Michael Orlitzky</name> + </maintainer> + <longdescription lang="en"> + Drush is a command line shell and scripting interface for Drupal, + a veritable Swiss Army knife designed to make life easier for + those of us who spend some of our working hours hacking away at + the command prompt. + </longdescription> + <upstream> + <remote-id type="github">drush-ops/drush</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/durep/Manifest b/app-admin/durep/Manifest new file mode 100644 index 000000000000..b04546389452 --- /dev/null +++ b/app-admin/durep/Manifest @@ -0,0 +1 @@ +DIST durep-0.9.tar.gz 13713 SHA256 71605ebc4d25f6452e2aaa0119e9a6b7e753fe46ec2999e17311389a03016825 SHA512 a8a58cf4a77fa43e06eb22ce70e566fe9c5dd6921677dbe4691a6dd95e2fad3735778a9858e3b80957ba6efd20293fcd2ba4ddc9cfe29f5813997de0f9c96b6d WHIRLPOOL a64f822cae74934e45eb9c5acf87f708feb84854f6912a6c9342ffb79cee9569d4685fbe09f78144404695995dc454e25603cd2720e1618cfdf98376e907c18f diff --git a/app-admin/durep/durep-0.9-r4.ebuild b/app-admin/durep/durep-0.9-r4.ebuild new file mode 100644 index 000000000000..66982b5a412a --- /dev/null +++ b/app-admin/durep/durep-0.9-r4.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit eutils + +DESCRIPTION="A perl script designed for monitoring disk usage in a more visual way than du" +HOMEPAGE="http://gentoo.org" +SRC_URI="http://www.hibernaculum.net/download/${P}.tar.gz" + +LICENSE="Artistic" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +DEPEND="dev-lang/perl" +RDEPEND="${DEPEND} + dev-perl/MLDBM + virtual/perl-Getopt-Long + virtual/perl-Term-ANSIColor" + +src_prepare() { + epatch "${FILESDIR}"/${P}-gigabyte.patch \ + "${FILESDIR}"/${PF}-color-output.patch \ + "${FILESDIR}"/${P}-dirhandle.patch +} + +src_install() { + dobin durep + doman durep.1 + dodoc BUGS CHANGES README THANKS + dohtml -A cgi *.cgi *.css *.png +} diff --git a/app-admin/durep/files/durep-0.9-dirhandle.patch b/app-admin/durep/files/durep-0.9-dirhandle.patch new file mode 100644 index 000000000000..ee2930622370 --- /dev/null +++ b/app-admin/durep/files/durep-0.9-dirhandle.patch @@ -0,0 +1,31 @@ +--- durep 2007-09-08 11:44:05.000000000 -0500 ++++ durep.new 2008-12-15 10:04:14.907825184 -0600 +@@ -175,6 +175,7 @@ + my $coalesced_size = 0; + my $node = {}; + my $temp; ++ my $dirhandle; + + $node->{ID} = $next_id++; + if(defined $parent) { +@@ -196,9 +197,9 @@ + + $node->{TYPE} &= $TYPE_COLLAPSED unless $store; + +- opendir(DIR, $dir) or warn "Unable to open dir '$dir': $!\n" and return $node; ++ opendir($dirhandle, $dir) or warn "Unable to open dir '$dir': $!\n" and return $node; + +- foreach(readdir(DIR)) { ++ foreach(readdir($dirhandle)) { + @stats = lstat "$dir/$_" or warn "Unable to lstat '$dir/$_': $!\n" and next; + + $node->{MTIME} = $stats[9] if($_ eq "."); +@@ -247,7 +248,7 @@ + $file_count++; + $node->{FCOUNT}++; + } +- closedir(DIR); ++ closedir($dirhandle); + + if($coalesced_count) { + if($store) { diff --git a/app-admin/durep/files/durep-0.9-gigabyte.patch b/app-admin/durep/files/durep-0.9-gigabyte.patch new file mode 100644 index 000000000000..315cb1c7c813 --- /dev/null +++ b/app-admin/durep/files/durep-0.9-gigabyte.patch @@ -0,0 +1,17 @@ +fix `durep -hs 1g` output + +Patch by Stephen Tallowitz + +http://bugs.gentoo.org/108942 + +--- durep ++++ durep +@@ -468,7 +468,7 @@ + elsif ($temp =~ m/^[mM]/) { + return $size * 1048576; + } +- elsif ($temp =~ m/^[mM]/) { ++ elsif ($temp =~ m/^[gG]/) { + return $size * 1048576 * 1024; + } + return $size; diff --git a/app-admin/durep/files/durep-0.9-r4-color-output.patch b/app-admin/durep/files/durep-0.9-r4-color-output.patch new file mode 100644 index 000000000000..6b8956199406 --- /dev/null +++ b/app-admin/durep/files/durep-0.9-r4-color-output.patch @@ -0,0 +1,98 @@ +--- durep ++++ durep +@@ -14,6 +14,8 @@ + ############################################################################# + + use Getopt::Long; ++use feature 'switch'; ++use Term::ANSIColor qw(:constants); + use File::Basename; + use MLDBM qw(DB_File Storable); + use Fcntl; +@@ -27,6 +29,7 @@ + our ($root_node, $filesystem_id, @stats); + our ($opt_help, $opt_version, $opt_textdepth, $opt_hidesize, $opt_showdate, $opt_nosort, $opt_quiet); + our ($opt_savefile, $opt_loadfile, $opt_desc, $opt_collate); ++our ($opt_nocolor); + our ($opt_files, $opt_onefilesystem, $opt_collapsepath, $opt_excludepath, $opt_coalescefiles); + our ($root_dir, $file_count, $dir_count, $next_id); + our ($TYPE_FILE, $TYPE_DIR, $TYPE_EMPTY, $TYPE_COALESCED, $TYPE_COLLAPSED); +@@ -56,6 +59,8 @@ + "d|desc=s" => \$opt_desc, + "c|collate=s" => \$opt_collate, + ++ "nc|nocolor" => \$opt_nocolor, ++ + "f|files" => \$opt_files, + "x|one-file-system" => \$opt_onefilesystem, + "cp|collapse-path=s" => \$opt_collapsepath, +@@ -332,13 +337,58 @@ + printf(" [%s%s] ", "#" x $numofchars, " " x (30-$numofchars)); + printf("%6.2f%% ", $percent); + printf("%s ", shortDate($entry->{MTIME})) if $opt_showdate; +- printf("%s%s\n", $entry->{NAME}, $entry->{TYPE} & $TYPE_DIR ? "/" : ""); ++ ++ printColor( $entry ) unless ( $opt_nocolor ); ++ printNoColor( $entry ) if ( $opt_nocolor ); + if($entry->{TYPE} & $TYPE_DIR) { + printDir($entry, $indent+1) if(!defined $opt_textdepth || ($opt_textdepth > $indent+1)); + } + } + } + ++sub printColor { ++ my $entry = shift; ++ ++ my @tmp = split /\./, $entry->{NAME}; ++ ++ if ( $entry->{TYPE} & $TYPE_DIR ) { ++ print BLUE, BOLD, $entry->{NAME}."/\n", RESET ++ } ++ else { ++ given ($tmp[$#tmp]) { ++ #executable (bright green) ++ when([ qw(cmd exe com btm bat sh csh) ]) { ++ print BOLD, GREEN, $entry->{NAME}."\n", RESET ++ } ++ #archives / compressed (bright red) ++ when([ qw(tar tgz arj taz lzh zip z Z gz bz2 tbz2 tz deb rpm rar ace zoo cpio 7z rz) ]) { ++ print BOLD, RED, $entry->{NAME}."\n", RESET ++ } ++ #image formats ++ when([ qw(jpg jpeg gif bmp ppm tga xbm xpm tif tiff png mng xcf pcx mpg mpeg m2v avi mkv ++ ogm mp4 mp4v mov qt wmv asf rm rmvb flc fli gl dl) ]) { ++ print BOLD, MAGENTA, $entry->{NAME}."\n", RESET ++ } ++ #misc. ++ when([ qw(pdf ps txt patch diff log tex doc) ]) { ++ print GREEN, $entry->{NAME}."\n", RESET ++ } ++ when([ qw(mp3 wav mid midi au ogg flac aac) ]) { ++ print CYAN, $entry->{NAME}."\n", RESET ++ } ++ default { ++ print $entry->{NAME}."\n", RESET ++ } ++ } ++ } ++} ++ ++sub printNoColor { ++ my $entry = shift; ++ ++ printf("%s%s\n", $entry->{NAME}, $entry->{TYPE} & $TYPE_DIR ? "/" : ""); ++} ++ + sub processSizeOption { + my ($size, $temp); + +@@ -438,6 +488,9 @@ + -d, --desc=<description> give description of save file + -c, --collate=<dir> collate save files in dir for web report + ++Color Option: ++ -nc, --nocolor no color output ++ By default durep color outpu + Inclusion Options: + -f, --files do not descend into subdirs, only report files + -x, --one-file-system do not traverse file systems diff --git a/app-admin/durep/metadata.xml b/app-admin/durep/metadata.xml new file mode 100644 index 000000000000..06fca6f76106 --- /dev/null +++ b/app-admin/durep/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> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <longdescription>A perl script designed for monitoring disk usage. Similar to du</longdescription> +</pkgmetadata> diff --git a/app-admin/ec2-ami-tools/Manifest b/app-admin/ec2-ami-tools/Manifest new file mode 100644 index 000000000000..e7ed5a1fb042 --- /dev/null +++ b/app-admin/ec2-ami-tools/Manifest @@ -0,0 +1 @@ +DIST ec2-ami-tools-1.5.6.zip 156541 SHA256 7aa6f2e581d52febf8850b3657a2f01c2f0180d91d33bdb1c246d485c1194708 SHA512 77ce82acbccf32bb1b900ef0b8c7440d4fc05e9b883081432935c6fef94b1f27191a0147e73c9eec680eca94c62075ab81bb8b0c33bec56bb2b861876de0129d WHIRLPOOL 1c7d20edde821e307eb8190413658e48d49a9c17d73b6c67a93b89f6b22512b1149c524d0a8111c5e6d36ca26465ae4a7f44cf4adf523318692dbef9213ce1ac diff --git a/app-admin/ec2-ami-tools/ec2-ami-tools-1.5.6.ebuild b/app-admin/ec2-ami-tools/ec2-ami-tools-1.5.6.ebuild new file mode 100644 index 000000000000..938f477fa980 --- /dev/null +++ b/app-admin/ec2-ami-tools/ec2-ami-tools-1.5.6.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit versionator + +DESCRIPTION="These command-line tools serve as the client interface to the Amazon EC2 web service" +HOMEPAGE="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=368&categoryID=88" +SRC_URI="http://s3.amazonaws.com/ec2-downloads/${P}.zip" + +LICENSE="Amazon + || ( Ruby GPL-2 )" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +ruby_slot="2.0" + +DEPEND="app-arch/unzip" +RDEPEND="dev-lang/ruby:${ruby_slot}[ssl] + net-misc/rsync + net-misc/curl" + +src_prepare() { + # Simplify the scripts to always run Ruby 20, since Gentoo supports + # alternative implementations as well it is not guaranteed that ruby is ruby19. + sed -i -e "\$s:^ruby:exec ruby${ruby_slot/./}:" bin/* || die 'Sed failed.' + + # Remove a left behind license file. + rm lib/ec2/oem/LICENSE.txt || die 'Removal of LICENSE failed.' +} + +src_install() { + dobin bin/* + + insinto /usr + doins -r lib + + insinto /etc/ec2/amitools + doins etc/ec2/amitools/* + + dodir /etc/env.d + echo "EC2_AMITOOL_HOME=/usr" >> "${T}"/99${PN} || die "Can't write environment variable." + doenvd "${T}"/99${PN} +} + +pkg_postinst() { + ewarn "Remember to run \`env-update && source /etc/profile\` if you plan" + ewarn "to use these tools in a shell before logging out (or restarting" + ewarn "your login manager)." +} diff --git a/app-admin/ec2-ami-tools/metadata.xml b/app-admin/ec2-ami-tools/metadata.xml new file mode 100644 index 000000000000..daccbacc9d37 --- /dev/null +++ b/app-admin/ec2-ami-tools/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> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <longdescription> + These command-line tools serve as the client interface to the Amazon EC2 web service. + </longdescription> +</pkgmetadata> diff --git a/app-admin/ec2-api-tools/Manifest b/app-admin/ec2-api-tools/Manifest new file mode 100644 index 000000000000..13e95a830938 --- /dev/null +++ b/app-admin/ec2-api-tools/Manifest @@ -0,0 +1 @@ +DIST ec2-api-tools-1.6.7.2.zip 14536729 SHA256 4ff426a8d36610754699f639780c7b258744e1705f19a9b1c1c6794d63283557 SHA512 a2e5381689892bd471d7edea8f96969af847f47da20465f8584fb02e461b9e7c7f35a69e81164bdcfb703045531f5760ba96f247335ac9ead04ada6a1c076cd8 WHIRLPOOL e6fd6511bc53871f2e8e172a736b4a9ea1fe24814ea16ae4ef998eb899bb420db3eed92f45e920d89d4997a74194be2ca4dfcd3c653a807d5efc95810f204399 diff --git a/app-admin/ec2-api-tools/ec2-api-tools-1.6.7.2-r4.ebuild b/app-admin/ec2-api-tools/ec2-api-tools-1.6.7.2-r4.ebuild new file mode 100644 index 000000000000..954c81bb8dd7 --- /dev/null +++ b/app-admin/ec2-api-tools/ec2-api-tools-1.6.7.2-r4.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit versionator java-pkg-2 + +DESCRIPTION="These command-line tools serve as the client interface to the Amazon EC2 web service" +HOMEPAGE="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=351&categoryID=88" +SRC_URI="http://s3.amazonaws.com/ec2-downloads/${PN}-${PV}.zip" + +LICENSE="Amazon" +SLOT="0" +KEYWORDS="~amd64 ~x86" +RESTRICT="mirror" + +CDEPEND=" + dev-java/bcprov:1.45 + dev-java/commons-cli:1 + dev-java/commons-codec:0 + dev-java/commons-discovery:0 + dev-java/commons-httpclient:3 + dev-java/commons-logging:0 + dev-java/jaxb:2 + dev-java/jax-ws:2 + dev-java/jsr173:0 + dev-java/jdom:1.0 + dev-java/log4j:0 + dev-java/wsdl4j:0 + dev-java/xalan:0 + dev-java/xalan-serializer:0 + dev-java/xerces:2" + +DEPEND="${CDEPEND} + app-arch/unzip:0" + +RDEPEND="${CDEPEND} + >=virtual/jre-1.4" + +S=${WORKDIR}/${PN}-${PV} + +java_prepare() { + rm lib/{bcprov-jdk*,commons-cli-*,commons-codec-*,commons-discovery,commons-httpclient-*,commons-logging-adapters-*,commons-logging-api-*,jaxb-api,jaxb-impl,jaxws-api,jdom,log4j-*,stax2-api-*,wsdl4j,xalan,xercesImpl}.jar \ + || die "Failed to remove bundled jar files that are provided by system." + + find . -name '*.cmd' -delete || die "Failed to remove non-Linux files." + + sed -i "s:LIBDIR=\".*\":LIBDIR=\"/usr/share/${PN}/lib\":g" bin/ec2-cmd || die "Failed to set the library path in the wrapper." + + for FILE in bin/* ; do + sed -i 's:${EC2_HOME}:/usr:g' ${FILE} || die "Failed to set the EC2_HOME value in the wrappers." + sed -i '/PREFIX__EC2_HOME/d' ${FILE} || die "Failed to remove remaining redundant PREFIX__EC2_HOME lines from wrappers." + done +} + +src_install() { + dobin bin/* + + local libs="/usr/share/${PN}/lib" + insinto ${libs} + doins lib/*.jar + dosym $(java-pkg_getjar bcprov{-1.45,.jar}) ${libs}/bcprov-jdk15-145.jar + dosym $(java-pkg_getjar commons-cli{-1,.jar}) ${libs}/commons-cli-1.1.jar + dosym $(java-pkg_getjar commons-codec{,.jar}) ${libs}/commons-codec-1.4.jar + dosym $(java-pkg_getjar commons-discovery{,.jar}) ${libs}/commons-discovery.jar + dosym $(java-pkg_getjar commons-httpclient{-3,.jar}) ${libs}/commons-httpclient-3.1.jar + dosym $(java-pkg_getjar commons-logging{,-adapters.jar}) ${libs}/commons-logging-adapters-1.1.1.jar + dosym $(java-pkg_getjar commons-logging{,-api.jar}) ${libs}/commons-logging-api-1.1.1.jar + dosym $(java-pkg_getjar jaxb{-2,-api.jar}) ${libs}/jaxb-api.jar + dosym $(java-pkg_getjar jaxb{-2,-impl.jar}) ${libs}/jaxb-impl.jar + dosym $(java-pkg_getjar jax-ws{-2,.jar}) ${libs}/jaxws-api.jar + dosym $(java-pkg_getjar jdom{-1.0,.jar}) ${libs}/jdom.jar + dosym $(java-pkg_getjar log4j{,.jar}) ${libs}/log4j-1.2.14.jar + dosym $(java-pkg_getjar jsr173{,.jar}) ${libs}/stax2-api-3.0.1.jar + dosym $(java-pkg_getjar wsdl4j{,.jar}) ${libs}/wsdl4j.jar + dosym $(java-pkg_getjar xalan{,.jar}) ${libs}/xalan.jar + dosym $(java-pkg_getjar xerces{-2,Impl.jar}) ${libs}/xercesImpl.jar + + dodoc THIRDPARTYLICENSE.TXT +} + +pkg_postinst() { + elog "" + elog "You need to put the following in your ~/.bashrc replacing the" + elog "values with the full paths to your key and certificate." + elog "" + elog " export EC2_PRIVATE_KEY=/path/to/pk-HKZYKTAIG2ECMXYIBH3HXV4ZBZQ55CLO.pem" + elog " export EC2_CERT=/path/to/cert-HKZYKTAIG2ECMXYIBH3HXV4ZBZQ55CLO.pem" +} diff --git a/app-admin/ec2-api-tools/metadata.xml b/app-admin/ec2-api-tools/metadata.xml new file mode 100644 index 000000000000..daccbacc9d37 --- /dev/null +++ b/app-admin/ec2-api-tools/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> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <longdescription> + These command-line tools serve as the client interface to the Amazon EC2 web service. + </longdescription> +</pkgmetadata> diff --git a/app-admin/eclean-kernel/Manifest b/app-admin/eclean-kernel/Manifest new file mode 100644 index 000000000000..b889dc80c4ed --- /dev/null +++ b/app-admin/eclean-kernel/Manifest @@ -0,0 +1,2 @@ +DIST eclean-kernel-0.4.1.tar.bz2 9540 SHA256 be877b4a9686abb665077e32e22dee7ad85bb5514f3db5ac6e179d3d3bc92dbb SHA512 8274c299221a1472b9408a8f3bbe547daba1c6377594ac0f5a6c5874a35235977b8b956232952d4b14296d11ebe2bd91c547ddd4de42dc2ed5f7f13970c8f15f WHIRLPOOL 49990795ae8061423985c8a96e213062124a1f5258872a26ad259835d1bf4aff44d3a621cdde74161fa801673c4e1995e69b466b77e6dcbad0130b19e65eadfe +DIST eclean-kernel-0.4.tar.bz2 9408 SHA256 be9d85fcb0c0cd4c70b3e3e7793bcacf9673faf9069356ef0af9661c050cf928 SHA512 f7f4a1a910594bb28bf37792c87a7ee96daecea006376cf98d0eeeb4d4c3c2a59e46fd986a5c7d34d0a54520bef58b225a498f926d4858d5ba2a4d3941ed3f36 WHIRLPOOL 3f8a168562082a12de34d5cca1e8fda2a5730607678bea55ff5c68f96399e3500681efccfe16201017f510ef916376b9da2495b39913ae5183f81ed8fae97b57 diff --git a/app-admin/eclean-kernel/eclean-kernel-0.4.1.ebuild b/app-admin/eclean-kernel/eclean-kernel-0.4.1.ebuild new file mode 100644 index 000000000000..0474a6a32124 --- /dev/null +++ b/app-admin/eclean-kernel/eclean-kernel-0.4.1.ebuild @@ -0,0 +1,19 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy ) + +inherit distutils-r1 + +DESCRIPTION="Remove outdated built kernels" +HOMEPAGE="https://bitbucket.org/mgorny/eclean-kernel/" +SRC_URI="https://www.bitbucket.org/mgorny/${PN}/downloads/${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~mips ~x86 ~x86-fbsd" +IUSE="" + +RDEPEND="kernel_linux? ( dev-python/pymountboot[${PYTHON_USEDEP}] )" diff --git a/app-admin/eclean-kernel/eclean-kernel-0.4.ebuild b/app-admin/eclean-kernel/eclean-kernel-0.4.ebuild new file mode 100644 index 000000000000..17d4f6045d5b --- /dev/null +++ b/app-admin/eclean-kernel/eclean-kernel-0.4.ebuild @@ -0,0 +1,19 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python{2_7,3_3} pypy ) + +inherit distutils-r1 + +DESCRIPTION="Remove outdated built kernels" +HOMEPAGE="https://bitbucket.org/mgorny/eclean-kernel/" +SRC_URI="https://www.bitbucket.org/mgorny/${PN}/downloads/${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~mips ~x86 ~x86-fbsd" +IUSE="" + +RDEPEND="kernel_linux? ( dev-python/pymountboot[${PYTHON_USEDEP}] )" diff --git a/app-admin/eclean-kernel/eclean-kernel-9999.ebuild b/app-admin/eclean-kernel/eclean-kernel-9999.ebuild new file mode 100644 index 000000000000..8a7b46ef96f2 --- /dev/null +++ b/app-admin/eclean-kernel/eclean-kernel-9999.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy ) + +inherit distutils-r1 + +#if LIVE +EGIT_REPO_URI="http://bitbucket.org/mgorny/${PN}.git" +inherit git-r3 +#endif + +DESCRIPTION="Remove outdated built kernels" +HOMEPAGE="https://bitbucket.org/mgorny/eclean-kernel/" +SRC_URI="https://www.bitbucket.org/mgorny/${PN}/downloads/${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~mips ~x86 ~x86-fbsd" +IUSE="" + +RDEPEND="kernel_linux? ( dev-python/pymountboot[${PYTHON_USEDEP}] )" +#if LIVE + +KEYWORDS= +SRC_URI= +#endif diff --git a/app-admin/eclean-kernel/metadata.xml b/app-admin/eclean-kernel/metadata.xml new file mode 100644 index 000000000000..a19f15875108 --- /dev/null +++ b/app-admin/eclean-kernel/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> + <email>mgorny@gentoo.org</email> + <name>Michał Górny</name> + </maintainer> + <upstream> + <maintainer status="active"> + <email>mgorny@gentoo.org</email> + <name>Michał Górny</name> + </maintainer> + <bugs-to>https://bitbucket.org/mgorny/eclean-kernel/issues/</bugs-to> + <remote-id type="bitbucket">mgorny/eclean-kernel</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/elektra/Manifest b/app-admin/elektra/Manifest new file mode 100644 index 000000000000..9e6e2a07c27f --- /dev/null +++ b/app-admin/elektra/Manifest @@ -0,0 +1,5 @@ +DIST elektra-0.7.1.tar.gz 1347524 SHA256 ff90ae274935eac9c9c5c85ca7e66049be46a31d9ef08bc59a59858a15284c8c SHA512 25ca25e95d1a20a79ba97b094dc9630fb791f6653c2bacec751cc51492202831b7d28ae0786081e6be91581245bda3f5b7e2f3b523f7faa6bfb1d97b3d209684 WHIRLPOOL e90e7c126f2467c8ae29e3cffd5d8a6bfa444dfd38edcc8809d49562825aff8ec6c826139da4a2aa09e38935ee63b48674431c7cc27e2a14d372b2b8270b170d +DIST elektra-0.8.12.tar.gz 2102450 SHA256 562432bea9455a61ff6e6b3263078ea9b26bef2ed177a04b5f9b181d605bc021 SHA512 be01dbeae5cc680973a7c7917f341506106139c7facc3d3f597f31f7aa91065dcee862121b8704d589f4c6dd916a99cadc9b67e2e9604bec2841b1ebafea89ea WHIRLPOOL 6661d9a337aa71fcc9764f127ec4055b3eb1456d60608c80ac8763aee2d680ab8691a16668da8ef694efb09e2415f58bf4e34a4f1f0e9a7498fecf88f56ce9da +DIST elektra-0.8.3.tar.gz 1092409 SHA256 48fab82a6b1e8f0038c43ae9ade4da25b697d0aa74e39b7b94056ab7febc4be1 SHA512 e298c0515515a3a59fe28e695fd347ce775465d95f95f8d08c54e0223baf24300ec7e876d35fd3a07f2348290fdc7f740557333b26e847d09b4c41df63a1d886 WHIRLPOOL 64673416e96cc0a8f3ffbfc3f88525de3bc1270b381d0642b59f0a4f9d49db5cb296bd10a2839bc2baea82f58dcb6416ada1031553d378cba858d8f94df2d3b9 +DIST elektra-0.8.6.tar.gz 1188337 SHA256 e815cf69b070c339784472841aa0ee0b169fab7c78f41cbbd7044f53fa9ed216 SHA512 4df585e07ab461b924a506a8c58bcfbe55e6c1df72710bfdc13760559054ffef6b92f8da94c08f2d8f6a7a7692983d0e92d4ffa98506fcbfc166a71bf989e488 WHIRLPOOL b0dfa2841dcef35e03dfa04e5613576d5d8d74586e959c538399adbebf2d4d4842b15e912845c07f5c309614e33217b112124ec0971accf9fa4e521e1283732a +DIST elektra-0.8.7.tar.gz 1566800 SHA256 698ebd41d540eb0c6427c17c13a6a0f03eef94655fbd40655c9b42d612ea1c9b SHA512 37b34abeb392e170f89a97f825153f925d7b11ea980832cb8f1bf8dbd8b098f8bd553b3998728ef84ce4f4c53ea1f420824984fe670f6752c1b50e98821eb07e WHIRLPOOL 7f3f290f9064488fd1c9927a76d3f9e235e144b1ebe91a02b392ee468b2bcc4881906a71b88822a75ac1506200c3c8d5857c31f35bdc8f9832eae67c2647a768 diff --git a/app-admin/elektra/elektra-0.7.1-r5.ebuild b/app-admin/elektra/elektra-0.7.1-r5.ebuild new file mode 100644 index 000000000000..a15dac611bf5 --- /dev/null +++ b/app-admin/elektra/elektra-0.7.1-r5.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools autotools-multilib eutils multilib + +DESCRIPTION="universal and secure framework to store config parameters in a hierarchical key-value pair mechanism" +HOMEPAGE="http://freedesktop.org/wiki/Software/Elektra" +SRC_URI="ftp://ftp.markus-raab.org/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="gcov iconv static-libs test" + +RDEPEND="dev-libs/libxml2[${MULTILIB_USEDEP}]" +DEPEND="${RDEPEND} + sys-devel/libtool[${MULTILIB_USEDEP}] + iconv? ( virtual/libiconv[${MULTILIB_USEDEP}] )" + +src_prepare() { + einfo 'Removing bundled libltdl' + rm -rf libltdl || die + + epatch \ + "${FILESDIR}"/${P}-test.patch \ + "${FILESDIR}"/${P}-ltdl.patch \ + "${FILESDIR}"/${P}-automake-1.12.patch \ + "${FILESDIR}"/${P}-remove-ddefault-link.patch + + touch config.rpath + eautoreconf +} + +src_configure() { + # berkeleydb, daemon, fstab, gconf, python do not work + # avoid collision with kerberos (bug 403025, 447246) + local myeconfargs=( + --enable-filesys + --enable-hosts + --enable-ini + --enable-passwd + --disable-berkeleydb + --disable-fstab + --disable-gconf + --disable-daemon + --enable-cpp + --disable-python + $(use_enable gcov) + $(use_enable iconv) + $(use_enable static-libs static) + --with-docdir=/usr/share/doc/${PF} + --with-develdocdir=/usr/share/doc/${PF}a + --includedir=/usr/include/${PN} + ) + autotools-multilib_src_configure + dodir /usr/share/man/man3 +} + +src_compile() { + autotools-multilib_src_compile LIBLTDL=-lltdl +} + +src_install() { + autotools-multilib_src_install + + #avoid collision with allegro (bug 409305) + local my_f="" + for my_f in $(find "${D}"/usr/share/man/man3 -name "key.3*") ; do + mv "${my_f}" "${my_f/key/elektra-key}" || die + elog "/usr/share/man/man3/$(basename "${my_f}") installed as $(basename "${my_f/key/elektra-key}")" + done + + if ! use static-libs; then + find "${D}" -name "*.a" -delete || die + fi + + dodoc AUTHORS ChangeLog NEWS README TODO +} diff --git a/app-admin/elektra/elektra-0.8.12.ebuild b/app-admin/elektra/elektra-0.8.12.ebuild new file mode 100644 index 000000000000..d4eaaa050e58 --- /dev/null +++ b/app-admin/elektra/elektra-0.8.12.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit cmake-multilib eutils java-pkg-opt-2 + +DESCRIPTION="Universal and secure framework to store config parameters in a hierarchical key-value pair mechanism" +HOMEPAGE="http://freedesktop.org/wiki/Software/Elektra" +SRC_URI="ftp://ftp.markus-raab.org/${PN}/releases/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86" +PLUGIN_IUSE="augeas iconv ini java simpleini syslog systemd tcl +uname xml yajl"; +IUSE="dbus doc qt5 static-libs test ${PLUGIN_IUSE}" + +RDEPEND="dev-libs/libltdl:0[${MULTILIB_USEDEP}] + >=dev-libs/libxml2-2.9.1-r4[${MULTILIB_USEDEP}] + augeas? ( app-admin/augeas ) + dbus? ( >=sys-apps/dbus-1.6.18-r1[${MULTILIB_USEDEP}] ) + iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] ) + java? ( >=virtual/jdk-1.8.0 ) + qt5? ( + >=dev-qt/qtdeclarative-5.3 + >=dev-qt/qtgui-5.3 + >=dev-qt/qttest-5.3 + >=dev-qt/qtwidgets-5.3 + ) + uname? ( sys-apps/coreutils ) + systemd? ( sys-apps/systemd[${MULTILIB_USEDEP}] ) + yajl? ( >=dev-libs/yajl-1.0.11-r1[${MULTILIB_USEDEP}] )" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen ) + test? ( >=dev-cpp/gtest-1.7.0 )" + +DOCS=( README.md doc/AUTHORS doc/CODING.md doc/NEWS.md doc/todo/TODO ) +# tries to write to user's home directory (and doesn't respect HOME) +RESTRICT="test" + +MULTILIB_WRAPPED_HEADERS=( /usr/include/elektra/kdbconfig.h ) + +PATCHES=( "${FILESDIR}/${PN}"-0.8.11-conditional-glob-tests.patch ) + +src_prepare() { + cmake-utils_src_prepare + + einfo remove bundled libs + # TODO: Remove bundled inih from src/plugins/ini (add to portage): + # https://code.google.com/p/inih/ + rm -rf src/external || die + + # move doc files to correct location + sed -e "s/elektra-api/${PF}/" \ + -i cmake/ElektraCache.cmake || die + + # avoid useless build time, nothing ends up installed + comment_add_subdirectory benchmarks + comment_add_subdirectory examples +} + +multilib_src_configure() { + local my_plugins="ALL" + + if multilib_is_native_abi ; then + use augeas || my_plugins+=";-augeas" + use java || my_plugins+=";-jni" + else + my_plugins+=";-augeas;-jni" + fi + + use dbus || my_plugins+=";-dbus" + use iconv || my_plugins+=";-iconv" + use ini || my_plugins+=";-ini" # bundles inih + use simpleini || my_plugins+=";-simpleini" + use syslog || my_plugins+=";-syslog" + use systemd || my_plugins+=";-journald" + use tcl || my_plugins+=";-tcl" + use uname || my_plugins+=";-uname" + use xml || my_plugins+=";-xmltool" + use yajl || my_plugins+=";-yajl" + + # Disabling for good (?): + # counter - Only useful for debugging the plugin framework + # doc - Explaining basic makeup of a function //bug #514402 + # noresolver - Does not resolve, but can act as one + # template - Template for new plugin written in C + # wresolver - Resolver for non-POSIX, e.g. w32/w64 systems + my_plugins+=";-counter;-doc;-noresolver;-template;-wresolver" + + local my_tools + + if multilib_is_native_abi ; then + my_tools="kdb" + use qt5 && my_tools+=";qt-gui" + fi + + mycmakeargs=( + "-DBUILD_SHARED=ON" + "-DPLUGINS=${my_plugins}" + "-DTOOLS=${my_tools}" + "-DLATEX_COMPILER=OFF" + "-DTARGET_CMAKE_FOLDER=share/cmake/Modules" + $(multilib_is_native_abi && cmake-utils_use doc BUILD_DOCUMENTATION \ + || echo -DBUILD_DOCUMENTATION=OFF) + $(cmake-utils_use static-libs BUILD_STATIC) + $(cmake-utils_use test BUILD_TESTING) + $(cmake-utils_use test ENABLE_TESTING) + ) + + cmake-utils_src_configure +} + +multilib_src_install_all() { + einfo remove test_data + rm -rvf "${D}/usr/share/${PN}" || die "Failed to remove test_data" + einfo remove tool_exec + rm -rvf "${D}/usr/$(get_libdir)/${PN}/tool_exec" || die "Failed to remove tool_exec" +} diff --git a/app-admin/elektra/elektra-0.8.3-r3.ebuild b/app-admin/elektra/elektra-0.8.3-r3.ebuild new file mode 100644 index 000000000000..9d53dc617967 --- /dev/null +++ b/app-admin/elektra/elektra-0.8.3-r3.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit cmake-multilib eutils + +DESCRIPTION="universal and secure framework to store config parameters in a hierarchical key-value pair mechanism" +HOMEPAGE="http://freedesktop.org/wiki/Software/Elektra" +SRC_URI="ftp://ftp.markus-raab.org/${PN}/releases/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="dbus doc examples iconv inifile simpleini static-libs syslog tcl test xml yajl" + +RDEPEND=">=dev-libs/libxml2-2.9.1-r4[${MULTILIB_USEDEP}] + dbus? ( >=sys-apps/dbus-1.6.18-r1[${MULTILIB_USEDEP}] ) + iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] ) + yajl? ( + <dev-libs/yajl-2[${MULTILIB_USEDEP}] + >=dev-libs/yajl-1.0.11-r1[${MULTILIB_USEDEP}] + )" +DEPEND="${RDEPEND} + sys-devel/libtool + doc? ( app-doc/doxygen )" + +# tries to write to user's home directory (and doesn't respect HOME) +RESTRICT="test" + +src_prepare() { + #fix QA issues with upstream patches + epatch "${FILESDIR}/${P}-introduce-attributes.patch" + epatch "${FILESDIR}/${P}-fix-yajl-if-user-config.patch" + + #move doc files to correct location + sed -e "s/elektra-api/${PF}/" \ + -i cmake/ElektraCache.cmake || die + + cmake-utils_src_prepare +} + +multilib_src_configure() { + local my_plugins="ccode;dump;error;fstab;glob;hexcode;hidden;hosts;network;ni;null;path;resolver;struct;success;template;timeofday;tracer;type;validation" + + use dbus && my_plugins+=";dbus" + use doc && my_plugins+=";doc" + use iconv && my_plugins+=";iconv" + use inifile && my_plugins+=";simpleini" + use syslog && my_plugins+=";syslog" + use tcl && my_plugins+=";tcl" + use xml && my_plugins+=";xmltool" + use yajl && my_plugins+=";yajl" + + mycmakeargs=( + "-DPLUGINS=${my_plugins}" + "-DLATEX_COMPILER=OFF" + "-DTARGET_CMAKE_FOLDER=share/cmake/Modules" + $(multilib_is_native_abi && cmake-utils_use doc BUILD_DOCUMENTATION \ + || echo -DBUILD_DOCUMENTATION=OFF) + $(multilib_is_native_abi && cmake-utils_use examples BUILD_EXAMPLES \ + || echo -DBUILD_EXAMPLES=OFF) + $(cmake-utils_use static-libs BUILD_STATIC) + $(cmake-utils_use test BUILD_TESTING) + ) + + cmake-utils_src_configure +} + +src_compile() { + dodir /usr/share/man/man3 + cmake-multilib_src_compile +} + +multilib_src_install() { + cmake-utils_src_install + + if multilib_is_native_abi && use doc; then + rm -rf "${D}/usr/share/doc/${PF}/man" || die + cd doc/man/man3 || die + local my_f + for my_f in *.3 ; do + newman ${my_f} ${PN}-${my_f} + elog "installed /usr/share/man/man3/${my_f} as ${PN}-${my_f}" + done + fi +} + +multilib_src_install_all() { + dodoc doc/{AUTHORS,CHANGES,NEWS,README,todo/TODO} +} diff --git a/app-admin/elektra/elektra-0.8.6.ebuild b/app-admin/elektra/elektra-0.8.6.ebuild new file mode 100644 index 000000000000..b16fd291eabb --- /dev/null +++ b/app-admin/elektra/elektra-0.8.6.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit cmake-multilib eutils + +DESCRIPTION="universal and secure framework to store config parameters in a hierarchical key-value pair mechanism" +HOMEPAGE="http://freedesktop.org/wiki/Software/Elektra" +SRC_URI="ftp://ftp.markus-raab.org/${PN}/releases/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="dbus doc examples iconv simpleini static-libs syslog tcl test +uname xml yajl" + +RDEPEND=">=dev-libs/libxml2-2.9.1-r4[${MULTILIB_USEDEP}] + dbus? ( >=sys-apps/dbus-1.6.18-r1[${MULTILIB_USEDEP}] ) + iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] ) + uname? ( sys-apps/coreutils ) + yajl? ( + <dev-libs/yajl-2[${MULTILIB_USEDEP}] + >=dev-libs/yajl-1.0.11-r1[${MULTILIB_USEDEP}] + )" +DEPEND="${RDEPEND} + sys-devel/libtool + doc? ( app-doc/doxygen )" + +DOCS="doc/AUTHORS doc/CHANGES doc/NEWS doc/README doc/todo/TODO" +# tries to write to user's home directory (and doesn't respect HOME) +RESTRICT="test" + +src_prepare() { + + #move doc files to correct location + sed -e "s/elektra-api/${PF}/" \ + -i cmake/ElektraCache.cmake || die + + cmake-utils_src_prepare +} + +multilib_src_configure() { + local my_plugins="ccode;dump;error;fstab;glob;hexcode;hidden;hosts;network;ni;null;path;resolver;struct;success;template;timeofday;tracer;type;validation" + + use dbus && my_plugins+=";dbus" + use doc && my_plugins+=";doc" + use iconv && my_plugins+=";iconv" + use simpleini && my_plugins+=";simpleini" + use syslog && my_plugins+=";syslog" + use tcl && my_plugins+=";tcl" + use uname && my_plugins+=";uname" + use xml && my_plugins+=";xmltool" + use yajl && my_plugins+=";yajl" + + mycmakeargs=( + "-DPLUGINS=${my_plugins}" + "-DLATEX_COMPILER=OFF" + "-DTARGET_CMAKE_FOLDER=share/cmake/Modules" + $(multilib_is_native_abi && cmake-utils_use doc BUILD_DOCUMENTATION \ + || echo -DBUILD_DOCUMENTATION=OFF) + $(multilib_is_native_abi && cmake-utils_use examples BUILD_EXAMPLES \ + || echo -DBUILD_EXAMPLES=OFF) + $(cmake-utils_use static-libs BUILD_STATIC) + $(cmake-utils_use test BUILD_TESTING) + ) + + cmake-utils_src_configure +} diff --git a/app-admin/elektra/elektra-0.8.7.ebuild b/app-admin/elektra/elektra-0.8.7.ebuild new file mode 100644 index 000000000000..3ba336f0e50d --- /dev/null +++ b/app-admin/elektra/elektra-0.8.7.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit cmake-multilib eutils + +DESCRIPTION="universal and secure framework to store config parameters in a hierarchical key-value pair mechanism" +HOMEPAGE="http://freedesktop.org/wiki/Software/Elektra" +SRC_URI="ftp://ftp.markus-raab.org/${PN}/releases/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="dbus doc examples iconv ini keytometa simpleini static-libs syslog tcl test +uname xml yajl" + +RDEPEND=">=dev-libs/libxml2-2.9.1-r4[${MULTILIB_USEDEP}] + dbus? ( >=sys-apps/dbus-1.6.18-r1[${MULTILIB_USEDEP}] ) + iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] ) + uname? ( sys-apps/coreutils ) + yajl? ( + <dev-libs/yajl-2[${MULTILIB_USEDEP}] + >=dev-libs/yajl-1.0.11-r1[${MULTILIB_USEDEP}] + )" +DEPEND="${RDEPEND} + sys-devel/libtool + doc? ( app-doc/doxygen )" + +DOCS="README.md doc/AUTHORS doc/CHANGES doc/NEWS doc/todo/TODO" +# tries to write to user's home directory (and doesn't respect HOME) +RESTRICT="test" + +src_prepare() { + epatch "${FILESDIR}/${P}-conditional-glob-tests.patch" + + einfo remove bundled libs + # TODO: Remove bundled inih from src/plugins/ini (add to portage): + # https://code.google.com/p/inih/ + rm -rf src/external || die + + local tests="augeas fstab hosts ini yajl" + if ! use test ; then + einfo remove test data + for test in ${tests}; do + sed -e '/TARGET_TEST_DATA_FOLDER/ s/^#*/#/' \ + -i src/plugins/${test}/CMakeLists.txt || die + done + fi + + #move doc files to correct location + sed -e "s/elektra-api/${PF}/" \ + -i cmake/ElektraCache.cmake || die + + cmake-utils_src_prepare +} + +multilib_src_configure() { + local my_plugins="ccode;dump;error;fstab;glob;hexcode;hidden;hosts;network;ni;null;path;resolver;struct;success;template;timeofday;tracer;type;validation" + + use dbus && my_plugins+=";dbus" + use iconv && my_plugins+=";iconv" + use ini && my_plugins+=";ini" #bundles inih + use keytometa && my_plugins+=";keytometa" + use simpleini && my_plugins+=";simpleini" + use syslog && my_plugins+=";syslog" + use tcl && my_plugins+=";tcl" + use uname && my_plugins+=";uname" + use xml && my_plugins+=";xmltool" + use yajl && my_plugins+=";yajl" + + mycmakeargs=( + "-DPLUGINS=${my_plugins}" + "-DLATEX_COMPILER=OFF" + "-DTARGET_CMAKE_FOLDER=share/cmake/Modules" + $(multilib_is_native_abi && cmake-utils_use doc BUILD_DOCUMENTATION \ + || echo -DBUILD_DOCUMENTATION=OFF) + $(multilib_is_native_abi && cmake-utils_use examples BUILD_EXAMPLES \ + || echo -DBUILD_EXAMPLES=OFF) + $(cmake-utils_use static-libs BUILD_STATIC) + $(cmake-utils_use test BUILD_TESTING) + $(cmake-utils_use test ENABLE_TESTING) + ) + + cmake-utils_src_configure +} diff --git a/app-admin/elektra/elektra-9999.ebuild b/app-admin/elektra/elektra-9999.ebuild new file mode 100644 index 000000000000..0c88c626bea7 --- /dev/null +++ b/app-admin/elektra/elektra-9999.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit cmake-multilib eutils java-pkg-opt-2 git-r3 + +DESCRIPTION="Universal and secure framework to store config parameters in a hierarchical key-value pair mechanism" +HOMEPAGE="http://freedesktop.org/wiki/Software/Elektra" +EGIT_REPO_URI="git://github.com/ElektraInitiative/libelektra.git" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="" +PLUGIN_IUSE="augeas iconv ini java simpleini syslog systemd tcl +uname xml yajl"; +IUSE="dbus doc qt5 static-libs test ${PLUGIN_IUSE}" + +RDEPEND="dev-libs/libltdl:0[${MULTILIB_USEDEP}] + >=dev-libs/libxml2-2.9.1-r4[${MULTILIB_USEDEP}] + augeas? ( app-admin/augeas ) + dbus? ( >=sys-apps/dbus-1.6.18-r1[${MULTILIB_USEDEP}] ) + iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] ) + java? ( >=virtual/jdk-1.8.0 ) + qt5? ( + >=dev-qt/qtdeclarative-5.3 + >=dev-qt/qtgui-5.3 + >=dev-qt/qttest-5.3 + >=dev-qt/qtwidgets-5.3 + ) + uname? ( sys-apps/coreutils ) + systemd? ( sys-apps/systemd[${MULTILIB_USEDEP}] ) + yajl? ( >=dev-libs/yajl-1.0.11-r1[${MULTILIB_USEDEP}] )" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen ) + test? ( >=dev-cpp/gtest-1.7.0 )" + +DOCS=( README.md doc/AUTHORS doc/CODING.md doc/NEWS.md doc/todo/TODO ) +# tries to write to user's home directory (and doesn't respect HOME) +RESTRICT="test" + +MULTILIB_WRAPPED_HEADERS=( /usr/include/elektra/kdbconfig.h ) + +PATCHES=( "${FILESDIR}/${PN}"-0.8.11-conditional-glob-tests.patch ) + +src_prepare() { + cmake-utils_src_prepare + + einfo remove bundled libs + # TODO: Remove bundled inih from src/plugins/ini (add to portage): + # https://code.google.com/p/inih/ + rm -rf src/external || die + + # move doc files to correct location + sed -e "s/elektra-api/${PF}/" \ + -i cmake/ElektraCache.cmake || die + + # avoid useless build time, nothing ends up installed + comment_add_subdirectory benchmarks + comment_add_subdirectory examples +} + +multilib_src_configure() { + local my_plugins="ALL" + + if multilib_is_native_abi ; then + use augeas || my_plugins+=";-augeas" + use java || my_plugins+=";-jni" + else + my_plugins+=";-augeas;-jni" + fi + + use dbus || my_plugins+=";-dbus" + use iconv || my_plugins+=";-iconv" + use ini || my_plugins+=";-ini" # bundles inih + use simpleini || my_plugins+=";-simpleini" + use syslog || my_plugins+=";-syslog" + use systemd || my_plugins+=";-journald" + use tcl || my_plugins+=";-tcl" + use uname || my_plugins+=";-uname" + use xml || my_plugins+=";-xmltool" + use yajl || my_plugins+=";-yajl" + + # Disabling for good (?): + # counter - Only useful for debugging the plugin framework + # doc - Explaining basic makeup of a function //bug #514402 + # noresolver - Does not resolve, but can act as one + # template - Template for new plugin written in C + # wresolver - Resolver for non-POSIX, e.g. w32/w64 systems + my_plugins+=";-counter;-doc;-noresolver;-template;-wresolver" + + local my_tools + + if multilib_is_native_abi ; then + my_tools="kdb" + use qt5 && my_tools+=";qt-gui" + fi + + mycmakeargs=( + "-DBUILD_SHARED=ON" + "-DPLUGINS=${my_plugins}" + "-DTOOLS=${my_tools}" + "-DLATEX_COMPILER=OFF" + "-DTARGET_CMAKE_FOLDER=share/cmake/Modules" + $(multilib_is_native_abi && cmake-utils_use doc BUILD_DOCUMENTATION \ + || echo -DBUILD_DOCUMENTATION=OFF) + $(cmake-utils_use static-libs BUILD_STATIC) + $(cmake-utils_use test BUILD_TESTING) + $(cmake-utils_use test ENABLE_TESTING) + ) + + cmake-utils_src_configure +} + +multilib_src_install_all() { + einfo remove test_data + rm -rvf "${D}/usr/share/${PN}" || die "Failed to remove test_data" + einfo remove tool_exec + rm -rvf "${D}/usr/$(get_libdir)/${PN}/tool_exec" || die "Failed to remove tool_exec" +} diff --git a/app-admin/elektra/files/elektra-0.7.1-automake-1.12.patch b/app-admin/elektra/files/elektra-0.7.1-automake-1.12.patch new file mode 100644 index 000000000000..e4539dbc1c20 --- /dev/null +++ b/app-admin/elektra/files/elektra-0.7.1-automake-1.12.patch @@ -0,0 +1,24 @@ +http://bugs.gentoo.org/421589 + +--- configure.ac ++++ configure.ac +@@ -46,6 +46,8 @@ + AM_INIT_AUTOMAKE + AC_CONFIG_HEADER([src/include/config.h]) + ++AC_PROG_MKDIR_P ++ + dnl select POSIX extensions, useful on solaris, for example + gl_USE_SYSTEM_EXTENSIONS + +--- doc/Makefile.am ++++ doc/Makefile.am +@@ -223,7 +223,7 @@ + + install-man3: $(man3_MANS) + @$(NORMAL_INSTALL) +- test -z "$(man3dir)" || $(mkdir_p) "$(DESTDIR)$(man3dir)" ++ test -z "$(man3dir)" || $(MKDIR_P) "$(DESTDIR)$(man3dir)" + @if test -d elektra-api/man/; then man_d=elektra-api/man/; \ + else man_d=$(srcdir)/elektra-api/man/; \ + fi; \ diff --git a/app-admin/elektra/files/elektra-0.7.1-ltdl.patch b/app-admin/elektra/files/elektra-0.7.1-ltdl.patch new file mode 100644 index 000000000000..65bccdf763e6 --- /dev/null +++ b/app-admin/elektra/files/elektra-0.7.1-ltdl.patch @@ -0,0 +1,21 @@ +--- elektra-0.7.1/Makefile.am ++++ elektra-0.7.1/Makefile.am +@@ -1,6 +1,6 @@ + ACLOCAL_AMFLAGS = -I m4 + +-SUBDIRS = libltdl src doc benchmarks examples scripts xmlschema tests ++SUBDIRS = src doc benchmarks examples scripts xmlschema tests + EXTRA_DIST=elektra.pc elektratools.pc elektracpp.pc elektra.spec elektra.mandriva.spec elektra.xml + + pkgconfigdir = $(ulibdir)/pkgconfig +--- elektra-0.7.1/doc/Makefile.am ++++ elektra-0.7.1/doc/Makefile.am +@@ -7,6 +7,8 @@ + EXTRA_DIST+=$(all_mans) + EXTRA_DIST+= $(HTML_TITLE_LAYOUT_XSL) + ++develdocDATA_INSTALL = install ++ + SUBDIRS=images standards + + # Dependencies for Doxygen documentation diff --git a/app-admin/elektra/files/elektra-0.7.1-remove-ddefault-link.patch b/app-admin/elektra/files/elektra-0.7.1-remove-ddefault-link.patch new file mode 100644 index 000000000000..4dd162dcaa62 --- /dev/null +++ b/app-admin/elektra/files/elektra-0.7.1-remove-ddefault-link.patch @@ -0,0 +1,16 @@ +--- a/src/backends/Makefile.am 2010-04-27 09:17:25.000000000 +0200 ++++ b/src/backends/Makefile.am 2013-03-30 15:34:36.406336274 +0100 +@@ -7,13 +7,7 @@ + cd $(DESTDIR)$(backenddir) && \ + test -L libelektra-default.so || \ + $(LN_S) libelektra-@default_backend@.so libelektra-default.so +- cd $(DESTDIR)$(backenddir) && \ +- test -L libelektra-ddefault.so || \ +- $(LN_S) libelektra-@default_dbackend@.so libelektra-ddefault.so + + uninstall-hook: + -cd $(DESTDIR)$(backenddir) && \ + rm -f libelektra-default.so +- -cd $(DESTDIR)$(backenddir) && \ +- rm -f libelektra-ddefault.so +- diff --git a/app-admin/elektra/files/elektra-0.7.1-test.patch b/app-admin/elektra/files/elektra-0.7.1-test.patch new file mode 100644 index 000000000000..357f25848f8f --- /dev/null +++ b/app-admin/elektra/files/elektra-0.7.1-test.patch @@ -0,0 +1,123 @@ +--- elektra-0.7.1/src/bindings/cpp/tests/test_kdb.cpp ++++ elektra-0.7.1/src/bindings/cpp/tests/test_kdb.cpp +@@ -1,4 +1,5 @@ + #include <tests.h> ++#include <stdio.h> + + void test_kdbGetSet() + { +--- elektra-0.7.1/src/bindings/cpp/tests/test_ks.cpp ++++ elektra-0.7.1/src/bindings/cpp/tests/test_ks.cpp +@@ -1,4 +1,5 @@ + #include <tests.h> ++#include <stdio.h> + + void test_ksnew() + { +--- elektra-0.7.1/src/bindings/cpp/tests/test_key.cpp ++++ elektra-0.7.1/src/bindings/cpp/tests/test_key.cpp +@@ -1,4 +1,5 @@ + #include <tests.h> ++#include <stdio.h> + + void test_keynew() + { +--- elektra-0.7.1/src/bindings/cpp/tests/Makefile.am ++++ elektra-0.7.1/src/bindings/cpp/tests/Makefile.am +@@ -10,13 +10,13 @@ + endif + + test_key_SOURCES = test_key.cpp tests.h tests.cpp +-test_key_LDADD = $(privatelibs) ../libelektra-cpp.a ../../../libelektra/libelektra.a ++test_key_LDADD = $(privatelibs) ../libelektra-cpp.a ../../../libelektra/libelektra.a /usr/lib/libxml2.a /usr/lib/libz.a + + test_ks_SOURCES = test_ks.cpp tests.h tests.cpp +-test_ks_LDADD = $(privatelibs) ../libelektra-cpp.a ../../../libelektra/libelektra.a ++test_ks_LDADD = $(privatelibs) ../libelektra-cpp.a ../../../libelektra/libelektra.a /usr/lib/libxml2.a /usr/lib/libz.a + + test_kdb_SOURCES = test_kdb.cpp tests.h tests.cpp +-test_kdb_LDADD = $(privatelibs) ../libelektra-cpp.a ../../../libelektra/libelektra.a ++test_kdb_LDADD = $(privatelibs) ../libelektra-cpp.a ../../../libelektra/libelektra.a /usr/lib/libxml2.a /usr/lib/libz.a + + ../libelektra-cpp.a: + cd .. && $(MAKE) libelektra-cpp.a +--- elektra-0.7.1/tests/Makefile.am ++++ elektra-0.7.1/tests/Makefile.am +@@ -1,10 +1,10 @@ + AM_CFLAGS = $(COPTFLAGS) $(CDBGFLAGS) + AM_CPPFLAGS = -I$(top_srcdir)/src/include $(LTDLINCL) + +-TESTS = test_key test_ks test_kdb test_xml test_validate.sh test_getset test_trie test_mount test_cap test_stream test_serialize test_split test_internals test_backendhelpers test_script.sh test_type ++TESTS = test_key test_ks test_kdb test_xml test_validate.sh test_getset test_trie test_mount test_cap test_stream test_serialize test_split test_internals test_script.sh test_type + #TESTS = test_backendhelpers + +-check_PROGRAMS = test_key test_ks test_kdb test_xml test_getset test_trie test_mount test_cap test_stream test_serialize test_split test_internals test_backendhelpers test_type print_info ++check_PROGRAMS = test_key test_ks test_kdb test_xml test_getset test_trie test_mount test_cap test_stream test_serialize test_split test_internals test_type print_info + #check_PROGRAMS = test_backendhelpers + + if VALGRINDTESTS +@@ -19,49 +19,49 @@ + rm -f *.gcno *.gcda *.gcno + + test_key_SOURCES = test_key.c tests.h tests.c +-test_key_LDADD = $(privatelibs) ../src/libelektra/libelektra.a ++test_key_LDADD = $(privatelibs) ../src/libelektra/libelektra.a /usr/lib/libxml2.a /usr/lib/libz.a /usr/lib/libm.a + + test_ks_SOURCES = test_ks.c tests.h tests.c +-test_ks_LDADD = $(privatelibs) ../src/libelektra/libelektra.a ++test_ks_LDADD = $(privatelibs) ../src/libelektra/libelektra.a /usr/lib/libxml2.a /usr/lib/libz.a /usr/lib/libm.a + + test_kdb_SOURCES = test_kdb.c tests.h tests.c +-test_kdb_LDADD = $(privatelibs) ../src/libelektra/libelektra.a ++test_kdb_LDADD = $(privatelibs) ../src/libelektra/libelektra.a /usr/lib/libxml2.a /usr/lib/libz.a /usr/lib/libm.a + + test_xml_SOURCES = test_xml.c tests.h tests.c +-test_xml_LDADD = $(privatelibs) ../src/libelektra/libelektra.a ++test_xml_LDADD = $(privatelibs) ../src/libelektra/libelektra.a /usr/lib/libxml2.a /usr/lib/libz.a /usr/lib/libm.a + + test_getset_SOURCES = test_getset.c tests.h tests.c +-test_getset_LDADD = $(privatelibs) ../src/libelektra/libelektra.a ++test_getset_LDADD = $(privatelibs) ../src/libelektra/libelektra.a /usr/lib/libxml2.a /usr/lib/libz.a /usr/lib/libm.a + + test_trie_SOURCES = test_trie.c tests.h tests.c +-test_trie_LDADD = $(privatelibs) ../src/libelektra/libelektra.a ++test_trie_LDADD = $(privatelibs) ../src/libelektra/libelektra.a /usr/lib/libxml2.a /usr/lib/libz.a /usr/lib/libm.a + + test_mount_SOURCES = test_mount.c tests.h tests.c +-test_mount_LDADD = $(privatelibs) ../src/libelektra/libelektra.a ++test_mount_LDADD = $(privatelibs) ../src/libelektra/libelektra.a /usr/lib/libxml2.a /usr/lib/libz.a /usr/lib/libm.a + + test_cap_SOURCES = test_cap.c tests.h tests.c +-test_cap_LDADD = $(privatelibs) ../src/libelektra/libelektra.a ++test_cap_LDADD = $(privatelibs) ../src/libelektra/libelektra.a /usr/lib/libxml2.a /usr/lib/libz.a /usr/lib/libm.a + + test_stream_SOURCES = test_stream.c tests.h tests.c +-test_stream_LDADD = $(privatelibs) ../src/libelektra/libelektra.a ++test_stream_LDADD = $(privatelibs) ../src/libelektra/libelektra.a /usr/lib/libxml2.a /usr/lib/libz.a /usr/lib/libm.a + + test_serialize_SOURCES = test_serialize.c tests.h tests.c +-test_serialize_LDADD = $(privatelibs) ../src/libelektra/libelektra.a ++test_serialize_LDADD = $(privatelibs) ../src/libelektra/libelektra.a /usr/lib/libxml2.a /usr/lib/libz.a /usr/lib/libm.a + + test_split_SOURCES = test_split.c tests.h tests.c +-test_split_LDADD = $(privatelibs) ../src/libelektra/libelektra.a ++test_split_LDADD = $(privatelibs) ../src/libelektra/libelektra.a /usr/lib/libxml2.a /usr/lib/libz.a /usr/lib/libm.a + + test_internals_SOURCES = test_internals.c tests.h tests.c +-test_internals_LDADD = $(privatelibs) ../src/libelektra/libelektra.a ++test_internals_LDADD = $(privatelibs) ../src/libelektra/libelektra.a /usr/lib/libxml2.a /usr/lib/libz.a /usr/lib/libm.a + + test_backendhelpers_SOURCES = test_backendhelpers.c tests.h tests.c +-test_backendhelpers_LDADD = $(privatelibs) ../src/libelektra/libelektra.a ++test_backendhelpers_LDADD = $(privatelibs) ../src/libelektra/libelektra.a /usr/lib/libxml2.a /usr/lib/libz.a /usr/lib/libm.a + + test_type_SOURCES = test_type.c tests.h tests.c +-test_type_LDADD = $(privatelibs) ../src/libelektra/libelektra.a ++test_type_LDADD = $(privatelibs) ../src/libelektra/libelektra.a /usr/lib/libxml2.a /usr/lib/libz.a /usr/lib/libm.a + + print_info_SOURCES = print_info.c tests.h tests.c +-print_info_LDADD = $(privatelibs) ../src/libelektra/libelektra.a ++print_info_LDADD = $(privatelibs) ../src/libelektra/libelektra.a /usr/lib/libxml2.a /usr/lib/libz.a /usr/lib/libm.a + + ../src/libelektra/libelektra.a: + cd ../src/libelektra && $(MAKE) libelektra.a diff --git a/app-admin/elektra/files/elektra-0.8.11-conditional-glob-tests.patch b/app-admin/elektra/files/elektra-0.8.11-conditional-glob-tests.patch new file mode 100644 index 000000000000..ad529e4fd059 --- /dev/null +++ b/app-admin/elektra/files/elektra-0.8.11-conditional-glob-tests.patch @@ -0,0 +1,22 @@ +--- a/src/libtools/tests/CMakeLists.txt 2014-08-22 20:52:14.634898037 +0200 ++++ b/src/libtools/tests/CMakeLists.txt 2014-08-22 21:19:25.770506035 +0200 +@@ -4,10 +4,12 @@ + add_cppheaders (HDR_FILES) + add_toolheaders(HDR_FILES) + +-include (LibAddTest) ++if (ENABLE_TESTING) ++ include (LibAddTest) + +-file (GLOB TESTS testtool_*.cpp) +-foreach (file ${TESTS}) +- get_filename_component (name ${file} NAME_WE) +- add_gtest (${name}) +-endforeach (file ${TESTS}) +\ No newline at end of file ++ file (GLOB TESTS testtool_*.cpp) ++ foreach (file ${TESTS}) ++ get_filename_component (name ${file} NAME_WE) ++ add_gtest (${name}) ++ endforeach (file ${TESTS}) ++endif (ENABLE_TESTING) diff --git a/app-admin/elektra/files/elektra-0.8.3-fix-yajl-if-user-config.patch b/app-admin/elektra/files/elektra-0.8.3-fix-yajl-if-user-config.patch new file mode 100644 index 000000000000..9577f1e01956 --- /dev/null +++ b/app-admin/elektra/files/elektra-0.8.3-fix-yajl-if-user-config.patch @@ -0,0 +1,31 @@ +--- a/src/plugins/yajl/yajl.c ++++ b/src/plugins/yajl/yajl.c +@@ -23,6 +23,10 @@ + ***************************************************************************/ + + ++#ifndef HAVE_KDBCONFIG ++# include "kdbconfig.h" ++#endif ++ + #include "yajl.h" + + #include <kdberrors.h> +@@ -340,7 +344,7 @@ + KeySet *config= elektraPluginGetConfig(handle); + + // ksClear (returned); +- if (keyIsUser(parentKey)) ++ if (!strncmp(keyName(parentKey), "user", 4)) + { + const Key * lookup = ksLookupByName(config, "/user_path", 0); + if (!lookup) +@@ -422,7 +426,7 @@ + return 1; /* success */ + } + +-int elektraYajlSet(Plugin *handle, KeySet *returned, Key *parentKey) ++int elektraYajlSet(Plugin *handle ELEKTRA_UNUSED, KeySet *returned, Key *parentKey) + { + yajl_gen_config conf = { 1, " " }; + yajl_gen g = yajl_gen_alloc(&conf, NULL); diff --git a/app-admin/elektra/files/elektra-0.8.3-introduce-attributes.patch b/app-admin/elektra/files/elektra-0.8.3-introduce-attributes.patch new file mode 100644 index 000000000000..b970544df010 --- /dev/null +++ b/app-admin/elektra/files/elektra-0.8.3-introduce-attributes.patch @@ -0,0 +1,27 @@ +--- a/src/include/CMakeLists.txt ++++ b/src/include/CMakeLists.txt +@@ -22,6 +22,9 @@ + check_include_file(time.h HAVE_TIME_H) + check_include_file(unistd.h HAVE_UNISTD_H) + ++set (ELEKTRA_DEPRECATED "__attribute__ ((deprecated))") ++set (ELEKTRA_UNUSED "__attribute__ ((unused))") ++ + configure_file ( + "${CMAKE_CURRENT_SOURCE_DIR}/kdb.h" + "${CMAKE_CURRENT_BINARY_DIR}/kdb.h" +--- a/src/include/kdbconfig.h ++++ b/src/include/kdbconfig.h +@@ -30,6 +30,12 @@ + * to search for user configuration. */ + #define KDB_DB_HOME "@KDB_DB_HOME@" + ++/** Declares a parameter as unused. */ ++#define ELEKTRA_UNUSED @ELEKTRA_UNUSED@ ++ ++/** Declares an API as deprecated. */ ++#define ELEKTRA_DEPRECATED @ELEKTRA_DEPRECATED@ ++ + /* disable debug output messages */ + #define DEBUG @DEBUG@ + diff --git a/app-admin/elektra/files/elektra-0.8.7-conditional-glob-tests.patch b/app-admin/elektra/files/elektra-0.8.7-conditional-glob-tests.patch new file mode 100644 index 000000000000..16cc0f81513e --- /dev/null +++ b/app-admin/elektra/files/elektra-0.8.7-conditional-glob-tests.patch @@ -0,0 +1,21 @@ +--- elektra-0.87/src/libtools/tests/CMakeLists.txt ++++ elektra-0.87/src/libtools/tests/CMakeLists.txt +@@ -4,10 +4,12 @@ + add_cppheaders (HDR_FILES) + add_toolheaders(HDR_FILES) + +-include (LibAddTest) ++if (ENABLE_TESTING) ++ include (LibAddTest) + +-file (GLOB TESTS testtool_*.cpp) +-foreach (file ${TESTS}) +- get_filename_component (name ${file} NAME_WE) +- add_gtest (${name}) +-endforeach (file ${TESTS}) ++ file (GLOB TESTS testtool_*.cpp) ++ foreach (file ${TESTS}) ++ get_filename_component (name ${file} NAME_WE) ++ add_gtest (${name}) ++ endforeach (file ${TESTS}) ++endif (ENABLE_TESTING) diff --git a/app-admin/elektra/metadata.xml b/app-admin/elektra/metadata.xml new file mode 100644 index 000000000000..c3fe5e3083bd --- /dev/null +++ b/app-admin/elektra/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> +<email>xmw@gentoo.org</email> +<name>Michael Weber</name> +</maintainer> +<use> + <flag name="augeas">Enable plugin for reading and writing configuration files with help from Augeas</flag> + <flag name="ini">Enable new, advanced ini support</flag> + <flag name="gcov">Enable coverage support</flag> + <flag name="keytometa">Enable keytometa support</flag> + <flag name="simpleini">Enable simpleini support</flag> + <flag name="uname">Enable uname information for the key database</flag> + <flag name="yajl">Enable yajl support</flag> +</use> +</pkgmetadata> + diff --git a/app-admin/emacs-updater/Manifest b/app-admin/emacs-updater/Manifest new file mode 100644 index 000000000000..92fb55635cfa --- /dev/null +++ b/app-admin/emacs-updater/Manifest @@ -0,0 +1,2 @@ +DIST emacs-updater-1.13.tar.xz 6976 SHA256 da2aba0a1b264fc8065294614870756015bb2d5ddab920ec675c04b452b61af5 SHA512 78b0ce6aec3969f83bc5ce37d1411deccb1dbfa175718b6223233a74af816c6bf481ac15e81f1adc31ea594ffd187c3c38c08b709275f3c878021a03ee9c3403 WHIRLPOOL aa42bd8eb7ec864d576e1be310285402971550ee56680dd66dd680e97d799ece60f962f895189aeaf1b92c16dbaba9fde082cc4331848859becda505025d865b +DIST emacs-updater-1.14.tar.xz 6920 SHA256 2b5ab546212d48fa8dc5114e4ef7028f8168a306726d04293d5b8314c1508f95 SHA512 849efdb7af61a6ca5854c1afabf38e5898d129c5901712f38293f9fa96f60abbaf97f053f9542ea2d40fd2c7b19f4037aec3e4226aee92e4ce56a3fced3b488b WHIRLPOOL 3296466ddea6da0d720b76ad8b62c9138fa7c23726526572fa7d5ef536a8418e70ab74ce4ebba66ed99db33fd0736ab572fa109e316f057931213fcd9c8f9e27 diff --git a/app-admin/emacs-updater/emacs-updater-1.13.ebuild b/app-admin/emacs-updater/emacs-updater-1.13.ebuild new file mode 100644 index 000000000000..036af83dc07e --- /dev/null +++ b/app-admin/emacs-updater/emacs-updater-1.13.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="Rebuild Emacs packages" +HOMEPAGE="http://wiki.gentoo.org/wiki/Project:Emacs" +SRC_URI="http://dev.gentoo.org/~ulm/emacs/${P}.tar.xz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" + +DEPEND="app-arch/xz-utils" +RDEPEND=">=app-portage/portage-utils-0.3 + virtual/emacs" + +src_prepare() { + if [[ -n ${EPREFIX} ]]; then + sed -i -e "1s:/:${EPREFIX%/}/:" \ + -e "s:^\(EMACS\|SITELISP\)=:&${EPREFIX%/}:" \ + emacs-updater || die + fi +} + +src_install() { + dosbin emacs-updater + doman emacs-updater.8 +} diff --git a/app-admin/emacs-updater/emacs-updater-1.14.ebuild b/app-admin/emacs-updater/emacs-updater-1.14.ebuild new file mode 100644 index 000000000000..f0d97342223f --- /dev/null +++ b/app-admin/emacs-updater/emacs-updater-1.14.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="Rebuild Emacs packages" +HOMEPAGE="http://wiki.gentoo.org/wiki/Project:Emacs" +SRC_URI="http://dev.gentoo.org/~ulm/emacs/${P}.tar.xz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" + +DEPEND="|| ( sys-apps/util-linux app-misc/getopt )" +RDEPEND="${DEPEND} + >=app-portage/portage-utils-0.3 + virtual/emacs" + +src_prepare() { + if ! has_version sys-apps/util-linux; then + # BSD ships a dumb getopt(1), so use getopt-long instead + sed -i -e '/^GETOPT=/s/getopt/&-long/' emacs-updater || die + fi + + if [[ -n ${EPREFIX} ]]; then + sed -i -e "1s:/:${EPREFIX%/}/:" \ + -e "s:^\([[:upper:]]*=\)/:\1${EPREFIX%/}/:" \ + emacs-updater || die + fi +} + +src_install() { + dosbin emacs-updater + doman emacs-updater.8 +} diff --git a/app-admin/emacs-updater/metadata.xml b/app-admin/emacs-updater/metadata.xml new file mode 100644 index 000000000000..bc306fe58224 --- /dev/null +++ b/app-admin/emacs-updater/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>emacs</herd> +</pkgmetadata> diff --git a/app-admin/equo/Manifest b/app-admin/equo/Manifest new file mode 100644 index 000000000000..520d012e476c --- /dev/null +++ b/app-admin/equo/Manifest @@ -0,0 +1 @@ +DIST entropy-254.tar.bz2 18516662 SHA256 5e411472eaf7016a68a4aa81ef92dd3aad8403fc65a0ffb09c57b91c959ca3a6 SHA512 3b3e82abad8008720e370b7892b7be1c48aaa6605914db977f68b9a108ada0a4adbaa5b7b50a9a02ba9c8b0bdefadcda1eceee2c7c2abc385b3daf669649e2da WHIRLPOOL 593469b858707e4ceca56146fa1d608141e44dda0a0921ed6a3ec566878c1e3c153410233f088d57db4f8bd9d1c796bd945cbea3ba455572efc05eca42023ce5 diff --git a/app-admin/equo/equo-254.ebuild b/app-admin/equo/equo-254.ebuild new file mode 100644 index 000000000000..a6987439d5b8 --- /dev/null +++ b/app-admin/equo/equo-254.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils python-single-r1 bash-completion-r1 + +DESCRIPTION="Entropy Package Manager text-based client" +HOMEPAGE="http://www.sabayon.org" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="" +SRC_URI="mirror://sabayon/sys-apps/entropy-${PV}.tar.bz2" + +S="${WORKDIR}/entropy-${PV}" + +DEPEND="${PYTHON_DEPS} + ~sys-apps/entropy-${PV}[${PYTHON_USEDEP}]" +RDEPEND="${DEPEND} sys-apps/file[python]" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +src_compile() { + cd "${S}"/client || die + emake || die "make failed" +} + +src_install() { + cd "${S}"/client || die + emake DESTDIR="${D}" LIBDIR="usr/lib" install || die "make install failed" + newbashcomp "${S}/misc/equo-completion.bash" equo + + python_optimize "${D}/usr/lib/entropy/client" +} diff --git a/app-admin/equo/metadata.xml b/app-admin/equo/metadata.xml new file mode 100644 index 000000000000..187f7a710efe --- /dev/null +++ b/app-admin/equo/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> + <email>lxnay@gentoo.org</email> + <name>Fabio Erculiani</name> + </maintainer> + <use> + </use> +</pkgmetadata> + diff --git a/app-admin/eselect/Manifest b/app-admin/eselect/Manifest new file mode 100644 index 000000000000..14549e5eda02 --- /dev/null +++ b/app-admin/eselect/Manifest @@ -0,0 +1,2 @@ +DIST eselect-1.3.8.tar.xz 168040 SHA256 d0c50bfe0faaddc54fc184f698ee74a6029a21f5155c4670a2bea3ead954c138 SHA512 159bf3ddb05b1966318eaf62d09e454a024f8be7ead2300392abbcbaa54ef748a1c4db1b2f96162994bcab43071396eb96a0b47268f04cb8557f8804818da18e WHIRLPOOL 9c4da0bde2ae2b53e8949d59b13498f55ef2c849dcc8cac503a7d0dda2511311d94dfc7aa27a97432f13aa0b430fec0ab280594dc165bbb40e573dce8c8a74b0 +DIST eselect-1.4.4.tar.xz 177536 SHA256 120c123eae4a1d03515e94f9efd51af6ff2f09340daf1ada4dc21079df7a937f SHA512 1ed01cf00e3f13aad3e5f844c7086c3dd48398efd76e68cd91cf13b9939f4b48eef8915c5f3926954d158023115ad66ee67c0bc8fc4c9570900a37207674fc8f WHIRLPOOL e56c3ea3e54bdbcfffba3fbbe85b3c824cab796a0bae2680fac962356a2f707783571a9f73e0ea8299098838e593bea77b14edbeaadc372f186c2da2928e9ab5 diff --git a/app-admin/eselect/eselect-1.3.8.ebuild b/app-admin/eselect/eselect-1.3.8.ebuild new file mode 100644 index 000000000000..7cbce6d3a786 --- /dev/null +++ b/app-admin/eselect/eselect-1.3.8.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils bash-completion-r1 + +DESCRIPTION="Gentoo's multi-purpose configuration and management tool" +HOMEPAGE="http://wiki.gentoo.org/wiki/Project:Eselect" +SRC_URI="http://dev.gentoo.org/~ulm/eselect/${P}.tar.xz" + +LICENSE="GPL-2+ || ( GPL-2+ CC-BY-SA-2.5 )" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="doc emacs vim-syntax" + +RDEPEND="sys-apps/sed + || ( + sys-apps/coreutils + sys-freebsd/freebsd-bin + app-misc/realpath + )" +DEPEND="${RDEPEND} + app-arch/xz-utils + doc? ( dev-python/docutils )" +RDEPEND="${RDEPEND} + sys-apps/file + sys-libs/ncurses" + +PDEPEND="emacs? ( app-emacs/eselect-mode ) + vim-syntax? ( app-vim/eselect-syntax )" + +src_compile() { + emake + use doc && emake html +} + +src_install() { + emake DESTDIR="${D}" install + newbashcomp misc/${PN}.bashcomp ${PN} + dodoc AUTHORS ChangeLog NEWS README TODO doc/*.txt + use doc && dohtml *.html doc/* + + # needed by news module + keepdir /var/lib/gentoo/news + if ! use prefix; then + fowners root:portage /var/lib/gentoo/news + fperms g+w /var/lib/gentoo/news + fi +} + +pkg_postinst() { + # fowners in src_install doesn't work for the portage group: + # merging changes the group back to root + if ! use prefix; then + chgrp portage "${EROOT}/var/lib/gentoo/news" \ + && chmod g+w "${EROOT}/var/lib/gentoo/news" + fi +} diff --git a/app-admin/eselect/eselect-1.4.4.ebuild b/app-admin/eselect/eselect-1.4.4.ebuild new file mode 100644 index 000000000000..f226a60411d6 --- /dev/null +++ b/app-admin/eselect/eselect-1.4.4.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils bash-completion-r1 + +DESCRIPTION="Gentoo's multi-purpose configuration and management tool" +HOMEPAGE="http://wiki.gentoo.org/wiki/Project:Eselect" +SRC_URI="http://dev.gentoo.org/~ulm/eselect/${P}.tar.xz" + +LICENSE="GPL-2+ || ( GPL-2+ CC-BY-SA-3.0 )" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="doc emacs vim-syntax" + +RDEPEND="sys-apps/sed + || ( + sys-apps/coreutils + sys-freebsd/freebsd-bin + app-misc/realpath + )" +DEPEND="${RDEPEND} + app-arch/xz-utils + doc? ( dev-python/docutils )" +RDEPEND="${RDEPEND} + sys-apps/file + sys-libs/ncurses" + +PDEPEND="emacs? ( app-emacs/eselect-mode ) + vim-syntax? ( app-vim/eselect-syntax )" + +src_compile() { + emake + use doc && emake html +} + +src_install() { + emake DESTDIR="${D}" install + newbashcomp misc/${PN}.bashcomp ${PN} + dodoc AUTHORS ChangeLog NEWS README TODO doc/*.txt + use doc && dohtml *.html doc/* + + # needed by news module + keepdir /var/lib/gentoo/news + if ! use prefix; then + fowners root:portage /var/lib/gentoo/news + fperms g+w /var/lib/gentoo/news + fi +} + +pkg_postinst() { + # fowners in src_install doesn't work for the portage group: + # merging changes the group back to root + if ! use prefix; then + chgrp portage "${EROOT}/var/lib/gentoo/news" \ + && chmod g+w "${EROOT}/var/lib/gentoo/news" + fi +} diff --git a/app-admin/eselect/eselect-9999.ebuild b/app-admin/eselect/eselect-9999.ebuild new file mode 100644 index 000000000000..c3894fb5e2c8 --- /dev/null +++ b/app-admin/eselect/eselect-9999.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +EGIT_REPO_URI="git://anongit.gentoo.org/proj/eselect.git" + +inherit autotools git-r3 bash-completion-r1 + +DESCRIPTION="Gentoo's multi-purpose configuration and management tool" +HOMEPAGE="http://wiki.gentoo.org/wiki/Project:Eselect" + +LICENSE="GPL-2+ || ( GPL-2+ CC-BY-SA-2.5 )" +SLOT="0" +IUSE="doc emacs vim-syntax" + +RDEPEND="sys-apps/sed + || ( + sys-apps/coreutils + sys-freebsd/freebsd-bin + app-misc/realpath + )" +DEPEND="${RDEPEND} + doc? ( dev-python/docutils )" +RDEPEND="${RDEPEND} + sys-apps/file + sys-libs/ncurses" + +PDEPEND="emacs? ( app-emacs/eselect-mode ) + vim-syntax? ( app-vim/eselect-syntax )" + +src_prepare() { + eautoreconf +} + +src_compile() { + emake + use doc && emake html +} + +src_install() { + emake DESTDIR="${D}" install + newbashcomp misc/${PN}.bashcomp ${PN} + dodoc AUTHORS ChangeLog NEWS README TODO doc/*.txt + use doc && dohtml *.html doc/* + + # needed by news module + keepdir /var/lib/gentoo/news + if ! use prefix; then + fowners root:portage /var/lib/gentoo/news + fperms g+w /var/lib/gentoo/news + fi +} + +pkg_postinst() { + # fowners in src_install doesn't work for the portage group: + # merging changes the group back to root + if ! use prefix; then + chgrp portage "${EROOT}/var/lib/gentoo/news" \ + && chmod g+w "${EROOT}/var/lib/gentoo/news" + fi +} diff --git a/app-admin/eselect/metadata.xml b/app-admin/eselect/metadata.xml new file mode 100644 index 000000000000..dc5dc4fc2cc8 --- /dev/null +++ b/app-admin/eselect/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>eselect</herd> +</pkgmetadata> diff --git a/app-admin/evtxtools/Manifest b/app-admin/evtxtools/Manifest new file mode 100644 index 000000000000..45a5d31e78b7 --- /dev/null +++ b/app-admin/evtxtools/Manifest @@ -0,0 +1 @@ +DIST Parse-Evtx-1.1.1.zip 71351 SHA256 a1909810bedc709e2fa87f6603e52c62e60086bf1ce064bd839fc5873abf8512 SHA512 308fc3da4e9291f5f84cfbb0a2a17f92d45a2314d6b1806acb59e1a2d521041487a51a6e88e70c03a683df5a9442a30d8dc2483cf684cb96bb86f0a05f27e752 WHIRLPOOL 7f63774477d8497a7e54480341c6c51753c36173acb29d660f99225a9942a0ce77f279f61c63ac3cc8009afa721352daa32e647850e251466887fd8bbb98d07b diff --git a/app-admin/evtxtools/evtxtools-1.1.1-r1.ebuild b/app-admin/evtxtools/evtxtools-1.1.1-r1.ebuild new file mode 100644 index 000000000000..6b7675e483d6 --- /dev/null +++ b/app-admin/evtxtools/evtxtools-1.1.1-r1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit perl-app perl-module + +MY_PN="Parse-Evtx" +DESCRIPTION="Read, decode and dump Windows Vista/2008/7 event log file " +HOMEPAGE="http://computer.forensikblog.de/en/topics/windows/vista_event_log" +SRC_URI="http://computer.forensikblog.de/files/evtx/${MY_PN}-${PV}.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="app-arch/unzip + dev-perl/DateTime + dev-perl/Digest-CRC + dev-perl/DateTime + dev-perl/Carp-Assert + dev-perl/Data-Hexify" + +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${MY_PN}-${PV}" + +pkg_postinst() { + einfo "Consider the following as how-to:" + einfo "http://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-guestfish/" +} diff --git a/app-admin/evtxtools/metadata.xml b/app-admin/evtxtools/metadata.xml new file mode 100644 index 000000000000..3d4b619e36fd --- /dev/null +++ b/app-admin/evtxtools/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> + <email>zlogene@gentoo.org</email> + <name>Mikle Kolyada</name> + </maintainer> +</pkgmetadata> diff --git a/app-admin/fam/Manifest b/app-admin/fam/Manifest new file mode 100644 index 000000000000..1fd9fb726985 --- /dev/null +++ b/app-admin/fam/Manifest @@ -0,0 +1,2 @@ +DIST fam-2.7.0.tar.gz 301974 SHA256 1e0aa136693a3e9f4b43ebd71e7bd934cea31817a4a6cba2edc7aac353b8a93f SHA512 62b6222ee925eb2af1e258097c9bb676191690f38f8504ae16b1883a1019e0ac6dc7116ac2c4c596a956b3b3cfc3ce3ee7b613c319654681afb13e3ad3f284e2 WHIRLPOOL de90043aaaa6fd792975c13589564f85feb735738b9476b57e80d26a224fcb6f3a858ae383417e5ea48c2fa28b1a7e9c33d729caff5bb417bfbfa840ec228e47 +DIST fam_2.7.0-17.diff.gz 28056 SHA256 2362384d1fbde5dcbccf70f617aedbcae44d3f826a5b9df1331b070da1e0d5c2 SHA512 76b14e1d17713eb86d52cb804d34012e5369b5f4e8bcbdc73a063d2ad9219e0c4a261cef9e144ee07744a953a2e893bdf2ceeefcf21edc7a2ac5e70a51a8e209 WHIRLPOOL 59ed522ccfc8825051d1b281ced215c8b045dc0021bf0f28755aeb1f580ebb6eddb09934128aed51e91ea3d0ac24bfd976f0733ac90b7ef0e377fa982996efbd diff --git a/app-admin/fam/fam-2.7.0-r6.ebuild b/app-admin/fam/fam-2.7.0-r6.ebuild new file mode 100644 index 000000000000..1ffd072cb2df --- /dev/null +++ b/app-admin/fam/fam-2.7.0-r6.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils autotools + +DEBIAN_PATCH="17" +DESCRIPTION="FAM, the File Alteration Monitor" +HOMEPAGE="http://oss.sgi.com/projects/fam/" +SRC_URI="ftp://oss.sgi.com/projects/fam/download/stable/${P}.tar.gz + mirror://debian/pool/main/f/${PN}/${P/-/_}-${DEBIAN_PATCH}.diff.gz" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86" +IUSE="static-libs" + +DEPEND="|| ( net-nds/rpcbind >=net-nds/portmap-5b-r6 ) + !app-admin/gamin" +RDEPEND="${DEPEND}" + +DOCS=( AUTHORS ChangeLog INSTALL NEWS TODO README ) + +src_prepare() { + epatch "${WORKDIR}/${P/-/_}-${DEBIAN_PATCH}.diff" + edos2unix "${S}"/${P}/debian/patches/10_debianbug375967.patch + EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" epatch "${S}"/${P}/debian/patches + sed -i configure.ac -e 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g' || die + + eautoreconf +} + +src_configure() { + econf $(use_enable static-libs static) +} + +src_install() { + default + prune_libtool_files + + sed -i "${D}"/etc/fam.conf \ + -e "s:local_only = false:local_only = true:g" \ + || die "sed fam.conf" + + doinitd "${FILESDIR}/famd" +} diff --git a/app-admin/fam/fam-2.7.0-r7.ebuild b/app-admin/fam/fam-2.7.0-r7.ebuild new file mode 100644 index 000000000000..0855b9eb0724 --- /dev/null +++ b/app-admin/fam/fam-2.7.0-r7.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils autotools multilib-minimal + +DEBIAN_PATCH="17" +DESCRIPTION="FAM, the File Alteration Monitor" +HOMEPAGE="http://oss.sgi.com/projects/fam/" +SRC_URI="ftp://oss.sgi.com/projects/fam/download/stable/${P}.tar.gz + mirror://debian/pool/main/f/${PN}/${P/-/_}-${DEBIAN_PATCH}.diff.gz" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86" +IUSE="static-libs" + +DEPEND="|| ( net-nds/rpcbind >=net-nds/portmap-5b-r6 ) + !app-admin/gamin" +RDEPEND="${DEPEND}" + +DOCS=( AUTHORS ChangeLog INSTALL NEWS TODO README ) + +src_prepare() { + epatch "${WORKDIR}/${P/-/_}-${DEBIAN_PATCH}.diff" + edos2unix "${S}"/${P}/debian/patches/10_debianbug375967.patch + EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" epatch "${S}"/${P}/debian/patches + sed -i configure.ac -e 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g' || die + + eautoreconf + multilib_copy_sources +} + +multilib_src_configure() { + econf $(use_enable static-libs static) + + # These are thrown away later + if ! multilib_is_native_abi ; then + sed -i -e 's/src conf man//' Makefile || die + fi +} + +multilib_src_install_all() { + prune_libtool_files + einstalldocs + + sed -i "${D}"/etc/fam.conf \ + -e "s:local_only = false:local_only = true:g" \ + || die "sed fam.conf" + + doinitd "${FILESDIR}/famd" +} diff --git a/app-admin/fam/files/famd b/app-admin/fam/files/famd new file mode 100644 index 000000000000..e32f0a364ad6 --- /dev/null +++ b/app-admin/fam/files/famd @@ -0,0 +1,27 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + + need portmap + +} + +start() { + + ebegin "Starting famd" + start-stop-daemon --start --quiet --exec /usr/sbin/famd \ + -- -T 0 -c /etc/fam.conf + eend $? + +} + +stop() { + + ebegin "Stopping famd" + start-stop-daemon --stop --quiet --exec /usr/sbin/famd + eend $? + +} diff --git a/app-admin/fam/metadata.xml b/app-admin/fam/metadata.xml new file mode 100644 index 000000000000..52363bff0cba --- /dev/null +++ b/app-admin/fam/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> + <email>jer@gentoo.org</email> + <name>Jeroen Roovers</name> + </maintainer> +</pkgmetadata> diff --git a/app-admin/fetchlog/Manifest b/app-admin/fetchlog/Manifest new file mode 100644 index 000000000000..e86c712f7d24 --- /dev/null +++ b/app-admin/fetchlog/Manifest @@ -0,0 +1,2 @@ +DIST fetchlog-1.0.tar.gz 24016 SHA256 eba8150015cf43ebd41c8d8f8eaa598967ceafcd288a65ea1da4f21aa9fe3f79 SHA512 66a7a456ebb5353171b2f53071a73cccd66d42dafc2740bafd7c9db860f68176dffe10e556fde52048f2b198c2eaf8299d1fd6094726f7a003987b5ce0be7415 WHIRLPOOL 6197e06024b4228f29ff9c35ef26bd81352c836ab33e003c479482e270d54f79526e515a13f93ba1983c9e538aa96704e45cdd44cec530e28bc724a9caa9e915 +DIST fetchlog-1.4.tar.gz 32393 SHA256 2017cba285b4167fb9f148b4509d7463402820e4e7a04865cec0fe887bd5e13a SHA512 51590c0cdfa8f4a15fcb4a436375d960c25f35d84558ab46def58f83c97da30caee449eea7c62c539da786a613c2b1e51dbc223d70d56c21daad6e9faf8a51ad WHIRLPOOL b6ed75be2c70a361ea569030386e6a14519f3102950cf23a291689a37d69dc49a9f3f2698b7ff5d640f29450496e37315772ff18946b1b7e0d374cba0b7b41f4 diff --git a/app-admin/fetchlog/fetchlog-1.0.ebuild b/app-admin/fetchlog/fetchlog-1.0.ebuild new file mode 100644 index 000000000000..140838c1260b --- /dev/null +++ b/app-admin/fetchlog/fetchlog-1.0.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit toolchain-funcs + +DESCRIPTION="Displays the last new messages of a logfile" +HOMEPAGE="http://fetchlog.sourceforge.net/" +SRC_URI="mirror://sourceforge/fetchlog/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86 ~ppc64" + +IUSE="snmp" + +RDEPEND="snmp? ( + >=dev-perl/Net-SNMP-4.0.1-r2 + >=net-analyzer/net-snmp-5.0.6 + )" + +pkg_preinst() { + elog + elog "This utility can be used together with Nagios" + elog "To make use of these features you need to" + elog "install net-analyzer/nagios." + elog "This feature depends on SNMP, so make use you" + elog "have 'snmp' in your USE flags" + elog +} + +src_compile() { + # Links the .c file straight to the binary + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS} ${LDFLAGS}" || die +} + +src_install() { + dodoc CHANGES README* + dobin fetchlog + doman fetchlog.1 +} diff --git a/app-admin/fetchlog/fetchlog-1.4.ebuild b/app-admin/fetchlog/fetchlog-1.4.ebuild new file mode 100644 index 000000000000..7bf7b9bfd25b --- /dev/null +++ b/app-admin/fetchlog/fetchlog-1.4.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit toolchain-funcs + +DESCRIPTION="Displays the last new messages of a logfile" +HOMEPAGE="http://fetchlog.sourceforge.net/" +SRC_URI="mirror://sourceforge/fetchlog/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~ppc64" + +IUSE="snmp" + +RDEPEND="snmp? ( + >=dev-perl/Net-SNMP-4.0.1-r2 + >=net-analyzer/net-snmp-5.0.6 + )" + +pkg_preinst() { + elog + elog "This utility can be used together with Nagios" + elog "To make use of these features you need to" + elog "install net-analyzer/nagios." + elog "This feature depends on SNMP, so make use you" + elog "have 'snmp' in your USE flags" + elog +} + +src_compile() { + # Links the .c file straight to the binary + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS} ${LDFLAGS}" || die +} + +src_install() { + dodoc CHANGES README* + dodoc *cfg* + dobin fetchlog + doman fetchlog.1 +} diff --git a/app-admin/fetchlog/metadata.xml b/app-admin/fetchlog/metadata.xml new file mode 100644 index 000000000000..a12c82df6025 --- /dev/null +++ b/app-admin/fetchlog/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> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="sourceforge">fetchlog</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/fifo-cronolog/Manifest b/app-admin/fifo-cronolog/Manifest new file mode 100644 index 000000000000..ca7e3a640f28 --- /dev/null +++ b/app-admin/fifo-cronolog/Manifest @@ -0,0 +1 @@ +DIST fifo-cronolog-1.1.1.tar.bz2 3124 SHA256 bdaa57e67b32bdf3c26a776e4e16b04f8fb21a514ae27fa798537e8bdaa4da1c SHA512 3ac809d5cfc951764aaf31d50ee394b0dde9ced16f53daa91c81bdb218af2bab410ff945ebfdeb8307a55bda3292c0a55eb500c3cb73595e17228ef739455d90 WHIRLPOOL 9d878065760d55fa87b0d9434ffbd0696da278086174200daf8074854cf3d56d1424d7cf533c902e7d85eba7059c3c431bd68ba55c76ea0e70c185f9887c23e3 diff --git a/app-admin/fifo-cronolog/fifo-cronolog-1.1.1.ebuild b/app-admin/fifo-cronolog/fifo-cronolog-1.1.1.ebuild new file mode 100644 index 000000000000..e347f353d4c1 --- /dev/null +++ b/app-admin/fifo-cronolog/fifo-cronolog-1.1.1.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=3 + +DESCRIPTION="cronolog wrapper for use with dumb daemons like squid, varnish and so on" +HOMEPAGE="http://cgit.gentoo.org/proj/fifo-cronolog.git" +SRC_URI="mirror://gentoo/${P}.tar.bz2" + +LICENSE="BSD-2 GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND="app-admin/cronolog" + +src_install() { + dosbin fifo-cronolog || die + + newinitd fifo-cronolog.initd fifo-cronolog || die + newconfd fifo-cronolog.confd fifo-cronolog || die + + dosym /usr/sbin/fifo-cronolog /usr/sbin/squid-cronolog || die +} + +pkg_postinst() { + elog "Warning: app-admin/squid-cronolog has been renamed to app-admin/fifo-cronolog." + elog "This also applies to the binary 'squid-cronolog' but there is a symlink for now" + elog "Please fix your scripts/configs." +} diff --git a/app-admin/fifo-cronolog/metadata.xml b/app-admin/fifo-cronolog/metadata.xml new file mode 100644 index 000000000000..e698f1e820ac --- /dev/null +++ b/app-admin/fifo-cronolog/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>infrastructure@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/app-admin/filewatcher/Manifest b/app-admin/filewatcher/Manifest new file mode 100644 index 000000000000..30e259a9371a --- /dev/null +++ b/app-admin/filewatcher/Manifest @@ -0,0 +1 @@ +DIST filewatcher-2.4.6.tar.gz 37459 SHA256 abff119b18cb915d0116aa910e0cc54f1a8e97ceb47d37c02bd58fde86d9829c SHA512 a6e1d2fb11f54352f963c21a1cbb42ceadcf3aff0ebf2b0e629d7827fada12c03531ecc9b9400afc65937830f92a0f16c54abd1cc034392351b72326943d6442 WHIRLPOOL ba23f0f230d78fd335e9897dfd0b25876996ba5ded1ef80eeb69021d65f6f2a0bf2aa8ceadfd229c09712f0616fd55f625b9b2b3999733aa0d80dcbc33a6fe55 diff --git a/app-admin/filewatcher/files/filewatcher.conf b/app-admin/filewatcher/files/filewatcher.conf new file mode 100644 index 000000000000..e3358242759a --- /dev/null +++ b/app-admin/filewatcher/files/filewatcher.conf @@ -0,0 +1,24 @@ +option archive-root /var/lib/filewatcher/archive +option state-file /var/lib/filewatcher/state +option warn-if-missing true +option include-autopush true +option skip-binary true + +# default notify via email to sysadm address +option notify mailto:root +# scan for archived files deleted from the filesystem +option scan-frequency 4h +watch ARCHIVE + +# system security files +option scan-frequency 5m +watch /etc/passwd +watch /etc/group +watch /sudoers + + +# filewatcher and its configuration files +option scan-frequency 30m +watch /etc/filewatcher.conf +watch /usr/sbin/filewatcher + diff --git a/app-admin/filewatcher/filewatcher-2.4.6.ebuild b/app-admin/filewatcher/filewatcher-2.4.6.ebuild new file mode 100644 index 000000000000..f9c70c10b790 --- /dev/null +++ b/app-admin/filewatcher/filewatcher-2.4.6.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +DESCRIPTION="This is a configuration file control system and IDS" +HOMEPAGE="http://sourceforge.net/projects/filewatcher/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +DEPEND="" +RDEPEND="dev-perl/MailTools + dev-vcs/rcs + virtual/mta" + +src_install() { + keepdir /var/lib/filewatcher /var/lib/filewatcher/archive + dosbin filewatcher || die "could not install filewatcher" + doman filewatcher.1 || die "could not install filewatcher manpage" + + dodoc Changes README + + insinto /etc + doins "${FILESDIR}"/filewatcher.conf || \ + die "could not install basic filewatcher config" +} + +pkg_postinst() { + elog " A basic configuration has been provided in" + elog " /etc/filewatcher.conf. It is strongly" + elog " recommended that you invoke filewatcher via" + elog " crontab." + elog + elog " 55,25,40 * * * * root /usr/sbin/filewatcher" + elog " --config=/etc/filewatcher.conf" +} diff --git a/app-admin/filewatcher/metadata.xml b/app-admin/filewatcher/metadata.xml new file mode 100644 index 000000000000..bd3257d7693a --- /dev/null +++ b/app-admin/filewatcher/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> + <email>maintainer-needed@gentoo.org</email> + <name>Default assignee for orphaned packages</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">filewatcher</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/fleet/Manifest b/app-admin/fleet/Manifest new file mode 100644 index 000000000000..b7a98e4a7a93 --- /dev/null +++ b/app-admin/fleet/Manifest @@ -0,0 +1,2 @@ +DIST fleet-0.11.0.tar.gz 452750 SHA256 475d92eccfa383d5ed7f48ecca69666c597eb67ed53c41ac443e5f7816110ad7 SHA512 050ef3fba52661caa87e04695dc0120b48d9916b2dc466750f3e735738b2de5e39cc343a8526cbdb8cf2966da89696efdc0a98709732e9c2cb6f7ea6875ef2fc WHIRLPOOL 294d46acba60ef8bae28c3e253ca410281918f4f15b5abb692d7a085e7d3846e28c5c890e677bc77487ed14cf4429dbf38beeb5ef7cc6a2746e583f7f825bd9c +DIST fleet-0.11.1.tar.gz 453034 SHA256 65965730f70021988ed869e23d9599a2305f24287f3ac67c2b995b05ef28cbe8 SHA512 28e1fc15f634bb5445a5d011dfccae488a873714d868e8632d928a72728380ee7339619e7c057354a154daff71d7260f04c4911e1b371b05c96099ef1d0d9f8d WHIRLPOOL 476ebe9c72b343ecd7dc3f589eed010b5c98651683ee7aee034427702c2779cc16f7f012fa5e2df6d24af9c98731f8e176c3da7acec4ef6753d088ffbf1b14e5 diff --git a/app-admin/fleet/files/fleet.service b/app-admin/fleet/files/fleet.service new file mode 100644 index 000000000000..1f44fe9df62c --- /dev/null +++ b/app-admin/fleet/files/fleet.service @@ -0,0 +1,14 @@ +[Unit] +Description=fleet daemon +Wants=etcd.service + +Wants=fleet.socket +After=fleet.socket + +[Service] +ExecStart=/usr/bin/fleetd +Restart=always +RestartSec=10s + +[Install] +WantedBy=multi-user.target diff --git a/app-admin/fleet/files/fleet.socket b/app-admin/fleet/files/fleet.socket new file mode 100644 index 000000000000..4fc446e8fe37 --- /dev/null +++ b/app-admin/fleet/files/fleet.socket @@ -0,0 +1,2 @@ +[Socket] +ListenStream=/var/run/fleet.sock diff --git a/app-admin/fleet/files/fleetd.service b/app-admin/fleet/files/fleetd.service new file mode 100644 index 000000000000..ac2a7ff7fee6 --- /dev/null +++ b/app-admin/fleet/files/fleetd.service @@ -0,0 +1,9 @@ +[Unit] +Description=fleet +Wants=etcd.service + +[Service] +ExecStart=/usr/bin/fleetd + +[Install] +WantedBy=multi-user.target diff --git a/app-admin/fleet/fleet-0.11.0-r1.ebuild b/app-admin/fleet/fleet-0.11.0-r1.ebuild new file mode 100644 index 000000000000..47e3f92c358f --- /dev/null +++ b/app-admin/fleet/fleet-0.11.0-r1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit systemd vcs-snapshot + +DESCRIPTION="A Distributed init System" +HOMEPAGE="https://github.com/coreos/fleet" +SRC_URI="https://github.com/coreos/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="doc examples test" + +DEPEND=" + >=dev-lang/go-1.3:= + test? ( dev-go/go-tools ) +" +RDEPEND="" + +src_compile() { + ./build || die 'Build failed' +} + +src_test() { + ./test || die 'Tests failed' +} + +src_install() { + dobin "${S}"/bin/fleetd + dobin "${S}"/bin/fleetctl + + systemd_dounit "${FILESDIR}"/fleet.service + systemd_dounit "${FILESDIR}"/fleet.socket + + dodoc README.md + use doc && dodoc -r Documentation + use examples && dodoc -r examples + + insinto /etc/${PN} + newins "${PN}".conf.sample "${PN}".conf +} + +pkg_postinst() { + ewarn "Please read this if you are upgrading from a version <0.10.0-r1." + ewarn "" + ewarn "Starting with fleet 0.10 the fleetctl utility has" + ewarn "'--endpoint=unix:///var/run/fleet.sock' as default argument, which is" + ewarn "why we have introduced the fleet.socket unit and renamed the service" + ewarn "from fleetd.service to fleet.service. If you run fleet on system" + ewarn "startup, please re-enable it via 'systemctl enable fleet'." +} diff --git a/app-admin/fleet/fleet-0.11.0.ebuild b/app-admin/fleet/fleet-0.11.0.ebuild new file mode 100644 index 000000000000..be4655286bb8 --- /dev/null +++ b/app-admin/fleet/fleet-0.11.0.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit systemd vcs-snapshot + +DESCRIPTION="A Distributed init System" +HOMEPAGE="https://github.com/coreos/fleet" +SRC_URI="https://github.com/coreos/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="doc examples test" + +DEPEND=" + >=dev-lang/go-1.3 + test? ( dev-go/go-tools ) +" +RDEPEND="" + +src_compile() { + ./build || die 'Build failed' +} + +src_test() { + ./test || die 'Tests failed' +} + +src_install() { + dobin "${S}"/bin/fleetd + dobin "${S}"/bin/fleetctl + + systemd_dounit "${FILESDIR}"/fleet.service + systemd_dounit "${FILESDIR}"/fleet.socket + + dodoc README.md + use doc && dodoc -r Documentation + use examples && dodoc -r examples + + keepdir /etc/${PN} + insinto /etc/${PN} + newins "${PN}".conf.sample "${PN}".conf +} + +pkg_postinst() { + ewarn "Please read this if you are upgrading from a version <0.10.0-r1." + ewarn "" + ewarn "Starting with fleet 0.10 the fleetctl utility has" + ewarn "'--endpoint=unix:///var/run/fleet.sock' as default argument, which is" + ewarn "why we have introduced the fleet.socket unit and renamed the service" + ewarn "from fleetd.service to fleet.service. If you run fleet on system" + ewarn "startup, please re-enable it via 'systemctl enable fleet'." +} diff --git a/app-admin/fleet/fleet-0.11.1.ebuild b/app-admin/fleet/fleet-0.11.1.ebuild new file mode 100644 index 000000000000..77c80c4c1497 --- /dev/null +++ b/app-admin/fleet/fleet-0.11.1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit systemd vcs-snapshot + +DESCRIPTION="A Distributed init System" +HOMEPAGE="https://github.com/coreos/fleet" +SRC_URI="https://github.com/coreos/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="doc examples test" + +DEPEND=" + >=dev-lang/go-1.3:= + test? ( dev-go/go-tools ) +" +RDEPEND="" + +src_compile() { + ./build || die 'Build failed' +} + +src_test() { + ./test || die 'Tests failed' +} + +src_install() { + dobin "${S}"/bin/fleetd + dobin "${S}"/bin/fleetctl + + systemd_dounit "${FILESDIR}"/fleet.service + systemd_dounit "${FILESDIR}"/fleet.socket + + dodoc README.md + use doc && dodoc -r Documentation + use examples && dodoc -r examples + + insinto /etc/${PN} + newins "${PN}".conf.sample "${PN}".conf +} diff --git a/app-admin/fleet/fleet-9999.ebuild b/app-admin/fleet/fleet-9999.ebuild new file mode 100644 index 000000000000..cf22e1229822 --- /dev/null +++ b/app-admin/fleet/fleet-9999.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit git-r3 systemd + +EGIT_REPO_URI="git://github.com/coreos/fleet.git" + +DESCRIPTION="A Distributed init System" +HOMEPAGE="https://github.com/coreos/fleet" +SRC_URI="" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="" +IUSE="doc examples test" + +DEPEND=">=dev-lang/go-1.3:= + test? ( dev-go/go-tools )" +RDEPEND="" + +src_compile() { + ./build || die 'Build failed' +} + +src_test() { + ./test || die 'Tests failed' +} + +src_install() { + dobin "${S}"/bin/fleetd + dobin "${S}"/bin/fleetctl + + systemd_dounit "${FILESDIR}"/fleet.service + systemd_dounit "${FILESDIR}"/fleet.socket + + dodoc README.md + use doc && dodoc -r Documentation + use examples && dodoc -r examples + + insinto /etc/${PN} + newins "${PN}".conf.sample "${PN}".conf +} + +pkg_postinst() { + ewarn "Please read this if you are upgrading from a version <0.10.0-r1." + ewarn "" + ewarn "Starting with fleet 0.10 the fleetctl utility has" + ewarn "'--endpoint=unix:///var/run/fleet.sock' as default argument, which is" + ewarn "why we have introduced the fleet.socket unit and renamed the service" + ewarn "from fleetd.service to fleet.service. If you run fleet on system" + ewarn "startup, please re-enable it via 'systemctl enable fleet'." +} diff --git a/app-admin/fleet/metadata.xml b/app-admin/fleet/metadata.xml new file mode 100644 index 000000000000..a86664824b47 --- /dev/null +++ b/app-admin/fleet/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>alunduil@gentoo.org</email> + <name>Alex Brandt</name> + </maintainer> + <maintainer> + <email>code@stefanjunker.de</email> + <name>Stefan Junker</name> + </maintainer> + <longdescription lang="en"> + </longdescription> + <upstream> + <remote-id type="github">coreos/fleet</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/fsvs/Manifest b/app-admin/fsvs/Manifest new file mode 100644 index 000000000000..56895c8ce946 --- /dev/null +++ b/app-admin/fsvs/Manifest @@ -0,0 +1 @@ +DIST fsvs-1.2.5.tar.bz2 427494 SHA256 3c957d29e0e568d46ce2fd659a88ed6ea93a05267bdc11dc93131a88b7cb44d2 SHA512 36ab5d04491d506b2891548f3ad458e7977bbd2e7d4b03e135b13d07adb22aedb261c28d5ddd3df895771806ef54c1bca6a1ef7bc5aa2e50e4b234ddf6cbe19c WHIRLPOOL c44213b5f2ce42ad67914fe07198a4f8404b9303d59806e521059d1f5b6335ef6ba3b84862bb9b890b8a29ef2b4543f2e897ef341c16ccb96e6e7a6d1ac8dd66 diff --git a/app-admin/fsvs/files/fsvs-1.2.5-as-needed.patch b/app-admin/fsvs/files/fsvs-1.2.5-as-needed.patch new file mode 100644 index 000000000000..6f833116f937 --- /dev/null +++ b/app-admin/fsvs/files/fsvs-1.2.5-as-needed.patch @@ -0,0 +1,31 @@ +Fixes --as-needed support(bug #294834) +Verbose build +Fixes underlinking(bug #463684) - patch went upstream + +--- src/Makefile.in.orig 2011-11-11 22:19:12.000000000 +0400 ++++ src/Makefile.in 2013-08-19 13:30:16.186082295 +0400 +@@ -18,7 +18,7 @@ + CFLAGS := @CFLAGS@ @NEED_FNESTED_FUNCTIONS@ + CFLAGS += -Wall -funsigned-char -Os -DFSVS_VERSION='"$(VERSION)"' + LDFLAGS := @LDFLAGS@ +-FSVS_LDFLAGS = $(LDFLAGS) -lsvn_subr-1 -lsvn_delta-1 -lsvn_ra-1 -lpcre -lgdbm ++FSVS_LIBS = -lsvn_subr-1 -lsvn_delta-1 -lsvn_ra-1 -lpcre -lgdbm -ldl + EXTRALIBS := @EXTRALIBS@ + WAA_CHARS?= @WAA_WC_MD5_CHARS@ + +@@ -146,13 +146,13 @@ + ################################ Rules ###################################### + %.o: %.c + @echo " CC $<" +- @$(CC) $(CFLAGS) -c -o $@ $< ++ $(CC) $(CFLAGS) -c -o $@ $< + + # if the Makefile has changed, the output will (at least sometimes) + # change, too. + $(DEST): $(C_FILES:%.c=%.o) + @echo " Link $@" +- @$(CC) $(FSVS_LDFLAGS) $(LDLIBS) $(LIBS) $(EXTRALIBS) -o $@ $^ ++ $(CC) -o $@ $^ $(LDFLAGS) $(LDLIBS) $(LIBS) $(FSVS_LIBS) $(EXTRALIBS) + ifeq (@ENABLE_RELEASE@, 1) + -strip $@ + endif diff --git a/app-admin/fsvs/fsvs-1.2.5-r1.ebuild b/app-admin/fsvs/fsvs-1.2.5-r1.ebuild new file mode 100644 index 000000000000..de9ee8495327 --- /dev/null +++ b/app-admin/fsvs/fsvs-1.2.5-r1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils toolchain-funcs + +DESCRIPTION="Backup/restore for subversion backends" +HOMEPAGE="http://fsvs.tigris.org/" +SRC_URI="http://download.fsvs-software.org/${P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="dev-vcs/subversion + dev-libs/libpcre + sys-libs/gdbm + dev-libs/apr-util + dev-util/ctags" +DEPEND="${RDEPEND}" + +src_prepare() { + epatch "${FILESDIR}/${P}-as-needed.patch" + epatch_user +} + +src_compile() { + # respect compiler + emake CC="$(tc-getCC)" +} + +src_install() { + dobin src/fsvs + dodir /etc/fsvs + keepdir /var/spool/fsvs + doman doc/*5 doc/*1 + dodoc doc/{FAQ,IGNORING,PERFORMANCE,USAGE} +} + +pkg_postinst() { + elog "Remember, this system works best when you're connecting to a remote" + elog "svn server." + elog + elog "Go to the base path for versioning:" + elog " cd /" + elog "Tell fsvs which URL it should use:" + elog " fsvs url svn+ssh://username@machine/path/to/repos" + elog "Define ignore patterns - all virtual filesystems (/proc, /sys, etc.)," + elog "and (assuming that you're in / currently) the temporary files in /tmp:" + elog " fsvs ignore DEVICE:0 ./tmp/*" + elog "And you're ready to play!" + elog "Check your data in:" + elog " fsvs commit -m \"First import\"" +} diff --git a/app-admin/fsvs/metadata.xml b/app-admin/fsvs/metadata.xml new file mode 100644 index 000000000000..ff62877c67ae --- /dev/null +++ b/app-admin/fsvs/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> + <email>maintainer-needed@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/app-admin/gam-server/Manifest b/app-admin/gam-server/Manifest new file mode 100644 index 000000000000..0951f17a012e --- /dev/null +++ b/app-admin/gam-server/Manifest @@ -0,0 +1,3 @@ +DIST gamin-0.1.10.tar.bz2 452194 SHA256 a59948b20ce2f14136c013f155abb8c8d51db2ea167c063ff33461e453fec10a SHA512 ccdbc06eeb958ed2d888aee3fcadbadf00e9e6566802adee82035e0762ac3351ed2a2983eabe07503ddde2ddf035185c6cd98cbece2feadaaa36e8f656a38306 WHIRLPOOL 49ca0e192d8f5e28d6ffbb201b98b0f2c736554447b37c50eaa6e76e499ab77d696cf585c96c6a38f94c2589c634e694daf2e4969ffddbbb245b07b8a6e7b2d8 +DIST gamin-0.1.9-freebsd.patch.bz2 4635 SHA256 fcd1a6655d1c7cd86db6102931a4da1c22bc85f1c4692959c1a966fec5231723 SHA512 a9d9a8e4d85b289df6f87bf2b966ff262281db0d7e6094deb4f2c179f12c6cc3e387c1e1c28306a9fb54f2eb2837f9bdd3a34b2bb68db8abfdbecc7492e9730b WHIRLPOOL 462173a33e8f804b71c6991aa5925a5c9a6ee83f80b13967369c5c45721069e629c052e5daebfc3fb03bbad4d3054b523afb6e430db997581f3ff942f7da3180 +DIST pkg-config-0.26.tar.gz 396399 SHA256 94c1936a797c930fb3e4e5a154165b6268caba22b32d24083dd4c492a533c8af SHA512 9390d5918dd4ac520b914d2330aa7cae2587ca7b21b03bc88372fd5dbbd78e33eeb3fca39fcdb6dd10113658f03118a1c8829149c7029eb0dd80348d100170a4 WHIRLPOOL f535946a02192a9bffc7be0fae454e25aa86af8bac7f47622d52ed13f77f1ba05ff9b5693b2a501981e3991e4e1595eced22dee4ab748b310baa7d57267a62a7 diff --git a/app-admin/gam-server/files/gam-server-0.1.10-G_CONST_RETURN-removal.patch b/app-admin/gam-server/files/gam-server-0.1.10-G_CONST_RETURN-removal.patch new file mode 100644 index 000000000000..087312f5baae --- /dev/null +++ b/app-admin/gam-server/files/gam-server-0.1.10-G_CONST_RETURN-removal.patch @@ -0,0 +1,67 @@ +From 2a9d32734a2e5125ae77de6c75789e1c6ee24dbe Mon Sep 17 00:00:00 2001 +From: Maciej Piechotka <uzytkownik2@gmail.com> +Date: Tue, 13 Sep 2011 09:47:05 +0200 +Subject: [PATCH] Fix compilation of recent glib removing G_CONST_RETURN + +--- + server/gam_node.c | 2 +- + server/gam_node.h | 2 +- + server/gam_subscription.c | 2 +- + server/gam_subscription.h | 2 +- + 4 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/server/gam_node.c b/server/gam_node.c +index 02358ba..d0302d2 100644 +--- a/server/gam_node.c ++++ b/server/gam_node.c +@@ -122,7 +122,7 @@ gam_node_set_is_dir(GamNode * node, gboolean is_dir) + * it has finished with the string. If it must keep it longer, it + * should makes its own copy. The returned string must not be freed. + */ +-G_CONST_RETURN char * ++const char * + gam_node_get_path(GamNode * node) + { + g_assert(node); +diff --git a/server/gam_node.h b/server/gam_node.h +index 02c8692..83349a8 100644 +--- a/server/gam_node.h ++++ b/server/gam_node.h +@@ -58,7 +58,7 @@ gboolean gam_node_is_dir (GamNode *node); + void gam_node_set_is_dir (GamNode *node, + gboolean is_dir); + +-G_CONST_RETURN char *gam_node_get_path (GamNode *node); ++const char *gam_node_get_path (GamNode *node); + + GList *gam_node_get_subscriptions (GamNode *node); + +diff --git a/server/gam_subscription.c b/server/gam_subscription.c +index dfa3273..4675b34 100644 +--- a/server/gam_subscription.c ++++ b/server/gam_subscription.c +@@ -141,7 +141,7 @@ gam_subscription_pathlen(GamSubscription * sub) + * @param sub the GamSubscription + * @returns The path being monitored. It should not be freed. + */ +-G_CONST_RETURN char * ++const char * + gam_subscription_get_path(GamSubscription * sub) + { + if (sub == NULL) +diff --git a/server/gam_subscription.h b/server/gam_subscription.h +index d894fbe..e6b4e15 100644 +--- a/server/gam_subscription.h ++++ b/server/gam_subscription.h +@@ -21,7 +21,7 @@ int gam_subscription_pathlen (GamSubscription *sub); + + int gam_subscription_get_reqno (GamSubscription *sub); + +-G_CONST_RETURN char *gam_subscription_get_path (GamSubscription *sub); ++const char *gam_subscription_get_path (GamSubscription *sub); + + GamListener *gam_subscription_get_listener (GamSubscription *sub); + +-- +1.7.6.1 + diff --git a/app-admin/gam-server/files/gam-server-0.1.10-armel-features.patch b/app-admin/gam-server/files/gam-server-0.1.10-armel-features.patch new file mode 100644 index 000000000000..fdfcbd7e6db6 --- /dev/null +++ b/app-admin/gam-server/files/gam-server-0.1.10-armel-features.patch @@ -0,0 +1,47 @@ +From 05dcfcd69848e119c6a30d363bc41e896029f8af Mon Sep 17 00:00:00 2001 +From: Sebastian Dröge <slomo@debian.org> +Date: Tue, 15 Dec 2009 12:24:25 +0000 +Subject: Bug 588338 - Enable linux specific features on armel + +--- +diff --git a/configure.in b/configure.in +index b0bbaec..e4b684e 100644 +--- a/configure.in ++++ b/configure.in +@@ -176,7 +176,7 @@ fi + + dnl check what OS we're on + #AM_CONDITIONAL(HAVE_LINUX, test x$target_os = xlinux-gnu) +-if test x$target_os = xlinux-gnu; then ++if test x$target_os = xlinux-gnu -o x$target_os = xlinux-gnueabi; then + AC_DEFINE([HAVE_LINUX],[],[Whether we are using linux or not]) + fi + +@@ -223,7 +223,7 @@ fi + dnl check if inotify backend is enabled + AM_CONDITIONAL(ENABLE_INOTIFY, test x$inotify = xtrue) + +-if test x$os = xlinux-gnu; then ++if test x$os = xlinux-gnu -o x$os = xlinux-gnueabi; then + AC_ARG_ENABLE(dnotify, + AC_HELP_STRING([--disable-dnotify], [Disable the DNotify backend]), + [dnotify="${enableval}"], [dnotify=true]) +@@ -297,10 +297,12 @@ else + fi + + dnl Use weak symbols on linux/gcc to avoid imposing libpthreads to apps +-if test x$os = xlinux-gnu -a x$WITH_THREADS = x1 ; then +- if test "${CC}" = "gcc" ; then +- echo Use weak symbols ! +- THREAD_LIBS= ++if test x$os = xlinux-gnu -o x$os = xlinux-gnueabi ; then ++ if test x$WITH_THREADS = x1 ; then ++ if test "${CC}" = "gcc" ; then ++ echo Use weak symbols ! ++ THREAD_LIBS= ++ fi + fi + fi + AC_SUBST(THREAD_LIBS) +-- +cgit v0.9.0.2 diff --git a/app-admin/gam-server/files/gam-server-0.1.10-crosscompile-fix.patch b/app-admin/gam-server/files/gam-server-0.1.10-crosscompile-fix.patch new file mode 100644 index 000000000000..ce3a15b5e160 --- /dev/null +++ b/app-admin/gam-server/files/gam-server-0.1.10-crosscompile-fix.patch @@ -0,0 +1,38 @@ +--- configure.in.orig 2009-04-26 23:00:43.445135823 +0300 ++++ configure.in 2009-04-26 23:25:04.042489243 +0300 +@@ -389,8 +389,7 @@ + + AC_MSG_CHECKING(abstract socket namespace) + AC_LANG_PUSH(C) +-AC_RUN_IFELSE([AC_LANG_PROGRAM( +-[[ ++AC_TRY_RUN([ + #include <sys/types.h> + #include <stdlib.h> + #include <string.h> +@@ -398,8 +397,8 @@ + #include <sys/socket.h> + #include <sys/un.h> + #include <errno.h> +-]], +-[[ ++ ++int main() { + int listen_fd; + struct sockaddr_un addr; + +@@ -424,9 +423,11 @@ + } + else + exit (0); +-]])], +- [have_abstract_sockets=yes], +- [have_abstract_sockets=no]) ++} ++], ++have_abstract_sockets=yes, ++have_abstract_sockets=no, ++have_abstract_sockets=no) + AC_LANG_POP(C) + AC_MSG_RESULT($have_abstract_sockets) + diff --git a/app-admin/gam-server/files/gam-server-0.1.10-ih_sub_cancel-deadlock.patch b/app-admin/gam-server/files/gam-server-0.1.10-ih_sub_cancel-deadlock.patch new file mode 100644 index 000000000000..9f2b2a5150bd --- /dev/null +++ b/app-admin/gam-server/files/gam-server-0.1.10-ih_sub_cancel-deadlock.patch @@ -0,0 +1,65 @@ +From cc14440eface093548cb3bc7814da11d9a99d283 Mon Sep 17 00:00:00 2001 +From: Anssi Hannula <anssi@mageia.org> +Date: Wed, 4 Jan 2012 00:23:55 +0200 +Subject: [PATCH] fix possible server deadlock in ih_sub_cancel + +ih_sub_foreach() calls ih_sub_cancel() while inotify_lock is locked. +However, ih_sub_cancel() locks it again, and locking GMutex recursively +causes undefined behaviour. + +Fix that by removing locking from ih_sub_cancel() as ih_sub_foreach() +is its only user. Also make the function static so that it won't +accidentally get used by other files without locking (inotify-helper.h +is an internal server header). + +This should fix the intermittent deadlocks I've been experiencing +causing KDE applications to no longer start, and probably also +http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=542361 +--- + server/inotify-helper.c | 7 ++----- + server/inotify-helper.h | 1 - + 2 files changed, 2 insertions(+), 6 deletions(-) + +diff --git a/server/inotify-helper.c b/server/inotify-helper.c +index d77203e..0789fa4 100644 +--- a/server/inotify-helper.c ++++ b/server/inotify-helper.c +@@ -123,13 +123,11 @@ ih_sub_add (ih_sub_t * sub) + + /** + * Cancels a subscription which was being monitored. ++ * inotify_lock must be held when calling. + */ +-gboolean ++static gboolean + ih_sub_cancel (ih_sub_t * sub) + { +- G_LOCK(inotify_lock); +- +- + if (!sub->cancelled) + { + IH_W("cancelling %s\n", sub->pathname); +@@ -140,7 +138,6 @@ ih_sub_cancel (ih_sub_t * sub) + sub_list = g_list_remove (sub_list, sub); + } + +- G_UNLOCK(inotify_lock); + return TRUE; + } + +diff --git a/server/inotify-helper.h b/server/inotify-helper.h +index 5d3b6d0..d36b5fd 100644 +--- a/server/inotify-helper.h ++++ b/server/inotify-helper.h +@@ -34,7 +34,6 @@ gboolean ih_startup (event_callback_t ecb, + found_callback_t fcb); + gboolean ih_running (void); + gboolean ih_sub_add (ih_sub_t *sub); +-gboolean ih_sub_cancel (ih_sub_t *sub); + + /* Return FALSE from 'f' if the subscription should be cancelled */ + void ih_sub_foreach (void *callerdata, gboolean (*f)(ih_sub_t *sub, void *callerdata)); +-- +1.7.7.2 + diff --git a/app-admin/gam-server/files/gam-server-0.1.10-noinst-lib.patch b/app-admin/gam-server/files/gam-server-0.1.10-noinst-lib.patch new file mode 100644 index 000000000000..1f2fcff6f5b4 --- /dev/null +++ b/app-admin/gam-server/files/gam-server-0.1.10-noinst-lib.patch @@ -0,0 +1,76 @@ +From e68aacc084d65fd0780991265444061b24422bd0 Mon Sep 17 00:00:00 2001 +From: Remi Cardona <remi@gentoo.org> +Date: Mon, 20 Oct 2008 19:17:36 +0200 +Subject: [PATCH] make libgamin_shared a "noinst" libtool helper lib + +--- + lib/Makefile.am | 4 ++-- + libgamin/Makefile.am | 15 ++------------- + server/Makefile.am | 2 +- + 3 files changed, 5 insertions(+), 16 deletions(-) + +diff --git a/lib/Makefile.am b/lib/Makefile.am +index 3e2289c..af2152a 100644 +--- a/lib/Makefile.am ++++ b/lib/Makefile.am +@@ -7,9 +7,9 @@ if GAMIN_DEBUG + INCLUDES += -DGAM_DEBUG_ENABLED + endif + +-lib_LIBRARIES = libgamin_shared.a ++noinst_LTLIBRARIES = libgamin_shared.la + +-libgamin_shared_a_SOURCES = \ ++libgamin_shared_la_SOURCES = \ + gam_event.c \ + gam_event.h \ + gam_error.c \ +diff --git a/libgamin/Makefile.am b/libgamin/Makefile.am +index 35aa740..14fc06b 100644 +--- a/libgamin/Makefile.am ++++ b/libgamin/Makefile.am +@@ -25,19 +25,9 @@ libgamin_1_la_SOURCES = \ + gam_data.h \ + gam_fork.c \ + gam_fork.h \ +- gam_protocol.h \ +- gam_error.c \ +- gam_event.c ++ gam_protocol.h + +-gam_error.c: $(top_srcdir)/lib/gam_error.c +- @(cp $(top_srcdir)/lib/gam_error.c gam_error.c) +- +-gam_event.c: $(top_srcdir)/lib/gam_event.c +- @(cp $(top_srcdir)/lib/gam_event.c gam_event.c) +- +-CLEANFILES=gam_error.c gam_event.c +- +-libgamin_1_la_LIBADD = ++libgamin_1_la_LIBADD = $(top_builddir)/lib/libgamin_shared.la + + libgamin_1_la_LDFLAGS = -Wl,--version-script=$(srcdir)/gamin_sym.version \ + -version-info @GAMIN_VERSION_INFO@ @THREAD_LIBS@ +@@ -54,6 +44,5 @@ noinst_PROGRAMS= gamin + + gamin_SOURCES = gamin.c + gamin_LDFLAGS = +-gamin_DEPENDENCIES = $(DEPS) libgamin-1.la + gamin_LDADD= $(LDADDS) libgamin-1.la + +diff --git a/server/Makefile.am b/server/Makefile.am +index 37aed8b..6aa5e02 100644 +--- a/server/Makefile.am ++++ b/server/Makefile.am +@@ -80,7 +80,7 @@ endif + + gam_server_LDFLAGS = + gam_server_DEPENDENCIES = $(DEPS) +-gam_server_LDADD= $(top_builddir)/lib/libgamin_shared.a $(LDADDS) $(DAEMON_LIBS) ++gam_server_LDADD= $(top_builddir)/lib/libgamin_shared.la $(LDADDS) $(DAEMON_LIBS) + + if ENABLE_HURD_MACH_NOTIFY + gam_server_LDADD += -lports -lthreads +-- +1.6.0.2 + diff --git a/app-admin/gam-server/gam-server-0.1.10-r2.ebuild b/app-admin/gam-server/gam-server-0.1.10-r2.ebuild new file mode 100644 index 000000000000..5ca1a58f9b63 --- /dev/null +++ b/app-admin/gam-server/gam-server-0.1.10-r2.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +GNOME_ORG_MODULE="gamin" +GNOME_TARBALL_SUFFIX="bz2" + +inherit autotools eutils flag-o-matic libtool multilib gnome.org + +DESCRIPTION="Library providing the FAM File Alteration Monitor API" +HOMEPAGE="http://www.gnome.org/~veillard/gamin/" +SRC_URI="${SRC_URI} + mirror://gentoo/gamin-0.1.9-freebsd.patch.bz2 + http://pkgconfig.freedesktop.org/releases/pkg-config-0.26.tar.gz" # pkg.m4 for eautoreconf + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" +IUSE="debug kernel_linux" + +RDEPEND=">=dev-libs/glib-2:2 + >=dev-libs/libgamin-0.1.10 + !app-admin/fam + !<app-admin/gamin-0.1.10" + +DEPEND="${RDEPEND}" + +#S=${WORKDIR}/${MY_P} + +src_prepare() { + mv -vf "${WORKDIR}"/pkg-config-*/pkg.m4 "${WORKDIR}"/ || die + + # Fix compile warnings; bug #188923 + epatch "${DISTDIR}/gamin-0.1.9-freebsd.patch.bz2" + + # Fix file-collision due to shared library, upstream bug #530635 + epatch "${FILESDIR}/${PN}-0.1.10-noinst-lib.patch" + + # Fix compilation with latest glib, bug #382783 + epatch "${FILESDIR}/${PN}-0.1.10-G_CONST_RETURN-removal.patch" + + # Fix crosscompilation issues, bug #267604 + epatch "${FILESDIR}/${PN}-0.1.10-crosscompile-fix.patch" + + # Enable linux specific features on armel, upstream bug #588338 + epatch "${FILESDIR}/${P}-armel-features.patch" + + # Fix deadlocks with glib-2.32, bug #413331, upstream #667230 + epatch "${FILESDIR}/${P}-ih_sub_cancel-deadlock.patch" + + # Drop DEPRECATED flags + sed -i -e 's:-DG_DISABLE_DEPRECATED:$(NULL):g' server/Makefile.am || die + + sed -i \ + -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' \ + -e 's:AM_PROG_CC_STDC:AC_PROG_CC:' \ + configure.in || die #466948 + + # autoconf is required as the user-cflags patch modifies configure.in + # however, elibtoolize is also required, so when the above patch is + # removed, replace the following call with a call to elibtoolize + AT_M4DIR="${WORKDIR}" eautoreconf +} + +src_configure() { + # fixes bug 225403 + #append-flags "-D_GNU_SOURCE" + + if ! has_version virtual/pkgconfig; then + export DAEMON_CFLAGS="-I/usr/include/glib-2.0 -I/usr/$(get_libdir)/glib-2.0/include" + export DAEMON_LIBS="-lglib-2.0" + fi + + econf \ + --disable-debug \ + --disable-libgamin \ + --without-python \ + $(use_enable kernel_linux inotify) \ + $(use_enable debug debug-api) +} + +src_install() { + emake DESTDIR="${D}" install || die +} diff --git a/app-admin/gam-server/metadata.xml b/app-admin/gam-server/metadata.xml new file mode 100644 index 000000000000..9879e83b822e --- /dev/null +++ b/app-admin/gam-server/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>freedesktop</herd> + <maintainer> + <email>freedesktop-bugs@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/app-admin/gamin/gamin-0.1.10-r1.ebuild b/app-admin/gamin/gamin-0.1.10-r1.ebuild new file mode 100644 index 000000000000..4d375e9d38ba --- /dev/null +++ b/app-admin/gamin/gamin-0.1.10-r1.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit multilib-build + +DESCRIPTION="Meta package providing the File Alteration Monitor API & Server" +HOMEPAGE="http://www.gnome.org/~veillard/gamin/" +SRC_URI="" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +RDEPEND="!app-admin/fam + >=dev-libs/libgamin-0.1.10-r4[${MULTILIB_USEDEP}]" +DEPEND="" + +PDEPEND=">=app-admin/gam-server-0.1.10" diff --git a/app-admin/gamin/metadata.xml b/app-admin/gamin/metadata.xml new file mode 100644 index 000000000000..8c868061b739 --- /dev/null +++ b/app-admin/gamin/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>freedesktop</herd> +<maintainer> +<email>freedesktop-bugs@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/app-admin/genromfs/Manifest b/app-admin/genromfs/Manifest new file mode 100644 index 000000000000..2e29ebf203af --- /dev/null +++ b/app-admin/genromfs/Manifest @@ -0,0 +1 @@ +DIST genromfs-0.5.2.tar.gz 21069 SHA256 30f37fc734572c1dbaa2504585bc23ba6b8fd7df767ae7155995b2ca0ebed960 SHA512 7fa2f362e4a61ab38f5262fc5a716119312d3029f93cf0a514313c5a3c956d687d777a826da2f4ad95edaf5eab014464635b0afbaaa11f9b495efb6f03fbec2f WHIRLPOOL a3fbf809c62383268c1b1e728a29934e0b57caf72826918fffaeeea7e0485935ab79efd9cabb9018e4cc0934ef7cc2adfe6929e0f9c831e50dc0eb1f7f773139 diff --git a/app-admin/genromfs/files/genromfs-0.5.2-build.patch b/app-admin/genromfs/files/genromfs-0.5.2-build.patch new file mode 100644 index 000000000000..1fbc29fb7d5c --- /dev/null +++ b/app-admin/genromfs/files/genromfs-0.5.2-build.patch @@ -0,0 +1,28 @@ +--- Makefile ++++ Makefile +@@ -5,9 +5,10 @@ + + PACKAGE = genromfs + VERSION = 0.5.2 +-CC = gcc +-CFLAGS = -O2 -Wall -DVERSION=\"$(VERSION)\"#-g# +-LDFLAGS = -s#-g ++CC ?= gcc ++CFLAGS ?= -O2 ++CFLAGS += -Wall -DVERSION=\"$(VERSION)\"#-g# ++LDFLAGS ?= -s#-g + + DISTDIR = $(PACKAGE)-$(VERSION) + +@@ -16,9 +17,9 @@ + readme-kernel-patch genrommkdev romfs.txt \ + checkdist + +-prefix = /usr ++prefix = $(DESTDIR)/usr + bindir = $(prefix)/bin +-mandir = $(prefix)/man ++mandir = $(prefix)/share/man + + genromfs: genromfs.o + $(CC) $(LDFLAGS) genromfs.o -o genromfs diff --git a/app-admin/genromfs/genromfs-0.5.2.ebuild b/app-admin/genromfs/genromfs-0.5.2.ebuild new file mode 100644 index 000000000000..9e21456eea06 --- /dev/null +++ b/app-admin/genromfs/genromfs-0.5.2.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils toolchain-funcs + +DESCRIPTION="Create space-efficient, small, read-only romfs filesystems" +HOMEPAGE="http://romfs.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 arm64 ppc ~ppc64 s390 x86" +IUSE="" + +DOCS=( ChangeLog NEWS genromfs.lsm genrommkdev readme-kernel-patch romfs.txt ) + +src_prepare() { + epatch "${FILESDIR}"/${P}-build.patch +} + +src_compile() { + tc-export CC + default +} diff --git a/app-admin/genromfs/metadata.xml b/app-admin/genromfs/metadata.xml new file mode 100644 index 000000000000..eedb2fb06e9f --- /dev/null +++ b/app-admin/genromfs/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> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <longdescription>A readonly filesystem designed to be small and very space + efficent</longdescription> + <upstream> + <remote-id type="sourceforge">genromfs</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/gentoo-rsync-mirror/files/gentoo-mirror.conf b/app-admin/gentoo-rsync-mirror/files/gentoo-mirror.conf new file mode 100644 index 000000000000..d848c3b91d7f --- /dev/null +++ b/app-admin/gentoo-rsync-mirror/files/gentoo-mirror.conf @@ -0,0 +1,9 @@ +# Gentoo rsync mirror config + +RSYNC="/usr/bin/rsync" +OPTS="--quiet --recursive --links --perms --times --devices --delete --timeout=300" +#Uncomment the following line only if you have been granted access to rsync1.us.gentoo.org +#SRC="rsync://rsync1.us.gentoo.org/gentoo-portage" +#If you are waiting for access to our master mirror, select one of our mirrors to mirror from: +SRC="rsync://rsync.de.gentoo.org/gentoo-portage" +DST="/opt/gentoo-rsync/portage/" diff --git a/app-admin/gentoo-rsync-mirror/files/rsync-gentoo-portage.sh b/app-admin/gentoo-rsync-mirror/files/rsync-gentoo-portage.sh new file mode 100644 index 000000000000..e053fadab1ed --- /dev/null +++ b/app-admin/gentoo-rsync-mirror/files/rsync-gentoo-portage.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +source /etc/rsync/gentoo-mirror.conf + +echo "Started update at" `date` >> $0.log 2>&1 +logger -t rsync "re-rsyncing the gentoo-portage tree" +${RSYNC} ${OPTS} ${SRC} ${DST} >> $0.log 2>&1 +logger -t rsync "deleting spurious Changelog files" +find ${DST} -iname ".ChangeLog*" | xargs rm -rf + +echo "End: "`date` >> $0.log 2>&1
\ No newline at end of file diff --git a/app-admin/gentoo-rsync-mirror/files/rsyncd.conf b/app-admin/gentoo-rsync-mirror/files/rsyncd.conf new file mode 100644 index 000000000000..349b723b50d9 --- /dev/null +++ b/app-admin/gentoo-rsync-mirror/files/rsyncd.conf @@ -0,0 +1,26 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +uid = nobody +gid = nobody +use chroot = yes +max connections = 20 +pid file = /var/run/rsyncd.pid +motd file = /etc/rsync/rsyncd.motd +transfer logging = no +log format = %t %a %m %f %b +syslog facility = local3 +timeout = 300 + +[gentoo-x86-portage] +#this entry is for compatibility +path = /opt/gentoo-rsync/portage +comment = Gentoo Linux Portage tree + +[gentoo-portage] +#modern versions of portage use this entry +path = /opt/gentoo-rsync/portage +comment = Gentoo Linux Portage tree mirror +exclude = distfiles + diff --git a/app-admin/gentoo-rsync-mirror/files/rsyncd.motd b/app-admin/gentoo-rsync-mirror/files/rsyncd.motd new file mode 100644 index 000000000000..35950dd898dd --- /dev/null +++ b/app-admin/gentoo-rsync-mirror/files/rsyncd.motd @@ -0,0 +1 @@ +This is rsync[number].[country].gentoo.org. diff --git a/app-admin/gentoo-rsync-mirror/files/rsynclogparse-extended.pl b/app-admin/gentoo-rsync-mirror/files/rsynclogparse-extended.pl new file mode 100644 index 000000000000..b0befc31c7ab --- /dev/null +++ b/app-admin/gentoo-rsync-mirror/files/rsynclogparse-extended.pl @@ -0,0 +1,128 @@ +#!/usr/bin/env perl + +# +# rsynclogparse-extended.pl, version 1.0 +# Script for producing daily or hourly stats from an rsync.log, in +# plain text or XML output formats +# +# (C) Tim Haynes <gentoo@stirfried.vegetable.org.uk>, February 2003 +# Redistributable under the terms of the BSD licence +# <http://www.opensource.org/licenses/bsd-license.php> +# + +$|=1; + +#Determine whether we have a commandline option or not +$arg=""; +$arg=shift + if $ARGV[0]=~/^-/; + +#Hash of variables to be output and descriptions +%outputVars=( + "mirrorid" => "which mirror name this box is", + "contact" => "email address to contact the server administrator", + "read" => "total bytes read", + "wrote" => "total bytes served", + "total" => "total bytes both directions", + "count" => "number of connections", + "meanxfer" => "mean transfer size", + "biggestXfer" => "biggest individual transfer", + "speedupavg" => "mean speedup-a-like ratio for all conns", + "avgbandwidth" => "mean bandwith reequirement over 1d", + "interval" => "most recent n-seconds' worth of data", + "maxconns" => "number of times max-conns reached", + "percmaxconns" => "percentage of connections rejected", + "configmaxconns" => "max concurrent connections configured", + "timestamp" => "Current time these stats were generated" + ); + +#Initialise all the above to 0 +map { $$_ =0 ; } keys %outputVars; + +#Set fields for this specific server +$mirrorid="rsync1.uk.gentoo.org"; +$contact="gentoo\@stirfried.vegetable.org.uk"; +$configmaxconns=5; + +$timestamp=time(); + +#Determine if we're doing a daily or hourly thing +$interval=3600; +$interval=2600*24 + if $arg=~/d/; + +($sec,$min,$hour,$mday,$mon,$year,$wday,$yday) = gmtime(time); +$now=dateToTstamp(sprintf("%04d/%02d/%02d %02d:%02d:%02d", + $year+1900, $mon+1, $mday, $hour, $min, $sec)); + + +#Read in all remaining files on commandline and stdin +while (<>) { + chomp; + + if (m#^((\d+)/(\d+)/(\d+) (\d+):(\d+):(\d+))#) { + $tstamp=dateToTstamp($1); + } + + next # skip too-old log entries + if $tstamp < ($now-$interval); + + $maxconns++ + if /max connections .\d+. reached/oi; + + /wrote (\d+) bytes.*read (\d+) bytes.*size (\d+)/oi + or next; + + $wrote+=$1; #running total of outgoing + $read+=$2; #running total of incoming + $volumesize=$3; #total size of the volume, serversize + $localtotal=$1 + $2; + $speedupsum+=$volumesize/$localtotal; #running total of "speedup" ratios + $count++; + $biggestXfer=($localtotal>$biggestXfer)?$localtotal:$biggestXfer; +} + +#Compute a few things +$total=$read+$wrote; +$speedupavg=$speedupsum/$count; #average speedup ratio +$meanxfer=$total/$count; #mean-size xfer per connection +$avgbandwidth=$total/$interval; #mean bandwith consumed over this interval +$percmaxconns=100*$maxconns/($count+$maxconns); + +#Choice of output format +$arg =~/xml/ ? &outputXML : &outputText; + +1; + +################ + +sub outputText { + foreach $i ( keys %outputVars ) { + printf("%-20s: $$i\n", $i); + } +} + + +sub outputXML { + print "<xml>\n <rsyncstats>\n"; + foreach $i ( keys %outputVars ) { + if ($arg=~/v/o) { + print " <$i desc=\"$outputVars{$i}\">$$i</$i>\n"; + } else { + print " <$i>$$i</$i>\n"; + } + } + print " </rsyncstats>\n</xml>\n"; +} + + +sub dateToTstamp { + my $str=shift; + + $str =~ m#^(\d+)/(\d+)/(\d+) (\d+):(\d+):(\d+)#; + + $tstamp=$6 + 60*$5 + 3600*$4 + 3600*24*$3 + + 3600*24*31*$2 + 3600*24*365*($1-1975); + + return $tstamp; +} diff --git a/app-admin/gentoo-rsync-mirror/gentoo-rsync-mirror-1.0-r4.ebuild b/app-admin/gentoo-rsync-mirror/gentoo-rsync-mirror-1.0-r4.ebuild new file mode 100644 index 000000000000..d98bf1c2d799 --- /dev/null +++ b/app-admin/gentoo-rsync-mirror/gentoo-rsync-mirror-1.0-r4.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +DESCRIPTION="Ebuild for setting up a Gentoo rsync mirror" +HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Infrastructure/Rsync" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 hppa ppc ppc64 sparc x86" +IUSE="" + +src_install() { + dodir /opt/gentoo-rsync + cp "${FILESDIR}"/rsync-gentoo-portage.sh "${D}"/opt/gentoo-rsync + cp "${FILESDIR}"/rsynclogparse-extended.pl "${D}"/opt/gentoo-rsync + insinto etc/rsync + doins "${FILESDIR}"/rsyncd.conf + doins "${FILESDIR}"/rsyncd.motd + doins "${FILESDIR}"/gentoo-mirror.conf + dodir /opt/gentoo-rsync/portage +} + +pkg_postinst() { + elog "The rsync-mirror is now installed into /opt/gentoo-rsync" + elog "The local portage copy resides in /opt/gentoo-rsync/portage" + elog "Please change /opt/gentoo-rsync/rsync-gentoo-portage.sh for" + elog "configuration of your main rsync server and use it so sync." + elog "Change /etc/rsync/rsyncd.motd to display your correct alias." + elog + elog "RSYNC_OPTS="--config=/etc/rsync/rsyncd.conf" needs" + elog "to be set in /etc/conf.d/rsyncd to make allow syncing." + elog + elog "The service can be started using /etc/init.d/rsyncd start" + elog "If you are setting up an official mirror, don't forget to add" + elog "00,30 * * * * root /opt/gentoo-rsync/rsync-gentoo-portage.sh" + elog "to your /etc/crontab to sync your tree every 30 minutes." + elog + elog "If you are setting up a private (unofficial) mirror, you can add" + elog "0 3 * * * root /opt/gentoo-rsync/rsync-gentoo-portage.sh" + elog "to your /etc/crontab to sync your tree once per day." + elog + elog "****IMPORTANT****" + elog "If you are setting up a private mirror, DO NOT sync against the" + elog "gentoo.org official rotations more than once a day. Doing so puts" + elog "you at risk of having your IP address banned from the rotations." + elog + elog "For more information visit: https://wiki.gentoo.org/wiki/Project:Infrastructure/Rsync" +} diff --git a/app-admin/gentoo-rsync-mirror/gentoo-rsync-mirror-1.0-r5.ebuild b/app-admin/gentoo-rsync-mirror/gentoo-rsync-mirror-1.0-r5.ebuild new file mode 100644 index 000000000000..6efa9c1b5c5f --- /dev/null +++ b/app-admin/gentoo-rsync-mirror/gentoo-rsync-mirror-1.0-r5.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="Ebuild for setting up a Gentoo rsync mirror" +HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Infrastructure/Rsync" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~alpha ~ppc ~sparc ~x86 ~hppa ~ppc64" +IUSE="" + +S="${WORKDIR}" + +src_install() { + exeinto /opt/gentoo-rsync + doexe "${FILESDIR}"/rsync-gentoo-portage.sh + doexe "${FILESDIR}"/rsynclogparse-extended.pl + insinto etc/rsync + doins "${FILESDIR}"/rsyncd.conf + doins "${FILESDIR}"/rsyncd.motd + doins "${FILESDIR}"/gentoo-mirror.conf + dodir /opt/gentoo-rsync/portage +} + +pkg_postinst() { + elog "The rsync-mirror is now installed into /opt/gentoo-rsync" + elog "The local portage copy resides in /opt/gentoo-rsync/portage" + elog "Please change /opt/gentoo-rsync/rsync-gentoo-portage.sh for" + elog "configuration of your main rsync server and use it to sync." + elog "Change /etc/rsync/rsyncd.motd to display your correct alias." + elog + elog "RSYNC_OPTS="--config=/etc/rsync/rsyncd.conf" needs" + elog "to be set in /etc/conf.d/rsyncd to make allow syncing." + elog + elog "The service can be started using /etc/init.d/rsyncd start" + elog "If you are setting up an official mirror, don't forget to add" + elog "00,30 * * * * root /opt/gentoo-rsync/rsync-gentoo-portage.sh" + elog "to your /etc/crontab to sync your tree every 30 minutes." + elog + elog "If you are setting up a private (unofficial) mirror, you can add" + elog "0 3 * * * root /opt/gentoo-rsync/rsync-gentoo-portage.sh" + elog "to your /etc/crontab to sync your tree once per day." + elog + elog "****IMPORTANT****" + elog "If you are setting up a private mirror, DO NOT sync against the" + elog "gentoo.org official rotations more than once a day. Doing so puts" + elog "you at risk of having your IP address banned from the rotations." + elog + elog "For more information visit: https://wiki.gentoo.org/wiki/Project:Infrastructure/Rsync" +} diff --git a/app-admin/gentoo-rsync-mirror/metadata.xml b/app-admin/gentoo-rsync-mirror/metadata.xml new file mode 100644 index 000000000000..2a2586cc30ca --- /dev/null +++ b/app-admin/gentoo-rsync-mirror/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>proxy-maintainers</herd> +<maintainer> + <email>rgkmg25@gmail.com</email> + <name>Robert Kowalski</name> +</maintainer> +</pkgmetadata> diff --git a/app-admin/geolizer/Manifest b/app-admin/geolizer/Manifest new file mode 100644 index 000000000000..5c5a148f00d3 --- /dev/null +++ b/app-admin/geolizer/Manifest @@ -0,0 +1,3 @@ +DIST geolizer_2.01-10-patch.20070115.tar.gz 76862 SHA256 a619f863c9a65a06580080702e770251b8b4dc635e2ebf0fdb56a40b0f7eb1b3 SHA512 bf9434187d0d6b9889bd23d765dcfc2177d03179f692fa6c5994fa5ab4a6565415362eb7cfe6f0ac044e669be2075bef716f912dcec75f55adbace8be89738c4 WHIRLPOOL 82e3808f5bc232ba6681fc125cf3ce226ecaf6ebcc12b4ee83ebc2e3742c0214e9ddd5ab79ca21d0aa41fa9e09231775bf49ed3ef2be74751574d1ed46f82750 +DIST webalizer-2.01-10-src.tar.bz2 252664 SHA256 f339e4b8879aeade0f889b7bc7eb85854a7746a16b267c4aa985cd5b8a112262 SHA512 5eb0c6344d99f92f8b2f72db533b61e7f79f18b94b1adbadc704f0a0b72998042d53daa1a2b8c92975be91ed25252f21ba99a1852365bccdc2338eb5041d6ff9 WHIRLPOOL ecae01667eb7ea163f8e2b66e9fc02f4fe57178eff067b24114633e1d7fc977097eb094b8ac2c2204ac4b7f72a8bc2cc68387b3a25d6a1653dc119acd7b5ccb1 +DIST webalizer.conf.gz 8986 SHA256 b7da31865a8c13a66756247d68242d6478900f2c2b9b5698ed35c0c613fb9a71 SHA512 ec7f815e0215116d72e6d93b471a4b86a1c152a8ebae7c374144cabeeb06750d3a39fde65faf069e9aeb133f27b0b4cdee16bed5442e7fbd4eb4f45a4f3cd84b WHIRLPOOL 58c2ced08eeba65e1c7acf951e2e0e1806af58fcd37997c4d824504235303d7f75cf6c05c7ce051e2e2f3b3abff9a929f0dfd7722a995a8ab65232cfb549e83a diff --git a/app-admin/geolizer/files/apache.geolizer b/app-admin/geolizer/files/apache.geolizer new file mode 100644 index 000000000000..e4e457c274e6 --- /dev/null +++ b/app-admin/geolizer/files/apache.geolizer @@ -0,0 +1,9 @@ +# This is the config snippet for Geolizer +<Directory "/var/www/localhost/htdocs/geolizer"> + Options None + AllowOverride None + Order allow,deny + Allow from all +</Directory> + +# vim: ts=4 filetype=apache diff --git a/app-admin/geolizer/files/geolizer-2.01.10_p20070115-etc-geolizer-conf.patch b/app-admin/geolizer/files/geolizer-2.01.10_p20070115-etc-geolizer-conf.patch new file mode 100644 index 000000000000..e515a9aee5a3 --- /dev/null +++ b/app-admin/geolizer/files/geolizer-2.01.10_p20070115-etc-geolizer-conf.patch @@ -0,0 +1,81 @@ +From 64325c4fed853418f75357e0bb78668f999478ab Mon Sep 17 00:00:00 2001 +From: Sebastian Pipping <sebastian@pipping.org> +Date: Wed, 10 Mar 2010 16:55:28 +0100 +Subject: [PATCH] etc-eolizer-conf + +--- + sample.conf | 4 ++-- + webalizer.1 | 6 +++--- + webalizer.c | 8 ++++---- + 3 files changed, 9 insertions(+), 9 deletions(-) + +diff --git a/sample.conf b/sample.conf +index 9eaef68..1d0b048 100644 +--- a/sample.conf ++++ b/sample.conf +@@ -16,8 +16,8 @@ + # at least one space or tab between the keyword and its value. + # + # As of version 0.98, The Webalizer will look for a 'default' configuration +-# file named "webalizer.conf" in the current directory, and if not found +-# there, will look for "/etc/webalizer.conf". ++# file named "geolizer.conf" in the current directory, and if not found ++# there, will look for "/etc/geolizer.conf". + + + # LogFile defines the web server log file to use. If not specified +diff --git a/webalizer.1 b/webalizer.1 +index b810c1f..fe0a589 100644 +--- a/webalizer.1 ++++ b/webalizer.1 +@@ -43,9 +43,9 @@ as a \fBcrond(8)\fP job. Once executed, the general flow of the program is: + .TP 8 + .B o + A default configuration file is scanned for. A file named +-\fIwebalizer.conf\fP is searched for in the current directory, and if ++\fIgeolizer.conf\fP is searched for in the current directory, and if + found, it's configuration data is parsed. If the file is not +-present in the current directory, the file \fI/etc/webalizer.conf\fP ++present in the current directory, the file \fI/etc/geolizer.conf\fP + is searched for and, if found, is used instead. + .TP 8 + .B o +@@ -688,7 +688,7 @@ Specifies GeoIP database file. Defaults to libGeoIP precompiled one + (normally \fI/usr/local/share/GeoIP/GeoIP.dat\fP). + .SH FILES + .TP 20 +-.I webalizer.conf ++.I geolizer.conf + Default configuration file. Is searched for in the current directory + and if not found, in the \fI/etc/\fP directory. + .TP 20 +diff --git a/webalizer.c b/webalizer.c +index 2daad89..db7adb2 100644 +--- a/webalizer.c ++++ b/webalizer.c +@@ -278,9 +278,9 @@ int main(int argc, char *argv[]) + len = GetModuleFileName(GetModuleHandle(NULL), tmp_buf, sizeof(tmp_buf) - 1); + for (p = tmp_buf + len; (p > tmp_buf) && (*p != '\\'); p--); + *p = '\0'; +- strncat(tmp_buf, "\\webalizer.conf", sizeof(tmp_buf) - 1); ++ strncat(tmp_buf, "\\geolizer.conf", sizeof(tmp_buf) - 1); + #else +- sprintf(tmp_buf,"%s/webalizer.conf",ETCDIR); ++ sprintf(tmp_buf,"%s/geolizer.conf",ETCDIR); + #endif /* WIN32 */ + + /* initalize epoch */ +@@ -290,8 +290,8 @@ int main(int argc, char *argv[]) + add_nlist("index.",&index_alias); + + /* check for default config file */ +- if (!access("webalizer.conf",F_OK)) +- get_config("webalizer.conf"); ++ if (!access("geolizer.conf",F_OK)) ++ get_config("geolizer.conf"); + else if (!access(tmp_buf,F_OK)) + get_config(tmp_buf); + +-- +1.7.0.1.61.gdc05d.dirty + diff --git a/app-admin/geolizer/files/geolizer-2.01.10_p20070115-strip.patch b/app-admin/geolizer/files/geolizer-2.01.10_p20070115-strip.patch new file mode 100644 index 000000000000..8cf07532bda2 --- /dev/null +++ b/app-admin/geolizer/files/geolizer-2.01.10_p20070115-strip.patch @@ -0,0 +1,10 @@ +--- webalizer-2.01-10/Makefile.in_BACKUP 2010-09-17 08:39:52.000000000 +0200 ++++ webalizer-2.01-10/Makefile.in 2010-09-17 08:40:02.000000000 +0200 +@@ -45,7 +45,6 @@ + output.o output.h graphs.o graphs.h lang.h \ + webalizer_lang.h + $(CC) ${LDFLAGS} -o webalizer webalizer.o hashtab.o linklist.o preserve.o parser.o output.o dns_resolv.o graphs.o ${LIBS} +- strip webalizer + rm -f webazolver + @LN_S@ webalizer webazolver + diff --git a/app-admin/geolizer/files/geolizer-language-list.txt b/app-admin/geolizer/files/geolizer-language-list.txt new file mode 100644 index 000000000000..ed9e3232417b --- /dev/null +++ b/app-admin/geolizer/files/geolizer-language-list.txt @@ -0,0 +1,136 @@ +aa afar +ab abkhazian +af afrikaans +am amharic +ar arabic +as assamese +ay aymara +az azerbaijani +ba bashkir +be byelorussian +bg bulgarian +bh bihari +bi bislama +bn bengali +bo tibetan +br breton +ca catalan +co corsican +cs czech +cy welsh +da danish +de german +dz bhutani +el greek +en english +eo esperanto +es spanish +et estonian +eu basque +fa persian +fi finnish +fj fiji +fo faeroese +fr french +fy frisian +ga irish +gd gaelic +gl galician +gn guarani +gu gujarati +ha hausa +hi hindi +hr croatian +hu hungarian +hy armenian +ia interlingua +ie interlingue +ik inupiak +in indonesian +is icelandic +it italian +iw hebrew +ja japanese +ji yiddish +jw javanese +ka georgian +kk kazakh +kl greenlandic +km cambodian +kn kannada +ko korean +ks kashmiri +ku kurdish +ky kirghiz +la latin +ln lingala +lo laothian +lt lithuanian +lv latvian +mg malagasy +mi maori +mk macedonian +ml malayalam +mn mongolian +mo moldavian +mr marathi +ms malay +mt maltese +my burmese +na nauru +ne nepali +nl dutch +no norwegian +oc occitan +om oromo afan +or oriya +pa punjabi +pl polish +ps pashto +pt portuguese +qu quechua +rm rhaeto-romance +rn kirundi +ro romanian +ru russian +rw kinyarwanda +sa sanskrit +sd sindhi +sg sangro +sh serbo-croatian +si singhalese +sk slovak +sl slovenian +sm samoan +sn shona +so somali +sq albanian +sr serbian +ss siswati +st sesotho +su sudanese +sv swedish +sw swahili +ta tamil +te tegulu +tg tajik +th thai +ti tigrinya +tk turkmen +tl tagalog +tn setswana +to tonga +tr turkish +ts tsonga +tt tatar +tw twi +uk ukrainian +ur urdu +uz uzbek +vi vietnamese +vo volapuk +wo wolof +xh xhosa +yo yoruba +zh chinese +zu zulu diff --git a/app-admin/geolizer/geolizer-2.01.10_p20070115-r1.ebuild b/app-admin/geolizer/geolizer-2.01.10_p20070115-r1.ebuild new file mode 100644 index 000000000000..5bcb7e5bb3eb --- /dev/null +++ b/app-admin/geolizer/geolizer-2.01.10_p20070115-r1.ebuild @@ -0,0 +1,119 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# uses webapp.eclass to create directories with right permissions +# probably slight overkill but works well + +EAPI="2" + +inherit versionator confutils eutils webapp db-use autotools + +WEBAPP_MANUAL_SLOT="yes" + +MY_PV="$(get_version_component_range 1-2)-$(get_version_component_range 3)" +WEBALIZER_P="webalizer-${MY_PV}" +GEOLIZER_P="${PN}_${MY_PV}-patch.${PV/*_p/}" + +DESCRIPTION="Webserver log file analyzer" +HOMEPAGE="http://sysd.org/stas/node/10" +SRC_URI="ftp://ftp.mrunix.net/pub/webalizer/old/${WEBALIZER_P}-src.tar.bz2 + http://sysd.org/stas/files/active/0/${GEOLIZER_P}.tar.gz + mirror://gentoo/webalizer.conf.gz" + +LICENSE="GPL-2" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="nls" +SLOT="0" + +DEPEND=">=sys-libs/db-4.2 + >=sys-libs/zlib-1.1.4 + >=media-libs/libpng-1.2 + >=media-libs/gd-1.8.3 + dev-libs/geoip" + +S="${WORKDIR}"/${WEBALIZER_P} + +pkg_setup() { + webapp_pkg_setup + confutils_require_built_with_all media-libs/gd png + + # USE=nls has no real meaning if LINGUAS isn't set + if use nls && [[ -z "${LINGUAS}" ]]; then + ewarn "you must set LINGUAS in /etc/make.conf" + ewarn "if you want to USE=nls" + die "please either set LINGUAS or do not use nls" + fi +} + +src_prepare() { + epatch "${WORKDIR}"/${PN}_${MY_PV}-patch/${PN}.patch \ + "${FILESDIR}"/${P}-etc-geolizer-conf.patch \ + "${FILESDIR}"/${P}-strip.patch + sed -i configure.in -e 's|libGeoIP.a|libGeoIP.so|g' || die + eautoreconf +} + +src_configure() { + # really dirty hack; necessary due to a really gross ./configure + # basically, it just sets the natural language the program uses + # unfortunatly, this program only allows for one lang, so only the first + # entry in LINGUAS is used + if use nls; then + local longlang="$(grep ^${LINGUAS:0:2} "${FILESDIR}"/geolizer-language-list.txt)" + local myconf="${myconf} --with-language=${longlang:3}" + else + local myconf="${myconf} --with-language=english" + fi + + econf --enable-dns \ + --with-db=$(db_includedir) \ + --with-dblib=$(db_libname) \ + ${myconf} \ + || die "econf failed" +} + +src_install() { + webapp_src_preinst + + newbin webalizer geolizer + fperms 755 /usr/bin/geolizer + dosym geolizer /usr/bin/geozolver || die 'dosym failed' + newman webalizer.1 geolizer.1 || die 'newman failed' + + insinto /etc + newins "${WORKDIR}"/webalizer.conf geolizer.conf || die 'doins failed' + dosed "s/apache/apache2/g" /etc/geolizer.conf || die 'dosed failed' + + dodoc CHANGES *README* INSTALL sample.conf "${FILESDIR}"/apache.geolizer || die 'dodoc failed' + + webapp_src_install +} + +pkg_postinst() { + elog + elog "It is suggested that you restart apache before using geolizer" + elog "You may want to review /etc/geolizer.conf and ensure that" + elog "OutputDir is set correctly" + elog + elog "Then just type geolizer to generate your stats." + elog "You can also use cron to generate them e.g. every day." + elog "They can be accessed via http://localhost/geolizer" + elog + elog "A sample Apache config file has been installed into" + elog "/usr/share/doc/${PF}/apache.geolizer" + elog "Please edit and install it as necessary" + elog + + if [[ ${#LINGUAS} -gt 2 ]] && use nls; then + ewarn + ewarn "You have more than one language in LINGUAS" + ewarn "Due to the limitations of this packge, it was built" + ewarn "only with ${LINGUAS:0:2} support. If this is not what" + ewarn "you intended, please place the language you desire" + ewarn "_first_ in the list of LINGUAS in /etc/make.conf" + ewarn + fi + + webapp_pkg_postinst +} diff --git a/app-admin/geolizer/metadata.xml b/app-admin/geolizer/metadata.xml new file mode 100644 index 000000000000..6632069b5aff --- /dev/null +++ b/app-admin/geolizer/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>web-apps</herd> +</pkgmetadata> diff --git a/app-admin/gkrellm/Manifest b/app-admin/gkrellm/Manifest new file mode 100644 index 000000000000..8faa1e10fd11 --- /dev/null +++ b/app-admin/gkrellm/Manifest @@ -0,0 +1 @@ +DIST gkrellm-2.3.5.tar.bz2 765011 SHA256 702b5b0e9c040eb3af8e157453f38dd6f53e1dcd8b1272d20266cda3d4372c8b SHA512 9681ec5978b6be9f56a71726df36671829a4427f45caf90c8c3460e8c59004ff4083de1692cad16e3724ed37418bb3e4589d1961c140f3becfa3efd210b7a5dc WHIRLPOOL 3dceb20b9da49fb9b287e1faca88b3fdb7ae7af6dde5e675ee1e5c718467b131e34f740cb38719e5026ce0478146264fa4eaa060120e71f2c442ec5504e6dfb4 diff --git a/app-admin/gkrellm/files/gkrellm-2.3.5-autofs.patch b/app-admin/gkrellm/files/gkrellm-2.3.5-autofs.patch new file mode 100644 index 000000000000..cf36a9817110 --- /dev/null +++ b/app-admin/gkrellm/files/gkrellm-2.3.5-autofs.patch @@ -0,0 +1,10 @@ +--- gkrellm-2.3.5.old/src/sysdeps/linux.c 2010-10-06 03:27:33.000000000 +1100 ++++ gkrellm-2.3.5/src/sysdeps/linux.c 2011-11-24 02:07:30.926450485 +1100 +@@ -1439,6 +1439,7 @@ + || !strcmp(type, "usbdevfs") + || !strcmp(type, "usbfs") + || !strcmp(type, "sysfs") ++ || !strcmp(type, "autofs") + ) + continue; + /* Strip trailing / from the directory. diff --git a/app-admin/gkrellm/files/gkrellm-2.3.5-binding.patch b/app-admin/gkrellm/files/gkrellm-2.3.5-binding.patch new file mode 100644 index 000000000000..83bf0b0d7d20 --- /dev/null +++ b/app-admin/gkrellm/files/gkrellm-2.3.5-binding.patch @@ -0,0 +1,30 @@ +From a6983649c997dffd71d365792fa665cc135e696a Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ville=20Skytt=C3=A4?= <ville.skytta@iki.fi> +Date: Fri, 10 Jan 2014 09:34:59 +0200 +Subject: [PATCH] Allow binding to a listen address that doesn't exist yet + +--- + server/main.c | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/server/main.c b/server/main.c +index a5a9e4e..b2f460b 100644 +--- a/server/main.c ++++ b/server/main.c +@@ -1003,6 +1003,13 @@ socksetup(int af) + #endif + continue; + } ++ ++#ifdef IP_FREEBIND ++ if (setsockopt(*s, SOL_IP, IP_FREEBIND, &on, sizeof(on)) < 0) ++ { ++ g_warning("gkrellmd: setsockopt (IP_FREEBIND) failed\n"); ++ } ++#endif + } + + #ifdef IPV6_V6ONLY +-- +1.8.3.1 + diff --git a/app-admin/gkrellm/files/gkrellm-2.3.5-cifs.patch b/app-admin/gkrellm/files/gkrellm-2.3.5-cifs.patch new file mode 100644 index 000000000000..fa35ef672798 --- /dev/null +++ b/app-admin/gkrellm/files/gkrellm-2.3.5-cifs.patch @@ -0,0 +1,24 @@ +--- gkrellm-2.3.5.old/server/monitor.c 2010-10-06 03:46:59.000000000 +1100 ++++ gkrellm-2.3.5/server/monitor.c 2011-11-24 02:01:30.871402778 +1100 +@@ -1329,7 +1329,8 @@ + static gchar *remote_fs_types[] = + { + "nfs", +- "smbfs" ++ "smbfs", ++ "cifs" + }; + + void +--- gkrellm-2.3.5.old/src/fs.c 2010-09-15 02:25:51.000000000 +1000 ++++ gkrellm-2.3.5/src/fs.c 2011-11-24 02:00:17.347088370 +1100 +@@ -163,7 +163,8 @@ + static gchar *remote_fs_types[] = + { + "nfs", +- "smbfs" ++ "smbfs", ++ "cifs" + }; + + diff --git a/app-admin/gkrellm/files/gkrellm-2.3.5-config.patch b/app-admin/gkrellm/files/gkrellm-2.3.5-config.patch new file mode 100644 index 000000000000..c6230598c80e --- /dev/null +++ b/app-admin/gkrellm/files/gkrellm-2.3.5-config.patch @@ -0,0 +1,43 @@ +diff -up gkrellm-2.3.5/server/gkrellmd.conf.config gkrellm-2.3.5/server/gkrellmd.conf +--- gkrellm-2.3.5/server/gkrellmd.conf.config 2010-09-14 17:26:19.000000000 +0300 ++++ gkrellm-2.3.5/server/gkrellmd.conf 2011-06-19 19:17:56.398591498 +0300 +@@ -22,16 +22,17 @@ + # List of hosts allowed to connect. If no hosts are specified in a + # gkrellmd.conf file or on the command line, all hosts will be allowed. + # +-#allow-host localhost +-#allow-host 127.0.0.1 ++allow-host localhost ++allow-host 127.0.0.1 ++allow-host ::ffff:127.0.0.1 + #allow-host ::1 + #allow-host 192.168.0.* + + # Drop privileges after startup (you must start gkrellmd as root to do it). + # NOTE: Option ignored on Windows + # +-#user nobody +-#group proc ++user gkrellmd ++group gkrellmd + + # Create a PID file for the running gkrellmd. Default is no PID file. + # NOTE: Option ignored on Windows +@@ -76,7 +77,7 @@ + # Minimum is 2 (less than 2 for no I/O disconnecting and is the default). + # Requires at least 2.1.8 versions of both gkrellmd and gkrellm. + # +-#io-timeout 5 ++io-timeout 5 + + # Configure gkrellm clients to attempt automatic reconnects to a + # gkrellmd server every reconnect-timeout seconds after a disconnected +@@ -85,7 +86,7 @@ + # Minimum is 2 (less than 2 for no automatic reconnecting and is the default). + # Requires at least 2.1.8 versions of both gkrellmd and gkrellm. + # +-#reconnect-timeout 5 ++reconnect-timeout 5 + + # Server side local mailbox counts can be sent to gkrellm clients. List here + # paths to mbox, MH mail, or Maildir style mailboxes. diff --git a/app-admin/gkrellm/files/gkrellm-2.3.5-dso.patch b/app-admin/gkrellm/files/gkrellm-2.3.5-dso.patch new file mode 100644 index 000000000000..3a24baafe7df --- /dev/null +++ b/app-admin/gkrellm/files/gkrellm-2.3.5-dso.patch @@ -0,0 +1,32 @@ +From 2c839bf2703e99c3851b58695545fed90b6226fc Mon Sep 17 00:00:00 2001 +From: Alexandre Rostovtsev <tetromino@gentoo.org> +Date: Wed, 29 Aug 2012 22:28:47 -0400 +Subject: [PATCH] Explicitly link to libgmodule-2.0 + +With >=gdk-pixbuf-2.24 and >=pango-1.30, libgmodule-2.0 is no longer +provided by "pkg-config --libs gtk+-2.0 gthread-2.0", so link to it +explicitly (as is already done in server/). + +Fixes build failure with gnu ld.gold in gkrellm-2.3.5. + +https://bugs.gentoo.org/show_bug.cgi?id=428532 +--- + src/Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/Makefile b/src/Makefile +index 6d482a7..19b0c29 100644 +--- a/src/Makefile ++++ b/src/Makefile +@@ -69,7 +69,7 @@ STRIP ?= -s + GKRELLM_INCLUDES = gkrellm.h gkrellm-public-proto.h $(SHARED_PATH)/log.h + + PKG_INCLUDE = `$(PKG_CONFIG) --cflags gtk+-2.0 gthread-2.0` +-PKG_LIB = `$(PKG_CONFIG) --libs gtk+-2.0 gthread-2.0` ++PKG_LIB = `$(PKG_CONFIG) --libs gtk+-2.0 gmodule-2.0 gthread-2.0` + + FLAGS = -O2 -I.. -I$(SHARED_PATH) $(PKG_INCLUDE) $(GTOP_INCLUDE) $(PTHREAD_INC)\ + ${SSL_INCLUDE} ${NTLM_INCLUDE} -DGKRELLM_CLIENT +-- +1.7.12 + diff --git a/app-admin/gkrellm/files/gkrellm-2.3.5-format-security.patch b/app-admin/gkrellm/files/gkrellm-2.3.5-format-security.patch new file mode 100644 index 000000000000..3e0265af482c --- /dev/null +++ b/app-admin/gkrellm/files/gkrellm-2.3.5-format-security.patch @@ -0,0 +1,12 @@ +diff -up gkrellm-2.3.5/server/main.c~ gkrellm-2.3.5/server/main.c +--- gkrellm-2.3.5/server/main.c~ 2010-10-02 19:13:29.000000000 +0300 ++++ gkrellm-2.3.5/server/main.c 2013-12-06 22:56:38.690534043 +0200 +@@ -187,7 +187,7 @@ static void gkrellmd_syslog_log(GLogLeve + if (log_level & G_LOG_LEVEL_CRITICAL) + facility_priority = LOG_MAKEPRI(LOG_DAEMON, LOG_CRIT); + +- syslog(facility_priority, message); ++ syslog(facility_priority, "%s", message); + #endif // defined(WIN32) + } // gkrellmd_syslog_log() + diff --git a/app-admin/gkrellm/files/gkrellm-2.3.5-sansfont.patch b/app-admin/gkrellm/files/gkrellm-2.3.5-sansfont.patch new file mode 100644 index 000000000000..460eb5ebc29a --- /dev/null +++ b/app-admin/gkrellm/files/gkrellm-2.3.5-sansfont.patch @@ -0,0 +1,17 @@ +--- gkrellm-2.2.4/src/gui.c.font 2005-05-17 15:37:16.000000000 +0200 ++++ gkrellm-2.2.4/src/gui.c 2005-05-17 15:37:46.000000000 +0200 +@@ -1575,11 +1575,11 @@ + if (!_GK.theme_path || !g_file_test(_GK.theme_path, G_FILE_TEST_IS_DIR)) + gkrellm_dup_string(&_GK.theme_path, ""); + if (!large_font.string) +- gkrellm_dup_string(&large_font.string, "Serif 11"); ++ gkrellm_dup_string(&large_font.string, "Sans 11"); + if (!normal_font.string) +- gkrellm_dup_string(&normal_font.string, "Serif 9"); ++ gkrellm_dup_string(&normal_font.string, "Sans 9"); + if (!small_font.string) +- gkrellm_dup_string(&small_font.string, "Serif 8"); ++ gkrellm_dup_string(&small_font.string, "Sans 8"); + } + + diff --git a/app-admin/gkrellm/files/gkrellm-2.3.5-width.patch b/app-admin/gkrellm/files/gkrellm-2.3.5-width.patch new file mode 100644 index 000000000000..c7fc22060b85 --- /dev/null +++ b/app-admin/gkrellm/files/gkrellm-2.3.5-width.patch @@ -0,0 +1,11 @@ +--- gkrellm-2.2.7/src/gkrellm.h.width 2005-06-09 12:48:34.000000000 +0200 ++++ gkrellm-2.2.7/src/gkrellm.h 2005-06-09 12:48:37.000000000 +0200 +@@ -518,7 +518,7 @@ + GkrellmCallback; + + +-#define CHART_WIDTH_MAX 1000 ++#define CHART_WIDTH_MAX 1600 + #define CHART_WIDTH_MIN 25 + + /* Each chart must have a GkrellmChartconfig struct associated with it. diff --git a/app-admin/gkrellm/files/gkrellmd b/app-admin/gkrellm/files/gkrellmd new file mode 100644 index 000000000000..40db4eac9160 --- /dev/null +++ b/app-admin/gkrellm/files/gkrellmd @@ -0,0 +1,22 @@ +#!/sbin/runscript +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + need net + after lm_sensors + after hddtemp +} + +start() { + ebegin "Starting GNU Krell Monitor daemon" + start-stop-daemon --start --quiet --background --pidfile /var/run/gkrellmd.pid --make-pidfile --exec /usr/bin/gkrellmd -- ${GKRELLMD_OPTS} + eend $? +} + +stop() { + ebegin "Stopping GNU Krell Monitor daemon" + start-stop-daemon --stop --quiet --pidfile /var/run/gkrellmd.pid --name gkrellmd + eend $? +} diff --git a/app-admin/gkrellm/files/gkrellmd.conf b/app-admin/gkrellm/files/gkrellmd.conf new file mode 100644 index 000000000000..6b0d90df1092 --- /dev/null +++ b/app-admin/gkrellm/files/gkrellmd.conf @@ -0,0 +1,8 @@ +# Config file for gkrellmd init script + +# If you need to pass extra options to gkrellmd, you may set them here. +# See 'gkrellmd --help' for a list of options. +# +# Note: Many options can be configured in /etc/gkrellmd.conf as well +# +#GKRELLMD_OPTS="" diff --git a/app-admin/gkrellm/files/gkrellmd.service b/app-admin/gkrellm/files/gkrellmd.service new file mode 100644 index 000000000000..11f18f02bf61 --- /dev/null +++ b/app-admin/gkrellm/files/gkrellmd.service @@ -0,0 +1,10 @@ +[Unit] +Description=GNU Krell Monitors server +Documentation=man:gkrellmd(1) +After=network.target + +[Service] +ExecStart=/usr/sbin/gkrellmd + +[Install] +WantedBy=multi-user.target diff --git a/app-admin/gkrellm/gkrellm-2.3.5-r3.ebuild b/app-admin/gkrellm/gkrellm-2.3.5-r3.ebuild new file mode 100644 index 000000000000..7da7c735f029 --- /dev/null +++ b/app-admin/gkrellm/gkrellm-2.3.5-r3.ebuild @@ -0,0 +1,129 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils multilib user systemd toolchain-funcs + +DESCRIPTION="Single process stack of various system monitors" +HOMEPAGE="http://www.gkrellm.net/" +SRC_URI="http://members.dslextreme.com/users/billw/${PN}/${P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="2" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux" +IUSE="gnutls hddtemp lm_sensors nls ntlm ssl kernel_FreeBSD X" + +RDEPEND=" + dev-libs/glib:2 + hddtemp? ( app-admin/hddtemp ) + gnutls? ( net-libs/gnutls ) + !gnutls? ( ssl? ( dev-libs/openssl:0= ) ) + lm_sensors? ( sys-apps/lm_sensors ) + nls? ( virtual/libintl ) + ntlm? ( net-libs/libntlm ) + X? ( + x11-libs/gtk+:2 + x11-libs/pango + )" +DEPEND="${RDEPEND} + virtual/pkgconfig + nls? ( sys-devel/gettext )" + +pkg_setup() { + enewgroup gkrellmd + enewuser gkrellmd -1 -1 -1 gkrellmd + TARGET= + use kernel_FreeBSD && TARGET="freebsd" +} + +src_prepare() { + sed -e 's:-O2 ::' \ + -e 's:override CC:CFLAGS:' \ + -e 's:-L/usr/X11R6/lib::' \ + -i */Makefile || die "sed Makefile(s) failed" + + sed -e "s:/usr/lib:${EPREFIX}/usr/$(get_libdir):" \ + -e "s:/usr/local/lib:${EPREFIX}/usr/local/$(get_libdir):" \ + -i src/${PN}.h || die "sed ${PN}.h failed" + + epatch \ + "${FILESDIR}"/${P}-autofs.patch \ + "${FILESDIR}"/${P}-cifs.patch \ + "${FILESDIR}"/${P}-dso.patch \ + "${FILESDIR}"/${P}-format-security.patch \ + "${FILESDIR}"/${P}-config.patch \ + "${FILESDIR}"/${P}-width.patch \ + "${FILESDIR}"/${P}-binding.patch \ + "${FILESDIR}"/${P}-sansfont.patch +} + +src_compile() { + if use X ; then + local sslopt="" + if use gnutls; then + sslopt="without-ssl=yes" + elif use ssl; then + sslopt="without-gnutls=yes" + else + sslopt="without-ssl=yes without-gnutls=yes" + fi + + emake \ + ${TARGET} \ + CC="$(tc-getCC)" \ + STRIP="" \ + INSTALLROOT="${EPREFIX}/usr" \ + INCLUDEDIR="${EPREFIX}/usr/include/gkrellm2" \ + LOCALEDIR="${EPREFIX}/usr/share/locale" \ + $(usex nls "" "enable_nls=0") \ + $(usex lm_sensors "" "without-libsensors=yes") \ + $(usex ntlm "" "without-ntlm=yes") \ + ${sslopt} + else + cd server || die + emake \ + ${TARGET} \ + CC="$(tc-getCC)" \ + LINK_FLAGS="$LDFLAGS -Wl,-E" \ + STRIP="" \ + $(usex nls "" "enable_nls=0") \ + $(usex lm_sensors "" "without-libsensors=yes") + fi +} + +src_install() { + if use X ; then + emake \ + install${TARGET:+_}${TARGET} \ + $(usex nls "" "enable_nls=0") \ + STRIP="" \ + INSTALLDIR="${ED}/usr/bin" \ + INCLUDEDIR="${ED}/usr/include" \ + LOCALEDIR="${ED}/usr/share/locale" \ + PKGCONFIGDIR="${ED}/usr/$(get_libdir)/pkgconfig" \ + MANDIR="${ED}/usr/share/man/man1" + + dohtml *.html + + newicon src/icon.xpm ${PN}.xpm + make_desktop_entry ${PN} GKrellM ${PN} + else + dobin server/gkrellmd + + insinto /usr/include/gkrellm2 + doins server/gkrellmd.h + doins shared/log.h + fi + + doinitd "${FILESDIR}"/gkrellmd + newconfd "${FILESDIR}"/gkrellmd.conf gkrellmd + + systemd_dounit "${FILESDIR}"/gkrellmd.service + + insinto /etc + doins server/gkrellmd.conf + + dodoc Changelog CREDITS README +} diff --git a/app-admin/gkrellm/metadata.xml b/app-admin/gkrellm/metadata.xml new file mode 100644 index 000000000000..8a2f86d9436d --- /dev/null +++ b/app-admin/gkrellm/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>desktop-dock</herd> + <use> + <flag name="hddtemp">Enable monitoring harddrive temperatures via + <pkg>app-admin/hddtemp</pkg></flag> + <flag name="gnutls">Enable SSL support for mail checking with + <pkg>net-libs/gnutls</pkg> (overrides 'ssl' USE flag)</flag> + <flag name="ssl">Enable SSL support for mail checking with + <pkg>dev-libs/openssl</pkg></flag> + <flag name="lm_sensors">Enable monitoring sensors via + <pkg>sys-apps/lm_sensors</pkg></flag> + <flag name="X">Build both the X11 gui (gkrellm) and the server + (gkrellmd). Disabling this flag builds the server only.</flag> + <flag name="ntlm">Enable NTLM authentication for mail checking with + <pkg>net-libs/libntlm</pkg></flag> + </use> +</pkgmetadata> diff --git a/app-admin/glance/Manifest b/app-admin/glance/Manifest new file mode 100644 index 000000000000..809968145c3f --- /dev/null +++ b/app-admin/glance/Manifest @@ -0,0 +1,2 @@ +DIST glance-2015.1.0.tar.gz 1100719 SHA256 0d8be9f28b1686de3d0d1037498eaaf717d39ad9fa85d2a07016131fff470009 SHA512 04f99eaf1043291eb5622c069d2a15d344d7d508740d7b738fce36e1373ec0df26172077b3bdf9f23cd8234d74a34995e3d66ac120430ff17017fe788eb3e9d6 WHIRLPOOL 862b2d89801f3a750434d50fafd75b8f22d031532910b7f63d6b8ca00546a19fa5a07dea1c286e4f5fea9b11614a4c25750a4b2ca5c429a03984a2972f681b40 +DIST glance-2015.1.1.tar.gz 1102359 SHA256 5c5714264c4ad9c3d178b983899b54f69f138505ddd77e13141dc5f3d1598ebe SHA512 d9233b78174ec0f84b317abf7d26153a7e3ead25b4ebc31acbe5d0806b6877da5875de52ee0742dcbdd5fd3d23cb0240208f6fd57fa59cc403ad228ac85f2a0f WHIRLPOOL 69a4cd27b4ac57a47523ceb4b899bbbb3569e7af2bb8f3e64373d98b7c72450bd587c6da96d33903dcbf44e02f89ea563d116d9d2dc90d4a0f472eca89963a87 diff --git a/app-admin/glance/files/CVE-2015-3289_2015.1.0.patch b/app-admin/glance/files/CVE-2015-3289_2015.1.0.patch new file mode 100644 index 000000000000..5b697741e408 --- /dev/null +++ b/app-admin/glance/files/CVE-2015-3289_2015.1.0.patch @@ -0,0 +1,50 @@ +From 88f92eb11d556bf43e2800a05973ad2da0db0195 Mon Sep 17 00:00:00 2001 +From: Flavio Percoco <flaper87@gmail.com> +Date: Fri, 8 May 2015 11:44:14 +0200 +Subject: [PATCH] Save image data after setting the data + +The image's locations are missing when image's are imported using tasks +because the ImportToStore task is not saving the image metadata after +the import. This patch fixes that. + +Change-Id: I43dec450d5fc4bee2131d78dbe3c2b2373c3f739 +Closes-bug: #1453068 +(cherry picked from commit 4efb56aae9288952bdb0d368a7c307e8524b80d8) +--- + glance/async/flows/base_import.py | 4 ++++ + glance/tests/unit/async/flows/test_import.py | 4 ++++ + 2 files changed, 8 insertions(+) + +diff --git a/glance/async/flows/base_import.py b/glance/async/flows/base_import.py +index 487247c..7656bde 100644 +--- a/glance/async/flows/base_import.py ++++ b/glance/async/flows/base_import.py +@@ -283,6 +283,10 @@ class _ImportToStore(task.Task): + + image_import.set_image_data(image, file_path or self.uri, None) + ++ # NOTE(flaper87): We need to save the image again after the locations ++ # have been set in the image. ++ self.image_repo.save(image) ++ + + class _SaveImage(task.Task): + +diff --git a/glance/tests/unit/async/flows/test_import.py b/glance/tests/unit/async/flows/test_import.py +index 0f355bc..7acd599 100644 +--- a/glance/tests/unit/async/flows/test_import.py ++++ b/glance/tests/unit/async/flows/test_import.py +@@ -112,6 +112,10 @@ class TestImportTask(test_utils.BaseTestCase): + "%s.tasks_import" % image_path) + self.assertFalse(os.path.exists(tmp_image_path)) + self.assertTrue(os.path.exists(image_path)) ++ self.assertEqual(1, len(list(self.image.locations))) ++ self.assertEqual("file://%s/%s" % (self.test_dir, ++ self.image.image_id), ++ self.image.locations[0]['url']) + + def test_import_flow_missing_work_dir(self): + self.config(engine_mode='serial', group='taskflow_executor') +-- +2.3.6 + diff --git a/app-admin/glance/files/glance-2013.2-sphinx_mapping.patch b/app-admin/glance/files/glance-2013.2-sphinx_mapping.patch new file mode 100644 index 000000000000..0a0f575ca0d3 --- /dev/null +++ b/app-admin/glance/files/glance-2013.2-sphinx_mapping.patch @@ -0,0 +1,12 @@ +diff -ur glance-2013.2.orig/doc/source/conf.py glance-2013.2/doc/source/conf.py +--- doc/source/conf.py 2013-10-17 21:39:46.000000000 +0800 ++++ doc/source/conf.py 2013-11-13 18:51:29.099839976 +0800 +@@ -250,8 +250,3 @@ + + # If false, no module index is generated. + #latex_use_modindex = True +- +-# Example configuration for intersphinx: refer to the Python standard library. +-intersphinx_mapping = {'python': ('http://docs.python.org/', None), +- 'nova': ('http://nova.openstack.org', None), +- 'swift': ('http://swift.openstack.org', None)} diff --git a/app-admin/glance/files/glance.confd b/app-admin/glance/files/glance.confd new file mode 100644 index 000000000000..4eb2893090a0 --- /dev/null +++ b/app-admin/glance/files/glance.confd @@ -0,0 +1 @@ +PID_PATH=/var/run/glance diff --git a/app-admin/glance/files/glance.initd b/app-admin/glance/files/glance.initd new file mode 100644 index 000000000000..81e42b341511 --- /dev/null +++ b/app-admin/glance/files/glance.initd @@ -0,0 +1,22 @@ +#!/sbin/runscript +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +description="Starts ${SVCNAME} service for OpenStack" + +command=/usr/bin/${SVCNAME} +command_background=yes +pidfile=/var/run/glance/${SVCNAME}.pid +required_files=/etc/glance/${SVCNAME}.conf + +start_stop_daemon_args="--quiet --user ${GLANCE_USER:-glance}" + +depend() { + need net +} + +start_pre() { + checkpath --directory --owner ${GLANCE_USER:-glance}:${GLANCE_GROUP:-glance} --mode 0755 ${GLANCE_RUN:-/var/run/glance} +} + diff --git a/app-admin/glance/glance-2015.1.0-r1.ebuild b/app-admin/glance/glance-2015.1.0-r1.ebuild new file mode 100644 index 000000000000..8d55fc812300 --- /dev/null +++ b/app-admin/glance/glance-2015.1.0-r1.ebuild @@ -0,0 +1,186 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 user + +DESCRIPTION="Provides services for discovering, registering, and retrieving +virtual machine images" +HOMEPAGE="https://launchpad.net/glance" +SRC_URI="http://launchpad.net/${PN}/kilo/${PV}/+download/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="doc mysql postgres +sqlite +swift test" +REQUIRED_USE="|| ( mysql postgres sqlite )" + +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + >=dev-python/pbr-0.8.0[${PYTHON_USEDEP}] + <dev-python/pbr-1.0[${PYTHON_USEDEP}] + test? ( + ${RDEPEND} + >=dev-python/hacking-0.10.0[${PYTHON_USEDEP}] + <dev-python/hacking-0.11[${PYTHON_USEDEP}] + ~dev-python/Babel-1.3[${PYTHON_USEDEP}] + >=dev-python/coverage-3.6[${PYTHON_USEDEP}] + >=dev-python/fixtures-0.3.14[${PYTHON_USEDEP}] + >=dev-python/mock-1.0[${PYTHON_USEDEP}] + >=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}] + !~dev-python/sphinx-1.2.0[${PYTHON_USEDEP}] + <dev-python/sphinx-1.3[${PYTHON_USEDEP}] + >=dev-python/requests-2.2.0[${PYTHON_USEDEP}] + !~dev-python/requests-2.4.0[${PYTHON_USEDEP}] + >=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}] + >=dev-python/testtools-0.9.36[${PYTHON_USEDEP}] + !~dev-python/testtools-1.2.0[${PYTHON_USEDEP}] + >=dev-python/psutil-1.1.1[${PYTHON_USEDEP}] + <dev-python/psutil-2.0.0[${PYTHON_USEDEP}] + >=dev-python/oslotest-1.5.1[${PYTHON_USEDEP}] + <dev-python/oslotest-1.6.0[${PYTHON_USEDEP}] + dev-python/mysql-python[${PYTHON_USEDEP}] + dev-python/psycopg[${PYTHON_USEDEP}] + ~dev-python/pysendfile-2.0.1[${PYTHON_USEDEP}] + dev-python/qpid-python[${PYTHON_USEDEP}] + >=dev-python/pyxattr-0.5.0[${PYTHON_USEDEP}] + >=dev-python/oslo-sphinx-2.5.0[${PYTHON_USEDEP}] + <dev-python/oslo-sphinx-2.6.0[${PYTHON_USEDEP}] + >=dev-python/elasticsearch-py-1.3.0[${PYTHON_USEDEP}] + )" + +#note to self, wsgiref is a python builtin, no need to package it +#>=dev-python/wsgiref-0.1.2[${PYTHON_USEDEP}] + +RDEPEND=" + >=dev-python/greenlet-0.3.2[${PYTHON_USEDEP}] + sqlite? ( + >=dev-python/sqlalchemy-0.9.7[sqlite,${PYTHON_USEDEP}] + <=dev-python/sqlalchemy-0.9.99[sqlite,${PYTHON_USEDEP}] + ) + mysql? ( + dev-python/mysql-python + >=dev-python/sqlalchemy-0.9.7[${PYTHON_USEDEP}] + <=dev-python/sqlalchemy-0.9.99[${PYTHON_USEDEP}] + ) + postgres? ( + dev-python/psycopg:2 + >=dev-python/sqlalchemy-0.9.7[${PYTHON_USEDEP}] + <=dev-python/sqlalchemy-0.9.99[${PYTHON_USEDEP}] + ) + >=dev-python/anyjson-0.3.3[${PYTHON_USEDEP}] + >=dev-python/eventlet-0.16.1[${PYTHON_USEDEP}] + !~dev-python/eventlet-0.17.0[${PYTHON_USEDEP}] + >=dev-python/pastedeploy-1.5.0[${PYTHON_USEDEP}] + >=dev-python/routes-1.12.3[${PYTHON_USEDEP}] + !~dev-python/routes-2.0[${PYTHON_USEDEP}] + >=dev-python/webob-1.2.3[${PYTHON_USEDEP}] + >=dev-python/sqlalchemy-migrate-0.9.5[${PYTHON_USEDEP}] + >=dev-python/httplib2-0.7.5[${PYTHON_USEDEP}] + >=dev-python/kombu-2.5.0[${PYTHON_USEDEP}] + >=dev-python/pycrypto-2.6[${PYTHON_USEDEP}] + >=dev-python/iso8601-0.1.9[${PYTHON_USEDEP}] + dev-python/ordereddict[${PYTHON_USEDEP}] + >=dev-python/oslo-config-1.9.3[${PYTHON_USEDEP}] + <dev-python/oslo-config-1.10.0[${PYTHON_USEDEP}] + >=dev-python/oslo-concurrency-1.8.0[${PYTHON_USEDEP}] + <dev-python/oslo-concurrency-1.9.0[${PYTHON_USEDEP}] + >=dev-python/oslo-context-0.2.0[${PYTHON_USEDEP}] + <dev-python/oslo-context-0.3.0[${PYTHON_USEDEP}] + >=dev-python/oslo-utils-1.4.0[${PYTHON_USEDEP}] + <dev-python/oslo-utils-1.5.0[${PYTHON_USEDEP}] + >=dev-python/stevedore-1.3.0[${PYTHON_USEDEP}] + <dev-python/stevedore-1.4.0[${PYTHON_USEDEP}] + >=dev-python/taskflow-0.7.1[${PYTHON_USEDEP}] + <dev-python/taskflow-0.8.0[${PYTHON_USEDEP}] + >=dev-python/keystonemiddleware-1.5.0[${PYTHON_USEDEP}] + <dev-python/keystonemiddleware-1.6.0[${PYTHON_USEDEP}] + >=dev-python/WSME-0.6[${PYTHON_USEDEP}] + dev-python/posix_ipc[${PYTHON_USEDEP}] + swift? ( + >=dev-python/python-swiftclient-2.2.0[${PYTHON_USEDEP}] + <dev-python/python-swiftclient-2.5.0[${PYTHON_USEDEP}] + ) + >=dev-python/oslo-vmware-0.11.1[${PYTHON_USEDEP}] + <dev-python/oslo-vmware-0.12.0[${PYTHON_USEDEP}] + dev-python/paste[${PYTHON_USEDEP}] + >=dev-python/jsonschema-2.0.0[${PYTHON_USEDEP}] + <dev-python/jsonschema-3.0.0[${PYTHON_USEDEP}] + >=dev-python/python-keystoneclient-1.1.0[${PYTHON_USEDEP}] + <dev-python/python-keystoneclient-1.4.0[${PYTHON_USEDEP}] + >=dev-python/pyopenssl-0.11[${PYTHON_USEDEP}] + >=dev-python/six-1.9.0[${PYTHON_USEDEP}] + >=dev-python/oslo-db-1.7.0[${PYTHON_USEDEP}] + <dev-python/oslo-db-1.8.0[${PYTHON_USEDEP}] + >=dev-python/oslo-i18n-1.5.0[${PYTHON_USEDEP}] + <dev-python/oslo-i18n-1.6.0[${PYTHON_USEDEP}] + >=dev-python/oslo-log-1.0.0[${PYTHON_USEDEP}] + <dev-python/oslo-log-1.1.0[${PYTHON_USEDEP}] + >=dev-python/oslo-messaging-1.8.0[${PYTHON_USEDEP}] + <dev-python/oslo-messaging-1.9.0[${PYTHON_USEDEP}] + >=dev-python/oslo-policy-0.3.1[${PYTHON_USEDEP}] + <dev-python/oslo-policy-0.4.0[${PYTHON_USEDEP}] + >=dev-python/oslo-serialization-1.4.0[${PYTHON_USEDEP}] + <dev-python/oslo-serialization-1.5.0[${PYTHON_USEDEP}] + >=dev-python/retrying-1.2.2[${PYTHON_USEDEP}] + !~dev-python/retrying-1.3.0[${PYTHON_USEDEP}] + >=dev-python/osprofiler-0.3.0[${PYTHON_USEDEP}] + >=dev-python/glance_store-0.3.0[${PYTHON_USEDEP}] + <dev-python/glance_store-0.5.0[${PYTHON_USEDEP}] + >=dev-python/semantic_version-2.3.1[${PYTHON_USEDEP}] +" + +PATCHES=( + "${FILESDIR}/CVE-2015-3289_2015.1.0.patch" +) + +pkg_setup() { + enewgroup glance + enewuser glance -1 -1 /var/lib/glance glance +} + +python_prepare_all() { + sed -i '/xattr/d' test-requirements.txt || die + sed -i '/pysendfile/d' test-requirements.txt || die + distutils-r1_python_prepare_all +} + +python_compile_all() { + use doc && "${PYTHON}" setup.py build_sphinx +} + +python_test() { + # https://bugs.launchpad.net/glance/+bug/1251105 + # https://bugs.launchpad.net/glance/+bug/1242501 + testr init + testr run --parallel || die "failed testsuite under python2.7" +} + +python_install() { + distutils-r1_python_install + + for svc in api registry scrubber; do + newinitd "${FILESDIR}/glance.initd" glance-${svc} + done + + diropts -m 0750 -o glance -g glance + dodir /var/log/glance /var/lib/glance/images /var/lib/glance/scrubber + keepdir /etc/glance + keepdir /var/log/glance + keepdir /var/lib/glance/images + keepdir /var/lib/glance/scrubber + + insinto /etc/glance + insopts -m 0640 -o glance -g glance + doins etc/*.ini + doins etc/*.conf + doins etc/*.sample +} + +python_install_all() { + use doc && local HTML_DOCS=( doc/build/html/. ) + distutils-r1_python_install_all +} diff --git a/app-admin/glance/glance-2015.1.1.ebuild b/app-admin/glance/glance-2015.1.1.ebuild new file mode 100644 index 000000000000..b22016621f16 --- /dev/null +++ b/app-admin/glance/glance-2015.1.1.ebuild @@ -0,0 +1,188 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 user + +DESCRIPTION="Provides services for discovering, registering, and retrieving +virtual machine images" +HOMEPAGE="https://launchpad.net/glance" +SRC_URI="http://launchpad.net/${PN}/kilo/${PV}/+download/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc mysql postgres +sqlite +swift test" +REQUIRED_USE="|| ( mysql postgres sqlite )" + +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + >=dev-python/pbr-0.8.0[${PYTHON_USEDEP}] + <dev-python/pbr-1.0[${PYTHON_USEDEP}] + test? ( + ${RDEPEND} + >=dev-python/hacking-0.10.0[${PYTHON_USEDEP}] + <dev-python/hacking-0.11[${PYTHON_USEDEP}] + ~dev-python/Babel-1.3[${PYTHON_USEDEP}] + >=dev-python/coverage-3.6[${PYTHON_USEDEP}] + >=dev-python/fixtures-0.3.14[${PYTHON_USEDEP}] + <dev-python/fixtures-1.3.0[${PYTHON_USEDEP}] + >=dev-python/mock-1.0[${PYTHON_USEDEP}] + <dev-python/mock-1.1.0[${PYTHON_USEDEP}] + >=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}] + !~dev-python/sphinx-1.2.0[${PYTHON_USEDEP}] + <dev-python/sphinx-1.3[${PYTHON_USEDEP}] + >=dev-python/requests-2.2.0[${PYTHON_USEDEP}] + !~dev-python/requests-2.4.0[${PYTHON_USEDEP}] + >=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}] + >=dev-python/testtools-0.9.36[${PYTHON_USEDEP}] + !~dev-python/testtools-1.2.0[${PYTHON_USEDEP}] + >=dev-python/psutil-1.1.1[${PYTHON_USEDEP}] + <dev-python/psutil-2.0.0[${PYTHON_USEDEP}] + >=dev-python/oslotest-1.5.1[${PYTHON_USEDEP}] + <dev-python/oslotest-1.6.0[${PYTHON_USEDEP}] + dev-python/mysql-python[${PYTHON_USEDEP}] + dev-python/psycopg[${PYTHON_USEDEP}] + ~dev-python/pysendfile-2.0.1[${PYTHON_USEDEP}] + dev-python/qpid-python[${PYTHON_USEDEP}] + >=dev-python/pyxattr-0.5.0[${PYTHON_USEDEP}] + >=dev-python/oslo-sphinx-2.5.0[${PYTHON_USEDEP}] + <dev-python/oslo-sphinx-2.6.0[${PYTHON_USEDEP}] + >=dev-python/elasticsearch-py-1.3.0[${PYTHON_USEDEP}] + )" + +#note to self, wsgiref is a python builtin, no need to package it +#>=dev-python/wsgiref-0.1.2[${PYTHON_USEDEP}] + +RDEPEND=" + >=dev-python/greenlet-0.3.2[${PYTHON_USEDEP}] + sqlite? ( + >=dev-python/sqlalchemy-0.9.7[sqlite,${PYTHON_USEDEP}] + <=dev-python/sqlalchemy-0.9.99[sqlite,${PYTHON_USEDEP}] + ) + mysql? ( + dev-python/mysql-python + >=dev-python/sqlalchemy-0.9.7[${PYTHON_USEDEP}] + <=dev-python/sqlalchemy-0.9.99[${PYTHON_USEDEP}] + ) + postgres? ( + dev-python/psycopg:2 + >=dev-python/sqlalchemy-0.9.7[${PYTHON_USEDEP}] + <=dev-python/sqlalchemy-0.9.99[${PYTHON_USEDEP}] + ) + >=dev-python/anyjson-0.3.3[${PYTHON_USEDEP}] + >=dev-python/eventlet-0.16.1[${PYTHON_USEDEP}] + !~dev-python/eventlet-0.17.0[${PYTHON_USEDEP}] + >=dev-python/pastedeploy-1.5.0[${PYTHON_USEDEP}] + >=dev-python/routes-1.12.3[${PYTHON_USEDEP}] + !~dev-python/routes-2.0[${PYTHON_USEDEP}] + >=dev-python/webob-1.2.3[${PYTHON_USEDEP}] + >=dev-python/sqlalchemy-migrate-0.9.5[${PYTHON_USEDEP}] + >=dev-python/httplib2-0.7.5[${PYTHON_USEDEP}] + >=dev-python/kombu-2.5.0[${PYTHON_USEDEP}] + >=dev-python/pycrypto-2.6[${PYTHON_USEDEP}] + >=dev-python/iso8601-0.1.9[${PYTHON_USEDEP}] + dev-python/ordereddict[${PYTHON_USEDEP}] + >=dev-python/oslo-config-1.9.3[${PYTHON_USEDEP}] + <dev-python/oslo-config-1.10.0[${PYTHON_USEDEP}] + >=dev-python/oslo-concurrency-1.8.0[${PYTHON_USEDEP}] + <dev-python/oslo-concurrency-1.9.0[${PYTHON_USEDEP}] + >=dev-python/oslo-context-0.2.0[${PYTHON_USEDEP}] + <dev-python/oslo-context-0.3.0[${PYTHON_USEDEP}] + >=dev-python/oslo-utils-1.4.0[${PYTHON_USEDEP}] + <dev-python/oslo-utils-1.5.0[${PYTHON_USEDEP}] + >=dev-python/stevedore-1.3.0[${PYTHON_USEDEP}] + <dev-python/stevedore-1.4.0[${PYTHON_USEDEP}] + >=dev-python/taskflow-0.7.1[${PYTHON_USEDEP}] + <dev-python/taskflow-0.8.0[${PYTHON_USEDEP}] + >=dev-python/keystonemiddleware-1.5.0[${PYTHON_USEDEP}] + <dev-python/keystonemiddleware-1.6.0[${PYTHON_USEDEP}] + >=dev-python/WSME-0.6[${PYTHON_USEDEP}] + <dev-python/WSME-0.7[${PYTHON_USEDEP}] + dev-python/posix_ipc[${PYTHON_USEDEP}] + swift? ( + >=dev-python/python-swiftclient-2.2.0[${PYTHON_USEDEP}] + <dev-python/python-swiftclient-2.5.0[${PYTHON_USEDEP}] + ) + >=dev-python/oslo-vmware-0.11.1[${PYTHON_USEDEP}] + <dev-python/oslo-vmware-0.12.0[${PYTHON_USEDEP}] + dev-python/paste[${PYTHON_USEDEP}] + >=dev-python/jsonschema-2.0.0[${PYTHON_USEDEP}] + <dev-python/jsonschema-3.0.0[${PYTHON_USEDEP}] + >=dev-python/python-keystoneclient-1.2.0[${PYTHON_USEDEP}] + <dev-python/python-keystoneclient-1.4.0[${PYTHON_USEDEP}] + >=dev-python/pyopenssl-0.11[${PYTHON_USEDEP}] + >=dev-python/six-1.9.0[${PYTHON_USEDEP}] + >=dev-python/oslo-db-1.7.0[${PYTHON_USEDEP}] + <dev-python/oslo-db-1.8.0[${PYTHON_USEDEP}] + >=dev-python/oslo-i18n-1.5.0[${PYTHON_USEDEP}] + <dev-python/oslo-i18n-1.6.0[${PYTHON_USEDEP}] + >=dev-python/oslo-log-1.0.0[${PYTHON_USEDEP}] + <dev-python/oslo-log-1.1.0[${PYTHON_USEDEP}] + >=dev-python/oslo-messaging-1.8.0[${PYTHON_USEDEP}] + <dev-python/oslo-messaging-1.9.0[${PYTHON_USEDEP}] + >=dev-python/oslo-policy-0.3.1[${PYTHON_USEDEP}] + <dev-python/oslo-policy-0.4.0[${PYTHON_USEDEP}] + >=dev-python/oslo-serialization-1.4.0[${PYTHON_USEDEP}] + <dev-python/oslo-serialization-1.5.0[${PYTHON_USEDEP}] + >=dev-python/retrying-1.2.3[${PYTHON_USEDEP}] + !~dev-python/retrying-1.3.0[${PYTHON_USEDEP}] + >=dev-python/osprofiler-0.3.0[${PYTHON_USEDEP}] + >=dev-python/glance_store-0.3.0[${PYTHON_USEDEP}] + <dev-python/glance_store-0.5.0[${PYTHON_USEDEP}] + >=dev-python/semantic_version-2.3.1[${PYTHON_USEDEP}] +" + +PATCHES=( +) + +pkg_setup() { + enewgroup glance + enewuser glance -1 -1 /var/lib/glance glance +} + +python_prepare_all() { + sed -i '/xattr/d' test-requirements.txt || die + sed -i '/pysendfile/d' test-requirements.txt || die + distutils-r1_python_prepare_all +} + +python_compile_all() { + use doc && "${PYTHON}" setup.py build_sphinx +} + +python_test() { + # https://bugs.launchpad.net/glance/+bug/1251105 + # https://bugs.launchpad.net/glance/+bug/1242501 + testr init + testr run --parallel || die "failed testsuite under python2.7" +} + +python_install() { + distutils-r1_python_install + + for svc in api registry scrubber; do + newinitd "${FILESDIR}/glance.initd" glance-${svc} + done + + diropts -m 0750 -o glance -g glance + dodir /var/log/glance /var/lib/glance/images /var/lib/glance/scrubber + keepdir /etc/glance + keepdir /var/log/glance + keepdir /var/lib/glance/images + keepdir /var/lib/glance/scrubber + + insinto /etc/glance + insopts -m 0640 -o glance -g glance + doins etc/*.ini + doins etc/*.conf + doins etc/*.sample +} + +python_install_all() { + use doc && local HTML_DOCS=( doc/build/html/. ) + distutils-r1_python_install_all +} diff --git a/app-admin/glance/glance-2015.1.9999.ebuild b/app-admin/glance/glance-2015.1.9999.ebuild new file mode 100644 index 000000000000..24b3d3be06a0 --- /dev/null +++ b/app-admin/glance/glance-2015.1.9999.ebuild @@ -0,0 +1,189 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 git-2 user + +DESCRIPTION="Provides services for discovering, registering, and retrieving +virtual machine images" +HOMEPAGE="https://launchpad.net/glance" +EGIT_REPO_URI="https://github.com/openstack/glance.git" +EGIT_BRANCH="stable/kilo" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="" +IUSE="doc mysql postgres +sqlite +swift test" +REQUIRED_USE="|| ( mysql postgres sqlite )" + +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + >=dev-python/pbr-0.8.0[${PYTHON_USEDEP}] + <dev-python/pbr-1.0[${PYTHON_USEDEP}] + test? ( + ${RDEPEND} + >=dev-python/hacking-0.10.0[${PYTHON_USEDEP}] + <dev-python/hacking-0.11[${PYTHON_USEDEP}] + ~dev-python/Babel-1.3[${PYTHON_USEDEP}] + >=dev-python/coverage-3.6[${PYTHON_USEDEP}] + >=dev-python/fixtures-0.3.14[${PYTHON_USEDEP}] + <dev-python/fixtures-1.3.0[${PYTHON_USEDEP}] + >=dev-python/mock-1.0[${PYTHON_USEDEP}] + <dev-python/mock-1.1.0[${PYTHON_USEDEP}] + >=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}] + !~dev-python/sphinx-1.2.0[${PYTHON_USEDEP}] + <dev-python/sphinx-1.3[${PYTHON_USEDEP}] + >=dev-python/requests-2.2.0[${PYTHON_USEDEP}] + !~dev-python/requests-2.4.0[${PYTHON_USEDEP}] + >=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}] + >=dev-python/testtools-0.9.36[${PYTHON_USEDEP}] + !~dev-python/testtools-1.2.0[${PYTHON_USEDEP}] + >=dev-python/psutil-1.1.1[${PYTHON_USEDEP}] + <dev-python/psutil-2.0.0[${PYTHON_USEDEP}] + >=dev-python/oslotest-1.5.1[${PYTHON_USEDEP}] + <dev-python/oslotest-1.6.0[${PYTHON_USEDEP}] + dev-python/mysql-python[${PYTHON_USEDEP}] + dev-python/psycopg[${PYTHON_USEDEP}] + ~dev-python/pysendfile-2.0.1[${PYTHON_USEDEP}] + dev-python/qpid-python[${PYTHON_USEDEP}] + >=dev-python/pyxattr-0.5.0[${PYTHON_USEDEP}] + >=dev-python/oslo-sphinx-2.5.0[${PYTHON_USEDEP}] + <dev-python/oslo-sphinx-2.6.0[${PYTHON_USEDEP}] + >=dev-python/elasticsearch-py-1.3.0[${PYTHON_USEDEP}] + )" + +#note to self, wsgiref is a python builtin, no need to package it +#>=dev-python/wsgiref-0.1.2[${PYTHON_USEDEP}] + +RDEPEND=" + >=dev-python/greenlet-0.3.2[${PYTHON_USEDEP}] + sqlite? ( + >=dev-python/sqlalchemy-0.9.7[sqlite,${PYTHON_USEDEP}] + <=dev-python/sqlalchemy-0.9.99[sqlite,${PYTHON_USEDEP}] + ) + mysql? ( + dev-python/mysql-python + >=dev-python/sqlalchemy-0.9.7[${PYTHON_USEDEP}] + <=dev-python/sqlalchemy-0.9.99[${PYTHON_USEDEP}] + ) + postgres? ( + dev-python/psycopg:2 + >=dev-python/sqlalchemy-0.9.7[${PYTHON_USEDEP}] + <=dev-python/sqlalchemy-0.9.99[${PYTHON_USEDEP}] + ) + >=dev-python/anyjson-0.3.3[${PYTHON_USEDEP}] + >=dev-python/eventlet-0.16.1[${PYTHON_USEDEP}] + !~dev-python/eventlet-0.17.0[${PYTHON_USEDEP}] + >=dev-python/pastedeploy-1.5.0[${PYTHON_USEDEP}] + >=dev-python/routes-1.12.3[${PYTHON_USEDEP}] + !~dev-python/routes-2.0[${PYTHON_USEDEP}] + >=dev-python/webob-1.2.3[${PYTHON_USEDEP}] + >=dev-python/sqlalchemy-migrate-0.9.5[${PYTHON_USEDEP}] + >=dev-python/httplib2-0.7.5[${PYTHON_USEDEP}] + >=dev-python/kombu-2.5.0[${PYTHON_USEDEP}] + >=dev-python/pycrypto-2.6[${PYTHON_USEDEP}] + >=dev-python/iso8601-0.1.9[${PYTHON_USEDEP}] + dev-python/ordereddict[${PYTHON_USEDEP}] + >=dev-python/oslo-config-1.9.3[${PYTHON_USEDEP}] + <dev-python/oslo-config-1.10.0[${PYTHON_USEDEP}] + >=dev-python/oslo-concurrency-1.8.0[${PYTHON_USEDEP}] + <dev-python/oslo-concurrency-1.9.0[${PYTHON_USEDEP}] + >=dev-python/oslo-context-0.2.0[${PYTHON_USEDEP}] + <dev-python/oslo-context-0.3.0[${PYTHON_USEDEP}] + >=dev-python/oslo-utils-1.4.0[${PYTHON_USEDEP}] + <dev-python/oslo-utils-1.5.0[${PYTHON_USEDEP}] + >=dev-python/stevedore-1.3.0[${PYTHON_USEDEP}] + <dev-python/stevedore-1.4.0[${PYTHON_USEDEP}] + >=dev-python/taskflow-0.7.1[${PYTHON_USEDEP}] + <dev-python/taskflow-0.8.0[${PYTHON_USEDEP}] + >=dev-python/keystonemiddleware-1.5.0[${PYTHON_USEDEP}] + <dev-python/keystonemiddleware-1.6.0[${PYTHON_USEDEP}] + >=dev-python/WSME-0.6[${PYTHON_USEDEP}] + <dev-python/WSME-0.7[${PYTHON_USEDEP}] + dev-python/posix_ipc[${PYTHON_USEDEP}] + swift? ( + >=dev-python/python-swiftclient-2.2.0[${PYTHON_USEDEP}] + <dev-python/python-swiftclient-2.5.0[${PYTHON_USEDEP}] + ) + >=dev-python/oslo-vmware-0.11.1[${PYTHON_USEDEP}] + <dev-python/oslo-vmware-0.12.0[${PYTHON_USEDEP}] + dev-python/paste[${PYTHON_USEDEP}] + >=dev-python/jsonschema-2.0.0[${PYTHON_USEDEP}] + <dev-python/jsonschema-3.0.0[${PYTHON_USEDEP}] + >=dev-python/python-keystoneclient-1.2.0[${PYTHON_USEDEP}] + <dev-python/python-keystoneclient-1.4.0[${PYTHON_USEDEP}] + >=dev-python/pyopenssl-0.11[${PYTHON_USEDEP}] + >=dev-python/six-1.9.0[${PYTHON_USEDEP}] + >=dev-python/oslo-db-1.7.0[${PYTHON_USEDEP}] + <dev-python/oslo-db-1.8.0[${PYTHON_USEDEP}] + >=dev-python/oslo-i18n-1.5.0[${PYTHON_USEDEP}] + <dev-python/oslo-i18n-1.6.0[${PYTHON_USEDEP}] + >=dev-python/oslo-log-1.0.0[${PYTHON_USEDEP}] + <dev-python/oslo-log-1.1.0[${PYTHON_USEDEP}] + >=dev-python/oslo-messaging-1.8.0[${PYTHON_USEDEP}] + <dev-python/oslo-messaging-1.9.0[${PYTHON_USEDEP}] + >=dev-python/oslo-policy-0.3.1[${PYTHON_USEDEP}] + <dev-python/oslo-policy-0.4.0[${PYTHON_USEDEP}] + >=dev-python/oslo-serialization-1.4.0[${PYTHON_USEDEP}] + <dev-python/oslo-serialization-1.5.0[${PYTHON_USEDEP}] + >=dev-python/retrying-1.2.3[${PYTHON_USEDEP}] + !~dev-python/retrying-1.3.0[${PYTHON_USEDEP}] + >=dev-python/osprofiler-0.3.0[${PYTHON_USEDEP}] + >=dev-python/glance_store-0.3.0[${PYTHON_USEDEP}] + <dev-python/glance_store-0.5.0[${PYTHON_USEDEP}] + >=dev-python/semantic_version-2.3.1[${PYTHON_USEDEP}] +" + +PATCHES=( +) + +pkg_setup() { + enewgroup glance + enewuser glance -1 -1 /var/lib/glance glance +} + +python_prepare_all() { + sed -i '/xattr/d' test-requirements.txt || die + sed -i '/pysendfile/d' test-requirements.txt || die + distutils-r1_python_prepare_all +} + +python_compile_all() { + use doc && "${PYTHON}" setup.py build_sphinx +} + +python_test() { + # https://bugs.launchpad.net/glance/+bug/1251105 + # https://bugs.launchpad.net/glance/+bug/1242501 + testr init + testr run --parallel || die "failed testsuite under python2.7" +} + +python_install() { + distutils-r1_python_install + + for svc in api registry scrubber; do + newinitd "${FILESDIR}/glance.initd" glance-${svc} + done + + diropts -m 0750 -o glance -g glance + dodir /var/log/glance /var/lib/glance/images /var/lib/glance/scrubber + keepdir /etc/glance + keepdir /var/log/glance + keepdir /var/lib/glance/images + keepdir /var/lib/glance/scrubber + + insinto /etc/glance + insopts -m 0640 -o glance -g glance + doins etc/*.ini + doins etc/*.conf + doins etc/*.sample +} + +python_install_all() { + use doc && local HTML_DOCS=( doc/build/html/. ) + distutils-r1_python_install_all +} diff --git a/app-admin/glance/metadata.xml b/app-admin/glance/metadata.xml new file mode 100644 index 000000000000..0dc3e103ba37 --- /dev/null +++ b/app-admin/glance/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>openstack</herd> + <maintainer> + <email>prometheanfire@gentoo.org</email> + <name>Matthew Thode</name> + </maintainer> + <longdescription lang="en"> + Provides services for discovering, registering, and retrieving virtual + machine images. Glance has a RESTful API that allows querying of VM image + metadata as well as retrieval of the actual image. + </longdescription> + <use> + <flag name="swift">Adds swift storage support</flag> + </use> + <upstream> + <remote-id type="launchpad">glance</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/gnome-system-log/Manifest b/app-admin/gnome-system-log/Manifest new file mode 100644 index 000000000000..0cbd7cafddf7 --- /dev/null +++ b/app-admin/gnome-system-log/Manifest @@ -0,0 +1 @@ +DIST gnome-system-log-3.9.90.tar.xz 1350788 SHA256 9eeb51982d347aa7b33703031e2c1d8084201374665425cd62199649b29a5411 SHA512 1500c62fed7babf2b1cc0f95e23d490bf8065bacf68c44095d882d4f429548b179df9276e3f2ff0bf03bb4db0bb5cd525e3210a5ea04f23a34e547a13f3dc2b7 WHIRLPOOL 4e3ecfd4d95ddb549c9b4c3ca9a58473b646ba8924c37633d4043a312a0cd0ae25f6e0223e0bb10977b5675e72494b1101e7a148a5e5c1e05cb28778359510a4 diff --git a/app-admin/gnome-system-log/gnome-system-log-3.9.90.ebuild b/app-admin/gnome-system-log/gnome-system-log-3.9.90.ebuild new file mode 100644 index 000000000000..9012d989ec7d --- /dev/null +++ b/app-admin/gnome-system-log/gnome-system-log-3.9.90.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +GCONF_DEBUG="no" + +inherit gnome2 + +DESCRIPTION="System log viewer for GNOME" +HOMEPAGE="https://live.gnome.org/GnomeUtils" + +LICENSE="GPL-2+ CC-BY-SA-3.0" +SLOT="0" +IUSE="" +KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sh ~sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux" + +COMMON_DEPEND=" + >=dev-libs/glib-2.31:2 + sys-libs/zlib:= + >=x11-libs/gtk+-3.9.11:3 + x11-libs/pango +" +RDEPEND="${COMMON_DEPEND} + gnome-base/gsettings-desktop-schemas + !<gnome-extra/gnome-utils-3.4" +# ${PN} was part of gnome-utils before 3.4 + +DEPEND="${COMMON_DEPEND} + >=dev-util/intltool-0.40 + >=sys-devel/gettext-0.17 + virtual/pkgconfig +" + +src_configure() { + gnome2_src_configure \ + --enable-zlib \ + ITSTOOL=$(type -P true) +} diff --git a/app-admin/gnome-system-log/metadata.xml b/app-admin/gnome-system-log/metadata.xml new file mode 100644 index 000000000000..da6fd63d0085 --- /dev/null +++ b/app-admin/gnome-system-log/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>gnome</herd> +</pkgmetadata> diff --git a/app-admin/grubconfig/Manifest b/app-admin/grubconfig/Manifest new file mode 100644 index 000000000000..23d969bf953a --- /dev/null +++ b/app-admin/grubconfig/Manifest @@ -0,0 +1 @@ +DIST grubconfig-1.28.tar.gz 11715 SHA256 8b4cf9bebebebae09bc986571fa4811d5a6c67137b1f0004ea2e0f4279bee98a SHA512 1a2d864dd4d20162c55c2adf728040f1498035f04d544847f7e141bb749ab0ea9e40aaf6888e151dc8a9712d937c7f5b3630b73488f6d495199ea1041b76c2cd WHIRLPOOL 509cf926c0f723bf1b1bfb002c7c8d08b7afc72ef326bc463f8ff926dba173e1370d0ddebf81fc2101a79d206f3af078c8297de29bfb6f423e67b6a759464e0b diff --git a/app-admin/grubconfig/grubconfig-1.28-r1.ebuild b/app-admin/grubconfig/grubconfig-1.28-r1.ebuild new file mode 100644 index 000000000000..433d08669a11 --- /dev/null +++ b/app-admin/grubconfig/grubconfig-1.28-r1.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit multilib + +DESCRIPTION="Simple Tool to configure Grub-Bootloader" +HOMEPAGE="http://www.tux.org/pub/people/kent-robotti/looplinux/" +SRC_URI="http://www.tux.org/pub/people/kent-robotti/looplinux/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* amd64 x86" +IUSE="" + +DEPEND=">=dev-util/dialog-0.7" + +src_unpack() { + unpack ${A} + cd "${S}" + sed -i \ + -e "s:/usr/lib/grub:/$(get_libdir)/grub:g" \ + grubconfig || die +} + +src_install() { + dosbin grubconfig || die + dodoc README +} diff --git a/app-admin/grubconfig/metadata.xml b/app-admin/grubconfig/metadata.xml new file mode 100644 index 000000000000..96a2d586367d --- /dev/null +++ b/app-admin/grubconfig/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>base-system</herd> +</pkgmetadata> diff --git a/app-admin/gtkdiskfree/Manifest b/app-admin/gtkdiskfree/Manifest new file mode 100644 index 000000000000..7d051e191aec --- /dev/null +++ b/app-admin/gtkdiskfree/Manifest @@ -0,0 +1 @@ +DIST gtkdiskfree-2.0.1.tar.gz 354661 SHA256 eb4369db5ff98df487b43fd59f998f3524a87896686cd2e9c5adccea3bfe7e94 SHA512 ec202cc79dc80fb66fdf028b6a89610344bb76d7cbe09563f5f47ae072bed791e395d9d1389954046c25e882587d3685b14db4e871e26244045beabb8b579de8 WHIRLPOOL bd4aaeaea45703e62478a28a7b4b349fafdf0846d53f106837c332385efefde1ecb9a6637cc045b2949cc0dddf33aa416da7d1635a75972cb4af5aed348aa2d3 diff --git a/app-admin/gtkdiskfree/files/gtkdiskfree-2.0.1-desktop-file.patch b/app-admin/gtkdiskfree/files/gtkdiskfree-2.0.1-desktop-file.patch new file mode 100644 index 000000000000..ca2858904e33 --- /dev/null +++ b/app-admin/gtkdiskfree/files/gtkdiskfree-2.0.1-desktop-file.patch @@ -0,0 +1,19 @@ +--- gtkdiskfree.desktop.orig 2012-04-05 21:59:26.000000000 +0400 ++++ gtkdiskfree.desktop 2013-08-19 20:26:50.127669805 +0400 +@@ -1,13 +1,9 @@ +- + [Desktop Entry] + Name=GtkDiskFree +-Name[ru_RU.CP1251]=GtkDiskFree +-Name[ru_RU.KOI8-R]=GtkDiskFree + Comment=Free space monitor +-Comment[ru_RU.CP1251]= . +-Comment[ru_RU.KOI8-R]= . ++Comment[ru]=Индикатор свободного места на диске + Exec=gtkdiskfree +-Icon=/usr/share/pixmaps/gtkdiskfree.png ++Icon=gtkdiskfree + Terminal=false +-MultipleArgs=false ++X-MultipleArgs=false + Type=Application diff --git a/app-admin/gtkdiskfree/gtkdiskfree-2.0.1-r1.ebuild b/app-admin/gtkdiskfree/gtkdiskfree-2.0.1-r1.ebuild new file mode 100644 index 000000000000..738fcf8e35d7 --- /dev/null +++ b/app-admin/gtkdiskfree/gtkdiskfree-2.0.1-r1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +AUTOTOOLS_AUTORECONF=1 +AUTOTOOLS_IN_SOURCE_BUILD=1 +inherit autotools-utils flag-o-matic + +DESCRIPTION="Graphical tool to show free disk space" +HOMEPAGE="https://gitorious.org/gtkdiskfree" +SRC_URI="mirror://gentoo/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ia64 ~ppc ~ppc64 ~sparc x86" +IUSE="nls" + +RDEPEND="x11-libs/gtk+:3" +DEPEND="${RDEPEND} + virtual/pkgconfig + nls? ( sys-devel/gettext )" + +S="${WORKDIR}/${PN}-master" + +PATCHES=( "${FILESDIR}/${P}-desktop-file.patch" ) + +src_prepare() { + sed -i \ + -e '/^CFLAGS=/s:=" -Wall -O2 :+=" :' \ + configure.in || die "sed on configure.in failed" + + # Fix underlinking, bug #463578 + append-libs -lm + + autotools-utils_src_prepare +} + +src_configure() { + local myeconfargs=( + --without-gtk2 + $(use_enable nls) + ) + autotools-utils_src_configure +} diff --git a/app-admin/gtkdiskfree/metadata.xml b/app-admin/gtkdiskfree/metadata.xml new file mode 100644 index 000000000000..4c8d1bcd9619 --- /dev/null +++ b/app-admin/gtkdiskfree/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>proxy-maintainers</herd> + <maintainer> + <email>samuel.bauer@yahoo.fr</email> + <name>Samuel Bauer</name> + </maintainer> + <maintainer> + <email>xmw@gentoo.org</email> + <name>Michael Weber</name> + </maintainer> + <longdescription> +gtkdiskfree is a gtk extension to the cli tool df, does the same and more +</longdescription> + <upstream> + <remote-id type="gitorious">gtkdiskfree</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/hardening-check/Manifest b/app-admin/hardening-check/Manifest new file mode 100644 index 000000000000..a99be1ee8ce3 --- /dev/null +++ b/app-admin/hardening-check/Manifest @@ -0,0 +1,3 @@ +DIST hardening-wrapper_2.5.tar.gz 21157 SHA256 9ae2cc44d9543476b5b8655b4699af5421218dce44ce0d4a89cf5d81ba12b9bf SHA512 e2c183736e9f1dd1b39ecde7d2bf2c22d4c87c69cb158d98bb527b8325d88ea86bceb6087633cc761e973a22d0cf97c6266464d117e408ed2aee2e67c8ab5565 WHIRLPOOL 652327876a29ad8a69529bcb85b1331a227348a1ca87c1e5cf69fbcea0ad7c57afdcb14536eebfc8668834a701ee80f8579b8851f596e41ee782e4c6dbf47cb9 +DIST hardening-wrapper_2.6.tar.xz 19436 SHA256 c5fc46439646d0929a0605e4f3db67e57eefbbf5ceec5a2888440dbdf4450224 SHA512 924d9d816148bc5f2d25d66fd24c7b2a77fef8d62eb7656d4c9b0ee50c767789f25aaa3b776138103682366ff7c2266be4a207d4b11361655b5097131033283e WHIRLPOOL b74177a5f12984d381f3f9143a03605b157f571edc9ed09cdea2c72920c41aea3b1e5687409539cc087d66dd6a496e6204a1d5f165ce7070849d34b3ee851134 +DIST hardening-wrapper_2.7.tar.xz 19604 SHA256 20c601c6ccac7534d17d4be9442a4ad8f02b8461c2c50dee8b45d596cd6cf8e7 SHA512 834242b28e06f32d6e899f13fcfc66f560e4137267f8cb46fab21337240fec612ea2803345012308af50c0fc4af92f52a28a18803ba330998ad7cb1321023121 WHIRLPOOL ebcee88c6225187b685f0c4792642131a8b9cc3b28fc293348c0cb59a5dc1f484df526f27fb9761204cdefae3d8a99975353a2160ec4fe4ebdea79cd4a8e4dd7 diff --git a/app-admin/hardening-check/hardening-check-2.5.ebuild b/app-admin/hardening-check/hardening-check-2.5.ebuild new file mode 100644 index 000000000000..ff78e06d91b4 --- /dev/null +++ b/app-admin/hardening-check/hardening-check-2.5.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +MY_PN="hardening-wrapper" + +DESCRIPTION="Report the hardening characterists of a set of binaries" +HOMEPAGE="https://wiki.debian.org/Hardening https://packages.debian.org/source/jessie/hardening-wrapper" +SRC_URI="mirror://debian/pool/main/h/${MY_PN}/${MY_PN}_${PV}.tar.gz" + +KEYWORDS="amd64 x86" +IUSE="" +LICENSE="GPL-2+" +SLOT="0" + +DEPEND="" +RDEPEND="" + +S="${WORKDIR}/${MY_PN}" + +src_compile() { :; } + +src_install() { + newbin ${PN}.sh ${PN} +} diff --git a/app-admin/hardening-check/hardening-check-2.6.ebuild b/app-admin/hardening-check/hardening-check-2.6.ebuild new file mode 100644 index 000000000000..9b7c96f3703d --- /dev/null +++ b/app-admin/hardening-check/hardening-check-2.6.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +MY_PN="hardening-wrapper" + +DESCRIPTION="Report the hardening characterists of a set of binaries" +HOMEPAGE="https://wiki.debian.org/Hardening https://packages.debian.org/source/jessie/hardening-wrapper" +SRC_URI="mirror://debian/pool/main/h/${MY_PN}/${MY_PN}_${PV}.tar.xz" + +KEYWORDS="amd64 x86" +IUSE="" +LICENSE="GPL-2+" +SLOT="0" + +DEPEND="" +RDEPEND="" + +S="${WORKDIR}/${MY_PN}" + +src_compile() { :; } + +src_install() { + newbin ${PN}.sh ${PN} + dodoc AUTHORS +} diff --git a/app-admin/hardening-check/hardening-check-2.7.ebuild b/app-admin/hardening-check/hardening-check-2.7.ebuild new file mode 100644 index 000000000000..6ecf5ac6ca3d --- /dev/null +++ b/app-admin/hardening-check/hardening-check-2.7.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +MY_PN="hardening-wrapper" + +DESCRIPTION="Report the hardening characterists of a set of binaries" +HOMEPAGE="https://wiki.debian.org/Hardening https://packages.debian.org/source/jessie/hardening-wrapper" +SRC_URI="mirror://debian/pool/main/h/${MY_PN}/${MY_PN}_${PV}.tar.xz" + +KEYWORDS="~amd64 ~x86" +IUSE="" +LICENSE="GPL-2+" +SLOT="0" + +DEPEND="" +RDEPEND="" + +S="${WORKDIR}/${MY_PN}" + +src_compile() { :; } + +src_install() { + newbin ${PN}.sh ${PN} + dodoc AUTHORS +} diff --git a/app-admin/hardening-check/metadata.xml b/app-admin/hardening-check/metadata.xml new file mode 100644 index 000000000000..2c97c584ed1f --- /dev/null +++ b/app-admin/hardening-check/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> + <email>ago@gentoo.org</email> + <name>Agostino Sarubbo</name> + </maintainer> + <maintainer> + <email>kees@outflux.net</email> + <name>Kees Cook</name> + <description>Upstream - please CC on bugs that concerns upstream</description> + </maintainer> +</pkgmetadata> + diff --git a/app-admin/hardinfo/Manifest b/app-admin/hardinfo/Manifest new file mode 100644 index 000000000000..89929f858ebd --- /dev/null +++ b/app-admin/hardinfo/Manifest @@ -0,0 +1 @@ +DIST hardinfo-0.5.2_pre20130823.tar.xz 280472 SHA256 afebba2f2ff666577f5871bb34f43f8613163b264d3805b42d38bca59905b542 SHA512 e36bd4eec0090461de5fdb6c17dccf76937ee8fa9cb3411068fc568847f519023037999278bbb8b9a24608ed5b1d7fd2bebfe7115c631ccca1c35fa259cb20b1 WHIRLPOOL 416ef939f3747983f0736efb8cf317f19b4eee7489dea7caeff77782922b09b53442a6b08ec44357dfbe39cc552c7757b99365924b7b48ee92d780feffd3242f diff --git a/app-admin/hardinfo/files/hardinfo-0.5.1-makefile.patch b/app-admin/hardinfo/files/hardinfo-0.5.1-makefile.patch new file mode 100644 index 000000000000..d195c358d99b --- /dev/null +++ b/app-admin/hardinfo/files/hardinfo-0.5.1-makefile.patch @@ -0,0 +1,64 @@ +From: Julian Ospald <hasufell@gentoo.org> +Date: Sat May 26 01:30:39 UTC 2012 +Subject: build system + +respect CC and LDFLAGS + +--- Makefile.in ++++ Makefile.in +@@ -1,8 +1,6 @@ + +-CCFLAGS = -fPIC -pipe -Wall -g +-CFLAGS = $(GTK_CFLAGS) $(SOUP_CFLAGS) -I. +-CC = gcc $(ARCHOPTS) -g +-CCSLOW = gcc -O0 -g ++CFLAGS+=-fPIC $(GTK_CFLAGS) $(SOUP_CFLAGS) -I. ++CC?=gcc + + # ---------------------------------------------------------------------------- + +@@ -14,35 +12,35 @@ + MODULES = computer.so devices.so benchmark.so network.so + + all: $(OBJECTS) $(MODULES) +- $(CC) $(CCFLAGS) -o hardinfo -Wl,-export-dynamic $(OBJECTS) $(GTK_LIBS) \ ++ $(CC) $(CFLAGS) $(LDFLAGS) -o hardinfo -Wl,-export-dynamic $(OBJECTS) $(GTK_LIBS) \ + $(SOUP_LIBS) + + md5.o: +- $(CCSLOW) $(CCFLAGS) $(CFLAGS) -c md5.c -o $@ ++ $(CC) $(CFLAGS) -c md5.c -o $@ + + blowfish.o: +- $(CCSLOW) $(CCFLAGS) $(CFLAGS) -c blowfish.c -o $@ ++ $(CC) $(CFLAGS) -c blowfish.c -o $@ + + sha1.o: +- $(CCSLOW) $(CCFLAGS) $(CFLAGS) -c sha1.c -o $@ ++ $(CC) $(CFLAGS) -c sha1.c -o $@ + + fbench.o: +- $(CCSLOW) $(CCFLAGS) $(CFLAGS) -c fbench.c -o $@ ++ $(CC) $(CFLAGS) -c fbench.c -o $@ + + fftbench.o: +- $(CCSLOW) $(CCFLAGS) $(CFLAGS) -c fftbench.c -o $@ ++ $(CC) $(CFLAGS) -c fftbench.c -o $@ + + nqueens.o: +- $(CCSLOW) $(CCFLAGS) $(CFLAGS) -c nqueens.c -o $@ ++ $(CC) $(CFLAGS) -c nqueens.c -o $@ + + benchmark.so: benchmark.c + make $(BENCHMARK_OBJECTS) +- $(CCSLOW) $(CCFLAGS) $(CFLAGS) -o $@ -shared $< $(BENCHMARK_OBJECTS) \ ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ -shared $< $(BENCHMARK_OBJECTS) \ + $(GTK_FLAGS) $(GTK_LIBS) + ln -sf ../$@ modules + + %.so: %.c +- $(CC) $(CCFLAGS) $(CFLAGS) -o $@ -shared $< $(GTK_FLAGS) $(GTK_LIBS) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ -shared $< $(GTK_FLAGS) $(GTK_LIBS) + ln -sf ../$@ modules + + clean: diff --git a/app-admin/hardinfo/files/hardinfo-0.5.2_pre20120527-build.patch b/app-admin/hardinfo/files/hardinfo-0.5.2_pre20120527-build.patch new file mode 100644 index 000000000000..76718a38ebd8 --- /dev/null +++ b/app-admin/hardinfo/files/hardinfo-0.5.2_pre20120527-build.patch @@ -0,0 +1,53 @@ +From: Julian Ospald <hasufell@gentoo.org> +Date: Sat May 26 01:30:39 UTC 2012 +Subject: build system + +use GNUInstallDirs and respect lib suffix + +--- CMakeLists.txt ++++ CMakeLists.txt +@@ -3,6 +3,8 @@ + + set(HARDINFO_VERSION "0.5.2pre") + ++include(GNUInstallDirs) ++ + if(${CMAKE_BUILD_TYPE} MATCHES "Debug") + set(HARDINFO_DEBUG 1) + endif() +@@ -179,8 +181,8 @@ + configure_file(hardinfo.desktop.cmake ${CMAKE_BINARY_DIR}/hardinfo.desktop @ONLY) + + install(TARGETS hardinfo ${HARDINFO_MODULES} +- RUNTIME DESTINATION bin +- LIBRARY DESTINATION lib/hardinfo/modules ++ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} ++ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/hardinfo/modules + PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE + ) + install(FILES ${CMAKE_BINARY_DIR}/hardinfo.desktop +@@ -201,4 +203,4 @@ + PATTERN "*.{hlp,png}" + PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ + ) +- +\ No newline at end of file ++ +--- config.h.cmake ++++ config.h.cmake +@@ -10,7 +10,7 @@ + #define HOSTNAME "" + #define ARCH_@HARDINFO_ARCH@ + +-#define LIBPREFIX "@CMAKE_INSTALL_PREFIX@/lib/hardinfo" ++#define LIBPREFIX "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/hardinfo" + #define PREFIX "@CMAKE_INSTALL_PREFIX@/share/hardinfo" + + #cmakedefine LIBSOUP_FOUND +@@ -32,4 +32,4 @@ + #define ENABLE_BINRELOC 1 + #define HAS_LINUX_WE 1 + +-#endif /* __CONFIG_H__ */ +\ No newline at end of file ++#endif /* __CONFIG_H__ */ diff --git a/app-admin/hardinfo/files/hardinfo-0.5.2_pre20120527-clang.patch b/app-admin/hardinfo/files/hardinfo-0.5.2_pre20120527-clang.patch new file mode 100644 index 000000000000..bc81290b2279 --- /dev/null +++ b/app-admin/hardinfo/files/hardinfo-0.5.2_pre20120527-clang.patch @@ -0,0 +1,24 @@ +https://github.com/lpereira/hardinfo/pull/6 + +--- hardinfo-0.5.2_pre20120527/hardinfo/util.c ++++ hardinfo-0.5.2_pre20120527/hardinfo/util.c +@@ -1368,7 +1368,7 @@ + { + if (G_UNLIKELY(!_moreinfo)) { + DEBUG("moreinfo not initialized"); +- return; ++ return 0; + } + + if (prefix) { +--- hardinfo-0.5.2_pre20120527/CMakeLists.txt ++++ hardinfo-0.5.2_pre20120527/CMakeLists.txt +@@ -43,6 +43,8 @@ + + message(STATUS "Building HardInfo for architecture: ${HARDINFO_OS}-${HARDINFO_ARCH}") + ++add_definitions("-std=gnu89") ++ + include(FindPkgConfig) + pkg_check_modules(GTK REQUIRED gtk+-2.0>=2.10 glib-2.0>=2.10 gthread-2.0>=2.10 gmodule-export-2.0>=2.10) + pkg_check_modules(LIBSOUP libsoup-2.4>=2.24) diff --git a/app-admin/hardinfo/files/hardinfo-0.5.2_pre20120527-underlinking.patch b/app-admin/hardinfo/files/hardinfo-0.5.2_pre20120527-underlinking.patch new file mode 100644 index 000000000000..b726c5055939 --- /dev/null +++ b/app-admin/hardinfo/files/hardinfo-0.5.2_pre20120527-underlinking.patch @@ -0,0 +1,16 @@ +From: Slawomir Nizio <slawomir.nizio@sabayon.org> +Date: Tue May 29 11:52:00 UTC 2012 +Subject: build system + +fix underlinking wrt https://bugs.gentoo.org/show_bug.cgi?id=418121 + +--- CMakeLists.txt ++++ CMakeLists.txt +@@ -171,6 +171,7 @@ + ${GTK_LIBRARIES} + ${LIBSOUP_LIBRARIES} + hardinfo-shell ++ m + ) + target_link_libraries(hardinfo-shell + hardinfo-help-viewer diff --git a/app-admin/hardinfo/hardinfo-0.5.2_pre20130823.ebuild b/app-admin/hardinfo/hardinfo-0.5.2_pre20130823.ebuild new file mode 100644 index 000000000000..988e41a34418 --- /dev/null +++ b/app-admin/hardinfo/hardinfo-0.5.2_pre20130823.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit cmake-utils + +DESCRIPTION="A system information and benchmark tool for Linux systems" +HOMEPAGE="http://hardinfo.berlios.de/" +SRC_URI="http://dev.gentoo.org/~hasufell/distfiles/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND="dev-libs/glib:2 + net-libs/libsoup + x11-libs/gdk-pixbuf + x11-libs/gtk+:2 + x11-libs/pango" +DEPEND="${RDEPEND} + virtual/pkgconfig" diff --git a/app-admin/hardinfo/metadata.xml b/app-admin/hardinfo/metadata.xml new file mode 100644 index 000000000000..91f4e72fb544 --- /dev/null +++ b/app-admin/hardinfo/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/app-admin/haskell-updater/Manifest b/app-admin/haskell-updater/Manifest new file mode 100644 index 000000000000..0b99cad1e8e4 --- /dev/null +++ b/app-admin/haskell-updater/Manifest @@ -0,0 +1,6 @@ +DIST haskell-updater-1.2.1.tar.gz 23932 SHA256 f43e7de3b4dca950d6c9cbcb10507f314813bb4c59bd912f9e7772fdb60c0a2b SHA512 20939e4afb3870b0220c1a814b0f9f9ec0bea1fc2e59891323bdbea41adf8e84bdff15014746d0ab0983ce2a34becf7b5f078a38edf63748c23fe08dcadbcf66 WHIRLPOOL 78b1bfcf4d208c26f163938a2e0ea2810f238cbca07664692175ef7388f4a9c81d49803b2a27c1405c46bc75fcb13430caa00b877a118d28295d1af4d74a0f52 +DIST haskell-updater-1.2.3.tar.gz 24126 SHA256 ceeb713a817fddc0e6e7423f8e15c59f217ec28a79c300433942dc0b88555ad7 SHA512 7913d122e90efc431de9b9c494484a820209f436a72bbfa9288c87dd6fa142c39eb0a90efadf6a1e7e90e7e8b889a5f31eba867dee7eaeca17aaef0fe06abcc2 WHIRLPOOL 9b2f9a7e283956d9bdabcf33fca0bb0c2380a8dee9b8e8fc6b5139665e63845fdf7be3d1a172d128e41444d23a1573d09071911a26edc577fd88e67f29730c16 +DIST haskell-updater-1.2.6.tar.gz 24857 SHA256 74fa71b530e3c88f944d3f4013a4c41c95af5e42ac0ec2ac25716578e1965a9e SHA512 1be777b40fcad2cfdfe461c8bce8ffed0449dbd6bfb665881da1cf763699626d9183a5affbdaba0e8243cf4ce956caab1d54a9c4637d10d1642e8da3764bcedf WHIRLPOOL 0af59cbd5a937cbf7261fd02e6a39bf6006e484532883381fdb6818fe993bb3ae0fd0993b9d32620341872f7e02d9e40e5816f4c97928508128f72dbfc6cc38e +DIST haskell-updater-1.2.7.tar.gz 25065 SHA256 eb00acc19070a3c1ad4d92f9c3ec22ceec8e2a758deb5d05e4a0d64ccef9d271 SHA512 d8f73967fd22182d62c57cf71af18dd123ac6439a5436ba5639f5c9ce2df72e2f3d1382d3f23219ec89848175426df68cf67474d5b7db8194f0c868f9e504f1a WHIRLPOOL a0b118cd8376dd57ef7929cc212c88eedf45909f68d9cbda89da8e97907f7937e6eb90d88516dfa2540d75145b8d88a85dfda65c61e01e77c531030e1253a8c4 +DIST haskell-updater-1.2.8.tar.gz 25192 SHA256 fddc7dcad9bb65fc8b6caef393a6657028dae54b4cf4c37a08ef8da047207776 SHA512 6bfd101c5f6de3b4ddf4a4f485a2a60df218c11778fa8ae9b7245972a666f05aa17c3c093e922233d7f3243a87e3401ff7902d5b8ad7dc43018ac5627458de8d WHIRLPOOL 840284831300581fa2809cd9f1394891ae4381fd1e67c26dfb2938d0be0daf639313ac3b97b1521ed070623ff97ba327cfcc3f2eb02c39dbb74a56e25d83c0e0 +DIST haskell-updater-1.2.9.tar.gz 26675 SHA256 eafc441bad4f15d60c8686c189d6dd49ea9e87bdddf09a24cef2a3eca9eca859 SHA512 d19b6154d5ef4da176638c237082586688e2ac73a41c075fc3e51979b86b9e48ca5a9bfe6c870d468d66d95c1464456feed8afc388aea282aa7aad5a35f5e0da WHIRLPOOL e28c55e9bd2d9033b42fb42e2db6ff2911a2fb50a5d1ad276d6344ca29b4b05abf73d746604ced6766b983d8a7e6e688534be28ba61f0c62f8aca20d9a46c669 diff --git a/app-admin/haskell-updater/haskell-updater-1.2.1.ebuild b/app-admin/haskell-updater/haskell-updater-1.2.1.ebuild new file mode 100644 index 000000000000..77b17dc63d8c --- /dev/null +++ b/app-admin/haskell-updater/haskell-updater-1.2.1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +CABAL_FEATURES="bin nocabaldep" +inherit eutils haskell-cabal + +DESCRIPTION="Rebuild Haskell dependencies in Gentoo" +HOMEPAGE="http://haskell.org/haskellwiki/Gentoo#haskell-updater" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" +IUSE="" + +DEPEND=">=dev-lang/ghc-6.12.1" + +# Need a lower version for portage to get --keep-going +RDEPEND="|| ( >=sys-apps/portage-2.1.6 + sys-apps/pkgcore + sys-apps/paludis )" + +src_prepare() { + if use prefix; then + sed -i -e "s,/var/db/pkg,${EPREFIX}&,g" \ + "${S}/Distribution/Gentoo/Packages.hs" || die + + sed -i -e 's,"/","'"${EPREFIX}"'/",g' \ + "${S}/Distribution/Gentoo/GHC.hs" || die + fi + + # for ghc snapshots (usually come with unstable Cabal API) + cabal_chdeps \ + 'Cabal >= 1.8 && < 1.19' 'Cabal >= 1.8 && < 1.21' \ + 'process < 1.2' 'process < 1.3' +} + +src_configure() { + cabal_src_configure \ + --bindir="${EPREFIX}/usr/sbin" \ + --constraint="Cabal == $(cabal-version)" +} + +src_install() { + cabal_src_install + + dodoc TODO +} diff --git a/app-admin/haskell-updater/haskell-updater-1.2.3.ebuild b/app-admin/haskell-updater/haskell-updater-1.2.3.ebuild new file mode 100644 index 000000000000..15b7da1b59ba --- /dev/null +++ b/app-admin/haskell-updater/haskell-updater-1.2.3.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +CABAL_FEATURES="bin nocabaldep" +inherit eutils haskell-cabal + +DESCRIPTION="Rebuild Haskell dependencies in Gentoo" +HOMEPAGE="http://haskell.org/haskellwiki/Gentoo#haskell-updater" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" +IUSE="" + +DEPEND=">=dev-lang/ghc-6.12.1" + +# Need a lower version for portage to get --keep-going +RDEPEND="|| ( >=sys-apps/portage-2.1.6 + sys-apps/pkgcore + sys-apps/paludis )" + +src_prepare() { + if use prefix; then + sed -i -e "s,/var/db/pkg,${EPREFIX}&,g" \ + "${S}/Distribution/Gentoo/Packages.hs" || die + + sed -i -e 's,"/","'"${EPREFIX}"'/",g' \ + "${S}/Distribution/Gentoo/GHC.hs" || die + fi +} + +src_configure() { + cabal_src_configure \ + --bindir="${EPREFIX}/usr/sbin" \ + --constraint="Cabal == $(cabal-version)" +} + +src_install() { + cabal_src_install + + dodoc TODO +} diff --git a/app-admin/haskell-updater/haskell-updater-1.2.6.ebuild b/app-admin/haskell-updater/haskell-updater-1.2.6.ebuild new file mode 100644 index 000000000000..c3294384161b --- /dev/null +++ b/app-admin/haskell-updater/haskell-updater-1.2.6.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +CABAL_FEATURES="bin nocabaldep" +inherit eutils haskell-cabal + +DESCRIPTION="Rebuild Haskell dependencies in Gentoo" +HOMEPAGE="http://haskell.org/haskellwiki/Gentoo#haskell-updater" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" +IUSE="" + +DEPEND=">=dev-lang/ghc-6.12.1" + +# Need a lower version for portage to get --keep-going +RDEPEND="|| ( >=sys-apps/portage-2.1.6 + sys-apps/pkgcore + sys-apps/paludis )" + +src_prepare() { + if use prefix; then + sed -i -e "s,/var/db/pkg,${EPREFIX}&,g" \ + "${S}/Distribution/Gentoo/Packages.hs" || die + + sed -i -e 's,"/","'"${EPREFIX}"'/",g' \ + "${S}/Distribution/Gentoo/GHC.hs" || die + fi +} + +src_configure() { + cabal_src_configure \ + --bindir="${EPREFIX}/usr/sbin" \ + --constraint="Cabal == $(cabal-version)" +} + +src_install() { + cabal_src_install + + dodoc TODO +} diff --git a/app-admin/haskell-updater/haskell-updater-1.2.7.ebuild b/app-admin/haskell-updater/haskell-updater-1.2.7.ebuild new file mode 100644 index 000000000000..c3294384161b --- /dev/null +++ b/app-admin/haskell-updater/haskell-updater-1.2.7.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +CABAL_FEATURES="bin nocabaldep" +inherit eutils haskell-cabal + +DESCRIPTION="Rebuild Haskell dependencies in Gentoo" +HOMEPAGE="http://haskell.org/haskellwiki/Gentoo#haskell-updater" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" +IUSE="" + +DEPEND=">=dev-lang/ghc-6.12.1" + +# Need a lower version for portage to get --keep-going +RDEPEND="|| ( >=sys-apps/portage-2.1.6 + sys-apps/pkgcore + sys-apps/paludis )" + +src_prepare() { + if use prefix; then + sed -i -e "s,/var/db/pkg,${EPREFIX}&,g" \ + "${S}/Distribution/Gentoo/Packages.hs" || die + + sed -i -e 's,"/","'"${EPREFIX}"'/",g' \ + "${S}/Distribution/Gentoo/GHC.hs" || die + fi +} + +src_configure() { + cabal_src_configure \ + --bindir="${EPREFIX}/usr/sbin" \ + --constraint="Cabal == $(cabal-version)" +} + +src_install() { + cabal_src_install + + dodoc TODO +} diff --git a/app-admin/haskell-updater/haskell-updater-1.2.8.ebuild b/app-admin/haskell-updater/haskell-updater-1.2.8.ebuild new file mode 100644 index 000000000000..c3294384161b --- /dev/null +++ b/app-admin/haskell-updater/haskell-updater-1.2.8.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +CABAL_FEATURES="bin nocabaldep" +inherit eutils haskell-cabal + +DESCRIPTION="Rebuild Haskell dependencies in Gentoo" +HOMEPAGE="http://haskell.org/haskellwiki/Gentoo#haskell-updater" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" +IUSE="" + +DEPEND=">=dev-lang/ghc-6.12.1" + +# Need a lower version for portage to get --keep-going +RDEPEND="|| ( >=sys-apps/portage-2.1.6 + sys-apps/pkgcore + sys-apps/paludis )" + +src_prepare() { + if use prefix; then + sed -i -e "s,/var/db/pkg,${EPREFIX}&,g" \ + "${S}/Distribution/Gentoo/Packages.hs" || die + + sed -i -e 's,"/","'"${EPREFIX}"'/",g' \ + "${S}/Distribution/Gentoo/GHC.hs" || die + fi +} + +src_configure() { + cabal_src_configure \ + --bindir="${EPREFIX}/usr/sbin" \ + --constraint="Cabal == $(cabal-version)" +} + +src_install() { + cabal_src_install + + dodoc TODO +} diff --git a/app-admin/haskell-updater/haskell-updater-1.2.9.ebuild b/app-admin/haskell-updater/haskell-updater-1.2.9.ebuild new file mode 100644 index 000000000000..c3294384161b --- /dev/null +++ b/app-admin/haskell-updater/haskell-updater-1.2.9.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +CABAL_FEATURES="bin nocabaldep" +inherit eutils haskell-cabal + +DESCRIPTION="Rebuild Haskell dependencies in Gentoo" +HOMEPAGE="http://haskell.org/haskellwiki/Gentoo#haskell-updater" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" +IUSE="" + +DEPEND=">=dev-lang/ghc-6.12.1" + +# Need a lower version for portage to get --keep-going +RDEPEND="|| ( >=sys-apps/portage-2.1.6 + sys-apps/pkgcore + sys-apps/paludis )" + +src_prepare() { + if use prefix; then + sed -i -e "s,/var/db/pkg,${EPREFIX}&,g" \ + "${S}/Distribution/Gentoo/Packages.hs" || die + + sed -i -e 's,"/","'"${EPREFIX}"'/",g' \ + "${S}/Distribution/Gentoo/GHC.hs" || die + fi +} + +src_configure() { + cabal_src_configure \ + --bindir="${EPREFIX}/usr/sbin" \ + --constraint="Cabal == $(cabal-version)" +} + +src_install() { + cabal_src_install + + dodoc TODO +} diff --git a/app-admin/haskell-updater/metadata.xml b/app-admin/haskell-updater/metadata.xml new file mode 100644 index 000000000000..ddb2b453cd1f --- /dev/null +++ b/app-admin/haskell-updater/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>haskell</herd> +</pkgmetadata> diff --git a/app-admin/hddtemp/Manifest b/app-admin/hddtemp/Manifest new file mode 100644 index 000000000000..47640e8f0d8c --- /dev/null +++ b/app-admin/hddtemp/Manifest @@ -0,0 +1,2 @@ +DIST hddtemp-0.3-beta15.tar.bz2 256372 SHA256 618541584054093d53be8a2d9e81c97174f30f00af91cb8700a97e442d79ef5b SHA512 7db5a3dff60c59ce147b996ea4f8b6de1abcd34301bb863507b4d4b44e72fdc031078867a7f37161e67e74f6b426a1d856d3081179c678d2a442815bb0faa94d WHIRLPOOL 2ce6a2336737e8cbb409443b874c6767c753fbe4bb700540f9a545e69cd951d3de5743d5b26bcd3a3f8e007b1364273ec85d15da8a00968895def063aaac7705 +DIST hddtemp-20080531.db.bz2 5627 SHA256 6a12bb68283c3224bef2ab086ae810b3f6b17b38f8203350acb3a73e21a6dfbd SHA512 cd03cc300aece4f7427fde1b58840643c8e41e6c0ce30b418a62bf44b268f249ef3dc4f5f4bcbc9cc0cfe0346c18d4f1da22451c87efc3d46faebcb81a1fe059 WHIRLPOOL 7443366204127c0831ce78a5dfd3506ff82a6c79a7daf75cc79e6bba6aad0357f7092c03e792e2e4ee31c2b47a8d8a15456e7b2c176d3a1c6b4633486f450666 diff --git a/app-admin/hddtemp/files/hddgentoo.db b/app-admin/hddtemp/files/hddgentoo.db new file mode 100644 index 000000000000..503421568d35 --- /dev/null +++ b/app-admin/hddtemp/files/hddgentoo.db @@ -0,0 +1,236 @@ +############################################# +############# Misc drives, added by Gentoo +############################################# + +"ST9160821AS" 194 C "Seagate ST9160821AS" +"ST3400620A" 194 C "Seagate Barracuda 7200.10 ST3400620A" +"MAXTOR STM3160212A" 194 C "Maxtor STM3160212A" +"WDC WD2500JS-23MHB0" 194 C "Western Digital 250GB, 8MB cache" +"WDC WD740ADFD-00NLR1" 194 C "Western Digital SATA Raptor 74GB 16MB" +"ST3320620AS" 194 C "Seagate ST3320620AS" +"WDC WD3200AAKS-00SBA0" 194 C "Western Digital WD3200AAKS-00SBA0" +"ST3120813AS" 194 C "Seagate ST3120813AS" +"ST3250620AS" 194 C "Seagate ST3250620AS" +"ST3808110AS" 194 C "Seagate Barracuda 7200.9 SATA2 80GB 8MB" +"ST3250824AS" 194 C "Seagate Barracuda 7200.9 SATA2 250GB 8MB" +"ST3250310AS" 194 C "Seagate Barracuda 7200.10 SATA 250GB 8MB" +"ST3500320AS" 194 C "Seagate Barracuda 7200.11 SATA 500GB 32MB" +"ST3320613AS" 194 C "Seagate Barracuda 7200.11 SATA 320GB 16MB" +"ST3500320AS" 194 C "Seagate Barracuda 7200.11 SATA 500GB 32MB" +"ST3500620AS" 194 C "Seagate Barracuda 7200.11 SATA 500GB 16MB" +"ST3640323AS" 194 C "Seagate Barracuda 7200.11 SATA 64GB 32MB" +"ST3750330AS" 194 C "Seagate Barracuda 7200.11 SATA 750GB 32MB" +"ST3750630AS" 194 C "Seagate Barracuda 7200.11 SATA 750GB 16MB" +"ST31000340AS" 194 C "Seagate Barracuda 7200.11 SATA 1000GB 32MB" +"SAMSUNG HD403LJ" 194 C "Samsung HD403LJ" +"ST3320620NS" 194 C "Seagate 320GB 7200rpm 16MB SATAII" +"FUJITSU MHZ2250BJ FFS G2" 194 C "FUJITSU MHZ2250BJ FFS G2" +"ST3500630A" 194 C "Seagate Barracuda 7200.10 PATA 500GB 16MB" +"WDC WD740ADFD-00NLR5" 194 C "Western Digital SATA Raptor 74GB 16MB" +"Hitachi HDP725032GLA360" 194 C "Hitachi Deskstar P7K500 - 320GB 7200RPM 16MB SATA II" +"Hitachi HDT721050SLA360" 194 C "Hitachi Deskstar 7K1000.B - 500GB 7200RPM 16MB SATA II" +"Hitachi HDT725025VLAT80" 194 C "Hitachi Deskstar T7K500 - 250GB 7200RPM 8MB PATA" +"SAMSUNG HD322HJ" 194 C "Samsung HD322HJ 320GB 7200RPM 16MB SATA" +"WDC WD2500BEVS-75UST0" 194 C "Western Digital WD2500BEVS-75UST0 - 250GB 5400RPM SATA" +"SAMSUNG HD103UJ" 194 C "Samsung Spinpoint F1 1000GB 32MB" +"SAMSUNG HD103SJ" 194 C "Samsung Spinpoint F3 1000GB 32MB" +"ST9250421ASG" 194 C "Seagate Momentus 7200.3 SATA 250GB 16MB" +"SAMSUNG HD401LJ" 194 C "SAMSUNG SpinPoint T133 series, 400GB" +"SAMSUNG HD753LJ" 194 C "SAMSUNG F1 series, 750 GB" +"SAMSUNG HD103SI" 194 C "Samsung Spinpoint F2 EcoGreen 1TB 5400RPM" +"WDC WD7500AACS-00ZJB0" 194 C "Western Digital Caviar Green 750 GB" +"WDC WD1002FAEX-00Z3A0" 194 C "Western Digital Caviar Black 1 TB" +"ST31500341AS" 194 C "Seagate Barracuda 7200.11 1500GB SATA2 7200RPM 32MB" +"ST31500541AS" 194 C "Seagate Barracuda Green 1500GB SATA2 5900RPM 32MB" +"SAMSUNG HD502IJ" 194 C "Samsung HD502IJ" +"Hitachi HTS545050B9SA00" 194 C "Hitachi Travelstar 500GB, SATA150, 2.5, 5400RPM, NCQ, 7MB Cache" +"ST3500418AS" 194 C "Seagate Barracuda 7200.12 SATA 500GB 16MB" +"ST9500420AS" 194 C "Seagate Momentus 7200.4 SATA 500GB 16MB" +"WDC WD5000AAKS-00A7B0" 194 C "Western Digital WD5000AAKS-00A7B0" +"ST9320325AS" 194 C "Seagate Momentus 5400.6 SATA 320GB 8MB" +"MAXTOR STM3250310AS" 194 C "Seagate DiamondMax 21 SATA 250GB" +"FUJITSU MHT2080AT PL" 194 C "Fujitsu MHT2080AT PL IDE/ATA 80GB" +"FUJITSU MHV2120AH" 194 C "FUJITSU MHV2120AH" +"WDC WD2001FASS-00W2B0" 194 C "Western Digital Caviar Black WD2001FASS" +"WDC WD1000BB-00CAA1" 0 C "Western Digital Caviar WD1000BB" +"WDC WD5000AADS-00S9B0" 194 C "Western Digital Caviar GP 500GB 32MB" +"WDC WD5000AVDS-63U7B0" 194 C "Western Digital Caviar AV GP 500GB 32MB" +"WDC WD5000AVJB-63YUA0" 194 C "Western Digital Caviar AV 500GB 8MB" +"WDC WD20EVDS-63T3B0" 194 C "Western Digital Caviar AV GP 2TB 32MB" +"WDC WD20EURS-63S48Y0" 194 C "Western Digital Caviar AV GP 2TB 64MB" +"WDC WD3202ABYS-02B7A0" 194 C "Western Digital Caviar WD3202ABYS" +"FUJITSU MHY2200BH" 194 C "FUJITSU MHY2200BH" +"ST3320418AS" 194 C "Seagate Barracuda 7200.12 SATA 320GB" +"TOSHIBA MK7559GSXP" 194 C "Toshiba MK7559GSXP" +"OCZ-VERTEX2" 194 C "OCZ Vertex 2" +"SAMSUNG HD204UI" 194 C "Samsung Spinpoint F4EG 2TB SATA2 5400RPM 32MB" +"SAMSUNG HD154UI" 194 C "Samsung Spinpoint F2EG 1.5TB SATA2 5400RPM 32MB" +"WDC WD10EADS-00M2B0" 194 C "Western Digital Caviar Green 1TB SATA2 5400RPM 32MB" +"WDC WD20EARS-00S8B1" 194 C "Western Digital Caviar Green 2TB SATA2 IntelliPower 64MB" +"WDC WD3200BEKT-00F3T0" 194 C "Western Digital Scorpio Black 320GB SATA2 7200RPM 16MB" +"WDC WD3200BEKT-75A25T0" 194 C "Western Digital Scorpio Black 320GB SATA2 7200RPM 16MB" +"WDC WD6400AACS-00M3B0" 194 C "Western Digital Caviar Green 640GB SATA2 7200RPM 16MB" +"WDC WD5000AADS" 194 C "Western Digital Caviar Green 500GB SATA2 IntelliPower 32MB" +"WDC WD7500AARX" 194 C "Western Digital Caviar Green 750GB SATA3 IntelliPower 64MB" +"WDC WD3200AZDX" 194 C "Western Digital Caviar Green 320GB SATA3 IntelliPower 32MB" +"WDC WD5000AZDX" 194 C "Western Digital Caviar Green 500GB SATA3 IntelliPower 32MB" +"WDC WD5000AZRX-00A8LB0" 194 C "Western Digital Caviar Green 500GB SATA3 IntelliPower 64MB" +"WDC WD7500AZRX" 194 C "Western Digital Caviar Green 750GB SATA3 IntelliPower 64MB" +"WDC WD10EARS" 194 C "Western Digital Caviar Green 1TB SATA2 IntelliPower 64MB" +"WDC WD15EARS" 194 C "Western Digital Caviar Green 1.5TB SATA2 IntelliPower 64MB" +"WDC WD20EARS" 194 C "Western Digital Caviar Green 2TB SATA2 IntelliPower 64MB" +"WDC WD10EZRX" 194 C "Western Digital Caviar Green 1TB SATA3 IntelliPower 64MB" +"WDC WD25EZRX" 194 C "Western Digital Caviar Green 2.5TB SATA3 IntelliPower 64MB" +"WDC WD30EZRX" 194 C "Western Digital Caviar Green 3TB SATA3 IntelliPower 64MB" +"WDC WD10EARX" 194 C "Western Digital Caviar Green 1TB SATA3 IntelliPower 64MB" +"WDC WD15EARX" 194 C "Western Digital Caviar Green 1.5TB SATA3 IntelliPower 64MB" +"WDC WD20EARX" 194 C "Western Digital Caviar Green 2TB SATA3 IntelliPower 64MB" +"WDC WD7500AADS-11M2B1" 194 C "Western Digital Caviar Green 750GB SATA2 IntelliPower 32MB" +"WDC WD3200AABB" 194 C "Western Digital Caviar Blue 320GB PATA 7200RPM 2MB" +"WDC WD3200BB" 194 C "Western Digital Caviar Blue 320GB PATA 7200RPM 2MB" +"WDC WD3000BB" 194 C "Western Digital Caviar Blue 300GB PATA 7200RPM 2MB" +"WDC WD2500AABB" 194 C "Western Digital Caviar Blue 250GB PATA 7200RPM 2MB" +"WDC WD2500BB" 194 C "Western Digital Caviar Blue 250GB PATA 7200RPM 2MB" +"WDC WD2500LB" 194 C "Western Digital Caviar Blue 250GB PATA 7200RPM 2MB" +"WDC WD2000BB" 194 C "Western Digital Caviar Blue 200GB PATA 7200RPM 2MB" +"WDC WD2000LB" 194 C "Western Digital Caviar Blue 200GB PATA 7200RPM 2MB" +"WDC WD1800BB" 194 C "Western Digital Caviar Blue 180GB PATA 7200RPM 2MB" +"WDC WD1750BB" 194 C "Western Digital Caviar Blue 180GB PATA 7200RPM 2MB" +"WDC WD1600AABB" 194 C "Western Digital Caviar Blue 160GB PATA 7200RPM 2MB" +"WDC WD1600BB" 194 C "Western Digital Caviar Blue 160GB PATA 7200RPM 2MB" +"WDC WD1200BB" 194 C "Western Digital Caviar Blue 120GB PATA 7200RPM 2MB" +"WDC WD1200LB" 194 C "Western Digital Caviar Blue 120GB PATA 7200RPM 2MB" +"WDC WD1000BB" 194 C "Western Digital Caviar Blue 100GB PATA 7200RPM 2MB" +"WDC WD800BB" 194 C "Western Digital Caviar Blue 80GB PATA 7200RPM 2MB" +"WDC WD800BB-00JHC0" 194 C "Western Digital Caviar Blue 80GB PATA 7200RPM 2MB" +"WDC WD800LB" 194 C "Western Digital Caviar Blue 80GB PATA 7200RPM 2MB" +"WDC WD800PB" 194 C "Western Digital Caviar Blue 80GB PATA 7200RPM 2MB" +"WDC WD600BB" 194 C "Western Digital Caviar Blue 60GB PATA 7200RPM 2MB" +"WDC WD400BB" 194 C "Western Digital Caviar Blue 40GB PATA 7200RPM 2MB" +"WDC WD400LB" 194 C "Western Digital Caviar Blue 40GB PATA 7200RPM 2MB" +"WDC WD300BB" 194 C "Western Digital Caviar Blue 30GB PATA 7200RPM 2MB" +"WDC WD200BB" 194 C "Western Digital Caviar Blue 20GB PATA 7200RPM 2MB" +"WDC WD100BB" 194 C "Western Digital Caviar Blue 10GB PATA 7200RPM 2MB" +"WDC WD5000AAKB" 194 C "Western Digital Caviar Blue 500GB PATA 7200RPM 16MB" +"WDC WD5000AAJB" 194 C "Western Digital Caviar Blue 500GB PATA 7200RPM 8MB" +"WDC WD5000JB" 194 C "Western Digital Caviar Blue 500GB PATA 7200RPM 8MB" +"WDC WD4000AAKB" 194 C "Western Digital Caviar Blue 400GB PATA 7200RPM 16MB" +"WDC WD4000AAJB" 194 C "Western Digital Caviar Blue 400GB PATA 7200RPM 8MB" +"WDC WD4000JB" 194 C "Western Digital Caviar Blue 400GB PATA 7200RPM 8MB" +"WDC WD3200AAKB" 194 C "Western Digital Caviar Blue 320GB PATA 7200RPM 16MB" +"WDC WD3200AAJB" 194 C "Western Digital Caviar Blue 320GB PATA 7200RPM 8MB" +"WDC WD3200JB" 194 C "Western Digital Caviar Blue 320GB PATA 7200RPM 8MB" +"WDC WD3000JB" 194 C "Western Digital Caviar Blue 300GB PATA 7200RPM 8MB" +"WDC WD2500AAKB" 194 C "Western Digital Caviar Blue 250GB PATA 7200RPM 16MB" +"WDC WD2500AAJB" 194 C "Western Digital Caviar Blue 250GB PATA 7200RPM 8MB" +"WDC WD2500JB" 194 C "Western Digital Caviar Blue 250GB PATA 7200RPM 8MB" +"WDC WD2500PB" 194 C "Western Digital Caviar Blue 250GB PATA 7200RPM 8MB" +"WDC WD2000JB" 194 C "Western Digital Caviar Blue 200GB PATA 7200RPM 8MB" +"WDC WD2000PB" 194 C "Western Digital Caviar Blue 200GB PATA 7200RPM 8MB" +"WDC WD1800JB" 194 C "Western Digital Caviar Blue 180GB PATA 7200RPM 8MB" +"WDC WD1600AAJB" 194 C "Western Digital Caviar Blue 160GB PATA 7200RPM 8MB" +"WDC WD1600JB" 194 C "Western Digital Caviar Blue 160GB PATA 7200RPM 8MB" +"WDC WD1200JB" 194 C "Western Digital Caviar Blue 120GB PATA 7200RPM 8MB" +"WDC WD1200PB" 194 C "Western Digital Caviar Blue 120GB PATA 7200RPM 8MB" +"WDC WD1000JB" 194 C "Western Digital Caviar Blue 100GB PATA 7200RPM 8MB" +"WDC WD800JB" 194 C "Western Digital Caviar Blue 80GB PATA 7200RPM 8MB" +"WDC WD600JB" 194 C "Western Digital Caviar Blue 60GB PATA 7200RPM 8MB" +"WDC WD400JB" 194 C "Western Digital Caviar Blue 40GB PATA 7200RPM 8MB" +"WDC WD2002FAEX" 194 C "Western Digital Caviar Black 2TB SATA3 7200RPM 64MB" +"WDC WD1502FAEX" 194 C "Western Digital Caviar Black 1.5TB SATA3 7200RPM 64MB" +"WDC WD1002FAEX" 194 C "Western Digital Caviar Black 1TB SATA3 7200RPM 64MB" +"WDC WD7502AAEX" 194 C "Western Digital Caviar Black 750GB SATA3 7200RPM 64MB" +"WDC WD6402AAEX" 194 C "Western Digital Caviar Black 640GB SATA3 7200RPM 64MB" +"WDC WD5002AALX" 194 C "Western Digital Caviar Black 500GB SATA3 7200RPM 32MB" +"WDC WD2001FASS" 194 C "Western Digital Caviar Black 2TB SATA2 7200RPM 64MB" +"WDC WD1001FALS" 194 C "Western Digital Caviar Black 1TB SATA2 7200RPM 32MB" +"WDC WD7501AALS" 194 C "Western Digital Caviar Black 750GB SATA2 7200RPM 32MB" +"WDC WD6401AALS" 194 C "Western Digital Caviar Black 640GB SATA2 7200RPM 32MB" +"WDC WD5001AALS" 194 C "Western Digital Caviar Black 500GB SATA2 7200RPM 32MB" +"WDC WD10EALX" 194 C "Western Digital Caviar Blue 1TB SATA3 7200RPM 32MB" +"WDC WD7500AALX" 194 C "Western Digital Caviar Blue 750GB SATA3 7200RPM 32MB" +"WDC WD5000AAKX" 194 C "Western Digital Caviar Blue 500GB SATA3 7200RPM 16MB" +"WDC WD3200AAKX" 194 C "Western Digital Caviar Blue 320GB SATA3 7200RPM 16MB" +"WDC WD2500AAKX" 194 C "Western Digital Caviar Blue 250GB SATA3 7200RPM 16MB" +"WDC WD10EALS" 194 C "Western Digital Caviar Blue 1TB SATA2 7200RPM 32MB" +"WDC WD6400AAKS" 194 C "Western Digital Caviar Blue 640GB SATA2 7200RPM 16MB" +"WDC WD5000AAKS" 194 C "Western Digital Caviar Blue 500GB SATA2 7200RPM 16MB" +"WDC WD3200AAKS" 194 C "Western Digital Caviar Blue 320GB SATA2 7200RPM 16MB" +"WDC WD2500AAKS" 194 C "Western Digital Caviar Blue 250GB SATA2 7200RPM 16MB" +"WDC WD2500AAKS-00VSA0" 194 C "Western Digital Caviar Blue 250GB SATA2 7200RPM 16MB" +"WDC WD3200AAJS" 194 C "Western Digital Caviar Blue 320GB SATA2 7200RPM 8MB" +"WDC WD2500AAJS" 194 C "Western Digital Caviar Blue 250GB SATA2 7200RPM 8MB" +"WDC WD1600AAJS" 194 C "Western Digital Caviar Blue 160GB SATA2 7200RPM 8MB" +"WDC WD800AAJS" 194 C "Western Digital Caviar Blue 80GB SATA2 7200RPM 8MB" +"WDC WD10JPVT" 194 C "1TB SATA2 5400RPM 8MB" +"WDC WD10TPVT" 194 C "1TB SATA2 5200RPM 8MB" +"WDC WD7500BPVT" 194 C "750GB SATA2 5400RPM 8MB" +"WDC WD6400BPVT" 194 C "640GB SATA2 5400RPM 8MB" +"WDC WD5000BPVT" 194 C "500GB SATA2 5400RPM 8MB" +"WDC WD3200BPVT" 194 C "320GB SATA2 5400RPM 8MB" +"WDC WD2500BPVT" 194 C "250GB SATA2 5400RPM 8MB" +"WDC WD3200BEVE" 194 C "320GB PATA6 5400RPM 8MB" +"WDC WD2500BEVE" 194 C "250GB PATA6 5400RPM 8MB" +"WDC WD1600BEVE" 194 C "160GB PATA6 5400RPM 8MB" +"WDC WD1200BEVE" 194 C "120GB PATA6 5400RPM 8MB" +"WDC WD800BEVE" 194 C "80GB PATA6 5400RPM 8MB" +"WDC WD5000LPVT" 194 C "500GB SATA2 5400RPM 8MB" +"WDC WD3200LPVT" 194 C "320GB SATA2 5400RPM 8MB" +"WDC WD2500LPVT" 194 C "250GB SATA2 5400RPM 8MB" +"ST320LT007-9ZV142" 194 C "Seagate 320GB SATA2 7200RPM 16MB" +"ST250DM000" 194 C "Seagate Barracuda 7200.14 250GB SATA3 7200RPM 16MB" +"ST320DM000" 194 C "Seagate Barracuda 7200.14 320GB SATA3 7200RPM 16MB" +"ST500DM002" 194 C "Seagate Barracuda 7200.14 500GB SATA3 7200RPM 16MB" +"ST750DM003" 194 C "Seagate Barracuda 7200.14 750GB SATA3 7200RPM 64MB" +"ST1000DM003" 194 C "Seagate Barracuda 7200.14 1TB SATA3 7200RPM 64MB" +"ST1500DM003" 194 C "Seagate Barracuda 7200.14 1.5TB SATA3 7200RPM 64MB" +"ST2000DM001" 194 C "Seagate Barracuda 7200.14 2TB SATA3 7200RPM 64MB" +"ST3000DM001" 194 C "Seagate Barracuda 7200.14 3TB SATA3 7200RPM 64MB" +"ST32000641AS" 194 C "Seagate Barracuda XT ST32000641AS 2TB SATA3 7200RPM 64MB" +"Hitachi HTS725050A9A364" 190 C "Hitachi Travelstar 7K500 500GB SATA2 7200RPM 16MB" +"HTE721080G9AT00" 194 C "Hitachi Travelstar E7K100 80GB PATA6 7200RPM 8MB" +"ST9250315AS" 194 C "Seagate Momentus 5400.6 250GB SATA2 5400RPM 8MB" +"ST9750420AS" 194 C "Seagate Momentus 7200.4 750GB SATA2 7200RPM 16MB" +"ST9500423AS" 194 C "Seagate Momentus 7200.4 500GB SATA2 7200RPM 16MB" +"TOSHIBA MK3252GSX" 194 C "Toshiba MK3252GSX" +"SAMSUNG HM160HC" 194 C "Samsung HM160HC" +"WDC WD1003FBYX-01Y7B1" 194 C "Western Digital RE4 1TB SATA2 7200RPM 64MB" +"WDC WD3003FZEX-00Z4SA0" 194 C "Western Digital Caviar Black 3TB SATA3 7200RPM 64MB" +"TOSHIBA DT01ACA050" 194 C "Toshiba 500GB SATA3 7200RPM 32MB" +"WDC WD10JFCX-68N6GN0" 194 C "Western Digital Red 1TB SATA3 IntelliPower 64MB" +"WDC WD40EFRX" 194 C "Western Digital Red 4TB SATA3 IntelliPower 64MB" +"WDC WD40EZRX" 194 C "Western Digital Green 4TB SATA3 IntelliPower 64MB" +"WDC WD20EARS" 194 C "Western Digital Green 2TB SATA2 IntelliPower 64MB" +"WDC WD5000BEVT" 194 C "Western Digital Scorpio Blue 500GB SATA2 5400RPM 8MB" +"WDC WD5000BPKT-00PK4T0" 194 C "Western Digital Scorpio Black 500GB SATA2 7200RPM 16MB" +"SanDisk SD6SB1M256G1022I" 194 C "Sandisk SSD X110 256GB" +"Hitachi HTS542512K9SA00" 194 C "Hitachi Travelstar 5K250 120GB SATA2 5400RPM 8MB" +"Hitachi HTS542516K9SA00" 194 C "Hitachi Travelstar 5K250 160GB SATA2 5400RPM 8MB" +"Hitachi HDS721680PLA380" 194 C "Hitachi Deskstar 7K160 80GB SATA2 7200RPM 8MB" +"ST9120822AS" 194 C "Seagate Momentus 5400.3 120GB SATA 5400RPM 8MB" +"ST32000542AS" 194 C "Seagate Barracuda LP 2000GB SATA2 5900RPM 32MB" +"ST2000DL003-9VT166" 194 C "Seagate Barracuda LP 2000GB SATA3 5900RPM 64MB" +"ST4000VN000-1H4168" 194 C "Seagate NAS HDD 4TB SATA3 64MB" +"Hitachi HTS545050B9A300" 194 C "Hitachi Travelstar 500GB SATA2 2.5 5400RPM 8MB" +"ST9500325AS" 194 C "Seagate Momentus 5400.6 500GB SATA2 5400RPM 8MB" +"WDC WD30EFRX-68AX9N0" 194 C "Western Digital Red 3TB SATA3 64MB" +"Toshiba DT01ACA300" 194 C "Toshiba DT01ACA300 3TB SATA3 7200RPM 64MB" +"TOSHIBA DT01ACA300" 194 C "Toshiba DT01ACA300 3TB SATA3 7200RPM 64MB" +"Samsung SSD 840 Series" 190 C "Samsung SSD 840 Series" +"Samsung SSD 840 PRO Serise" 190 C "Samsung SSD 840 Pro Series" +"Samsung SSD 840 EVO" 190 C "Samsung SSD 840 EVO Series" +"SAMSUNG HD203WI" 194 C "Samsung SpinPoint F3 EcoGreen 2TB SATA2 5400RPM 32MB" +"SAMSUNG SSD 830 Series" 190 C "Samsung SSD 830 Series" +"SanDisk SDSSDH2128G" 194 C "Sandisk SSD Ultra Plus 128GB" +"SanDisk SDSSDH2256G" 194 C "Sandisk SSD Ultra Plus 256GB" +"OCZ-VERTEX3" 194 C "OCZ Vertex 3 120GB SATA3" +"Crucial_CT240M500SSD3" 194 C "Crucial M500 240GB SATA3 256MB" +"WDC WD5003ABYX-01WERA2" 194 C "Western Digital RE4 500GB" +"WDC WD5002ABYS-02B1B0" 194 C "Western Digital RE3 500GB" +"WDC WD20EZRX" 194 C "Western Digital Green 2TB" +"ST4000DM000" 194 C "Seagate Desktop 4TB" +"STM3160815AS" 194 C "Maxtor DiamondMax 21 - 160GB - 8MB Cache SATA" +"6G160E0" 194 C "Maxtor DiamondMax 17 - 160GB - 8MB Cache SATA" +"WDC WD7500BFCX-68N6GN0" 194 C "Western Digital Red 750GB SATA" +"Hitachi HTS547575A9E384" 190 C "Hitachi Travelstar 5K750 750GB SATA2 5400RPM 8MB" +"WDC WD30PURX-64P6ZY0" 194 C "Western Digital Purple 3TB 64MB Cache" diff --git a/app-admin/hddtemp/files/hddtemp-0.3_beta15-byteswap.patch b/app-admin/hddtemp/files/hddtemp-0.3_beta15-byteswap.patch new file mode 100644 index 000000000000..7b0dddc2ae47 --- /dev/null +++ b/app-admin/hddtemp/files/hddtemp-0.3_beta15-byteswap.patch @@ -0,0 +1,28 @@ +diff -Nuar --exclude '*~' hddtemp-0.3-beta15.orig/src/sata.c hddtemp-0.3-beta15/src/sata.c +--- hddtemp-0.3-beta15.orig/src/sata.c 2006-05-14 02:09:55.579437498 -0700 ++++ hddtemp-0.3-beta15/src/sata.c 2006-05-14 02:06:08.495948437 -0700 +@@ -88,7 +88,9 @@ + return strdup(_("unknown")); + else + { ++ //fprintf(stderr,"sata_model1=%s\n",identify + 54); + sata_fixstring(identify + 54, 24); ++ //fprintf(stderr,"sata_model2=%s\n",identify + 54); + return strdup(identify + 54); + } + } +diff -Nuar --exclude '*~' hddtemp-0.3-beta15.orig/src/satacmds.c hddtemp-0.3-beta15/src/satacmds.c +--- hddtemp-0.3-beta15.orig/src/satacmds.c 2006-05-14 02:09:40.983470339 -0700 ++++ hddtemp-0.3-beta15/src/satacmds.c 2006-05-14 02:09:02.319557333 -0700 +@@ -98,7 +98,10 @@ + /* convert from big-endian to host byte order */ + for (p = end ; p != s;) { + unsigned short *pp = (unsigned short *) (p -= 2); +- *pp = ntohs(*pp); ++ char tmp = p[0]; ++ p[0] = p[1]; ++ p[1] = tmp; ++ //*pp = ntohs(*pp); + } + + /* strip leading blanks */ diff --git a/app-admin/hddtemp/files/hddtemp-0.3_beta15-dontwake.patch b/app-admin/hddtemp/files/hddtemp-0.3_beta15-dontwake.patch new file mode 100644 index 000000000000..969da7a70e40 --- /dev/null +++ b/app-admin/hddtemp/files/hddtemp-0.3_beta15-dontwake.patch @@ -0,0 +1,20 @@ +--- hddtemp-0.3-beta15/src/sata.c 2012-07-01 16:35:01.681708074 +0200 ++++ hddtemp-0.3-beta15/src/sata.c 2012-07-01 16:33:58.172109699 +0200 +@@ -125,6 +125,17 @@ + dsk->fd = -1; + return GETTEMP_NOSENSOR; + } ++ ++ switch(ata_get_powermode(dsk->fd)) { ++ case PWM_STANDBY: ++ case PWM_SLEEPING: ++ if (!wakeup) ++ return GETTEMP_DRIVE_SLEEP; ++ case PWM_UNKNOWN: ++ case PWM_ACTIVE: /* active or idle */ ++ default: ++ break; ++ } + + /* get SMART values */ + if(sata_enable_smart(dsk->fd) != 0) { diff --git a/app-admin/hddtemp/files/hddtemp-0.3_beta15-execinfo.patch b/app-admin/hddtemp/files/hddtemp-0.3_beta15-execinfo.patch new file mode 100644 index 000000000000..1e7239535d4d --- /dev/null +++ b/app-admin/hddtemp/files/hddtemp-0.3_beta15-execinfo.patch @@ -0,0 +1,21 @@ +--- hddtemp-0.3-beta15/configure.in~ 2005-10-17 19:14:19 +0000 ++++ hddtemp-0.3-beta15/configure.in 2006-12-11 18:23:22 +0000 +@@ -18,6 +18,7 @@ + AC_HEADER_STDC + AC_CHECK_HEADERS(fcntl.h) + AC_CHECK_HEADERS(netinet/in.h) ++AC_CHECK_HEADERS(execinfo.h) + AC_CHECK_TYPE(in_addr_t, ,[AC_DEFINE_UNQUOTED([in_addr_t], [uint32_t], [Define to 'uint32_t' if <netinet/in.h> does not define.])], [#include <netinet/in.h>]) + + # Checks for typedefs, structures, and compiler characteristics. +--- hddtemp-0.3-beta15/src/backtrace.c-orig 2006-12-11 18:20:41 +0000 ++++ hddtemp-0.3-beta15/src/backtrace.c 2006-12-11 18:23:28 +0000 +@@ -18,7 +18,7 @@ + + #include <features.h> + +-#if defined(__i386__) && defined(__GLIBC__) ++#ifdef HAS_EXECINFO_H + + #include <execinfo.h> + diff --git a/app-admin/hddtemp/files/hddtemp-0.3_beta15-iconv.patch b/app-admin/hddtemp/files/hddtemp-0.3_beta15-iconv.patch new file mode 100644 index 000000000000..621e7549aa0b --- /dev/null +++ b/app-admin/hddtemp/files/hddtemp-0.3_beta15-iconv.patch @@ -0,0 +1,28 @@ +--- hddtemp-0.3-beta15/src/utf8.c~ 2007-03-27 09:09:59.000000000 +0200 ++++ hddtemp-0.3-beta15/src/utf8.c 2007-03-27 09:10:06.000000000 +0200 +@@ -23,7 +23,9 @@ + + // Standard includes + #include <stdlib.h> ++#ifdef HAVE_ICONV + #include <iconv.h> ++#endif + #include <langinfo.h> + #include <locale.h> + #include <string.h> +@@ -34,6 +36,7 @@ + + static char *iconv_from_utf8_to_locale(const char *string, const char* fallback_string) + { ++#ifdef HAVE_ICONV + const size_t buffer_inc = 80; // Increment buffer size in 80 bytes step + const char *charset; + iconv_t cd; +@@ -93,6 +96,7 @@ + if (dest_buffer != NULL) + free(dest_buffer); // free buffer + free(src_buffer); // free string ++#endif // HAVE_ICONV + return strdup(fallback_string); // and return fallback string + } + diff --git a/app-admin/hddtemp/files/hddtemp-0.3_beta15-nls.patch b/app-admin/hddtemp/files/hddtemp-0.3_beta15-nls.patch new file mode 100644 index 000000000000..86567aeb8c39 --- /dev/null +++ b/app-admin/hddtemp/files/hddtemp-0.3_beta15-nls.patch @@ -0,0 +1,14 @@ +--- hddtemp-0.3-beta15/src/hddtemp.c~ 2006-04-19 02:37:35 +0000 ++++ hddtemp-0.3-beta15/src/hddtemp.c 2007-03-26 08:14:17 +0000 +@@ -275,9 +275,11 @@ + backtrace_sigill(); + backtrace_sigbus(); + ++#if ENABLE_NLS + setlocale (LC_ALL, ""); + bindtextdomain (PACKAGE, LOCALEDIR); + textdomain (PACKAGE); ++#endif + + show_db = debug = numeric = quiet = wakeup = af_hint = syslog_interval = 0; + unit = DEFAULT; diff --git a/app-admin/hddtemp/files/hddtemp-0.3_beta15-satacmds.patch b/app-admin/hddtemp/files/hddtemp-0.3_beta15-satacmds.patch new file mode 100644 index 000000000000..d67e0681f33f --- /dev/null +++ b/app-admin/hddtemp/files/hddtemp-0.3_beta15-satacmds.patch @@ -0,0 +1,26 @@ +diff -Naurp hddtemp-0.3-beta15-orig/src/satacmds.c hddtemp-0.3-beta15/src/satacmds.c +--- hddtemp-0.3-beta15-orig/src/satacmds.c 2007-02-10 14:25:15.000000000 +0100 ++++ hddtemp-0.3-beta15/src/satacmds.c 2007-02-10 14:26:53.000000000 +0100 +@@ -54,7 +54,6 @@ int sata_pass_thru(int device, unsigned + unsigned char cdb[16]; + unsigned char sense[32]; + int dxfer_direction; +- int ret; + + memset(cdb, 0, sizeof(cdb)); + cdb[0] = ATA_16; +@@ -78,13 +77,7 @@ int sata_pass_thru(int device, unsigned + cdb[6] = cmd[1]; + cdb[14] = cmd[0]; + +- ret = scsi_SG_IO(device, cdb, sizeof(cdb), buffer, cmd[3] * 512, sense, sizeof(sense), dxfer_direction); +- +- /* Verify SATA magics */ +- if (sense[0] != 0x72 || sense[7] != 0x0e || sense[9] != 0x0e || sense[10] != 0x00) +- return 1; +- else +- return ret; ++ return scsi_SG_IO(device, cdb, sizeof(cdb), buffer, cmd[3] * 512, sense, sizeof(sense), dxfer_direction); + } + + void sata_fixstring(unsigned char *s, int bytecount) diff --git a/app-admin/hddtemp/files/hddtemp-conf.d b/app-admin/hddtemp/files/hddtemp-conf.d new file mode 100644 index 000000000000..b60b0f3fc6fe --- /dev/null +++ b/app-admin/hddtemp/files/hddtemp-conf.d @@ -0,0 +1,13 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# the hddtemp executable +HDDTEMP_EXEC=/usr/sbin/hddtemp + +# various options to pass to the daemon +HDDTEMP_OPTS="--listen=127.0.0.1" + +# a list of drives to check +HDDTEMP_DRIVES="/dev/sda /dev/sdb" + diff --git a/app-admin/hddtemp/files/hddtemp-init b/app-admin/hddtemp/files/hddtemp-init new file mode 100644 index 000000000000..60b1e31deeb5 --- /dev/null +++ b/app-admin/hddtemp/files/hddtemp-init @@ -0,0 +1,23 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + need localmount +} + +start() { + ebegin "Starting hddtemp daemon" + /sbin/start-stop-daemon --start --quiet --exec ${HDDTEMP_EXEC} \ + -- -d ${HDDTEMP_OPTS} ${HDDTEMP_DRIVES} + eend $? +} + +stop() { + ebegin "Stopping hddtemp daemon" + start-stop-daemon --stop --quiet --exec ${HDDTEMP_EXEC} + eend $? +} + + diff --git a/app-admin/hddtemp/files/hddtemp.service b/app-admin/hddtemp/files/hddtemp.service new file mode 100644 index 000000000000..b2fca4214bca --- /dev/null +++ b/app-admin/hddtemp/files/hddtemp.service @@ -0,0 +1,11 @@ +[Unit] +Description=Hard drive temperature monitor daemon +Documentation=man:hddtemp(8) + +[Service] +Environment=HDDTEMP_OPTIONS=--listen=127.0.0.1 +EnvironmentFile=-/etc/conf.d/hddtemp +ExecStart=/usr/sbin/hddtemp -d $HDDTEMP_OPTIONS $HDDTEMP_DRIVES + +[Install] +WantedBy=multi-user.target diff --git a/app-admin/hddtemp/files/hddtemp.service-r1 b/app-admin/hddtemp/files/hddtemp.service-r1 new file mode 100644 index 000000000000..8105bfc50cce --- /dev/null +++ b/app-admin/hddtemp/files/hddtemp.service-r1 @@ -0,0 +1,10 @@ +[Unit] +Description=Hard drive temperature monitor daemon +Documentation=man:hddtemp(8) + +[Service] +Type=forking +ExecStart=/usr/sbin/hddtemp -d --listen=127.0.0.1 $HDDTEMP_DRIVES + +[Install] +WantedBy=multi-user.target diff --git a/app-admin/hddtemp/files/hddtemp.service.conf b/app-admin/hddtemp/files/hddtemp.service.conf new file mode 100644 index 000000000000..a2a6c7fbd7f4 --- /dev/null +++ b/app-admin/hddtemp/files/hddtemp.service.conf @@ -0,0 +1,3 @@ +# Set a list of drives to check +[Service] +Environment="HDDTEMP_DRIVES=/dev/sda /dev/sdb"
\ No newline at end of file diff --git a/app-admin/hddtemp/files/update-hddtemp.db b/app-admin/hddtemp/files/update-hddtemp.db new file mode 100755 index 000000000000..0a8c665b8794 --- /dev/null +++ b/app-admin/hddtemp/files/update-hddtemp.db @@ -0,0 +1,33 @@ +#!/bin/bash + +update_db() { + local src=$1 + local dst=$2 + + while read line ; do + if [[ -z $(echo "${line}" | sed -re 's/(^#.*|^\w*$)//') ]]; then + echo "${line}" >> "${dst}" + fi + + id=$(echo "${line}" | grep -o '"[^"]*"') + + grep "${id}" "${dst}" 2>&1 >/dev/null || echo "${line}" >> "${dst}" + done < "${src}" +} + +die() { + echo "$*" + exit 1 +} + +cd /usr/share/hddtemp +wget http://download.savannah.nongnu.org/releases/hddtemp/hddtemp.db -O hddtemp.db -q || die "Failed to download new hddtemp.db file" + +# Try to get the Gentoo HDD DB from WebCVS. If that fails, just use the Gentoo HDD database +# that was installed by the ebuild. +if wget http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/app-admin/hddtemp/files/hddgentoo.db -O hddtmp.db -q; then + mv -f hddtmp.db hddgentoo.db +fi + +update_db "hddgentoo.db" "hddtemp.db" + diff --git a/app-admin/hddtemp/hddtemp-0.3_beta15-r24.ebuild b/app-admin/hddtemp/hddtemp-0.3_beta15-r24.ebuild new file mode 100644 index 000000000000..3ee76b2e683c --- /dev/null +++ b/app-admin/hddtemp/hddtemp-0.3_beta15-r24.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils autotools systemd + +MY_P=${P/_beta/-beta} +DBV=20080531 + +DESCRIPTION="A simple utility to read the temperature of SMART capable hard drives" +HOMEPAGE="http://savannah.nongnu.org/projects/hddtemp/" +SRC_URI="http://download.savannah.gnu.org/releases/hddtemp/${MY_P}.tar.bz2 mirror://gentoo/hddtemp-${DBV}.db.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~sparc ~x86" +IUSE="network-cron nls selinux" + +DEPEND="" +RDEPEND="selinux? ( sec-policy/selinux-hddtemp )" + +S="${WORKDIR}/${MY_P}" + +DOCS=(README TODO ChangeLog) + +src_prepare() { + epatch "${FILESDIR}"/${P}-satacmds.patch + epatch "${FILESDIR}"/${P}-byteswap.patch + epatch "${FILESDIR}"/${P}-execinfo.patch + epatch "${FILESDIR}"/${P}-nls.patch + epatch "${FILESDIR}"/${P}-iconv.patch + epatch "${FILESDIR}"/${P}-dontwake.patch + AT_M4DIR="m4" eautoreconf +} + +src_configure() { + local myconf + + myconf="--with-db-path=/usr/share/hddtemp/hddtemp.db" + # disabling nls breaks compiling + use nls || myconf="--disable-nls ${myconf}" + econf ${myconf} +} + +src_install() { + default + + insinto /usr/share/hddtemp + newins "${WORKDIR}/hddtemp-${DBV}.db" hddtemp.db + doins "${FILESDIR}"/hddgentoo.db + + update_db "${D}/usr/share/hddtemp/hddgentoo.db" "${D}/usr/share/hddtemp/hddtemp.db" + newconfd "${FILESDIR}"/hddtemp-conf.d hddtemp + newinitd "${FILESDIR}"/hddtemp-init hddtemp + systemd_newunit "${FILESDIR}"/hddtemp.service-r1 "${PN}.service" + systemd_install_serviced "${FILESDIR}"/hddtemp.service.conf + + dosbin "${FILESDIR}"/update-hddtemp.db + + if use network-cron ; then + exeinto /etc/cron.monthly + echo -e "#!/bin/sh\n/usr/sbin/update-hddtemp.db" > "${T}"/hddtemp.cron + newexe "${T}"/hddtemp.cron update-hddtemp.db + fi +} + +pkg_postinst() { + elog "In order to update your hddtemp database, run:" + elog " update-hddtemp.db" + elog "" + elog "If your hard drive is not recognized by hddtemp, please consider" + elog "submitting your HDD info for inclusion into the Gentoo hddtemp" + elog "database by filing a bug at https://bugs.gentoo.org/" + echo + ewarn "If hddtemp complains but finds your HDD temperature sensor, use the" + ewarn "--quiet option to suppress the warning." +} + +update_db() { + local src=$1 + local dst=$2 + + while read line ; do + if [[ -z $(echo "${line}" | sed -re 's/(^#.*|^\w*$)//') ]]; then + echo "${line}" >> "${dst}" + fi + + id=$(echo "${line}" | grep -o '"[^"]*"') + + grep "${id}" "${dst}" 2>&1 >/dev/null || echo "${line}" >> "${dst}" + done < "${src}" +} diff --git a/app-admin/hddtemp/hddtemp-0.3_beta15-r25.ebuild b/app-admin/hddtemp/hddtemp-0.3_beta15-r25.ebuild new file mode 100644 index 000000000000..7daa559ac305 --- /dev/null +++ b/app-admin/hddtemp/hddtemp-0.3_beta15-r25.ebuild @@ -0,0 +1,105 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils autotools readme.gentoo systemd + +MY_P=${P/_beta/-beta} +DBV=20080531 + +DESCRIPTION="A simple utility to read the temperature of SMART capable hard drives" +HOMEPAGE="http://savannah.nongnu.org/projects/hddtemp/" +SRC_URI="http://download.savannah.gnu.org/releases/hddtemp/${MY_P}.tar.bz2 mirror://gentoo/hddtemp-${DBV}.db.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~sparc ~x86" +IUSE="network-cron nls selinux" + +DEPEND="" +RDEPEND="selinux? ( sec-policy/selinux-hddtemp )" + +S="${WORKDIR}/${MY_P}" + +DOCS=(README TODO ChangeLog) + +DISABLE_AUTOFORMATTING="yes" +DOC_CONTENTS="In order to update your hddtemp database, run: +emerge --config =${CATEGORY}/${PF} or update-hddtemp.db (if USE +network-cron is enabled) + +If your hard drive is not recognized by hddtemp, please consider +submitting your HDD info for inclusion into the Gentoo hddtemp +database by filing a bug at https://bugs.gentoo.org/ + +If hddtemp complains but finds your HDD temperature sensor, use the +--quiet option to suppress the warning. +" + +src_prepare() { + epatch "${FILESDIR}"/${P}-satacmds.patch + epatch "${FILESDIR}"/${P}-byteswap.patch + epatch "${FILESDIR}"/${P}-execinfo.patch + epatch "${FILESDIR}"/${P}-nls.patch + epatch "${FILESDIR}"/${P}-iconv.patch + epatch "${FILESDIR}"/${P}-dontwake.patch + AT_M4DIR="m4" eautoreconf +} + +src_configure() { + local myconf + + myconf="--with-db-path=/usr/share/hddtemp/hddtemp.db" + # disabling nls breaks compiling + use nls || myconf="--disable-nls ${myconf}" + econf ${myconf} +} + +src_install() { + default + + insinto /usr/share/hddtemp + newins "${WORKDIR}/hddtemp-${DBV}.db" hddtemp.db + doins "${FILESDIR}"/hddgentoo.db + + update_db "${D}/usr/share/hddtemp/hddgentoo.db" "${D}/usr/share/hddtemp/hddtemp.db" + newconfd "${FILESDIR}"/hddtemp-conf.d hddtemp + newinitd "${FILESDIR}"/hddtemp-init hddtemp + systemd_newunit "${FILESDIR}"/hddtemp.service-r1 "${PN}.service" + systemd_install_serviced "${FILESDIR}"/hddtemp.service.conf + + readme.gentoo_create_doc + + if use network-cron; then + dosbin "${FILESDIR}"/update-hddtemp.db + exeinto /etc/cron.monthly + echo -e "#!/bin/sh\n/usr/sbin/update-hddtemp.db" > "${T}"/hddtemp.cron + newexe "${T}"/hddtemp.cron update-hddtemp.db + fi +} + +update_db() { + local src=$1 + local dst=$2 + + while read line ; do + if [[ -z $(echo "${line}" | sed -re 's/(^#.*|^\w*$)//') ]]; then + echo "${line}" >> "${dst}" + fi + + id=$(echo "${line}" | grep -o '"[^"]*"') + + grep "${id}" "${dst}" 2>&1 >/dev/null || echo "${line}" >> "${dst}" + done < "${src}" +} + +pkg_config() { + cd "${ROOT}"/usr/share/hddtemp || die + + einfo "Trying to download the latest hddtemp.db file" + wget http://www.guzu.net/linux/hddtemp.db -O hddtemp.db \ + || die "failed to download hddtemp.db" + + update_db "hddgentoo.db" "hddtemp.db" +} diff --git a/app-admin/hddtemp/hddtemp-0.3_beta15-r7.ebuild b/app-admin/hddtemp/hddtemp-0.3_beta15-r7.ebuild new file mode 100644 index 000000000000..2e78d0704970 --- /dev/null +++ b/app-admin/hddtemp/hddtemp-0.3_beta15-r7.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils autotools readme.gentoo systemd + +MY_P=${P/_beta/-beta} +DBV=20080531 + +DESCRIPTION="A simple utility to read the temperature of SMART capable hard drives" +HOMEPAGE="http://savannah.nongnu.org/projects/hddtemp/" +SRC_URI="http://download.savannah.gnu.org/releases/hddtemp/${MY_P}.tar.bz2 mirror://gentoo/hddtemp-${DBV}.db.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ppc sparc x86" +IUSE="nls selinux" + +DEPEND="" +RDEPEND="selinux? ( sec-policy/selinux-hddtemp )" + +S="${WORKDIR}/${MY_P}" + +DISABLE_AUTOFORMATTING="yes" +DOC_CONTENTS="In order to update your hddtemp database, run: +emerge --config =${CATEGORY}/${PF} + +If your hard drive is not recognized by hddtemp, please consider +submitting your HDD info for inclusion into the Gentoo hddtemp +database by filing a bug at https://bugs.gentoo.org/ + +If hddtemp complains but finds your HDD temperature sensor, use the +--quiet option to suppress the warning. +" + +src_prepare() { + epatch "${FILESDIR}"/${P}-satacmds.patch + epatch "${FILESDIR}"/${P}-byteswap.patch + epatch "${FILESDIR}"/${P}-execinfo.patch + epatch "${FILESDIR}"/${P}-nls.patch + epatch "${FILESDIR}"/${P}-iconv.patch + epatch "${FILESDIR}"/${P}-dontwake.patch + AT_M4DIR="m4" eautoreconf +} + +src_configure() { + local myconf + + myconf="--with-db-path=/usr/share/hddtemp/hddtemp.db" + # disabling nls breaks compiling + use nls || myconf="--disable-nls ${myconf}" + econf ${myconf} +} + +src_install() { + default + dodoc README TODO ChangeLog + + insinto /usr/share/hddtemp + newins "${WORKDIR}/hddtemp-${DBV}.db" hddtemp.db + doins "${FILESDIR}"/hddgentoo.db + + update_db "${D}/usr/share/hddtemp/hddgentoo.db" "${D}/usr/share/hddtemp/hddtemp.db" + newconfd "${FILESDIR}"/hddtemp-conf.d hddtemp + newinitd "${FILESDIR}"/hddtemp-init hddtemp + systemd_newunit "${FILESDIR}"/hddtemp.service-r1 "${PN}.service" + systemd_install_serviced "${FILESDIR}"/hddtemp.service.conf + + readme.gentoo_create_doc +} + +update_db() { + local src=$1 + local dst=$2 + + while read line ; do + if [[ -z $(echo "${line}" | sed -re 's/(^#.*|^\w*$)//') ]]; then + echo "${line}" >> "${dst}" + fi + + id=$(echo "${line}" | grep -o '"[^"]*"') + + grep "${id}" "${dst}" 2>&1 >/dev/null || echo "${line}" >> "${dst}" + done < "${src}" +} + +pkg_config() { + cd "${ROOT}"/usr/share/hddtemp || die + + einfo "Trying to download the latest hddtemp.db file" + wget http://www.guzu.net/linux/hddtemp.db -O hddtemp.db \ + || die "failed to download hddtemp.db" + + update_db "hddgentoo.db" "hddtemp.db" +} diff --git a/app-admin/hddtemp/metadata.xml b/app-admin/hddtemp/metadata.xml new file mode 100644 index 000000000000..a6041c523f54 --- /dev/null +++ b/app-admin/hddtemp/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> + <email>aidecoe@gentoo.org</email> +</maintainer> +<use> + <flag name='network-cron'> + Monthly cronjob to update hddtemp.db. + </flag> +</use> +</pkgmetadata> diff --git a/app-admin/hwreport/Manifest b/app-admin/hwreport/Manifest new file mode 100644 index 000000000000..73406cbf6e65 --- /dev/null +++ b/app-admin/hwreport/Manifest @@ -0,0 +1,2 @@ +DIST hwreport-0.10.0.tar.bz2 11171 SHA256 34269554e3888a4a3486ab6290ce417ac3c4e38a2f12e5327900323e5c875567 SHA512 6c3793040258455cdab6aecca7f540c118dd7fb9b1441ea4daf46288d2c285db7ee13a0b9e455a4018f288fa7977583c4a626956ac4628e54606c66a684a891a WHIRLPOOL 12f04391e1fef9ad0e634000311dd0b0e8ed7ce8efe84862aea5e7f062688715ac754e238255d40fa24423d8d4c88664b2ca1f00991e08507759f51d4a0ab4d2 +DIST hwreport-0.11.0.tar.bz2 14337 SHA256 b4337f91b2e9d6d500bfc9af7e32f1966db4346ff9b2ad869d09500189555160 SHA512 591e76a9bd739da0b53eb39796f026b4bde75243cdbd5cbfc0774b4dfd067656108478f4a24ea7d5693ecd2acf3a11a11f617c9b187480bd963596d5fc5db3d9 WHIRLPOOL 4c22d1d45d44f0c6e9b9b629f3db7dbdaf971343fbe1f68a010cd34359b35c1141a1679e5a08cd7ef7304aeb66bab66f7de07efde18c359d476038d18fb78098 diff --git a/app-admin/hwreport/hwreport-0.10.0.ebuild b/app-admin/hwreport/hwreport-0.10.0.ebuild new file mode 100644 index 000000000000..13b65a49d01f --- /dev/null +++ b/app-admin/hwreport/hwreport-0.10.0.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit toolchain-funcs + +DESCRIPTION="Collect system informations for the hardware4linux.info site" +HOMEPAGE="http://hardware4linux.info/" +SRC_URI="http://hardware4linux.info/res/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc sparc x86" +IUSE="" + +DEPEND="" +RDEPEND=">=sys-apps/dmidecode-2.8 >=sys-apps/pciutils-2.2.0" + +src_compile() { + $(tc-getCC) ${CFLAGS} ${LDFLAGS} -o scan-printers scan-printers.c +} + +src_install() { + dobin hwreport scan-printers + dodoc README +} + +pkg_postinst() { + elog "You can now generate your reports and post them on ${HOMEPAGE}" +} diff --git a/app-admin/hwreport/hwreport-0.11.0.ebuild b/app-admin/hwreport/hwreport-0.11.0.ebuild new file mode 100644 index 000000000000..ec5c7bab7da7 --- /dev/null +++ b/app-admin/hwreport/hwreport-0.11.0.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="Collect system informations for the hardware4linux.info site" +HOMEPAGE="http://hardware4linux.info/" +SRC_URI="http://hardware4linux.info/res/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="" + +DEPEND="virtual/libusb:1" +RDEPEND="${DEPEND} + >=sys-apps/dmidecode-2.8 + >=sys-apps/pciutils-2.2.0" + +src_prepare() { + # fix syntax error + sed -e 's:perl -p -i -e "s@/var/lib/hwreport@$(vardir)@" -e "s@/usr/sbin@$(bindir)@" $(DESTDIR)$(crondir)/$(PKG):perl -p -i -e "s@/var/lib/hwreport@$(vardir)@;" -e "s@/usr/sbin@$(bindir)@" $(DESTDIR)$(crondir)/$(PKG):' -i "${S}"/Makefile + # respect LDFLAGS + sed -e 's:$(CFLAGS):$(CFLAGS) $(LDFLAGS):' -i Makefile +} + +pkg_postinst() { + elog "You can now generate your reports and post them on ${HOMEPAGE}" +} diff --git a/app-admin/hwreport/metadata.xml b/app-admin/hwreport/metadata.xml new file mode 100644 index 000000000000..2811adea6ed8 --- /dev/null +++ b/app-admin/hwreport/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> + <email>fauli@gentoo.org</email> + <name>Christian Faulhammer</name> +</maintainer> +</pkgmetadata> diff --git a/app-admin/ide-smart/Manifest b/app-admin/ide-smart/Manifest new file mode 100644 index 000000000000..6582b42b6cd8 --- /dev/null +++ b/app-admin/ide-smart/Manifest @@ -0,0 +1 @@ +DIST ide-smart-1.4.tar.gz 19739 SHA256 e1f051a28fd0b563f2c41ebeffd94557f460a6280cb0123dbf7bcb1dc62652c9 SHA512 9ac5cd03b67731aba5371ec9edb3aabb7d3e3b3680552b14741106d8d5ffe5a1705ad379dd8df60b972f3e23f66ed35b98341544feb4b856912138ccac109660 WHIRLPOOL b045da41463920ce152b172df6a74d8de188b4348d47bf7438d693138e57ae5ca27a1e5b8caa34fa34b6fe6bb33a9bc8789eba17c40f7795d3d7e710a149bb9d diff --git a/app-admin/ide-smart/ide-smart-1.4-r1.ebuild b/app-admin/ide-smart/ide-smart-1.4-r1.ebuild new file mode 100644 index 000000000000..c7118e1a8e75 --- /dev/null +++ b/app-admin/ide-smart/ide-smart-1.4-r1.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit toolchain-funcs + +DESCRIPTION="A tool to read SMART information from harddiscs" +HOMEPAGE="http://www.linalco.com/comunidad.html http://www.linux-ide.org/smart.html" +SRC_URI="http://www.linalco.com/ragnar/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc sparc x86" +IUSE="" + +src_compile() { + $(tc-getCC) ${CFLAGS} -Wall ${LDFLAGS} -o ${PN} ${PN}.c || die "compile" +} + +src_install() { + dobin ide-smart || die + doman ide-smart.8 + dodoc README +} diff --git a/app-admin/ide-smart/metadata.xml b/app-admin/ide-smart/metadata.xml new file mode 100644 index 000000000000..59e2b8f78cb5 --- /dev/null +++ b/app-admin/ide-smart/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> + <email>maintainer-needed@gentoo.org</email> + <name>Default assignee for orphaned packages</name> + </maintainer> +</pkgmetadata> diff --git a/app-admin/integrit/Manifest b/app-admin/integrit/Manifest new file mode 100644 index 000000000000..fbbe09cd9cd3 --- /dev/null +++ b/app-admin/integrit/Manifest @@ -0,0 +1,2 @@ +DIST integrit-4.0.tar.gz 266001 SHA256 b0c09cf90404045759571a768a1f4581c0fc7db9a07bc00fef7356c799b200ec SHA512 d05722285e850aea2a07baa8020a379e595f30cfe9d9142d437d6c15f41c5a687ada476971765cab9cf5972be8c4c76a6495c6fb09438d3b35584c8be5d5a4e5 WHIRLPOOL 96ff05fc2b91224c7fd18d95fd46f53f4c6222328f00a12d1611e87b7fcb278b7bb818bf3b94dc4165ec694e6e54bd9c9a2db002b81097536f4b964fc8c2a383 +DIST integrit-4.1.tar.gz 271626 SHA256 2a09b670ee025d6fae756e044f780ccaca90688a97183a350927e3885174223e SHA512 599ae66a193fd87971994f59422e148e1ae01a5ff0fea93a0f2555c972f5254f0213116950766e72c87a57b1bd490f04afd3e0557d25a366c41dbbacc80b6842 WHIRLPOOL e3a31b02ceb32952b492f44db5135f190fbea40a435179d27e92d939935b01ba7f83184b669152ffbae798bdbc510c64bf4842f74320f40d750f4dcfee5d026c diff --git a/app-admin/integrit/integrit-4.0.ebuild b/app-admin/integrit/integrit-4.0.ebuild new file mode 100644 index 000000000000..a30152eec418 --- /dev/null +++ b/app-admin/integrit/integrit-4.0.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit autotools toolchain-funcs + +DESCRIPTION="file integrity verification program" +HOMEPAGE="http://integrit.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ppc x86" +IUSE="" + +src_unpack() { + unpack ${A} + cd "${S}" + + sed -i -e "/^CC/d" configure.in hashtbl/configure.in || die + sed -i -e "/^AC_PROGRAM_PATH/d" configure.in hashtbl/configure.in || die + + eautoreconf +} + +src_compile() { + tc-export AR + econf + emake || die + emake utils || die + cd "${S}"/doc + emake || die + cd "${S}"/hashtbl + emake hashtest || die + mv README README.hashtbl +} + +src_install() { + dosbin integrit || die + dolib libintegrit.a + dodoc Changes HACKING README todo.txt + + cd "${S}"/utils + dosbin i-viewdb + dobin i-ls + + cd "${S}"/hashtbl + dolib libhashtbl.a + insinto /usr/include + doins hashtbl.h + dobin hashtest + dodoc README.hashtbl + + cd "${S}"/doc + doman i-ls.1 i-viewdb.1 integrit.1 + doinfo integrit.info + + cd "${S}"/examples + docinto examples + dodoc * +} + +pkg_postinst() { + elog "It is recommended that the integrit binary is copied to a secure" + elog "location and re-copied at runtime or run from a secure medium." + elog "You should also create a configuration file (see examples)." +} diff --git a/app-admin/integrit/integrit-4.1-r1.ebuild b/app-admin/integrit/integrit-4.1-r1.ebuild new file mode 100644 index 000000000000..6d3e58184d06 --- /dev/null +++ b/app-admin/integrit/integrit-4.1-r1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit autotools toolchain-funcs + +DESCRIPTION="file integrity verification program" +HOMEPAGE="http://integrit.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +src_prepare() { + sed -i -e "/^CC/d" configure.in hashtbl/configure.in || die + sed -i -e "/^AC_PROGRAM_PATH/d" configure.in hashtbl/configure.in || die + eautoreconf + tc-export AR +} + +src_compile() { + emake + emake utils + + cd "${S}"/doc && emake + cd "${S}"/hashtbl && emake hashtest +} + +src_test() { + chmod +x test/test || die + default +} + +src_install() { + dosbin integrit + dolib libintegrit.a + dodoc Changes HACKING README todo.txt + + cd "${S}"/utils + dosbin i-viewdb + dobin i-ls + + cd "${S}"/hashtbl + dolib libhashtbl.a + insinto /usr/include + doins hashtbl.h + dobin hashtest + newdoc README README.hashtbl + + cd "${S}"/doc + doman i-ls.1 i-viewdb.1 integrit.1 + doinfo integrit.info + + cd "${S}"/examples + docinto examples + dodoc * +} + +pkg_postinst() { + elog "It is recommended that the integrit binary is copied to a secure" + elog "location and re-copied at runtime or run from a secure medium." + elog "You should also create a configuration file (see examples)." +} diff --git a/app-admin/integrit/metadata.xml b/app-admin/integrit/metadata.xml new file mode 100644 index 000000000000..f22d1250efc5 --- /dev/null +++ b/app-admin/integrit/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>forensics</herd> + <upstream> + <remote-id type="sourceforge">integrit</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/jinit/Manifest b/app-admin/jinit/Manifest new file mode 100644 index 000000000000..afb39e1683c4 --- /dev/null +++ b/app-admin/jinit/Manifest @@ -0,0 +1 @@ +DIST jinit-0.1.12.tar.gz 110745 SHA256 8db7e4cc34fd5f12b1803e910f1a01cffd0d945705467f2190472a8ec78c86b9 SHA512 3428ba2c9bc57f6a1e30d75b9c2b86f597753fdb29e5c748986a3bf90b8189f35b88591dffb8f861b728e7ce08e78c6c5f1780147bfdb5b6a1d5f2128d34db5d WHIRLPOOL 401564708000dd621a228d1caac217b965dff1dec5e48fda658e657e8e27adb41bff8c2bc9c5cc37d12c6336064c50d5cbc4397e4e2350413f6aac671559fbd6 diff --git a/app-admin/jinit/files/jinit-0.1.12-gcc43.patch b/app-admin/jinit/files/jinit-0.1.12-gcc43.patch new file mode 100644 index 000000000000..c9f6d92fcb03 --- /dev/null +++ b/app-admin/jinit/files/jinit-0.1.12-gcc43.patch @@ -0,0 +1,10 @@ +--- org/jinit-0.1.12/init_ipc/User.hh 2003-04-29 23:35:53.000000000 +0200 ++++ jinit-0.1.12/init_ipc/User.hh 2009-01-04 11:19:16.000000000 +0100 +@@ -13,6 +13,7 @@ + #include <errno.h> + #include <time.h> + #include <err.h> ++#include <cstdlib> + + #include "init_ipc/sysvq.hh" + #include "need/error.hh" diff --git a/app-admin/jinit/jinit-0.1.12-r1.ebuild b/app-admin/jinit/jinit-0.1.12-r1.ebuild new file mode 100644 index 000000000000..0a8f0d0db73a --- /dev/null +++ b/app-admin/jinit/jinit-0.1.12-r1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils + +DESCRIPTION="An alternative to sysvinit which supports the need(8) concept" +HOMEPAGE="http://john.fremlin.de/programs/linux/jinit/" +SRC_URI="http://john.fremlin.de/programs/linux/jinit/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-amd64 ~ppc ~sparc ~x86" +IUSE="" + +DEPEND="" +RDEPEND="" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${P}-gcc43.patch +} + +src_install() { + emake DESTDIR="${D}" install || die "failed emake install" + emake prefix="${D}"/usr/share/doc/${PF}/example-setup install-initscripts \ + || die "failed installing example setup" + mv "${D}"/usr/sbin "${D}"/ || die + mv "${D}"/sbin/init "${D}"/sbin/jinit || die + mv "${D}"/sbin/shutdown "${D}"/sbin/jinit-shutdown || die + dodoc AUTHORS ChangeLog NEWS README TODO || die +} diff --git a/app-admin/jinit/metadata.xml b/app-admin/jinit/metadata.xml new file mode 100644 index 000000000000..ff62877c67ae --- /dev/null +++ b/app-admin/jinit/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> + <email>maintainer-needed@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/app-admin/kedpm/Manifest b/app-admin/kedpm/Manifest new file mode 100644 index 000000000000..aef9922a6e64 --- /dev/null +++ b/app-admin/kedpm/Manifest @@ -0,0 +1 @@ +DIST kedpm-0.4.0.tar.gz 61636 SHA256 f1dfb44a990110fddf132c9841f40aa2b9848ade4be56957a8a572574dc2fc28 SHA512 f6d73d4aab2b9184774e4a109bdf7401b96d9d9417e30a30d34958b9bee709e46676d68bb82e401b10b2eb32c56b6c8b1bb3947880cafb6e11d644d7f718a0f5 WHIRLPOOL 0a531e29ab66849fc5098ea8838bf53df340135650f312d5b1dc38231cddf797f02d3c3f8e2157b909bf954af5a65115d7814ba475924432a38d2b89341cf2df diff --git a/app-admin/kedpm/files/kedpm.desktop b/app-admin/kedpm/files/kedpm.desktop new file mode 100644 index 000000000000..29aa0fff8f3d --- /dev/null +++ b/app-admin/kedpm/files/kedpm.desktop @@ -0,0 +1,16 @@ +[Desktop Entry] +Version=1.0 +Name=Ked Password Manager +GenericName=Password Manager +GenericName[ca]=Gestor de contrasenyes +GenericName[es]=Gestor de contraseñas +Comment=Manage passwords and related information +Comment[ca]=Gestioneu contrasenyes i informació relacionada +Comment[es]=Gestiona contraseñas e información relacionada +Exec=kedpm +Icon=/usr/share/kedpm/glade/logo.png +Terminal=false +Type=Application +Categories=GNOME;Utility; +StartupNotify=true +MimeType=application/xml; diff --git a/app-admin/kedpm/files/setup-doc.patch b/app-admin/kedpm/files/setup-doc.patch new file mode 100644 index 000000000000..d8593e40f075 --- /dev/null +++ b/app-admin/kedpm/files/setup-doc.patch @@ -0,0 +1,12 @@ +--- setup.py 2004-02-29 12:45:48.000000000 +0100 ++++ setup.py 2004-03-29 08:47:15.886238864 +0200 +@@ -52,8 +52,7 @@ + url="http://kedpm.sourceforge.net/", + packages=['kedpm', 'kedpm.plugins', 'kedpm.frontends', 'kedpm.frontends.gtk'], + scripts=['scripts/kedpm'], +- data_files=[(os.path.join('share', 'kedpm'), ['AUTHORS', 'COPYING', 'INSTALL']), +- (os.path.join('share', 'kedpm', 'glade'), ++ data_files=[(os.path.join('share', 'kedpm', 'glade'), + [os.path.join('glade', 'kedpm.glade')] + + glob(os.path.join('glade', '*.png')) + )], diff --git a/app-admin/kedpm/kedpm-0.4.0-r2.ebuild b/app-admin/kedpm/kedpm-0.4.0-r2.ebuild new file mode 100644 index 000000000000..1a6466da6ca8 --- /dev/null +++ b/app-admin/kedpm/kedpm-0.4.0-r2.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 eutils + +DESCRIPTION="Ked Password Manager helps to manage large amounts of passwords and related information" +HOMEPAGE="http://kedpm.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="gtk" + +DEPEND="dev-python/pycrypto[${PYTHON_USEDEP}] + gtk? ( >=dev-python/pygtk-2[${PYTHON_USEDEP}] )" +RDEPEND="${DEPEND}" + +DOCS=( AUTHORS CHANGES NEWS ) + +python_prepare_all() { + # We want documentation to install in /usr/share/doc/kedpm + # not in /usr/share/kedpm as in original setup.py. + local PATCHES=( + "${FILESDIR}/setup-doc.patch" + ) + + # If we don't compiling with GTK support, let's change default + # frontend for kedpm to CLI. + use gtk || sed -i -e 's/"gtk" # default/"cli" # default/' scripts/kedpm + + distutils-r1_python_prepare_all +} + +python_test() { + "${PYTHON}" run_tests || die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + distutils-r1_python_install_all + + # menu item + domenu "${FILESDIR}/${PN}.desktop" +} diff --git a/app-admin/kedpm/metadata.xml b/app-admin/kedpm/metadata.xml new file mode 100644 index 000000000000..a4448f8b98a8 --- /dev/null +++ b/app-admin/kedpm/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> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <longdescription>key storing program</longdescription> + <upstream> + <remote-id type="sourceforge">kedpm</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/keepass/Manifest b/app-admin/keepass/Manifest new file mode 100644 index 000000000000..6f24d64694a9 --- /dev/null +++ b/app-admin/keepass/Manifest @@ -0,0 +1,3 @@ +DIST KeePass-2.27-Source.zip 3531254 SHA256 f812a7bc2921a491d7dcf4a247373fa53f32843b1df6a34ece488a25d599ca44 SHA512 9a2ec8b37cd9a4bf4d13585d3d594c766852b64cda8680d2a3ab934e320e1c110e93319d0c74652041198c03ea21209c95995b505e7924a054870d689da6dbe1 WHIRLPOOL aa2f543b83425bbef2ccd6f45f04c2f92b6a8498b45ab0db40d613c318e0b3202056654d3e40a9bad6c169c17b296a81462124732b1d84a535e7d70920d2d36a +DIST KeePass-2.28-Source.zip 3532385 SHA256 2bd3291308fbb592ee8da21c42457320f81d00eda189c9ee39f03a12783ff91b SHA512 3fc1813076f4a205a6d970d3b9d1abfdfb8ea03099523dc8f7d775f5a4210002323bd8cbeba216acecf84032aa8504e752063880b87190935cb45d646badd672 WHIRLPOOL 954c677a10dad6bdf470dd29e777896806d1f5137711dea3e9ac7c2fd9ddc98042c9911fd10cf3c0f7838f3eebe40676564b4efcb43e3d2eb8b8d2bb0866fd07 +DIST KeePass-2.29-Source.zip 4762221 SHA256 b5582eb96611726a70b523c156c89dfb83ae80ce051a4f57bb0b7a6fbf023a14 SHA512 3a682be8f54fdaad7d299620f5f4821753f27716204f3aceac6e0e078a885dd427e0498ad78f5cdf29946d4821bd29c9f1b6f808d143afa225ffdf975d242047 WHIRLPOOL 3a00ad16a7b0c62df142edc1577c8fb04834a799708e744a808e1fefad4cf55ceb52cb0a68f0143eb68600e3c5bb99371a765fa8c5e5c16f8d0ccdd78f5f403b diff --git a/app-admin/keepass/files/keepass-2.20-xsl-path-detection.patch b/app-admin/keepass/files/keepass-2.20-xsl-path-detection.patch new file mode 100644 index 000000000000..d3805feb0d98 --- /dev/null +++ b/app-admin/keepass/files/keepass-2.20-xsl-path-detection.patch @@ -0,0 +1,45 @@ +KeePass looks for some resources (XSL files) in the executable directory, +however under UNIX system this not a good idea, so we look into the +CommonApplicationData SpecialFolder, which usually maps to "/usr/share/". +So the final search path should be "/usr/share/KeePass/XSL/". + +diff --git a/KeePass/Forms/AboutForm.cs b/KeePass/Forms/AboutForm.cs +index 8a04c87..6083c00 100644 +--- a/KeePass/Forms/AboutForm.cs ++++ b/KeePass/Forms/AboutForm.cs +@@ -31,9 +31,11 @@ using KeePass.UI; + using KeePass.Resources;
+ using KeePass.Util;
+ using KeePass.DataExchange;
++using KeePass.Native;
+
+ using KeePassLib;
+ using KeePassLib.Utility;
++using KeePassLib.Native;
+
+ namespace KeePass.Forms
+ {
+@@ -92,8 +94,21 @@ namespace KeePass.Forms + m_lvComponents.Items.Add(lvi);
+
+ lvi = new ListViewItem(KPRes.XslStylesheetsKdbx);
+- string strPath = WinUtil.GetExecutable();
+- strPath = UrlUtil.GetFileDirectory(strPath, true, false);
++
++ string strPath;
++ if (NativeLib.IsUnix())
++ {
++ strPath = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData);
++ strPath = UrlUtil.EnsureTerminatingSeparator(strPath, false);
++ strPath += PwDefs.ShortProductName.ToLower();
++ strPath = UrlUtil.EnsureTerminatingSeparator(strPath, false);
++ }
++ else
++ {
++ strPath = WinUtil.GetExecutable();
++ strPath = UrlUtil.GetFileDirectory(strPath, true, false);
++ }
++
+ strPath += AppDefs.XslFilesDir;
+ strPath = UrlUtil.EnsureTerminatingSeparator(strPath, false);
+ bool bInstalled = File.Exists(strPath + AppDefs.XslFileHtmlLite);
diff --git a/app-admin/keepass/files/keepass.xml b/app-admin/keepass/files/keepass.xml new file mode 100644 index 000000000000..5e3d80dcae7b --- /dev/null +++ b/app-admin/keepass/files/keepass.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'> + <mime-type type="application/x-keepass2"> + <comment>KeePass database</comment> + <glob pattern="*.kdbx"/> + <icon name="keepass" /> + </mime-type> +</mime-info> + diff --git a/app-admin/keepass/keepass-2.27.ebuild b/app-admin/keepass/keepass-2.27.ebuild new file mode 100644 index 000000000000..237cb3873be4 --- /dev/null +++ b/app-admin/keepass/keepass-2.27.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils fdo-mime gnome2-utils mono-env multilib + +MY_PN="KeePass" +DESCRIPTION="A free, open source, light-weight and easy-to-use password manager" +HOMEPAGE="http://keepass.info/" +SRC_URI="mirror://sourceforge/${PN}/${MY_PN}-${PV}-Source.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="aot" + +COMMON_DEPEND=">=dev-lang/mono-2.10.5" +RDEPEND="${COMMON_DEPEND} + dev-dotnet/libgdiplus[cairo]" +DEPEND="${COMMON_DEPEND} + app-arch/unzip" + +S=${WORKDIR} + +src_prepare() { + # Remove Windows-specific things + pushd Build > /dev/null || die + . PrepMonoDev.sh || die + popd > /dev/null || die + + # KeePass looks for some XSL files in the same folder as the executable, + # we prefer to have it in /usr/share/KeePass + epatch "${FILESDIR}/${PN}-2.20-xsl-path-detection.patch" +} + +src_compile() { + # Build with Release target + xbuild /target:KeePass /property:Configuration=Release || die + + # Run Ahead Of Time compiler on the binary + if use aot; then + cp Ext/KeePass.exe.config Build/KeePass/Release/ + mono --aot -O=all Build/KeePass/Release/KeePass.exe || die + fi +} + +src_install() { + # Wrapper script to launch mono + make_wrapper ${PN} "mono /usr/$(get_libdir)/${PN}/KeePass.exe" + + # Some XSL files + insinto /usr/share/${PN}/XSL + doins Ext/XSL/* + + insinto /usr/$(get_libdir)/${PN}/ + exeinto /usr/$(get_libdir)/${PN}/ + doins Ext/KeePass.exe.config + # Default configuration, simply says to use user-specific configuration + doins Ext/KeePass.config.xml + + # The actual executable + doexe Build/KeePass/Release/KeePass.exe + + # Copy the AOT compilation result + if use aot; then + doexe Build/KeePass/Release/KeePass.exe.so + fi + + # Prepare the icons + newicon -s 256 Ext/Icons/Finals/plockb.png "${PN}.png" + newicon -s 256 -t gnome -c mimetypes Ext/Icons/Finals/plockb.png "application-x-${PN}2.png" + + # Create a desktop entry and associate it with the KeePass mime type + make_desktop_entry ${PN} ${MY_PN} ${PN} "System;Security" "MimeType=application/x-keepass2;" + + # MIME descriptor for .kdbx files + insinto /usr/share/mime/packages/ + doins "${FILESDIR}/${PN}.xml" +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update + fdo-mime_mime_database_update + fdo-mime_desktop_database_update + + if ! has_version x11-misc/xdotool ; then + elog "Optional dependencies:" + elog " x11-misc/xdotool (enables autotype)" + fi +} + +pkg_postrm() { + gnome2_icon_cache_update + fdo-mime_mime_database_update + fdo-mime_desktop_database_update +} diff --git a/app-admin/keepass/keepass-2.28.ebuild b/app-admin/keepass/keepass-2.28.ebuild new file mode 100644 index 000000000000..a7f63724749b --- /dev/null +++ b/app-admin/keepass/keepass-2.28.ebuild @@ -0,0 +1,105 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils fdo-mime gnome2-utils mono-env multilib + +MY_PN="KeePass" +DESCRIPTION="A free, open source, light-weight and easy-to-use password manager" +HOMEPAGE="http://keepass.info/" +SRC_URI="mirror://sourceforge/${PN}/${MY_PN}-${PV}-Source.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="aot" + +COMMON_DEPEND=">=dev-lang/mono-2.10.5" +RDEPEND="${COMMON_DEPEND} + dev-dotnet/libgdiplus[cairo]" +DEPEND="${COMMON_DEPEND} + app-arch/unzip" + +S=${WORKDIR} + +src_prepare() { + # Remove Windows-specific things + pushd Build > /dev/null || die + . PrepMonoDev.sh || die + popd > /dev/null || die + + # KeePass looks for some XSL files in the same folder as the executable, + # we prefer to have it in /usr/share/KeePass + epatch "${FILESDIR}/${PN}-2.20-xsl-path-detection.patch" +} + +src_compile() { + # Build with Release target + xbuild /target:KeePass /property:Configuration=Release || die + + # Run Ahead Of Time compiler on the binary + if use aot; then + cp Ext/KeePass.exe.config Build/KeePass/Release/ + mono --aot -O=all Build/KeePass/Release/KeePass.exe || die + fi +} + +src_install() { + # Wrapper script to launch mono + make_wrapper ${PN} "mono /usr/$(get_libdir)/${PN}/KeePass.exe" + + # Some XSL files + insinto /usr/share/${PN}/XSL + doins Ext/XSL/* + + insinto /usr/$(get_libdir)/${PN}/ + exeinto /usr/$(get_libdir)/${PN}/ + doins Ext/KeePass.exe.config + # Default configuration, simply says to use user-specific configuration + doins Ext/KeePass.config.xml + + # The actual executable + doexe Build/KeePass/Release/KeePass.exe + + # Copy the AOT compilation result + if use aot; then + doexe Build/KeePass/Release/KeePass.exe.so + fi + + # Prepare the icons + newicon -s 256 Ext/Icons/Finals/plockb.png "${PN}.png" + newicon -s 256 -t gnome -c mimetypes Ext/Icons/Finals/plockb.png "application-x-${PN}2.png" + + # Create a desktop entry and associate it with the KeePass mime type + make_desktop_entry ${PN} ${MY_PN} ${PN} "System;Security" "MimeType=application/x-keepass2;" + + # MIME descriptor for .kdbx files + insinto /usr/share/mime/packages/ + doins "${FILESDIR}/${PN}.xml" +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update + fdo-mime_mime_database_update + fdo-mime_desktop_database_update + + if ! has_version x11-misc/xdotool ; then + elog "Optional dependencies:" + elog " x11-misc/xdotool (enables autotype)" + fi + + elog "Some systems may experience issues with copy and paste operations." + elog "If you encounter this, please install x11-misc/xsel." +} + +pkg_postrm() { + gnome2_icon_cache_update + fdo-mime_mime_database_update + fdo-mime_desktop_database_update +} diff --git a/app-admin/keepass/keepass-2.29.ebuild b/app-admin/keepass/keepass-2.29.ebuild new file mode 100644 index 000000000000..55cdd13ba19c --- /dev/null +++ b/app-admin/keepass/keepass-2.29.ebuild @@ -0,0 +1,105 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils fdo-mime gnome2-utils mono-env multilib + +MY_PN="KeePass" +DESCRIPTION="A free, open source, light-weight and easy-to-use password manager" +HOMEPAGE="http://keepass.info/" +SRC_URI="mirror://sourceforge/${PN}/${MY_PN}-${PV}-Source.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="aot" + +COMMON_DEPEND=">=dev-lang/mono-2.10.5" +RDEPEND="${COMMON_DEPEND} + dev-dotnet/libgdiplus[cairo]" +DEPEND="${COMMON_DEPEND} + app-arch/unzip" + +S=${WORKDIR} + +src_prepare() { + # Remove Windows-specific things + pushd Build > /dev/null || die + . PrepMonoDev.sh || die + popd > /dev/null || die + + # KeePass looks for some XSL files in the same folder as the executable, + # we prefer to have it in /usr/share/KeePass + epatch "${FILESDIR}/${PN}-2.20-xsl-path-detection.patch" +} + +src_compile() { + # Build with Release target + xbuild /target:KeePass /property:Configuration=Release || die + + # Run Ahead Of Time compiler on the binary + if use aot; then + cp Ext/KeePass.exe.config Build/KeePass/Release/ + mono --aot -O=all Build/KeePass/Release/KeePass.exe || die + fi +} + +src_install() { + # Wrapper script to launch mono + make_wrapper ${PN} "mono /usr/$(get_libdir)/${PN}/KeePass.exe" + + # Some XSL files + insinto /usr/share/${PN}/XSL + doins Ext/XSL/* + + insinto /usr/$(get_libdir)/${PN}/ + exeinto /usr/$(get_libdir)/${PN}/ + doins Ext/KeePass.exe.config + # Default configuration, simply says to use user-specific configuration + doins Ext/KeePass.config.xml + + # The actual executable + doexe Build/KeePass/Release/KeePass.exe + + # Copy the AOT compilation result + if use aot; then + doexe Build/KeePass/Release/KeePass.exe.so + fi + + # Prepare the icons + newicon -s 256 Ext/Icons/Finals/plockb.png "${PN}.png" + newicon -s 256 -t gnome -c mimetypes Ext/Icons/Finals/plockb.png "application-x-${PN}2.png" + + # Create a desktop entry and associate it with the KeePass mime type + make_desktop_entry ${PN} ${MY_PN} ${PN} "System;Security" "MimeType=application/x-keepass2;" + + # MIME descriptor for .kdbx files + insinto /usr/share/mime/packages/ + doins "${FILESDIR}/${PN}.xml" +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update + fdo-mime_mime_database_update + fdo-mime_desktop_database_update + + if ! has_version x11-misc/xdotool ; then + elog "Optional dependencies:" + elog " x11-misc/xdotool (enables autotype)" + fi + + elog "Some systems may experience issues with copy and paste operations." + elog "If you encounter this, please install x11-misc/xsel." +} + +pkg_postrm() { + gnome2_icon_cache_update + fdo-mime_mime_database_update + fdo-mime_desktop_database_update +} diff --git a/app-admin/keepass/metadata.xml b/app-admin/keepass/metadata.xml new file mode 100644 index 000000000000..b9e748b54d3c --- /dev/null +++ b/app-admin/keepass/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>ale@clearmind.me</email> + <description>Maintainer. Assign bugs to him.</description> + </maintainer> + <maintainer> + <email>kensington@gentoo.org</email> + <description>Proxy maintainer. CC him on bugs.</description> + </maintainer> + <herd>proxy-maintainers</herd> + <use> + <flag name="aot">Generate native code at build time, rather than runtime.</flag> + </use> + <upstream> + <remote-id type="sourceforge">keepass</remote-id> + <bugs-to>http://sourceforge.net/p/keepass/bugs/</bugs-to> + </upstream> +</pkgmetadata> diff --git a/app-admin/keepassx/Manifest b/app-admin/keepassx/Manifest new file mode 100644 index 000000000000..46aee195f3ff --- /dev/null +++ b/app-admin/keepassx/Manifest @@ -0,0 +1,3 @@ +DIST keepassx-0.4.3.tar.gz 1368766 SHA256 cd901a0611ce57e62cf6df7eeeb1b690b5232302bdad8626994eb54adcfa1e85 SHA512 8ce1bc252694e11a8b0da94bb00a4e5ca2837fe099f2f992aa9a93bacc4d94f33970cec687bd73a7a7762e86220a0541fe85a6708a2d4ad1bb3aef5f19935ccc WHIRLPOOL e2f54832eeb8eb3c7b7874e2deb97843a9ef1a92f027ec540fd197cf850d313be5d8959595e122b24a286973747d3b71bd33537de601b31ba3d45a16a095747b +DIST keepassx-2.0_alpha5.tar.gz 1052454 SHA256 d5554d98666c7e0ea14d868ea837a3bc83661e95770faf77452367f80d18b2ef SHA512 864b56b35c768cf084d1934909c8f1aca474c0586ed644c3d5fef6d4eaffb550eeb14b1ac93d01e26a1319ad38144130ccdcf9f0c5634c395afed9f560173e79 WHIRLPOOL 92a0d9b653ea63c5abb5dde0ff2e92f92221e8b7f877da042b70f3a517ba9ac3c3e220c7014bc2da6cdb8a309f9c9575efce62de5026b281df2899ac756c21ec +DIST keepassx-2.0_alpha6.tar.gz 1366929 SHA256 592f9995b13c4f84724fb24a0078162246397eedccd467daaf0fd3608151f2b0 SHA512 76cf2e9617217b4f38ecd0027a88768c5a06c51e796f32e4939ba3a4506583ce6793c107293ee87c0ff1d18eaf6030096cab4da644cf0bef35ff09d5a46cd5ca WHIRLPOOL 37283e66bb285656ff2992552ce6e745603f27685a8a2e87fec42e391b484b2bf1697da011ec0ef86ff1ba5053abd803f38ad8ba77f0d295d901bd5ecf38d1e3 diff --git a/app-admin/keepassx/files/keepassx-0.4.3-gcc47.patch b/app-admin/keepassx/files/keepassx-0.4.3-gcc47.patch new file mode 100644 index 000000000000..d5d0d8bd0882 --- /dev/null +++ b/app-admin/keepassx/files/keepassx-0.4.3-gcc47.patch @@ -0,0 +1,11 @@ +diff -Naur keepassx-0.4.3/src/lib/random.cpp keepassx-0.4.3.new/src/lib/random.cpp +--- keepassx-0.4.3/src/lib/random.cpp 2009-06-28 16:22:31.000000000 +0200 ++++ keepassx-0.4.3.new/src/lib/random.cpp 2012-04-19 00:20:15.757415510 +0200 +@@ -19,6 +19,7 @@ + ***************************************************************************/ + + #include "random.h" ++#include <unistd.h> + + + #if defined(Q_WS_X11) || defined(Q_WS_MAC) diff --git a/app-admin/keepassx/files/keepassx-2.0_alpha5-libgcrypt-1.6.0.patch b/app-admin/keepassx/files/keepassx-2.0_alpha5-libgcrypt-1.6.0.patch new file mode 100644 index 000000000000..c2734c83e45d --- /dev/null +++ b/app-admin/keepassx/files/keepassx-2.0_alpha5-libgcrypt-1.6.0.patch @@ -0,0 +1,39 @@ +commit 8c7e6552742d11b13bc381fb39c00f9d57ce70ba +Author: Felix Geyer <debfx@fobos.de> +Date: Sun Jan 12 12:39:39 2014 +0100 + + Add compatibility with libgcrypt 1.6. + + Closes #129 + +diff --git a/src/crypto/Crypto.cpp b/src/crypto/Crypto.cpp +index 6ad7fb0..1e28002 100644 +--- a/src/crypto/Crypto.cpp ++++ b/src/crypto/Crypto.cpp +@@ -23,6 +23,7 @@ + + bool Crypto::m_initalized(false); + ++#if !defined(GCRYPT_VERSION_NUMBER) || (GCRYPT_VERSION_NUMBER < 0x010600) + static int gcry_qt_mutex_init(void** p_sys) + { + *p_sys = new QMutex(); +@@ -57,6 +58,7 @@ static const struct gcry_thread_cbs gcry_threads_qt = + gcry_qt_mutex_unlock, + 0, 0, 0, 0, 0, 0, 0, 0 + }; ++#endif + + Crypto::Crypto() + { +@@ -69,7 +71,10 @@ void Crypto::init() + return; + } + ++ // libgcrypt >= 1.6 doesn't allow custom thread callbacks anymore. ++#if !defined(GCRYPT_VERSION_NUMBER) || (GCRYPT_VERSION_NUMBER < 0x010600) + gcry_control(GCRYCTL_SET_THREAD_CBS, &gcry_threads_qt); ++#endif + gcry_check_version(0); + gcry_control(GCRYCTL_INITIALIZATION_FINISHED, 0); + diff --git a/app-admin/keepassx/keepassx-0.4.3.ebuild b/app-admin/keepassx/keepassx-0.4.3.ebuild new file mode 100644 index 000000000000..333f4851a6a6 --- /dev/null +++ b/app-admin/keepassx/keepassx-0.4.3.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit qt4-r2 + +DESCRIPTION="Qt password manager compatible with its Win32 and Pocket PC versions" +HOMEPAGE="http://www.keepassx.org/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux" +IUSE="debug pch" + +DEPEND="dev-qt/qtcore:4 + dev-qt/qtgui:4 + dev-qt/qtxmlpatterns:4 + || ( >=x11-libs/libXtst-1.1.0 <x11-proto/xextproto-7.1.0 )" +RDEPEND="${DEPEND}" + +PATCHES=( "${FILESDIR}"/${P}-gcc47.patch ) + +src_configure() { + local conf_pch + use pch && conf_pch="PRECOMPILED=1" || conf_pch="PRECOMPILED=0" + + eqmake4 ${PN}.pro -recursive \ + PREFIX="${ED}/usr" \ + "${conf_pch}" +} + +src_compile() { + # workaround compile failure due to distcc, bug #214327 + PATH=${PATH/\/usr\/lib\/distcc\/bin:} + emake +} + +src_install() { + emake DESTDIR="${D}" install + dodoc changelog +} diff --git a/app-admin/keepassx/keepassx-2.0_alpha5.ebuild b/app-admin/keepassx/keepassx-2.0_alpha5.ebuild new file mode 100644 index 000000000000..0eec23fe1ad5 --- /dev/null +++ b/app-admin/keepassx/keepassx-2.0_alpha5.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit cmake-utils vcs-snapshot + +DESCRIPTION="Qt password manager compatible with its Win32 and Pocket PC versions" +HOMEPAGE="http://www.keepassx.org/" +SRC_URI="https://github.com/${PN}/${PN}/archive/${PV/_/-}.tar.gz -> ${P}.tar.gz" + +LICENSE="|| ( GPL-2 GPL-3 ) BSD GPL-2 LGPL-2.1 LGPL-3+ CC0-1.0 public-domain || ( LGPL-2.1 GPL-3 )" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" +IUSE="test" + +DEPEND=" + dev-libs/libgcrypt:0= + dev-qt/qtcore:4 + dev-qt/qtdbus:4 + dev-qt/qtgui:4 + dev-qt/qttest:4 + sys-libs/zlib + x11-libs/libX11 + x11-libs/libXtst +" +RDEPEND="${DEPEND}" + +DOCS=(CHANGELOG) + +src_prepare() { + epatch "${FILESDIR}"/${P}-libgcrypt-1.6.0.patch + cmake-utils_src_prepare +} + +src_configure() { + local mycmakeargs=( + $(cmake-utils_use_with test TESTS) + ) + cmake-utils_src_configure +} diff --git a/app-admin/keepassx/keepassx-2.0_alpha6.ebuild b/app-admin/keepassx/keepassx-2.0_alpha6.ebuild new file mode 100644 index 000000000000..79aaa66c37f5 --- /dev/null +++ b/app-admin/keepassx/keepassx-2.0_alpha6.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit cmake-utils vcs-snapshot + +DESCRIPTION="Qt password manager compatible with its Win32 and Pocket PC versions" +HOMEPAGE="http://www.keepassx.org/" +SRC_URI="https://github.com/${PN}/${PN}/archive/${PV/_/-}.tar.gz -> ${P}.tar.gz" + +LICENSE="|| ( GPL-2 GPL-3 ) BSD GPL-2 LGPL-2.1 LGPL-3+ CC0-1.0 public-domain || ( LGPL-2.1 GPL-3 )" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" +IUSE="test" + +DEPEND=" + dev-libs/libgcrypt:0= + dev-qt/qtcore:4 + dev-qt/qtdbus:4 + dev-qt/qtgui:4 + dev-qt/qttest:4 + sys-libs/zlib + x11-libs/libX11 + x11-libs/libXtst +" +RDEPEND="${DEPEND}" + +DOCS=(CHANGELOG) + +src_configure() { + local mycmakeargs=( + $(cmake-utils_use_with test TESTS) + ) + cmake-utils_src_configure +} diff --git a/app-admin/keepassx/metadata.xml b/app-admin/keepassx/metadata.xml new file mode 100644 index 000000000000..770f6c3b9860 --- /dev/null +++ b/app-admin/keepassx/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> + <email>tgurr@gentoo.org</email> + <name>Timo Gurr</name> + </maintainer> + <longdescription> + KeePassX provides a safe location for your passwords and similar + data. It encrypts its databasee with AES either by passphrase or a key + file, compatible with a PDA and Windows version. + </longdescription> + <upstream> + <remote-id type="github">keepassx/keepassx</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/killproc/Manifest b/app-admin/killproc/Manifest new file mode 100644 index 000000000000..24cf342918f7 --- /dev/null +++ b/app-admin/killproc/Manifest @@ -0,0 +1 @@ +DIST killproc-2.13.tar.gz 37953 SHA256 090590f5ab24559889bd134f38258d5ea567590098580c2345ca8183fb9c3e78 SHA512 2ba8daa10d78c7e6df80f6fc5bff24807571bd8bcecf4674c1dac180da5c462b326c1fd45e31b4974937d47871b48c9e5b215a7b323e65d98fe0a66b171e9d2d WHIRLPOOL 06bcba6d88ec598c5ae31f18a24cc14ae710d4e94f0185c29017b75a475c9e84be6fb01470af24d945f22a169a0c77060741f8228cd8066d5be53dc5d6395b49 diff --git a/app-admin/killproc/files/killproc-2.13-makefile.patch b/app-admin/killproc/files/killproc-2.13-makefile.patch new file mode 100644 index 000000000000..4eb8131448ee --- /dev/null +++ b/app-admin/killproc/files/killproc-2.13-makefile.patch @@ -0,0 +1,42 @@ +--- a/Makefile ++++ b/Makefile +@@ -27,9 +27,7 @@ + # + # egcs used with -O2 includes -fno-force-mem which is/was buggy (1998/10/08) + # +- CFLAGS = $(RPM_OPT_FLAGS) $(COPTS) $(DEBUG) $(INC) -D_GNU_SOURCE -Wall -pipe +- CLOOP = -funroll-loops +- CC = gcc ++ CFLAGS = $(RPM_OPT_FLAGS) $(COPTS) $(DEBUG) $(INC) -D_GNU_SOURCE -Wall + RM = rm -f + MKDIR = mkdir -p + RMDIR = rm -rf +@@ -59,22 +57,22 @@ + all: $(SBINPRG) $(UBINPRG) + + libinit.o: libinit.c libinit.h +- $(CC) $(CFLAGS) $(CLOOP) -DINITDIR=\"$(INITDIR)\" -c $< ++ $(CC) $(CFLAGS) -DINITDIR=\"$(INITDIR)\" -c $< + + killproc: killproc.c libinit.o +- $(CC) $(CFLAGS) $(CLOOP) -o $@ $^ $(LIBS) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) + + startproc: startproc.c libinit.o +- $(CC) $(CFLAGS) $(CLOOP) -o $@ $^ $(LIBS) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) + + checkproc: checkproc.c libinit.o +- $(CC) $(CFLAGS) $(CLOOP) -o $@ $^ $(LIBS) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) + + usleep: usleep.c +- $(CC) $(CFLAGS) -o $@ $^ ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ + + fsync: fsync.c +- $(CC) $(CFLAGS) -o $@ $^ ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ + + clean: + $(RM) *.o *~ killproc startproc checkproc pidofproc start_daemon usleep fsync diff --git a/app-admin/killproc/killproc-2.13-r1.ebuild b/app-admin/killproc/killproc-2.13-r1.ebuild new file mode 100644 index 000000000000..92094e47d750 --- /dev/null +++ b/app-admin/killproc/killproc-2.13-r1.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils toolchain-funcs + +DESCRIPTION="killproc and assorted tools for boot scripts" +HOMEPAGE="http://ftp.suse.com/pub/projects/init/" +SRC_URI="ftp://ftp.suse.com/pub/projects/init/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86" + +src_prepare() { + epatch "${FILESDIR}/${P}-makefile.patch" + tc-export CC + export COPTS=${CFLAGS} +} + +src_install() { + into / + dosbin checkproc fsync killproc startproc usleep + into /usr + doman *.8 *.1 + dodoc README *.lsm +} diff --git a/app-admin/killproc/metadata.xml b/app-admin/killproc/metadata.xml new file mode 100644 index 000000000000..347ef1097116 --- /dev/null +++ b/app-admin/killproc/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> + <email>jer@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/app-admin/kpcli/Manifest b/app-admin/kpcli/Manifest new file mode 100644 index 000000000000..b2d142f9a057 --- /dev/null +++ b/app-admin/kpcli/Manifest @@ -0,0 +1,2 @@ +DIST kpcli-2.7.pl 166288 SHA256 6bb1f7320b4474d6dbb73915393e5df96862f27c6228aa042a810fef46e2b777 SHA512 4a64164cc43b51a2f35a4dc348054e0299a8ac745ac8ca280b43b37b2813200afe2c7ec393ccca6a4e357252f59ca2315e71c87a5e512ff2f2b1569160a76b4e WHIRLPOOL 4b9e4872b6479b7c5757c95d07be6e72c32bb11cdaf559a64bf8f8e94a970c511be44ec566beeb30d805059a5651be90b1438faa08f41ac5ca5e66007d6de4be +DIST kpcli-2.8.pl 176617 SHA256 21351afe96bd8d151cc5b551b9852249199802deac5ed05ba8538f18c308b2ee SHA512 45ed8e67e4a985faa53476d35613ae90f68983d97cc85fba31d92d615cf021e62167179edc733a8acd0ace4eeee910ac8556939ff1cc6c3d6fb6badf5547fab7 WHIRLPOOL a6fe2d2ddb7cd3bb86d809518fa3263c230dff2d4d34639ac41bf5d8284ed1d7c3e78f5b44d3602501586d5a633e2dd32c119aa71bd3596bb52a3d9ab8dbc52d diff --git a/app-admin/kpcli/kpcli-2.7.ebuild b/app-admin/kpcli/kpcli-2.7.ebuild new file mode 100644 index 000000000000..bf34e1715ad7 --- /dev/null +++ b/app-admin/kpcli/kpcli-2.7.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="A command line interface to KeePass database files" +HOMEPAGE="http://kpcli.sourceforge.net" +SRC_URI="http://downloads.sourceforge.net/project/kpcli/${P}.pl" + +LICENSE="|| ( Artistic GPL-1+ )" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND="dev-lang/perl + dev-perl/Clone + dev-perl/Crypt-Rijndael + dev-perl/TermReadKey + dev-perl/Sort-Naturally + dev-perl/Term-ShellUI + >=dev-perl/File-KeePass-0.30.0 + virtual/perl-File-Spec + virtual/perl-Getopt-Long + virtual/perl-Digest-MD5 + virtual/perl-Digest-SHA + virtual/perl-Data-Dumper + virtual/perl-Term-ANSIColor + virtual/perl-Carp +" + +src_unpack() { + mkdir "${S}" || die + cp "${DISTDIR}/${P}.pl" "${S}/${PN}" || die +} + +src_compile() { :; } + +src_install() { + dobin kpcli +} diff --git a/app-admin/kpcli/kpcli-2.8.ebuild b/app-admin/kpcli/kpcli-2.8.ebuild new file mode 100644 index 000000000000..c78af3f71b37 --- /dev/null +++ b/app-admin/kpcli/kpcli-2.8.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="A command line interface to KeePass database files" +HOMEPAGE="http://kpcli.sourceforge.net" +SRC_URI="http://downloads.sourceforge.net/project/kpcli/${P}.pl" + +LICENSE="|| ( Artistic GPL-1+ )" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND="dev-lang/perl + dev-perl/Clone + dev-perl/Crypt-Rijndael + dev-perl/TermReadKey + dev-perl/Sort-Naturally + dev-perl/Term-ShellUI + >=dev-perl/File-KeePass-0.30.0 + virtual/perl-File-Spec + virtual/perl-Getopt-Long + virtual/perl-Digest-MD5 + virtual/perl-Digest-SHA + virtual/perl-Data-Dumper + virtual/perl-Term-ANSIColor + virtual/perl-Carp +" + +src_unpack() { + mkdir "${S}" || die + cp "${DISTDIR}/${P}.pl" "${S}/${PN}" || die +} + +src_compile() { :; } + +src_install() { + dobin kpcli +} diff --git a/app-admin/kpcli/metadata.xml b/app-admin/kpcli/metadata.xml new file mode 100644 index 000000000000..36ee0f08c67c --- /dev/null +++ b/app-admin/kpcli/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>perl</herd> +</pkgmetadata> diff --git a/app-admin/lastpass-cli/Manifest b/app-admin/lastpass-cli/Manifest new file mode 100644 index 000000000000..4498b45e4970 --- /dev/null +++ b/app-admin/lastpass-cli/Manifest @@ -0,0 +1,2 @@ +DIST lastpass-cli-0.3.0.tar.gz 48596 SHA256 7956fe945aae64bd57350c3ed89773dd1449b99e8e0369eefcea14382e4aea08 SHA512 9993de2a8d8d66440d318985d1f15ed44033beb9932193f3ef90c5fdc2b598d9b9099d8a0bf871877dbf08014f028fad5305d33cc30bc9b1a7367a582e17002b WHIRLPOOL e7337847500c3a251ed81151517c4f3d8e4a8bd7089195f22748a117aad9c12f36c22471ea84a81ca7e2c4838063dbd852b34a86cf9701749d75278bec7c40ef +DIST lastpass-cli-0.5.0.tar.gz 59237 SHA256 09e7b1e5c1520db2a34a49e7ae07e5b3a7555a4ed2490ed7b56f047065bca812 SHA512 7c34ba4cbf43b299656881766e40302edce1db27fb5eb20bed82fbd141354c7682f49d7dd114af0b1eae512e21f7b334b5bd9b820bac53aa52ad7400a579d925 WHIRLPOOL 443898d70290658900140f4262218b1923eed09a67a0aca18fb1c530a12b466b8362a1f190aaa73586e5ddfb4e843fbce9262e26d4ce2d66e38eed6e59b5820c diff --git a/app-admin/lastpass-cli/lastpass-cli-0.3.0.ebuild b/app-admin/lastpass-cli/lastpass-cli-0.3.0.ebuild new file mode 100644 index 000000000000..e1129508d83e --- /dev/null +++ b/app-admin/lastpass-cli/lastpass-cli-0.3.0.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="Interfaces with LastPass.com from the command line." +SRC_URI="https://github.com/lastpass/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +HOMEPAGE="https://github.com/lastpass/lastpass-cli" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" +IUSE="X +pinentry" + +RDEPEND=" + X? ( || ( x11-misc/xclip x11-misc/xsel ) ) + dev-libs/openssl:0 + net-misc/curl + dev-libs/libxml2 + pinentry? ( app-crypt/pinentry ) +" +DEPEND="${RDEPEND} app-text/asciidoc" + +src_prepare() { + sed -i 's/install -s/install/' Makefile || die "Could not remove stripping" +} + +src_compile() { + emake PREFIX="${EPREFIX}/usr" + emake PREFIX="${EPREFIX}/usr" doc-man +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install-doc +} diff --git a/app-admin/lastpass-cli/lastpass-cli-0.5.0.ebuild b/app-admin/lastpass-cli/lastpass-cli-0.5.0.ebuild new file mode 100644 index 000000000000..e1129508d83e --- /dev/null +++ b/app-admin/lastpass-cli/lastpass-cli-0.5.0.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="Interfaces with LastPass.com from the command line." +SRC_URI="https://github.com/lastpass/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +HOMEPAGE="https://github.com/lastpass/lastpass-cli" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" +IUSE="X +pinentry" + +RDEPEND=" + X? ( || ( x11-misc/xclip x11-misc/xsel ) ) + dev-libs/openssl:0 + net-misc/curl + dev-libs/libxml2 + pinentry? ( app-crypt/pinentry ) +" +DEPEND="${RDEPEND} app-text/asciidoc" + +src_prepare() { + sed -i 's/install -s/install/' Makefile || die "Could not remove stripping" +} + +src_compile() { + emake PREFIX="${EPREFIX}/usr" + emake PREFIX="${EPREFIX}/usr" doc-man +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install-doc +} diff --git a/app-admin/lastpass-cli/metadata.xml b/app-admin/lastpass-cli/metadata.xml new file mode 100644 index 000000000000..553062191355 --- /dev/null +++ b/app-admin/lastpass-cli/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> + <email>jdhore@gentoo.org</email> + <name>Jeff Horelick</name> + </maintainer> + <use> + <flag name="X"> + Use <pkg>x11-misc/xclip</pkg> or <pkg>x11-misc/xsel</pkg> to copy passwords to the clipboard. + </flag> + <flag name="pinentry"> + Use <pkg>app-crypt/pinentry</pkg> to prompt for passwords. + </flag> + </use> + <upstream> + <remote-id type="github">lastpass/lastpass-cli</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/lastpass/Manifest b/app-admin/lastpass/Manifest new file mode 100644 index 000000000000..b2067e930839 --- /dev/null +++ b/app-admin/lastpass/Manifest @@ -0,0 +1,3 @@ +DIST lp_linux.xpi 3965257 SHA256 1d98b3649f51e5f08a16379a73791b7e85fa5fab35b3a6190860c900788c5dbc SHA512 e39a6ada0e75dcb3bf943bce9b573bf8d22be7c07baf86f3651cbaaa5abcec7c31dd43341369b1fe562aff572befd1f15114ba030e6b9fb317bd476798d7b5e5 WHIRLPOOL 85f7eebc2f155d4beb7a1f69ef9d1e58508c76ac2807536d7a07885f395f342b218587199c9b57a77f9e54e75e1dfaf311341c16a59830c114283e542aa18767 +DIST lpchrome_linux.crx 4722909 SHA256 511fd7968bb45ab1425ca9584873f4dbf0812b63c64a4e604796cb0a76849f3f SHA512 01935a34a0be63b96556009cb50364df83599aeab6cad10d7e4b49af5a5acfeecf61171aa36f932901a42e2e0b58141e649d17525a259343fe9b2f287d413dc0 WHIRLPOOL 230f2c820d2cf8d3a937866c5c3dde8b7f05e37547180a4e666bc0bac592671f5c1d7bb84498d5bd930053e47ec80d75207dcaba1b71f307d1ea011d80e9e5f9 +DIST lplinux.tar.bz2 1523508 SHA256 535fe4ce97a55f3baf9311962a7a4812ea7a32c8a545ee1e533c0794c665abf1 SHA512 4433701df5a6c04bb914f3b342c458a28ff7cd232936f77dfec6ddd959060be1e8bf067b88e05d1c1ac69f63f1660c49c262f85515d6cf97188ea365f7bf309b WHIRLPOOL 818f00fc43944b8eb1c0f4816e82fa06be69845d1d6a3eb8de453db1647e9bfdce0ff0812ea9c0fec64c904dce1cc1fa4c514a79ead2c5e98aeb7416a8a2fb41 diff --git a/app-admin/lastpass/lastpass-3.1.61.ebuild b/app-admin/lastpass/lastpass-3.1.61.ebuild new file mode 100644 index 000000000000..cae55ad6ab16 --- /dev/null +++ b/app-admin/lastpass/lastpass-3.1.61.ebuild @@ -0,0 +1,111 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils + +DESCRIPTION="Online password manager and form filler that makes web browsing easier and more secure" +HOMEPAGE="https://lastpass.com/misc_download2.php" +# sadly, upstream has no versioned distfiles +MAINDISTFILE=lplinux.tar.bz2 +SRC_URI=" + https://lastpass.com/${MAINDISTFILE} + https://lastpass.com/lpchrome_linux.crx + firefox? ( https://lastpass.com/lp_linux.xpi )" + +LICENSE="LastPass" +SLOT="0" +KEYWORDS="-* ~x86 ~amd64" +IUSE="+chromium +firefox +chrome" +RESTRICT="strip mirror" # We can't mirror it, but we can fetch it + +DEPEND="" +RDEPEND=" + chrome? ( || ( + www-client/google-chrome + www-client/google-chrome-beta + www-client/google-chrome-unstable + ) ) + chromium? ( >=www-client/chromium-32.0.1700.102 ) + firefox? ( www-client/firefox )" +REQUIRED_USE="|| ( firefox chromium chrome )" + +LASTPASS_EXEDIR=/opt/lastpass/ + +QA_PREBUILT=" + ${LASTPASS_EXEDIR}nplastpass* + /usr/lib*/nsbrowser/plugins/libnplastpass*.so + /usr/lib*/firefox/browser/extensions/support@lastpass.com/platform/Linux_x86_64-gcc3/components/lpxpcom_x86_64.so + /usr/lib*/firefox/browser/extensions/support@lastpass.com/platform/Linux_x86-gcc3/components/lpxpcom.so +" + +S="${WORKDIR}" + +src_unpack() { + unpack ${MAINDISTFILE} + mkdir -p "${S}"/crx || die + # bug #524864: strip Chrome CRX header + # otherwise the unzip warning can be fatal in some cases + dd bs=306 skip=1 if="${DISTDIR}"/lpchrome_linux.crx of="${T}"/lpchrome_linux.zip 2>/dev/null || die + unzip -qq -o "${T}"/lpchrome_linux.zip -d "${S}"/crx || die +} + +src_install() { + # This is based on the upstream installer script that's in the tarball + bin=nplastpass + use amd64 && bin="${bin}64" + exeinto ${LASTPASS_EXEDIR} + doexe "${S}"/$bin + + # despite the name, this piece seems used by both firefox+chrome + exeinto /usr/$(get_libdir)/nsbrowser/plugins + doexe "${S}"/crx/lib${bin}.so + + cat >"${T}"/lastpass_policy.json <<-EOF + { + "ExtensionInstallSources": [ + "https://lastpass.com/*", + "https://*.lastpass.com/*", + "https://*.cloudfront.net/lastpass/*" + ] + } + EOF + cat >"${T}"/com.lastpass.nplastpass.json <<-EOF + { + "name": "com.lastpass.nplastpass", + "description": "LastPass", + "path": "${LASTPASS_EXEDIR}/$bin", + "type": "stdio", + "allowed_origins": [ + "chrome-extension://hdokiejnpimakedhajhdlcegeplioahd/", + "chrome-extension://debgaelkhoipmbjnhpoblmbacnmmgbeg/", + "chrome-extension://hnjalnkldgigidggphhmacmimbdlafdo/" + ] + } + EOF + + if use chromium; then + insinto /etc/chromium/policies/managed + doins "${T}"/lastpass_policy.json + insinto /etc/opt/chrome/native-messaging-hosts/ + doins "${T}"/com.lastpass.nplastpass.json + fi + if use chrome; then + insinto /etc/opt/chrome/policies/managed/ + doins "${T}"/lastpass_policy.json + insinto /etc/chromium/native-messaging-hosts + doins "${T}"/com.lastpass.nplastpass.json + fi + + if use firefox; then + d="$D/usr/$(get_libdir)/firefox/browser/extensions/support@lastpass.com" + mkdir -p $d || die + unzip -qq -o "${DISTDIR}/lp_linux.xpi" -d "$d" || die + fi + +} + +pkg_postinst() { + einfo "Visit https://lastpass.com/dl/inline/?full=1 to finish installing for Chrome/Chromium/Firefox" +} diff --git a/app-admin/lastpass/metadata.xml b/app-admin/lastpass/metadata.xml new file mode 100644 index 000000000000..556c09be3436 --- /dev/null +++ b/app-admin/lastpass/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>robbat2@gentoo.org</email> + <name>Robin H. Johnson</name> + </maintainer> + <longdescription lang="en"> + </longdescription> + <use> + <flag name="firefox">Support for <pkg>www-client/firefox</pkg></flag> + <flag name="chromium">Support for <pkg>www-client/chromium</pkg></flag> + <flag name="chrome">Support for <pkg>www-client/chrome</pkg></flag> + </use> +</pkgmetadata> diff --git a/app-admin/lib_users/Manifest b/app-admin/lib_users/Manifest new file mode 100644 index 000000000000..c543fce8986c --- /dev/null +++ b/app-admin/lib_users/Manifest @@ -0,0 +1 @@ +DIST lib_users-0.9.tar.gz 22992 SHA256 361db39b14b9512b438cf96b2b9978c6b5c88abbc2c0b7227940e7e816fdcf1c SHA512 d4c10398d69410fc3d48a151c446105ed232fdca9ef68c3f0f1df903739b798762d6bf958dc08472e90151560d8a625b4ab8b5f5d89521918369ceadf2b85b19 WHIRLPOOL 312aaa05b10681a0eff7997ea8d1e359bd757b888fe6fadb29ef3370cc482371d65d14e06dc6887cefda0aee3bd65232ffcd06477e536e4d2c82996c27f60425 diff --git a/app-admin/lib_users/lib_users-0.9.ebuild b/app-admin/lib_users/lib_users-0.9.ebuild new file mode 100644 index 000000000000..009c9402ab81 --- /dev/null +++ b/app-admin/lib_users/lib_users-0.9.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python{2_7,3_3,3_4} ) + +inherit python-r1 + +DESCRIPTION="Checks /proc for libraries being mapped but marked as deleted" +HOMEPAGE="http://schwarzvogel.de/software-misc.shtml" +SRC_URI="http://schwarzvogel.de/pkgs/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 hppa ppc ppc64 x86 ~amd64-linux ~x86-linux" +IUSE="test" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND="${PYTHON_DEPS} + test? ( dev-python/nose[${PYTHON_USEDEP}] )" +RDEPEND="${PYTHON_DEPS}" + +src_test() { + python_foreach_impl nosetests --verbosity=2 +} + +src_install() { + python_foreach_impl python_newscript lib_users.py lib_users + dodoc README TODO +} diff --git a/app-admin/lib_users/metadata.xml b/app-admin/lib_users/metadata.xml new file mode 100644 index 000000000000..45bc5dfa4de4 --- /dev/null +++ b/app-admin/lib_users/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> + <email>jer@gentoo.org</email> + <name>Jeroen Roovers</name> + </maintainer> + <maintainer> + <email>klausman@gentoo.org</email> + <name>Tobias Klausman</name> + </maintainer> +</pkgmetadata> diff --git a/app-admin/lnav/Manifest b/app-admin/lnav/Manifest new file mode 100644 index 000000000000..6d9b40b27af1 --- /dev/null +++ b/app-admin/lnav/Manifest @@ -0,0 +1,4 @@ +DIST lnav-0.6.1.tar.gz 371181 SHA256 a952f5e6f8d08a9b96c1219b6beac09319a6be1521d783a645cdb6b4352a7fc9 SHA512 a44a0041bf52242f03b0d9ee0551430d148faa6a967467e69619c60524d079e79b27914c9488af34b39c6a66ee0e12b1fa70b8c4bed6ef7ea5fd8d07263a6801 WHIRLPOOL 06b131bf02257f0ea00da82d49804a578392e9ad65f4d3b5faa4b4a5484b7eac834c1c5325da6c3284663987a6f54b6ace8a101b75b8b127a7dc46fc85774e63 +DIST lnav-0.6.2.tar.gz 380961 SHA256 3ae0d2761b9e040c6de69b4dfeff1ce866fcbb8c8c43859b0aa172b5e56fda42 SHA512 652ba9bce0a3b4489a8f6b6619aefd7cdc3b97c4b9a7c8fd25f791a06648d97521472479780c4b883e31bd9095443cccc14b9ec7d3f17c1692b9b33c41f37dc2 WHIRLPOOL c02190de56253d63b8caddb7f5423ef192686109f51a417b0fbad35d8f13c94ef955a81cc1f034947c88e0abf2b10234f8eb244bfdf16a698d4f0b95e7ca3944 +DIST lnav-0.7.0.tar.gz 428474 SHA256 c018385ca648a0676bd759c472305146909e92662af4db251b2c8a44df66245a SHA512 ab8eff97c8714718fe78171452ba3e3a9f616ba2023855d90c95d5bc8316e1180f448f2344a4612501ed100de3394de9545e4e76647b9b8c1e65fc4e6e62a6f4 WHIRLPOOL 2dc9eda1d8d1fcf15973060e9c7d83c4c012f61ca1261733057666d0952e8caad0357ac8bb2f1114e32a929912829ee2307a35150ddb3c342f8b53dcb2bcf088 +DIST lnav-0.7.1.tar.gz 460627 SHA256 4068ad4b45651146a5568c7bbb0585e35f62fdfa7dd983c0047fceee4bb49fb3 SHA512 3732b1df2b87ac30090b4e4f183d65beba5d074d071cd67ef6acdd9614951001548cd07b0e373158a1365989b1f2767c82225730b9c3ff09f7d56b1e4bcfd708 WHIRLPOOL fd88de5085829f3e36efa4a80734030eb8483b36e2133c9845fcc0472dab878e276ea393f732872c6ee6d03e7a2d3c9a30f500b2991d7d7d89631d0ff016d464 diff --git a/app-admin/lnav/lnav-0.6.1.ebuild b/app-admin/lnav/lnav-0.6.1.ebuild new file mode 100644 index 000000000000..d6f9c4c4b153 --- /dev/null +++ b/app-admin/lnav/lnav-0.6.1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit toolchain-funcs + +DESCRIPTION="A curses-based tool for viewing and analyzing log files" +HOMEPAGE="http://lnav.org" +SRC_URI="https://github.com/tstack/lnav/releases/download/v${PV}/${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="unicode" + +RDEPEND=" + app-arch/bzip2 + dev-db/sqlite:3 + dev-libs/libpcre[cxx] + sys-libs/ncurses[unicode?] + sys-libs/readline:0 + sys-libs/zlib" +DEPEND="${RDEPEND}" + +src_configure() { + econf \ + --disable-static \ + $(use_with unicode ncursesw) +} + +src_compile() { + emake AR="$(tc-getAR)" +} diff --git a/app-admin/lnav/lnav-0.6.2.ebuild b/app-admin/lnav/lnav-0.6.2.ebuild new file mode 100644 index 000000000000..d6f9c4c4b153 --- /dev/null +++ b/app-admin/lnav/lnav-0.6.2.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit toolchain-funcs + +DESCRIPTION="A curses-based tool for viewing and analyzing log files" +HOMEPAGE="http://lnav.org" +SRC_URI="https://github.com/tstack/lnav/releases/download/v${PV}/${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="unicode" + +RDEPEND=" + app-arch/bzip2 + dev-db/sqlite:3 + dev-libs/libpcre[cxx] + sys-libs/ncurses[unicode?] + sys-libs/readline:0 + sys-libs/zlib" +DEPEND="${RDEPEND}" + +src_configure() { + econf \ + --disable-static \ + $(use_with unicode ncursesw) +} + +src_compile() { + emake AR="$(tc-getAR)" +} diff --git a/app-admin/lnav/lnav-0.7.0.ebuild b/app-admin/lnav/lnav-0.7.0.ebuild new file mode 100644 index 000000000000..d6f9c4c4b153 --- /dev/null +++ b/app-admin/lnav/lnav-0.7.0.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit toolchain-funcs + +DESCRIPTION="A curses-based tool for viewing and analyzing log files" +HOMEPAGE="http://lnav.org" +SRC_URI="https://github.com/tstack/lnav/releases/download/v${PV}/${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="unicode" + +RDEPEND=" + app-arch/bzip2 + dev-db/sqlite:3 + dev-libs/libpcre[cxx] + sys-libs/ncurses[unicode?] + sys-libs/readline:0 + sys-libs/zlib" +DEPEND="${RDEPEND}" + +src_configure() { + econf \ + --disable-static \ + $(use_with unicode ncursesw) +} + +src_compile() { + emake AR="$(tc-getAR)" +} diff --git a/app-admin/lnav/lnav-0.7.1.ebuild b/app-admin/lnav/lnav-0.7.1.ebuild new file mode 100644 index 000000000000..d6f9c4c4b153 --- /dev/null +++ b/app-admin/lnav/lnav-0.7.1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit toolchain-funcs + +DESCRIPTION="A curses-based tool for viewing and analyzing log files" +HOMEPAGE="http://lnav.org" +SRC_URI="https://github.com/tstack/lnav/releases/download/v${PV}/${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="unicode" + +RDEPEND=" + app-arch/bzip2 + dev-db/sqlite:3 + dev-libs/libpcre[cxx] + sys-libs/ncurses[unicode?] + sys-libs/readline:0 + sys-libs/zlib" +DEPEND="${RDEPEND}" + +src_configure() { + econf \ + --disable-static \ + $(use_with unicode ncursesw) +} + +src_compile() { + emake AR="$(tc-getAR)" +} diff --git a/app-admin/lnav/metadata.xml b/app-admin/lnav/metadata.xml new file mode 100644 index 000000000000..e0f9d3216868 --- /dev/null +++ b/app-admin/lnav/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> + <email>radhermit@gentoo.org</email> + <name>Tim Harder</name> + </maintainer> + <upstream> + <remote-id type="github">tstack/lnav</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/localepurge/Manifest b/app-admin/localepurge/Manifest new file mode 100644 index 000000000000..3aac533c2f03 --- /dev/null +++ b/app-admin/localepurge/Manifest @@ -0,0 +1 @@ +DIST localepurge-0.5.4.tbz2 5038 SHA256 7aca13f6b44af74480c611c0dd63b6fe05c6084bfd3f08bfd347e7914af2ffaa SHA512 246acb8ef497a2f607ee8545c4d46fd5a1957189eb0b705bf6bcd1cd35ba5b48c7e090db480519c8e3a7427b5ad5a2c020b40232a8fbd0840f9677a6c7af600e WHIRLPOOL d1da9a6a4d5fca92e7353e6ed0e6b916b8529ad7f003a0af02b2403ceb33bdd71769b3bd1a3c37095167a0e8b3811a5b6774a089f96eedd76edb4ebf46a992d4 diff --git a/app-admin/localepurge/files/localepurge-0.5.4-directorysum.patch b/app-admin/localepurge/files/localepurge-0.5.4-directorysum.patch new file mode 100644 index 000000000000..f837d2845d54 --- /dev/null +++ b/app-admin/localepurge/files/localepurge-0.5.4-directorysum.patch @@ -0,0 +1,20 @@ +--- localepurge.orig 2012-12-04 23:15:29.422756767 +0100 ++++ localepurge 2012-12-04 23:16:13.313756491 +0100 +@@ -198,7 +198,7 @@ + + if [ "$SHOWFREEDSPACE" = "enabled" ]; then + if test $SPACETMP -gt 0 ; then +- LOCALETOTAL=$SPACETMP ++ LOCALETOTAL=$(($LOCALETOTAL + $SPACETMP)) + einfo "localepurge: Disk space freed in $LOCALEDIR: ${BOLD}"$SPACETMP"K${NORMAL}" + fi + SPACETMP=0 +@@ -230,7 +230,7 @@ + + if [ "$SHOWFREEDSPACE" = "enabled" ]; then + if test $SPACETMP -gt 0 ; then +- MANTOTAL=$SPACETMP ++ MANTOTAL=$(($MANTOTAL + $SPACETMP)) + einfo "localepurge: Disk space freed in $MANPAGEDIR: ${BOLD}"$SPACETMP"K${NORMAL}" + fi + SPACETMP=0 diff --git a/app-admin/localepurge/files/localepurge-0.5.4-evaltotal.patch b/app-admin/localepurge/files/localepurge-0.5.4-evaltotal.patch new file mode 100644 index 000000000000..df80a7f9c8a6 --- /dev/null +++ b/app-admin/localepurge/files/localepurge-0.5.4-evaltotal.patch @@ -0,0 +1,11 @@ +--- localepurge.original 2012-12-02 18:32:35.000000000 +0400 ++++ localepurge 2013-01-14 19:31:35.327821252 +0400 +@@ -254,7 +254,7 @@ + + # Calculating and reporting total disk space freed: + if [ "$SHOWFREEDSPACE" = "enabled" ]; then +- let TOTAL=$LOCALETOTAL+$MANTOTAL ++ TOTAL=$(($LOCALETOTAL+$MANTOTAL)) + if test $TOTAL -lt 0; then + TOTAL=0 + fi diff --git a/app-admin/localepurge/files/localepurge-0.5.4-parentdir.patch b/app-admin/localepurge/files/localepurge-0.5.4-parentdir.patch new file mode 100644 index 000000000000..2b052ddf4d99 --- /dev/null +++ b/app-admin/localepurge/files/localepurge-0.5.4-parentdir.patch @@ -0,0 +1,18 @@ +--- localepurge.orig 2012-12-04 23:08:17.754765708 +0100 ++++ localepurge 2012-12-04 23:09:02.397765264 +0100 +@@ -165,7 +165,14 @@ + ${ACTION} `find ${REMOVEPATH} -type f -o -type l` + + if [ "$SHOWFREEDSPACE" = "enabled" ]; then +- SPACEAFTER=$(df -P ${REMOVEPATH} | awk '{if ( NR==2 ) { print $3 }}') ++ # if symlink, REMOVEPATH could be removed ++ # check from parentdir then ++ if [ -d ${REMOVEPATH} ]; then ++ SPACEAFTER=$(df -P ${REMOVEPATH} | awk '{if ( NR==2 ) { print $3 }}') ++ else ++ SPACEAFTER=$(df -P ${REMOVEPATH%/*} | awk '{if ( NR==2 ) { print $3 }}') ++ fi ++ + SPACESUM=$(($SPACEBEFORE - $SPACEAFTER)) + + if test $SPACESUM -gt 0 ; then diff --git a/app-admin/localepurge/files/localepurge-0.5.4-prefix.patch b/app-admin/localepurge/files/localepurge-0.5.4-prefix.patch new file mode 100644 index 000000000000..66ebbf09ac96 --- /dev/null +++ b/app-admin/localepurge/files/localepurge-0.5.4-prefix.patch @@ -0,0 +1,58 @@ +--- localepurge.orig 2012-12-02 19:56:18.000000000 +0100 ++++ localepurge 2012-12-02 20:00:38.000000000 +0100 +@@ -1,14 +1,14 @@ +-#!/bin/bash ++#!@GENTOO_PORTAGE_EPREFIX@/bin/bash + + # Deleting all locale files on system + # *not* listed in /etc/locale.nopurge + + set -e + +-LOCALEDIRS="/usr/share/locale /usr/local/share/locale /usr/kde/?.?/share/locale /opt/sun-jdk-*/jre/lib/locale /opt/sun-jre-bin-*/lib/locale /usr/lib/locale /usr/share/binutils-data/*/*/locale /usr/share/gcc-data/*/*/locale" +-MANPAGEDIRS="/usr/share/man /usr/man /usr/local/share/man /usr/kde/?.?/share/man /usr/kde/?.?/man /opt/sun-jdk-*/man /opt/sun-jre-bin-*/man" +-LOCALELIST="/var/cache/localepurge/localelist" +-CONFIGFILE="/etc/locale.nopurge" ++LOCALEDIRS="@GENTOO_PORTAGE_EPREFIX@/usr/share/locale @GENTOO_PORTAGE_EPREFIX@/usr/local/share/locale @GENTOO_PORTAGE_EPREFIX@/usr/kde/?.?/share/locale @GENTOO_PORTAGE_EPREFIX@/opt/sun-jdk-*/jre/lib/locale @GENTOO_PORTAGE_EPREFIX@/opt/sun-jre-bin-*/lib/locale @GENTOO_PORTAGE_EPREFIX@/usr/lib/locale @GENTOO_PORTAGE_EPREFIX@/usr/share/binutils-data/*/*/locale @GENTOO_PORTAGE_EPREFIX@/usr/share/gcc-data/*/*/locale" ++MANPAGEDIRS="@GENTOO_PORTAGE_EPREFIX@/usr/share/man @GENTOO_PORTAGE_EPREFIX@/usr/man @GENTOO_PORTAGE_EPREFIX@/usr/local/share/man @GENTOO_PORTAGE_EPREFIX@/usr/kde/?.?/share/man @GENTOO_PORTAGE_EPREFIX@/usr/kde/?.?/man @GENTOO_PORTAGE_EPREFIX@/opt/sun-jdk-*/man @GENTOO_PORTAGE_EPREFIX@/opt/sun-jre-bin-*/man" ++LOCALELIST="@GENTOO_PORTAGE_EPREFIX@/var/cache/localepurge/localelist" ++CONFIGFILE="@GENTOO_PORTAGE_EPREFIX@/etc/locale.nopurge" + VERSION="0.5.4" + + LOCALETOTAL=0 +@@ -23,7 +23,7 @@ + BRACKET=$'\e[34;01m' + BOLD=$'\e[1m' + +-ACTION="/bin/rm -vf" ++ACTION="@GENTOO_PORTAGE_EPREFIX@/bin/rm -vf" + + eerror () { + echo -e " ${BAD}*${NORMAL} $*" 2> /dev/stderr +@@ -43,7 +43,7 @@ + print() { + for x in $@; do + if [ "${x}" = "" ]; then return 0 +- else /bin/echo $x ++ else @GENTOO_PORTAGE_EPREFIX@/bin/echo $x + fi + done + } +@@ -184,7 +184,7 @@ + einfo "localepurge: processing locale files in ${LOCALEDIR} ..." + fi + +- for LOCALE in `/bin/ls ${LOCALEDIR}`; do ++ for LOCALE in `@GENTOO_PORTAGE_EPREFIX@/bin/ls ${LOCALEDIR}`; do + if echo "${PURGELIST}" | grep -xq ${LOCALE}; then + if [ -d ${LOCALEDIR}/${LOCALE}/LC_MESSAGES ]; then + if [ "${LIST}" = "enabled" ]; then +@@ -216,7 +216,7 @@ + einfo "localepurge: processing man pages in ${MANPAGEDIR} ..." + fi + +- for LOCALE in `/bin/ls ${MANPAGEDIR} | grep -v ^man[1-9]`; do ++ for LOCALE in `@GENTOO_PORTAGE_EPREFIX@/bin/ls ${MANPAGEDIR} | grep -v ^man[1-9]`; do + if echo "${PURGELIST}" | grep -xq ${LOCALE}; then + if [ -d ${MANPAGEDIR}/${LOCALE} ]; then + if [ "${LIST}" = "enabled" ]; then diff --git a/app-admin/localepurge/localepurge-0.5.4-r2.ebuild b/app-admin/localepurge/localepurge-0.5.4-r2.ebuild new file mode 100644 index 000000000000..46a15369f29b --- /dev/null +++ b/app-admin/localepurge/localepurge-0.5.4-r2.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils prefix + +DESCRIPTION="Script to recover diskspace wasted for unneeded locale files and localized man pages" +HOMEPAGE="http://gentoo.org +http://cgit.gentoo.org/proj/localepurge.git" +SRC_URI="http://dev.gentoo.org/~hwoarang/distfiles/${P}.tbz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos" +IUSE="" + +DEPEND="" +RDEPEND="app-shells/bash" + +S=${WORKDIR}/${PN} + +src_prepare() { + epatch "${FILESDIR}"/${P}-prefix.patch + # 164544 + epatch "${FILESDIR}"/${P}-directorysum.patch + # 445910 + epatch "${FILESDIR}"/${P}-parentdir.patch + # 452208 + epatch "${FILESDIR}"/${P}-evaltotal.patch + eprefixify ${PN} +} + +src_install() { + insinto /var/cache/${PN} + doins defaultlist + dosym defaultlist /var/cache/${PN}/localelist + insinto /etc + doins locale.nopurge + dobin ${PN} + doman ${PN}.8 +} diff --git a/app-admin/localepurge/metadata.xml b/app-admin/localepurge/metadata.xml new file mode 100644 index 000000000000..2d52d39e1dca --- /dev/null +++ b/app-admin/localepurge/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>proxy-maintainers</herd> +<maintainer> + <email>wimmuskee@gmail.com</email> + <name>Wim Muskee</name> +</maintainer> +<longdescription> +Just a simple tool to erase all uneeded locale and man files usually generated for USE="nls" +</longdescription> +</pkgmetadata> diff --git a/app-admin/logcheck/Manifest b/app-admin/logcheck/Manifest new file mode 100644 index 000000000000..20cabea3f255 --- /dev/null +++ b/app-admin/logcheck/Manifest @@ -0,0 +1,3 @@ +DIST logcheck_1.3.15.tar.gz 162397 SHA256 b29b4753940a9130b5f19f60d2d89af23be220674625f4bd2fb1d40945d0b9e5 SHA512 45c9e779fc1d1f417aea3f02e70eff4dbc7cd0b45e04f7efc458a4552866686cbb095d0b5ebaf32a57d423a3753b4573277a464f5539789350b087569e025abf WHIRLPOOL 7d4c1975453427eb0897b9f05670565643fd36c44204b23470adf1eac17b19ec77aaeae3523b7b1844f20acf39da0d736386b80bfc0f4059c2099ff816ddd08c +DIST logcheck_1.3.16.tar.xz 131832 SHA256 3eea6f4d25b5cba59d30b8edd35e392389b8e4966d0aceac11c220e98426b8e6 SHA512 1dca1c571e01b2816b7d8ac7a7b5b7e4e250b8c298299c707d86e3c18bd0583b1afd72ff80e8ff98259be5eb46b719ce1e5b97377f42a1982ff292c5a92569c4 WHIRLPOOL 85d25f871dc0e31a49d518e292041b98b989957f778bd74a62aac331e1672cd5f1a346de41174f9377ee930a590faf04736f51eb5c6d6b404e22642572aa54d3 +DIST logcheck_1.3.17.tar.xz 130956 SHA256 c2d3fc323e8c6555e91d956385dbfd0f67b55872ed0f6a7ad8ad2526a9faf03a SHA512 e4a30b6ccd7a9f0f51354b1a6e577f6a3837e3db078f61b3d3ceaf630a1f1eeae03324e6ec58307f8f723dbd017e1543c15f7dc34e50c0eeb9ee0b160b2c879d WHIRLPOOL 21db3f57a07cf416a313ccdb393233c47e30c3675870d7fc1b6024eaa54db6df3542a7d3f40d6fc5c3174593cd910efbac71cd86b1865f969e8ca6dd0523e217 diff --git a/app-admin/logcheck/files/logcheck.cron b/app-admin/logcheck/files/logcheck.cron new file mode 100644 index 000000000000..3b3f4fcf62bd --- /dev/null +++ b/app-admin/logcheck/files/logcheck.cron @@ -0,0 +1,10 @@ +#!/bin/bash + +set -e + +if [ ! -d /var/lock/logcheck ]; then + mkdir -p /var/lock/logcheck +fi +chown -R logcheck:logcheck /var/lock/logcheck + +su -s /bin/bash -c /usr/sbin/logcheck logcheck diff --git a/app-admin/logcheck/logcheck-1.3.15-r1.ebuild b/app-admin/logcheck/logcheck-1.3.15-r1.ebuild new file mode 100644 index 000000000000..9d135618f12d --- /dev/null +++ b/app-admin/logcheck/logcheck-1.3.15-r1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit user + +DESCRIPTION="Mails anomalies in the system logfiles to the administrator" +HOMEPAGE="http://packages.debian.org/sid/logcheck" +SRC_URI="mirror://debian/pool/main/l/${PN}/${PN}_${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc ~sparc x86" +IUSE="" + +DEPEND="" +RDEPEND="!app-admin/logsentry + app-misc/lockfile-progs + dev-lang/perl + dev-perl/mime-construct + virtual/mailx + ${DEPEND}" + +pkg_setup() { + enewgroup logcheck + enewuser logcheck -1 -1 -1 logcheck +} + +src_install() { + emake DESTDIR="${D}" install + keepdir /var/lib/logcheck + dodoc AUTHORS CHANGES CREDITS TODO docs/README.* + doman docs/logtail.8 docs/logtail2.8 + + exeinto /etc/cron.hourly + doexe "${FILESDIR}/${PN}.cron" +} + +pkg_postinst() { + chown -R logcheck:logcheck /etc/logcheck /var/lib/logcheck || die + + elog "Please read the guide ad http://www.gentoo.org/doc/en/logcheck.xml" + elog "for installation instructions." +} diff --git a/app-admin/logcheck/logcheck-1.3.15-r2.ebuild b/app-admin/logcheck/logcheck-1.3.15-r2.ebuild new file mode 100644 index 000000000000..b8e1b1d47fbb --- /dev/null +++ b/app-admin/logcheck/logcheck-1.3.15-r2.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit user + +DESCRIPTION="Mails anomalies in the system logfiles to the administrator" +HOMEPAGE="http://packages.debian.org/sid/logcheck" +SRC_URI="mirror://debian/pool/main/l/${PN}/${PN}_${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc ~sparc x86" +IUSE="" + +DEPEND="" +RDEPEND="!app-admin/logsentry + app-misc/lockfile-progs + dev-lang/perl + dev-perl/mime-construct + virtual/mailx + ${DEPEND}" + +pkg_setup() { + enewgroup logcheck + enewuser logcheck -1 -1 -1 logcheck +} + +src_install() { + emake DESTDIR="${D}" install + + # Do not install /var/lock, bug #449968 . Use rmdir to make sure + # the directories removed are empty. + rmdir "${D}/var/lock/logcheck" || die + rmdir "${D}/var/lock" || die + + keepdir /var/lib/logcheck + dodoc AUTHORS CHANGES CREDITS TODO docs/README.* + doman docs/logtail.8 docs/logtail2.8 + + exeinto /etc/cron.hourly + doexe "${FILESDIR}/${PN}.cron" +} + +pkg_postinst() { + chown -R logcheck:logcheck /etc/logcheck /var/lib/logcheck || die + + elog "Please read the guide ad http://www.gentoo.org/doc/en/logcheck.xml" + elog "for installation instructions." +} diff --git a/app-admin/logcheck/logcheck-1.3.16.ebuild b/app-admin/logcheck/logcheck-1.3.16.ebuild new file mode 100644 index 000000000000..8d23d6d9fada --- /dev/null +++ b/app-admin/logcheck/logcheck-1.3.16.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit user + +DESCRIPTION="Mails anomalies in the system logfiles to the administrator" +HOMEPAGE="http://packages.debian.org/sid/logcheck" +SRC_URI="mirror://debian/pool/main/l/${PN}/${PN}_${PV}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="" + +DEPEND="" +RDEPEND="!app-admin/logsentry + app-misc/lockfile-progs + dev-lang/perl + dev-perl/mime-construct + virtual/mailx + ${DEPEND}" + +pkg_setup() { + enewgroup logcheck + enewuser logcheck -1 -1 -1 logcheck +} + +src_install() { + emake DESTDIR="${D}" install + + # Do not install /var/lock, bug #449968 . Use rmdir to make sure + # the directories removed are empty. + rmdir "${D}/var/lock/logcheck" || die + rmdir "${D}/var/lock" || die + + keepdir /var/lib/logcheck + dodoc AUTHORS CHANGES CREDITS TODO docs/README.* + doman docs/logtail.8 docs/logtail2.8 + + exeinto /etc/cron.hourly + doexe "${FILESDIR}/${PN}.cron" +} + +pkg_postinst() { + chown -R logcheck:logcheck /etc/logcheck /var/lib/logcheck || die + + elog "Please read the guide ad http://www.gentoo.org/doc/en/logcheck.xml" + elog "for installation instructions." +} diff --git a/app-admin/logcheck/logcheck-1.3.17.ebuild b/app-admin/logcheck/logcheck-1.3.17.ebuild new file mode 100644 index 000000000000..50f0fc71c2f8 --- /dev/null +++ b/app-admin/logcheck/logcheck-1.3.17.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit user + +DESCRIPTION="Mails anomalies in the system logfiles to the administrator" +HOMEPAGE="http://packages.debian.org/sid/logcheck" +SRC_URI="mirror://debian/pool/main/l/${PN}/${PN}_${PV}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="" + +DEPEND="" +RDEPEND="!app-admin/logsentry + app-misc/lockfile-progs + dev-lang/perl + dev-perl/mime-construct + virtual/mailx + ${DEPEND}" + +pkg_setup() { + enewgroup logcheck + enewuser logcheck -1 -1 -1 logcheck +} + +src_install() { + emake DESTDIR="${D}" install + + # Do not install /var/lock, bug #449968 . Use rmdir to make sure + # the directories removed are empty. + rmdir "${D}/var/lock/logcheck" || die + rmdir "${D}/var/lock" || die + + keepdir /var/lib/logcheck + dodoc AUTHORS CHANGES CREDITS TODO docs/README.* + doman docs/logtail.8 docs/logtail2.8 + + exeinto /etc/cron.hourly + doexe "${FILESDIR}/${PN}.cron" +} + +pkg_postinst() { + chown -R logcheck:logcheck /etc/logcheck /var/lib/logcheck || die + + elog "Please read the guide ad http://www.gentoo.org/doc/en/logcheck.xml" + elog "for installation instructions." +} diff --git a/app-admin/logcheck/metadata.xml b/app-admin/logcheck/metadata.xml new file mode 100644 index 000000000000..d047926ffe02 --- /dev/null +++ b/app-admin/logcheck/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> + <email>phajdan.jr@gentoo.org</email> + <name>Pawel Hajdan jr</name> + </maintainer> +</pkgmetadata> diff --git a/app-admin/logmon/Manifest b/app-admin/logmon/Manifest new file mode 100644 index 000000000000..4c54202c9454 --- /dev/null +++ b/app-admin/logmon/Manifest @@ -0,0 +1 @@ +DIST LogMon-0.4.4.tar.bz2 65975 SHA256 9b7192c651069cc7d98508b25841610b2cd7a318cbf3b1b55564ae6f0d5468f2 SHA512 9ddbccfea0cae3d7fa6ffa9576f0030b6fb66e0dca152fb5242e7bd19ce319e922264720fa44f6b65319f8b25ad9e208a01434b94c629fa737bdd82ea22a4fac WHIRLPOOL ffec8263e1559a22088bb228d075ee8919c577ef21267b2260eed96d43258a6e850be1194ae26727700f0dcaf88e8bc5017396a83748306f6a5956f1e4dd23d0 diff --git a/app-admin/logmon/files/logmon-0.4.4-char2int.diff b/app-admin/logmon/files/logmon-0.4.4-char2int.diff new file mode 100644 index 000000000000..f460d182ed00 --- /dev/null +++ b/app-admin/logmon/files/logmon-0.4.4-char2int.diff @@ -0,0 +1,11 @@ +--- a/Main.cc ++++ b/Main.cc +@@ -264,7 +264,7 @@ + { + (void) signal(SIGINT, sig_int); + +- char c; ++ int c; + + #ifdef __DEBUG__ + ferr = fopen("err.txt","w"); diff --git a/app-admin/logmon/files/logmon-0.4.4-gcc43.patch b/app-admin/logmon/files/logmon-0.4.4-gcc43.patch new file mode 100644 index 000000000000..de58b5a35798 --- /dev/null +++ b/app-admin/logmon/files/logmon-0.4.4-gcc43.patch @@ -0,0 +1,14 @@ +--- a/LineManip.cc ++++ b/LineManip.cc +@@ -3,10 +3,11 @@ + // + + #include <unistd.h> + #include <ncurses.h> + #include <ctype.h> ++#include <cstdlib> + + #include "LineManip.h" + #include "Util.h" + + #ifdef __DEBUG__ diff --git a/app-admin/logmon/files/logmon-0.4.4-maintainer-mode.patch b/app-admin/logmon/files/logmon-0.4.4-maintainer-mode.patch new file mode 100644 index 000000000000..6f19ade7c9ad --- /dev/null +++ b/app-admin/logmon/files/logmon-0.4.4-maintainer-mode.patch @@ -0,0 +1,15 @@ +--- a/configure.in ++++ b/configure.in +@@ -1,11 +1,11 @@ + dnl Process this file with autoconf to produce a configure script. + AC_INIT(Main.cc) + + + AM_INIT_AUTOMAKE(logmon, 0.4.4) +- ++AM_MAINTAINER_MODE + AC_CONFIG_HEADER(config.h) + + dnl Checks for programs. + AC_PROG_AWK + AC_PROG_CXX diff --git a/app-admin/logmon/files/logmon-0.4.4-tinfo.patch b/app-admin/logmon/files/logmon-0.4.4-tinfo.patch new file mode 100644 index 000000000000..4aa37b881ed2 --- /dev/null +++ b/app-admin/logmon/files/logmon-0.4.4-tinfo.patch @@ -0,0 +1,10 @@ +--- a/configure.in ++++ b/configure.in +@@ -16,6 +16,7 @@ + dnl Checks for libraries. + dnl Replace `main' with a function in -lncurses: + AC_CHECK_LIB(ncurses, initscr) ++AC_SEARCH_LIBS(halfdelay, tinfo) + + dnl Checks for header files. + AC_HEADER_STDC diff --git a/app-admin/logmon/logmon-0.4.4-r1.ebuild b/app-admin/logmon/logmon-0.4.4-r1.ebuild new file mode 100644 index 000000000000..40cfbf8c9842 --- /dev/null +++ b/app-admin/logmon/logmon-0.4.4-r1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils autotools + +MY_P="LogMon-${PV}" +DESCRIPTION="Split-screen terminal/ncurses based log viewer" +HOMEPAGE="http://www.edespot.com/code/LogMon/" +SRC_URI="http://www.edespot.com/code/LogMon/${MY_P}.tar.bz2" + +S="${WORKDIR}/${MY_P}" + +LICENSE="Artistic" +SLOT="0" +KEYWORDS="amd64 ppc ppc64 x86" + +DEPEND="sys-libs/ncurses" +RDEPEND="${DEPEND}" + +src_prepare() { + # Bug 119403 - should be in upstream next release + epatch "${FILESDIR}"/${P}-char2int.diff + + # Bug 250602, gcc43 fix + epatch "${FILESDIR}"/${P}-gcc43.patch + + # Fixes maintainer-mode detected. + epatch "${FILESDIR}"/${P}-maintainer-mode.patch + + epatch "${FILESDIR}"/${P}-tinfo.patch + + eautoreconf +} + +src_install() { + dobin logmon + + dodoc AUTHORS ChangeLog README TODO +} diff --git a/app-admin/logmon/metadata.xml b/app-admin/logmon/metadata.xml new file mode 100644 index 000000000000..53a0caef5d82 --- /dev/null +++ b/app-admin/logmon/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> + <email>pinkbyte@gentoo.org</email> + <name>Sergey Popov</name> + </maintainer> + <longdescription> + Split-screen terminal/ncurses based log viewer. + </longdescription> +</pkgmetadata> diff --git a/app-admin/logrotate/Manifest b/app-admin/logrotate/Manifest new file mode 100644 index 000000000000..d4275529c9f6 --- /dev/null +++ b/app-admin/logrotate/Manifest @@ -0,0 +1,3 @@ +DIST logrotate-3.8.8.tar.gz 72014 SHA256 46a1510ef4a1f4359edd5f361112cfd1523942e85ff28e6cbb0c81bad1829d0f SHA512 2b7b5fe587b3a5cbe98b8035a541b5e272e6e4c40669f65ff6c43d1524b686eca9abc0b93bc00c8eb6da4d189f14a9b79905fcc0fadb914276d884ad7493bb4b WHIRLPOOL b145d51cdcf0214e4f4b6a97aed7b9e1375c2848efecbc16181eaa6e1105ac8892c57248c89b92eb080d6cd6b23958085f39a894df7f5dce0bea6516e2d583c4 +DIST logrotate-3.8.9.tar.gz 77408 SHA256 700ed7ce9072a1cca324779a74797dfaefdae37ac50a817134b947c4ded1dfa7 SHA512 342533f321a1d77c0ca389fd0a393377ba73f10654aae163cbd35f8d5df25673f1aa6e44d0af42be5419d152a7dae11024d9005076bce0a3b3dad1f0e12b9c0d WHIRLPOOL 005621b5dc7f6954e505876eece76e3adf03b9b89b724e5c28b845c8af3ebb8e978d20e3a82c8a503c32bfd8758517625207e23518d6d08068e237c22fe7212d +DIST logrotate-3.9.1.tar.gz 79061 SHA256 022769e3288c80981559a8421703c88e8438b447235e36dd3c8e97cd94c52545 SHA512 e6da7c7f067befaf2441e9c6ce77e53cf5ddb4f56cc3304c3e50873b6f20c68520f4a0e50ec466cbebcbed20bfd77bf6dfc489975a8131e9573fb19856c0fe28 WHIRLPOOL 9b3558bb03c6c95f8f386ea75ca09bfda802ae4c45b9ef8408692e3aa7a2ee57447cf15ce04d0289946b9cae2266acb5509d8151d15ac6ea0ad9113aeb32dc17 diff --git a/app-admin/logrotate/files/logrotate-3.8.8-Werror.patch b/app-admin/logrotate/files/logrotate-3.8.8-Werror.patch new file mode 100644 index 000000000000..db965296d9e4 --- /dev/null +++ b/app-admin/logrotate/files/logrotate-3.8.8-Werror.patch @@ -0,0 +1,11 @@ +--- a/Makefile.am ++++ b/Makefile.am +@@ -1,7 +1,7 @@ + MAN = logrotate.8 + MAN5 = logrotate.conf.5 + +-AM_CFLAGS = -Wall -Werror ++AM_CFLAGS = -Wall + sbin_PROGRAMS = logrotate + logrotate_SOURCES = logrotate.c log.c config.c basenames.c + diff --git a/app-admin/logrotate/files/logrotate-3.8.8-atomic-create.patch b/app-admin/logrotate/files/logrotate-3.8.8-atomic-create.patch new file mode 100644 index 000000000000..281612531262 --- /dev/null +++ b/app-admin/logrotate/files/logrotate-3.8.8-atomic-create.patch @@ -0,0 +1,45 @@ +diff -Nuar a/logrotate.c b/logrotate.c +--- a/logrotate.c 2014-10-16 13:12:35.000000000 +0200 ++++ b/logrotate.c 2014-11-04 20:26:46.080067315 +0100 +@@ -359,15 +359,20 @@ + int createOutputFile(char *fileName, int flags, struct stat *sb, acl_type acl, int force_mode) + { + int fd; +- struct stat sb_create; +- int acl_set = 0; +- +- fd = open(fileName, (flags | O_EXCL | O_NOFOLLOW), +- (S_IRUSR | S_IWUSR) & sb->st_mode); ++ int acl_set = 0; ++ struct stat sb_create; ++ char template[PATH_MAX + 1]; ++ char *fname; ++ mode_t umask_value; ++ snprintf(template, PATH_MAX, "%s/logrotate_temp.XXXXXX", ourDirName(fileName)); ++ umask_value = umask(0000); ++ fname = mktemp(template); ++ fd = open(fname, (flags | O_EXCL | O_NOFOLLOW), (S_IRUSR | S_IWUSR) & sb->st_mode); ++ umask(umask_value); + + if (fd < 0) { +- message(MESS_ERROR, "error creating output file %s: %s\n", +- fileName, strerror(errno)); ++ message(MESS_ERROR, "error creating unique temp file: %s\n", ++ strerror(errno)); + return -1; + } + if (fchmod(fd, (S_IRUSR | S_IWUSR) & sb->st_mode)) { +@@ -418,6 +423,13 @@ + } + } + ++ if (rename(template, fileName)) { ++ message(MESS_ERROR, "error renaming temp file to %s: %s\n", ++ fileName, strerror(errno)); ++ close(fd); ++ return -1; ++ } ++ + return fd; + } + diff --git a/app-admin/logrotate/files/logrotate-3.8.8-fbsd.patch b/app-admin/logrotate/files/logrotate-3.8.8-fbsd.patch new file mode 100644 index 000000000000..ff10211de83a --- /dev/null +++ b/app-admin/logrotate/files/logrotate-3.8.8-fbsd.patch @@ -0,0 +1,57 @@ +diff -Nuar a/config.c b/config.c +--- a/config.c 2014-10-16 13:12:35.000000000 +0200 ++++ b/config.c 2014-11-04 19:22:31.750055957 +0100 +@@ -1,6 +1,6 @@ + #include <sys/queue.h> + /* Alloca is defined in stdlib.h in NetBSD */ +-#ifndef __NetBSD__ ++#if !defined(__NetBSD__) && !defined(__FreeBSD__) + #include <alloca.h> + #endif + #include <limits.h> +@@ -24,6 +24,10 @@ + #include <fnmatch.h> + #include <sys/mman.h> + ++#if !defined(PATH_MAX) && defined(__FreeBSD__) ++#include <sys/param.h> ++#endif ++ + #include "basenames.h" + #include "log.h" + #include "logrotate.h" +diff -Nuar a/logrotate.c b/logrotate.c +--- a/logrotate.c 2014-10-16 13:12:35.000000000 +0200 ++++ b/logrotate.c 2014-11-04 19:25:35.440056498 +0100 +@@ -1,6 +1,6 @@ + #include <sys/queue.h> + /* alloca() is defined in stdlib.h in NetBSD */ +-#ifndef __NetBSD__ ++#if !defined(__NetBSD__) && !defined(__FreeBSD__) + #include <alloca.h> + #endif + #include <limits.h> +@@ -25,6 +25,10 @@ + #include <limits.h> + #endif + ++#if !defined(PATH_MAX) && defined(__FreeBSD__) ++#include <sys/param.h> ++#endif ++ + #include "basenames.h" + #include "log.h" + #include "logrotate.h" +diff -Nuar a/Makefile b/Makefile +--- a/Makefile 2014-10-16 13:12:35.000000000 +0200 ++++ b/Makefile 2014-11-04 19:26:07.850056594 +0100 +@@ -22,7 +22,9 @@ + + ifeq ($(WITH_ACL),yes) + CFLAGS += -DWITH_ACL ++ifneq ($(OS_NAME),FreeBSD) + LOADLIBES += -lacl ++endif + # See pretest + TEST_ACL=1 + else diff --git a/app-admin/logrotate/files/logrotate-3.8.8-ignore-hidden.patch b/app-admin/logrotate/files/logrotate-3.8.8-ignore-hidden.patch new file mode 100644 index 000000000000..bdd0fbd9f553 --- /dev/null +++ b/app-admin/logrotate/files/logrotate-3.8.8-ignore-hidden.patch @@ -0,0 +1,14 @@ +diff -Nuar a/config.c b/config.c +--- a/config.c 2014-10-16 13:12:35.000000000 +0200 ++++ b/config.c 2014-11-04 19:19:55.200055496 +0100 +@@ -255,7 +255,9 @@ + char *pattern; + + /* Check if fname is '.' or '..'; if so, return false */ +- if (fname[0] == '.' && (!fname[1] || (fname[1] == '.' && !fname[2]))) ++ /* Don't include 'hidden' files either; this breaks Gentoo ++ portage config file management http://bugs.gentoo.org/87683 */ ++ if (fname[0] == '.') + return 0; + + /* Check if fname is ending in a taboo-extension; if so, return false */ diff --git a/app-admin/logrotate/files/logrotate-3.8.8-noasprintf.patch b/app-admin/logrotate/files/logrotate-3.8.8-noasprintf.patch new file mode 100644 index 000000000000..31ad70717bb9 --- /dev/null +++ b/app-admin/logrotate/files/logrotate-3.8.8-noasprintf.patch @@ -0,0 +1,55 @@ +diff -Nuar a/config.c b/config.c +--- a/config.c 2014-10-16 13:12:35.000000000 +0200 ++++ b/config.c 2014-11-04 19:28:58.110057096 +0100 +@@ -45,39 +45,6 @@ + #include "asprintf.c" + #endif + +-#if !defined(asprintf) && !defined(_FORTIFY_SOURCE) +-#include <stdarg.h> +- +-int asprintf(char **string_ptr, const char *format, ...) +-{ +- va_list arg; +- char *str; +- int size; +- int rv; +- +- va_start(arg, format); +- size = vsnprintf(NULL, 0, format, arg); +- size++; +- va_start(arg, format); +- str = malloc(size); +- if (str == NULL) { +- va_end(arg); +- /* +- * Strictly speaking, GNU asprintf doesn't do this, +- * but the caller isn't checking the return value. +- */ +- fprintf(stderr, "failed to allocate memory\\n"); +- exit(1); +- } +- rv = vsnprintf(str, size, format, arg); +- va_end(arg); +- +- *string_ptr = str; +- return (rv); +-} +- +-#endif +- + #if !defined(strndup) + char *strndup(const char *s, size_t n) + { +diff -Nuar a/logrotate.h b/logrotate.h +--- a/logrotate.h 2014-10-16 13:12:35.000000000 +0200 ++++ b/logrotate.h 2014-11-04 19:29:15.610057147 +0100 +@@ -75,8 +75,5 @@ + extern int debug; + + int readAllConfigPaths(const char **paths); +-#if !defined(asprintf) && !defined(_FORTIFY_SOURCE) +-int asprintf(char **string_ptr, const char *format, ...); +-#endif + + #endif diff --git a/app-admin/logrotate/files/logrotate-3.8.9-Werror.patch b/app-admin/logrotate/files/logrotate-3.8.9-Werror.patch new file mode 100644 index 000000000000..53570e1124a9 --- /dev/null +++ b/app-admin/logrotate/files/logrotate-3.8.9-Werror.patch @@ -0,0 +1,12 @@ +diff -Nuar a/Makefile.am b/Makefile.am +--- a/Makefile.am 2015-02-13 07:11:21.000000000 +0100 ++++ b/Makefile.am 2015-03-01 11:19:47.279999912 +0100 +@@ -1,7 +1,7 @@ + MAN = logrotate.8 + MAN5 = logrotate.conf.5 + +-AM_CFLAGS = -Wall -Werror ++AM_CFLAGS = -Wall + sbin_PROGRAMS = logrotate + logrotate_SOURCES = logrotate.c log.c config.c basenames.c + diff --git a/app-admin/logrotate/files/logrotate-3.8.9-atomic-create.patch b/app-admin/logrotate/files/logrotate-3.8.9-atomic-create.patch new file mode 100644 index 000000000000..dbb2063a476e --- /dev/null +++ b/app-admin/logrotate/files/logrotate-3.8.9-atomic-create.patch @@ -0,0 +1,43 @@ +diff -Nuar a/logrotate.c b/logrotate.c +--- a/logrotate.c 2015-03-01 11:50:36.569999862 +0100 ++++ b/logrotate.c 2015-03-01 11:56:26.329999853 +0100 +@@ -372,15 +372,18 @@ + int createOutputFile(char *fileName, int flags, struct stat *sb, acl_type acl, int force_mode) + { + int fd; +- struct stat sb_create; +- int acl_set = 0; +- +- fd = open(fileName, (flags | O_EXCL | O_NOFOLLOW), +- (S_IRUSR | S_IWUSR) & sb->st_mode); ++ int acl_set = 0; ++ struct stat sb_create; ++ char template[PATH_MAX + 1]; ++ mode_t umask_value; ++ snprintf(template, PATH_MAX, "%s/logrotate_temp.XXXXXX", ourDirName(fileName)); ++ umask_value = umask(0000); ++ fd = mkostemp(template, (flags | O_EXCL | O_NOFOLLOW)); ++ umask(umask_value); + + if (fd < 0) { +- message(MESS_ERROR, "error creating output file %s: %s\n", +- fileName, strerror(errno)); ++ message(MESS_ERROR, "error creating unique temp file: %s\n", ++ strerror(errno)); + return -1; + } + if (fchmod(fd, (S_IRUSR | S_IWUSR) & sb->st_mode)) { +@@ -431,6 +434,13 @@ + } + } + ++ if (rename(template, fileName)) { ++ message(MESS_ERROR, "error renaming temp file to %s: %s\n", ++ fileName, strerror(errno)); ++ close(fd); ++ return -1; ++ } ++ + return fd; + } + diff --git a/app-admin/logrotate/files/logrotate-3.8.9-fbsd.patch b/app-admin/logrotate/files/logrotate-3.8.9-fbsd.patch new file mode 100644 index 000000000000..4c6c8cf7e27c --- /dev/null +++ b/app-admin/logrotate/files/logrotate-3.8.9-fbsd.patch @@ -0,0 +1,57 @@ +diff -Nuar a/config.c b/config.c +--- a/config.c 2015-03-01 11:25:37.489999902 +0100 ++++ b/config.c 2015-03-01 11:26:31.129999901 +0100 +@@ -1,6 +1,6 @@ + #include "queue.h" + /* Alloca is defined in stdlib.h in NetBSD */ +-#ifndef __NetBSD__ ++#if !defined(__NetBSD__) && !defined(__FreeBSD__) + #include <alloca.h> + #endif + #include <limits.h> +@@ -24,6 +24,10 @@ + #include <fnmatch.h> + #include <sys/mman.h> + ++#if !defined(PATH_MAX) && defined(__FreeBSD__) ++#include <sys/param.h> ++#endif ++ + #include "basenames.h" + #include "log.h" + #include "logrotate.h" +diff -Nuar a/logrotate.c b/logrotate.c +--- a/logrotate.c 2015-02-13 07:11:21.000000000 +0100 ++++ b/logrotate.c 2015-03-01 11:27:05.769999900 +0100 +@@ -1,6 +1,6 @@ + #include "queue.h" + /* alloca() is defined in stdlib.h in NetBSD */ +-#ifndef __NetBSD__ ++#if !defined(__NetBSD__) && !defined(__FreeBSD__) + #include <alloca.h> + #endif + #include <limits.h> +@@ -25,6 +25,10 @@ + #include <limits.h> + #endif + ++#if !defined(PATH_MAX) && defined(__FreeBSD__) ++#include <sys/param.h> ++#endif ++ + #include "basenames.h" + #include "log.h" + #include "logrotate.h" +diff -Nuar a/Makefile b/Makefile +--- a/Makefile 2015-02-13 07:11:21.000000000 +0100 ++++ b/Makefile 2015-03-01 11:27:27.209999900 +0100 +@@ -22,7 +22,9 @@ + + ifeq ($(WITH_ACL),yes) + CFLAGS += -DWITH_ACL ++ifneq ($(OS_NAME),FreeBSD) + LOADLIBES += -lacl ++endif + # See pretest + TEST_ACL=1 + else diff --git a/app-admin/logrotate/files/logrotate-3.8.9-ignore-hidden.patch b/app-admin/logrotate/files/logrotate-3.8.9-ignore-hidden.patch new file mode 100644 index 000000000000..d09266895ccb --- /dev/null +++ b/app-admin/logrotate/files/logrotate-3.8.9-ignore-hidden.patch @@ -0,0 +1,14 @@ +diff -Nuar a/config.c b/config.c +--- a/config.c 2015-02-13 07:11:21.000000000 +0100 ++++ b/config.c 2015-03-01 10:51:09.669999958 +0100 +@@ -359,7 +359,9 @@ + char *pattern; + + /* Check if fname is '.' or '..'; if so, return false */ +- if (fname[0] == '.' && (!fname[1] || (fname[1] == '.' && !fname[2]))) ++ /* Don't include 'hidden' files either; this breaks Gentoo ++ portage config file management http://bugs.gentoo.org/87683 */ ++ if (fname[0] == '.') + return 0; + + /* Check if fname is ending in a taboo-extension; if so, return false */ diff --git a/app-admin/logrotate/files/logrotate-3.8.9-noasprintf.patch b/app-admin/logrotate/files/logrotate-3.8.9-noasprintf.patch new file mode 100644 index 000000000000..aee570250f47 --- /dev/null +++ b/app-admin/logrotate/files/logrotate-3.8.9-noasprintf.patch @@ -0,0 +1,55 @@ +diff -Nuar a/config.c b/config.c +--- a/config.c 2015-03-01 10:58:18.689999946 +0100 ++++ b/config.c 2015-03-01 11:04:20.899999937 +0100 +@@ -49,39 +49,6 @@ + #include "asprintf.c" + #endif + +-#if !defined(asprintf) && !defined(_FORTIFY_SOURCE) +-#include <stdarg.h> +- +-int asprintf(char **string_ptr, const char *format, ...) +-{ +- va_list arg; +- char *str; +- int size; +- int rv; +- +- va_start(arg, format); +- size = vsnprintf(NULL, 0, format, arg); +- size++; +- va_start(arg, format); +- str = malloc(size); +- if (str == NULL) { +- va_end(arg); +- /* +- * Strictly speaking, GNU asprintf doesn't do this, +- * but the caller isn't checking the return value. +- */ +- fprintf(stderr, "failed to allocate memory\\n"); +- exit(1); +- } +- rv = vsnprintf(str, size, format, arg); +- va_end(arg); +- +- *string_ptr = str; +- return (rv); +-} +- +-#endif +- + #if !defined(strndup) + char *strndup(const char *s, size_t n) + { +diff -Nuar a/logrotate.h b/logrotate.h +--- a/logrotate.h 2015-02-13 07:11:21.000000000 +0100 ++++ b/logrotate.h 2015-03-01 11:04:55.739999936 +0100 +@@ -80,8 +80,5 @@ + extern int debug; + + int readAllConfigPaths(const char **paths); +-#if !defined(asprintf) && !defined(_FORTIFY_SOURCE) +-int asprintf(char **string_ptr, const char *format, ...); +-#endif + + #endif diff --git a/app-admin/logrotate/files/logrotate-3.9.1-Werror.patch b/app-admin/logrotate/files/logrotate-3.9.1-Werror.patch new file mode 100644 index 000000000000..b8cecc4ebfb2 --- /dev/null +++ b/app-admin/logrotate/files/logrotate-3.9.1-Werror.patch @@ -0,0 +1,12 @@ +diff -Nuar a/Makefile.am b/Makefile.am +--- a/Makefile.am 2015-04-03 09:39:35.000000000 +0200 ++++ b/Makefile.am 2015-06-28 14:03:12.429999875 +0200 +@@ -1,7 +1,7 @@ + MAN = logrotate.8 + MAN5 = logrotate.conf.5 + +-AM_CFLAGS = -Wall -Werror ++AM_CFLAGS = -Wall + sbin_PROGRAMS = logrotate + logrotate_SOURCES = logrotate.c log.c config.c basenames.c + diff --git a/app-admin/logrotate/files/logrotate-3.9.1-atomic-create.patch b/app-admin/logrotate/files/logrotate-3.9.1-atomic-create.patch new file mode 100644 index 000000000000..fdad8b6ea002 --- /dev/null +++ b/app-admin/logrotate/files/logrotate-3.9.1-atomic-create.patch @@ -0,0 +1,43 @@ +diff -Nuar a/logrotate.c b/logrotate.c +--- a/logrotate.c 2015-06-28 13:57:18.449999884 +0200 ++++ b/logrotate.c 2015-06-28 14:02:20.799999876 +0200 +@@ -371,15 +371,18 @@ + int createOutputFile(char *fileName, int flags, struct stat *sb, acl_type acl, int force_mode) + { + int fd; +- struct stat sb_create; +- int acl_set = 0; +- +- fd = open(fileName, (flags | O_EXCL | O_NOFOLLOW), +- (S_IRUSR | S_IWUSR) & sb->st_mode); ++ int acl_set = 0; ++ struct stat sb_create; ++ char template[PATH_MAX + 1]; ++ mode_t umask_value; ++ snprintf(template, PATH_MAX, "%s/logrotate_temp.XXXXXX", ourDirName(fileName)); ++ umask_value = umask(0000); ++ fd = mkostemp(template, (flags | O_EXCL | O_NOFOLLOW)); ++ umask(umask_value); + + if (fd < 0) { +- message(MESS_ERROR, "error creating output file %s: %s\n", +- fileName, strerror(errno)); ++ message(MESS_ERROR, "error creating unique temp file: %s\n", ++ strerror(errno)); + return -1; + } + if (fchmod(fd, (S_IRUSR | S_IWUSR) & sb->st_mode)) { +@@ -430,6 +433,13 @@ + } + } + ++ if (rename(template, fileName)) { ++ message(MESS_ERROR, "error renaming temp file to %s: %s\n", ++ fileName, strerror(errno)); ++ close(fd); ++ return -1; ++ } ++ + return fd; + } + diff --git a/app-admin/logrotate/files/logrotate-3.9.1-fbsd.patch b/app-admin/logrotate/files/logrotate-3.9.1-fbsd.patch new file mode 100644 index 000000000000..6e329d6149f3 --- /dev/null +++ b/app-admin/logrotate/files/logrotate-3.9.1-fbsd.patch @@ -0,0 +1,57 @@ +diff -Nuar a/config.c b/config.c +--- a/config.c 2015-06-28 13:54:18.309999889 +0200 ++++ b/config.c 2015-06-28 13:56:49.599999885 +0200 +@@ -1,6 +1,6 @@ + #include "queue.h" + /* Alloca is defined in stdlib.h in NetBSD */ +-#ifndef __NetBSD__ ++#if !defined(__NetBSD__) && !defined(__FreeBSD__) + #include <alloca.h> + #endif + #include <limits.h> +@@ -24,6 +24,10 @@ + #include <fnmatch.h> + #include <sys/mman.h> + ++#if !defined(PATH_MAX) && defined(__FreeBSD__) ++#include <sys/param.h> ++#endif ++ + #include "basenames.h" + #include "log.h" + #include "logrotate.h" +diff -Nuar a/logrotate.c b/logrotate.c +--- a/logrotate.c 2015-04-03 09:39:35.000000000 +0200 ++++ b/logrotate.c 2015-06-28 13:57:18.449999884 +0200 +@@ -1,6 +1,6 @@ + #include "queue.h" + /* alloca() is defined in stdlib.h in NetBSD */ +-#ifndef __NetBSD__ ++#if !defined(__NetBSD__) && !defined(__FreeBSD__) + #include <alloca.h> + #endif + #include <limits.h> +@@ -26,6 +26,10 @@ + #include <limits.h> + #endif + ++#if !defined(PATH_MAX) && defined(__FreeBSD__) ++#include <sys/param.h> ++#endif ++ + #include "basenames.h" + #include "log.h" + #include "logrotate.h" +diff -Nuar a/Makefile b/Makefile +--- a/Makefile 2015-04-03 09:39:35.000000000 +0200 ++++ b/Makefile 2015-06-28 13:58:05.729999883 +0200 +@@ -22,7 +22,9 @@ + + ifeq ($(WITH_ACL),yes) + CFLAGS += -DWITH_ACL ++ifneq ($(OS_NAME),FreeBSD) + LOADLIBES += -lacl ++endif + # See pretest + TEST_ACL=1 + else diff --git a/app-admin/logrotate/files/logrotate-3.9.1-ignore-hidden.patch b/app-admin/logrotate/files/logrotate-3.9.1-ignore-hidden.patch new file mode 100644 index 000000000000..31d9298779c2 --- /dev/null +++ b/app-admin/logrotate/files/logrotate-3.9.1-ignore-hidden.patch @@ -0,0 +1,15 @@ +diff -Nuar a/config.c b/config.c +--- a/config.c 2015-04-03 09:39:35.000000000 +0200 ++++ b/config.c 2015-06-28 13:54:18.309999889 +0200 +@@ -359,7 +359,10 @@ + char *pattern; + + /* Check if fname is '.' or '..'; if so, return false */ +- if (fname[0] == '.' && (!fname[1] || (fname[1] == '.' && !fname[2]))) ++ /* Don't include 'hidden' files either; this breaks Gentoo ++ portage config file management http://bugs.gentoo.org/87683 */ ++ if (fname[0] == '.') ++ + return 0; + + /* Check if fname is ending in a taboo-extension; if so, return false */ diff --git a/app-admin/logrotate/files/logrotate-3.9.1-noasprintf.patch b/app-admin/logrotate/files/logrotate-3.9.1-noasprintf.patch new file mode 100644 index 000000000000..7983943ca89b --- /dev/null +++ b/app-admin/logrotate/files/logrotate-3.9.1-noasprintf.patch @@ -0,0 +1,55 @@ +diff -Nuar a/config.c b/config.c +--- a/config.c 2015-06-28 13:56:49.599999885 +0200 ++++ b/config.c 2015-06-28 13:59:34.799999880 +0200 +@@ -49,39 +49,6 @@ + #include "asprintf.c" + #endif + +-#if !defined(asprintf) && !defined(_FORTIFY_SOURCE) +-#include <stdarg.h> +- +-int asprintf(char **string_ptr, const char *format, ...) +-{ +- va_list arg; +- char *str; +- int size; +- int rv; +- +- va_start(arg, format); +- size = vsnprintf(NULL, 0, format, arg); +- size++; +- va_start(arg, format); +- str = malloc(size); +- if (str == NULL) { +- va_end(arg); +- /* +- * Strictly speaking, GNU asprintf doesn't do this, +- * but the caller isn't checking the return value. +- */ +- fprintf(stderr, "failed to allocate memory\\n"); +- exit(1); +- } +- rv = vsnprintf(str, size, format, arg); +- va_end(arg); +- +- *string_ptr = str; +- return (rv); +-} +- +-#endif +- + #if !defined(strndup) + char *strndup(const char *s, size_t n) + { +diff -Nuar a/logrotate.h b/logrotate.h +--- a/logrotate.h 2015-04-03 09:39:35.000000000 +0200 ++++ b/logrotate.h 2015-06-28 13:59:47.429999880 +0200 +@@ -80,8 +80,5 @@ + extern int debug; + + int readAllConfigPaths(const char **paths); +-#if !defined(asprintf) && !defined(_FORTIFY_SOURCE) +-int asprintf(char **string_ptr, const char *format, ...); +-#endif + + #endif diff --git a/app-admin/logrotate/files/logrotate.conf b/app-admin/logrotate/files/logrotate.conf new file mode 100644 index 000000000000..b6292ec1c421 --- /dev/null +++ b/app-admin/logrotate/files/logrotate.conf @@ -0,0 +1,43 @@ +# $Id$ +# +# Default logrotate(8) configuration file for Gentoo Linux. +# See "man logrotate" for details. + +# rotate log files weekly. +weekly +#daily + +# keep 4 weeks worth of backlogs. +rotate 4 + +# create new (empty) log files after rotating old ones. +create + +# use date as a suffix of the rotated file. +dateext + +# compress rotated log files. +compress + +notifempty +nomail +noolddir + +# packages can drop log rotation information into this directory. +include /etc/logrotate.d + +# no packages own wtmp and btmp -- we'll rotate them here. +/var/log/wtmp { + monthly + create 0664 root utmp + minsize 1M + rotate 1 +} +/var/log/btmp { + missingok + monthly + create 0600 root utmp + rotate 1 +} + +# system-specific logs may be also be configured here. diff --git a/app-admin/logrotate/logrotate-3.8.8.ebuild b/app-admin/logrotate/logrotate-3.8.8.ebuild new file mode 100644 index 000000000000..1085ce9e4978 --- /dev/null +++ b/app-admin/logrotate/logrotate-3.8.8.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools eutils toolchain-funcs flag-o-matic + +DESCRIPTION="Rotates, compresses, and mails system logs" +HOMEPAGE="https://fedorahosted.org/logrotate/" +SRC_URI="https://fedorahosted.org/releases/l/o/logrotate/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ~ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd" +IUSE="acl selinux" + +CDEPEND=" + >=dev-libs/popt-1.5 + selinux? ( + sys-libs/libselinux + ) + acl? ( virtual/acl )" + +DEPEND="${CDEPEND} + >=sys-apps/sed-4 +" +RDEPEND="${CDEPEND} + selinux? ( sec-policy/selinux-logrotate ) +" + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-ignore-hidden.patch \ + "${FILESDIR}"/${P}-fbsd.patch \ + "${FILESDIR}"/${P}-noasprintf.patch \ + "${FILESDIR}"/${P}-atomic-create.patch \ + "${FILESDIR}"/${P}-Werror.patch + eautoreconf +} + +src_compile() { + local myconf + myconf="CC=$(tc-getCC)" + use selinux && myconf="${myconf} WITH_SELINUX=yes" + use acl && myconf="${myconf} WITH_ACL=yes" + emake ${myconf} RPM_OPT_FLAGS="${CFLAGS}" +} + +src_install() { + insinto /usr + dosbin logrotate + doman logrotate.8 + dodoc CHANGES examples/logrotate* + + exeinto /etc/cron.daily + newexe "${S}"/examples/logrotate.cron "${PN}" + + insinto /etc + doins "${FILESDIR}"/logrotate.conf + + keepdir /etc/logrotate.d +} + +pkg_postinst() { + if [[ -z ${REPLACING_VERSIONS} ]] ; then + elog "If you wish to have logrotate e-mail you updates, please" + elog "emerge virtual/mailx and configure logrotate in" + elog "/etc/logrotate.conf appropriately" + elog + elog "Additionally, /etc/logrotate.conf may need to be modified" + elog "for your particular needs. See man logrotate for details." + fi +} diff --git a/app-admin/logrotate/logrotate-3.8.9-r1.ebuild b/app-admin/logrotate/logrotate-3.8.9-r1.ebuild new file mode 100644 index 000000000000..8a3dd158d605 --- /dev/null +++ b/app-admin/logrotate/logrotate-3.8.9-r1.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools eutils toolchain-funcs flag-o-matic + +DESCRIPTION="Rotates, compresses, and mails system logs" +HOMEPAGE="https://fedorahosted.org/logrotate/" +SRC_URI="https://fedorahosted.org/releases/l/o/logrotate/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd" +IUSE="acl +cron selinux" + +CDEPEND=" + >=dev-libs/popt-1.5 + selinux? ( + sys-libs/libselinux + ) + acl? ( virtual/acl )" + +DEPEND="${CDEPEND} + >=sys-apps/sed-4" + +RDEPEND="${CDEPEND} + selinux? ( sec-policy/selinux-logrotate ) + cron? ( virtual/cron )" + +install_cron_file() { + exeinto /etc/cron.daily + newexe "${S}"/examples/logrotate.cron "${PN}" +} + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-ignore-hidden.patch \ + "${FILESDIR}"/${P}-fbsd.patch \ + "${FILESDIR}"/${P}-noasprintf.patch \ + "${FILESDIR}"/${P}-atomic-create.patch \ + "${FILESDIR}"/${P}-Werror.patch + eautoreconf +} + +src_configure() { + econf $(use_with acl) $(use_with selinux) +} + +src_compile() { + emake ${myconf} RPM_OPT_FLAGS="${CFLAGS}" +} + +src_test() { + emake test +} + +src_install() { + insinto /usr + dosbin logrotate + doman logrotate.8 + dodoc CHANGES examples/logrotate* + + insinto /etc + doins "${FILESDIR}"/logrotate.conf + + use cron && install_cron_file + + keepdir /etc/logrotate.d +} + +pkg_postinst() { + if [[ -z ${REPLACING_VERSIONS} ]] ; then + elog "If you wish to have logrotate e-mail you updates, please" + elog "emerge virtual/mailx and configure logrotate in" + elog "/etc/logrotate.conf appropriately" + elog + elog "Additionally, /etc/logrotate.conf may need to be modified" + elog "for your particular needs. See man logrotate for details." + fi +} diff --git a/app-admin/logrotate/logrotate-3.8.9.ebuild b/app-admin/logrotate/logrotate-3.8.9.ebuild new file mode 100644 index 000000000000..8b6a7e4d55b0 --- /dev/null +++ b/app-admin/logrotate/logrotate-3.8.9.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools eutils toolchain-funcs flag-o-matic + +DESCRIPTION="Rotates, compresses, and mails system logs" +HOMEPAGE="https://fedorahosted.org/logrotate/" +SRC_URI="https://fedorahosted.org/releases/l/o/logrotate/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ~arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd" +IUSE="acl selinux" + +CDEPEND=" + >=dev-libs/popt-1.5 + selinux? ( + sys-libs/libselinux + ) + acl? ( virtual/acl )" + +DEPEND="${CDEPEND} + >=sys-apps/sed-4" + +RDEPEND="${CDEPEND} + selinux? ( sec-policy/selinux-logrotate ) + virtual/cron" + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-ignore-hidden.patch \ + "${FILESDIR}"/${P}-fbsd.patch \ + "${FILESDIR}"/${P}-noasprintf.patch \ + "${FILESDIR}"/${P}-atomic-create.patch \ + "${FILESDIR}"/${P}-Werror.patch + eautoreconf +} + +src_compile() { + local myconf + myconf="CC=$(tc-getCC)" + use selinux && myconf="${myconf} WITH_SELINUX=yes" + use acl && myconf="${myconf} WITH_ACL=yes" + emake ${myconf} RPM_OPT_FLAGS="${CFLAGS}" +} + +src_test() { + emake test +} + +src_install() { + insinto /usr + dosbin logrotate + doman logrotate.8 + dodoc CHANGES examples/logrotate* + + exeinto /etc/cron.daily + newexe "${S}"/examples/logrotate.cron "${PN}" + + insinto /etc + doins "${FILESDIR}"/logrotate.conf + + keepdir /etc/logrotate.d +} + +pkg_postinst() { + if [[ -z ${REPLACING_VERSIONS} ]] ; then + elog "If you wish to have logrotate e-mail you updates, please" + elog "emerge virtual/mailx and configure logrotate in" + elog "/etc/logrotate.conf appropriately" + elog + elog "Additionally, /etc/logrotate.conf may need to be modified" + elog "for your particular needs. See man logrotate for details." + fi +} diff --git a/app-admin/logrotate/logrotate-3.9.1.ebuild b/app-admin/logrotate/logrotate-3.9.1.ebuild new file mode 100644 index 000000000000..5450528e1c8f --- /dev/null +++ b/app-admin/logrotate/logrotate-3.9.1.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools eutils toolchain-funcs flag-o-matic + +DESCRIPTION="Rotates, compresses, and mails system logs" +HOMEPAGE="https://fedorahosted.org/logrotate/" +SRC_URI="https://fedorahosted.org/releases/l/o/logrotate/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~x86-fbsd" +IUSE="acl +cron selinux" + +CDEPEND=" + >=dev-libs/popt-1.5 + selinux? ( + sys-libs/libselinux + ) + acl? ( virtual/acl )" + +DEPEND="${CDEPEND} + >=sys-apps/sed-4" + +RDEPEND="${CDEPEND} + selinux? ( sec-policy/selinux-logrotate ) + cron? ( virtual/cron )" + +install_cron_file() { + exeinto /etc/cron.daily + newexe "${S}"/examples/logrotate.cron "${PN}" +} + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-ignore-hidden.patch \ + "${FILESDIR}"/${P}-fbsd.patch \ + "${FILESDIR}"/${P}-noasprintf.patch \ + "${FILESDIR}"/${P}-atomic-create.patch \ + "${FILESDIR}"/${P}-Werror.patch + eautoreconf +} + +src_configure() { + econf $(use_with acl) $(use_with selinux) +} + +src_compile() { + emake ${myconf} RPM_OPT_FLAGS="${CFLAGS}" +} + +src_test() { + emake test +} + +src_install() { + insinto /usr + dosbin logrotate + doman logrotate.8 + dodoc CHANGES examples/logrotate* + + insinto /etc + doins "${FILESDIR}"/logrotate.conf + + use cron && install_cron_file + + keepdir /etc/logrotate.d +} + +pkg_postinst() { + if [[ -z ${REPLACING_VERSIONS} ]] ; then + elog "If you wish to have logrotate e-mail you updates, please" + elog "emerge virtual/mailx and configure logrotate in" + elog "/etc/logrotate.conf appropriately" + elog + elog "Additionally, /etc/logrotate.conf may need to be modified" + elog "for your particular needs. See man logrotate for details." + fi +} diff --git a/app-admin/logrotate/metadata.xml b/app-admin/logrotate/metadata.xml new file mode 100644 index 000000000000..f92e835578bb --- /dev/null +++ b/app-admin/logrotate/metadata.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>nimiux@gentoo.org</email> + <name>Chema Alonso</name> + </maintainer> + <longdescription lang="en"> + Logrotate allows for the automatic rotation compression, removal + and mailing of log files. Logrotate can be set to handle a log + file daily, weekly, monthly or when the log file gets to a certain + size. + </longdescription> + <longdescription lang="es"> + Logrotate permite la rotación, compresión, eliminación y + notificación por correo electrónico de forma automática de ficheros + de registro (logs). Logrotate se puede configurar para gestionar + estos ficheros diariamente, semanalmente, mensualmente o cuando + su tamaño alcanza cierto valor. + </longdescription> + <use> + <flag name="acl">Installs acl support</flag> + <flag name="cron">Installs cron file</flag> + <flag name="selinux">Installs Security Enhanced Linux support</flag> + </use> +</pkgmetadata> diff --git a/app-admin/logsentry/Manifest b/app-admin/logsentry/Manifest new file mode 100644 index 000000000000..b4e937619869 --- /dev/null +++ b/app-admin/logsentry/Manifest @@ -0,0 +1 @@ +DIST logsentry-1.1.1.tar.gz 30267 SHA256 dfe4cb29305c619dc0a0aca5b11b2bd397baccf3076b48f03457f66f299ab42e SHA512 4be045289259655e7b4da05dd1a07c649b2289fbc6f15dd424dc48ab980478f3ae49501f0e9e2035fddb9a40acaf2f4ab310ff8d95355196d82d41d6fc860143 WHIRLPOOL 0a0d63c135186c6035fc6e9e20dbf5a647cb90f09979ccb0e296cbc9caec18fa83d744c5015e87a79bc42e951383559078b0d893cc6e293491fd229221d70a4e diff --git a/app-admin/logsentry/logsentry-1.1.1-r1.ebuild b/app-admin/logsentry/logsentry-1.1.1-r1.ebuild new file mode 100644 index 000000000000..5a4b0036c53d --- /dev/null +++ b/app-admin/logsentry/logsentry-1.1.1-r1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit toolchain-funcs + +DESCRIPTION="automatically monitor system logs and mail security violations on a periodic basis" +# Seems that the project has been discontinued by CISCO? +HOMEPAGE="http://sourceforge.net/projects/sentrytools/" +SRC_URI="mirror://gentoo/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~mips ~ppc ~s390 ~sh ~sparc ~x86" +IUSE="" + +DEPEND=">=sys-apps/sed-4" +RDEPEND="virtual/mailx" + +S="${WORKDIR}"/logcheck-${PV} + +src_compile() { + einfo "compile and install mixed in the package makefile" +} + +src_install() { + dodir /usr/bin /var/tmp/logcheck /etc/logcheck + cp systems/linux/logcheck.sh{,.orig} + sed -i \ + -e 's:/usr/local/bin:/usr/bin:' \ + -e 's:/usr/local/etc:/etc/logcheck:' \ + -e 's:/etc/logcheck/tmp:/var/tmp/logcheck:' \ + systems/linux/logcheck.sh || \ + die "sed logcheck.sh failed" + sed -i \ + -e "s:/usr/local/bin:${D}/usr/bin:" \ + -e "s:/usr/local/etc:${D}/etc/logcheck:" \ + -e "s:/etc/logcheck/tmp:/var/tmp/logcheck:" \ + -e "s:\$(CC):& \$(LDFLAGS):" \ + Makefile || die "sed Makefile failed" + make CC="$(tc-getCC)" CFLAGS="${CFLAGS}" linux || die + + dodoc README* CHANGES CREDITS + dodoc systems/linux/README.* + + cat << EOF > "${S}"/logsentry.cron +#!/bin/sh +# +# Uncomment the following if you want +# logsentry (logcheck) to run hourly +# +# this is part of the logsentry package +# +# + +#/bin/sh /etc/logcheck/logcheck.sh +EOF + + exeinto /etc/cron.hourly + doexe logsentry.cron +} + +pkg_postinst() { + elog + elog "Uncomment the logcheck line in /etc/cron.hourly/logsentry.cron," + elog "or add directly to root's crontab" + elog +} diff --git a/app-admin/logsentry/logsentry-1.1.1.ebuild b/app-admin/logsentry/logsentry-1.1.1.ebuild new file mode 100644 index 000000000000..9aa361bbf776 --- /dev/null +++ b/app-admin/logsentry/logsentry-1.1.1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit toolchain-funcs + +DESCRIPTION="automatically monitor system logs and mail security violations on a periodic basis" +# Seems that the project has been discontinued by CISCO? +HOMEPAGE="http://sourceforge.net/projects/sentrytools/" +SRC_URI="mirror://gentoo/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 arm ~mips ppc s390 sh sparc x86" +IUSE="" + +DEPEND=">=sys-apps/sed-4" +RDEPEND="virtual/mailx" + +S="${WORKDIR}"/logcheck-${PV} + +src_compile() { + einfo "compile and install mixed in the package makefile" +} + +src_install() { + dodir /usr/bin /etc/logcheck/tmp + cp systems/linux/logcheck.sh{,.orig} + sed -i \ + -e 's:/usr/local/bin:/usr/bin:' \ + -e 's:/usr/local/etc:/etc/logcheck:' \ + systems/linux/logcheck.sh || \ + die "sed logcheck.sh failed" + sed -i \ + -e "s:/usr/local/bin:${D}/usr/bin:" \ + -e "s:/usr/local/etc:${D}/etc/logcheck:" \ + -e "s:\$(CC):& \$(LDFLAGS):" \ + Makefile || die "sed Makefile failed" + make CC="$(tc-getCC)" CFLAGS="${CFLAGS}" linux || die + + dodoc README* CHANGES CREDITS + dodoc systems/linux/README.* + + cat << EOF > "${S}"/logsentry.cron +#!/bin/sh +# +# Uncomment the following if you want +# logsentry (logcheck) to run hourly +# +# this is part of the logsentry package +# +# + +#/bin/sh /etc/logcheck/logcheck.sh +EOF + + exeinto /etc/cron.hourly + doexe logsentry.cron +} + +pkg_postinst() { + elog + elog "Uncomment the logcheck line in /etc/cron.hourly/logsentry.cron," + elog "or add directly to root's crontab" + elog +} diff --git a/app-admin/logsentry/metadata.xml b/app-admin/logsentry/metadata.xml new file mode 100644 index 000000000000..59e2b8f78cb5 --- /dev/null +++ b/app-admin/logsentry/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> + <email>maintainer-needed@gentoo.org</email> + <name>Default assignee for orphaned packages</name> + </maintainer> +</pkgmetadata> diff --git a/app-admin/logstalgia/Manifest b/app-admin/logstalgia/Manifest new file mode 100644 index 000000000000..ffb9abacbda2 --- /dev/null +++ b/app-admin/logstalgia/Manifest @@ -0,0 +1,2 @@ +DIST logstalgia-1.0.3.tar.gz 841822 SHA256 d3338a9fffb9b60ecb90986c81f27a09a18fa8627b5b884a79c70fee7f6461eb SHA512 ca7b0fbb3341d6561a980e1daa42e20a4f307a794c96f02a3530e5b9d8ae19ae1d9acce127bf0aad59547f1cff3e5a6425ae3558c973f67b9d68c4151e31679b WHIRLPOOL 0729b4919c418670a99d2023acfaeafba4ad653796d22827cb5c6b4271183706b6c77c0ba638b53535c8c24786fef5989b8b2c7e78db62aeadc7a76c407c5cc5 +DIST logstalgia-1.0.6.tar.gz 902147 SHA256 a81b94742cce64b0b2d1b1683f2f7ac6d06456056f353896153b1b8181855f34 SHA512 9b264c65e412efc7cc8ae9a3b53c71bb769b52dfa759c7e9f84b41e55363b803bc776379658eab2c7975000766c26879f8bc3b33e436224113ae15c9846676a1 WHIRLPOOL 2797514fa648cbcd0516927a9c7a255997c5018f8d40b37207ffb4b21b67ff4aaf797d53b3bf8d94e9d8c749fe79706acdc70682e422a318f8a94c6bd13f752b diff --git a/app-admin/logstalgia/logstalgia-1.0.3-r1.ebuild b/app-admin/logstalgia/logstalgia-1.0.3-r1.ebuild new file mode 100644 index 000000000000..81e3624f10ff --- /dev/null +++ b/app-admin/logstalgia/logstalgia-1.0.3-r1.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +DESCRIPTION="Replays or streams an access_log as a retro arcade game-like simulation" +HOMEPAGE="http://code.google.com/p/logstalgia/" +SRC_URI="http://logstalgia.googlecode.com/files/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="dev-libs/libpcre + media-libs/libsdl[opengl] + media-libs/libpng:0= + media-libs/sdl-image + media-libs/ftgl + virtual/jpeg + virtual/glu + virtual/opengl" +DEPEND="${DEPEND} + virtual/pkgconfig" + +DOCS=( ChangeLog INSTALL README THANKS ) diff --git a/app-admin/logstalgia/logstalgia-1.0.6.ebuild b/app-admin/logstalgia/logstalgia-1.0.6.ebuild new file mode 100644 index 000000000000..8f673a53c5d3 --- /dev/null +++ b/app-admin/logstalgia/logstalgia-1.0.6.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils + +DESCRIPTION="Replays or streams an access_log as a retro arcade game-like simulation" +HOMEPAGE="http://code.google.com/p/logstalgia/" +SRC_URI="https://github.com/acaudwell/Logstalgia/releases/download/${P}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="dev-libs/libpcre + media-libs/freetype:2 + media-libs/glew:0= + media-libs/libsdl2[opengl,threads] + media-libs/libpng:0= + media-libs/sdl2-image[jpeg,png] + virtual/glu + virtual/opengl" +DEPEND="${DEPEND} + dev-libs/boost + media-libs/glm + virtual/pkgconfig" + +DOCS=( ChangeLog INSTALL README THANKS ) + +src_prepare() { + epatch_user +} diff --git a/app-admin/logstalgia/metadata.xml b/app-admin/logstalgia/metadata.xml new file mode 100644 index 000000000000..38b9e1fa96bd --- /dev/null +++ b/app-admin/logstalgia/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> + <email>pinkbyte@gentoo.org</email> + <name>Sergey Popov</name> + </maintainer> + <upstream> + <remote-id type="google-code">logstalgia</remote-id> + <remote-id type="github">acaudwell/Logstalgia</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/logstash-bin/Manifest b/app-admin/logstash-bin/Manifest new file mode 100644 index 000000000000..04b039cc543e --- /dev/null +++ b/app-admin/logstash-bin/Manifest @@ -0,0 +1,2 @@ +DIST logstash-1.4.4.tar.gz 71931272 SHA256 b148a76670a11f879e26622e229c882f3c98950e695f2d7ec066522c3c658658 SHA512 e8252167fb6c75462dc910f86d2a5ce4f718d108705f16ea7fc80e0e6446d8649e1d0310a8024bf785bb51834a55ab79cf435541a88b7c7eb8cd640683df8635 WHIRLPOOL c5d3c5e50dc1d306be739c72df746163e43c7772087c52253050a92c69ec02c7c924279eca77782f3089b92db359278732f2adbfb02549748d2559fedf612329 +DIST logstash-1.5.3.tar.gz 91690052 SHA256 a54abaade1c31e65187f77fca1738bc9e6c8e95b4ee3176a2bc44735b6dd0cf8 SHA512 7cd9a522a8f99448954e973b38f17477f8f4d645ab3971492e94a25097ad52aa65446ec8caebcf1c3f7b756b76e1b70d139f27c6140a09d2c97d41dd3fb9b78e WHIRLPOOL ce1f020e2af0082a3e65caf5d09b52089c04f584a1fe024a933c1077d115d7fcd5fd119aedfbdf3d2d01fe42ed120f331f517472e9eb5797095970b8aeb68a11 diff --git a/app-admin/logstash-bin/files/agent.conf.sample b/app-admin/logstash-bin/files/agent.conf.sample new file mode 100644 index 000000000000..9d125cd6a25e --- /dev/null +++ b/app-admin/logstash-bin/files/agent.conf.sample @@ -0,0 +1,21 @@ +input { + stdin { + type => "stdin" + } + + file { + type => "syslog" + path => [ "/var/log/*.log", "/var/log/debug", "/var/log/messages", "/var/log/syslog" ] + } +} + +output { + stdout { + codec => rubydebug + } + + elasticsearch { + host => localhost + cluster => elasticsearch + } +} diff --git a/app-admin/logstash-bin/files/logstash.confd b/app-admin/logstash-bin/files/logstash.confd new file mode 100644 index 000000000000..29f4d1c016ae --- /dev/null +++ b/app-admin/logstash-bin/files/logstash.confd @@ -0,0 +1,2 @@ +#LOGSTASH_USER="" +#LOGSTASH_GROUP="" diff --git a/app-admin/logstash-bin/files/logstash.initd b/app-admin/logstash-bin/files/logstash.initd new file mode 100644 index 000000000000..08b063fe7044 --- /dev/null +++ b/app-admin/logstash-bin/files/logstash.initd @@ -0,0 +1,33 @@ +#!/sbin/openrc-run +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +LOGSTASH_USER=${LOGSTASH_USER:-root} +LOGSTASH_GROUP=${LOGSTASH_GROUP:-root} +LOGFILE="/var/log/logstash/logstash.log" + +command="/opt/logstash/bin/logstash" +command_args="agent --config /etc/logstash/conf.d/*.conf --log ${LOGFILE}" +extra_commands="checkconfig" +command_background="true" +start_stop_daemon_args="--user=\"${LOGSTASH_USER}\"" +pidfile="/run/logstash/logstash.pid" + +depend() { + use net + after elasticsearch +} + +checkconfig() { + ebegin "Checking your configuration" + ${command} ${command_args} --configtest + eend $? "Configuration error. Please fix your configuration files." +} + +start_pre() { + checkconfig || return 1 + + checkpath -d -o "${LOGSTASH_USER}":"${LOGSTASH_GROUP}" -m750 "$(dirname "${pidfile}")" + checkpath -d -o "${LOGSTASH_USER}":"${LOGSTASH_GROUP}" -m750 "$(dirname "${LOGFILE}")" + checkpath -f -o "${LOGSTASH_USER}":"${LOGSTASH_GROUP}" -m640 "${LOGFILE}" +} diff --git a/app-admin/logstash-bin/files/logstash.logrotate b/app-admin/logstash-bin/files/logstash.logrotate new file mode 100644 index 000000000000..013c8ea921b9 --- /dev/null +++ b/app-admin/logstash-bin/files/logstash.logrotate @@ -0,0 +1,6 @@ +/var/log/logstash/*.log { + copytruncate + compress + missingok + notifempty +} diff --git a/app-admin/logstash-bin/logstash-bin-1.4.4.ebuild b/app-admin/logstash-bin/logstash-bin-1.4.4.ebuild new file mode 100644 index 000000000000..027faae0d39d --- /dev/null +++ b/app-admin/logstash-bin/logstash-bin-1.4.4.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +MY_PN="${PN/-bin}" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Tool for managing events and logs" +HOMEPAGE="https://www.elastic.co/products/logstash" +SRC_URI="https://download.elastic.co/${MY_PN}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +DEPEND="" +RDEPEND="|| ( virtual/jre:1.8 virtual/jre:1.7 )" + +S="${WORKDIR}/${MY_P}" + +src_install() { + keepdir /etc/"${MY_PN}"/{conf.d,patterns,plugins} + keepdir "/var/log/${MY_PN}" + + insinto "/etc/${MY_PN}/conf.d" + doins "${FILESDIR}/agent.conf.sample" + + insinto "/opt/${MY_PN}" + doins -r . + fperms 0755 "/opt/${MY_PN}/bin/${MY_PN}" + + insinto /etc/logrotate.d + doins "${FILESDIR}/${MY_PN}.logrotate" + + newconfd "${FILESDIR}/${MY_PN}.confd" "${MY_PN}" + newinitd "${FILESDIR}/${MY_PN}.initd" "${MY_PN}" +} + +pkg_postinst() { + einfo "Getting started with logstash:" + einfo " https://www.elastic.co/guide/en/logstash/current/getting-started-with-logstash.html" + einfo "" + einfo "Packages that might be interesting:" + einfo " app-misc/elasticsearch" + einfo " dev-python/elasticsearch-curator" + einfo " www-apps/kibana-bin" +} diff --git a/app-admin/logstash-bin/logstash-bin-1.5.3.ebuild b/app-admin/logstash-bin/logstash-bin-1.5.3.ebuild new file mode 100644 index 000000000000..18df7a31ce3f --- /dev/null +++ b/app-admin/logstash-bin/logstash-bin-1.5.3.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +MY_PN="${PN/-bin}" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Tool for managing events and logs" +HOMEPAGE="https://www.elastic.co/products/logstash" +SRC_URI="https://download.elastic.co/${MY_PN}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +RESTRICT="strip" +QA_PREBUILT="opt/logstash/vendor/jruby/lib/jni/*/libjffi*.so" + +DEPEND="" +RDEPEND="|| ( virtual/jre:1.8 virtual/jre:1.7 )" + +S="${WORKDIR}/${MY_P}" + +src_install() { + keepdir /etc/"${MY_PN}"/{conf.d,patterns,plugins} + keepdir "/var/log/${MY_PN}" + + insinto "/etc/${MY_PN}/conf.d" + doins "${FILESDIR}/agent.conf.sample" + + insinto "/opt/${MY_PN}" + doins -r . + fperms 0755 "/opt/${MY_PN}/bin/${MY_PN}" "/opt/${MY_PN}/vendor/jruby/bin/jruby" + + insinto /etc/logrotate.d + doins "${FILESDIR}/${MY_PN}.logrotate" + + newconfd "${FILESDIR}/${MY_PN}.confd" "${MY_PN}" + newinitd "${FILESDIR}/${MY_PN}.initd" "${MY_PN}" +} + +pkg_postinst() { + einfo "Getting started with logstash:" + einfo " https://www.elastic.co/guide/en/logstash/current/getting-started-with-logstash.html" + einfo "" + einfo "Packages that might be interesting:" + einfo " app-misc/elasticsearch" + einfo " dev-python/elasticsearch-curator" + einfo " www-apps/kibana-bin" +} diff --git a/app-admin/logstash-bin/metadata.xml b/app-admin/logstash-bin/metadata.xml new file mode 100644 index 000000000000..df4f52042dae --- /dev/null +++ b/app-admin/logstash-bin/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>proxy-maintainers</herd> + <maintainer> + <email>idella4@gentoo.org</email> + <name>Ian Delaney</name> + </maintainer> + <maintainer> + <email>hydrapolic@gmail.com</email> + <name>Tomas Mozes</name> + <description>Proxy maintainer</description> + </maintainer> +</pkgmetadata> diff --git a/app-admin/logstash-forwarder/Manifest b/app-admin/logstash-forwarder/Manifest new file mode 100644 index 000000000000..9816a7a2ba97 --- /dev/null +++ b/app-admin/logstash-forwarder/Manifest @@ -0,0 +1 @@ +DIST logstash-forwarder-0.4.0.tar.gz 35189 SHA256 d930cd33747b2826c7358238a25e690324751d1b098e7c00de1357944766b3c3 SHA512 1f89b065d1b26a6f5b18da6215bdaed5a312af12fa721835f5e1a77248dd67f398f5af08b5d93c0c4c5ef9623eb1ddb58449b52039c0db0241d5ca61872102ef WHIRLPOOL 7715c723f8b8712b5cccc1e678017b2d733f243ea936d312ab31938fba73934a66d552656516bc72b65a3541945401f99463d8346fdf6a00372e9b3a0ed67655 diff --git a/app-admin/logstash-forwarder/files/logstash-forwarder.confd b/app-admin/logstash-forwarder/files/logstash-forwarder.confd new file mode 100644 index 000000000000..e49ed1dc295e --- /dev/null +++ b/app-admin/logstash-forwarder/files/logstash-forwarder.confd @@ -0,0 +1 @@ +LOGSTASH_FORWARDER_ARGS="-quiet -syslog=true" diff --git a/app-admin/logstash-forwarder/files/logstash-forwarder.initd b/app-admin/logstash-forwarder/files/logstash-forwarder.initd new file mode 100644 index 000000000000..38e09b65ab68 --- /dev/null +++ b/app-admin/logstash-forwarder/files/logstash-forwarder.initd @@ -0,0 +1,63 @@ +#!/sbin/runscript +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +create_tmpdir() { + local tmpdir="$(mktemp -d -p /tmp logstash-forwarder.XXXXXXXXXX)" + + chown logstash:logstash "${tmpdir}" || return 1 + chmod 0750 "${tmpdir}" || return 1 + + echo "${tmpdir}" +} + +remove_tmpdir() { + local d='' + local tmpdir='' + + for d in /tmp/logstash-forwarder.??????????; do + [[ -e ${d} ]] || return 0 + [[ -d ${d} ]] || continue + + if ! [[ ${tmpdir} ]]; then + tmpdir="${d}" + else + # There are more directories like that, so better keep them all. + return 1 + fi + done + + rm -r "${tmpdir}" +} + +start() { + local config_file=/etc/logstash-forwarder/logstash-forwarder.conf + local tmpdir="$(create_tmpdir)" + + if ! [[ -d ${tmpdir} ]]; then + eend 1 "Failed to create tmp directory for logstash-forwarder" + return 1 + fi + + ebegin "Starting logstash-forwarder" + start-stop-daemon --start --exec /usr/bin/logstash-forwarder \ + --make-pidfile --pidfile /run/logstash-forwarder.pid \ + --background --wait 100 --chdir "${tmpdir}" \ + --user logstash --group logstash \ + -- -config="${config_file}" ${LOGSTASH_FORWARDER_ARGS} + eend $? +} + +stop() { + ebegin "Stopping logstash-forwarder" + start-stop-daemon --stop --exec /usr/bin/logstash-forwarder \ + --pidfile /run/logstash-forwarder.pid --user logstash --group logstash + local rc=$? + + if ! remove_tmpdir; then + ewarn "Failed to remove logstash-forwarder tmp directory" + fi + + eend ${rc} +} diff --git a/app-admin/logstash-forwarder/logstash-forwarder-0.4.0.ebuild b/app-admin/logstash-forwarder/logstash-forwarder-0.4.0.ebuild new file mode 100644 index 000000000000..ddca446b1031 --- /dev/null +++ b/app-admin/logstash-forwarder/logstash-forwarder-0.4.0.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit user + +DESCRIPTION="Collects logs locally in preparation for processing elsewhere" +HOMEPAGE="https://github.com/elastic/logstash-forwarder" +SRC_URI="https://github.com/elastic/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="dev-lang/go:=" +RDEPEND="" + +pkg_setup() { + enewgroup logstash + enewuser logstash -1 -1 -1 logstash +} + +src_install() { + dobin "${PN}" + dodir "/etc/${PN}" + dodoc "${PN}".conf.example CHANGELOG README.md + newconfd "${FILESDIR}/${PN}.confd" "${PN}" + newinitd "${FILESDIR}/${PN}.initd" "${PN}" +} + +pkg_postinst() { + if ! [[ -e /etc/${PN}/${PN}.conf ]]; then + elog "Before starting logstash-forwarder create config file at" + elog + elog " /etc/${PN}/${PN}.conf" + elog + elog "See example in /usr/share/doc/${PVR} directory. You can remove" + elog "-quiet from logstash-forward arguments in /etc/conf.d/${PN} to" + elog "until you get working configuration. Search syslog for errors." + fi +} diff --git a/app-admin/logstash-forwarder/metadata.xml b/app-admin/logstash-forwarder/metadata.xml new file mode 100644 index 000000000000..8686ab814fde --- /dev/null +++ b/app-admin/logstash-forwarder/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> + <email>aidecoe@gentoo.org</email> + <name>Amadeusz Żołnowski</name> + </maintainer> + <longdescription lang="en"> + logstash-forwarder is a lightweight replacement for logstash when you + only need to collect logs locally in preparation for processing + elsewhere. It is written in Go and uses not much memory. For + transmission lumberjack protocol is used. It is is secure, low + latency, low resource usage, and reliable. + </longdescription> + <upstream> + <remote-id type="github">elastic/logstash-forwarder</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/logsurfer+/Manifest b/app-admin/logsurfer+/Manifest new file mode 100644 index 000000000000..a9458c8840b0 --- /dev/null +++ b/app-admin/logsurfer+/Manifest @@ -0,0 +1 @@ +DIST logsurfer-1.8.tar.gz 197433 SHA256 e0a6becc1d105acff35baa4b1dd51db3f6664156000ad23bf803193a8361ce50 SHA512 470276cb70489528a0a14dfc8c85a41d2b5ce0768ca373ec6367b137e614fef2e1174363a9987724da8682d7dc20570ba360203feda431daf21026eb28bec9f6 WHIRLPOOL c2a64f7d9ce3ef9a058b1ee60f0c1d92372b1ceb634822443ebeb90e3e9d138d47d06bc8104cae76f8686ad7b9797862842dbcda3fd588e8cacf5bcaf9c60ab4 diff --git a/app-admin/logsurfer+/files/logsurfer-1.8.initd b/app-admin/logsurfer+/files/logsurfer-1.8.initd new file mode 100644 index 000000000000..b75c26e04645 --- /dev/null +++ b/app-admin/logsurfer+/files/logsurfer-1.8.initd @@ -0,0 +1,51 @@ +#!/sbin/runscript +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +pidfile="/var/run/logsurfer.pid" +command="/usr/bin/logsurfer" +command_args="-D -p ${pidfile} ${LOGSURFER_OPTS}" +extra_started_commands="reload dump" + +conffile="/etc/logsurfer.conf" + +depend() { + use logger +} + +checkconfig() { + if [ ! -f /etc/logsurfer.conf ] ; then + eerror "Please create /etc/logsurfer.conf" + return 1 + fi + return 0 +} + +start_pre() { + checkconfig || return $? + + checkpath --file --owner logsurfer --mode 0644 "${pidfile}" +} + +start() { + ebegin "Starting ${SVCNAME}" + start-stop-daemon \ + --start \ + --user logsurfer \ + --exec ${command} \ + -- ${command_args} + eend $? "Failed to start ${SVCNAME}" +} + +reload() { + ebegin "Reloading ${SVCNAME}" + start-stop-daemon --signal HUP --pidfile "${pidfile}" + eend $? "Failed to reload ${SVCNAME}" +} + +dump() { + ebegin "Dumping ${SVCNAME} internal state" + start-stop-daemon --signal USR1 --pidfile "${pidfile}" + eend $? "Failed to dump ${SVCNAME} internal state" +} diff --git a/app-admin/logsurfer+/files/logsurfer.confd b/app-admin/logsurfer+/files/logsurfer.confd new file mode 100644 index 000000000000..cb4e596bf543 --- /dev/null +++ b/app-admin/logsurfer+/files/logsurfer.confd @@ -0,0 +1,4 @@ +# /etc/conf.d/logsurfer + +# Options to pass to the logsurfer process +LOGSURFER_OPTS="-f /var/log/messages" diff --git a/app-admin/logsurfer+/logsurfer+-1.8-r1.ebuild b/app-admin/logsurfer+/logsurfer+-1.8-r1.ebuild new file mode 100644 index 000000000000..2fcb474b5071 --- /dev/null +++ b/app-admin/logsurfer+/logsurfer+-1.8-r1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" +inherit toolchain-funcs user + +MY_P="logsurfer-${PV}" +DESCRIPTION="Real Time Log Monitoring and Alerting" +HOMEPAGE="http://www.crypt.gen.nz/logsurfer/" +SRC_URI="http://kerryt.orcon.net.nz/${MY_P}.tar.gz + http://www.crypt.gen.nz/logsurfer/${MY_P}.tar.gz" + +LICENSE="freedist GPL-2+" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" +RESTRICT="bindist" #444330 + +S="${WORKDIR}/${MY_P}" + +src_configure() { + econf --with-etcdir=/etc +} + +src_compile() { + emake CC="$(tc-getCC)" +} + +src_install() { + dobin src/logsurfer + doman man/logsurfer.1 man/logsurfer.conf.4 + + newinitd "${FILESDIR}"/logsurfer-1.8.initd logsurfer + newconfd "${FILESDIR}"/logsurfer.confd logsurfer + dodoc ChangeLog README TODO +} + +pkg_postinst() { + enewuser logsurfer -1 -1 -1 daemon +} diff --git a/app-admin/logsurfer+/metadata.xml b/app-admin/logsurfer+/metadata.xml new file mode 100644 index 000000000000..2e90b802bc7c --- /dev/null +++ b/app-admin/logsurfer+/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> +<email>maintainer-needed@gentoo.org</email> +</maintainer> +</pkgmetadata> + diff --git a/app-admin/longrun/Manifest b/app-admin/longrun/Manifest new file mode 100644 index 000000000000..3f49bb1f53ce --- /dev/null +++ b/app-admin/longrun/Manifest @@ -0,0 +1,2 @@ +DIST longrun-0.9.tar.bz2 11539 SHA256 85d2bb0694ded7d727c3f819b12432a78b7c3d9723580d17d7a9e3a21d969f7b SHA512 6b38160f54d0cb9124c46c0e3ba22faf4ba4376ef58f7db40aabbab20836b1551dd839d28e5bf49540a5ce0e13312bd1d7332cc59ce45fa49f81d0b9746ef055 WHIRLPOOL 96654665434f789c8fe84d394161b5b3fb2a4d3ceb8e2decf67ac52ffc5ff2f2b51ea885aae8a1a428fc0d1a4c00848deaa1ecd28f48ac1abd40291c2feb06e7 +DIST longrun_0.9-19.diff.gz 14697 SHA256 4f9d133c8739ac2bbf0ec53d1356a42064b9b06b3559a93af538c809f851fc14 SHA512 591519183017dd84d6f78554eea9f215be9346efc3f30889f5a25d01c6b68bd5a949507b9a0c871f9aca0b49e415c4fa261821d4158b24c93481394403b83e35 WHIRLPOOL efd02ab3b3a949b77edf1b04313fca51482b50fcd5d2b73dd66a225218e04cb67eb830aca1b15b63582dcbcad1367acad88532c8495b074e6d23f3c4e8f071c4 diff --git a/app-admin/longrun/files/0.9-makefile_cflags.patch b/app-admin/longrun/files/0.9-makefile_cflags.patch new file mode 100644 index 000000000000..a15229177881 --- /dev/null +++ b/app-admin/longrun/files/0.9-makefile_cflags.patch @@ -0,0 +1,14 @@ +Common subdirectories: longrun.old/debian and longrun/debian +diff -u longrun.old/Makefile longrun/Makefile +--- longrun.old/Makefile 2005-08-12 22:36:14.186390784 +0300 ++++ longrun/Makefile 2005-08-12 22:37:36.157929216 +0300 +@@ -3,7 +3,7 @@ + all: longrun README stamp-po + + longrun: longrun.c +- gcc -DLOCALEDIR=\"$(LOCALEDIR)\" -g -O2 -W -Wall -o longrun longrun.c ++ $(CC) $(CFLAGS) $(LDFLAGS) -DLOCALEDIR=\"$(LOCALEDIR)\" -W -Wall -o longrun longrun.c + + README: longrun.1 + groff -Tascii -man longrun.1 | col -bx > README +Common subdirectories: longrun.old/po and longrun/po diff --git a/app-admin/longrun/files/0.9-replace-loff_t.patch b/app-admin/longrun/files/0.9-replace-loff_t.patch new file mode 100644 index 000000000000..589c0947b155 --- /dev/null +++ b/app-admin/longrun/files/0.9-replace-loff_t.patch @@ -0,0 +1,35 @@ +Use off_t instead of loff_t. Both pread() and pwrite() take +off_t not loff_t types. This breaks the build on musl. See + +https://bugs.gentoo.org/show_bug.cgi?id=541694 + +diff -Naur longrun.orig/longrun.c longrun/longrun.c +--- longrun.orig/longrun.c 2015-03-07 19:05:19.166652462 +0000 ++++ longrun/longrun.c 2015-03-07 19:06:05.419651899 +0000 +@@ -181,7 +181,7 @@ + } + + /* note: if an output is NULL, then don't set it */ +-void read_msr(loff_t address, int *lower, int *upper) ++void read_msr(off_t address, int *lower, int *upper) + { + uint32_t data[2]; + +@@ -193,7 +193,7 @@ + if (upper) *upper = data[1]; + } + +-void write_msr(loff_t address, int lower, int upper) ++void write_msr(off_t address, int lower, int upper) + { + uint32_t data[2]; + +@@ -206,7 +206,7 @@ + } + + /* note: if an output is NULL, then don't set it */ +-void read_cpuid(loff_t address, int *eax, int *ebx, int *ecx, int *edx) ++void read_cpuid(off_t address, int *eax, int *ebx, int *ecx, int *edx) + { + uint32_t data[4]; + diff --git a/app-admin/longrun/longrun-0.9-r4.ebuild b/app-admin/longrun/longrun-0.9-r4.ebuild new file mode 100644 index 000000000000..82760300f41d --- /dev/null +++ b/app-admin/longrun/longrun-0.9-r4.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils linux-info toolchain-funcs + +DESCRIPTION="A utility to control Transmeta's Crusoe and Efficeon processors" +HOMEPAGE="http://freshmeat.net/projects/longrun/" + +DEBIAN_PATCH_VERSION="19" +DEBIAN_PATCH="${PN}_${PV}-${DEBIAN_PATCH_VERSION}.diff.gz" +SRC_URI=" + mirror://kernel/linux/utils/cpu/crusoe/${P}.tar.bz2 + mirror://debian/pool/main/l/${PN}/${DEBIAN_PATCH}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-ppc x86" +IUSE="" + +DEPEND="" + +S=${WORKDIR}/${PN} + +CONFIG_CHECK="~X86_MSR ~X86_CPUID" + +ERROR_X86_MSR=" +Longrun needs a MSR device to function. Please select +MSR under Processor type and features. It can be build +directly into the kernel or as a module. +" + +ERROR_X86_CPUID=" +Longrun needs a CPUID device to function. Please select +CPUID under Processor type and features. It can be +build directly into the kernel or as a module. +" + +src_unpack() { + unpack ${P}.tar.bz2 + cd "${S}" + epatch "${DISTDIR}/${DEBIAN_PATCH}" + epatch "${FILESDIR}/${PV}-makefile_cflags.patch" + epatch "${FILESDIR}/${PV}-replace-loff_t.patch" +} + +src_compile() { + emake CC="$(tc-getCC)" || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + dodoc MAKEDEV-cpuid-msr +} + +pkg_postinst() { + if linux_config_exists; then + if linux_chkconfig_module X86_MSR; then + elog "You have compiled MSR as a module." + elog "You need to load it before using Longrun." + elog "The module is called msr." + elog + fi + + if linux_chkconfig_module X86_CPUID; then + elog "You have compiled CPUID as a module." + elog "You need to load it before using Longrun." + elog "The module is called cpuid." + fi + else + elog "You have no kernel configuration available." + elog "Longrun needs both CPUID and MSR capabilites," + elog "in the kernel you intend to run it under." + fi +} diff --git a/app-admin/longrun/metadata.xml b/app-admin/longrun/metadata.xml new file mode 100644 index 000000000000..caa10597adc1 --- /dev/null +++ b/app-admin/longrun/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <longdescription> +Longrun is a user space utility program for controlling the Longrun +thermal and power save functionalities found in the processors made +by Transmeta. +</longdescription> + <upstream> + <remote-id type="freshmeat">longrun</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/lsat/Manifest b/app-admin/lsat/Manifest new file mode 100644 index 000000000000..0c08dd99a3f4 --- /dev/null +++ b/app-admin/lsat/Manifest @@ -0,0 +1 @@ +DIST lsat-0.9.7.1.tgz 86077 SHA256 825b4578e7e90f937c492722801fd6b35785264747cd6e7e45bded2545d2d956 SHA512 fa67b5ebb03d11e3ee023c921977ddb64ea1fafca1d4cdb4b0fc5dbfa6edf46d57e488e9702175afbbde360a63d02ee5839fdf6576d974354a3b1d57f8860ffb WHIRLPOOL 81db8c06bf9bd8ae82a29ca751e378ffbc051e8184e7dac208e43064960949fe9483522600f023d064411338ea76d83e0cbc8b5d1f7f8d7861a2d73581fbc71b diff --git a/app-admin/lsat/files/lsat-0.9.7.1-gentoo.patch b/app-admin/lsat/files/lsat-0.9.7.1-gentoo.patch new file mode 100644 index 000000000000..631dcd7322f7 --- /dev/null +++ b/app-admin/lsat/files/lsat-0.9.7.1-gentoo.patch @@ -0,0 +1,42 @@ +diff -Naur lsat-0.9.6.orig/Makefile.in lsat-0.9.6/Makefile.in +--- lsat-0.9.6.orig/Makefile.in 2007-05-22 11:38:28.000000000 +0900 ++++ lsat-0.9.6/Makefile.in 2007-05-25 18:55:25.000000000 +0900 +@@ -12,6 +12,7 @@ + PROGRAM= lsat + INSTALL = /usr/bin/install -c + prefix = @prefix@ ++exec_prefix = @exec_prefix@ + BINDIR = @bindir@ + DATADIR = @datadir@ + MANDIR = @mandir@ +@@ -38,9 +39,7 @@ + rm -f $(PROGRAM) $(OBJECTS) Makefile config.* lsat.old lsatmd5.out lsatmd5.old + + manpage: +- pod2man $(PROGRAM).pod > $(PROGRAM).tmp +- sed 's/perl v5.6.1/LSAT/g' $(PROGRAM).tmp| \ +-sed 's/Perl/LSAT/g'\ ++ pod2man $(PROGRAM).pod -r LSAT -c 'User Contributed LSAT Documentation' \ + > $(PROGRAM).1 + rm -f $(PROGRAM).tmp + # cp -vf $(PROGRAM).1 debian/manpage.1.ex +diff -Naur lsat-0.9.6.orig/checkpkgs.c lsat-0.9.6/checkpkgs.c +--- lsat-0.9.6.orig/checkpkgs.c 2007-04-27 00:48:31.000000000 +0900 ++++ lsat-0.9.6/checkpkgs.c 2007-05-25 18:46:00.000000000 +0900 +@@ -113,14 +113,14 @@ + } + + +- /* if distro = gentoo, use pkglist */ ++ /* if distro = gentoo, use qpkg */ + if (distribution == 4) + { + if (verbose > 0) + { + printf(" Generating list of pkgs on system.\n"); + } +- shellcode = "/usr/lib/portage/bin/pkglist 2>/dev/null >>/tmp/lsat1.lsat"; ++ shellcode = "/usr/bin/qpkg -I -nc 2>/dev/null >>/tmp/lsat1.lsat"; + if ((dostuff(tempfile, 0, shellcode, 0, html)) < 0) + { + /* rhut-rho...something bad happened */ diff --git a/app-admin/lsat/files/lsat-0.9.7.1-segfault-fix.patch b/app-admin/lsat/files/lsat-0.9.7.1-segfault-fix.patch new file mode 100644 index 000000000000..558c8de60321 --- /dev/null +++ b/app-admin/lsat/files/lsat-0.9.7.1-segfault-fix.patch @@ -0,0 +1,45 @@ +--- lsat-0.9.7.1/lsatmain.c.orig 2008-12-29 11:09:04.000000000 -0500 ++++ lsat-0.9.7.1/lsatmain.c 2008-12-29 13:31:00.000000000 -0500 +@@ -232,7 +232,7 @@ int versions(char release[], char kernel + } /* end while (fgets...) */ + close(fileval); + /* clean up even though we will rm it */ +- close(infile); ++ close((int)infile); + + if ( (system("rm -f /tmp/lsat1.lsat")) < 0) + { +@@ -308,9 +308,9 @@ int main(int argc, char *argv[]) + */ + char release[50]; /* array for release level */ + char kernel[50]; /* what kernel user is running */ +- static char *man_distro; /* if the user specifies a distribution */ ++ static char man_distro[10]; /* if the user specifies a distribution */ + const char * header =NULL; /* to print out the header */ +- static char *out_file = "lsat.out"; /* output filename var */ ++ static char out_file[255] = "lsat.out"; /* output filename var */ + char xlist[100]; /* modules to exclude */ + int xarray[33] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; + int somethinginxlist = 0; +@@ -350,10 +350,10 @@ int main(int argc, char *argv[]) + diff = 1; + break; + case 'm': +- strcpy(man_distro, argv[i]+3); ++ strncpy(man_distro, argv[i]+3,sizeof(man_distro)); + break; + case 'o': +- strcpy(out_file, argv[i]+3); ++ strncpy(out_file, argv[i]+3,sizeof(out_file)); + break; + case 'r': + rpmmodule = 1; +@@ -366,7 +366,7 @@ int main(int argc, char *argv[]) + break; + case 'w': + html = 1; +- out_file="lsat.html"; ++ strcpy(out_file,"lsat.html"); + break; + case 'x': strcpy(xlist,argv[i]+3); + somethinginxlist = 1; diff --git a/app-admin/lsat/lsat-0.9.7.1-r1.ebuild b/app-admin/lsat/lsat-0.9.7.1-r1.ebuild new file mode 100644 index 000000000000..898bf2fe9b42 --- /dev/null +++ b/app-admin/lsat/lsat-0.9.7.1-r1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils toolchain-funcs + +DESCRIPTION="The Linux Security Auditing Tool" +HOMEPAGE="http://usat.sourceforge.net/" +SRC_URI="http://usat.sourceforge.net/code/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="minimal" + +DEPEND="dev-lang/perl" # pod2man +RDEPEND="!minimal? ( + app-portage/portage-utils + net-analyzer/nmap + sys-apps/iproute2 + sys-apps/which + sys-process/lsof + )" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-gentoo.patch + + # patch for segmentation fault see bug #184488 + epatch "${FILESDIR}"/${P}-segfault-fix.patch + sed -i Makefile.in \ + -e '/^LDFLAGS=/d' \ + -e '/^CFLAGS=/d' \ + || die "sed Makefile.in" +} + +src_compile() { + tc-export CC + econf + emake CFLAGS="${CFLAGS}" all manpage || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install installman || die "emake install failed" + dodoc README* *.txt + dohtml modules.html changelog/changelog.html +} diff --git a/app-admin/lsat/metadata.xml b/app-admin/lsat/metadata.xml new file mode 100644 index 000000000000..b7a9db9a0340 --- /dev/null +++ b/app-admin/lsat/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <longdescription lang="en"> + Linux Security Auditing Tool (LSAT) is a post install security auditing + tool. It is modular in design, so new features can be added quickly. It + checks inetd entries and scans for unneeded RPM packages. It is being + expanded to work with Linux distributions other than Red Hat, and checks + for kernel versions. + </longdescription> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + <name>Default assignee for orphaned packages</name> + </maintainer> +</pkgmetadata> diff --git a/app-admin/lsyncd/Manifest b/app-admin/lsyncd/Manifest new file mode 100644 index 000000000000..aaa6915637cd --- /dev/null +++ b/app-admin/lsyncd/Manifest @@ -0,0 +1 @@ +DIST lsyncd-2.1.5.tar.gz 149873 SHA256 4a793056c4ed833edb59436d7711bb65f7e38a4d8d44371cc9dc5eb91fbc461f SHA512 7be939e979525f8e4687432ffe952b1d09b8a34b4d7f92ebe86b5cddb765dbd602258682612529e9cc51305d6d001e72de9e6da62761397df23ecda30fd6a12b WHIRLPOOL 3b5405759542b9a97253fcbc3c66d8005c44045e76527ae645cbaa04cf570f4a5f44a863632b5fc17cba215253743cf0fac8a39cbca488d3b5bfc58a82948ee8 diff --git a/app-admin/lsyncd/lsyncd-2.1.5.ebuild b/app-admin/lsyncd/lsyncd-2.1.5.ebuild new file mode 100644 index 000000000000..297ffb92114e --- /dev/null +++ b/app-admin/lsyncd/lsyncd-2.1.5.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="Live Syncing (Mirror) Daemon" +HOMEPAGE="http://code.google.com/p/lsyncd/" +SRC_URI="http://lsyncd.googlecode.com/files/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86 ~amd64-linux ~arm-linux ~x86-linux" + +CDEPEND=">=dev-lang/lua-5.1[deprecated]" +DEPEND="${CDEPEND} + virtual/pkgconfig" +RDEPEND="${CDEPEND} + net-misc/rsync" + +src_configure() { + econf --docdir="${EPREFIX}"/usr/share/doc/${P} +} diff --git a/app-admin/lsyncd/metadata.xml b/app-admin/lsyncd/metadata.xml new file mode 100644 index 000000000000..926da28a904a --- /dev/null +++ b/app-admin/lsyncd/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> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="google-code">lsyncd</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/makepasswd/Manifest b/app-admin/makepasswd/Manifest new file mode 100644 index 000000000000..a6afad3da654 --- /dev/null +++ b/app-admin/makepasswd/Manifest @@ -0,0 +1 @@ +DIST makepasswd_1.10.orig.tar.gz 12382 SHA256 41491f361d810f9bb3e08b40df3c3034faec306d434dab15534e19023f91a75c SHA512 215b8c3941f395c02be43044aed972425db8fe8472ec9f4f39f7f574d9f36c5a1af5bba495dd10570363e923bfe42c26d7571741ae2ef350e660c9973ac0a5ac WHIRLPOOL 60f2ce490828c8d947a48197f68b557c59473a8da74e82d734c99997a245733be64013868d1b6e9bd6bf623db02726f0abaa3038f5e2940d462200ddf2cb097d diff --git a/app-admin/makepasswd/makepasswd-1.10.ebuild b/app-admin/makepasswd/makepasswd-1.10.ebuild new file mode 100644 index 000000000000..8f5f33348b78 --- /dev/null +++ b/app-admin/makepasswd/makepasswd-1.10.ebuild @@ -0,0 +1,20 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +DESCRIPTION="Random password generator" +HOMEPAGE="http://packages.debian.org/stable/admin/makepasswd" +SRC_URI="mirror://debian/dists/potato/main/source/admin/${P/-/_}.orig.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ~arm ia64 ppc s390 sparc x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris" +IUSE="" + +RDEPEND="dev-lang/perl" + +src_install() { + dobin makepasswd || die + doman makepasswd.1 + dodoc README CHANGES +} diff --git a/app-admin/makepasswd/metadata.xml b/app-admin/makepasswd/metadata.xml new file mode 100644 index 000000000000..1884a0f56a43 --- /dev/null +++ b/app-admin/makepasswd/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <longdescription lang="en"> + A random password generator, for all your secure password needs. + </longdescription> + <maintainer> + <email>xmw@gentoo.org</email> + <name>Michael Weber</name> + </maintainer> +</pkgmetadata> diff --git a/app-admin/mate-system-tools/Manifest b/app-admin/mate-system-tools/Manifest new file mode 100644 index 000000000000..72ce641f778b --- /dev/null +++ b/app-admin/mate-system-tools/Manifest @@ -0,0 +1,2 @@ +DIST mate-system-tools-1.8.0.tar.xz 4338404 SHA256 7cfeec1d0a5c237fa8b67121bf1bfcc26665c54ce040d30d75c542799840dbfd SHA512 deec649a1ea4c37b3bdbf93fe4cdf331685e2c76e0fbf67303ac678bfec733a1fcac01bd578cb93a67df939bc1452a4cc4154b1505edcd6e87a1dbcc328c6c8d WHIRLPOOL 9d0660a2ea2f6ff6aa456af74db21da471e14c4e1215ba49aeb4c0ffa29752a9079ace2e22430ff7058d79a84997e264150d6b797496cc87be24720302f5629e +DIST mate-system-tools-1.8.1.tar.xz 4348304 SHA256 c5f1faee761deb679f7a37607cc7166ea81b7d16a7fbc05951b32f119bcb944e SHA512 a2cda52ebab386ebbf6c01288741f59914c8fe8a672a1220b0a8cc44afb51058e8545f385f4d5dab650bc36c3c18ad9519580ce255b4c607131c2c5dd3ce15ce WHIRLPOOL ba486ffcc9dd25aa10858e3b09a046eadbe99a11d4e98c872dd14b91002e9e62a17d88744707ef8fac80b44e27d6402b4532d77d30f6ce0f905335d0e9eee7d2 diff --git a/app-admin/mate-system-tools/files/mate-system-tools-1.6.0-Update-POTFILES-skip.patch b/app-admin/mate-system-tools/files/mate-system-tools-1.6.0-Update-POTFILES-skip.patch new file mode 100644 index 000000000000..ee89cf57ac8c --- /dev/null +++ b/app-admin/mate-system-tools/files/mate-system-tools-1.6.0-Update-POTFILES-skip.patch @@ -0,0 +1,32 @@ +From 0dc126ba76d32a66c73daa5c2a93980efbc1264e Mon Sep 17 00:00:00 2001 +From: Stefano Karapetsas <stefano@karapetsas.com> +Date: Sat, 25 Jan 2014 12:29:44 +0100 +Subject: [PATCH] Update POTFILES.skip + +--- + po/POTFILES.skip | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) + +diff --git a/po/POTFILES.skip b/po/POTFILES.skip +index a6a3e9f..d54118d 100644 +--- a/po/POTFILES.skip ++++ b/po/POTFILES.skip +@@ -6,11 +6,11 @@ interfaces/services.glade + interfaces/shares.glade + interfaces/time.glade + interfaces/users.glade +-src/network/network.desktop.in +-src/services/services.desktop.in +-src/shares/shares.desktop.in +-src/time/time.desktop.in +-src/users/users.desktop.in ++src/network/mate-network.desktop.in ++src/services/mate-services.desktop.in ++src/shares/mate-shares.desktop.in ++src/time/mate-time.desktop.in ++src/users/mate-users.desktop.in + interfaces/disks.glade.in + src/disks/callbacks.c + src/disks/disks-cdrom-disc.c +-- +1.8.5.5 diff --git a/app-admin/mate-system-tools/mate-system-tools-1.8.0.ebuild b/app-admin/mate-system-tools/mate-system-tools-1.8.0.ebuild new file mode 100644 index 000000000000..2fcb75e97826 --- /dev/null +++ b/app-admin/mate-system-tools/mate-system-tools-1.8.0.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +GCONF_DEBUG="no" +GNOME2_LA_PUNT="yes" + +inherit gnome2 versionator + +MATE_BRANCH="$(get_version_component_range 1-2)" + +SRC_URI="http://pub.mate-desktop.org/releases/${MATE_BRANCH}/${P}.tar.xz" +DESCRIPTION="Tools aimed to make easy the administration of UNIX systems" +HOMEPAGE="http://mate-desktop.org" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="amd64 x86" + +IUSE="caja nfs policykit samba" + +RDEPEND="app-text/rarian:0 + >=app-admin/system-tools-backends-2.10.1:0 + dev-libs/atk:0 + dev-libs/dbus-glib:0 + >=dev-libs/glib-2.25.3:2 + >=dev-libs/liboobs-1.1:0 + >=sys-apps/dbus-0.32:0 + net-wireless/wireless-tools:0 + sys-libs/cracklib:0 + x11-libs/gdk-pixbuf:2 + x11-libs/pango:0 + >=x11-libs/gtk+-2.19.7:2 + virtual/libintl:0 + caja? ( >=mate-base/caja-1.8:0 ) + nfs? ( net-fs/nfs-utils:0 ) + policykit? ( + >=mate-extra/mate-polkit-1.8:0 + >=sys-auth/polkit-0.92:0 + ) + samba? ( >=net-fs/samba-3:0 )" + +DEPEND="${RDEPEND} + app-text/docbook-xml-dtd:4.1.2 + >=app-text/scrollkeeper-dtd-1:1.0 + app-text/yelp-tools:0 + sys-devel/gettext:* + virtual/pkgconfig:* + >=dev-util/intltool-0.35.0:*" + +src_configure() { + local myconf + if ! use nfs && ! use samba; then + myconf="--disable-shares" + fi + + gnome2_src_configure \ + ${myconf} \ + --disable-static \ + $(use_enable policykit polkit-gtk-mate) \ + $(use_enable caja) +} + +DOCS="AUTHORS BUGS ChangeLog HACKING NEWS README TODO" diff --git a/app-admin/mate-system-tools/mate-system-tools-1.8.1.ebuild b/app-admin/mate-system-tools/mate-system-tools-1.8.1.ebuild new file mode 100644 index 000000000000..2fcb75e97826 --- /dev/null +++ b/app-admin/mate-system-tools/mate-system-tools-1.8.1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +GCONF_DEBUG="no" +GNOME2_LA_PUNT="yes" + +inherit gnome2 versionator + +MATE_BRANCH="$(get_version_component_range 1-2)" + +SRC_URI="http://pub.mate-desktop.org/releases/${MATE_BRANCH}/${P}.tar.xz" +DESCRIPTION="Tools aimed to make easy the administration of UNIX systems" +HOMEPAGE="http://mate-desktop.org" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="amd64 x86" + +IUSE="caja nfs policykit samba" + +RDEPEND="app-text/rarian:0 + >=app-admin/system-tools-backends-2.10.1:0 + dev-libs/atk:0 + dev-libs/dbus-glib:0 + >=dev-libs/glib-2.25.3:2 + >=dev-libs/liboobs-1.1:0 + >=sys-apps/dbus-0.32:0 + net-wireless/wireless-tools:0 + sys-libs/cracklib:0 + x11-libs/gdk-pixbuf:2 + x11-libs/pango:0 + >=x11-libs/gtk+-2.19.7:2 + virtual/libintl:0 + caja? ( >=mate-base/caja-1.8:0 ) + nfs? ( net-fs/nfs-utils:0 ) + policykit? ( + >=mate-extra/mate-polkit-1.8:0 + >=sys-auth/polkit-0.92:0 + ) + samba? ( >=net-fs/samba-3:0 )" + +DEPEND="${RDEPEND} + app-text/docbook-xml-dtd:4.1.2 + >=app-text/scrollkeeper-dtd-1:1.0 + app-text/yelp-tools:0 + sys-devel/gettext:* + virtual/pkgconfig:* + >=dev-util/intltool-0.35.0:*" + +src_configure() { + local myconf + if ! use nfs && ! use samba; then + myconf="--disable-shares" + fi + + gnome2_src_configure \ + ${myconf} \ + --disable-static \ + $(use_enable policykit polkit-gtk-mate) \ + $(use_enable caja) +} + +DOCS="AUTHORS BUGS ChangeLog HACKING NEWS README TODO" diff --git a/app-admin/mate-system-tools/metadata.xml b/app-admin/mate-system-tools/metadata.xml new file mode 100644 index 000000000000..a4054046af53 --- /dev/null +++ b/app-admin/mate-system-tools/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>mate</herd> + <longdescription> + Formerly known as the Ximian Setup Tools, the GST are a fully + integrated set of tools aimed to make easy the job that means the + computer administration on an UNIX or Linux system. They're + thought to help from the new Linux or UNIX user to the system + administrators. + </longdescription> + <use> + <flag name="nfs">Adds support for NFS shares</flag> + <flag name="caja">Adds support for the Caja file manager</flag> + </use> + <upstream> + <remote-id type="github">mate-desktop/mate-system-tools</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/matter/Manifest b/app-admin/matter/Manifest new file mode 100644 index 000000000000..520d012e476c --- /dev/null +++ b/app-admin/matter/Manifest @@ -0,0 +1 @@ +DIST entropy-254.tar.bz2 18516662 SHA256 5e411472eaf7016a68a4aa81ef92dd3aad8403fc65a0ffb09c57b91c959ca3a6 SHA512 3b3e82abad8008720e370b7892b7be1c48aaa6605914db977f68b9a108ada0a4adbaa5b7b50a9a02ba9c8b0bdefadcda1eceee2c7c2abc385b3daf669649e2da WHIRLPOOL 593469b858707e4ceca56146fa1d608141e44dda0a0921ed6a3ec566878c1e3c153410233f088d57db4f8bd9d1c796bd945cbea3ba455572efc05eca42023ce5 diff --git a/app-admin/matter/matter-254.ebuild b/app-admin/matter/matter-254.ebuild new file mode 100644 index 000000000000..79ee96884406 --- /dev/null +++ b/app-admin/matter/matter-254.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils python-single-r1 bash-completion-r1 + +DESCRIPTION="Automated Packages Builder for Portage and Entropy" +HOMEPAGE="http://www.sabayon.org" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="+entropy" +SRC_URI="mirror://sabayon/sys-apps/entropy-${PV}.tar.bz2" + +S="${WORKDIR}/entropy-${PV}/${PN}" + +DEPEND="" +RDEPEND="entropy? ( ~sys-apps/entropy-${PV}[${PYTHON_USEDEP}] ) + sys-apps/file[python] + ${PYTHON_DEPS}" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +src_install() { + emake DESTDIR="${D}" install || die "make install failed" + emake DESTDIR="${D}" base-install || die "make base-install failed" + if use entropy; then + emake DESTDIR="${D}" entropysrv-install || die "make base-install failed" + fi + + python_optimize "${D}/usr/lib/matter" +} diff --git a/app-admin/matter/metadata.xml b/app-admin/matter/metadata.xml new file mode 100644 index 000000000000..f5967f80f9a8 --- /dev/null +++ b/app-admin/matter/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> + <email>lxnay@gentoo.org</email> + <name>Fabio Erculiani</name> + </maintainer> + <use> + <flag name='entropy'>Add Entropy support</flag> + </use> +</pkgmetadata> + diff --git a/app-admin/mcelog/Manifest b/app-admin/mcelog/Manifest new file mode 100644 index 000000000000..8df5b42b08c3 --- /dev/null +++ b/app-admin/mcelog/Manifest @@ -0,0 +1,7 @@ +DIST mcelog-1.0_pre3_p20120918.tar.gz 284893 SHA256 21c3cfa2d4a5998495a50705124af452ef92d2ddf909c2b00c87a37cead8179a SHA512 fcb97a2b5fb13f9a161b9a5e9c85947baa41f61ec9f04e32d09f4ffa4e0f1854a449e73661bdf0eabb568f6721727fcf3ed3fdfabe69c8e2a6133159d862e594 WHIRLPOOL c6e85b652cc756729df29dd7be00351573cafebd18c01ee01c9b38f5a39de93e380f0e6d1a37b1f56db34993fec5564bde0591346a98b88c997664f07495c469 +DIST mcelog-1.0_pre3_p20130621.tar.gz 287524 SHA256 688306b877f70bc9406434b9cf497799fc7ac0a2e2793742b4bccd0a806d8bb9 SHA512 75d3628dde144f95400cadd1e1085a78c5e6c12761279780363aae402fddd1700dcfa6736ec4c44331569ab2a06c48fd87b5bbdfd03e937c0a5dc9eb89a4f5ab WHIRLPOOL 2ca1c98114283afa9f02036bfa928086b7de4ca1fefc5184c334e317e6e313042bbbe46ef8468f71d79fb28c0983ba52bedb59f49783b83771446068e3631f41 +DIST mcelog-1.0pre3.tar.gz 176649 SHA256 0782e0aa952fa4bd641071e6b501774a63993a813a4f494ffd7819521a13c50c SHA512 ef571cde8ce170d2003e6789116ff88fedfd5aeeb75d09bc5f9cafcb30eb081ca572e2604ba160e83ad927433d963d3bcbae06bca4c499a1bebcb8cc632355b0 WHIRLPOOL 3627567c42bf8685fb355f84e9405b5f7e36df57e2b73f8b40df52d12a4d2e37ef3a8d03311ab48068b76ac03cbbe0dea9acc24a001274544321b76f42f78c66 +DIST mcelog-100.tar.gz 288423 SHA256 b18f029ec9f498b6249b3a3dfef7753ac9d45ebf3382af452cb3e14d49274bab SHA512 efd7864daaafe5d149fc27259d4fa72221372842d41ad57c046c967fd1eb710ef921f45111e95bfe76df119276b3b9af1bf1094a9411037eb1f5ac06e319e87d WHIRLPOOL 9f2f7fdbb3c94b7740f486005641a90529e240c34f3709989e6e0d448c96369f4562408aa678ea992f47f396cdfb60c71eadf75475c52ff0cd6318a99c4ad2eb +DIST mcelog-103.tar.gz 289648 SHA256 0ff3d20b449cac5289fec65c662a0cafd4062e75d6b45d11a265e57804f0c230 SHA512 5473f563927a49c3ab7c2affddc638248b0baf4d4a5326db889bfd37889a477f7fe37113cbeb2f2a4962f0427cc73ce4afe3b17f032956c8fa866c3eb080795e WHIRLPOOL c041aeadfe3844755d86ad62be81136d8c51dcaad85c96df1739f39b395c9a069c46cce7b687556d7703d8a05645d8bfb59955fdea3e99dcf0d3ebbfc5399bf1 +DIST mcelog-109.tar.gz 291753 SHA256 0b842274e9d19f14d26d0797ebcfeb0cfcf5a34675fc0a2a6e9d4145e5176333 SHA512 f6b241c7a531b20d84714c66987b6ff75f064a8d1e2fe04fe376a2f600065f0890b68fac7c9683a0fdf4c2f30e0d5d95323435a62a1c6abcd3475163e5c95bd8 WHIRLPOOL 6abe80bdc5ee14d49d0c6a27d643863c696f3a8865d5874a963dec04a923c21fe2931249f9173dd0268b86345062f16fc488a63063c4dcb500420eec8531b8e5 +DIST mcelog-117.tar.gz 296068 SHA256 0e0422e8693e4592a85ed344738004dcedcd930234ab862b0bdcb6ae7aa44f2b SHA512 664e4d9224ec1878153561bebdf4f6c58ea44cf0d494a04eb38cdd73cc8158fabdb0b4823f2303e39818f104298208206dfb9ff64ef13654dadfb5e7a4f5e723 WHIRLPOOL 1919bb2069f216d6a649c883bb9a9417edc9b51d639a73a81f5d5a8d06d874447dc839401858b1d402bbed588077dab93273d012768cb5d1b3fff3ec378d662e diff --git a/app-admin/mcelog/files/mcelog-0.8_pre1-timestamp-mcelog.patch b/app-admin/mcelog/files/mcelog-0.8_pre1-timestamp-mcelog.patch new file mode 100644 index 000000000000..d24afdbfe00e --- /dev/null +++ b/app-admin/mcelog/files/mcelog-0.8_pre1-timestamp-mcelog.patch @@ -0,0 +1,8 @@ +diff -Nuar mcelog-0.8pre.orig/mcelog.cron mcelog-0.8pre/mcelog.cron +--- mcelog-0.8pre.orig/mcelog.cron 2006-02-08 05:09:03.000000000 -0800 ++++ mcelog-0.8pre/mcelog.cron 2008-02-22 11:32:06.717012502 -0800 +@@ -1,2 +1,3 @@ + #!/bin/bash +-/usr/sbin/mcelog --ignorenodev --filter >> /var/log/mcelog ++header="$(date +"%b %d %H:%M:%S") $(hostname) " ++/usr/sbin/mcelog --ignorenodev --filter | sed "s,^,$header,g" >> /var/log/mcelog diff --git a/app-admin/mcelog/files/mcelog-1.0_pre3_p20120918-bashism.patch b/app-admin/mcelog/files/mcelog-1.0_pre3_p20120918-bashism.patch new file mode 100644 index 000000000000..c6cba7d83bae --- /dev/null +++ b/app-admin/mcelog/files/mcelog-1.0_pre3_p20120918-bashism.patch @@ -0,0 +1,21 @@ +From: Julian Ospald <hasufell@gentoo.org> +Date: Sat Jan 26 17:40:22 UTC 2013 +Subject: remove bashisms + +--- triggers/cache-error-trigger ++++ triggers/cache-error-trigger +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/bin/sh + # cache error trigger. This shell script is executed by mcelog in daemon mode + # when a CPU reports excessive corrected cache errors. This could be a indication + # for future uncorrected errors. +@@ -28,7 +28,7 @@ + logger -s -p daemon.crit -t mcelog "Offlining CPU $i due to cache error threshold" + F=$(printf "/sys/devices/system/cpu/cpu%d/online" $i) + echo 0 > $F +- if [ "$(< $F)" != "0" ] ; then ++ if [ "$(cat $F)" != "0" ] ; then + logger -s -p daemon.warn -t mcelog "Offlining CPU $i failed" + EXIT=1 + fi diff --git a/app-admin/mcelog/files/mcelog-1.0_pre3_p20120918-build.patch b/app-admin/mcelog/files/mcelog-1.0_pre3_p20120918-build.patch new file mode 100644 index 000000000000..6444bfb133e8 --- /dev/null +++ b/app-admin/mcelog/files/mcelog-1.0_pre3_p20120918-build.patch @@ -0,0 +1,42 @@ +From: Julian Ospald <hasufell@gentoo.org> +Date: Wed Oct 24 15:41:33 UTC 2012 +Subject: build system + +don't overwrite system CFLAGS, only append "-g -Os" if DEBUG=1 is passed +as argument + +always use $(CC) instead of "gcc" + +--- Makefile ++++ Makefile +@@ -1,4 +1,11 @@ +-CFLAGS := -g -Os ++CC ?= gcc ++ ++# set to 1 to enable debug flags ++DEBUG = 0 ++ifeq ($(DEBUG),1) ++CFLAGS += -g -Os ++endif ++ + prefix := /usr + etcprefix := + # Define appropiately for your distribution +@@ -70,7 +77,7 @@ + rm -f ${CLEAN} ${OBJ} + + tsc: tsc.c +- gcc -o tsc ${CFLAGS} -DSTANDALONE tsc.c ${LDFLAGS} ++ $(CC) -o tsc ${CFLAGS} -DSTANDALONE tsc.c ${LDFLAGS} + + dbquery: db.o dbquery.o memutil.o + +@@ -101,7 +108,7 @@ + echo $(SRC) + + config-test: config.c +- gcc -DTEST=1 config.c -o config-test ++ $(CC) -DTEST=1 config.c -o config-test + + test: + $(MAKE) -C tests test DEBUG="" diff --git a/app-admin/mcelog/files/mcelog.init b/app-admin/mcelog/files/mcelog.init new file mode 100644 index 000000000000..d800b757b868 --- /dev/null +++ b/app-admin/mcelog/files/mcelog.init @@ -0,0 +1,29 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +description='Start/stop mcelog in daemon mode' + +PIDFILE="/var/run/mcelog.pid" + +depend() { + after udev + need localmount + use logging +} + +start() { + ebegin "Starting mcelog" + start-stop-daemon \ + --start \ + --pidfile ${PIDFILE} \ + --exec /usr/sbin/mcelog -- --daemon --pidfile ${PIDFILE} ${MCELOG_OPTS} + eend $? +} + +stop() { + ebegin "Stopping mcelog" + start-stop-daemon --stop --pidfile ${PIDFILE} + eend $? +} diff --git a/app-admin/mcelog/files/mcelog.init-r1 b/app-admin/mcelog/files/mcelog.init-r1 new file mode 100644 index 000000000000..a282118ef0d4 --- /dev/null +++ b/app-admin/mcelog/files/mcelog.init-r1 @@ -0,0 +1,16 @@ +#!/sbin/runscript +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +description='Start/stop mcelog in daemon mode' + +pidfile="/var/run/mcelog.pid" +command="/usr/sbin/mcelog" +command_args="--daemon --pidfile ${pidfile} ${MCELOG_OPTS}" + +depend() { + after udev + need localmount + use logging +} diff --git a/app-admin/mcelog/files/mcelog.service b/app-admin/mcelog/files/mcelog.service new file mode 100644 index 000000000000..4bd553012c95 --- /dev/null +++ b/app-admin/mcelog/files/mcelog.service @@ -0,0 +1,10 @@ +[Unit] +Description=Machine Check Exception Logging Daemon +After=syslog.target + +[Service] +ExecStart=/usr/sbin/mcelog --ignorenodev --daemon --foreground +StandardOutput=syslog + +[Install] +WantedBy=multi-user.target diff --git a/app-admin/mcelog/mcelog-1.0_pre3.ebuild b/app-admin/mcelog/mcelog-1.0_pre3.ebuild new file mode 100644 index 000000000000..a002946bf669 --- /dev/null +++ b/app-admin/mcelog/mcelog-1.0_pre3.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils toolchain-funcs + +MY_PV="${PV/_/}" +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="A tool to log and decode Machine Check Exceptions" +HOMEPAGE="http://www.kernel.org/pub/linux/utils/cpu/mce/" +SRC_URI="mirror://kernel/linux/utils/cpu/mce/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +S="${WORKDIR}/${MY_P}" + +# test suite needs mce-inject, we don't have a package for it yet +RESTRICT="test" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${PN}-0.8_pre1-timestamp-mcelog.patch + + sed -i \ + -e 's:-g:${CFLAGS}:g' \ + -e 's:\tgcc:\t$(CC):g' Makefile || die "sed makefile failed" +} + +src_compile() { + emake CC="$(tc-getCC)" || die +} + +src_install() { + dosbin mcelog || die + doman mcelog.8 + + exeinto /etc/cron.daily + newexe mcelog.cron mcelog || die + + insinto /etc/logrotate.d/ + newins mcelog.logrotate mcelog || die + + dodoc CHANGES README TODO *.pdf +} diff --git a/app-admin/mcelog/mcelog-1.0_pre3_p20120918-r1.ebuild b/app-admin/mcelog/mcelog-1.0_pre3_p20120918-r1.ebuild new file mode 100644 index 000000000000..029d6d0f1a31 --- /dev/null +++ b/app-admin/mcelog/mcelog-1.0_pre3_p20120918-r1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit linux-info eutils toolchain-funcs vcs-snapshot + +COMMIT="0f5d0238ca7fb963a687a3c50c96c5f37a599c6b" +DESCRIPTION="A tool to log and decode Machine Check Exceptions" +HOMEPAGE="http://mcelog.org/" +SRC_URI="https://github.com/andikleen/${PN}/tarball/${COMMIT} -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="selinux" + +RDEPEND="selinux? ( sec-policy/selinux-mcelog )" + +CONFIG_CHECK="~X86_MCE" + +# TODO: add mce-inject to the tree to support test phase +RESTRICT="test" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.8_pre1-timestamp-${PN}.patch \ + "${FILESDIR}"/${P}-build.patch \ + "${FILESDIR}"/${P}-bashism.patch + tc-export CC +} + +src_install() { + dosbin ${PN} + + insinto /etc/cron.daily + newins ${PN}.cron ${PN} + + insinto /etc/logrotate.d/ + newins ${PN}.logrotate ${PN} + + newinitd "${FILESDIR}"/${PN}.init ${PN} + + insinto /etc/${PN} + doins mcelog.conf + exeinto /etc/${PN} + doexe triggers/* + + dodoc CHANGES README TODO *.pdf + doman ${PN}.8 +} + +pkg_postinst() { + einfo "The default configuration set is now installed in /etc/${PN}" + einfo "you might want to edit those files." + einfo + einfo "A sample cronjob is installed into /etc/cron.daily" + einfo "without executable bit (system service is the preferred method now)" +} diff --git a/app-admin/mcelog/mcelog-1.0_pre3_p20130621-r1.ebuild b/app-admin/mcelog/mcelog-1.0_pre3_p20130621-r1.ebuild new file mode 100644 index 000000000000..2765335f6329 --- /dev/null +++ b/app-admin/mcelog/mcelog-1.0_pre3_p20130621-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit linux-info eutils systemd toolchain-funcs vcs-snapshot + +COMMIT="b842ecb44965722ecd67bed1ed9d900073e3313f" +DESCRIPTION="A tool to log and decode Machine Check Exceptions" +HOMEPAGE="http://mcelog.org/" +SRC_URI="https://github.com/andikleen/${PN}/tarball/${COMMIT} -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="selinux" + +RDEPEND="selinux? ( sec-policy/selinux-mcelog )" + +CONFIG_CHECK="~X86_MCE" + +# TODO: add mce-inject to the tree to support test phase +RESTRICT="test" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.8_pre1-timestamp-${PN}.patch \ + "${FILESDIR}"/${PN}-1.0_pre3_p20120918-build.patch \ + "${FILESDIR}"/${PN}-1.0_pre3_p20120918-bashism.patch + tc-export CC +} + +src_install() { + dosbin ${PN} + + insinto /etc/cron.daily + newins ${PN}.cron ${PN} + + insinto /etc/logrotate.d/ + newins ${PN}.logrotate ${PN} + + newinitd "${FILESDIR}"/${PN}.init ${PN} + systemd_dounit "${FILESDIR}"/${PN}.service + + insinto /etc/${PN} + doins mcelog.conf + exeinto /etc/${PN} + doexe triggers/* + + dodoc CHANGES README TODO *.pdf + doman ${PN}.8 +} + +pkg_postinst() { + einfo "The default configuration set is now installed in /etc/${PN}" + einfo "you might want to edit those files." + einfo + einfo "A sample cronjob is installed into /etc/cron.daily" + einfo "without executable bit (system service is the preferred method now)" +} diff --git a/app-admin/mcelog/mcelog-1.0_pre3_p20130621.ebuild b/app-admin/mcelog/mcelog-1.0_pre3_p20130621.ebuild new file mode 100644 index 000000000000..9121b71ec080 --- /dev/null +++ b/app-admin/mcelog/mcelog-1.0_pre3_p20130621.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit linux-info eutils toolchain-funcs vcs-snapshot + +COMMIT="b842ecb44965722ecd67bed1ed9d900073e3313f" +DESCRIPTION="A tool to log and decode Machine Check Exceptions" +HOMEPAGE="http://mcelog.org/" +SRC_URI="https://github.com/andikleen/${PN}/tarball/${COMMIT} -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="selinux" + +RDEPEND="selinux? ( sec-policy/selinux-mcelog )" + +CONFIG_CHECK="~X86_MCE" + +# TODO: add mce-inject to the tree to support test phase +RESTRICT="test" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.8_pre1-timestamp-${PN}.patch \ + "${FILESDIR}"/${PN}-1.0_pre3_p20120918-build.patch \ + "${FILESDIR}"/${PN}-1.0_pre3_p20120918-bashism.patch + tc-export CC +} + +src_install() { + dosbin ${PN} + + insinto /etc/cron.daily + newins ${PN}.cron ${PN} + + insinto /etc/logrotate.d/ + newins ${PN}.logrotate ${PN} + + newinitd "${FILESDIR}"/${PN}.init ${PN} + + insinto /etc/${PN} + doins mcelog.conf + exeinto /etc/${PN} + doexe triggers/* + + dodoc CHANGES README TODO *.pdf + doman ${PN}.8 +} + +pkg_postinst() { + einfo "The default configuration set is now installed in /etc/${PN}" + einfo "you might want to edit those files." + einfo + einfo "A sample cronjob is installed into /etc/cron.daily" + einfo "without executable bit (system service is the preferred method now)" +} diff --git a/app-admin/mcelog/mcelog-100.ebuild b/app-admin/mcelog/mcelog-100.ebuild new file mode 100644 index 000000000000..1a2835513809 --- /dev/null +++ b/app-admin/mcelog/mcelog-100.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit linux-info eutils systemd toolchain-funcs + +DESCRIPTION="A tool to log and decode Machine Check Exceptions" +HOMEPAGE="http://mcelog.org/" +SRC_URI="https://github.com/andikleen/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="selinux" + +RDEPEND="selinux? ( sec-policy/selinux-mcelog )" + +CONFIG_CHECK="~X86_MCE" + +# TODO: add mce-inject to the tree to support test phase +RESTRICT="test" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.8_pre1-timestamp-${PN}.patch \ + "${FILESDIR}"/${PN}-1.0_pre3_p20120918-build.patch \ + "${FILESDIR}"/${PN}-1.0_pre3_p20120918-bashism.patch + tc-export CC +} + +src_install() { + dosbin ${PN} + + insinto /etc/cron.daily + newins ${PN}.cron ${PN} + + insinto /etc/logrotate.d/ + newins ${PN}.logrotate ${PN} + + newinitd "${FILESDIR}"/${PN}.init ${PN} + systemd_dounit "${FILESDIR}"/${PN}.service + + insinto /etc/${PN} + doins mcelog.conf + exeinto /etc/${PN} + doexe triggers/* + + dodoc CHANGES README TODO *.pdf + doman ${PN}.8 +} + +pkg_postinst() { + einfo "The default configuration set is now installed in /etc/${PN}" + einfo "you might want to edit those files." + einfo + einfo "A sample cronjob is installed into /etc/cron.daily" + einfo "without executable bit (system service is the preferred method now)" +} diff --git a/app-admin/mcelog/mcelog-103.ebuild b/app-admin/mcelog/mcelog-103.ebuild new file mode 100644 index 000000000000..ba60b1f5c849 --- /dev/null +++ b/app-admin/mcelog/mcelog-103.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit linux-info eutils systemd toolchain-funcs + +DESCRIPTION="A tool to log and decode Machine Check Exceptions" +HOMEPAGE="http://mcelog.org/" +SRC_URI="https://github.com/andikleen/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="selinux" + +RDEPEND="selinux? ( sec-policy/selinux-mcelog )" + +CONFIG_CHECK="~X86_MCE" + +# TODO: add mce-inject to the tree to support test phase +RESTRICT="test" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.8_pre1-timestamp-${PN}.patch \ + "${FILESDIR}"/${PN}-1.0_pre3_p20120918-build.patch \ + "${FILESDIR}"/${PN}-1.0_pre3_p20120918-bashism.patch + tc-export CC +} + +src_install() { + dosbin ${PN} + + insinto /etc/cron.daily + newins ${PN}.cron ${PN} + + insinto /etc/logrotate.d/ + newins ${PN}.logrotate ${PN} + + newinitd "${FILESDIR}"/${PN}.init-r1 ${PN} + systemd_dounit "${FILESDIR}"/${PN}.service + + insinto /etc/${PN} + doins mcelog.conf + exeinto /etc/${PN} + doexe triggers/* + + dodoc CHANGES README TODO *.pdf + doman ${PN}.8 +} + +pkg_postinst() { + einfo "The default configuration set is now installed in /etc/${PN}" + einfo "you might want to edit those files." + einfo + einfo "A sample cronjob is installed into /etc/cron.daily" + einfo "without executable bit (system service is the preferred method now)" +} diff --git a/app-admin/mcelog/mcelog-109.ebuild b/app-admin/mcelog/mcelog-109.ebuild new file mode 100644 index 000000000000..029fa3b92569 --- /dev/null +++ b/app-admin/mcelog/mcelog-109.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit linux-info eutils systemd toolchain-funcs + +DESCRIPTION="A tool to log and decode Machine Check Exceptions" +HOMEPAGE="http://mcelog.org/" +SRC_URI="https://github.com/andikleen/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="selinux" + +RDEPEND="selinux? ( sec-policy/selinux-mcelog )" + +CONFIG_CHECK="~X86_MCE" + +# TODO: add mce-inject to the tree to support test phase +RESTRICT="test" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.8_pre1-timestamp-${PN}.patch \ + "${FILESDIR}"/${PN}-1.0_pre3_p20120918-build.patch \ + "${FILESDIR}"/${PN}-1.0_pre3_p20120918-bashism.patch + tc-export CC +} + +src_install() { + dosbin ${PN} + + insinto /etc/cron.daily + newins ${PN}.cron ${PN} + + insinto /etc/logrotate.d/ + newins ${PN}.logrotate ${PN} + + newinitd "${FILESDIR}"/${PN}.init-r1 ${PN} + systemd_dounit "${FILESDIR}"/${PN}.service + + insinto /etc/${PN} + doins mcelog.conf + exeinto /etc/${PN} + doexe triggers/* + + dodoc CHANGES README TODO *.pdf + doman ${PN}.8 +} + +pkg_postinst() { + einfo "The default configuration set is now installed in /etc/${PN}" + einfo "you might want to edit those files." + einfo + einfo "A sample cronjob is installed into /etc/cron.daily" + einfo "without executable bit (system service is the preferred method now)" +} diff --git a/app-admin/mcelog/mcelog-117.ebuild b/app-admin/mcelog/mcelog-117.ebuild new file mode 100644 index 000000000000..f46ca0c96188 --- /dev/null +++ b/app-admin/mcelog/mcelog-117.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit linux-info eutils systemd toolchain-funcs + +DESCRIPTION="A tool to log and decode Machine Check Exceptions" +HOMEPAGE="http://mcelog.org/" +SRC_URI="https://github.com/andikleen/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="selinux" + +RDEPEND="selinux? ( sec-policy/selinux-mcelog )" + +CONFIG_CHECK="~X86_MCE" + +# TODO: add mce-inject to the tree to support test phase +RESTRICT="test" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.8_pre1-timestamp-${PN}.patch \ + "${FILESDIR}"/${PN}-1.0_pre3_p20120918-build.patch \ + "${FILESDIR}"/${PN}-1.0_pre3_p20120918-bashism.patch + tc-export CC +} + +src_install() { + default + + insinto /etc/cron.daily + newins ${PN}.cron ${PN} + + insinto /etc/logrotate.d/ + newins ${PN}.logrotate ${PN} + + newinitd "${FILESDIR}"/${PN}.init-r1 ${PN} + systemd_dounit "${FILESDIR}"/${PN}.service + + dodoc *.pdf +} + +pkg_postinst() { + einfo "The default configuration set is now installed in /etc/${PN}" + einfo "you might want to edit those files." + einfo + einfo "A sample cronjob is installed into /etc/cron.daily" + einfo "without executable bit (system service is the preferred method now)" +} diff --git a/app-admin/mcelog/metadata.xml b/app-admin/mcelog/metadata.xml new file mode 100644 index 000000000000..df75688b46dc --- /dev/null +++ b/app-admin/mcelog/metadata.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>proxy-maintainers</herd> + <maintainer> + <email>hasufell@gentoo.org</email> + <name>Julian Ospald</name> + <description>Maintainer, assign bugs to him</description> + </maintainer> + <maintainer> + <email>bkohler@gmail.com</email> + <name>Ben Kohler</name> + <description>Proxy maintainer. CC him on bugs</description> + </maintainer> + <longdescription lang="en"> + Starting with version 2.6.4, the Linux kernel for x86-64 no longer + decodes and logs recoverable Machine Check Exception events to the + kernel log on its own. + </longdescription> + <upstream> + <remote-id type="github">andikleen/mcelog</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/mcollective/Manifest b/app-admin/mcollective/Manifest new file mode 100644 index 000000000000..604338e52c4c --- /dev/null +++ b/app-admin/mcollective/Manifest @@ -0,0 +1 @@ +DIST mcollective-2.8.0.tar.gz 718292 SHA256 47084f9285707f2e457850adcf90811f3d39d4f4baa950d822b20b45633db259 SHA512 edc3da334dbd3afd18fcedc675c6498edce1c799d9b472f70ebfe1b972e013cba5217ec492ea4128b15d886edaf283246ba70915180f9a10a67f7c0957fd1c8e WHIRLPOOL 0c6461a43c4533334dee420e7a0debfa8aa2e0079b83407c1313a28689b5ecbd891c94740553947bdce4023786eb0e95e497da73108e283619f358d67dac7c0c diff --git a/app-admin/mcollective/files/mcollectived.initd b/app-admin/mcollective/files/mcollectived.initd new file mode 100644 index 000000000000..5744bcd93726 --- /dev/null +++ b/app-admin/mcollective/files/mcollectived.initd @@ -0,0 +1,29 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the Apache License, Version 2.0 +# $Id$ + +mcollectived="/usr/sbin/mcollectived" +pidfile="/var/run/mcollectived" + +depend() { + need net +} + +start() { + ebegin "Starting mcollectived" + ${mcollectived} --pid=${pidfile} --config="/etc/mcollective/server.cfg" + eend $? +} + +stop() { + ebegin "Stopping mcollectived" + kill `cat ${pidfile}` + eend $? +} + +restart() { + svc_stop + sleep 2 + svc_start +} diff --git a/app-admin/mcollective/mcollective-2.8.0.ebuild b/app-admin/mcollective/mcollective-2.8.0.ebuild new file mode 100644 index 000000000000..12d75e7738c6 --- /dev/null +++ b/app-admin/mcollective/mcollective-2.8.0.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +USE_RUBY="ruby19 ruby20" + +inherit ruby-ng + +DESCRIPTION="Framework to build server orchestration or parallel job execution +systems" +HOMEPAGE="http://marionette-collective.org/" +SRC_URI="http://puppetlabs.com/downloads/mcollective/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="doc +client" + +DEPEND="" +RDEPEND="dev-ruby/stomp" + +src_compile() { + einfo "nothing to compile" +} + +each_ruby_install() { + doruby -r lib/* + insinto /usr/share/mcollective + use client && dosbin bin/mco + dosbin bin/mcollectived + if use doc ; then + dohtml -r doc/* + insinto /usr/share/doc/${P}/ext + doins -r ext/* + fi + newinitd "${FILESDIR}"/mcollectived.initd mcollectived + insinto /etc/mcollective + cd etc + for cfg in *.dist ; do + newins "${cfg}" "${cfg%%.dist}" + sed -i -e "s:^libdir.*:libdir = /usr/share/mcollective/plugins:" \ + "${D}"/etc/mcollective/${cfg%%.dist} || die "sed failed" + done + insinto /etc/mcollective/plugin.d +} + +pkg_postinst() { + einfo "Mcollective requires a stomp server installed and functioning before" + einfo "you can use it. The recommended server to use is ActiveMQ [1] but" + einfo "any other stomp compatible server should work." + einfo + einfo "It is recommended you read the \'getting started\' guide [2] if this" + einfo "is a new installation" + einfo + einfo "[1] http://activemq.apache.org/" + einfo "[2] http://code.google.com/p/mcollective/wiki/GettingStarted" +} diff --git a/app-admin/mcollective/metadata.xml b/app-admin/mcollective/metadata.xml new file mode 100644 index 000000000000..c35f424e1fe5 --- /dev/null +++ b/app-admin/mcollective/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> + <email>prometheanfire@gentoo.org</email> + </maintainer> + <use> + <flag name="client">Install client utilities</flag> + </use> + <longdescription lang="en"> + mcollective is a framework to build server orchestration or parallel job + execution systems. + </longdescription> +</pkgmetadata> diff --git a/app-admin/metadata.xml b/app-admin/metadata.xml new file mode 100644 index 000000000000..b15417f502c1 --- /dev/null +++ b/app-admin/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 app-admin category contains non-core applications which relate to + system administration. + </longdescription> + <longdescription lang="es"> + La categoría app-admin contiene aplicaciones para la administración + del sistema. + </longdescription> + <longdescription lang="de"> + Die Kategorie app-admin enthält Applikationen zur Systemadministration, + die nicht Bestandteil des Basissystems sind. + </longdescription> + <longdescription lang="ja"> + app-adminカテゴリにはnon-corシステム管理に関連したアプリケーションが含まれます。 + </longdescription> + <longdescription lang="nl"> + De app-admin categorie bevat applicaties met betrekking tot systeem + administratie. + </longdescription> + <longdescription lang="vi"> + Nhóm app-admin category chứa các ứng dụng liên quan + đến quản trị hệ thống (không tính các ứng dụng lõi). + </longdescription> + <longdescription lang="it"> + La categoria app-admin contiene applicazioni per l'amministrazione del sistema. + </longdescription> + <longdescription lang="pt"> + A categoria app-admin contém aplicações para a administração + do sistema. + </longdescription> + <longdescription lang="pl"> + Kategoria app-admin zawiera aplikacje dla administratorów systemu. + </longdescription> +</catmetadata> + diff --git a/app-admin/metalog/Manifest b/app-admin/metalog/Manifest new file mode 100644 index 000000000000..69661bb6f96b --- /dev/null +++ b/app-admin/metalog/Manifest @@ -0,0 +1 @@ +DIST metalog-3.tar.xz 360784 SHA256 0c3a1e19008b3d525eab6e5548a4e8cbb0fb235f2804dc41aace82c67ceeebe0 SHA512 2ac614bb85fe466308c4ced0842fdab5f056eda60e892189a8220719f1e06a72fce3c76842a2ac8c63a6808c20d8b7a7d8676896e14f7f54e40630ecbd21e289 WHIRLPOOL d06a23622bfcef053ac4d959952060c8c1649ea0a5e2f759612caf5819a32944b3c7f6d78233fec83944fe7b5535851d7dca4579b7849e08951da18be503ed09 diff --git a/app-admin/metalog/files/consolelog.sh b/app-admin/metalog/files/consolelog.sh new file mode 100644 index 000000000000..90fb38e9921a --- /dev/null +++ b/app-admin/metalog/files/consolelog.sh @@ -0,0 +1,20 @@ +#!/bin/sh +# consolelog.sh +# For metalog -- log to a console + +set -f + +. /etc/conf.d/metalog +if [ -z "${CONSOLE}" ] ; then + CONSOLE="/dev/console" +fi + +if [ -z "${FORMAT}" ] ; then + FORMAT='$1 [$2] $3' +fi + +for d in ${CONSOLE} ; do + eval echo ${FORMAT} > ${d} +done + +exit 0 diff --git a/app-admin/metalog/files/metalog-0.9-metalog-conf.patch b/app-admin/metalog/files/metalog-0.9-metalog-conf.patch new file mode 100644 index 000000000000..d3b2efc2e264 --- /dev/null +++ b/app-admin/metalog/files/metalog-0.9-metalog-conf.patch @@ -0,0 +1,11 @@ +--- metalog.conf ++++ metalog.conf +@@ -21,6 +21,8 @@ + # merely write $@ to some device (your console for messages): + # echo "$@" > /dev/tty10 + # ++# Hint: you can control the consolelog.sh behavior in /etc/conf.d/metalog ++# + #console logging : + # + # facility = "*" diff --git a/app-admin/metalog/files/metalog.confd b/app-admin/metalog/files/metalog.confd new file mode 100644 index 000000000000..196a20eac145 --- /dev/null +++ b/app-admin/metalog/files/metalog.confd @@ -0,0 +1,19 @@ +# /etc/conf.d/metalog +# $Id$ + +# Some useful options: +# -a Log with buffering +# -s Log without buffering +# See `metalog --help` for more + +METALOG_OPTS="" + + +# Options used by /usr/sbin/consolelog.sh + +# Space delimited list of devices to write "console" messages to +#CONSOLE="/dev/console /dev/tty10" +CONSOLE="/dev/tty10" + +# Format of logging (make sure you use single quotes) +FORMAT='$1 [$2] $3' diff --git a/app-admin/metalog/files/metalog.initd b/app-admin/metalog/files/metalog.initd new file mode 100755 index 000000000000..a921c0d574d3 --- /dev/null +++ b/app-admin/metalog/files/metalog.initd @@ -0,0 +1,42 @@ +#!/sbin/runscript +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +extra_started_commands="buffer unbuffer" + +PIDFILE=/var/run/metalog.pid + +depend() { + need localmount + use clock hostname + after bootmisc + provide logger +} + +ssd() { start-stop-daemon --exec /usr/sbin/metalog --pidfile "${PIDFILE}" "$@" ; } + +start() { + ebegin "Starting metalog" + ssd --start -- \ + --daemonize --pidfile="${PIDFILE}" ${METALOG_OPTS} + eend $? +} + +stop() { + ebegin "Stopping metalog" + ssd --stop + eend $? +} + +buffer() { + ebegin "Enabling log buffering" + ssd --signal USR2 + eend $? +} + +unbuffer() { + ebegin "Disabling log buffering" + ssd --signal USR1 + eend $? +} diff --git a/app-admin/metalog/files/metalog.service-r1 b/app-admin/metalog/files/metalog.service-r1 new file mode 100644 index 000000000000..862881aee165 --- /dev/null +++ b/app-admin/metalog/files/metalog.service-r1 @@ -0,0 +1,10 @@ +[Unit] +Description=System Logger Daemon + +[Service] +ExecStart=/usr/sbin/metalog +Restart=always + +[Install] +WantedBy=multi-user.target +Alias=syslog.service diff --git a/app-admin/metalog/metadata.xml b/app-admin/metalog/metadata.xml new file mode 100644 index 000000000000..c0a75cd058dd --- /dev/null +++ b/app-admin/metalog/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>base-system</herd> + <maintainer> + <email>vapier@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="sourceforge">metalog</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/metalog/metalog-3-r1.ebuild b/app-admin/metalog/metalog-3-r1.ebuild new file mode 100644 index 000000000000..b7ec541593e4 --- /dev/null +++ b/app-admin/metalog/metalog-3-r1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="3" +inherit eutils systemd + +DESCRIPTION="A highly configurable replacement for syslogd/klogd" +HOMEPAGE="http://metalog.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd" +IUSE="unicode" + +RDEPEND=">=dev-libs/libpcre-3.4" +DEPEND="${RDEPEND} + virtual/pkgconfig + app-arch/xz-utils" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.9-metalog-conf.patch +} + +src_configure() { + econf $(use_with unicode) +} + +src_install() { + emake DESTDIR="${D}" install || die "make install failed" + dodoc AUTHORS ChangeLog README NEWS metalog.conf + + into / + dosbin "${FILESDIR}"/consolelog.sh || die + + newinitd "${FILESDIR}"/metalog.initd metalog + newconfd "${FILESDIR}"/metalog.confd metalog + systemd_newunit "${FILESDIR}/${PN}.service-r1" "${PN}.service" +} + +pkg_preinst() { + if [[ -d "${ROOT}"/etc/metalog ]] && [[ ! -e "${ROOT}"/etc/metalog.conf ]] ; then + mv -f "${ROOT}"/etc/metalog/metalog.conf "${ROOT}"/etc/metalog.conf + rmdir "${ROOT}"/etc/metalog + export MOVED_METALOG_CONF=true + else + export MOVED_METALOG_CONF=false + fi +} + +pkg_postinst() { + if ${MOVED_METALOG_CONF} ; then + ewarn "The default metalog.conf file has been moved" + ewarn "from /etc/metalog/metalog.conf to just" + ewarn "/etc/metalog.conf. If you had a standard" + ewarn "setup, the file has been moved for you." + fi +} diff --git a/app-admin/mktwpol/Manifest b/app-admin/mktwpol/Manifest new file mode 100644 index 000000000000..1f617e5479cd --- /dev/null +++ b/app-admin/mktwpol/Manifest @@ -0,0 +1,2 @@ +DIST mktwpol-0.2.4.tar.gz 53431 SHA256 b484f52f1b11834914e7c187f8a0778dad59bb90b5652005a565ed0ffb1c9d77 SHA512 b8fcb8c18e1aa44f0e1198e1f4f5a7a1cfc8705d169e6fccbc7c40f6bf87552be7ae35c03073fb7b64d859835843721a2639c8fbd0af4d067c2f472903fed124 WHIRLPOOL c2cd1b238fa237242057896e3fbc587ce5d6836cb9f44bb998ca6da229f868fd1eb00485747043f315756e16a2c36c0960b11df22fe6543e69e25c376bfe2a87 +DIST mktwpol-0.2.5.tar.gz 54627 SHA256 3d1a06fedd2ff7fc02180ea12bdda64f2d9b952bdeeef77408dcdc17fc4f57cb SHA512 2c9a6b6573b7922f63e992f107fb95251f35bacd38a7ceccffb438be257c2a577e0ed34bb21f063d263f31d7725360db7df5e0235331d3a465304447e35f2fab WHIRLPOOL a5a64326900686e9d7d3d2a1c2b0baed9dbfe2ec35cba020d17193d83ce958b0c7964b317268f71af428ab967309710bf232b4cb2aa23cc67b276e2b49e1ebf7 diff --git a/app-admin/mktwpol/metadata.xml b/app-admin/mktwpol/metadata.xml new file mode 100644 index 000000000000..3bb560150e4f --- /dev/null +++ b/app-admin/mktwpol/metadata.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>nimiux@gentoo.org</email> + <name>Chema Alonso</name> + </maintainer> + <upstream> + <maintainer status="active"> + <email>c.cboldt@gmail.com</email> + <name>Chuck Seyboldt</name> + <description>Will reply to bug reports</description> + </maintainer> + <changelog>https://sourceforge.net/p/mktwpol/code/ci/master/tree/CHANGES</changelog> + <doc>https://sourceforge.net/p/mktwpol/code/ci/master/tree/README</doc> + <bugs-to>https://sourceforge.net/p/mktwpol/discussion/bugs/</bugs-to> + <remote-id type="sourceforge">mktwpol</remote-id> + </upstream> + <longdescription lang="en"> + mktwpol is a tool that aids system administrators in the + set-up and maintenance of tripwire (an Intrusion + Detection System). It contains a pair of bash scripts, + mktwpol.sh and twsetup.sh. mktwpol.sh generates a + tripwire policy file that is tailored to the packages + installed on any given sytem. twsetup.sh steps through + the initial set-up of tripwire, including the generating + of encryption keys and encrypting the files that are + necessary for tripwire to perform its function. + </longdescription> + <longdescription lang="es"> + mktwpol es una herramienta que ayuda a los administradores + de sistemas en la configuración y el mantenimiento de + tripwire (un Sistema de Detección de Intrusos). Contiene + dos guiones bash: mktwpol.sh y twsetup.sh. mktwpol.sh + genera un fichero de directriz para tripwire ajustada + a los paquetes instalados en un sistema. twsetup.sh realiza + la configuración inicial de tripwire, incluyendo la + generación de las claves de cifrado y realiza el + cifrado de los ficheros necesitados por tripwire para + realizar su función. + </longdescription> +</pkgmetadata> diff --git a/app-admin/mktwpol/mktwpol-0.2.4.ebuild b/app-admin/mktwpol/mktwpol-0.2.4.ebuild new file mode 100644 index 000000000000..20eed1467ef0 --- /dev/null +++ b/app-admin/mktwpol/mktwpol-0.2.4.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="Bash scripts to install tripwire and generate tripwire policy files" +HOMEPAGE="https://sourceforge.net/projects/mktwpol" +SRC_URI="mirror://sourceforge/mktwpol/${P}.tar.gz" + +LICENSE="CC-BY-SA-3.0" +SLOT="0" +KEYWORDS="amd64 ppc x86 ~x86-fbsd" +IUSE="" + +RDEPEND="app-admin/tripwire" + +src_prepare() { + sed -i -e 's|/usr/local|/usr|' Makefile || die +} + +src_install() { + emake DESTDIR="${D}" install +} + +pkg_postinst() { + elog + elog "Installation and setup of tripwire ..." + elog " - Run: \`twsetup.sh\`" + elog + elog "Maintenance of tripwire as packages are added and/or deleted ..." + elog " - Run: \`mktwpol.sh -u\` to update tripwire policy and database" + elog + elog "Mktwpol is packaged with multiple policy-rules-generating files." + elog "The default \"rules file\" is installed in /etc/tripwire" + elog "Alternatives are installed in /usr/share/doc/${P}" + elog "To use an alternative \"rules file\" ..." + elog "copy it to /etc/tripwire, uncompress it, and \`touch\` it ..." + elog + elog "\`cp /usr/share/doc/${P}/mktwpol*.rules.bz2 /etc/tripwire\`" + elog "\`bunzip2 /etc/tripwire/mktwpol*.rules.bz2\`" + elog + elog "mktwpol.sh uses the rules file with the most recent date." + elog "Use \`touch\` to choose between multiple rules files." + elog +} diff --git a/app-admin/mktwpol/mktwpol-0.2.5.ebuild b/app-admin/mktwpol/mktwpol-0.2.5.ebuild new file mode 100644 index 000000000000..ab566371055f --- /dev/null +++ b/app-admin/mktwpol/mktwpol-0.2.5.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="Bash scripts to install tripwire and generate tripwire policy files" +HOMEPAGE="https://sourceforge.net/projects/mktwpol" +SRC_URI="mirror://sourceforge/mktwpol/${P}.tar.gz" + +LICENSE="CC-BY-SA-3.0" +SLOT="0" +KEYWORDS="amd64 ppc x86 ~x86-fbsd" +IUSE="" + +RDEPEND="app-admin/tripwire" + +src_prepare() { + sed -i -e 's|/usr/local|/usr|' Makefile || die +} + +src_install() { + emake DESTDIR="${D}" install +} + +pkg_postinst() { + elog + elog "Installation and setup of tripwire ..." + elog " - Run: \`twsetup.sh\`" + elog + elog "Maintenance of tripwire as packages are added and/or deleted ..." + elog " - Run: \`mktwpol.sh -u\` to update tripwire policy and database" + elog + elog "Mktwpol is packaged with multiple policy-rules-generating files." + elog "The default \"rules file\" is installed in /etc/tripwire" + elog "Alternatives are installed in /usr/share/doc/${P}" + elog "To use an alternative \"rules file\" ..." + elog "copy it to /etc/tripwire, uncompress it, and \`touch\` it ..." + elog + elog "\`cp /usr/share/doc/${P}/mktwpol*.rules.bz2 /etc/tripwire\`" + elog "\`bunzip2 /etc/tripwire/mktwpol*.rules.bz2\`" + elog + elog "mktwpol.sh uses the rules file with the most recent date." + elog "Use \`touch\` to choose between multiple rules files." + elog +} diff --git a/app-admin/mms-agent/Manifest b/app-admin/mms-agent/Manifest new file mode 100644 index 000000000000..c6319e41de46 --- /dev/null +++ b/app-admin/mms-agent/Manifest @@ -0,0 +1,2 @@ +DIST mongodb-mms-monitoring-agent-3.6.0.201-1.linux_i386.tar.gz 2553004 SHA256 c63e230b3ca831e3b5b946b73b90f3b5f643dfb78342a6f98917810a45d5f0c0 SHA512 e9497afb09c41de287b7c834ae4ac06623ac157e2c81c5f05aaf185dfc6beb3951a2261460c3217cd98de23c3f1513f5613ed51c6d0235a673062b50b72a3e61 WHIRLPOOL 29251dc975a247611c9711cf894ce43cd1fe35cc50f4a1f91d23c514119803dd2e12c100e990311b87b64b779cce4a1c95e13c4cef7248f4f2b52403e6ffd59d +DIST mongodb-mms-monitoring-agent-3.6.0.201-1.linux_x86_64.tar.gz 2641790 SHA256 5701e21e1243ddd2c4922251d207fbbfa5d6f328c30a9735818691d105459e75 SHA512 b73b3bb0042a13822c54b2af7b3933b9d43b4d4582206acbe6f64476b35b385ee89071f2691c2ecf1f80d8fb52fffc7010b7e9009ee8939c48c54d60b57153e7 WHIRLPOOL fb68a95b861a2bda67cdfe561249b9c73d70d4b0c120735c6118e54c9e69e7938c312b72441b21b2c6ea12d120bcfceee539de46e33fdfeef9db351fcab2c8b2 diff --git a/app-admin/mms-agent/files/mms-monitoring-agent.initd b/app-admin/mms-agent/files/mms-monitoring-agent.initd new file mode 100644 index 000000000000..76d58aca1c7b --- /dev/null +++ b/app-admin/mms-agent/files/mms-monitoring-agent.initd @@ -0,0 +1,25 @@ +#!/sbin/runscript +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +logfile=/var/log/mongodb/mms-monitoring-agent.log +run_dir=${run_dir:-/run/mongodb} + +command="./mongodb-mms-monitoring-agent &>${logfile}" +command_background="true" + +pidfile=${run_dir}/${SVCNAME}.pid +user=${user:-mongodb} +group=${group:-mongodb} +start_stop_daemon_args="--user ${user} --group ${group}" + +depend() { + need net + use syslog +} + +start_pre() { + checkpath -d -m 0750 -o "${user}":"${group}" "${run_dir}" + cd /opt/mms-monitoring-agent +} diff --git a/app-admin/mms-agent/metadata.xml b/app-admin/mms-agent/metadata.xml new file mode 100644 index 000000000000..480394a26751 --- /dev/null +++ b/app-admin/mms-agent/metadata.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>proxy-maintainers</herd> + <maintainer> + <email>ultrabug@gentoo.org</email> + <name>Alexys Jacob</name> + </maintainer> + <maintainer> + <email>bugs@bergstroem.nu</email> + <name>Johan Bergström</name> + <description>Proxy Maintainer. CC on bugs</description> + </maintainer> + <longdescription lang="en"> + MongoDB MMS agents collection. + </longdescription> + <use> + <flag name="monitoring">Install the monitoring agent</flag> + </use> +</pkgmetadata> + diff --git a/app-admin/mms-agent/mms-agent-3.6.0.201_p1.ebuild b/app-admin/mms-agent/mms-agent-3.6.0.201_p1.ebuild new file mode 100644 index 000000000000..81440188c596 --- /dev/null +++ b/app-admin/mms-agent/mms-agent-3.6.0.201_p1.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils user + +MY_PV=${PV/_p/-} + +DESCRIPTION="MongoDB MMS agents" +HOMEPAGE="http://mms.mongodb.com" +SRC_URI=" + monitoring? ( + amd64? ( https://mms.mongodb.com/download/agent/monitoring/mongodb-mms-monitoring-agent-${MY_PV}.linux_x86_64.tar.gz ) + x86? ( https://mms.mongodb.com/download/agent/monitoring/mongodb-mms-monitoring-agent-${MY_PV}.linux_i386.tar.gz ) + ) +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+monitoring" + +REQUIRED_USE="|| ( monitoring )" + +RDEPEND="!<dev-db/mongodb-3.0.0[mms-agent]" +DEPEND="${RDEPEND}" + +S=${WORKDIR} + +pkg_setup() { + enewgroup mongodb + enewuser mongodb -1 -1 /var/lib/${PN} mongodb +} + +src_install() { + if use amd64; then + local arch="x86_64" + else + local arch="i386" + fi + + if use monitoring; then + local MY_PN="mms-monitoring-agent" + local MY_D="/opt/${MY_PN}" + + pushd "${S}/mongodb-mms-monitoring-agent-${MY_PV}.linux_${arch}" + + insinto ${MY_D} + doins mongodb-mms-monitoring-agent + fperms +x "${MY_D}"/mongodb-mms-monitoring-agent + + insinto /etc + doins monitoring-agent.config + rm monitoring-agent.config + dosym /etc/monitoring-agent.config ${MY_D}/monitoring-agent.config + + fowners -R mongodb:mongodb ${MY_D} + newinitd "${FILESDIR}/${MY_PN}.initd" ${MY_PN} + + popd + fi +} + +pkg_postinst() { + if use monitoring; then + elog "MMS Monitoring Agent configuration file :" + elog " /etc/monitoring-agent.config" + fi +} diff --git a/app-admin/mongo-tools/Manifest b/app-admin/mongo-tools/Manifest new file mode 100644 index 000000000000..b5abbba89b3c --- /dev/null +++ b/app-admin/mongo-tools/Manifest @@ -0,0 +1,2 @@ +DIST mongo-tools-3.0.4.tar.gz 2159821 SHA256 2a86b69440f177cf4f8c5eb3700ab8e1bc28e5120d84b398389cb19e9581881d SHA512 0ec3b0d628e797fdebb5ef283f79040b616757227c1961a20b8b297d181b839b1f337881c92a94137e7dbb02f5d2403280c6bfd88b74f777cb6ec4a8b3edc0c5 WHIRLPOOL 4ad7cd845bdbd07308c6407281fdbd8feaa9950955688e8f8987f67a1e932c49575b51ca1f802e6b13c678cd5bd14c83faeae1f2774bf0f18a02bf503d7128dd +DIST mongo-tools-3.0.5.tar.gz 2160877 SHA256 a0a46dabe493d32bda8dec4ca2e4b06c150b405d8184769d50936eb9bc6d126e SHA512 6434708f60c3edc08f439ecd1ae06f634a1897449f1244d9dc3c3024d6146329cfdadaff14a50ba7f35a4bee2bb302b00141d9f388d99a50c4391218c5e9d3e3 WHIRLPOOL d66563c12021bc84a951c7bd125827f958808e577c391252d815a89916fdb86187269d75f9d36a33828132d98040d328cc090ff4fdbc764e3bab15f5fcdb623c diff --git a/app-admin/mongo-tools/files/mongo-tools-3.0.0-build.patch b/app-admin/mongo-tools/files/mongo-tools-3.0.0-build.patch new file mode 100644 index 000000000000..f7fd93b04a51 --- /dev/null +++ b/app-admin/mongo-tools/files/mongo-tools-3.0.0-build.patch @@ -0,0 +1,10 @@ +--- build.sh.orig 2015-02-17 16:55:47.000000000 +0000 ++++ build.sh 2015-02-18 09:22:30.671123198 +0000 +@@ -19,5 +19,5 @@ + for i in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongooplog; do + echo "Building ${i}..." + # Build the tool, using -ldflags to link in the current gitspec +- go build -o "bin/$i" -ldflags "-X github.com/mongodb/mongo-tools/common/options.Gitspec `git rev-parse HEAD`" -tags "$tags" "$i/main/$i.go" ++ go build -o "bin/$i" -tags "$tags" "$i/main/$i.go" + done + diff --git a/app-admin/mongo-tools/metadata.xml b/app-admin/mongo-tools/metadata.xml new file mode 100644 index 000000000000..0f961a2a1f9b --- /dev/null +++ b/app-admin/mongo-tools/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>proxy-maintainers</herd> + <maintainer> + <email>ultrabug@gentoo.org</email> + <name>Alexys Jacob</name> + </maintainer> + <maintainer> + <email>bugs@bergstroem.nu</email> + <name>Johan Bergström</name> + <description>Proxy Maintainer. CC on bugs</description> + </maintainer> + <longdescription lang="en"> + MongoDB operation tools such as mongodump, mongoexport, mongorestore, bsondump... + </longdescription> + <upstream> + <remote-id type="github">mongodb/mongo-tools</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/mongo-tools/mongo-tools-3.0.4-r1.ebuild b/app-admin/mongo-tools/mongo-tools-3.0.4-r1.ebuild new file mode 100644 index 000000000000..658782fe250e --- /dev/null +++ b/app-admin/mongo-tools/mongo-tools-3.0.4-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils + +MY_PV=${PV/_rc/-rc} +MY_P=${PN}-r${MY_PV} + +DESCRIPTION="A high-performance, open source, schema-free document-oriented database" +HOMEPAGE="http://www.mongodb.org" +SRC_URI="https://github.com/mongodb/mongo-tools/archive/r${MY_PV}.tar.gz -> mongo-tools-${MY_PV}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="sasl ssl" + +# Maintainer note: +# openssl DEPEND constraint, see: +# https://github.com/mongodb/mongo-tools/issues/11 + +RDEPEND="!<dev-db/mongodb-3.0.0" +DEPEND="${RDEPEND} + dev-lang/go:= + sasl? ( dev-libs/cyrus-sasl ) + ssl? ( dev-libs/openssl )" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + epatch "${FILESDIR}/${PN}-3.0.0-build.patch" +} + +src_compile() { + local myconf + + if use sasl; then + myconf="${myconf} sasl" + fi + + if use ssl; then + myconf="${myconf} ssl" + fi + + ./build.sh ${myconf} +} + +src_install() { + dobin bin/* +} diff --git a/app-admin/mongo-tools/mongo-tools-3.0.5.ebuild b/app-admin/mongo-tools/mongo-tools-3.0.5.ebuild new file mode 100644 index 000000000000..658782fe250e --- /dev/null +++ b/app-admin/mongo-tools/mongo-tools-3.0.5.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils + +MY_PV=${PV/_rc/-rc} +MY_P=${PN}-r${MY_PV} + +DESCRIPTION="A high-performance, open source, schema-free document-oriented database" +HOMEPAGE="http://www.mongodb.org" +SRC_URI="https://github.com/mongodb/mongo-tools/archive/r${MY_PV}.tar.gz -> mongo-tools-${MY_PV}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="sasl ssl" + +# Maintainer note: +# openssl DEPEND constraint, see: +# https://github.com/mongodb/mongo-tools/issues/11 + +RDEPEND="!<dev-db/mongodb-3.0.0" +DEPEND="${RDEPEND} + dev-lang/go:= + sasl? ( dev-libs/cyrus-sasl ) + ssl? ( dev-libs/openssl )" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + epatch "${FILESDIR}/${PN}-3.0.0-build.patch" +} + +src_compile() { + local myconf + + if use sasl; then + myconf="${myconf} sasl" + fi + + if use ssl; then + myconf="${myconf} ssl" + fi + + ./build.sh ${myconf} +} + +src_install() { + dobin bin/* +} diff --git a/app-admin/monit/Manifest b/app-admin/monit/Manifest new file mode 100644 index 000000000000..aa4461469e54 --- /dev/null +++ b/app-admin/monit/Manifest @@ -0,0 +1,6 @@ +DIST monit-5.12.2.tar.gz 1192066 SHA256 8ab0296d1aa2351b1573481592d7b5e06de1edd49dff1b5552839605a450914c SHA512 086f9af2c6d155c5375e7de5641025707f34577d4f2a4a76d1a104361b5d5793a4f04313cafb5d6884a01aba59f1bbb405b37294ba133d9a93c05e484e5933ff WHIRLPOOL 3d25ab0dc3cfe0e2c881f35e48b64355fe12ce1d3357450d2b1d2aba7344acbe55c031e4fd6b49f7c523b674ff650cbad5bbc91853ec15dd10e64f164504ea70 +DIST monit-5.13.tar.gz 1193463 SHA256 9abae036f3be93a19c6b476ecd106b29d4da755bbc05f0a323e882eab6b2c5a9 SHA512 257fc9d5ece7b39973107adef51b437941c944909efa03949f53067a0811ab8929ea57e98cbf06a22dd6d69aaa0aadd65a22788165819ede8316dcd1894ad546 WHIRLPOOL 7556bd2299b4f930525877543c74c9a30f4a719e7abfb7e5b596ba070dc5c9a6aefaf129891e7ba1f5d1643bc8edbbfd9b35513b38c1bfec143f33e34b667420 +DIST monit-5.14.tar.gz 1200131 SHA256 d0424c3ee8ed43d670ba039184a972ac9f3ad6f45b0806ec17c23820996256c6 SHA512 6491434e15fab6f92e29b9f490418332a7700d110c0bd825d65e1aadd68ea082a1d9a7e2b570075b35d6cdb64ae207567bdeb2580e6e5407ba277cc6d1693c78 WHIRLPOOL 8e7ba198f6048d8de06082a269a9f7fa8fbbcd95e14174010bdf54935db53f840d00744e35f4260e9de5d8d9a6ea47aa7c4b037998b035775bbbe212057d75e7 +DIST monit-5.8.1.tar.gz 1212491 SHA256 a25e4b79257ac29ebaf46605dccb7ed693c8e001669c0ccc8feb22e7d4c870e5 SHA512 0cf8b46ea5a5ab42beac4aab649d4fa324b03e02aaceee6a86968849db46b129cd8f20e314c855653620a0bd4b4aa105e2c812a386ddd2be3196ff956f1e7e11 WHIRLPOOL 8134017da3c1f0dc2675df9cb2d7ecd0905765a92a248701a4de2b9ba449a548ae28cf661019e882a1992c027095360f14d1b2378c924623937c85b691c6056c +DIST monit-5.8.tar.gz 1237958 SHA256 0c00573ebc0156c534a5952f392c2a7bedde194f8261c05497322055938847f5 SHA512 61f2cb4a6b2da8617adfd16ace4d9b246957385109fee9a3312272ac271003cd89a12872ac3a07b0148ad7bdbe544e447745033d2a9fab19908ef19b7a106dda WHIRLPOOL 0eb1f5b778264d7881281f7139037fa07c225a5c7ece7cae2149460036a58c008e16a3d883e1876a2dc08f092900e05d164e37714ec5fc19960d4127e13c6eeb +DIST monit-5.9.tar.gz 1161683 SHA256 274044485170b7498de29e7876cd86488378f50d69df4303a14930ba1f5e4a11 SHA512 915d548d5a4e043b346ec32d9fd3131d7eafd8ed1167e4fca3d4918df9ff87a166dbb2b3398d59a8510c7190c43fe26043568742a27828257140683bea349c83 WHIRLPOOL d5bde04202b066665feeef7bca5e0ec23c18c0bf5a6940ac30b8bfc8cc01056a802b3beae8e0caac861770e167b7b48254fe08fbb9294554e25102bec620f508 diff --git a/app-admin/monit/files/monit.initd-5.0 b/app-admin/monit/files/monit.initd-5.0 new file mode 100644 index 000000000000..0656bc58a6e9 --- /dev/null +++ b/app-admin/monit/files/monit.initd-5.0 @@ -0,0 +1,28 @@ +#!/sbin/runscript +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Id$ + +extra_started_commands="reload" + +depend() { + use net +} + +start() { + ebegin "Starting monit" + start-stop-daemon --start --quiet --exec /usr/bin/monit >/dev/null 2>&1 + eend $? +} + +stop() { + ebegin "Stopping monit" + start-stop-daemon --stop --quiet --exec /usr/bin/monit + eend $? +} + +reload() { + ebegin "Reloading monit" + /usr/bin/monit -c /etc/monitrc reload >/dev/null 2>&1 + eend $? +} diff --git a/app-admin/monit/files/monit.initd-5.0-r1 b/app-admin/monit/files/monit.initd-5.0-r1 new file mode 100644 index 000000000000..2a6339f9e6e8 --- /dev/null +++ b/app-admin/monit/files/monit.initd-5.0-r1 @@ -0,0 +1,39 @@ +#!/sbin/runscript +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Id$ + +extra_commands="configtest" +extra_started_commands="reload" + +depend() { + use net +} + +configtest() { + /usr/bin/monit -t 1>/dev/null 2>&1 + ret=$? + if [ $ret -ne 0 ]; then + eerror "${SVCNAME} has detected an error in your setup:" + /usr/bin/monit -t + fi + return $ret +} + +start() { + ebegin "Starting monit" + start-stop-daemon --start --quiet --exec /usr/bin/monit >/dev/null 2>&1 + eend $? +} + +stop() { + ebegin "Stopping monit" + start-stop-daemon --stop --quiet --exec /usr/bin/monit + eend $? +} + +reload() { + ebegin "Reloading monit" + /usr/bin/monit -c /etc/monitrc reload >/dev/null 2>&1 + eend $? +} diff --git a/app-admin/monit/files/monit.pamd b/app-admin/monit/files/monit.pamd new file mode 100644 index 000000000000..6322e259c745 --- /dev/null +++ b/app-admin/monit/files/monit.pamd @@ -0,0 +1,4 @@ +auth sufficient pam_securityserver.so +auth sufficient pam_unix.so +auth required pam_deny.so +auth required pam_permit.so diff --git a/app-admin/monit/files/monit.service b/app-admin/monit/files/monit.service new file mode 100644 index 000000000000..268825285d05 --- /dev/null +++ b/app-admin/monit/files/monit.service @@ -0,0 +1,11 @@ +[Unit] +Description=Pro-active monitoring utility for unix systems +After=network.target + +[Service] +ExecStart=/usr/bin/monit -I +ExecStop=/usr/bin/monit quit +ExecReload=/usr/bin/monit reload + +[Install] +WantedBy=multi-user.target diff --git a/app-admin/monit/metadata.xml b/app-admin/monit/metadata.xml new file mode 100644 index 000000000000..8c3b2675c6f3 --- /dev/null +++ b/app-admin/monit/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> + <email>patrick@gentoo.org</email> + <name>Patrick Lauer</name> + </maintainer> +</pkgmetadata> diff --git a/app-admin/monit/monit-5.12.2.ebuild b/app-admin/monit/monit-5.12.2.ebuild new file mode 100644 index 000000000000..cae8f8f60a00 --- /dev/null +++ b/app-admin/monit/monit-5.12.2.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +inherit pam systemd + +DESCRIPTION="a utility for monitoring and managing daemons or similar programs running on a Unix system" +HOMEPAGE="http://mmonit.com/monit/" +SRC_URI="http://mmonit.com/monit/dist/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 ~ppc ~ppc64 x86 ~amd64-linux" +IUSE="pam ssl" + +RDEPEND="ssl? ( dev-libs/openssl )" +DEPEND="${RDEPEND} + sys-devel/flex + sys-devel/bison + pam? ( virtual/pam )" + +src_prepare() { + sed -i -e '/^INSTALL_PROG/s/-s//' Makefile.in || die "sed failed in Makefile.in" +} + +src_configure() { + econf $(use_with ssl) $(use_with pam) +} + +src_install() { + default + + dodoc README* + dohtml -r doc/* + + insinto /etc; insopts -m600; doins monitrc + newinitd "${FILESDIR}"/monit.initd-5.0-r1 monit + systemd_dounit "${FILESDIR}"/${PN}.service + + use pam && newpamd "${FILESDIR}"/${PN}.pamd ${PN} +} + +pkg_postinst() { + elog "Sample configurations are available at:" + elog "http://mmonit.com/monit/documentation/" +} diff --git a/app-admin/monit/monit-5.13.ebuild b/app-admin/monit/monit-5.13.ebuild new file mode 100644 index 000000000000..1fe7beccbb9a --- /dev/null +++ b/app-admin/monit/monit-5.13.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +inherit pam systemd + +DESCRIPTION="a utility for monitoring and managing daemons or similar programs running on a Unix system" +HOMEPAGE="http://mmonit.com/monit/" +SRC_URI="http://mmonit.com/monit/dist/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux" +IUSE="pam ssl" + +RDEPEND="ssl? ( dev-libs/openssl )" +DEPEND="${RDEPEND} + sys-devel/flex + sys-devel/bison + pam? ( virtual/pam )" + +src_prepare() { + sed -i -e '/^INSTALL_PROG/s/-s//' Makefile.in || die "sed failed in Makefile.in" +} + +src_configure() { + econf $(use_with ssl) $(use_with pam) +} + +src_install() { + default + + dodoc README* + dohtml -r doc/* + + insinto /etc; insopts -m600; doins monitrc + newinitd "${FILESDIR}"/monit.initd-5.0-r1 monit + systemd_dounit "${FILESDIR}"/${PN}.service + + use pam && newpamd "${FILESDIR}"/${PN}.pamd ${PN} +} + +pkg_postinst() { + elog "Sample configurations are available at:" + elog "http://mmonit.com/monit/documentation/" +} diff --git a/app-admin/monit/monit-5.14.ebuild b/app-admin/monit/monit-5.14.ebuild new file mode 100644 index 000000000000..1fe7beccbb9a --- /dev/null +++ b/app-admin/monit/monit-5.14.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +inherit pam systemd + +DESCRIPTION="a utility for monitoring and managing daemons or similar programs running on a Unix system" +HOMEPAGE="http://mmonit.com/monit/" +SRC_URI="http://mmonit.com/monit/dist/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux" +IUSE="pam ssl" + +RDEPEND="ssl? ( dev-libs/openssl )" +DEPEND="${RDEPEND} + sys-devel/flex + sys-devel/bison + pam? ( virtual/pam )" + +src_prepare() { + sed -i -e '/^INSTALL_PROG/s/-s//' Makefile.in || die "sed failed in Makefile.in" +} + +src_configure() { + econf $(use_with ssl) $(use_with pam) +} + +src_install() { + default + + dodoc README* + dohtml -r doc/* + + insinto /etc; insopts -m600; doins monitrc + newinitd "${FILESDIR}"/monit.initd-5.0-r1 monit + systemd_dounit "${FILESDIR}"/${PN}.service + + use pam && newpamd "${FILESDIR}"/${PN}.pamd ${PN} +} + +pkg_postinst() { + elog "Sample configurations are available at:" + elog "http://mmonit.com/monit/documentation/" +} diff --git a/app-admin/monit/monit-5.8.1-r1.ebuild b/app-admin/monit/monit-5.8.1-r1.ebuild new file mode 100644 index 000000000000..136e734eee4d --- /dev/null +++ b/app-admin/monit/monit-5.8.1-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +inherit systemd + +DESCRIPTION="a utility for monitoring and managing daemons or similar programs running on a Unix system" +HOMEPAGE="http://mmonit.com/monit/" +SRC_URI="http://mmonit.com/monit/dist/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux" +IUSE="pam ssl" + +RDEPEND="ssl? ( dev-libs/openssl )" +DEPEND="${RDEPEND} + sys-devel/flex + sys-devel/bison + pam? ( virtual/pam )" + +src_prepare() { + sed -i -e '/^INSTALL_PROG/s/-s//' Makefile.in || die "sed failed in Makefile.in" +} + +src_configure() { + econf $(use_with ssl) $(use_with pam) || die "econf failed" +} + +src_compile() { + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + + dodoc README* + dohtml -r doc/* + + insinto /etc; insopts -m600; doins monitrc || die "doins monitrc failed" + newinitd "${FILESDIR}"/monit.initd-5.0-r1 monit || die "newinitd failed" + systemd_dounit "${FILESDIR}"/${PN}.service || die +} + +pkg_postinst() { + elog "Sample configurations are available at:" + elog "http://mmonit.com/monit/documentation/" +} diff --git a/app-admin/monit/monit-5.8.ebuild b/app-admin/monit/monit-5.8.ebuild new file mode 100644 index 000000000000..11cd9a3a2aa8 --- /dev/null +++ b/app-admin/monit/monit-5.8.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" +inherit systemd + +DESCRIPTION="a utility for monitoring and managing daemons or similar programs running on a Unix system" +HOMEPAGE="http://mmonit.com/monit/" +SRC_URI="http://mmonit.com/monit/dist/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 ppc ~ppc64 x86 ~amd64-linux" +IUSE="pam ssl" + +RDEPEND="ssl? ( dev-libs/openssl )" +DEPEND="${RDEPEND} + sys-devel/flex + sys-devel/bison + pam? ( virtual/pam )" + +src_prepare() { + sed -i -e '/^INSTALL_PROG/s/-s//' Makefile.in || die "sed failed in Makefile.in" +} + +src_configure() { + econf $(use_with ssl) $(use_with pam) || die "econf failed" +} + +src_compile() { + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + + dodoc README* + dohtml -r doc/* + + insinto /etc; insopts -m600; doins monitrc || die "doins monitrc failed" + newinitd "${FILESDIR}"/monit.initd-5.0-r1 monit || die "newinitd failed" + systemd_dounit "${FILESDIR}"/${PN}.service || die +} + +pkg_postinst() { + elog "Sample configurations are available at:" + elog "http://mmonit.com/monit/documentation/" +} diff --git a/app-admin/monit/monit-5.9.ebuild b/app-admin/monit/monit-5.9.ebuild new file mode 100644 index 000000000000..907070ff16b3 --- /dev/null +++ b/app-admin/monit/monit-5.9.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +inherit systemd + +DESCRIPTION="a utility for monitoring and managing daemons or similar programs running on a Unix system" +HOMEPAGE="http://mmonit.com/monit/" +SRC_URI="http://mmonit.com/monit/dist/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 ~ppc ~ppc64 x86 ~amd64-linux" +IUSE="pam ssl" + +RDEPEND="ssl? ( dev-libs/openssl )" +DEPEND="${RDEPEND} + sys-devel/flex + sys-devel/bison + pam? ( virtual/pam )" + +src_prepare() { + sed -i -e '/^INSTALL_PROG/s/-s//' Makefile.in || die "sed failed in Makefile.in" +} + +src_configure() { + econf $(use_with ssl) $(use_with pam) || die "econf failed" +} + +src_compile() { + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + + dodoc README* + dohtml -r doc/* + + insinto /etc; insopts -m600; doins monitrc || die "doins monitrc failed" + newinitd "${FILESDIR}"/monit.initd-5.0-r1 monit || die "newinitd failed" + systemd_dounit "${FILESDIR}"/${PN}.service || die +} + +pkg_postinst() { + elog "Sample configurations are available at:" + elog "http://mmonit.com/monit/documentation/" +} diff --git a/app-admin/multilog-watch/Manifest b/app-admin/multilog-watch/Manifest new file mode 100644 index 000000000000..30795fd44bd0 --- /dev/null +++ b/app-admin/multilog-watch/Manifest @@ -0,0 +1,2 @@ +DIST multilog-watch 12291 SHA256 595b5783eeefc1b9bae0b674f5ad5c7e6c926b97733b072450d36b4f36a71c98 SHA512 e28933b005243261a9f92c2a3a19e15ac4da2c3a505422e3521f2f1888a6cf5cdac2ee1161449334d27f4a7669b1f266d6760f12641ecf066629e26c98fcd041 WHIRLPOOL c0cd6c1f233d75a14c4ea3ab97d50e0d7dc5924e838b7d5046ef41ce9036dd43462e73d4876e4de56eb3beeabb5ca366a6cc0e6b4ac9bb11032ebcdac240af6d +DIST sample.filter 1041 SHA256 98a0a948c21dd19292117819dd0ac6ba0150e78210f3dbbabd6eb3a6e574a8ef SHA512 5164461010629f22c9c19d3341251d3723f5dbc02719e19f7f94c5c4154c0e246b365d9d555f88c9589c95b0fbeabb1408137d4782b1c360325460a008192ed5 WHIRLPOOL 89004a184a10599242b8f82352209a5a1df8db7bb89d0aec82f8b4014e4548f2200e3934713444f1dc1b1be0adb3bc455f326afed1920643295795cb406d5b86 diff --git a/app-admin/multilog-watch/metadata.xml b/app-admin/multilog-watch/metadata.xml new file mode 100644 index 000000000000..474ccaa45709 --- /dev/null +++ b/app-admin/multilog-watch/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> + <email>maintainer-needed@gentoo.org</email> +</maintainer> +<longdescription lang="en">This program reads logs written by multilog (part of the +daemontools package by Dan Bernstein), discards any lines matching regular +expressions in its configuration file, and mails the rest to a configured e-mail +address. The e-mail is sent using qmail-remote directly, which requires qmail be +installed on the system but which allows multilog-watch to send mail even if the +local mail system is down.</longdescription> +</pkgmetadata> diff --git a/app-admin/multilog-watch/multilog-watch-1.12.ebuild b/app-admin/multilog-watch/multilog-watch-1.12.ebuild new file mode 100644 index 000000000000..bad3fb80fed8 --- /dev/null +++ b/app-admin/multilog-watch/multilog-watch-1.12.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils +DESCRIPTION="Watches a multilog file for irregularities" + +HOMEPAGE="http://www.eyrie.org/~eagle/software/multilog-watch/" +SRC_URI="http://archives.eyrie.org/software/system/multilog-watch +http://www.eyrie.org/%7Eeagle/software/multilog-watch/sample.filter" + +LICENSE="Artistic GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="dev-lang/perl + virtual/qmail" + +src_unpack() { + mkdir "${S}" + cp "${DISTDIR}"/multilog-watch "${S}" + cp "${DISTDIR}"/sample.filter "${S}" +} + +src_compile() { + mv multilog-watch multilog-watch.orig + sed -e 's/\/etc\/leland/\/etc\/multilog-watch/' multilog-watch.orig > multilog-watch + /usr/bin/pod2man -s 1 multilog-watch multilog-watch.1 +} + +src_install() { + dodir /etc/multilog-watch + insinto /etc/multilog-watch + doins sample.filter + + dobin multilog-watch || die 'install failed' + doman multilog-watch.1 +} diff --git a/app-admin/newsyslog/Manifest b/app-admin/newsyslog/Manifest new file mode 100644 index 000000000000..d30fc83cd5ba --- /dev/null +++ b/app-admin/newsyslog/Manifest @@ -0,0 +1 @@ +DIST newsyslog-1.1.tar.gz 156371 SHA256 99804e21041d5dca7898773df25c1ce0ff030e9654f32e06b86bdabbdeeab3f2 SHA512 b321ae47ecacf6905858bedfaa5ca8c4230f7b6e5a715f8481331940c0ae53795769524a62d1670b4df27f9e263b407be83527a64ccd54b3ba75d55d3c5149b1 WHIRLPOOL a84554d9a06aad7ce93239db119e417557d115c3043c5ca320c086e8f0e1f33511a1b8db95cba29489045ae1ba27318c7df7f0a4960e4c5d6ebc793a39b9c296 diff --git a/app-admin/newsyslog/files/newsyslog-html.patch b/app-admin/newsyslog/files/newsyslog-html.patch new file mode 100644 index 000000000000..da04fcd5afbf --- /dev/null +++ b/app-admin/newsyslog/files/newsyslog-html.patch @@ -0,0 +1,21 @@ +diff -ur newsyslog-1.0.103.orig/Makefile.in newsyslog-1.0.103/Makefile.in +--- newsyslog-1.0.103.orig/Makefile.in Tue May 21 14:08:11 2002 ++++ newsyslog-1.0.103/Makefile.in Sun Aug 18 22:06:23 2002 +@@ -591,7 +591,7 @@ + + .8.8.html: + @rm -f $@ +- ($(TBL) $< | $(NROFF) -mdoc2html > $@) || (rm -f $@; exit 1) ++ ($(TBL) $< | $(NROFF) -mhtml > $@) || (rm -f $@; exit 1) + + .5.5.ps: + @rm -f $@ +@@ -599,7 +599,7 @@ + + .5.5.html: + @rm -f $@ +- ($(TBL) $< | $(NROFF) -mdoc2html > $@) || (rm -f $@; exit 1) ++ ($(TBL) $< | $(NROFF) -mhtml > $@) || (rm -f $@; exit 1) + + .cat5.cat5-dist: + @rm -f $@ diff --git a/app-admin/newsyslog/metadata.xml b/app-admin/newsyslog/metadata.xml new file mode 100644 index 000000000000..59e2b8f78cb5 --- /dev/null +++ b/app-admin/newsyslog/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> + <email>maintainer-needed@gentoo.org</email> + <name>Default assignee for orphaned packages</name> + </maintainer> +</pkgmetadata> diff --git a/app-admin/newsyslog/newsyslog-1.1.ebuild b/app-admin/newsyslog/newsyslog-1.1.ebuild new file mode 100644 index 000000000000..0acc24bcd887 --- /dev/null +++ b/app-admin/newsyslog/newsyslog-1.1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils + +DESCRIPTION="a highly configurable program for managing and archiving log files" +HOMEPAGE="http://www.weird.com/~woods/projects/newsyslog.html" +SRC_URI="ftp://ftp.weird.com/pub/local/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="alpha ~amd64 hppa ~mips ppc ppc64 ~sparc x86" +IUSE="" + +DEPEND="sys-apps/groff" +RDEPEND="virtual/cron + app-arch/gzip" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/newsyslog-html.patch +} + +src_compile() { + local myconf="--with-syslogd_pid=/var/run/syslog.pid" + + has_version 'app-admin/syslog-ng' \ + && myconf="--with-syslogd_pid=/var/run/syslog-ng.pid" + + econf \ + --with-gzip \ + --with-newsyslog_conf=/etc/newsyslog.conf \ + ${myconf} || die "econf failed" + + emake || die +} + +src_install() { + emake \ + DESTDIR="${D}" \ + catmandir="${T}"/dont-install \ + install || die "install failed" + dodoc newsyslog.conf AUTHORS ChangeLog INSTALL NEWS README.* ToDo +} diff --git a/app-admin/ngxtop/Manifest b/app-admin/ngxtop/Manifest new file mode 100644 index 000000000000..18d4c8c852c2 --- /dev/null +++ b/app-admin/ngxtop/Manifest @@ -0,0 +1,2 @@ +DIST ngxtop-0.0.2.tar.gz 9668 SHA256 3f98dc160a6b7ac1dd0b34bcbfb1a2f4ddef9a89337b2f6f75f173cafe1959d5 SHA512 49cd0f43bb7dae79253a13c4011a5bb92a33c137d0ce7a8de7d57ba18624ec1e10bf462a32fe96d1045ed85ba9c273260a846fb1983e189884e65c1621a39d43 WHIRLPOOL 3d844acfb7e47db2e45f57175b7020127e179be108c1fa1020675daec8ad7da514a9f919f6937f34e1787b172b0b203fc10e83b10cd4b18c4b99fc424e64a4b1 +DIST ngxtop-0.0.3_pre141201.tar.xz 9012 SHA256 b1df55b8874011fe009f58039c9dee1bb13092ba98609b292bb007d5482cc634 SHA512 ce0c6d027eacfe553752a4a66b7d5823de45ef847d4db1a50d9677126a1d574c22e17b5a60f073bf74eb93d56d15d88d6201353324b201b77c1dd5bede6d7cde WHIRLPOOL 4c2c3fd7d0db9ddd177f5895604cedc7c1ba8799db2e64d58484ae0b935d574bf51c7ddeac12f46e56de062a471619fc1ce96ac4f3d4b13b0a2b33060898e730 diff --git a/app-admin/ngxtop/files/ngxtop-0.0.2-py3.patch b/app-admin/ngxtop/files/ngxtop-0.0.2-py3.patch new file mode 100644 index 000000000000..b86361584798 --- /dev/null +++ b/app-admin/ngxtop/files/ngxtop-0.0.2-py3.patch @@ -0,0 +1,45 @@ +diff --git a/ngxtop/config_parser.py b/ngxtop/config_parser.py +index f6999cf..7c0d79a 100644 +--- a/ngxtop/config_parser.py ++++ b/ngxtop/config_parser.py +@@ -106,7 +106,7 @@ def detect_log_config(arguments): + + log_formats = dict(get_log_formats(config_str)) + if len(access_logs) == 1: +- log_path, format_name = access_logs.items()[0] ++ log_path, format_name = list(access_logs.items())[0] + if format_name == 'combined': + return log_path, LOG_FORMAT_COMBINED + if format_name not in log_formats: +@@ -115,7 +115,7 @@ def detect_log_config(arguments): + + # multiple access logs configured, offer to select one + print('Multiple access logs detected in configuration:') +- log_path = choose_one(access_logs.keys(), 'Select access log file to process: ') ++ log_path = choose_one(list(access_logs.keys()), 'Select access log file to process: ') + format_name = access_logs[log_path] + if format_name not in log_formats: + error_exit('Incorrect format name set in config for access log file "%s"' % log_path) +diff --git a/ngxtop/ngxtop.py b/ngxtop/ngxtop.py +old mode 100755 +new mode 100644 +diff --git a/ngxtop/utils.py b/ngxtop/utils.py +index ef61072..7bd9a2a 100644 +--- a/ngxtop/utils.py ++++ b/ngxtop/utils.py +@@ -5,6 +5,8 @@ def choose_one(choices, prompt): + for idx, choice in enumerate(choices): + print('%d. %s' % (idx + 1, choice)) + selected = None ++ if sys.version[0] == '3': ++ raw_input = input + while not selected or selected <= 0 or selected > len(choices): + selected = raw_input(prompt) + try: +@@ -16,4 +18,4 @@ def choose_one(choices, prompt): + + def error_exit(msg, status=1): + sys.stderr.write('Error: %s\n' % msg) +- sys.exit(status) +\ No newline at end of file ++ sys.exit(status) diff --git a/app-admin/ngxtop/metadata.xml b/app-admin/ngxtop/metadata.xml new file mode 100644 index 000000000000..6d5965956f24 --- /dev/null +++ b/app-admin/ngxtop/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> + <email>jlec@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="github">lebinh/ngxtop</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/ngxtop/ngxtop-0.0.2-r1.ebuild b/app-admin/ngxtop/ngxtop-0.0.2-r1.ebuild new file mode 100644 index 000000000000..520a920b8ad8 --- /dev/null +++ b/app-admin/ngxtop/ngxtop-0.0.2-r1.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python{2_7,3_3,3_4} ) +PYTHON_REQ_USE="sqlite" + +inherit distutils-r1 + +DESCRIPTION="real-time metrics for nginx server (and others)" +HOMEPAGE="https://github.com/lebinh/ngxtop" +SRC_URI="https://github.com/lebinh/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +SLOT="0" +LICENSE="MIT" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="" + +RDEPEND=" + dev-python/docopt[${PYTHON_USEDEP}] + dev-python/pyparsing[${PYTHON_USEDEP}] + dev-python/tabulate[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} +" + +PATCHES=( "${FILESDIR}"/${P}-py3.patch ) diff --git a/app-admin/ngxtop/ngxtop-0.0.3_pre141201.ebuild b/app-admin/ngxtop/ngxtop-0.0.3_pre141201.ebuild new file mode 100644 index 000000000000..f07c499e9591 --- /dev/null +++ b/app-admin/ngxtop/ngxtop-0.0.3_pre141201.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python{2_7,3_3,3_4} ) +PYTHON_REQ_USE="sqlite" + +inherit distutils-r1 + +DESCRIPTION="real-time metrics for nginx server (and others)" +HOMEPAGE="https://github.com/lebinh/ngxtop" +#SRC_URI="https://github.com/lebinh/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI="http://dev.gentoo.org/~jlec/distfiles/${P}.tar.xz" + +SLOT="0" +LICENSE="MIT" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="" + +RDEPEND=" + dev-python/docopt[${PYTHON_USEDEP}] + dev-python/pyparsing[${PYTHON_USEDEP}] + dev-python/tabulate[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} +" + +PATCHES=( "${FILESDIR}"/${PN}-0.0.2-py3.patch ) diff --git a/app-admin/openrc-settingsd/Manifest b/app-admin/openrc-settingsd/Manifest new file mode 100644 index 000000000000..8ed0c07d38c2 --- /dev/null +++ b/app-admin/openrc-settingsd/Manifest @@ -0,0 +1 @@ +DIST openrc-settingsd-1.0.1.tar.xz 243552 SHA256 2047267982c716cbc113d76d826f9b694706dbf737273eaaab239f6839d9ade2 SHA512 1f04a4b078a5fb659573daec0962f819af7eaff17a6213c4881726833cf32becd71dd820cd63767e2933465df26b3e4a3475d94f23e203a6977298965c709b21 WHIRLPOOL 5db609b67f1bdc8d1e5ccb4a3efb2b3f2aba18695ed824a667e95887a7a3977db145266926dd953cae7f3f961cb0bd30fcd89885ced5618d21af6386f927b83f diff --git a/app-admin/openrc-settingsd/metadata.xml b/app-admin/openrc-settingsd/metadata.xml new file mode 100644 index 000000000000..cb6c8006990a --- /dev/null +++ b/app-admin/openrc-settingsd/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> + <email>tetromino@gentoo.org</email> + <name>Alexandre Rostovtsev</name> +</maintainer> +<herd>gnome</herd> +<use> + <flag name="systemd">Use the versions of dbus and polkit files provided by + <pkg>sys-apps/systemd</pkg></flag> +</use> +</pkgmetadata> diff --git a/app-admin/openrc-settingsd/openrc-settingsd-1.0.1.ebuild b/app-admin/openrc-settingsd/openrc-settingsd-1.0.1.ebuild new file mode 100644 index 000000000000..a8a7d125ad33 --- /dev/null +++ b/app-admin/openrc-settingsd/openrc-settingsd-1.0.1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="System settings D-Bus service for OpenRC" +HOMEPAGE="http://gnome.gentoo.org/openrc-settingsd.xml" +SRC_URI="http://dev.gentoo.org/~tetromino/distfiles/${PN}/${P}.tar.xz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc x86" +IUSE="systemd" + +COMMON_DEPEND=">=dev-libs/glib-2.30:2 + dev-libs/libdaemon + sys-apps/dbus + sys-apps/openrc:= + sys-auth/polkit" +RDEPEND="${COMMON_DEPEND} + systemd? ( >=sys-apps/systemd-197 ) + !systemd? ( sys-auth/nss-myhostname !sys-apps/systemd )" +DEPEND="${COMMON_DEPEND} + app-arch/xz-utils + dev-util/gdbus-codegen + virtual/pkgconfig" + +src_configure() { + econf \ + --with-pidfile="${EPREFIX}"/var/run/openrc-settingsd.pid +} + +src_install() { + default + if use systemd; then + # Avoid file collision with systemd + rm -vr "${ED}"usr/share/{dbus-1,polkit-1} "${ED}"etc/dbus-1 || die "rm failed" + fi +} + +pkg_postinst() { + if use systemd; then + elog "You installed ${PN} with USE=systemd. In this mode," + elog "${PN} will not start via simple dbus activation, so you" + elog "will have to manually enable it as an rc service:" + elog " # /etc/init.d/openrc-settingsd start" + elog " # rc-update add openrc-settingsd default" + fi +} diff --git a/app-admin/packagekit-base/Manifest b/app-admin/packagekit-base/Manifest new file mode 100644 index 000000000000..d5a10a1c6fd0 --- /dev/null +++ b/app-admin/packagekit-base/Manifest @@ -0,0 +1,2 @@ +DIST PackageKit-0.7.4.tar.xz 1493656 SHA256 4112c86d67afbbb9be5d3a706c63c537babbbe1f96e398ae306f5e5e02563a98 SHA512 a2cee60f499ec6c5359f3dc2eddda02cfb9c287f80a6b38aa1d9d87558ce5938ade87ab34f6cb1f9640749a0f19625b44c89f72dea5fbb0cbd5f34aec8dbb9f6 WHIRLPOOL 2827cb038c86164ae58021fafe9f2bbf21e69b5c63c4ef5e0f613806f5725f910af3d5aa51646fd258da9c91b81b086cf9560f66bf042e1cb6d1c25128f984b3 +DIST PackageKit-0.8.15.tar.xz 1506084 SHA256 76aa44994d63b403b1f1154406539951502f5ab92624a8a7dedbeb5437ed0af5 SHA512 d6a1a4582212b02350b8a5ab8413346b0b33a49d329d3c5c4314e3db0c7c40b891d64d275c3acd8eafc45a59462b537cd031919027db2176502861271ce34a02 WHIRLPOOL bcc75e8a05b5616fbec1a2772af53ae51cf8c44a9feda4ca9cff4567f274aed62d3cf01751ab89834f423b77a74dcc1445c32390c323a46bb4340cde568760ce diff --git a/app-admin/packagekit-base/files/0001-entropy-PackageKitEntropyClient.output-API-update.patch b/app-admin/packagekit-base/files/0001-entropy-PackageKitEntropyClient.output-API-update.patch new file mode 100644 index 000000000000..e24faeec9a50 --- /dev/null +++ b/app-admin/packagekit-base/files/0001-entropy-PackageKitEntropyClient.output-API-update.patch @@ -0,0 +1,26 @@ +From ee2dfacb275e8145c7ae1ba8da86779054adf902 Mon Sep 17 00:00:00 2001 +From: Fabio Erculiani <lxnay@sabayon.org> +Date: Fri, 6 Dec 2013 07:40:15 +0100 +Subject: [PATCH] entropy: PackageKitEntropyClient.output API update + +--- + backends/entropy/entropyBackend.py | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/backends/entropy/entropyBackend.py b/backends/entropy/entropyBackend.py +index 57b6c59..bec8ef6 100755 +--- a/backends/entropy/entropyBackend.py ++++ b/backends/entropy/entropyBackend.py +@@ -776,7 +776,8 @@ class PackageKitEntropyClient(Client): + def init_singleton(self): + Client.init_singleton(self, url_fetcher = PkUrlFetcher) + +- def output(self, text, header = "", footer = "", back = False, ++ @classmethod ++ def output(cls, text, header = "", footer = "", back = False, + importance = 0, level = "info", count = None, percent = False): + """ + Reimplemented from entropy.output.TextInterface. +-- +1.8.4.4 + diff --git a/app-admin/packagekit-base/files/packagekit-base-0.7.x-npapi-api-change.patch b/app-admin/packagekit-base/files/packagekit-base-0.7.x-npapi-api-change.patch new file mode 100644 index 000000000000..5c96e51a60ec --- /dev/null +++ b/app-admin/packagekit-base/files/packagekit-base-0.7.x-npapi-api-change.patch @@ -0,0 +1,17 @@ +--- a/contrib/browser-plugin/pk-main.c ++++ b/contrib/browser-plugin/pk-main.c +@@ -503,11 +503,11 @@ NP_Shutdown () + /** + * NP_GetMIMEDescription: + **/ +-const char * ++char * + NP_GetMIMEDescription (void) + { + g_debug ("NP_GetMIMEDescription"); +- return (const gchar*) "application/x-packagekit-plugin:bsc:PackageKit Plugin"; ++ return (gchar*) "application/x-packagekit-plugin:bsc:PackageKit Plugin"; + } + + /** + diff --git a/app-admin/packagekit-base/files/packagekit-base-0.7.x-npapi-sdk.patch b/app-admin/packagekit-base/files/packagekit-base-0.7.x-npapi-sdk.patch new file mode 100644 index 000000000000..c3e034d75ff6 --- /dev/null +++ b/app-admin/packagekit-base/files/packagekit-base-0.7.x-npapi-sdk.patch @@ -0,0 +1,72 @@ +--- PackageKit-0.7.4.orig/configure ++++ PackageKit-0.7.4/configure +@@ -20283,14 +20283,14 @@ if test -n "$PK_BROWSER_PLUGIN_CFLAGS"; + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\\ +- mozilla-plugin >= 8.0 \\ ++ npapi-sdk \\ + gio-unix-2.0 \\ + nspr >= 4.8 \\ + cairo \\ + pango \\ + gtk+-2.0 >= 2.14.0\""; } >&5 + ($PKG_CONFIG --exists --print-errors "\ +- mozilla-plugin >= 8.0 \ ++ npapi-sdk \ + gio-unix-2.0 \ + nspr >= 4.8 \ + cairo \ +@@ -20300,7 +20300,7 @@ if test -n "$PK_BROWSER_PLUGIN_CFLAGS"; + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PK_BROWSER_PLUGIN_CFLAGS=`$PKG_CONFIG --cflags "\ +- mozilla-plugin >= 8.0 \ ++ npapi-sdk \ + gio-unix-2.0 \ + nspr >= 4.8 \ + cairo \ +@@ -20317,14 +20317,14 @@ if test -n "$PK_BROWSER_PLUGIN_LIBS"; th + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\\ +- mozilla-plugin >= 8.0 \\ ++ npapi-sdk \\ + gio-unix-2.0 \\ + nspr >= 4.8 \\ + cairo \\ + pango \\ + gtk+-2.0 >= 2.14.0\""; } >&5 + ($PKG_CONFIG --exists --print-errors "\ +- mozilla-plugin >= 8.0 \ ++ npapi-sdk \ + gio-unix-2.0 \ + nspr >= 4.8 \ + cairo \ +@@ -20334,7 +20334,7 @@ if test -n "$PK_BROWSER_PLUGIN_LIBS"; th + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PK_BROWSER_PLUGIN_LIBS=`$PKG_CONFIG --libs "\ +- mozilla-plugin >= 8.0 \ ++ npapi-sdk \ + gio-unix-2.0 \ + nspr >= 4.8 \ + cairo \ +@@ -20360,7 +20360,7 @@ else + fi + if test $_pkg_short_errors_supported = yes; then + PK_BROWSER_PLUGIN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "\ +- mozilla-plugin >= 8.0 \ ++ npapi-sdk \ + gio-unix-2.0 \ + nspr >= 4.8 \ + cairo \ +@@ -20368,7 +20368,7 @@ fi + gtk+-2.0 >= 2.14.0" 2>&1` + else + PK_BROWSER_PLUGIN_PKG_ERRORS=`$PKG_CONFIG --print-errors "\ +- mozilla-plugin >= 8.0 \ ++ npapi-sdk \ + gio-unix-2.0 \ + nspr >= 4.8 \ + cairo \ diff --git a/app-admin/packagekit-base/files/packagekit-base-0.8.15-qtdbus-annotate.patch b/app-admin/packagekit-base/files/packagekit-base-0.8.15-qtdbus-annotate.patch new file mode 100644 index 000000000000..69a0fd7e5f49 --- /dev/null +++ b/app-admin/packagekit-base/files/packagekit-base-0.8.15-qtdbus-annotate.patch @@ -0,0 +1,12 @@ +Index: PackageKit-0.8.12/src/org.freedesktop.PackageKit.xml +=================================================================== +--- PackageKit-0.8.12.orig/src/org.freedesktop.PackageKit.xml ++++ PackageKit-0.8.12/src/org.freedesktop.PackageKit.xml +@@ -317,6 +317,7 @@ + + <!--*****************************************************************************************--> + <method name="GetPackageHistory"> ++ <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QVariant"/> + <doc:doc> + <doc:description> + <doc:para> diff --git a/app-admin/packagekit-base/files/packagekit-base-0.8.x-npapi-sdk.patch b/app-admin/packagekit-base/files/packagekit-base-0.8.x-npapi-sdk.patch new file mode 100644 index 000000000000..59b3ab109648 --- /dev/null +++ b/app-admin/packagekit-base/files/packagekit-base-0.8.x-npapi-sdk.patch @@ -0,0 +1,13 @@ +diff --git a/configure.ac b/configure.ac +index 3e8d301..7ba7f4b 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -361,7 +361,7 @@ AC_ARG_ENABLE(browser_plugin, AS_HELP_STRING([--enable-browser-plugin],[Build br + enable_browser_plugin=$enableval,enable_browser_plugin=yes) + if test x$enable_browser_plugin = xyes; then + PKG_CHECK_MODULES(PK_BROWSER_PLUGIN, \ +- mozilla-plugin >= 8.0 \ ++ npapi-sdk \ + gio-unix-2.0 \ + nspr >= 4.8 \ + cairo \ diff --git a/app-admin/packagekit-base/metadata.xml b/app-admin/packagekit-base/metadata.xml new file mode 100644 index 000000000000..a63ea63df605 --- /dev/null +++ b/app-admin/packagekit-base/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> + <email>lxnay@gentoo.org</email> + <name>Fabio Erculiani</name> + </maintainer> + <use> + <flag name="command-not-found">Enable packagekit support on shell "command not found"</flag> + <flag name="cron">Install cron script for auto-update</flag> + <flag name="entropy"> + Enable Entropy backend + </flag> + <flag name="introspection">Use <pkg>dev-libs/gobject-introspection</pkg> + Enable introspection + </flag> + <flag name="pm-utils"> + Add pm-utils (suspend/resume) functionalities + </flag> + </use> +</pkgmetadata> + diff --git a/app-admin/packagekit-base/packagekit-base-0.7.4.ebuild b/app-admin/packagekit-base/packagekit-base-0.7.4.ebuild new file mode 100644 index 000000000000..405764efdf22 --- /dev/null +++ b/app-admin/packagekit-base/packagekit-base-0.7.4.ebuild @@ -0,0 +1,185 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="3" + +# 0.7.x is untested with Python 3.x +PYTHON_DEPEND="2" + +inherit eutils multilib python nsplugins bash-completion-r1 + +MY_PN="PackageKit" +MY_P=${MY_PN}-${PV} + +DESCRIPTION="Manage packages in a secure way using a cross-distro and cross-architecture API" +HOMEPAGE="http://www.packagekit.org/" +SRC_URI="http://www.packagekit.org/releases/${MY_P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~mips ~ppc ~ppc64 ~x86" +IUSE="connman cron doc +introspection networkmanager nsplugin pm-utils +policykit entropy static-libs test udev" + +CDEPEND="connman? ( net-misc/connman ) + introspection? ( >=dev-libs/gobject-introspection-0.9.9 ) + networkmanager? ( >=net-misc/networkmanager-0.6.4 ) + nsplugin? ( + >=dev-libs/nspr-4.8 + x11-libs/cairo + >=x11-libs/gtk+-2.14.0:2 + x11-libs/pango + ) + policykit? ( >=sys-auth/polkit-0.98 ) + udev? ( virtual/libgudev ) + dev-db/sqlite:3 + >=dev-libs/dbus-glib-0.74 + >=dev-libs/glib-2.26.1:2 + >=sys-apps/dbus-1.3.0" +DEPEND="${CDEPEND} + doc? ( dev-util/gtk-doc ) + nsplugin? ( <net-misc/npapi-sdk-0.27.1 ) + dev-libs/libxslt + >=dev-util/intltool-0.35.0 + virtual/pkgconfig + sys-devel/gettext" + +RDEPEND="${CDEPEND} + entropy? ( >=sys-apps/entropy-1.0_rc27 ) + pm-utils? ( sys-power/pm-utils ) + >=app-portage/layman-1.2.3 + >=sys-apps/portage-2.1.9 + sys-auth/consolekit" + +APP_LINGUAS="as bg bn ca cs da de el en_GB es fi fr gu he hi hu it ja kn ko ml mr +ms nb nl or pa pl pt pt_BR ro ru sk sr sr@latin sv ta te th tr uk zh_CN zh_TW" +for X in ${APP_LINGUAS}; do + IUSE=" ${IUSE} linguas_${X}" +done + +S="${WORKDIR}/${MY_P}" +RESTRICT="test" # tests are failing atm + +# NOTES: +# do not use a specific user, useless and not more secure according to upstream +# doc is in the tarball and always installed +# mono doesn't install anything (RDEPEND dev-dotnet/gtk-sharp-gapi:2 +# (R)DEPEND dev-dotnet/glib-sharp:2 dev-lang/mono), upstream bug 23247 +# >=npapi-sdk-0.27.1 has slightly changed API, once it is unmasked in tree +# drop the npapi-api-change patch below and relax the dependency constraints + +# UPSTREAM: +# documentation/website with --enable-doc-install +# failing tests + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.7.x-npapi-sdk.patch #383141 + epatch "${FILESDIR}"/${PN}-0.7.x-npapi-api-change.patch #416711 + # http://pkgs.fedoraproject.org/gitweb/?p=PackageKit.git;a=commit;h=0b378668288db34890b82c7be007fc76c7fcd956 + sed -i -e '/polkit-backend-1/d' configure || die #423431 +} + +src_configure() { + local myconf="" + + if use policykit; then + myconf+=" --with-security-framework=polkit" + else + myconf+=" --with-security-framework=dummy" + fi + + if [[ -z "${LINGUAS}" ]]; then + myconf+=" --disable-nls" + else + myconf+=" --enable-nls" + fi + + # localstatedir: for gentoo it's /var/lib but for $PN it's /var + # dep-tracking,option-check,libtool-lock,strict,local: obvious reasons + # command,debuginfo,gstreamer,service-packs: not supported by backend + + # NOTE: default backend is autodetected at runtime, also + if use entropy; then + myconf+=" --with-default-backend=entropy" + else + myconf+=" --with-default-backend=portage" + fi + econf \ + ${myconf} \ + --enable-introspection=$(use introspection && echo -n "yes" || echo -n "no") \ + --localstatedir=/var \ + --disable-dependency-tracking \ + --enable-option-checking \ + --enable-libtool-lock \ + --disable-strict \ + --disable-local \ + $(use_enable doc gtk-doc) \ + --enable-command-not-found \ + --disable-debuginfo-install \ + --disable-gstreamer-plugin \ + --disable-service-packs \ + --enable-man-pages \ + --enable-portage \ + $(use_enable entropy) \ + $(use_enable cron) \ + --disable-gtk-module \ + $(use_enable introspection) \ + $(use_enable networkmanager) \ + $(use_enable nsplugin browser-plugin) \ + $(use_enable connman) \ + $(use_enable pm-utils) \ + --disable-qt \ + $(use_enable static-libs static) \ + $(use_enable test tests) \ + $(use_enable udev device-rebind) +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + dodoc AUTHORS MAINTAINERS NEWS README TODO || die "dodoc failed" + dodoc ChangeLog || die "dodoc failed" + + if use nsplugin; then + dodir "/usr/$(get_libdir)/${PLUGINS_DIR}" + mv "${D}"/usr/$(get_libdir)/mozilla/plugins/* \ + "${D}/usr/$(get_libdir)/${PLUGINS_DIR}/" + fi + + if ! use static-libs; then + find "${D}" -name *.la | xargs rm || die "removing .la files failed" + fi + + # Remove precompiled python modules, we handle byte compiling + rm -f "${D}/$(python_get_sitedir)"/${PN}*.py[co] + + newbashcomp "${S}/contrib/pk-completion.bash" ${PN} + # Remove bashcomp file installed by build-system + rm -f "${D}/bash_completion.d/pk-completion.bash" + + # Remove unwanted PackageKit website stuff + rm -rf "${D}/usr/share/PackageKit/website" + +} + +pkg_postinst() { + python_mod_optimize ${PN/-base} + + if ! use policykit; then + ewarn "You are not using policykit, the daemon can't be considered as secure." + ewarn "All users will be able to do anything through ${MY_PN}." + ewarn "Please, consider rebuilding ${MY_PN} with policykit USE flag." + ewarn "THIS IS A SECURITY ISSUE." + echo + fi +} + +pkg_prerm() { + einfo "Removing downloaded files with ${MY_PN}..." + [[ -d "${ROOT}"/var/cache/${MY_PN}/downloads/ ]] && \ + rm -rf /var/cache/PackageKit/downloads/* +} + +pkg_postrm() { + python_mod_cleanup ${PN/-base} +} diff --git a/app-admin/packagekit-base/packagekit-base-0.8.15-r1.ebuild b/app-admin/packagekit-base/packagekit-base-0.8.15-r1.ebuild new file mode 100644 index 000000000000..dd95a149e3f1 --- /dev/null +++ b/app-admin/packagekit-base/packagekit-base-0.8.15-r1.ebuild @@ -0,0 +1,122 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +# PackageKit supports 3.2+, but entropy and portage backends are untested +# Future note: use --enable-python3 +PYTHON_COMPAT=( python2_7 ) + +inherit eutils autotools multilib python-single-r1 nsplugins bash-completion-r1 + +MY_PN="PackageKit" +MY_P=${MY_PN}-${PV} + +DESCRIPTION="Manage packages in a secure way using a cross-distro and cross-architecture API" +HOMEPAGE="http://www.packagekit.org/" +SRC_URI="http://www.packagekit.org/releases/${MY_P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~mips ~ppc ~ppc64 ~x86" +IUSE="bash-completion connman cron command-not-found doc +introspection networkmanager nsplugin entropy static-libs systemd" + +CDEPEND="bash-completion? ( >=app-shells/bash-completion-2.0 ) + connman? ( net-misc/connman ) + introspection? ( >=dev-libs/gobject-introspection-0.9.9[${PYTHON_USEDEP}] ) + networkmanager? ( >=net-misc/networkmanager-0.6.4 ) + nsplugin? ( + >=dev-libs/nspr-4.8 + x11-libs/cairo + >=x11-libs/gtk+-2.14.0:2 + x11-libs/pango + ) + dev-db/sqlite:3 + >=dev-libs/dbus-glib-0.74 + >=dev-libs/glib-2.32.0:2[${PYTHON_USEDEP}] + >=sys-auth/polkit-0.98 + >=sys-apps/dbus-1.3.0 + ${PYTHON_DEPS}" +DEPEND="${CDEPEND} + doc? ( dev-util/gtk-doc[${PYTHON_USEDEP}] ) + nsplugin? ( >=net-misc/npapi-sdk-0.27 ) + systemd? ( >=sys-apps/systemd-204 ) + dev-libs/libxslt[${PYTHON_USEDEP}] + >=dev-util/intltool-0.35.0 + virtual/pkgconfig + sys-devel/gettext" + +RDEPEND="${CDEPEND} + entropy? ( >=sys-apps/entropy-234[${PYTHON_USEDEP}] ) + >=app-portage/layman-1.2.3[${PYTHON_USEDEP}] + >=sys-apps/portage-2.2[${PYTHON_USEDEP}]" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +APP_LINGUAS="as bg bn ca cs da de el en_GB es fi fr gu he hi hu it ja kn ko ml mr +ms nb nl or pa pl pt pt_BR ro ru sk sr sr@latin sv ta te th tr uk zh_CN zh_TW" +for X in ${APP_LINGUAS}; do + IUSE=" ${IUSE} linguas_${X}" +done + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.8.x-npapi-sdk.patch #383141 + + # Upstreamed patches + epatch "${FILESDIR}/0001-entropy-PackageKitEntropyClient.output-API-update.patch" + epatch "${FILESDIR}/${P}-qtdbus-annotate.patch" + + epatch_user + + # npapi-sdk patch and epatch_user + eautoreconf +} + +src_configure() { + econf \ + $(test -n "${LINGUAS}" && echo -n "--enable-nls" || echo -n "--disable-nls") \ + --enable-introspection=$(use introspection && echo -n "yes" || echo -n "no") \ + --localstatedir=/var \ + $(use_enable bash-completion) \ + --disable-dependency-tracking \ + --enable-option-checking \ + --enable-libtool-lock \ + --disable-local \ + --with-default-backend=$(use entropy && echo -n "entropy" || echo -n "portage") \ + $(use_enable doc gtk-doc) \ + $(use_enable command-not-found) \ + --disable-debuginfo-install \ + --disable-gstreamer-plugin \ + --enable-man-pages \ + --enable-portage \ + $(use_enable entropy) \ + $(use_enable cron) \ + --disable-gtk-module \ + $(use_enable introspection) \ + $(use_enable networkmanager) \ + $(use_enable nsplugin browser-plugin) \ + $(use_enable static-libs static) \ + $(use_enable systemd) \ + $(use_enable systemd systemd-updates) \ + $(use_enable connman) +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + dodoc AUTHORS MAINTAINERS NEWS README TODO || die "dodoc failed" + dodoc ChangeLog || die "dodoc failed" + + if use nsplugin; then + dodir "/usr/$(get_libdir)/${PLUGINS_DIR}" + mv "${D}/usr/$(get_libdir)/mozilla/plugins"/* \ + "${D}/usr/$(get_libdir)/${PLUGINS_DIR}/" || die + fi + + if ! use static-libs; then + prune_libtool_files --all + fi +} diff --git a/app-admin/packagekit-gtk/Manifest b/app-admin/packagekit-gtk/Manifest new file mode 100644 index 000000000000..d5a10a1c6fd0 --- /dev/null +++ b/app-admin/packagekit-gtk/Manifest @@ -0,0 +1,2 @@ +DIST PackageKit-0.7.4.tar.xz 1493656 SHA256 4112c86d67afbbb9be5d3a706c63c537babbbe1f96e398ae306f5e5e02563a98 SHA512 a2cee60f499ec6c5359f3dc2eddda02cfb9c287f80a6b38aa1d9d87558ce5938ade87ab34f6cb1f9640749a0f19625b44c89f72dea5fbb0cbd5f34aec8dbb9f6 WHIRLPOOL 2827cb038c86164ae58021fafe9f2bbf21e69b5c63c4ef5e0f613806f5725f910af3d5aa51646fd258da9c91b81b086cf9560f66bf042e1cb6d1c25128f984b3 +DIST PackageKit-0.8.15.tar.xz 1506084 SHA256 76aa44994d63b403b1f1154406539951502f5ab92624a8a7dedbeb5437ed0af5 SHA512 d6a1a4582212b02350b8a5ab8413346b0b33a49d329d3c5c4314e3db0c7c40b891d64d275c3acd8eafc45a59462b537cd031919027db2176502861271ce34a02 WHIRLPOOL bcc75e8a05b5616fbec1a2772af53ae51cf8c44a9feda4ca9cff4567f274aed62d3cf01751ab89834f423b77a74dcc1445c32390c323a46bb4340cde568760ce diff --git a/app-admin/packagekit-gtk/metadata.xml b/app-admin/packagekit-gtk/metadata.xml new file mode 100644 index 000000000000..187f7a710efe --- /dev/null +++ b/app-admin/packagekit-gtk/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> + <email>lxnay@gentoo.org</email> + <name>Fabio Erculiani</name> + </maintainer> + <use> + </use> +</pkgmetadata> + diff --git a/app-admin/packagekit-gtk/packagekit-gtk-0.7.4.ebuild b/app-admin/packagekit-gtk/packagekit-gtk-0.7.4.ebuild new file mode 100644 index 000000000000..b72fee37c8be --- /dev/null +++ b/app-admin/packagekit-gtk/packagekit-gtk-0.7.4.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="3" + +inherit eutils base + +MY_PN="PackageKit" +MY_P=${MY_PN}-${PV} + +DESCRIPTION="Gtk3 PackageKit backend library" +HOMEPAGE="http://www.packagekit.org/" +SRC_URI="http://www.packagekit.org/releases/${MY_P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="" + +RDEPEND="dev-libs/dbus-glib + media-libs/fontconfig + >=x11-libs/gtk+-3.0:3 + x11-libs/pango + ~app-admin/packagekit-base-${PV}" +DEPEND="${RDEPEND} virtual/pkgconfig" + +S="${WORKDIR}/${MY_P}" + +src_configure() { + # http://pkgs.fedoraproject.org/gitweb/?p=PackageKit.git;a=commit;h=0b378668288db34890b82c7be007fc76c7fcd956 + sed -i -e '/polkit-backend-1/d' configure || die #423431 + econf \ + --localstatedir=/var \ + --enable-introspection=yes \ + --disable-dependency-tracking \ + --enable-option-checking \ + --enable-libtool-lock \ + --disable-strict \ + --disable-local \ + --disable-gtk-doc \ + --disable-command-not-found \ + --disable-debuginfo-install \ + --disable-gstreamer-plugin \ + --disable-service-packs \ + --disable-man-pages \ + --disable-cron \ + --enable-gtk-module \ + --disable-networkmanager \ + --disable-browser-plugin \ + --disable-pm-utils \ + --disable-device-rebind \ + --disable-tests \ + --disable-qt +} + +src_compile() { + cd "${S}"/contrib/gtk-module || die + emake || die "emake install failed" +} + +src_install() { + cd "${S}"/contrib/gtk-module || die + emake DESTDIR="${D}" install || die "emake install failed" +} diff --git a/app-admin/packagekit-gtk/packagekit-gtk-0.8.15.ebuild b/app-admin/packagekit-gtk/packagekit-gtk-0.8.15.ebuild new file mode 100644 index 000000000000..79ad3b8ff9bf --- /dev/null +++ b/app-admin/packagekit-gtk/packagekit-gtk-0.8.15.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="3" + +inherit eutils base + +MY_PN="PackageKit" +MY_P=${MY_PN}-${PV} + +DESCRIPTION="Gtk3 PackageKit backend library" +HOMEPAGE="http://www.packagekit.org/" +SRC_URI="http://www.packagekit.org/releases/${MY_P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="" + +RDEPEND="dev-libs/dbus-glib + media-libs/fontconfig + >=x11-libs/gtk+-3.0:3 + x11-libs/pango + ~app-admin/packagekit-base-${PV}" +DEPEND="${RDEPEND} virtual/pkgconfig" + +S="${WORKDIR}/${MY_P}" + +src_configure() { + econf \ + --disable-bash-completion \ + --disable-browser-plugin \ + --disable-command-not-found \ + --disable-cron \ + --disable-debuginfo-install \ + --disable-dependency-tracking \ + --disable-gstreamer-plugin \ + --disable-gtk-doc \ + --disable-local \ + --disable-man-pages \ + --disable-networkmanager \ + --disable-systemd \ + --disable-systemd-updates \ + --enable-dummy \ + --enable-gtk-module \ + --enable-introspection=yes \ + --enable-libtool-lock \ + --enable-option-checking \ + --localstatedir=/var +} + +src_compile() { + cd "${S}"/contrib/gtk-module || die + emake || die "emake install failed" +} + +src_install() { + cd "${S}"/contrib/gtk-module || die + emake DESTDIR="${D}" install || die "emake install failed" +} diff --git a/app-admin/packagekit-qt4/Manifest b/app-admin/packagekit-qt4/Manifest new file mode 100644 index 000000000000..9165b8578bd1 --- /dev/null +++ b/app-admin/packagekit-qt4/Manifest @@ -0,0 +1,2 @@ +DIST PackageKit-0.7.4.tar.xz 1493656 SHA256 4112c86d67afbbb9be5d3a706c63c537babbbe1f96e398ae306f5e5e02563a98 SHA512 a2cee60f499ec6c5359f3dc2eddda02cfb9c287f80a6b38aa1d9d87558ce5938ade87ab34f6cb1f9640749a0f19625b44c89f72dea5fbb0cbd5f34aec8dbb9f6 WHIRLPOOL 2827cb038c86164ae58021fafe9f2bbf21e69b5c63c4ef5e0f613806f5725f910af3d5aa51646fd258da9c91b81b086cf9560f66bf042e1cb6d1c25128f984b3 +DIST PackageKit-Qt-0.8.8.tar.xz 41416 SHA256 e234d4b1f8451821930f463621a86c9708eebfd1db65019883d38a60d13c870c SHA512 a81b85588f531ca58d355094a78c3f07aa804350fdd49f98fbae02076ebb1d4736c0a3d33822805a9e1b5ee5bf62e85141994b841c5e9218b7d03715b45dde11 WHIRLPOOL 319b2226fcf1a7de58df016b2cd401779601ad1842f0d35c9341f56d380397d9dc92a7cd8c8291fb0c4487f7821f4c860130b6275523a240bc3e8996d425f973 diff --git a/app-admin/packagekit-qt4/metadata.xml b/app-admin/packagekit-qt4/metadata.xml new file mode 100644 index 000000000000..187f7a710efe --- /dev/null +++ b/app-admin/packagekit-qt4/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> + <email>lxnay@gentoo.org</email> + <name>Fabio Erculiani</name> + </maintainer> + <use> + </use> +</pkgmetadata> + diff --git a/app-admin/packagekit-qt4/packagekit-qt4-0.7.4.ebuild b/app-admin/packagekit-qt4/packagekit-qt4-0.7.4.ebuild new file mode 100644 index 000000000000..19b3e366eccf --- /dev/null +++ b/app-admin/packagekit-qt4/packagekit-qt4-0.7.4.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="3" + +inherit eutils base + +MY_PN="PackageKit" +MY_P=${MY_PN}-${PV} + +DESCRIPTION="Qt4 PackageKit backend library" +HOMEPAGE="http://www.packagekit.org/" +SRC_URI="http://www.packagekit.org/releases/${MY_P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="" + +RDEPEND=">=dev-qt/qtcore-4.4.0:4 + >=dev-qt/qtdbus-4.4.0:4 + >=dev-qt/qtsql-4.4.0:4 + ~app-admin/packagekit-base-${PV}" +DEPEND="${RDEPEND} + dev-libs/libxslt + virtual/pkgconfig" + +S="${WORKDIR}/${MY_P}" + +src_configure() { + # http://pkgs.fedoraproject.org/gitweb/?p=PackageKit.git;a=commit;h=0b378668288db34890b82c7be007fc76c7fcd956 + sed -i -e '/polkit-backend-1/d' configure || die #423431 + econf \ + --enable-introspection=no \ + --localstatedir=/var \ + --disable-dependency-tracking \ + --enable-option-checking \ + --enable-libtool-lock \ + --disable-strict \ + --disable-local \ + --disable-gtk-doc \ + --disable-command-not-found \ + --disable-debuginfo-install \ + --disable-gstreamer-plugin \ + --disable-service-packs \ + --disable-man-pages \ + --disable-cron \ + --disable-gtk-module \ + --disable-networkmanager \ + --disable-browser-plugin \ + --disable-pm-utils \ + --disable-device-rebind \ + --disable-tests \ + --enable-qt +} + +src_compile() { + local qtdir=packagekit-qt2 + cd "${S}"/lib/${qtdir} || die + emake || die "emake install failed" +} + +src_install() { + local qtdir=packagekit-qt2 + cd "${S}"/lib/${qtdir} || die + emake DESTDIR="${D}" install || die "emake install failed" +} diff --git a/app-admin/packagekit-qt4/packagekit-qt4-0.8.8.ebuild b/app-admin/packagekit-qt4/packagekit-qt4-0.8.8.ebuild new file mode 100644 index 000000000000..2bbda4609688 --- /dev/null +++ b/app-admin/packagekit-qt4/packagekit-qt4-0.8.8.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils cmake-utils + +MY_PN="PackageKit-Qt" +MY_P=${MY_PN}-${PV} + +DESCRIPTION="Qt4 PackageKit backend library" +HOMEPAGE="http://www.packagekit.org/" +SRC_URI="http://www.packagekit.org/releases/${MY_P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="" + +RDEPEND=">=dev-qt/qtcore-4.4.0:4 + >=dev-qt/qtdbus-4.4.0:4 + >=dev-qt/qtsql-4.4.0:4 + >=app-admin/packagekit-base-0.8.15-r1" +DEPEND="${RDEPEND} + dev-libs/libxslt + virtual/pkgconfig" + +S="${WORKDIR}/${MY_P}" diff --git a/app-admin/packagekit/metadata.xml b/app-admin/packagekit/metadata.xml new file mode 100644 index 000000000000..187f7a710efe --- /dev/null +++ b/app-admin/packagekit/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> + <email>lxnay@gentoo.org</email> + <name>Fabio Erculiani</name> + </maintainer> + <use> + </use> +</pkgmetadata> + diff --git a/app-admin/packagekit/packagekit-0.7.4.ebuild b/app-admin/packagekit/packagekit-0.7.4.ebuild new file mode 100644 index 000000000000..3f45d23adc04 --- /dev/null +++ b/app-admin/packagekit/packagekit-0.7.4.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="3" + +MY_PN="PackageKit" +MY_P=${MY_PN}-${PV} + +DESCRIPTION="PackageKit Package Manager interface (meta package)" +HOMEPAGE="http://www.packagekit.org/" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="gtk qt4" + +RDEPEND="gtk? ( ~app-admin/packagekit-gtk-${PV} ) + qt4? ( ~app-admin/packagekit-qt4-${PV} )" + +DEPEND="${RDEPEND}" diff --git a/app-admin/packagekit/packagekit-0.8.15.ebuild b/app-admin/packagekit/packagekit-0.8.15.ebuild new file mode 100644 index 000000000000..3b4fb0a4f2d4 --- /dev/null +++ b/app-admin/packagekit/packagekit-0.8.15.ebuild @@ -0,0 +1,19 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +DESCRIPTION="PackageKit Package Manager interface (meta package)" +HOMEPAGE="http://www.packagekit.org/" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="gtk qt4" + +RDEPEND="gtk? ( ~app-admin/packagekit-gtk-${PV} ) + qt4? ( =app-admin/packagekit-qt4-0.8* )" + +DEPEND="${RDEPEND}" diff --git a/app-admin/pass/Manifest b/app-admin/pass/Manifest new file mode 100644 index 000000000000..7a29467b2dd8 --- /dev/null +++ b/app-admin/pass/Manifest @@ -0,0 +1 @@ +DIST password-store-1.6.5.tar.xz 54576 SHA256 337a39767e6a8e69b2bcc549f27ff3915efacea57e5334c6068fcb72331d7315 SHA512 e28503b63c6d18a2f45f4a732fdec0380c2ac15e1778136ec5e7ac568662b09183d3ad4fd36ca7e87cfe74540f916cb6365695bdf665a39da4cbe86c4bde7a78 WHIRLPOOL da5a5652d6fcea4f571135072f205cc7ad1aecb927478fde7979051557df958e9c51c47363c12f213deafbd7572eefe0f204acda7e430548e365f0e7fdc0c94f diff --git a/app-admin/pass/files/50pass-gentoo.el b/app-admin/pass/files/50pass-gentoo.el new file mode 100644 index 000000000000..122d813af1e7 --- /dev/null +++ b/app-admin/pass/files/50pass-gentoo.el @@ -0,0 +1,9 @@ +(add-to-list 'load-path "@SITELISP@") +(autoload 'password-store-edit "password-store" nil t) +(autoload 'password-store-copy "password-store" nil t) +(autoload 'password-store-init "password-store" nil t) +(autoload 'password-store-insert "password-store" nil t) +(autoload 'password-store-generate "password-store" nil t) +(autoload 'password-store-remove "password-store" nil t) +(autoload 'password-store-rename "password-store" nil t) +(autoload 'password-store-version "password-store" nil t) diff --git a/app-admin/pass/metadata.xml b/app-admin/pass/metadata.xml new file mode 100644 index 000000000000..0b30c4c8eeec --- /dev/null +++ b/app-admin/pass/metadata.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>zx2c4@gentoo.org</email> + <name>Jason A. Donenfeld</name> + </maintainer> + <longdescription> + Stores, retrieves, generates, and synchronizes passwords securely using gpg, pwgen, and git. + </longdescription> + <use> + <flag name="X"> + Use <pkg>x11-misc/xclip</pkg> to copy passwords to the clipboard. + </flag> + <flag name="git"> + Use <pkg>dev-vcs/git</pkg> for password revisions. + </flag> + <flag name="fish-completion"> + Enable fish completion support. + </flag> + <flag name="dmenu"> + Add support for x11-misc/dmenu with the 'passmenu' program. + </flag> + <flag name="importers"> + Allow importing passwords from other password managers using various contributed scripts. + </flag> + </use> +</pkgmetadata> diff --git a/app-admin/pass/pass-1.6.5.ebuild b/app-admin/pass/pass-1.6.5.ebuild new file mode 100644 index 000000000000..ce0bb311bb7e --- /dev/null +++ b/app-admin/pass/pass-1.6.5.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit bash-completion-r1 elisp-common + +DESCRIPTION="Stores, retrieves, generates, and synchronizes passwords securely using gpg, pwgen, and git" +HOMEPAGE="http://www.passwordstore.org/" +SRC_URI="http://git.zx2c4.com/password-store/snapshot/password-store-${PV}.tar.xz" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86 ~x86-macos" +IUSE="+git X zsh-completion fish-completion emacs dmenu importers elibc_Darwin" + +RDEPEND=" + app-crypt/gnupg + app-admin/pwgen + >=app-text/tree-1.7.0 + git? ( dev-vcs/git ) + X? ( x11-misc/xclip ) + elibc_Darwin? ( app-misc/getopt ) + zsh-completion? ( app-shells/gentoo-zsh-completions ) + fish-completion? ( app-shells/fish ) + dmenu? ( x11-misc/dmenu x11-misc/xdotool ) + emacs? ( virtual/emacs ) +" + +S="${WORKDIR}/password-store-${PV}" + +src_prepare() { + use elibc_Darwin || return + # use coreutils' + sed -i -e 's/openssl base64/base64/g' src/platform/darwin.sh || die + # host getopt isn't cool, and we aren't brew (rip out brew reference) + sed -i -e '/^GETOPT=/s/=.*$/=getopt-long/' src/platform/darwin.sh || die + # make sure we can find "mount" + sed -i -e 's:mount -t:/sbin/mount -t:' src/platform/darwin.sh || die +} + +src_compile() { + :; +} + +src_install() { + use zsh-completion && export FORCE_ZSHCOMP=1 + use fish-completion && export FORCE_FISHCOMP=1 + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install + use dmenu && dobin contrib/dmenu/passmenu + newbashcomp src/completion/pass.bash-completion pass + if use emacs; then + elisp-install ${PN} contrib/emacs/*.el + elisp-site-file-install "${FILESDIR}/50${PN}-gentoo.el" + fi + if use importers; then + exeinto /usr/share/${PN}/importers + doexe contrib/importers/* + fi +} + +pkg_postinst() { + use emacs && elisp-site-regen + if use importers; then + einfo "To import passwords from other password managers, you may use the" + einfo "various importer scripts found in:" + einfo " ${ROOT}usr/share/${PN}/importers/" + fi +} + +pkg_postrm() { + use emacs && elisp-site-regen +} diff --git a/app-admin/pass/pass-9999.ebuild b/app-admin/pass/pass-9999.ebuild new file mode 100644 index 000000000000..1c1d3eb26631 --- /dev/null +++ b/app-admin/pass/pass-9999.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit bash-completion-r1 git-2 elisp-common + +DESCRIPTION="Stores, retrieves, generates, and synchronizes passwords securely using gpg, pwgen, and git" +HOMEPAGE="http://www.passwordstore.org/" +EGIT_REPO_URI="http://git.zx2c4.com/password-store" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="" +IUSE="+git X zsh-completion fish-completion emacs dmenu importers elibc_Darwin" + +RDEPEND=" + app-crypt/gnupg + app-admin/pwgen + >=app-text/tree-1.7.0 + git? ( dev-vcs/git ) + X? ( x11-misc/xclip ) + elibc_Darwin? ( app-misc/getopt ) + zsh-completion? ( app-shells/gentoo-zsh-completions ) + fish-completion? ( app-shells/fish ) + dmenu? ( x11-misc/dmenu x11-misc/xdotool ) + emacs? ( virtual/emacs ) +" + +S="${WORKDIR}/password-store-${PV}" + +src_prepare() { + use elibc_Darwin || return + # use coreutils' + sed -i -e 's/openssl base64/base64/g' src/platform/darwin.sh || die + # host getopt isn't cool, and we aren't brew (rip out brew reference) + sed -i -e '/^GETOPT=/s/=.*$/=getopt-long/' src/platform/darwin.sh || die + # make sure we can find "mount" + sed -i -e 's:mount -t:/sbin/mount -t:' src/platform/darwin.sh || die +} + +src_compile() { + :; +} + +src_install() { + use zsh-completion && export FORCE_ZSHCOMP=1 + use fish-completion && export FORCE_FISHCOMP=1 + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install + use dmenu && dobin contrib/dmenu/passmenu + newbashcomp src/completion/pass.bash-completion pass + if use emacs; then + elisp-install ${PN} contrib/emacs/*.el + elisp-site-file-install "${FILESDIR}/50${PN}-gentoo.el" + fi + if use importers; then + exeinto /usr/share/${PN}/importers + doexe contrib/importers/* + fi +} + +pkg_postinst() { + use emacs && elisp-site-regen + if use importers; then + einfo "To import passwords from other password managers, you may use the" + einfo "various importer scripts found in:" + einfo " ${ROOT}usr/share/${PN}/importers/" + fi +} + +pkg_postrm() { + use emacs && elisp-site-regen +} diff --git a/app-admin/passook/Manifest b/app-admin/passook/Manifest new file mode 100644 index 000000000000..478ef2ee3daa --- /dev/null +++ b/app-admin/passook/Manifest @@ -0,0 +1 @@ +DIST passook-20121001.tar.gz 13992 SHA256 73937a2f768d4ff8433c5bed48fb436f5bf532626ea9410fe4a04b8e0634214e SHA512 8c3c72f3001fc3c88060f77685b4f238d42dd65d599522604cf3f3fede2c3b94f4a12622e006d10a4f026283b885f90e4f2e2fa9282a48e181480bec4e2d13cb WHIRLPOOL a4a1fdb71aa63e653ace98508548531a3d84f4c49f8804f789fe31257ca944d0f9e22cf4bae92ab49e0750bbf05cef69cfe662b7fefab627639588b23f3de4be diff --git a/app-admin/passook/files/passook.patch b/app-admin/passook/files/passook.patch new file mode 100644 index 000000000000..db14e6ec817c --- /dev/null +++ b/app-admin/passook/files/passook.patch @@ -0,0 +1,26 @@ +--- passook.orig ++++ passook +@@ -1,4 +1,4 @@ +-#!/usr/bin/perl ++#!@GENTOO_PORTAGE_EPREFIX@/usr/bin/perl + + srand; + $p = 3; #default pronouce level +@@ -38,7 +38,7 @@ + } + + sub fourletterword { +- my $grepstring = 'egrep "^....$" /usr/dict/words'; ++ my $grepstring = 'egrep "^....$" @GENTOO_PORTAGE_EPREFIX@/usr/share/dict/words'; + my @fourletters = split(/\n/,`$grepstring`); + my $word = $fourletters[rand(@fourletters)]; + $word = &tangle($word) if ($p<5); +@@ -46,7 +46,7 @@ + } + + sub threeletterword { +- my $grepstring = 'egrep "^...$" /usr/dict/words'; ++ my $grepstring = 'egrep "^...$" @GENTOO_PORTAGE_EPREFIX@/usr/share/dict/words'; + my @threeletters = split(/\n/,`$grepstring`); + my $word = $threeletters[rand(@threeletters)]; + $word = &tangle($word) if ($p<5); diff --git a/app-admin/passook/metadata.xml b/app-admin/passook/metadata.xml new file mode 100644 index 000000000000..4dbf560c54a9 --- /dev/null +++ b/app-admin/passook/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> + <email>maintainer-needed@gentoo.org</email> +</maintainer> +<longdescription>Passook is a perl script that generates passwords. You can + customize the security of the password generated.</longdescription> +</pkgmetadata> diff --git a/app-admin/passook/passook-20121001.ebuild b/app-admin/passook/passook-20121001.ebuild new file mode 100644 index 000000000000..38849186d1e9 --- /dev/null +++ b/app-admin/passook/passook-20121001.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils prefix + +DESCRIPTION="Password generator capable of generating pronounceable and/or secure passwords" +HOMEPAGE="http://mackers.com/misc/scripts/passook/" +# snapshot of git://github.com/mackers/passook.git +SRC_URI="mirror://gentoo/${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="amd64 hppa ppc ppc64 x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos" + +RDEPEND="dev-lang/perl + sys-apps/miscfiles" + +S="${WORKDIR}/${PN}" + +src_prepare() { + epatch "${FILESDIR}"/passook.patch + eprefixify passook +} + +src_install() { + dobin passook + dodoc README passook.cgi +} diff --git a/app-admin/paxtest/Manifest b/app-admin/paxtest/Manifest new file mode 100644 index 000000000000..7db4620501fb --- /dev/null +++ b/app-admin/paxtest/Manifest @@ -0,0 +1 @@ +DIST paxtest-0.9.13.tar.gz 34451 SHA256 b1f9122e45927a05ea65ec9c3b8dad92377245e546c0eff08b0f8ad9ba6e4c75 SHA512 dc375f7b0c9dd3efcf22adae6cbf0724ae505c6b3a1c55de223665c454650f86014098a45226b3fc8e4b89d528152aaf458aa3b7d1c9ffc86b3be52f2af69d60 WHIRLPOOL 6d5066f759d01e7efd6b4e872bb9d9e1a7341f82f379e77dc8ae77139fa533abe004bdda9f8a35d90a1d2f4c8917d8ba4b1c56e65401522ccc1e99f99a158070 diff --git a/app-admin/paxtest/files/paxtest-0.9.13-Makefile.patch b/app-admin/paxtest/files/paxtest-0.9.13-Makefile.patch new file mode 100644 index 000000000000..1f8a99a689b2 --- /dev/null +++ b/app-admin/paxtest/files/paxtest-0.9.13-Makefile.patch @@ -0,0 +1,21 @@ +diff -Naur paxtest-0.9.13.orig/Makefile paxtest-0.9.13/Makefile +--- paxtest-0.9.13.orig/Makefile 2014-12-09 19:53:48.000000000 -0500 ++++ paxtest-0.9.13/Makefile 2014-12-12 13:07:55.715099100 -0500 +@@ -52,12 +52,14 @@ + endif + + # for some reason the .c files need it, else GNU_STACK=RWE +-OPT_FLAGS := -O2 $(ASFLAGS) ++# Gentoo's CFLAGS should be honored ++OPT_FLAGS := $(CFLAGS) $(ASFLAGS) + PTHREAD := -lpthread + # define stripping of binaries/libs here, or set these on make's commandline, + # else you'll loose the chpax flags! +-LDFLAGS := +-SHLDFLAGS := ++# Gentoo's LDFLAGS should be honored ++LDFLAGS := $(LDFLAGS) ++SHLDFLAGS := $(LDFLAGS) + ifndef RUNDIR + RUNDIR := . + endif diff --git a/app-admin/paxtest/metadata.xml b/app-admin/paxtest/metadata.xml new file mode 100644 index 000000000000..04475d3958f3 --- /dev/null +++ b/app-admin/paxtest/metadata.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>hardened</herd> + <maintainer> + <email>blueness@gentoo.org</email> + <description>Primary Maintainer</description> + </maintainer> + <longdescription>Test suite for the PaX kernel patch + PaX is a Linux kernel patch which adds much stricter control on how memory + is being used by applications. A normal Linux kernel leaves the control to the + application and does not implement any enforcement. Especially buffer overflow + attacks benefit from the absense of kernel enforced memory control. PaX tries + to do its best to enforce this control of memory used by applications, thereby + making it harder to succesfully exploit buffer overflows. + + Furthermore, it adds several randomisations, which also make it harder for + buffer overflows to succeed. + + The test programs test all this functionality, but not all PaX functionality + is covered. + + For more information about PaX, see http://pageexec.virtualave.net/. + </longdescription> +</pkgmetadata> diff --git a/app-admin/paxtest/paxtest-0.9.13.ebuild b/app-admin/paxtest/paxtest-0.9.13.ebuild new file mode 100644 index 000000000000..117f41f52cbc --- /dev/null +++ b/app-admin/paxtest/paxtest-0.9.13.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +inherit eutils multilib toolchain-funcs + +DESCRIPTION="PaX regression test suite" +HOMEPAGE="http://pax.grsecurity.net" +SRC_URI="http://grsecurity.net/~spender/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="" + +RDEPEND="" +DEPEND="${RDEPEND} + sys-apps/paxctl" + +# EI_PAX flags are not strip safe. +RESTRICT="strip" + +QA_EXECSTACK="usr/bin/${PN} + usr/$(get_libdir)/${PN}/getamap + usr/$(get_libdir)/${PN}/shlibtest2.so + usr/$(get_libdir)/${PN}/execheap + usr/$(get_libdir)/${PN}/mprotstack + usr/$(get_libdir)/${PN}/mprotdata + usr/$(get_libdir)/${PN}/mprotheap + usr/$(get_libdir)/${PN}/randshlib + usr/$(get_libdir)/${PN}/randmain1 + usr/$(get_libdir)/${PN}/getshlib + usr/$(get_libdir)/${PN}/randheap2 + usr/$(get_libdir)/${PN}/rettofunc2x + usr/$(get_libdir)/${PN}/shlibdata + usr/$(get_libdir)/${PN}/shlibbss + usr/$(get_libdir)/${PN}/getmain1 + usr/$(get_libdir)/${PN}/execdata + usr/$(get_libdir)/${PN}/execstack + usr/$(get_libdir)/${PN}/rettofunc2 + usr/$(get_libdir)/${PN}/mprotshdata + usr/$(get_libdir)/${PN}/getstack1 + usr/$(get_libdir)/${PN}/randamap + usr/$(get_libdir)/${PN}/rettofunc1x + usr/$(get_libdir)/${PN}/getheap2 + usr/$(get_libdir)/${PN}/getheap1 + usr/$(get_libdir)/${PN}/randheap1 + usr/$(get_libdir)/${PN}/getstack2 + usr/$(get_libdir)/${PN}/getmain2 + usr/$(get_libdir)/${PN}/rettofunc1 + usr/$(get_libdir)/${PN}/randstack2 + usr/$(get_libdir)/${PN}/mprotshbss + usr/$(get_libdir)/${PN}/randstack1 + usr/$(get_libdir)/${PN}/mprotanon + usr/$(get_libdir)/${PN}/randmain2 + usr/$(get_libdir)/${PN}/writetext + usr/$(get_libdir)/${PN}/mprotbss + usr/$(get_libdir)/${PN}/anonmap + usr/$(get_libdir)/${PN}/execbss + usr/$(get_libdir)/${PN}/shlibtest.so" + +src_prepare() { + mv Makefile.psm Makefile + epatch "${FILESDIR}/${P}-Makefile.patch" + sed -i "s/^CC := gcc/CC := $(tc-getCC)/" Makefile + sed -i "s/^LD := ld/LD := $(tc-getLD)/" Makefile +} + +src_compile() { + emake RUNDIR=/usr/$(get_libdir)/paxtest || die +} + +src_install() { + emake DESTDIR="${D}" BINDIR=/usr/bin RUNDIR=/usr/$(get_libdir)/paxtest install || die + + newman debian/manpage.1.ex paxtest.1 || die + dodoc ChangeLog README || die +} diff --git a/app-admin/perl-cleaner/Manifest b/app-admin/perl-cleaner/Manifest new file mode 100644 index 000000000000..eba65bc8d72f --- /dev/null +++ b/app-admin/perl-cleaner/Manifest @@ -0,0 +1,3 @@ +DIST perl-cleaner-2.16.tar.bz2 6069 SHA256 b54f7bd0dc8e60c08ac3de242cf157c21dbce1cfb8fc9c525b3d6cca88915ae3 SHA512 d2e03e473754b7730a6275cc743414fbb48a9fcb6a7a7dbef1fae73acb609b1b9f06eb33261505e1309fc79074303b7c29b6bd80b3bc79b40d27fc94d9b2cb09 WHIRLPOOL d240e0946a924a4d4984a2c7cc82e54de91e3c05ebf6a29fe154a557ff475da3503eb99a054f26ceda13ec61b87b8b2fe63c367c441b2b3cb6f7c34cf14f3165 +DIST perl-cleaner-2.19.tar.bz2 6558 SHA256 03c50ffcfa70081501584de3fc33f634d7a0404ff6adee50c85af6323dc476fa SHA512 404fb5742af929a41f5033dbba066ebcfa1e1bee3f5340d3f732e3eb5cae4dd6d427cca8b6e1ec23e6154c14c36a2e6154be17ec98022422cf44c50984e74973 WHIRLPOOL 64816a6f28299370bc9e5a0469062746d7c6b93ad83f98e3a7656bd5515fb82e16375fadaf1c76b01a901220b4844ef236f744026dcf8489dea859621aec6ea8 +DIST perl-cleaner-2.20.tar.bz2 6704 SHA256 ecc3b160d01466a5c9a070e12f3e11719bedb45a92a2ea0227d745be6b77cf64 SHA512 29888b4ee19a186ddaa1209d893ac57bed683b551546f63aeb874f8cc1fcab4ea0b0401247968aed0fb3b9a7d7196a803d6713e85b44cb94bc6642a44fbc4cf1 WHIRLPOOL 2ea9ca19738e8dd3bed076051efbccd1cced25b768ee8e95843c885b9057e1c6960247dd8f867b8ef7ab11ffffaddbedbcc01f20023203f4d3cbe7f09fd01e51 diff --git a/app-admin/perl-cleaner/metadata.xml b/app-admin/perl-cleaner/metadata.xml new file mode 100644 index 000000000000..1c73b29270ef --- /dev/null +++ b/app-admin/perl-cleaner/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>perl</herd> + <maintainer> + <email>fuzzyray@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/app-admin/perl-cleaner/perl-cleaner-2.16.ebuild b/app-admin/perl-cleaner/perl-cleaner-2.16.ebuild new file mode 100644 index 000000000000..20f4566fbbb8 --- /dev/null +++ b/app-admin/perl-cleaner/perl-cleaner-2.16.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="User land tool for cleaning up old perl installs" +HOMEPAGE="http://www.gentoo.org/proj/en/perl/" + +if [[ "${PV}" == "9999" ]] ; then + inherit git-r3 + EGIT_REPO_URI="http://github.com/gentoo-perl/perl-cleaner.git" +else + SRC_URI="mirror://gentoo/${P}.tar.bz2 http://dev.gentoo.org/~dilfridge/distfiles/${P}.tar.bz2" + KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="" + +[[ "${PV}" == "9999" ]] && DEPEND="sys-apps/help2man" + +RDEPEND="app-shells/bash + || ( >=sys-apps/coreutils-8.15 app-misc/realpath sys-freebsd/freebsd-bin ) + dev-lang/perl" + +src_install() { + dosbin perl-cleaner + doman perl-cleaner.1 +} diff --git a/app-admin/perl-cleaner/perl-cleaner-2.19.ebuild b/app-admin/perl-cleaner/perl-cleaner-2.19.ebuild new file mode 100644 index 000000000000..8495af07ae60 --- /dev/null +++ b/app-admin/perl-cleaner/perl-cleaner-2.19.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="User land tool for cleaning up old perl installs" +HOMEPAGE="http://www.gentoo.org/proj/en/perl/" + +if [[ "${PV}" == "9999" ]] ; then + inherit git-r3 + EGIT_REPO_URI="http://github.com/gentoo-perl/perl-cleaner.git" +else + SRC_URI="mirror://gentoo/${P}.tar.bz2 http://dev.gentoo.org/~dilfridge/distfiles/${P}.tar.bz2" + KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="" + +[[ "${PV}" == "9999" ]] && DEPEND="sys-apps/help2man" + +RDEPEND="app-shells/bash + || ( >=sys-apps/coreutils-8.15 app-misc/realpath sys-freebsd/freebsd-bin ) + dev-lang/perl + || ( + ( sys-apps/portage app-portage/portage-utils ) + sys-apps/pkgcore + sys-apps/paludis + ) +" + +src_install() { + dosbin perl-cleaner + doman perl-cleaner.1 +} diff --git a/app-admin/perl-cleaner/perl-cleaner-2.20.ebuild b/app-admin/perl-cleaner/perl-cleaner-2.20.ebuild new file mode 100644 index 000000000000..4cf5a6ef5c72 --- /dev/null +++ b/app-admin/perl-cleaner/perl-cleaner-2.20.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="User land tool for cleaning up old perl installs" +HOMEPAGE="http://www.gentoo.org/proj/en/perl/" + +if [[ "${PV}" == "9999" ]] ; then + inherit git-r3 + EGIT_REPO_URI="http://github.com/gentoo-perl/perl-cleaner.git" +else + SRC_URI="mirror://gentoo/${P}.tar.bz2 http://dev.gentoo.org/~dilfridge/distfiles/${P}.tar.bz2" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="" + +[[ "${PV}" == "9999" ]] && DEPEND="sys-apps/help2man" + +RDEPEND="app-shells/bash + || ( >=sys-apps/coreutils-8.15 app-misc/realpath sys-freebsd/freebsd-bin ) + dev-lang/perl + || ( + ( sys-apps/portage app-portage/portage-utils ) + sys-apps/pkgcore + sys-apps/paludis + ) +" + +src_install() { + dosbin perl-cleaner + doman perl-cleaner.1 +} diff --git a/app-admin/perl-cleaner/perl-cleaner-9999.ebuild b/app-admin/perl-cleaner/perl-cleaner-9999.ebuild new file mode 100644 index 000000000000..d0d9279ec7c8 --- /dev/null +++ b/app-admin/perl-cleaner/perl-cleaner-9999.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="User land tool for cleaning up old perl installs" +HOMEPAGE="http://www.gentoo.org/proj/en/perl/" + +if [[ "${PV}" == "9999" ]] ; then + inherit git-r3 + EGIT_REPO_URI="http://github.com/gentoo-perl/perl-cleaner.git" +else + SRC_URI="mirror://gentoo/${P}.tar.bz2 http://dev.gentoo.org/~dilfridge/distfiles/${P}.tar.bz2" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="" + +[[ "${PV}" == "9999" ]] && DEPEND="sys-apps/help2man" + +RDEPEND="app-shells/bash + || ( >=sys-apps/coreutils-8.15 app-misc/realpath sys-freebsd/freebsd-bin ) + dev-lang/perl + || ( + ( sys-apps/portage app-portage/portage-utils ) + sys-apps/pkgcore + sys-apps/paludis + ) +" + +src_install() { + dosbin perl-cleaner + doman perl-cleaner.1 +} diff --git a/app-admin/petrovich/Manifest b/app-admin/petrovich/Manifest new file mode 100644 index 000000000000..43f537fd4cf1 --- /dev/null +++ b/app-admin/petrovich/Manifest @@ -0,0 +1 @@ +DIST petrovich-1.0.0.tar.gz 17844 SHA256 f6d1536844bda3897c7a7ee1beafa6a618fa8544f48798df61fb93e8e5a76663 SHA512 5f30cffffba670ee6c6b53b93427f380c389ba60ee5717cb6ac632aacbd81fba514c0843db4d8e093e164fd8cf275f280a9da5a184b27c077789f2e359b05b5d WHIRLPOOL cf74125699d1f559301e1c243fe9338464dabe997e4b1a29ef6d4a99b3fd43e0118e098aac76955ba6986a617505158cbe032beaaea7732e28e8dee11dce5a2b diff --git a/app-admin/petrovich/files/petrovich-1.0.0-gentoo.diff b/app-admin/petrovich/files/petrovich-1.0.0-gentoo.diff new file mode 100644 index 000000000000..de193296fdf1 --- /dev/null +++ b/app-admin/petrovich/files/petrovich-1.0.0-gentoo.diff @@ -0,0 +1,32 @@ +diff -r -C2 petrovich.orig/petrovich.pl petrovich/petrovich.pl +*** petrovich.orig/petrovich.pl Mon Jul 16 12:34:55 2001 +--- petrovich/petrovich.pl Sun Aug 5 22:22:54 2001 +*************** +*** 278,285 **** +
+ # undef $db_hash_verifier; # for now cuz it's not working
+! $config_file = "petrovich.conf" unless defined($config_file);
+ $hash_type = "md5" unless defined($hash_type);
+ @stuff = ("filename", "mode","uid","gid","size","mtime","ctime","$hash_type");
+! $db_file = "petrovich.db" unless defined($db_file);
+
+ # if running under windows lowercase everything
+--- 278,285 ---- +
+ # undef $db_hash_verifier; # for now cuz it's not working
+! $config_file = "/etc/petrovich.conf" unless defined($config_file);
+ $hash_type = "md5" unless defined($hash_type);
+ @stuff = ("filename", "mode","uid","gid","size","mtime","ctime","$hash_type");
+! $db_file = "/var/db/petrovich/petrovich.db" unless defined($db_file);
+
+ # if running under windows lowercase everything
+*************** +*** 324,326 **** + }
+
+! } +\ No newline at end of file +--- 324,326 ---- + }
+
+! }
diff --git a/app-admin/petrovich/files/petrovich.conf b/app-admin/petrovich/files/petrovich.conf new file mode 100644 index 000000000000..03da7c1535fa --- /dev/null +++ b/app-admin/petrovich/files/petrovich.conf @@ -0,0 +1,6 @@ +# petrovich.conf +# to include directories to be checked include a line like the following: +# +/sbin +# +# to exclude directories +# -/var diff --git a/app-admin/petrovich/metadata.xml b/app-admin/petrovich/metadata.xml new file mode 100644 index 000000000000..a62bf0525ea1 --- /dev/null +++ b/app-admin/petrovich/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> + <email>maintainer-needed@gentoo.org</email> + <description>This package lacks a primary herd or maintainer.</description> + </maintainer> + <upstream> + <remote-id type="sourceforge">petrovich</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/petrovich/petrovich-1.0.0.ebuild b/app-admin/petrovich/petrovich-1.0.0.ebuild new file mode 100644 index 000000000000..738fcbc7a336 --- /dev/null +++ b/app-admin/petrovich/petrovich-1.0.0.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils + +S=${WORKDIR}/${PN} +DESCRIPTION="Filesystem Integrity Checker" +SRC_URI="mirror://sourceforge/petrovich/${P}.tar.gz" +HOMEPAGE="http://sourceforge.net/projects/petrovich" +IUSE="" +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="x86 ppc sparc" + +DEPEND="virtual/perl-Digest-MD5" + +src_unpack () { + unpack ${A} + cd "${WORKDIR}" + epatch "${FILESDIR}"/${PF}-gentoo.diff +} + +src_install() { + dosbin petrovich.pl + + insinto /etc + doins "${FILESDIR}"/petrovich.conf + + dodir /var/db/petrovich + + dohtml CHANGES.HTML LICENSE.HTML README.HTML TODO.HTML USAGE.HTML +} diff --git a/app-admin/phpsyslogng/Manifest b/app-admin/phpsyslogng/Manifest new file mode 100644 index 000000000000..4262a5927c81 --- /dev/null +++ b/app-admin/phpsyslogng/Manifest @@ -0,0 +1 @@ +DIST php-syslog-ng-2.9.8m.tar.gz 6773000 SHA256 0e51ab75a39f06f49acd170cacc2a8003bd36b257cb241d651c5338d6bffd6e4 SHA512 4685ba47199efe30b8eca9d688604a60bf5284665d540322d6c190a385aa4e3644b633fc574a5f7a8da71a5d9778be0d0fb6f19e431f17903e1fb7eda33e419c WHIRLPOOL 8cd9b539290ab85605f23540d7aa898f629ea0cef177cf28edee9eeddcc2b2dc73fef201af90410f977ea9677ff13d805a38c8df93a1978b4d5704d116db1a10 diff --git a/app-admin/phpsyslogng/files/postinstall-en.txt b/app-admin/phpsyslogng/files/postinstall-en.txt new file mode 100644 index 000000000000..655ac2e018bc --- /dev/null +++ b/app-admin/phpsyslogng/files/postinstall-en.txt @@ -0,0 +1,8 @@ +phpsyslogng is installed. You will need to +configure it by editing the config file: + +${MY_INSTALLDIR}/config/config.php + +Please read /usr/share/doc/${PN}-${PVR}/README.gz for +more information relating to how to set +phpsyslogng up on your system. diff --git a/app-admin/phpsyslogng/metadata.xml b/app-admin/phpsyslogng/metadata.xml new file mode 100644 index 000000000000..afbbc8783d41 --- /dev/null +++ b/app-admin/phpsyslogng/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>proxy-maintainers</herd> + <maintainer> + <email>matthias@dsx.at</email> + <name>Matthias Schöffmann</name> + </maintainer> + <upstream> + <remote-id type="google-code">php-syslog-ng</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/phpsyslogng/phpsyslogng-2.9.8m-r1.ebuild b/app-admin/phpsyslogng/phpsyslogng-2.9.8m-r1.ebuild new file mode 100644 index 000000000000..4de4257ed11b --- /dev/null +++ b/app-admin/phpsyslogng/phpsyslogng-2.9.8m-r1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit webapp + +DESCRIPTION="php-syslog-ng is a log monitor designed to easily manage logs from many hosts" +HOMEPAGE="http://php-syslog-ng.googlecode.com/" +SRC_URI="http://php-syslog-ng.googlecode.com/files/php-syslog-ng-${PV}.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~ppc64 ~x86" +IUSE="mysql" + +RDEPEND="virtual/httpd-php + mysql? ( >=virtual/mysql-4.1 )" + +src_install() { + webapp_src_preinst + + dodoc html/README html/CHANGELOG \ + html/INSTALL-STEPS \ + html/TROUBLESHOOTING-INSTALL + rm html/LICENSE html/README \ + html/CHANGELOG html/INSTALL-STEPS \ + html/TROUBLESHOOTING-INSTALL + insinto /usr/share/doc/${PF} + doins -r scripts/* + + insinto "${MY_HTDOCSDIR}" + doins -r ./html/{.htaccess,*} + + webapp_configfile "${MY_HTDOCSDIR}/config/config.php" + + webapp_serverowned -R "${MY_HTDOCSDIR}/config/" + webapp_serverowned -R "${MY_HTDOCSDIR}/jpcache/" + + webapp_postinst_txt en "${FILESDIR}/postinstall-en.txt" + + webapp_src_install +} diff --git a/app-admin/pprocm/Manifest b/app-admin/pprocm/Manifest new file mode 100644 index 000000000000..c1e16f5a406e --- /dev/null +++ b/app-admin/pprocm/Manifest @@ -0,0 +1 @@ +DIST PProcM-1.0.tar.gz 29007 SHA256 610089283986fb81a1f936f92eb9f64406060e8602cc1ed268e16c6f4704d6cb SHA512 d592455719babb9dd55c0d63ea097fb110747eb481e81b237779543f7bc90c8fcc0a4e7ecb94e3287afe9ac9f707e1e90c28ab634dd8d0e2bd7708aee8e79277 WHIRLPOOL c30b3401a15f7eaec50540cbf617e350eec3a9a539d812254aa9de8fd1e221820f80e6ae99cfffc93272b60c100b671a5bf9cf50cc58fbe6a597696d4fe36800 diff --git a/app-admin/pprocm/metadata.xml b/app-admin/pprocm/metadata.xml new file mode 100644 index 000000000000..91f4e72fb544 --- /dev/null +++ b/app-admin/pprocm/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/app-admin/pprocm/pprocm-1.0-r1.ebuild b/app-admin/pprocm/pprocm-1.0-r1.ebuild new file mode 100644 index 000000000000..4b416880e146 --- /dev/null +++ b/app-admin/pprocm/pprocm-1.0-r1.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +MY_P="PProcM-"${PV} +S=${WORKDIR}/${MY_P} + +DESCRIPTION="a ncurses which monitors the CPU, disk, network and memory usage" +HOMEPAGE="http://www.fusedcreations.com/PProcM/" +SRC_URI="http://www.fusedcreations.com/PProcM/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="dev-perl/POE + dev-perl/Sys-Statistics-Linux + dev-lang/perl" + +RDEPEND="dev-perl/IO-Pipely" + +src_install() { + dobin PProcM || die "dobin failed" + dodoc AUTHORS README || die "dodoc failed" +} diff --git a/app-admin/procinfo-ng/Manifest b/app-admin/procinfo-ng/Manifest new file mode 100644 index 000000000000..a92612510acd --- /dev/null +++ b/app-admin/procinfo-ng/Manifest @@ -0,0 +1 @@ +DIST procinfo-ng-2.0.304.tar.bz2 62469 SHA256 0cd944df90c1ea55b489ea64ec4863fe7f1a158f16660c58f94067e4f96786b0 SHA512 db336d2ff3bb3b31ac83a51a9d273fae8d16d36bd805f548eda06cb501699473fd8e4b4f9b722165fbf685d76c3fc09bfea9e516eabc37a888e2fae7679c08cf WHIRLPOOL 376048ba76414384dc9a804af5c22064181941b5663cf2f3817b5ba1429a573068235877324a7adec40dc82a539597224e36839333eacaa74f4c67dbd8b82ef3 diff --git a/app-admin/procinfo-ng/files/procinfo-ng-2.0.304-as-needed.patch b/app-admin/procinfo-ng/files/procinfo-ng-2.0.304-as-needed.patch new file mode 100644 index 000000000000..a489f5337879 --- /dev/null +++ b/app-admin/procinfo-ng/files/procinfo-ng-2.0.304-as-needed.patch @@ -0,0 +1,11 @@ +--- Makefile.in 2009-04-27 05:33:50.000000000 +0200 ++++ Makefile.in.new 2009-10-11 15:22:23.458985416 +0200 +@@ -44,7 +44,7 @@ + cygwin_procstat.cpp cygwin_rendercpupagestat.cpp \ + lib/routines.cpp lib/timeRoutines.cpp lib/prettyPrint.cpp \ + Makefile +- $(CXX) $(CFLAGS) $(LDFLAGS) procinfo.cpp -o $@ ++ $(CXX) $(CFLAGS) $(LDFLAGS) procinfo.cpp -o $@ $(LIBS) + + #procinfo.o: procinfo.cpp procinfo.h + # $(XX) $(CFLAGS) procinfo.cpp -o procinfo.o diff --git a/app-admin/procinfo-ng/files/procinfo-ng-2.0.304-man.patch b/app-admin/procinfo-ng/files/procinfo-ng-2.0.304-man.patch new file mode 100644 index 000000000000..ce818fcd3e77 --- /dev/null +++ b/app-admin/procinfo-ng/files/procinfo-ng-2.0.304-man.patch @@ -0,0 +1,11 @@ +--- procinfo-ng-2.0.217/procinfo.8.orig 2009-01-11 11:21:23.000000000 +0100 ++++ procinfo-ng-2.0.217/procinfo.8 2009-01-11 11:21:48.000000000 +0100 +@@ -6,7 +6,7 @@ + .SH SYNOPSIS + .B procinfo + [ +-.IR \-fdDSbrhv ++.IR \-dDSbrhv + ] [ + .IR \-n N + ] diff --git a/app-admin/procinfo-ng/metadata.xml b/app-admin/procinfo-ng/metadata.xml new file mode 100644 index 000000000000..7f43c0128eef --- /dev/null +++ b/app-admin/procinfo-ng/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> + <email>jlec@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="sourceforge">procinfo-ng</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/procinfo-ng/procinfo-ng-2.0.304-r1.ebuild b/app-admin/procinfo-ng/procinfo-ng-2.0.304-r1.ebuild new file mode 100644 index 000000000000..a960e727a373 --- /dev/null +++ b/app-admin/procinfo-ng/procinfo-ng-2.0.304-r1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools eutils toolchain-funcs + +DESCRIPTION="Completely rewrite of the old system monitoring app procinfo" +HOMEPAGE="http://sourceforge.net/projects/procinfo-ng/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE="|| ( GPL-2 LGPL-2.1 )" +SLOT="0" +KEYWORDS="amd64 hppa x86" +IUSE="" + +RDEPEND=" + sys-libs/ncurses + !app-admin/procinfo" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${P}-as-needed.patch + "${FILESDIR}"/${P}-man.patch + ) + +src_prepare() { + epatch ${PATCHES[@]} + # removing -s flag as portage does the stripping part and add support + # for custom LDFLAGS. Plus correct for --as-needed + sed \ + -e 's:-s -lncurses:${LDFLAGS}:' \ + -i configure.in || die "sed configure.in failed" + eautoreconf +} + +src_compile() { + emake LIBS="$($(tc-getPKG_CONFIG) --libs ncurses)" +} diff --git a/app-admin/procinfo/Manifest b/app-admin/procinfo/Manifest new file mode 100644 index 000000000000..62f06477aea9 --- /dev/null +++ b/app-admin/procinfo/Manifest @@ -0,0 +1 @@ +DIST procinfo-18.tar.gz 24365 SHA256 c114e625b87fb06585484eb9f3ff868de165b3e61926fee55479d1bd3de09b99 SHA512 12c4d7983f5d6531be6d4df39f5f1e1ee2ea2394a6eb8fb8df0573f0085499e4b7d43355bfa549a24ddf1ecb09bbfa7b038cef9c483620c74ad5cedc219e35fa WHIRLPOOL b906ab0c015a199cad894eff1c1c104abe5c8c599a18bc6310904c45b26347b8c8c906cd6839ab4b01e0a917557d52f4c465fcb884193c79c54d93136c9f4777 diff --git a/app-admin/procinfo/files/cpu-usage-fix.patch b/app-admin/procinfo/files/cpu-usage-fix.patch new file mode 100644 index 000000000000..f2bace1bd2cc --- /dev/null +++ b/app-admin/procinfo/files/cpu-usage-fix.patch @@ -0,0 +1,31 @@ +--- procinfo.c~ 2005-01-31 20:52:29.250918264 +0200 ++++ procinfo-18/procinfo.c 2005-01-31 20:48:55.907351416 +0200 +@@ -402,26 +402,8 @@ + } + + elapsed = new.uptime; +- +-/* XXX Is this stuff still relevant/true? */ +- +-#ifdef __i386__ /* IRQ 0 is timer tick on i386's... */ +- if (nr_irqs) { +- if (fs && old.uptime) +- elapsed = DIFF (intr[0]); +- } else +-#endif +-#ifdef __sparc__ /* IRQ 10 is timer tick on sparc's... */ +- if (nr_irqs) { +- if (fs && old.uptime) +- elapsed = DIFF (intr[10]); +- } else +-#endif +- { +- /* This won't be exact... */ +- if (fs && old.uptime) +- elapsed = DIFF (uptime); +- } ++ if (fs && old.uptime) ++ elapsed = DIFF (uptime); + + printf ("user : %s %s", + hms (bDIFF (cpu_user)), perc (bDIFF (cpu_user), elapsed, nr_cpus)); diff --git a/app-admin/procinfo/files/kernel-2.6.patch b/app-admin/procinfo/files/kernel-2.6.patch new file mode 100644 index 000000000000..b1eef39e3088 --- /dev/null +++ b/app-admin/procinfo/files/kernel-2.6.patch @@ -0,0 +1,296 @@ +diff -ruN procinfo-18/procinfo.c procinfo-19/procinfo.c +--- procinfo-18/procinfo.c 2001-02-25 11:29:16.000000000 +0000 ++++ procinfo-19/procinfo.c 2004-06-17 10:28:33.767925439 +0100 +@@ -5,9 +5,10 @@ + Displays general info from /proc. + + Date: 1995-07-08 05:30:34 +- Last Change: 2001-02-25 00:27:21 ++ Last Change: 2004-06-17 11:28:13 + + Copyright (c) 1994-2001 svm@kozmix.cistron.nl ++ Copyright (c) 2004 procinfo@meisel.cc (upgrades for 2.6 kernel) + + This software is released under the GNU Public Licence. See the file + `COPYING' for details. Since you're probably running Linux I'm sure +@@ -26,6 +27,7 @@ + #include <string.h> + #include <termios.h> + #include <termcap.h> ++#include <ctype.h> + #include <time.h> + #include <unistd.h> + #include <sys/param.h> /* for HZ -- should be in <time.h> ? */ +@@ -72,9 +74,9 @@ + int nr_irqs = 0; + int nr_cpus = 0; + +-FILE *loadavgfp, *meminfofp, *modulesfp, *statfp, *uptimefp, ++FILE *loadavgfp, *meminfofp, *modulesfp, *statfp, *uptimefp, *diskstatsfp, + *devicesfp, *filesystemsfp, *interruptsfp, *dmafp, *cmdlinefp, +- *versionfp, *cpuinfofp; ++ *versionfp, *cpuinfofp, *vmstatfp; + + char line[1024], cmdline[1024], booted[40], *version = NULL, *message = NULL; + +@@ -89,9 +91,13 @@ + { + unsigned long elapsed; + char loadavg[32]; +- int i; ++ int i, havetwosix = 0, lastdisk; + static int have_m_c = -1; /* Do we have cache info? */ + static int have_m_l = -1; /* Do we have new-style-one-datum-per-line? */ ++ char devicename[10]; ++ char *last; ++ unsigned int q,w,a,s,d,f,g,h,j,k,l,y,x; ++ int disk_counter = 0, ret; + + + /**** /proc/uptime ****/ +@@ -237,6 +243,50 @@ + + printf ("Bootup: %s Load average: %s\n\n", booted, loadavg); + ++/**** /proc/vmstat ... 2.6.x kernel only ****/ ++ if (vmstatfp) { ++ havetwosix = 1; ++ fseek (vmstatfp, 0L, SEEK_SET); ++ while (fgets (line, sizeof (line), vmstatfp)) { ++ char *type = strtok (line, " "); ++ if (ISSTR ("pgpgin")) { ++ new.pgin = VAL; ++ } else if (ISSTR ("pgpgout")) { ++ new.pgout = VAL; ++ } else if (ISSTR ("pgactivate")) { ++ new.pgac = VAL; ++ } else if (ISSTR ("pgdeactivate")) { ++ new.pgdeac = VAL; ++ } else if (ISSTR ("pgfault")) { ++ new.pgfault = VAL; ++ } else if (ISSTR ("pswpin")) { ++ new.swin = VAL; ++ } else if (ISSTR ("pswpout")) { ++ new.swout = VAL; ++ } ++ } ++ } ++ ++/**** /proc/diskstats ... 2.6.x kernel only ****/ ++ if (diskstatsfp) { ++ havetwosix = 1; ++ fseek (diskstatsfp, 0L, SEEK_SET); ++ while (fgets (line, sizeof (line), diskstatsfp)) { ++ char *type = strtok (line, "\n"); ++ ret = sscanf (type, "%d%d%s%d%d%d%d%d%d%d%d%d%d%d", &q, &w, devicename, &a, &s, &d, &f, &g, &h, &j, &k, &l, &y, &x); ++ if (ret != 14) /* Everything with less than 14 elements is not a disk device */ ++ continue; ++ last = devicename+strlen(devicename)-1; ++ if (isalpha(*last)) {/* Is the last char is a number ignore it .. like fd0 */ ++ if (++disk_counter > 7) /* 7 disks is all we have room for */ ++ continue; ++ else { ++ new.disk_r[disk_counter-1] = a; ++ new.disk_w[disk_counter-1] = g; ++ } ++ } ++ } ++ } + + /**** /proc/stat ****/ + +@@ -249,6 +299,9 @@ + new.cpu_nice = VAL; + new.cpu_sys = VAL; + new.cpu_idle = VAL; ++ new.cpu_iowait = VAL; ++ new.cpu_hirq = VAL; ++ new.cpu_sirq = VAL; + /* + * according to bug #1959, sometimes the cpu_idle + * seems to go backwards(!) on SMP boxes. This may +@@ -262,34 +315,54 @@ + new.disk[1] = VAL; + new.disk[2] = VAL; + new.disk[3] = VAL; ++ new.disk[4] = VAL; ++ new.disk[5] = VAL; ++ new.disk[6] = VAL; + } else if (ISSTR ("disk_rio") && io_or_blk == 0) { + new.disk_r[0] = VAL; + new.disk_r[1] = VAL; + new.disk_r[2] = VAL; + new.disk_r[3] = VAL; ++ new.disk_r[4] = VAL; ++ new.disk_r[5] = VAL; ++ new.disk_r[6] = VAL; ++ } else if (ISSTR ("disk_wio") && io_or_blk == 0) { ++ new.disk_w[0] = VAL; ++ } else if (ISSTR ("disk_wio") && io_or_blk == 0) { ++ new.disk_w[0] = VAL; ++ } else if (ISSTR ("disk_wio") && io_or_blk == 0) { ++ new.disk_w[0] = VAL; + } else if (ISSTR ("disk_wio") && io_or_blk == 0) { + new.disk_w[0] = VAL; + new.disk_w[1] = VAL; + new.disk_w[2] = VAL; + new.disk_w[3] = VAL; ++ new.disk_w[4] = VAL; ++ new.disk_w[5] = VAL; ++ new.disk_w[6] = VAL; + } else if (ISSTR ("disk_rblk") && io_or_blk == 1) { + new.disk_r[0] = VAL; + new.disk_r[1] = VAL; + new.disk_r[2] = VAL; + new.disk_r[3] = VAL; ++ new.disk_r[4] = VAL; ++ new.disk_r[5] = VAL; ++ new.disk_r[6] = VAL; + } else if (ISSTR ("disk_wblk") && io_or_blk == 1) { + new.disk_w[0] = VAL; + new.disk_w[1] = VAL; + new.disk_w[2] = VAL; + new.disk_w[3] = VAL; ++ new.disk_w[4] = VAL; ++ new.disk_w[5] = VAL; ++ new.disk_w[6] = VAL; + } else if (ISSTR ("disk_io:")) { +- int disk_counter = 0, ret; + unsigned int q, w, e, r, t, y, u; /* I'm NOT in the mood today. */ + char *barf; + + while ((barf = strtok (NULL, " "))) { + +- if (++disk_counter > 4) /* 4 is all we have room for */ ++ if (++disk_counter > 7) /* 7 is all we have room for */ + continue; + + ret = sscanf (barf, "(%d,%d):(%d,%d,%d,%d,%d)", +@@ -374,7 +447,10 @@ + + printf ("system: %s %s", + hms (bDIFF (cpu_sys)), perc (bDIFF (cpu_sys), elapsed, nr_cpus)); +- printf (" swap in :%9lu", bDIFF (swin)); ++ if (havetwosix) ++ printf (" page act:%9lu", bDIFF (pgac)); ++ else ++ printf (" swap in :%9lu", bDIFF (swin)); + if (new.disk_r[2]) + printf (" disk 3: %8lur%8luw\n", bDIFF (disk_r[2]), + bDIFF (disk_w[2])); +@@ -383,14 +459,53 @@ + else + putchar ('\n'); + ++ if (havetwosix) { ++ printf ("IOwait: %s %s", ++ hms (bDIFF (cpu_iowait)), perc (bDIFF (cpu_iowait), elapsed, nr_cpus)); ++ printf (" page dea:%9lu", bDIFF (pgdeac)); ++ if (new.disk_r[3]) ++ printf (" disk 4: %8lur%8luw\n", bDIFF (disk_r[3]), ++ bDIFF (disk_w[3])); ++ else if (new.disk[3]) ++ printf (" disk 4: %8lu\n", bDIFF (disk[3])); ++ else ++ putchar ('\n'); ++ ++ printf ("hw irq: %s %s", ++ hms (bDIFF (cpu_hirq)), perc (bDIFF (cpu_hirq), elapsed, nr_cpus)); ++ printf (" page flt:%9lu", bDIFF (pgfault)); ++ if (new.disk_r[4]) ++ printf (" disk 5: %8lur%8luw\n", bDIFF (disk_r[4]), ++ bDIFF (disk_w[4])); ++ else if (new.disk[4]) ++ printf (" disk 5: %8lu\n", bDIFF (disk[4])); ++ else ++ putchar ('\n'); ++ ++ printf ("sw irq: %s %s", ++ hms (bDIFF (cpu_sirq)), perc (bDIFF (cpu_sirq), elapsed, nr_cpus)); ++ printf (" swap in :%9lu", bDIFF (swin)); ++ if (new.disk_r[5]) ++ printf (" disk 6: %8lur%8luw\n", bDIFF (disk_r[5]), ++ bDIFF (disk_w[5])); ++ else if (new.disk[5]) ++ printf (" disk 6: %8lu\n", bDIFF (disk[5])); ++ else ++ putchar ('\n'); ++ } ++ + printf ("idle : %s %s", + hms (bDIFF (cpu_idle)), perc (bDIFF (cpu_idle), elapsed, nr_cpus)); + printf (" swap out:%9lu", bDIFF (swout)); +- if (new.disk_r[3]) +- printf (" disk 4: %8lur%8luw\n", bDIFF (disk_r[3]), +- bDIFF (disk_w[3])); +- else if (new.disk[3]) +- printf (" disk 4: %8lu\n", bDIFF (disk[3])); ++ if (havetwosix) ++ lastdisk = 3; ++ else ++ lastdisk = 6; ++ if (new.disk_r[lastdisk]) ++ printf (" disk %d: %8lur%8luw\n", lastdisk+1, bDIFF (disk_r[lastdisk]), ++ bDIFF (disk_w[lastdisk])); ++ else if (new.disk[lastdisk]) ++ printf (" disk %d: %8lu\n", lastdisk+1, bDIFF (disk[lastdisk])); + else + putchar ('\n'); + +@@ -786,6 +901,8 @@ + meminfofp = myfopen (PROC_DIR "meminfo"); + statfp = myfopen (PROC_DIR "stat"); + /* These may be missing, so check for NULL later. */ ++ diskstatsfp = fopen (PROC_DIR "diskstats", "r"); ++ vmstatfp = fopen (PROC_DIR "vmstat", "r"); + modulesfp = fopen (PROC_DIR "modules", "r"); + devicesfp = fopen (PROC_DIR "devices", "r"); + filesystemsfp = fopen (PROC_DIR "filesystems", "r"); +@@ -990,6 +1107,9 @@ + new.disk_r[1] = new.disk_w[1] = + new.disk_r[2] = new.disk_w[2] = + new.disk_r[3] = new.disk_w[3] = 0; ++ new.disk_r[4] = new.disk_w[4] = 0; ++ new.disk_r[5] = new.disk_w[5] = 0; ++ new.disk_r[6] = new.disk_w[6] = 0; + redrawn = 1; + message = io_or_blk ? "showing I/O in blocks" : + "showing I/O per requests"; +diff -ruN procinfo-18/procinfo.h procinfo-19/procinfo.h +--- procinfo-18/procinfo.h 2001-02-24 23:30:45.000000000 +0000 ++++ procinfo-19/procinfo.h 2004-06-17 09:24:16.511726412 +0100 +@@ -81,11 +81,11 @@ + unsigned long uptime; + long m_to, m_us, m_fr, m_sh, m_bu, m_ca; + long s_to, s_us, s_fr; +- unsigned long cpu_user, cpu_nice, cpu_sys, cpu_idle; +- unsigned long disk[5]; +- unsigned long disk_r[5]; +- unsigned long disk_w[5]; +- unsigned long pgin, pgout, swin, swout; ++ unsigned long cpu_user, cpu_nice, cpu_sys, cpu_idle, cpu_iowait, cpu_hirq, cpu_sirq; ++ unsigned long disk[8]; ++ unsigned long disk_r[8]; ++ unsigned long disk_w[8]; ++ unsigned long pgin, pgout, pgac, pgdeac, pgfault, swin, swout; + unsigned long *intr; /* Phew. That's better. */ + unsigned long old_intr; + unsigned long ctxt; +diff -ruN procinfo-18/routines.c procinfo-19/routines.c +--- procinfo-18/routines.c 2001-02-24 23:30:45.000000000 +0000 ++++ procinfo-19/routines.c 2004-06-16 16:36:51.000000000 +0100 +@@ -388,9 +388,13 @@ + hms (unsigned long t) + { + unsigned int d, h, m, s; ++ unsigned long q; + static char buf[22]; + +- t = t * 100 / HZ; ++ q = 100 / HZ; /* We need this because the libc does something funny here */ ++ /* if we try to use: t = t * 100 / HZ; here! */ ++ /* procinfo@meisel.cc 11. Feb. 2004 */ ++ t = t * q; + d = (int) (t / 8640000); + t = t - (long) (d * 8640000); + h = (int) (t / 360000); diff --git a/app-admin/procinfo/files/procinfo-18-stat.patch b/app-admin/procinfo/files/procinfo-18-stat.patch new file mode 100644 index 000000000000..d7dc4a458b28 --- /dev/null +++ b/app-admin/procinfo/files/procinfo-18-stat.patch @@ -0,0 +1,21 @@ +diff -ur procinfo-18/procinfo.c procinfo-18-mod/procinfo.c +--- procinfo-18/procinfo.c 2001-02-25 11:29:16.000000000 +0000 ++++ procinfo-18-mod/procinfo.c 2008-04-16 10:16:29.000000000 +0100 +@@ -76,7 +76,7 @@ + *devicesfp, *filesystemsfp, *interruptsfp, *dmafp, *cmdlinefp, + *versionfp, *cpuinfofp; + +-char line[1024], cmdline[1024], booted[40], *version = NULL, *message = NULL; ++char line[4096], cmdline[1024], booted[40], *version = NULL, *message = NULL; + + float rate = 1.0; /* per interval or per sec */ + +@@ -446,7 +446,7 @@ + */ + char *q; + +- if ((q = strstr (p, "PIC"))) { ++ if ((q = strstr (p, "PIC")) || (q = strstr (p, "MSI"))) { + while (*q != ' ') /* eat up "PIC" or "PIC-foo" */ + q++; + while (*q == ' ') /* eat up spaces */ diff --git a/app-admin/procinfo/files/procinfo-flags.patch b/app-admin/procinfo/files/procinfo-flags.patch new file mode 100644 index 000000000000..e254c254e1a9 --- /dev/null +++ b/app-admin/procinfo/files/procinfo-flags.patch @@ -0,0 +1,16 @@ +--- procinfo-18/Makefile.orig 2001-02-25 00:29:53.000000000 +0100 ++++ procinfo-18/Makefile 2006-10-21 13:57:47.000000000 +0200 +@@ -2,10 +2,10 @@ + + prefix=/usr + +-CC = gcc -Wall -Wstrict-prototypes ++CC += + +-CFLAGS = -O2 +-LDFLAGS = -s ++CFLAGS += -Wall -Wstrict-prototypes ++LDFLAGS += + + # If you get lots of `undefined references', you probably need -lncurses + # instead: diff --git a/app-admin/procinfo/metadata.xml b/app-admin/procinfo/metadata.xml new file mode 100644 index 000000000000..91f4e72fb544 --- /dev/null +++ b/app-admin/procinfo/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/app-admin/procinfo/procinfo-18-r2.ebuild b/app-admin/procinfo/procinfo-18-r2.ebuild new file mode 100644 index 000000000000..5696955e19bf --- /dev/null +++ b/app-admin/procinfo/procinfo-18-r2.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils toolchain-funcs + +DESCRIPTION="Displays some kernel stats and info on a running Linux system" +HOMEPAGE="http://www.kozmix.org/src/" +SRC_URI="http://www.kozmix.org/src/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ~ia64 ppc ppc64 ~s390 ~sh sparc x86" +IUSE="" + +src_prepare() { + epatch "${FILESDIR}"/kernel-2.6.patch + epatch "${FILESDIR}"/cpu-usage-fix.patch + epatch "${FILESDIR}"/${PN}-flags.patch + epatch "${FILESDIR}"/${P}-stat.patch +} + +src_compile() { + emake \ + CC=$(tc-getCC) \ + LDLIBS="$( $(tc-getPKG_CONFIG) --libs ncurses )" +} + +src_install() { + dobin procinfo + newbin lsdev.pl lsdev + newbin socklist.pl socklist + + doman *.8 + dodoc README CHANGES +} diff --git a/app-admin/psmon/Manifest b/app-admin/psmon/Manifest new file mode 100644 index 000000000000..992a16bda8c8 --- /dev/null +++ b/app-admin/psmon/Manifest @@ -0,0 +1 @@ +DIST psmon-1.39.tar.gz 57475 SHA256 f97d43573473ccfb089d8eca5287151679f378d0e9114f01dd9ba18a28d10ad5 SHA512 08992023af29433da0fe8c48b610df3008b9ea14e197b52bc9582895275fc65cd0faca7e29f36356344219d6a61ef9350713aaa60377ce7ae49a882044b91e32 WHIRLPOOL 3cc5bb554e8919d58ed1dd5a1cdf989d527b917478b550eca77154183dbdcd9d8017c58f9b61f038fafd6b8295fe03939e01fbff2a18b55063a262a8c7979b6f diff --git a/app-admin/psmon/metadata.xml b/app-admin/psmon/metadata.xml new file mode 100644 index 000000000000..81ada3d7c6ee --- /dev/null +++ b/app-admin/psmon/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> + <email>maintainer-needed@gentoo.org</email> + <name>Default assignee for orphaned packages</name> + </maintainer> + <longdescription lang="en"> + A perl script that monitors processes to make sure they are running as + the user has intended. Will respawn dead processes and/or kill illegal + processes. + </longdescription> +</pkgmetadata> diff --git a/app-admin/psmon/psmon-1.39-r1.ebuild b/app-admin/psmon/psmon-1.39-r1.ebuild new file mode 100644 index 000000000000..3d2627cd3f1f --- /dev/null +++ b/app-admin/psmon/psmon-1.39-r1.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit perl-app + +DESCRIPTION="Monitors process table to slay aggressive, and spawn dead, processes" +HOMEPAGE="http://www.psmon.com/" +SRC_URI="http://www.psmon.com/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +DEPEND=">=dev-lang/perl-5.6.0 + dev-perl/Config-General + dev-perl/Proc-ProcessTable + dev-perl/Unix-Syslog + virtual/perl-Getopt-Long" + +src_install() { + perl-module_src_install + insinto /etc + doins etc/psmon.conf +} + +pkg_postinst() { + einfo "NOTICE: Please modify at least the NotifyEmail parameter found in" + einfo "the /etc/psmon.conf file" +} diff --git a/app-admin/puppet-agent/Manifest b/app-admin/puppet-agent/Manifest new file mode 100644 index 000000000000..81fb2e1cba27 --- /dev/null +++ b/app-admin/puppet-agent/Manifest @@ -0,0 +1,2 @@ +DIST puppet-agent_1.2.2-1wheezy_amd64.deb 14860604 SHA256 5910ff850e8814092b50dc70a68d8c5497d5fe3d960bfef9cd13f8dc689dc665 SHA512 ad11b0ba820186f4b315ac156e8bf78348acd69d11e4c03cb12314fc73e4e3fbfef0814664e7fd04f692e8db42f9e137194e267354b2fc4ec8dda424af9f5d98 WHIRLPOOL 25c42e9f7871ccf61eb55b83327813e6090ee359c42e1e473ef09155db69adebfe412fd61a5752b4b634e5ad8aa7bd45d4a86f7e5ba29c1bdb74033b91f45c3f +DIST puppet-agent_1.2.2-1wheezy_i386.deb 14816930 SHA256 092b8bfe1e1156322d0ab68d411487c80146bd778916409b1c907791f41a49c8 SHA512 50879ce4eebcd451dafb33cb7a12c36ee9bcaedfc29ffa0d60552efa5aa4cd66d0007061d28a80d31615c67442f8526863185e6753418772d8275e58454d6886 WHIRLPOOL 7abb0b6f52f5dd07a5ccb56b1c795c05f8c4efd18665d2ca209400e51419e4ae335e630a845c031a47df09d96ce20fbc92d7cafa082deb3872306daf74838612 diff --git a/app-admin/puppet-agent/files/mcollective.initd b/app-admin/puppet-agent/files/mcollective.initd new file mode 100644 index 000000000000..1fc171586e98 --- /dev/null +++ b/app-admin/puppet-agent/files/mcollective.initd @@ -0,0 +1,19 @@ +#!/sbin/runscript +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +MCOLLECTIVE_PID_DIR="${MCOLLECTIVE_PID_DIR:-/var/run/puppetlabs}" + +command="/usr/sbin/mcollectived" +pidfile="${MCOLLECTIVE_PID_DIR}/mcollectived.pid" + +command_args="--pidfile ${pidfile} --config=/etc/puppetlabs/mcollective/server.cfg --daemonize" + +depend() { + need net +} + +start_pre() { + checkpath --directory "${MCOLLECTIVE_PID_DIR}" +} diff --git a/app-admin/puppet-agent/files/mcollective.service b/app-admin/puppet-agent/files/mcollective.service new file mode 100644 index 000000000000..9e90c9e67280 --- /dev/null +++ b/app-admin/puppet-agent/files/mcollective.service @@ -0,0 +1,14 @@ +[Unit] +Description=The Marionette Collective +After=network.target + +[Service] +Type=forking +StandardOutput=syslog +StandardError=syslog +ExecStart=/usr/sbin/bin/mcollectived --config=/etc/puppetlabs/mcollective/server.cfg --pidfile=/var/run/puppetlabs/mcollective.pid --daemonize +ExecReload=/bin/kill -USR1 $MAINPID +PIDFile=/var/run/puppetlabs/mcollective.pid + +[Install] +WantedBy=multi-user.target diff --git a/app-admin/puppet-agent/files/puppet-agent.conf.tmpfilesd b/app-admin/puppet-agent/files/puppet-agent.conf.tmpfilesd new file mode 100644 index 000000000000..42d082111940 --- /dev/null +++ b/app-admin/puppet-agent/files/puppet-agent.conf.tmpfilesd @@ -0,0 +1 @@ +d /var/run/puppetlabs 0755 root root - diff --git a/app-admin/puppet-agent/files/puppet.initd b/app-admin/puppet-agent/files/puppet.initd new file mode 100644 index 000000000000..693ab1496c61 --- /dev/null +++ b/app-admin/puppet-agent/files/puppet.initd @@ -0,0 +1,30 @@ +#!/sbin/runscript +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +PUPPET_PID_DIR="${PUPPET_PID_DIR:-/var/run/puppet}" + +pidfile="${PUPPET_PID_DIR}/puppet.pid" +PUPPET_LOG_DIR="/var/log/puppetlabs/puppet" + +command="/usr/bin/puppet" +extra_started_commands="reload" + +command_args="agent --pidfile ${pidfile} --confdir /etc/puppetlabs/puppet ${PUPPET_EXTRA_OPTS}" + +depend() { + need localmount + use dns logger puppetserver netmount nfsmount +} + +start_pre() { + checkpath --directory --owner puppet:puppet "${PUPPET_PID_DIR}" + checkpath --directory --owner puppet:puppet --mode 750 ${PUPPET_LOG_DIR} +} + +reload() { + ebegin "Reloading $RC_SVCNAME" + start-stop-daemon --signal HUP --pidfile "${pidfile}" + eend $? +} diff --git a/app-admin/puppet-agent/files/puppet.service b/app-admin/puppet-agent/files/puppet.service new file mode 100644 index 000000000000..61b03134b331 --- /dev/null +++ b/app-admin/puppet-agent/files/puppet.service @@ -0,0 +1,14 @@ +[Unit] +Description=Puppet agent +Wants=basic.target +After=basic.target network.target + +[Service] +EnvironmentFile=-/etc/sysconfig/puppetagent +EnvironmentFile=-/etc/sysconfig/puppet +EnvironmentFile=-/etc/default/puppet +ExecStart=/opt/puppetlabs/puppet/bin/puppet agent $PUPPET_EXTRA_OPTS --no-daemonize +KillMode=process + +[Install] +WantedBy=multi-user.target diff --git a/app-admin/puppet-agent/metadata.xml b/app-admin/puppet-agent/metadata.xml new file mode 100644 index 000000000000..e0523b408eb0 --- /dev/null +++ b/app-admin/puppet-agent/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> + <email>prometheanfire@gentoo.org</email> + <name>Matthew Thode</name> + </maintainer> + <use> + <flag name="puppetdb">Adds puppetdb support</flag> + </use> + <longdescription lang="en"> + Collection of puppet utils, clients and batteries included. + </longdescription> +</pkgmetadata> diff --git a/app-admin/puppet-agent/puppet-agent-1.2.2-r1.ebuild b/app-admin/puppet-agent/puppet-agent-1.2.2-r1.ebuild new file mode 100644 index 000000000000..f9888cf28fd0 --- /dev/null +++ b/app-admin/puppet-agent/puppet-agent-1.2.2-r1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils systemd unpacker + +DESCRIPTION="general puppet client utils along with mcollective hiera and facter" +HOMEPAGE="https://puppetlabs.com/" +SRC_BASE="http://apt.puppetlabs.com/pool/wheezy/PC1/${PN:0:1}/${PN}/${PN}_${PV}-1wheezy" +SRC_URI=" + amd64? ( ${SRC_BASE}_amd64.deb ) + x86? ( ${SRC_BASE}_i386.deb ) +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="puppetdb" +RESTRICT="strip" + +CDEPEND="!app-admin/puppet + !app-admin/mcollective + !dev-ruby/hiera + !dev-ruby/facter" + +DEPEND=" + ${DEPEND} + ${CDEPEND}" +RDEPEND="${CDEPEND} + puppetdb? ( >=dev-ruby/puppetdb-termini-3.0.1-r2 )" + +S=${WORKDIR} + +src_install() { + # conf.d + doconfd etc/default/puppet + doconfd etc/default/mcollective + # logrotate.d + insinto /etc/logrotate.d + doins etc/logrotate.d/mcollective + # puppet itself + insinto /etc/puppetlabs + doins -r etc/puppetlabs/* + # logdir for systemd + dodir var/log/puppetlabs/puppet/ + fperms 0750 var/log/puppetlabs/puppet/ + # the rest + insinto /opt + doins -r opt/* + fperms 0750 /opt/puppetlabs/puppet/cache + # init + newinitd "${FILESDIR}/puppet.initd" puppet + newinitd "${FILESDIR}/mcollective.initd" mcollective + systemd_dounit "${FILESDIR}/puppet.service" + systemd_dounit "${FILESDIR}/mcollective.service" + systemd_newtmpfilesd "${FILESDIR}/puppet-agent.conf.tmpfilesd" puppet-agent.conf + # symlinks + chmod 0755 -R "${D}/opt/puppetlabs/puppet/bin/" + dosym /opt/puppetlabs/bin/facter /usr/bin/facter + dosym /opt/puppetlabs/bin/hiera /usr/bin/hiera + dosym /opt/puppetlabs/bin/mco /usr/bin/mco + dosym /opt/puppetlabs/bin/puppet /usr/bin/puppet + dosym /opt/puppetlabs/puppet/bin/mcollectived /usr/sbin/mcollectived +} diff --git a/app-admin/puppet-agent/puppet-agent-1.2.2-r2.ebuild b/app-admin/puppet-agent/puppet-agent-1.2.2-r2.ebuild new file mode 100644 index 000000000000..2af998ef77bd --- /dev/null +++ b/app-admin/puppet-agent/puppet-agent-1.2.2-r2.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils systemd unpacker + +DESCRIPTION="general puppet client utils along with mcollective hiera and facter" +HOMEPAGE="https://puppetlabs.com/" +SRC_BASE="http://apt.puppetlabs.com/pool/wheezy/PC1/${PN:0:1}/${PN}/${PN}_${PV}-1wheezy" +SRC_URI=" + amd64? ( ${SRC_BASE}_amd64.deb ) + x86? ( ${SRC_BASE}_i386.deb ) +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="puppetdb selinux" +RESTRICT="strip" + +CDEPEND="!app-admin/augeas + !app-admin/mcollective + !app-admin/puppet + !dev-ruby/hiera + !dev-ruby/facter + !app-emulation/virt-what" + +DEPEND=" + ${CDEPEND}" +RDEPEND="${CDEPEND} + sys-apps/dmidecode + selinux? ( + sys-libs/libselinux[ruby] + sec-policy/selinux-puppet + ) + puppetdb? ( >=dev-ruby/puppetdb-termini-3.0.1-r2 )" + +S=${WORKDIR} + +src_install() { + # conf.d + doconfd etc/default/puppet + doconfd etc/default/mcollective + # logrotate.d + insinto /etc/logrotate.d + doins etc/logrotate.d/mcollective + # puppet itself + insinto /etc/puppetlabs + doins -r etc/puppetlabs/* + # logdir for systemd + dodir var/log/puppetlabs/puppet/ + fperms 0750 var/log/puppetlabs/puppet/ + # the rest + insinto /opt + doins -r opt/* + fperms 0750 /opt/puppetlabs/puppet/cache + # init + newinitd "${FILESDIR}/puppet.initd" puppet + newinitd "${FILESDIR}/mcollective.initd" mcollective + systemd_dounit "${FILESDIR}/puppet.service" + systemd_dounit "${FILESDIR}/mcollective.service" + systemd_newtmpfilesd "${FILESDIR}/puppet-agent.conf.tmpfilesd" puppet-agent.conf + # symlinks + chmod 0755 -R "${D}/opt/puppetlabs/puppet/bin/" + chmod 0755 "${D}//opt/puppetlabs/puppet/lib/virt-what/virt-what-cpuid-helper" + dosym /opt/puppetlabs/bin/facter /usr/bin/facter + dosym /opt/puppetlabs/bin/hiera /usr/bin/hiera + dosym /opt/puppetlabs/bin/mco /usr/bin/mco + dosym /opt/puppetlabs/bin/puppet /usr/bin/puppet + dosym /opt/puppetlabs/puppet/bin/mcollectived /usr/sbin/mcollectived + dosym /opt/puppetlabs/puppet/bin/virt-what /usr/bin/virt-what + dosym /opt/puppetlabs/puppet/bin/augparse /usr/bin/augparse + dosym /opt/puppetlabs/puppet/bin/augtool /usr/bin/augtool + dosym /opt/puppetlabs/puppet/bin/extlookup2hiera /usr/bin/extlookup2hiera +} diff --git a/app-admin/puppet-lint/Manifest b/app-admin/puppet-lint/Manifest new file mode 100644 index 000000000000..6910d4cc0f4e --- /dev/null +++ b/app-admin/puppet-lint/Manifest @@ -0,0 +1,2 @@ +DIST puppet-lint-0.3.2.gem 32768 SHA256 ac3051cf39e27fd8ea80a60cb6ca63451b36de3cc2aa0fc768eea8906774da0d SHA512 87a85186f768b48d1043ce2ecc87fd3d3a2aa2ce9a52f91a3a35982310cb88241306eb5bf97f182a1af0928d2a2d6fc278e33dc94849a1f989007958c0c2e7b3 WHIRLPOOL b38c83d84a496a8e5230250293000c796935d0618ee7e0a98db3b7fa752f16364b884f7a8c37fabb710ba047b5a653118f57de0676ac86eeea66e52f3d632b9a +DIST puppet-lint-1.1.0.gem 43520 SHA256 739f566cd4f1e77b92c1191217fdb59ce12353f3ec2703f30933d2bba877b35b SHA512 65b72ace2d5d9d22994ef9ed2ae2d544c4bf7d24a16b573e04b14668de69c56139949a936ed607045e5a6f11d0260a4d2773b2faab296e21f2e6b81e44f9be6a WHIRLPOOL 5d94bed7cee54617ccf68297dd9668832ea042bb818348e1482a5dea4843e7c2fbc76493ee2ae2ae003735daa09238650ab6b7e47111ad63808a12c87b0b62cf diff --git a/app-admin/puppet-lint/metadata.xml b/app-admin/puppet-lint/metadata.xml new file mode 100644 index 000000000000..e2e74b8fd613 --- /dev/null +++ b/app-admin/puppet-lint/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<!-- +$Id$ +--> +<pkgmetadata> +<herd>sysadmin</herd> +<herd>ruby</herd> +<longdescription>Tim Sharpe's Puppet Linter. Enforces puppetlabs style.</longdescription> +</pkgmetadata> diff --git a/app-admin/puppet-lint/puppet-lint-0.3.2.ebuild b/app-admin/puppet-lint/puppet-lint-0.3.2.ebuild new file mode 100644 index 000000000000..20f1107ffae0 --- /dev/null +++ b/app-admin/puppet-lint/puppet-lint-0.3.2.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" +USE_RUBY="ruby19 ruby20 ruby21" + +RUBY_FAKEGEM_RECIPE_TEST="rspec" +RUBY_FAKEGEM_EXTRADOC="README*" +RUBY_FAKEGEM_DOCDIR="html" + +inherit eutils ruby-fakegem + +DESCRIPTION="A linter for puppet DSL" +HOMEPAGE="http://puppet-lint.com/" + +LICENSE="MIT" +SLOT="0" +IUSE="" +KEYWORDS="~amd64" + +ruby_add_rdepend "dev-ruby/rake" diff --git a/app-admin/puppet-lint/puppet-lint-1.1.0.ebuild b/app-admin/puppet-lint/puppet-lint-1.1.0.ebuild new file mode 100644 index 000000000000..562e60310792 --- /dev/null +++ b/app-admin/puppet-lint/puppet-lint-1.1.0.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +USE_RUBY="ruby19 ruby20 ruby21" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +RUBY_FAKEGEM_RECIPE_DOC="rdoc" +RUBY_FAKEGEM_EXTRADOC="README.md" + +inherit eutils ruby-fakegem + +DESCRIPTION="A linter for puppet DSL" +HOMEPAGE="http://puppet-lint.com/" + +LICENSE="MIT" +SLOT="0" +IUSE="" +KEYWORDS="~amd64" + +ruby_add_bdepend "test? ( + dev-ruby/rspec-its:1 + dev-ruby/rspec-collection_matchers:1 )" diff --git a/app-admin/puppet/Manifest b/app-admin/puppet/Manifest new file mode 100644 index 000000000000..f21dfeaec8ee --- /dev/null +++ b/app-admin/puppet/Manifest @@ -0,0 +1,7 @@ +DIST puppet-3.7.3.tar.gz 2594007 SHA256 4a3bd7ddb51072c3dd898a8de158cde204a2d8fd0b84e8ac806b84c074348637 SHA512 74baae5525090ac6213cc8ef27ad74cde5372ac08f8d5c11ed2a4bd2f6ed2b9940fa141ddb705328785611cbd0d32d70a40f1b44dbc9b167e11f0ad1051efc8b WHIRLPOOL 7ff9909c6bfb4d83caf8fbfcac11dff27c3a7583a68336040d404745bf35f4676933b6494d2c65c1f87fc9de5928ac9ae79f81e0b0a356088c0be5d8526ad42a +DIST puppet-3.7.4.tar.gz 2600191 SHA256 957c09ab253f76e624809766999da6d872f79b3a64b54b8c66bdd8907c291745 SHA512 868a80df0e07b68f0de2fe31dcc55ab1f9da160d66e151298ecb11c17382c13939a88f2925e387a14d2713be5375c2606f26ff52c11dd214874d71f17b3c0617 WHIRLPOOL d5dfb53a062532427ed32acb834517d8eaeba9f53e85bccb79de93f5f947e7d4df472b40c0bed91703b8977ac99c9764944290627815dc60430a8cfe2098519b +DIST puppet-3.8.1.tar.gz 2633982 SHA256 033d99125276c7062fa5928e3de38c5e487b406530b3c50e84027b3abfd945a8 SHA512 a188c9f5baad3260c7cc2ea26d79d6655b504809deefe90a9e9ed81d3a66c1e10cc0b72b63c9ef34e5dd9266d3588cb7dc0d55e7a762f5fa5bbdc1ebe347979d WHIRLPOOL fd476519032d7b346a8813e4c73826daafc69fc4f7a8924efb35dfc6d691a7734322a7746008484df3f62f32865b23c6203f38662f354057aff5e75c20bf1965 +DIST puppet-3.8.2.tar.gz 2637591 SHA256 5a89c623f22fc96a2919801ff874b10f8f1a66e95c09976c73b257b8bbc39986 SHA512 b209a7b009e1d9510753a7484e620c3fb34a83058e8dbc2d9de2c33aca97e813fa85046d9b4de2fad9cb8fb7db257d46c221dd6eb9c0f86e1343cce6e1a9ca5a WHIRLPOOL 55bc7ece7ee918fab29e0f116f8ebc58322b42c07285a8965f2acae9dcff9c13e90cfc9c3c2537f9d21c663062015482fd48e24a1505fc7445fb6b949bc805bc +DIST puppet-4.0.0.tar.gz 2498445 SHA256 c02a5cceb68d6c26228c242a312d68cf054233842e914e9d3aec32b38034e013 SHA512 c8ec0771105e83498f7558e1dfa8679d94cb2d526589041319f35cce214a4c8602ebf8541a15fa64ce542168d101042153815887fb8350bce0c4371c490f396f WHIRLPOOL af53d8b14b7110e6648873e9822de37a8bb17b7f635800d9a9fb1fff7df22000cd13604b45913ddddbae58b7af198c80e84c001cc8b6d1643db9ead4ece42bb7 +DIST puppet-4.1.0.tar.gz 2532579 SHA256 a168ac45a7b25932dfc78bd5da3efe41363e239c7361dd5c4f91615dc17bb275 SHA512 85ba32fb3a7e9f3413f201263943411fbb6b57a4aa13461954b32c1095b06d04f26288a216c5624290cf89d09183bc86bb5f57769fe2ccadc44bf57cd601f5d3 WHIRLPOOL 5288b3204a5c5b96da4eabdee19c1156e71b3a76662d8d28fc8e43988e76ca52618d423c207c1a25d5d92638c559db76ee3c8ce336286d3a5e875c1dc538f8b8 +DIST puppet-4.2.1.tar.gz 2546267 SHA256 519842dfa03ff78c94e77fb28867aef12933691b9e2ce41788f80c5c2865fe7e SHA512 d4ce3f6cd0fbca4270a9121671c27985c9aaa5360a1a317afcc8f79cd81d285e1661cc77d50dda47abd8e50309762d5931545ea4d675b9fb6c32b612e570fd3d WHIRLPOOL 492294158f7f5eb78b93098c759c97ca53a09fc7b24a8350dfd76220a1d578f78375ba3bd9d618b97299931001af83cc5475c4f6ad9bbb1c3d9744fa07585bfd diff --git a/app-admin/puppet/files/50puppet-mode-gentoo.el b/app-admin/puppet/files/50puppet-mode-gentoo.el new file mode 100644 index 000000000000..64c38ae5a31d --- /dev/null +++ b/app-admin/puppet/files/50puppet-mode-gentoo.el @@ -0,0 +1,6 @@ + +;;; puppet-mode site-lisp configuration + +(add-to-list 'load-path "@SITELISP@") +(autoload 'puppet-mode "puppet-mode" "Major mode for editing puppet manifests") +(add-to-list 'auto-mode-alist '("\\.pp$" . puppet-mode)) diff --git a/app-admin/puppet/files/puppet-fix-tests-4.x.patch b/app-admin/puppet/files/puppet-fix-tests-4.x.patch new file mode 100644 index 000000000000..77d9cfbda60a --- /dev/null +++ b/app-admin/puppet/files/puppet-fix-tests-4.x.patch @@ -0,0 +1,18 @@ +--- ./spec/unit/network/http/api/indirected_routes_spec.rb 2015-07-21 12:09:09.000000000 -0500 ++++ ./spec/unit/network/http/api/indirected_routes_spec.rb.new 2015-07-23 18:33:22.839914116 -0500 +@@ -144,15 +144,6 @@ + :env)))) + handler.uri2indirection("GET", "#{master_url_prefix}/node/bar", params) + end +- +- it "should not pass through an environment to check_authorization and fail if the environment is unknown" do +- handler.expects(:check_authorization).with(anything, +- anything, +- Not(has_entry(:environment))) +- expect(lambda { handler.uri2indirection("GET", +- "#{master_url_prefix}/node/bar", +- {:environment => 'bogus'}) }).to raise_error(ArgumentError) +- end + end + + describe "when converting a request into a URI" do diff --git a/app-admin/puppet/files/puppet-openrc-status-fix.patch b/app-admin/puppet/files/puppet-openrc-status-fix.patch new file mode 100644 index 000000000000..af568098d594 --- /dev/null +++ b/app-admin/puppet/files/puppet-openrc-status-fix.patch @@ -0,0 +1,15 @@ +diff -Naur puppet-3.1.1-r2.orig/lib/puppet/provider/service/openrc.rb puppet-3.1.1-r2/lib/puppet/provider/service/openrc.rb +--- all/puppet-3.1.1.orig/lib/puppet/provider/service/openrc.rb 2013-06-05 03:32:53.646824966 -0400 ++++ all/puppet-3.1.1/lib/puppet/provider/service/openrc.rb 2013-06-05 03:37:25.333824967 -0400 +@@ -10,8 +10,10 @@ + defaultfor :operatingsystem => :gentoo + defaultfor :operatingsystem => :funtoo + ++ has_command(:rcstatus, '/bin/rc-status') do ++ environment :RC_SVCNAME => nil ++ end + commands :rcservice => '/sbin/rc-service' +- commands :rcstatus => '/bin/rc-status' + commands :rcupdate => '/sbin/rc-update' + + self::STATUSLINE = /^\s+(.*?)\s*\[\s*(.*)\s*\]$/ diff --git a/app-admin/puppet/files/puppet.init b/app-admin/puppet/files/puppet.init new file mode 100755 index 000000000000..5f15aeaa021e --- /dev/null +++ b/app-admin/puppet/files/puppet.init @@ -0,0 +1,40 @@ +#!/sbin/runscript +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need localmount net + use dns logger puppetmaster netmount nfsmount +} + +checkconfig() { + if [ ! -d "${PUPPET_PID_DIR}" ] ; then + eerror "Please make sure PUPPET_PID_DIR is defined and points to a existing directory" + return 1 + fi + + return 0 +} + +start() { + checkconfig || return $? + + local options="" + [ -n "${PUPPET_EXTRA_OPTS}" ] && options="${options} ${PUPPET_EXTRA_OPTS}" + + ebegin "Starting puppet" + start-stop-daemon --start --quiet \ + --pidfile "${PUPPET_PID_DIR}/agent.pid" \ + --exec /usr/bin/puppetd -- ${options} + eend $? "Failed to start puppet" +} + +stop() { + ebegin "Stopping puppet" + start-stop-daemon --stop --quiet \ + --pidfile "${PUPPET_PID_DIR}/agent.pid" + local ret=$? + eend ${ret} "Failed to stop puppet" + rm -f "${PUPPET_PID_DIR}/agent.pid" + return ${ret} +} diff --git a/app-admin/puppet/files/puppet.init-4.x b/app-admin/puppet/files/puppet.init-4.x new file mode 100644 index 000000000000..e1238012beee --- /dev/null +++ b/app-admin/puppet/files/puppet.init-4.x @@ -0,0 +1,29 @@ +#!/sbin/runscript +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +PUPPET_PID_DIR="${PUPPET_PID_DIR:-/var/run/puppet}" + +pidfile="${PUPPET_PID_DIR}/puppet.pid" +PUPPET_LOG_DIR="/var/log/puppet" + +command="/usr/bin/puppet" +extra_started_commands="reload" + +command_args="agent --pidfile ${pidfile} --confdir /etc/puppetlabs/puppet ${PUPPET_EXTRA_OPTS}" + +depend() { + need localmount + use dns logger puppetmaster netmount nfsmount +} + +start_pre() { + checkpath --directory --owner puppet:puppet "${PUPPET_PID_DIR}" + checkpath --directory --owner puppet:puppet --mode 750 ${PUPPET_LOG_DIR} +} + +reload() { + ebegin "Reloading $RC_SVCNAME" + start-stop-daemon --signal SIGHUP --pidfile "${pidfile}" + eend $? +} diff --git a/app-admin/puppet/files/puppet.init-r1 b/app-admin/puppet/files/puppet.init-r1 new file mode 100644 index 000000000000..b054e6b5a7e7 --- /dev/null +++ b/app-admin/puppet/files/puppet.init-r1 @@ -0,0 +1,24 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +PUPPET_PID_DIR="${PUPPET_PID_DIR:-/var/run/puppet}" + +pidfile="${PUPPET_PID_DIR}/puppet.pid" +PUPPET_LOG_DIR="/var/log/puppet" + +extra_started_commands="reload" + +command="/usr/bin/puppet" + +command_args="agent --pidfile ${pidfile} ${PUPPET_EXTRA_OPTS}" + +depend() { + need localmount + use dns logger puppetmaster netmount nfsmount +} + +start_pre() { + checkpath --directory --owner puppet:puppet "${PUPPET_PID_DIR}" + checkpath --directory --owner puppet:puppet --mode 750 ${PUPPET_LOG_DIR} +} diff --git a/app-admin/puppet/files/puppetmaster.confd b/app-admin/puppet/files/puppetmaster.confd new file mode 100644 index 000000000000..afecf479a6a1 --- /dev/null +++ b/app-admin/puppet/files/puppetmaster.confd @@ -0,0 +1,18 @@ +# Location of PID files +PUPPETMASTER_PID_DIR="/var/run/puppet" + +# Where to log general messages to. +# Specify syslog to send log messages to the system log. +#PUPPETMASTER_LOG="syslog" + +# You may specify other parameters to the puppetmaster here +#PUPPETMASTER_EXTRA_OPTS="--noca" + +# You may specify an alternate port on which puppetmaster should listen. +# Default is: 8140 +#PUPPETMASTER_PORT="8140" + +# To start multiple servers: +# # cp /etc/conf.d/puppetmaster /etc/conf.d/puppetmaster.master_8141 +# # ln -s puppetmaster /etc/init.d/puppetmaster.master_8141 +# # ${EDITOR} /etc/conf.d/puppetmaster.master_8141 (set 8141 to PUPPETMASTER_PORT) diff --git a/app-admin/puppet/files/puppetmaster.init b/app-admin/puppet/files/puppetmaster.init new file mode 100755 index 000000000000..a0da1bba3e1e --- /dev/null +++ b/app-admin/puppet/files/puppetmaster.init @@ -0,0 +1,37 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +if [ "${SVCNAME}" = "puppetmaster" ] ; then + PUPPETMASTER_PID="master" +else + PUPPETMASTER_PID="${SVCNAME#*.}" +fi +PUPPETMASTER_PID_DIR="${PUPPETMASTER_PID_DIR:-/var/run/puppet}" +pidfile="${PUPPETMASTER_PID_DIR}/${PUPPETMASTER_PID}.pid" +PUPPET_LOG_DIR="/var/log/puppet" + +command_args="master --pidfile ${pidfile} ${PUPPETMASTER_EXTRA_OPTS}" +if [ -n "${PUPPETMASTER_PORT}" ] ; then + command_args="${command_args} --masterport ${PUPPETMASTER_PORT}" +fi + +command="/usr/bin/puppet" +extra_started_commands="reload" + +depend() { + need localmount + use dns logger slapd netmount nfsmount +} + +start_pre() { + checkpath --directory --owner puppet:puppet "${PUPPETMASTER_PID_DIR}" + checkpath --directory --owner puppet:puppet --mode 750 ${PUPPET_LOG_DIR} + checkpath --file --owner puppet:puppet --mode 640 "${PUPPET_LOG_DIR}/masterhttp.log" +} + +reload() { + ebegin "Reloading ${SVCNAME}" + start-stop-daemon --signal HUP --pidfile "${pidfile}" + eend $? "Failed to stop ${SVCNAME}" +} diff --git a/app-admin/puppet/files/puppetmaster.init-4.x b/app-admin/puppet/files/puppetmaster.init-4.x new file mode 100644 index 000000000000..636f58f5516b --- /dev/null +++ b/app-admin/puppet/files/puppetmaster.init-4.x @@ -0,0 +1,37 @@ +#!/sbin/runscript +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +if [ "${SVCNAME}" = "puppetmaster" ] ; then + PUPPETMASTER_PID="master" +else + PUPPETMASTER_PID="${SVCNAME#*.}" +fi +PUPPETMASTER_PID_DIR="${PUPPETMASTER_PID_DIR:-/var/run/puppet}" +pidfile="${PUPPETMASTER_PID_DIR}/${PUPPETMASTER_PID}.pid" +PUPPET_LOG_DIR="/var/log/puppet" + +command_args="master --pidfile ${pidfile} --confdir /etc/puppetlabs/puppet ${PUPPETMASTER_EXTRA_OPTS}" +if [ -n "${PUPPETMASTER_PORT}" ] ; then + command_args="${command_args} --masterport ${PUPPETMASTER_PORT}" +fi + +command="/usr/bin/puppet" +extra_started_commands="reload" + +depend() { + need localmount + use dns logger slapd netmount nfsmount +} + +start_pre() { + checkpath --directory --owner puppet:puppet "${PUPPETMASTER_PID_DIR}" + checkpath --directory --owner puppet:puppet --mode 750 ${PUPPET_LOG_DIR} + checkpath --file --owner puppet:puppet --mode 640 "${PUPPET_LOG_DIR}/masterhttp.log" +} + +reload() { + ebegin "Reloading $RC_SVCNAME" + start-stop-daemon --signal SIGHUP --pidfile "${pidfile}" + eend $? +} diff --git a/app-admin/puppet/files/puppetmaster.init-r1 b/app-admin/puppet/files/puppetmaster.init-r1 new file mode 100644 index 000000000000..f665991b81a6 --- /dev/null +++ b/app-admin/puppet/files/puppetmaster.init-r1 @@ -0,0 +1,30 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +if [ "${SVCNAME}" = "puppetmaster" ] ; then + PUPPETMASTER_PID="master" +else + PUPPETMASTER_PID="${SVCNAME#*.}" +fi +PUPPETMASTER_PID_DIR="${PUPPETMASTER_PID_DIR:-/var/run/puppet}" +pidfile="${PUPPETMASTER_PID_DIR}/${PUPPETMASTER_PID}.pid" +PUPPET_LOG_DIR="/var/log/puppet" + +command_args="master --pidfile ${pidfile} ${PUPPETMASTER_EXTRA_OPTS}" +if [ -n "${PUPPETMASTER_PORT}" ] ; then + command_args="${command_args} --masterport ${PUPPETMASTER_PORT}" +fi + +command="/usr/bin/puppet" + +depend() { + need localmount + use dns logger slapd netmount nfsmount +} + +start_pre() { + checkpath --directory --owner puppet:puppet "${PUPPETMASTER_PID_DIR}" + checkpath --directory --owner puppet:puppet --mode 750 ${PUPPET_LOG_DIR} + checkpath --file --owner puppet:puppet --mode 640 "${PUPPET_LOG_DIR}/masterhttp.log" +} diff --git a/app-admin/puppet/files/tmpfiles.d b/app-admin/puppet/files/tmpfiles.d new file mode 100644 index 000000000000..cd33231df7f7 --- /dev/null +++ b/app-admin/puppet/files/tmpfiles.d @@ -0,0 +1 @@ +D /var/run/puppet 0755 puppet puppet - diff --git a/app-admin/puppet/metadata.xml b/app-admin/puppet/metadata.xml new file mode 100644 index 000000000000..93a305eeb2e8 --- /dev/null +++ b/app-admin/puppet/metadata.xml @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>prometheanfire@gentoo.org</email> + </maintainer> + <herd>sysadmin</herd> + <herd>ruby</herd> + <longdescription lang="en"> + Centralised configuration management for networks + Puppet lets you centrally manage every important aspect of your system + using a cross-platform specification language that manages all the + separate elements normally aggregated in different files, like users, + cron jobs, and hosts, along with obviously discrete elements like + packages, services, and files. + + Puppet's simple declarative specification language provides powerful + classing abilities for drawing out the similarities between hosts while + allowing them to be as specific as necessary, and it handles dependency + and prerequisite relationships between objects clearly and explicitly. + </longdescription> + <use> +<!-- <flag name='puppetdb'>Enable puppetdb support</flag> --> + <flag name='augeas'>Enable augeas support</flag> + <flag name='diff'>Enable diff support</flag> + <flag name='rrdtool'>Enable rrdtool support</flag> + <flag name='shadow'>Enable shadow support</flag> + </use> +</pkgmetadata> diff --git a/app-admin/puppet/puppet-3.7.3-r1.ebuild b/app-admin/puppet/puppet-3.7.3-r1.ebuild new file mode 100644 index 000000000000..7988c9f31e74 --- /dev/null +++ b/app-admin/puppet/puppet-3.7.3-r1.ebuild @@ -0,0 +1,189 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +USE_RUBY="ruby19 ruby20" + +RUBY_FAKEGEM_RECIPE_TEST="rspec" + +inherit elisp-common xemacs-elisp-common eutils user ruby-fakegem versionator + +DESCRIPTION="A system automation and configuration management software" +HOMEPAGE="http://puppetlabs.com/" +SRC_URI="http://downloads.puppetlabs.com/puppet/${P}.tar.gz" + +LICENSE="Apache-2.0 GPL-2" +SLOT="0" +KEYWORDS="amd64 hppa ppc sparc x86" +IUSE="augeas diff doc emacs ldap minimal rrdtool selinux shadow sqlite vim-syntax xemacs" + +ruby_add_rdepend " + dev-ruby/hiera + >=dev-ruby/rgen-0.6.5 =dev-ruby/rgen-0.6* + >=dev-ruby/facter-1.6.2 <dev-ruby/facter-3 + dev-ruby/json + augeas? ( dev-ruby/ruby-augeas ) + diff? ( dev-ruby/diff-lcs ) + doc? ( dev-ruby/rdoc ) + ldap? ( dev-ruby/ruby-ldap ) + shadow? ( dev-ruby/ruby-shadow ) + sqlite? ( dev-ruby/sqlite3 ) + virtual/ruby-ssl" + +DEPEND="${DEPEND} + ruby_targets_ruby19? ( dev-lang/ruby:1.9[yaml] ) + emacs? ( virtual/emacs ) + xemacs? ( app-editors/xemacs )" +RDEPEND="${RDEPEND} + ruby_targets_ruby19? ( dev-lang/ruby:1.9[yaml] ) + rrdtool? ( >=net-analyzer/rrdtool-1.2.23[ruby] ) + selinux? ( + sys-libs/libselinux[ruby] + sec-policy/selinux-puppet + ) + vim-syntax? ( >=app-vim/puppet-syntax-3.0.1 ) + >=app-portage/eix-0.18.0" + +SITEFILE="50${PN}-mode-gentoo.el" + +pkg_setup() { + enewgroup puppet + enewuser puppet -1 -1 /var/lib/puppet puppet +} + +all_ruby_prepare() { + # Avoid spec that require unpackaged json-schema. + rm spec/lib/matchers/json.rb $( grep -Rl matchers/json spec) || die + + # Avoid Rails specs to avoid this dependency and because they + # currently fail against Rails 4.1. + find spec -type f -name '*rails*' -o -name '*active_record*' | xargs rm || die + rm -r spec/unit/rails || die + rm spec/unit/parser/collector_spec.rb || die + + # Avoid specs that can only run in the puppet.git repository. This + # should be narrowed down to the specific specs. + rm spec/integration/parser/compiler_spec.rb spec/integration/parser/future_compiler_spec.rb || die + + # Avoid failing spec that need further investigation. + rm spec/unit/module_tool/metadata_spec.rb || die +} + +all_ruby_compile() { + if use emacs ; then + elisp-compile ext/emacs/puppet-mode.el + fi + + if use xemacs ; then + # Create a separate version for xemacs to be able to install + # emacs and xemacs in parallel. + mkdir ext/xemacs + cp ext/emacs/* ext/xemacs/ + xemacs-elisp-compile ext/xemacs/puppet-mode.el + fi +} + +each_ruby_install() { + each_fakegem_install + #${RUBY} install.rb --destdir="${D}" install || die +} + +all_ruby_install() { + all_fakegem_install + + #systemd stuffs + insinto /usr/lib/systemd/system + doins "${WORKDIR}/all/${P}/ext/systemd/puppet.service" + insinto /usr/lib/tmpfiles.d + newins "${FILESDIR}/tmpfiles.d" "puppet.conf" + + newinitd "${FILESDIR}"/puppet.init-r1 puppet + + # Initial configuration files + insinto /etc/puppet + + # Location of log and data files + keepdir /var/log/puppet + fowners -R puppet:puppet /var/log/puppet + + if use minimal ; then + rm "${ED}/etc/puppet/auth.conf" + else + insinto /usr/lib/systemd/system + doins "${WORKDIR}/all/${P}/ext/systemd/puppetmaster.service" + newinitd "${FILESDIR}"/puppetmaster.init-r1 puppetmaster + newconfd "${FILESDIR}"/puppetmaster.confd puppetmaster + + insinto /etc/puppet + + keepdir /etc/puppet/manifests + keepdir /etc/puppet/modules + + keepdir /var/lib/puppet/ssl + keepdir /var/lib/puppet/facts + keepdir /var/lib/puppet/files + fowners -R puppet:puppet /var/lib/puppet + fperms 0750 /var/lib/puppet + fi + fperms 0750 /etc/puppet + fowners :puppet /etc/puppet + + if use emacs ; then + elisp-install ${PN} ext/emacs/puppet-mode.el* + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + fi + + if use xemacs ; then + xemacs-elisp-install ${PN} ext/xemacs/puppet-mode.el* + xemacs-elisp-site-file-install "${FILESDIR}/${SITEFILE}" + fi + + if use ldap ; then + insinto /etc/openldap/schema; doins ext/ldap/puppet.schema + fi + + # ext and examples files + for f in $(find ext examples -type f) ; do + docinto "$(dirname ${f})"; dodoc "${f}" + done +} + +pkg_postinst() { + elog + elog "Please, *don't* include the --ask option in EMERGE_EXTRA_OPTS as this could" + elog "cause puppet to hang while installing packages." + elog + elog "Portage Puppet module with Gentoo-specific resources:" + elog "http://forge.puppetlabs.com/gentoo/portage" + elog + + if [ \ + -f "${EPREFIX}/etc/puppet/puppetd.conf" -o \ + -f "${EPREFIX}/etc/puppet/puppetmaster.conf" -o \ + -f "${EPREFIX}/etc/puppet/puppetca.conf" \ + ] ; then + elog + elog "Please remove deprecated config files." + elog " /etc/puppet/puppetca.conf" + elog " /etc/puppet/puppetd.conf" + elog " /etc/puppet/puppetmasterd.conf" + elog + fi + + if [ "$(get_major_version $REPLACING_VERSIONS)" = "2" ]; then + elog + elog "If you're upgrading from 2.x then we strongly suggest you to read:" + elog "http://docs.puppetlabs.com/guides/upgrading.html" + elog + fi + + use emacs && elisp-site-regen + use xemacs && xemacs-elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen + use xemacs && xemacs-elisp-site-regen +} diff --git a/app-admin/puppet/puppet-3.7.4-r2.ebuild b/app-admin/puppet/puppet-3.7.4-r2.ebuild new file mode 100644 index 000000000000..c841755a6ec0 --- /dev/null +++ b/app-admin/puppet/puppet-3.7.4-r2.ebuild @@ -0,0 +1,191 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +USE_RUBY="ruby19 ruby20 ruby21" + +RUBY_FAKEGEM_RECIPE_TEST="rspec" + +inherit elisp-common xemacs-elisp-common eutils user ruby-fakegem versionator + +DESCRIPTION="A system automation and configuration management software" +HOMEPAGE="http://puppetlabs.com/" +SRC_URI="http://downloads.puppetlabs.com/puppet/${P}.tar.gz" + +LICENSE="Apache-2.0 GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86" +IUSE="augeas diff doc emacs ldap minimal rrdtool selinux shadow sqlite vim-syntax xemacs" + +ruby_add_rdepend " + dev-ruby/hiera + >=dev-ruby/rgen-0.6.5 =dev-ruby/rgen-0.6* + >=dev-ruby/facter-1.6.2 <dev-ruby/facter-3 + dev-ruby/json + augeas? ( dev-ruby/ruby-augeas ) + diff? ( dev-ruby/diff-lcs ) + doc? ( dev-ruby/rdoc ) + ldap? ( dev-ruby/ruby-ldap ) + shadow? ( dev-ruby/ruby-shadow ) + sqlite? ( dev-ruby/sqlite3 ) + virtual/ruby-ssl" + +ruby_add_bdepend "test? ( dev-ruby/mocha:0.10 )" + +DEPEND="${DEPEND} + ruby_targets_ruby19? ( dev-lang/ruby:1.9[yaml] ) + emacs? ( virtual/emacs ) + xemacs? ( app-editors/xemacs )" +RDEPEND="${RDEPEND} + ruby_targets_ruby19? ( dev-lang/ruby:1.9[yaml] ) + rrdtool? ( >=net-analyzer/rrdtool-1.2.23[ruby] ) + selinux? ( + sys-libs/libselinux[ruby] + sec-policy/selinux-puppet + ) + vim-syntax? ( >=app-vim/puppet-syntax-3.0.1 ) + >=app-portage/eix-0.18.0" + +SITEFILE="50${PN}-mode-gentoo.el" + +pkg_setup() { + enewgroup puppet + enewuser puppet -1 -1 /var/lib/puppet puppet +} + +all_ruby_prepare() { + # Avoid spec that require unpackaged json-schema. + rm spec/lib/matchers/json.rb $( grep -Rl matchers/json spec) || die + + # Avoid Rails specs to avoid this dependency and because they + # currently fail against Rails 4.1. + find spec -type f -name '*rails*' -o -name '*active_record*' | xargs rm || die + rm -r spec/unit/rails || die + rm spec/unit/parser/collector_spec.rb || die + + # Avoid specs that can only run in the puppet.git repository. This + # should be narrowed down to the specific specs. + rm spec/integration/parser/compiler_spec.rb spec/integration/parser/future_compiler_spec.rb || die + + # Avoid failing spec that need further investigation. + rm spec/unit/module_tool/metadata_spec.rb || die +} + +all_ruby_compile() { + if use emacs ; then + elisp-compile ext/emacs/puppet-mode.el + fi + + if use xemacs ; then + # Create a separate version for xemacs to be able to install + # emacs and xemacs in parallel. + mkdir ext/xemacs + cp ext/emacs/* ext/xemacs/ + xemacs-elisp-compile ext/xemacs/puppet-mode.el + fi +} + +each_ruby_install() { + each_fakegem_install + #${RUBY} install.rb --destdir="${D}" install || die +} + +all_ruby_install() { + all_fakegem_install + + #systemd stuffs + insinto /usr/lib/systemd/system + doins "${WORKDIR}/all/${P}/ext/systemd/puppet.service" + insinto /usr/lib/tmpfiles.d + newins "${FILESDIR}/tmpfiles.d" "puppet.conf" + + newinitd "${FILESDIR}"/puppet.init-r1 puppet + + # Initial configuration files + insinto /etc/puppet + + # Location of log and data files + keepdir /var/log/puppet + fowners -R puppet:puppet /var/log/puppet + + if use minimal ; then + rm "${ED}/etc/puppet/auth.conf" + else + insinto /usr/lib/systemd/system + doins "${WORKDIR}/all/${P}/ext/systemd/puppetmaster.service" + newinitd "${FILESDIR}"/puppetmaster.init-r1 puppetmaster + newconfd "${FILESDIR}"/puppetmaster.confd puppetmaster + + insinto /etc/puppet + + keepdir /etc/puppet/manifests + keepdir /etc/puppet/modules + + keepdir /var/lib/puppet/ssl + keepdir /var/lib/puppet/facts + keepdir /var/lib/puppet/files + fowners -R puppet:puppet /var/lib/puppet + fperms 0750 /var/lib/puppet + fi + fperms 0750 /etc/puppet + fowners :puppet /etc/puppet + + if use emacs ; then + elisp-install ${PN} ext/emacs/puppet-mode.el* + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + fi + + if use xemacs ; then + xemacs-elisp-install ${PN} ext/xemacs/puppet-mode.el* + xemacs-elisp-site-file-install "${FILESDIR}/${SITEFILE}" + fi + + if use ldap ; then + insinto /etc/openldap/schema; doins ext/ldap/puppet.schema + fi + + # ext and examples files + for f in $(find ext examples -type f) ; do + docinto "$(dirname ${f})"; dodoc "${f}" + done +} + +pkg_postinst() { + elog + elog "Please, *don't* include the --ask option in EMERGE_EXTRA_OPTS as this could" + elog "cause puppet to hang while installing packages." + elog + elog "Portage Puppet module with Gentoo-specific resources:" + elog "http://forge.puppetlabs.com/gentoo/portage" + elog + + if [ \ + -f "${EPREFIX}/etc/puppet/puppetd.conf" -o \ + -f "${EPREFIX}/etc/puppet/puppetmaster.conf" -o \ + -f "${EPREFIX}/etc/puppet/puppetca.conf" \ + ] ; then + elog + elog "Please remove deprecated config files." + elog " /etc/puppet/puppetca.conf" + elog " /etc/puppet/puppetd.conf" + elog " /etc/puppet/puppetmasterd.conf" + elog + fi + + if [ "$(get_major_version $REPLACING_VERSIONS)" = "2" ]; then + elog + elog "If you're upgrading from 2.x then we strongly suggest you to read:" + elog "http://docs.puppetlabs.com/guides/upgrading.html" + elog + fi + + use emacs && elisp-site-regen + use xemacs && xemacs-elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen + use xemacs && xemacs-elisp-site-regen +} diff --git a/app-admin/puppet/puppet-3.8.1-r1.ebuild b/app-admin/puppet/puppet-3.8.1-r1.ebuild new file mode 100644 index 000000000000..2618d221f449 --- /dev/null +++ b/app-admin/puppet/puppet-3.8.1-r1.ebuild @@ -0,0 +1,191 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +USE_RUBY="ruby19 ruby20 ruby21" + +RUBY_FAKEGEM_RECIPE_TEST="rspec" + +inherit elisp-common xemacs-elisp-common eutils user ruby-fakegem versionator + +DESCRIPTION="A system automation and configuration management software" +HOMEPAGE="http://puppetlabs.com/" +SRC_URI="http://downloads.puppetlabs.com/puppet/${P}.tar.gz" + +LICENSE="Apache-2.0 GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86" +IUSE="augeas diff doc emacs ldap minimal rrdtool selinux shadow sqlite vim-syntax xemacs" + +ruby_add_rdepend " + dev-ruby/hiera + >=dev-ruby/rgen-0.7.0 + >=dev-ruby/facter-1.6.2 <dev-ruby/facter-3 + dev-ruby/json + augeas? ( dev-ruby/ruby-augeas ) + diff? ( dev-ruby/diff-lcs ) + doc? ( dev-ruby/rdoc ) + ldap? ( dev-ruby/ruby-ldap ) + shadow? ( dev-ruby/ruby-shadow ) + sqlite? ( dev-ruby/sqlite3 ) + virtual/ruby-ssl" + +ruby_add_bdepend "test? ( dev-ruby/mocha )" + +DEPEND="${DEPEND} + ruby_targets_ruby19? ( dev-lang/ruby:1.9[yaml] ) + emacs? ( virtual/emacs ) + xemacs? ( app-editors/xemacs )" +RDEPEND="${RDEPEND} + ruby_targets_ruby19? ( dev-lang/ruby:1.9[yaml] ) + rrdtool? ( >=net-analyzer/rrdtool-1.2.23[ruby] ) + selinux? ( + sys-libs/libselinux[ruby] + sec-policy/selinux-puppet + ) + vim-syntax? ( >=app-vim/puppet-syntax-3.0.1 ) + >=app-portage/eix-0.18.0" + +SITEFILE="50${PN}-mode-gentoo.el" + +pkg_setup() { + enewgroup puppet + enewuser puppet -1 -1 /var/lib/puppet puppet +} + +all_ruby_prepare() { + # Avoid spec that require unpackaged json-schema. + rm spec/lib/matchers/json.rb $( grep -Rl matchers/json spec) || die + + # Avoid Rails specs to avoid this dependency and because they + # currently fail against Rails 4.1. + find spec -type f -name '*rails*' -o -name '*active_record*' | xargs rm || die + rm -r spec/unit/rails || die + rm spec/unit/parser/collector_spec.rb || die + + # Avoid specs that can only run in the puppet.git repository. This + # should be narrowed down to the specific specs. + rm spec/integration/parser/compiler_spec.rb spec/integration/parser/future_compiler_spec.rb || die + + # Avoid failing spec that need further investigation. + rm spec/unit/module_tool/metadata_spec.rb || die +} + +all_ruby_compile() { + if use emacs ; then + elisp-compile ext/emacs/puppet-mode.el + fi + + if use xemacs ; then + # Create a separate version for xemacs to be able to install + # emacs and xemacs in parallel. + mkdir ext/xemacs + cp ext/emacs/* ext/xemacs/ + xemacs-elisp-compile ext/xemacs/puppet-mode.el + fi +} + +each_ruby_install() { + each_fakegem_install + #${RUBY} install.rb --destdir="${D}" install || die +} + +all_ruby_install() { + all_fakegem_install + + #systemd stuffs + insinto /usr/lib/systemd/system + doins "${WORKDIR}/all/${P}/ext/systemd/puppet.service" + insinto /usr/lib/tmpfiles.d + newins "${FILESDIR}/tmpfiles.d" "puppet.conf" + + newinitd "${FILESDIR}"/puppet.init-r1 puppet + + # Initial configuration files + insinto /etc/puppet + + # Location of log and data files + keepdir /var/log/puppet + fowners -R puppet:puppet /var/log/puppet + + if use minimal ; then + rm "${ED}/etc/puppet/auth.conf" + else + insinto /usr/lib/systemd/system + doins "${WORKDIR}/all/${P}/ext/systemd/puppetmaster.service" + newinitd "${FILESDIR}"/puppetmaster.init-r1 puppetmaster + newconfd "${FILESDIR}"/puppetmaster.confd puppetmaster + + insinto /etc/puppet + + keepdir /etc/puppet/manifests + keepdir /etc/puppet/modules + + keepdir /var/lib/puppet/ssl + keepdir /var/lib/puppet/facts + keepdir /var/lib/puppet/files + fowners -R puppet:puppet /var/lib/puppet + fperms 0750 /var/lib/puppet + fi + fperms 0750 /etc/puppet + fowners :puppet /etc/puppet + + if use emacs ; then + elisp-install ${PN} ext/emacs/puppet-mode.el* + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + fi + + if use xemacs ; then + xemacs-elisp-install ${PN} ext/xemacs/puppet-mode.el* + xemacs-elisp-site-file-install "${FILESDIR}/${SITEFILE}" + fi + + if use ldap ; then + insinto /etc/openldap/schema; doins ext/ldap/puppet.schema + fi + + # ext and examples files + for f in $(find ext examples -type f) ; do + docinto "$(dirname ${f})"; dodoc "${f}" + done +} + +pkg_postinst() { + elog + elog "Please, *don't* include the --ask option in EMERGE_EXTRA_OPTS as this could" + elog "cause puppet to hang while installing packages." + elog + elog "Portage Puppet module with Gentoo-specific resources:" + elog "http://forge.puppetlabs.com/gentoo/portage" + elog + + if [ \ + -f "${EPREFIX}/etc/puppet/puppetd.conf" -o \ + -f "${EPREFIX}/etc/puppet/puppetmaster.conf" -o \ + -f "${EPREFIX}/etc/puppet/puppetca.conf" \ + ] ; then + elog + elog "Please remove deprecated config files." + elog " /etc/puppet/puppetca.conf" + elog " /etc/puppet/puppetd.conf" + elog " /etc/puppet/puppetmasterd.conf" + elog + fi + + if [ "$(get_major_version $REPLACING_VERSIONS)" = "2" ]; then + elog + elog "If you're upgrading from 2.x then we strongly suggest you to read:" + elog "http://docs.puppetlabs.com/guides/upgrading.html" + elog + fi + + use emacs && elisp-site-regen + use xemacs && xemacs-elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen + use xemacs && xemacs-elisp-site-regen +} diff --git a/app-admin/puppet/puppet-3.8.2.ebuild b/app-admin/puppet/puppet-3.8.2.ebuild new file mode 100644 index 000000000000..2618d221f449 --- /dev/null +++ b/app-admin/puppet/puppet-3.8.2.ebuild @@ -0,0 +1,191 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +USE_RUBY="ruby19 ruby20 ruby21" + +RUBY_FAKEGEM_RECIPE_TEST="rspec" + +inherit elisp-common xemacs-elisp-common eutils user ruby-fakegem versionator + +DESCRIPTION="A system automation and configuration management software" +HOMEPAGE="http://puppetlabs.com/" +SRC_URI="http://downloads.puppetlabs.com/puppet/${P}.tar.gz" + +LICENSE="Apache-2.0 GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86" +IUSE="augeas diff doc emacs ldap minimal rrdtool selinux shadow sqlite vim-syntax xemacs" + +ruby_add_rdepend " + dev-ruby/hiera + >=dev-ruby/rgen-0.7.0 + >=dev-ruby/facter-1.6.2 <dev-ruby/facter-3 + dev-ruby/json + augeas? ( dev-ruby/ruby-augeas ) + diff? ( dev-ruby/diff-lcs ) + doc? ( dev-ruby/rdoc ) + ldap? ( dev-ruby/ruby-ldap ) + shadow? ( dev-ruby/ruby-shadow ) + sqlite? ( dev-ruby/sqlite3 ) + virtual/ruby-ssl" + +ruby_add_bdepend "test? ( dev-ruby/mocha )" + +DEPEND="${DEPEND} + ruby_targets_ruby19? ( dev-lang/ruby:1.9[yaml] ) + emacs? ( virtual/emacs ) + xemacs? ( app-editors/xemacs )" +RDEPEND="${RDEPEND} + ruby_targets_ruby19? ( dev-lang/ruby:1.9[yaml] ) + rrdtool? ( >=net-analyzer/rrdtool-1.2.23[ruby] ) + selinux? ( + sys-libs/libselinux[ruby] + sec-policy/selinux-puppet + ) + vim-syntax? ( >=app-vim/puppet-syntax-3.0.1 ) + >=app-portage/eix-0.18.0" + +SITEFILE="50${PN}-mode-gentoo.el" + +pkg_setup() { + enewgroup puppet + enewuser puppet -1 -1 /var/lib/puppet puppet +} + +all_ruby_prepare() { + # Avoid spec that require unpackaged json-schema. + rm spec/lib/matchers/json.rb $( grep -Rl matchers/json spec) || die + + # Avoid Rails specs to avoid this dependency and because they + # currently fail against Rails 4.1. + find spec -type f -name '*rails*' -o -name '*active_record*' | xargs rm || die + rm -r spec/unit/rails || die + rm spec/unit/parser/collector_spec.rb || die + + # Avoid specs that can only run in the puppet.git repository. This + # should be narrowed down to the specific specs. + rm spec/integration/parser/compiler_spec.rb spec/integration/parser/future_compiler_spec.rb || die + + # Avoid failing spec that need further investigation. + rm spec/unit/module_tool/metadata_spec.rb || die +} + +all_ruby_compile() { + if use emacs ; then + elisp-compile ext/emacs/puppet-mode.el + fi + + if use xemacs ; then + # Create a separate version for xemacs to be able to install + # emacs and xemacs in parallel. + mkdir ext/xemacs + cp ext/emacs/* ext/xemacs/ + xemacs-elisp-compile ext/xemacs/puppet-mode.el + fi +} + +each_ruby_install() { + each_fakegem_install + #${RUBY} install.rb --destdir="${D}" install || die +} + +all_ruby_install() { + all_fakegem_install + + #systemd stuffs + insinto /usr/lib/systemd/system + doins "${WORKDIR}/all/${P}/ext/systemd/puppet.service" + insinto /usr/lib/tmpfiles.d + newins "${FILESDIR}/tmpfiles.d" "puppet.conf" + + newinitd "${FILESDIR}"/puppet.init-r1 puppet + + # Initial configuration files + insinto /etc/puppet + + # Location of log and data files + keepdir /var/log/puppet + fowners -R puppet:puppet /var/log/puppet + + if use minimal ; then + rm "${ED}/etc/puppet/auth.conf" + else + insinto /usr/lib/systemd/system + doins "${WORKDIR}/all/${P}/ext/systemd/puppetmaster.service" + newinitd "${FILESDIR}"/puppetmaster.init-r1 puppetmaster + newconfd "${FILESDIR}"/puppetmaster.confd puppetmaster + + insinto /etc/puppet + + keepdir /etc/puppet/manifests + keepdir /etc/puppet/modules + + keepdir /var/lib/puppet/ssl + keepdir /var/lib/puppet/facts + keepdir /var/lib/puppet/files + fowners -R puppet:puppet /var/lib/puppet + fperms 0750 /var/lib/puppet + fi + fperms 0750 /etc/puppet + fowners :puppet /etc/puppet + + if use emacs ; then + elisp-install ${PN} ext/emacs/puppet-mode.el* + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + fi + + if use xemacs ; then + xemacs-elisp-install ${PN} ext/xemacs/puppet-mode.el* + xemacs-elisp-site-file-install "${FILESDIR}/${SITEFILE}" + fi + + if use ldap ; then + insinto /etc/openldap/schema; doins ext/ldap/puppet.schema + fi + + # ext and examples files + for f in $(find ext examples -type f) ; do + docinto "$(dirname ${f})"; dodoc "${f}" + done +} + +pkg_postinst() { + elog + elog "Please, *don't* include the --ask option in EMERGE_EXTRA_OPTS as this could" + elog "cause puppet to hang while installing packages." + elog + elog "Portage Puppet module with Gentoo-specific resources:" + elog "http://forge.puppetlabs.com/gentoo/portage" + elog + + if [ \ + -f "${EPREFIX}/etc/puppet/puppetd.conf" -o \ + -f "${EPREFIX}/etc/puppet/puppetmaster.conf" -o \ + -f "${EPREFIX}/etc/puppet/puppetca.conf" \ + ] ; then + elog + elog "Please remove deprecated config files." + elog " /etc/puppet/puppetca.conf" + elog " /etc/puppet/puppetd.conf" + elog " /etc/puppet/puppetmasterd.conf" + elog + fi + + if [ "$(get_major_version $REPLACING_VERSIONS)" = "2" ]; then + elog + elog "If you're upgrading from 2.x then we strongly suggest you to read:" + elog "http://docs.puppetlabs.com/guides/upgrading.html" + elog + fi + + use emacs && elisp-site-regen + use xemacs && xemacs-elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen + use xemacs && xemacs-elisp-site-regen +} diff --git a/app-admin/puppet/puppet-4.0.0-r2.ebuild b/app-admin/puppet/puppet-4.0.0-r2.ebuild new file mode 100644 index 000000000000..fbf97dd07b00 --- /dev/null +++ b/app-admin/puppet/puppet-4.0.0-r2.ebuild @@ -0,0 +1,163 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +USE_RUBY="ruby20 ruby21" + +RUBY_FAKEGEM_RECIPE_TEST="rspec" + +inherit elisp-common xemacs-elisp-common eutils user ruby-fakegem versionator + +DESCRIPTION="A system automation and configuration management software." +HOMEPAGE="http://puppetlabs.com/" +SRC_URI="http://downloads.puppetlabs.com/puppet/${P}.tar.gz" + +LICENSE="Apache-2.0 GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86" +IUSE="augeas diff doc emacs ldap rrdtool selinux shadow sqlite vim-syntax xemacs" + +ruby_add_rdepend " + dev-ruby/hiera + >=dev-ruby/rgen-0.6.5 =dev-ruby/rgen-0.6* + >=dev-ruby/facter-1.6.2 <dev-ruby/facter-3 + dev-ruby/json + augeas? ( dev-ruby/ruby-augeas ) + diff? ( dev-ruby/diff-lcs ) + doc? ( dev-ruby/rdoc ) + ldap? ( dev-ruby/ruby-ldap ) + shadow? ( dev-ruby/ruby-shadow ) + sqlite? ( dev-ruby/sqlite3 ) + virtual/ruby-ssl" + +DEPEND="${DEPEND} + dev-lang/ruby + emacs? ( virtual/emacs ) + xemacs? ( app-editors/xemacs )" +RDEPEND="${RDEPEND} + rrdtool? ( >=net-analyzer/rrdtool-1.2.23[ruby] ) + selinux? ( + sys-libs/libselinux[ruby] + sec-policy/selinux-puppet + ) + vim-syntax? ( >=app-vim/puppet-syntax-3.0.1 ) + >=app-portage/eix-0.18.0" + +SITEFILE="50${PN}-mode-gentoo.el" + +pkg_setup() { + enewgroup puppet + enewuser puppet -1 -1 /var/lib/puppet puppet +} + +all_ruby_prepare() { + # Avoid spec that require unpackaged json-schema. + rm spec/lib/matchers/json.rb $( grep -Rl matchers/json spec) || die + + # Avoid specs that can only run in the puppet.git repository. This + # should be narrowed down to the specific specs. + rm spec/integration/parser/compiler_spec.rb || die + + # Avoid failing spec that need further investigation. + rm spec/unit/module_tool/metadata_spec.rb || die +} + +all_ruby_compile() { + if use emacs ; then + elisp-compile ext/emacs/puppet-mode.el + fi + + if use xemacs ; then + # Create a separate version for xemacs to be able to install + # emacs and xemacs in parallel. + mkdir ext/xemacs + cp ext/emacs/* ext/xemacs/ + xemacs-elisp-compile ext/xemacs/puppet-mode.el + fi +} + +each_ruby_install() { + each_fakegem_install +} + +all_ruby_install() { + all_fakegem_install + + # systemd stuffs + insinto /usr/lib/systemd/system + doins "${WORKDIR}/all/${P}/ext/systemd/puppet.service" + doins "${WORKDIR}/all/${P}/ext/systemd/puppetmaster.service" + + # tmpfiles stuff + insinto /usr/lib/tmpfiles.d + newins "${FILESDIR}/tmpfiles.d" "puppet.conf" + + # openrc init stuff + newinitd "${FILESDIR}"/puppet.init-4.x puppet + newinitd "${FILESDIR}"/puppetmaster.init-4.x puppetmaster + newconfd "${FILESDIR}"/puppetmaster.confd puppetmaster + + keepdir /etc/puppetlabs/puppet/ssl + + keepdir /var/lib/puppet/facts + keepdir /var/lib/puppet/files + fowners -R puppet:puppet /var/lib/puppet + + fperms 0750 /var/lib/puppet + + fperms 0750 /etc/puppetlabs + fperms 0750 /etc/puppetlabs/puppet + fperms 0750 /etc/puppetlabs/puppet/ssl + fowners -R :puppet /etc/puppetlabs + fowners -R :puppet /var/lib/puppet + + if use emacs ; then + elisp-install ${PN} ext/emacs/puppet-mode.el* + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + fi + + if use xemacs ; then + xemacs-elisp-install ${PN} ext/xemacs/puppet-mode.el* + xemacs-elisp-site-file-install "${FILESDIR}/${SITEFILE}" + fi + + if use ldap ; then + insinto /etc/openldap/schema; doins ext/ldap/puppet.schema + fi + + # ext and examples files + for f in $(find ext examples -type f) ; do + docinto "$(dirname ${f})"; dodoc "${f}" + done +} + +pkg_postinst() { + elog + elog "Please, *don't* include the --ask option in EMERGE_EXTRA_OPTS as this could" + elog "cause puppet to hang while installing packages." + elog + elog "Portage Puppet module with Gentoo-specific resources:" + elog "http://forge.puppetlabs.com/gentoo/portage" + elog + + if [ "$(get_major_version $REPLACING_VERSIONS)" = "3" ]; then + elog + elog "If you're upgrading from 3.x then please move everything in /etc/puppet to" + elog "/etc/puppetlabs/puppet" + elog "Also, puppet now uses config directories for modules and manifests." + elog "See https://docs.puppetlabs.com/puppet/4.0/reference/upgrade_agent.html" + elog "and https://docs.puppetlabs.com/puppet/4.0/reference/upgrade_server.html" + elog "for more information." + elog + fi + + use emacs && elisp-site-regen + use xemacs && xemacs-elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen + use xemacs && xemacs-elisp-site-regen +} diff --git a/app-admin/puppet/puppet-4.1.0.ebuild b/app-admin/puppet/puppet-4.1.0.ebuild new file mode 100644 index 000000000000..fbf97dd07b00 --- /dev/null +++ b/app-admin/puppet/puppet-4.1.0.ebuild @@ -0,0 +1,163 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +USE_RUBY="ruby20 ruby21" + +RUBY_FAKEGEM_RECIPE_TEST="rspec" + +inherit elisp-common xemacs-elisp-common eutils user ruby-fakegem versionator + +DESCRIPTION="A system automation and configuration management software." +HOMEPAGE="http://puppetlabs.com/" +SRC_URI="http://downloads.puppetlabs.com/puppet/${P}.tar.gz" + +LICENSE="Apache-2.0 GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86" +IUSE="augeas diff doc emacs ldap rrdtool selinux shadow sqlite vim-syntax xemacs" + +ruby_add_rdepend " + dev-ruby/hiera + >=dev-ruby/rgen-0.6.5 =dev-ruby/rgen-0.6* + >=dev-ruby/facter-1.6.2 <dev-ruby/facter-3 + dev-ruby/json + augeas? ( dev-ruby/ruby-augeas ) + diff? ( dev-ruby/diff-lcs ) + doc? ( dev-ruby/rdoc ) + ldap? ( dev-ruby/ruby-ldap ) + shadow? ( dev-ruby/ruby-shadow ) + sqlite? ( dev-ruby/sqlite3 ) + virtual/ruby-ssl" + +DEPEND="${DEPEND} + dev-lang/ruby + emacs? ( virtual/emacs ) + xemacs? ( app-editors/xemacs )" +RDEPEND="${RDEPEND} + rrdtool? ( >=net-analyzer/rrdtool-1.2.23[ruby] ) + selinux? ( + sys-libs/libselinux[ruby] + sec-policy/selinux-puppet + ) + vim-syntax? ( >=app-vim/puppet-syntax-3.0.1 ) + >=app-portage/eix-0.18.0" + +SITEFILE="50${PN}-mode-gentoo.el" + +pkg_setup() { + enewgroup puppet + enewuser puppet -1 -1 /var/lib/puppet puppet +} + +all_ruby_prepare() { + # Avoid spec that require unpackaged json-schema. + rm spec/lib/matchers/json.rb $( grep -Rl matchers/json spec) || die + + # Avoid specs that can only run in the puppet.git repository. This + # should be narrowed down to the specific specs. + rm spec/integration/parser/compiler_spec.rb || die + + # Avoid failing spec that need further investigation. + rm spec/unit/module_tool/metadata_spec.rb || die +} + +all_ruby_compile() { + if use emacs ; then + elisp-compile ext/emacs/puppet-mode.el + fi + + if use xemacs ; then + # Create a separate version for xemacs to be able to install + # emacs and xemacs in parallel. + mkdir ext/xemacs + cp ext/emacs/* ext/xemacs/ + xemacs-elisp-compile ext/xemacs/puppet-mode.el + fi +} + +each_ruby_install() { + each_fakegem_install +} + +all_ruby_install() { + all_fakegem_install + + # systemd stuffs + insinto /usr/lib/systemd/system + doins "${WORKDIR}/all/${P}/ext/systemd/puppet.service" + doins "${WORKDIR}/all/${P}/ext/systemd/puppetmaster.service" + + # tmpfiles stuff + insinto /usr/lib/tmpfiles.d + newins "${FILESDIR}/tmpfiles.d" "puppet.conf" + + # openrc init stuff + newinitd "${FILESDIR}"/puppet.init-4.x puppet + newinitd "${FILESDIR}"/puppetmaster.init-4.x puppetmaster + newconfd "${FILESDIR}"/puppetmaster.confd puppetmaster + + keepdir /etc/puppetlabs/puppet/ssl + + keepdir /var/lib/puppet/facts + keepdir /var/lib/puppet/files + fowners -R puppet:puppet /var/lib/puppet + + fperms 0750 /var/lib/puppet + + fperms 0750 /etc/puppetlabs + fperms 0750 /etc/puppetlabs/puppet + fperms 0750 /etc/puppetlabs/puppet/ssl + fowners -R :puppet /etc/puppetlabs + fowners -R :puppet /var/lib/puppet + + if use emacs ; then + elisp-install ${PN} ext/emacs/puppet-mode.el* + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + fi + + if use xemacs ; then + xemacs-elisp-install ${PN} ext/xemacs/puppet-mode.el* + xemacs-elisp-site-file-install "${FILESDIR}/${SITEFILE}" + fi + + if use ldap ; then + insinto /etc/openldap/schema; doins ext/ldap/puppet.schema + fi + + # ext and examples files + for f in $(find ext examples -type f) ; do + docinto "$(dirname ${f})"; dodoc "${f}" + done +} + +pkg_postinst() { + elog + elog "Please, *don't* include the --ask option in EMERGE_EXTRA_OPTS as this could" + elog "cause puppet to hang while installing packages." + elog + elog "Portage Puppet module with Gentoo-specific resources:" + elog "http://forge.puppetlabs.com/gentoo/portage" + elog + + if [ "$(get_major_version $REPLACING_VERSIONS)" = "3" ]; then + elog + elog "If you're upgrading from 3.x then please move everything in /etc/puppet to" + elog "/etc/puppetlabs/puppet" + elog "Also, puppet now uses config directories for modules and manifests." + elog "See https://docs.puppetlabs.com/puppet/4.0/reference/upgrade_agent.html" + elog "and https://docs.puppetlabs.com/puppet/4.0/reference/upgrade_server.html" + elog "for more information." + elog + fi + + use emacs && elisp-site-regen + use xemacs && xemacs-elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen + use xemacs && xemacs-elisp-site-regen +} diff --git a/app-admin/puppet/puppet-4.2.1.ebuild b/app-admin/puppet/puppet-4.2.1.ebuild new file mode 100644 index 000000000000..68a38701208e --- /dev/null +++ b/app-admin/puppet/puppet-4.2.1.ebuild @@ -0,0 +1,175 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +USE_RUBY="ruby20 ruby21" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +inherit elisp-common xemacs-elisp-common eutils user ruby-fakegem versionator + +DESCRIPTION="A system automation and configuration management software." +HOMEPAGE="http://puppetlabs.com/" +SRC_URI="http://downloads.puppetlabs.com/puppet/${P}.tar.gz" + +LICENSE="Apache-2.0 GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ppc ~x86" +IUSE="augeas diff doc emacs ldap rrdtool selinux shadow sqlite vim-syntax xemacs" +RESTRICT="test" + +ruby_add_rdepend " + dev-ruby/hiera + >=dev-ruby/rgen-0.6.5 =dev-ruby/rgen-0.6* + dev-ruby/json + >=dev-ruby/facter-3.0.0 + augeas? ( dev-ruby/ruby-augeas ) + diff? ( dev-ruby/diff-lcs ) + doc? ( dev-ruby/rdoc ) + ldap? ( dev-ruby/ruby-ldap ) + shadow? ( dev-ruby/ruby-shadow ) + sqlite? ( dev-ruby/sqlite3 ) + virtual/ruby-ssl" + +ruby_add_bdepend " + test? ( + dev-ruby/mocha + dev-ruby/rack + dev-ruby/rspec-its + )" +# this should go in the above lists, but isn't because of test deps not being keyworded +# dev-ruby/rspec-collection_matchers + +DEPEND+=" ${DEPEND} + emacs? ( virtual/emacs ) + xemacs? ( app-editors/xemacs )" +RDEPEND+=" ${RDEPEND} + rrdtool? ( >=net-analyzer/rrdtool-1.2.23[ruby] ) + selinux? ( + sys-libs/libselinux[ruby] + sec-policy/selinux-puppet + ) + vim-syntax? ( >=app-vim/puppet-syntax-3.0.1 ) + >=app-portage/eix-0.18.0" + +SITEFILE="50${PN}-mode-gentoo.el" + +pkg_setup() { + enewgroup puppet + enewuser puppet -1 -1 /var/lib/puppet puppet +} + +all_ruby_prepare() { + # Avoid spec that require unpackaged json-schema. + rm spec/lib/matchers/json.rb $( grep -Rl matchers/json spec) || die + + # can't be run within portage. + epatch "${FILESDIR}/puppet-fix-tests-4.x.patch" + + # Avoid specs that can only run in the puppet.git repository. This + # should be narrowed down to the specific specs. + rm spec/integration/parser/compiler_spec.rb || die + + # Avoid failing spec that need further investigation. + rm spec/unit/module_tool/metadata_spec.rb || die +} + +all_ruby_compile() { + if use emacs ; then + elisp-compile ext/emacs/puppet-mode.el + fi + + if use xemacs ; then + # Create a separate version for xemacs to be able to install + # emacs and xemacs in parallel. + mkdir ext/xemacs + cp ext/emacs/* ext/xemacs/ + xemacs-elisp-compile ext/xemacs/puppet-mode.el + fi +} + +each_ruby_install() { + each_fakegem_install +# dosym "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${P}" "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${PN}" +} + +all_ruby_install() { + all_fakegem_install + + # systemd stuffs + insinto /usr/lib/systemd/system + doins "${WORKDIR}/all/${P}/ext/systemd/puppet.service" + + # tmpfiles stuff + insinto /usr/lib/tmpfiles.d + newins "${FILESDIR}/tmpfiles.d" "puppet.conf" + + # openrc init stuff + newinitd "${FILESDIR}"/puppet.init-4.x puppet + newinitd "${FILESDIR}"/puppetmaster.init-4.x puppetmaster + newconfd "${FILESDIR}"/puppetmaster.confd puppetmaster + + keepdir /etc/puppetlabs/puppet/ssl + + keepdir /var/lib/puppet/facts + keepdir /var/lib/puppet/files + fowners -R puppet:puppet /var/lib/puppet + + fperms 0750 /var/lib/puppet + + fperms 0750 /etc/puppetlabs + fperms 0750 /etc/puppetlabs/puppet + fperms 0750 /etc/puppetlabs/puppet/ssl + fowners -R :puppet /etc/puppetlabs + fowners -R :puppet /var/lib/puppet + + if use emacs ; then + elisp-install ${PN} ext/emacs/puppet-mode.el* + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + fi + + if use xemacs ; then + xemacs-elisp-install ${PN} ext/xemacs/puppet-mode.el* + xemacs-elisp-site-file-install "${FILESDIR}/${SITEFILE}" + fi + + if use ldap ; then + insinto /etc/openldap/schema; doins ext/ldap/puppet.schema + fi + + # ext and examples files + for f in $(find ext examples -type f) ; do + docinto "$(dirname ${f})"; dodoc "${f}" + done +} + +pkg_postinst() { + elog + elog "Please, *don't* include the --ask option in EMERGE_EXTRA_OPTS as this could" + elog "cause puppet to hang while installing packages." + elog + elog "Portage Puppet module with Gentoo-specific resources:" + elog "http://forge.puppetlabs.com/gentoo/portage" + elog + + if [ "$(get_major_version $REPLACING_VERSIONS)" = "3" ]; then + elog + elog "If you're upgrading from 3.x then please move everything in /etc/puppet to" + elog "/etc/puppetlabs/puppet" + elog "Also, puppet now uses config directories for modules and manifests." + elog "See https://docs.puppetlabs.com/puppet/4.0/reference/upgrade_agent.html" + elog "and https://docs.puppetlabs.com/puppet/4.0/reference/upgrade_server.html" + elog "for more information." + elog + fi + + use emacs && elisp-site-regen + use xemacs && xemacs-elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen + use xemacs && xemacs-elisp-site-regen +} diff --git a/app-admin/puppetdb/Manifest b/app-admin/puppetdb/Manifest new file mode 100644 index 000000000000..9ba0d27912ce --- /dev/null +++ b/app-admin/puppetdb/Manifest @@ -0,0 +1,2 @@ +DIST puppetdb-3.0.1.tar.gz 24693952 SHA256 b5e86d36845c62d75c078816cffd5d38d97f014da8886506819b21a6c2719366 SHA512 00960de13270a8063de1845f7f0c42a3fa4bdec10ab2b8f66ce0dba27acda1b78974c57c0f3c6e2c09187f63e85d799b94f95de563bcbc179e9d692470a1e902 WHIRLPOOL ec136a91b2712b9249defaff6ea24b6f1ed917e519850515d8c0b995c5dcbc049550b2ac9efbe585c197a5747edcdb10e490a016de2067b593c833e02d8a7426 +DIST puppetdb-3.0.2.tar.gz 24698063 SHA256 976ef25948b206ad9a0abfee1ac8a4e737e87b7d8b26c3af24bc3237d1dd757b SHA512 9bf8ed30f2156bd7e544899d0e135aeaa0a30b3df76245878ce27f3a195bb4a6356a143b65a7ba1bb8c8382e64d1d616131ffe7dbeea15d2d1b5bdd34a93fc8e WHIRLPOOL e55c7405b814ab39e7e58941c3c71ea31f7ebd42bb23de2d98f722a99382f50999fa83105b3d730d49188d137aee1bdf7ed63fc30f8a879809b6e4762ba00873 diff --git a/app-admin/puppetdb/files/puppetdb.initd b/app-admin/puppetdb/files/puppetdb.initd new file mode 100644 index 000000000000..032c8852cf1b --- /dev/null +++ b/app-admin/puppetdb/files/puppetdb.initd @@ -0,0 +1,65 @@ +#!/sbin/runscript +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +extra_commands="checkconfig" + +LOGDIR="/var/log/puppetlabs/puppetdb" +RUNDIR="/run/puppetlabs/puppetdb" + +checkconfig() { + if [ ! -x $JAVA_BIN ]; then + eerror "Missing JAVA_BIN." + eend 1 + fi + if [ ! -d $INSTALL_DIR ]; then + eerror "Missing INSTALL_DIR." + eend 1 + fi + if [ ! -a $BOOTSTRAP_CONFIG ]; then + eerror "Missing BOOTSTRAP_CONFIG." + eend 1 + fi + if [ ! -e $CONFIG ]; then + eerror "Missing CONFIG." + eend 1 + fi + if [ ! -n $USER ]; then + eerror "Missing USER." + eend 1 + fi + if [ ! -n $GROUP ]; then + eerror "Missing GROUP." + eend 1 + fi + + checkpath -d -m 0755 "${LOGDIR%/*}" + checkpath -d -m 0755 "${RUNDIR%/*}" + checkpath -d -m 0700 -o "${USER}:${GROUP}" "${LOGDIR}" + checkpath -d -m 0755 -o "${USER}:${GROUP}" "${RUNDIR}" + + JAVA_ARGS="${JAVA_ARGS} -cp '${INSTALL_DIR}/puppetdb.jar' clojure.main -m puppetlabs.puppetdb.main --config ${CONFIG} -b '${BOOTSTRAP_CONFIG}'" + EXEC="${JAVA_BIN} -XX:OnOutOfMemoryError=\"kill -9 %p\" -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/log/puppetlabs/puppetdb -Djava.security.egd=/dev/urandom ${JAVA_ARGS}" +} + +start() { + checkconfig || return 1 + + ebegin "Starting PuppetDB" + start-stop-daemon --start -u "${USER}" -g "${GROUP}" \ + -m --pidfile "${RUNDIR}/puppetdb.pid" \ + -b --exec "/bin/bash" \ + -- -c "exec ${EXEC} >> ${LOGDIR}/daemon.log 2>&1" + local retval=$? + if [ $retval -ne 0 ]; then + ewarn "Error starting puppetdb." + fi + eend $retval +} + +stop() { + ebegin "Stopping PuppetDB" + start-stop-daemon --stop --pidfile "${RUNDIR}/puppetdb.pid" + eend $? +} diff --git a/app-admin/puppetdb/metadata.xml b/app-admin/puppetdb/metadata.xml new file mode 100644 index 000000000000..d238fa9a06d9 --- /dev/null +++ b/app-admin/puppetdb/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> + <email>prometheanfire@gentoo.org</email> + <name>Matthew Thode</name> + </maintainer> + <longdescription lang="en"> + PuppetDB collects data generated by Puppet. It enables advanced Puppet features like exported resources, and can be the foundation for other applications that use Puppet’s data. + </longdescription> +</pkgmetadata> diff --git a/app-admin/puppetdb/puppetdb-3.0.1.ebuild b/app-admin/puppetdb/puppetdb-3.0.1.ebuild new file mode 100644 index 000000000000..512445aa334b --- /dev/null +++ b/app-admin/puppetdb/puppetdb-3.0.1.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit multilib systemd user + +DESCRIPTION="PuppetDB collects data generated by Puppet." +HOMEPAGE="http://docs.puppetlabs.com/puppetdb/" +SRC_URI="https://downloads.puppetlabs.com/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +IUSE="" +# will need the same keywords as puppet +KEYWORDS="~amd64 ~x86" + +RDEPEND+=">=virtual/jdk-1.7.0" +DEPEND+="" + +pkg_setup() { + enewgroup puppetdb + enewuser puppetdb -1 -1 /opt/puppetlabs/server/data/puppetdb "puppetdb" +} + +src_prepare() { + sed -i 's/sysconfig/conf\.d/g' ext/redhat/puppetdb.service || die + sed -i 's/sysconfig/conf\.d/g' ext/bin/puppetdb || die + sed -i 's/sysconfig/conf\.d/g' install.sh || die + sed -i 's/var\/run/run/g' ext/puppetdb.tmpfiles.conf || die + sed -i 's/var\/run/run/g' install.sh || die +} + +src_compile() { + einfo "not compiling" +} + +src_install() { + dodir /opt/puppetlabs/server/data/puppetdb + insinto /opt/puppetlabs/server/apps/puppetdb + insopts -m0744 + doins ext/ezbake-functions.sh + insopts -m0644 + doins ext/ezbake.manifest + doins puppetdb.jar + insinto /etc/puppetlabs/puppetdb + doins ext/config/logback.xml + doins ext/config/bootstrap.cfg + doins ext/config/request-logging.xml + insinto /etc/puppetlabs/puppetdb/conf.d + doins ext/config/conf.d/jetty.ini + doins ext/config/conf.d/repl.ini + doins ext/config/conf.d/database.ini + doins ext/config/conf.d/config.ini + insopts -m0755 + insinto /opt/puppetlabs/server/apps/puppetdb/scripts + doins install.sh + insinto /opt/puppetlabs/server/apps/puppetdb/cli/apps + doins ext/cli/foreground + doins ext/cli/ssl-setup + doins ext/cli/export + doins ext/cli/config-migration + doins ext/cli/foreground + doins ext/cli/anonymize + doins ext/cli/import + insinto /opt/puppetlabs/server/apps/puppetdb/bin + doins ext/bin/puppetdb + insopts -m0644 + dodir /opt/puppetlabs/server/bin + dosym ../apps/puppetdb/bin/puppetdb /opt/puppetlabs/server/bin/puppetdb + dodir /opt/puppetlabs/bin + dosym ../server/apps/puppetdb/bin/puppetdb /opt/puppetlabs/bin/puppetdb + dosym /opt/puppetlabs/server/apps/puppetdb/bin/puppetdb /usr/bin/puppetdb + # init type tasks + newconfd ext/default puppetdb + systemd_dounit ext/redhat/puppetdb.service + systemd_newtmpfilesd ext/puppetdb.tmpfiles.conf puppetdb.conf + newinitd "${FILESDIR}/puppetdb.initd" puppetdb + # misc + insinto /etc/logrotate.d + newins ext/puppetdb.logrotate.conf puppetdb + fowners -R puppetdb:puppetdb /opt/puppetlabs/server/data/puppetdb + fperms -R 770 /opt/puppetlabs/server/data/puppetdb +} + +pkg_postinst() { + elog "to install please run '/opt/puppetlabs/server/bin/puppetdb ssl-setup'" + elog + elog "to upgrade please run '/opt/puppetlabs/server/bin/puppetdb config-migration'" +} diff --git a/app-admin/puppetdb/puppetdb-3.0.2.ebuild b/app-admin/puppetdb/puppetdb-3.0.2.ebuild new file mode 100644 index 000000000000..512445aa334b --- /dev/null +++ b/app-admin/puppetdb/puppetdb-3.0.2.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit multilib systemd user + +DESCRIPTION="PuppetDB collects data generated by Puppet." +HOMEPAGE="http://docs.puppetlabs.com/puppetdb/" +SRC_URI="https://downloads.puppetlabs.com/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +IUSE="" +# will need the same keywords as puppet +KEYWORDS="~amd64 ~x86" + +RDEPEND+=">=virtual/jdk-1.7.0" +DEPEND+="" + +pkg_setup() { + enewgroup puppetdb + enewuser puppetdb -1 -1 /opt/puppetlabs/server/data/puppetdb "puppetdb" +} + +src_prepare() { + sed -i 's/sysconfig/conf\.d/g' ext/redhat/puppetdb.service || die + sed -i 's/sysconfig/conf\.d/g' ext/bin/puppetdb || die + sed -i 's/sysconfig/conf\.d/g' install.sh || die + sed -i 's/var\/run/run/g' ext/puppetdb.tmpfiles.conf || die + sed -i 's/var\/run/run/g' install.sh || die +} + +src_compile() { + einfo "not compiling" +} + +src_install() { + dodir /opt/puppetlabs/server/data/puppetdb + insinto /opt/puppetlabs/server/apps/puppetdb + insopts -m0744 + doins ext/ezbake-functions.sh + insopts -m0644 + doins ext/ezbake.manifest + doins puppetdb.jar + insinto /etc/puppetlabs/puppetdb + doins ext/config/logback.xml + doins ext/config/bootstrap.cfg + doins ext/config/request-logging.xml + insinto /etc/puppetlabs/puppetdb/conf.d + doins ext/config/conf.d/jetty.ini + doins ext/config/conf.d/repl.ini + doins ext/config/conf.d/database.ini + doins ext/config/conf.d/config.ini + insopts -m0755 + insinto /opt/puppetlabs/server/apps/puppetdb/scripts + doins install.sh + insinto /opt/puppetlabs/server/apps/puppetdb/cli/apps + doins ext/cli/foreground + doins ext/cli/ssl-setup + doins ext/cli/export + doins ext/cli/config-migration + doins ext/cli/foreground + doins ext/cli/anonymize + doins ext/cli/import + insinto /opt/puppetlabs/server/apps/puppetdb/bin + doins ext/bin/puppetdb + insopts -m0644 + dodir /opt/puppetlabs/server/bin + dosym ../apps/puppetdb/bin/puppetdb /opt/puppetlabs/server/bin/puppetdb + dodir /opt/puppetlabs/bin + dosym ../server/apps/puppetdb/bin/puppetdb /opt/puppetlabs/bin/puppetdb + dosym /opt/puppetlabs/server/apps/puppetdb/bin/puppetdb /usr/bin/puppetdb + # init type tasks + newconfd ext/default puppetdb + systemd_dounit ext/redhat/puppetdb.service + systemd_newtmpfilesd ext/puppetdb.tmpfiles.conf puppetdb.conf + newinitd "${FILESDIR}/puppetdb.initd" puppetdb + # misc + insinto /etc/logrotate.d + newins ext/puppetdb.logrotate.conf puppetdb + fowners -R puppetdb:puppetdb /opt/puppetlabs/server/data/puppetdb + fperms -R 770 /opt/puppetlabs/server/data/puppetdb +} + +pkg_postinst() { + elog "to install please run '/opt/puppetlabs/server/bin/puppetdb ssl-setup'" + elog + elog "to upgrade please run '/opt/puppetlabs/server/bin/puppetdb config-migration'" +} diff --git a/app-admin/puppetserver/Manifest b/app-admin/puppetserver/Manifest new file mode 100644 index 000000000000..39cba4fba1ba --- /dev/null +++ b/app-admin/puppetserver/Manifest @@ -0,0 +1 @@ +DIST puppetserver-2.1.1.tar.gz 42547364 SHA256 206db88de533ebf0071a3d957aa21145500abb7748897b01f0de8e5d57dbff0c SHA512 850276fdd67f77f4c8e67be920ca4685fb267d6c90ed1eea41792c5f500ad4b199c198a4367a0faeb55d7aaf85ad531f50bd6704562c1c26bce499265d03a3d5 WHIRLPOOL aabce9259f99926788b9ff16e1b547e4f3c543a54c50a0bd3b0ef0e27eb5b1042981b5bbc73339b28b063798da3cd2453f45a40fcc77f9019f8db40fb5216f28 diff --git a/app-admin/puppetserver/files/puppetserver.initd b/app-admin/puppetserver/files/puppetserver.initd new file mode 100644 index 000000000000..42282db16796 --- /dev/null +++ b/app-admin/puppetserver/files/puppetserver.initd @@ -0,0 +1,65 @@ +#!/sbin/runscript +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +extra_commands="checkconfig" + +LOGDIR="/var/log/puppetlabs/puppetserver" +RUNDIR="/run/puppetlabs/puppetserver" + +checkconfig() { + if [ ! -x $JAVA_BIN ]; then + eerror "Missing JAVA_BIN." + eend 1 + fi + if [ ! -d $INSTALL_DIR ]; then + eerror "Missing INSTALL_DIR." + eend 1 + fi + if [ ! -a $BOOTSTRAP_CONFIG ]; then + eerror "Missing BOOTSTRAP_CONFIG." + eend 1 + fi + if [ ! -e $CONFIG ]; then + eerror "Missing CONFIG." + eend 1 + fi + if [ ! -n $USER ]; then + eerror "Missing USER." + eend 1 + fi + if [ ! -n $GROUP ]; then + eerror "Missing GROUP." + eend 1 + fi + + checkpath -d -m 0755 "${LOGDIR%/*}" + checkpath -d -m 0755 "${RUNDIR%/*}" + checkpath -d -m 0700 -o "${USER}:${GROUP}" "${LOGDIR}" + checkpath -d -m 0755 -o "${USER}:${GROUP}" "${RUNDIR}" + + JAVA_ARGS="${JAVA_ARGS} -cp '${INSTALL_DIR}/puppet-server-release.jar' clojure.main -m puppetlabs.trapperkeeper.main --config ${CONFIG} -b '${BOOTSTRAP_CONFIG}'" + EXEC="${JAVA_BIN} -XX:OnOutOfMemoryError=\"kill -9 %p\" -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/log/puppetlabs/puppetserver -Djava.security.egd=/dev/urandom ${JAVA_ARGS}" +} + +start() { + checkconfig || return 1 + + ebegin "Starting Puppet Server" + start-stop-daemon --start -u "${USER}" -g "${GROUP}" \ + -m --pidfile "${RUNDIR}/puppetserver.pid" \ + -b --exec "/bin/bash" \ + -- -c "exec ${EXEC} >> ${LOGDIR}/daemon.log 2>&1" + local retval=$? + if [ $retval -ne 0 ]; then + ewarn "Error starting puppetserver." + fi + eend $retval +} + +stop() { + ebegin "Stopping Puppet Server" + start-stop-daemon --stop --pidfile "${RUNDIR}/puppetserver.pid" + eend $? +} diff --git a/app-admin/puppetserver/metadata.xml b/app-admin/puppetserver/metadata.xml new file mode 100644 index 000000000000..e25100b94a84 --- /dev/null +++ b/app-admin/puppetserver/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> + <email>prometheanfire@gentoo.org</email> + <name>Matthew Thode</name> + </maintainer> + <use> + <flag name="puppetdb">Adds support for connecting to puppetdb</flag> + </use> + <longdescription lang="en"> + Puppet Server is the next-generation application for managing Puppet agents. + </longdescription> +</pkgmetadata> diff --git a/app-admin/puppetserver/puppetserver-2.1.1.ebuild b/app-admin/puppetserver/puppetserver-2.1.1.ebuild new file mode 100644 index 000000000000..d40553ccb5d2 --- /dev/null +++ b/app-admin/puppetserver/puppetserver-2.1.1.ebuild @@ -0,0 +1,107 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit multilib systemd user + +DESCRIPTION="Puppet Server is the next-generation application for managing Puppet agents." +HOMEPAGE="http://docs.puppetlabs.com/puppetserver/" +SRC_URI="https://downloads.puppetlabs.com/puppet/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +IUSE="puppetdb" +# will need the same keywords as puppet +KEYWORDS="~amd64 ~x86" + +RDEPEND+=" + >=virtual/jdk-1.7.0 + app-admin/puppet-agent[puppetdb?]" +DEPEND+="" + +pkg_setup() { + enewgroup puppet + enewuser puppet -1 -1 /opt/puppetlabs/server/data/puppetserver "puppet" +} + +src_prepare() { + sed -i 's/sysconfig/conf\.d/g' ext/redhat/puppetserver.service || die + sed -i 's/sysconfig/conf\.d/g' ext/bin/puppetserver || die + sed -i 's/sysconfig/conf\.d/g' install.sh || die + sed -i 's/var\/run/run/g' ext/config/conf.d/puppetserver.conf || die + sed -i 's/var\/run/run/g' ext/redhat/puppetserver.service || die + sed -i 's/var\/run/run/g' install.sh || die +} + +src_compile() { + einfo "not compiling" +} + +src_install() { + insinto /opt/puppetlabs/server/apps/puppetserver + insopts -m0774 + doins ext/ezbake-functions.sh + insopts -m0644 + doins ext/ezbake.manifest + doins puppet-server-release.jar + insinto /etc/puppetlabs/puppetserver + doins ext/config/logback.xml + doins ext/config/bootstrap.cfg + doins ext/config/request-logging.xml + insinto /etc/puppetlabs/puppetserver/conf.d + doins ext/config/conf.d/puppetserver.conf + doins ext/config/conf.d/ca.conf + doins ext/config/conf.d/global.conf + doins ext/config/conf.d/web-routes.conf + doins ext/config/conf.d/webserver.conf + insopts -m0755 + insinto /opt/puppetlabs/server/apps/puppetserver/scripts + doins install.sh + insinto /opt/puppetlabs/server/apps/puppetserver/cli/apps + doins ext/cli/irb + doins ext/cli/foreground + doins ext/cli/gem + doins ext/cli/ruby + insinto /opt/puppetlabs/server/apps/puppetserver/bin + doins ext/bin/puppetserver + insopts -m0644 + dodir /opt/puppetlabs/server/bin + dosym ../apps/puppetserver/bin/puppetserver /opt/puppetlabs/server/bin/puppetserver + dodir /opt/puppetlabs/bin + dosym ../server/apps/puppetserver/bin/puppetserver /opt/puppetlabs/bin/puppetserver + dosym /opt/puppetlabs/server/apps/puppetserver/bin/puppetserver /usr/bin/puppetserver + # other sys stuff + dodir /etc/puppetlabs/code + # needed for systemd + dodir /var/log/puppetlabs/puppetserver + dodir /etc/puppetlabs/puppet/ssl + fowners -R puppet:puppet /etc/puppetlabs/puppet/ssl + fperms -R 771 /etc/puppetlabs/puppet/ssl + # init type tasks + newconfd ext/default puppetserver + systemd_dounit ext/redhat/puppetserver.service + newinitd "${FILESDIR}/puppetserver.initd" puppetserver + # misc + insinto /etc/logrotate.d + newins ext/puppetserver.logrotate.conf puppetserver + # cleanup + dodir /opt/puppetlabs/server/data/puppetserver/jruby-gems + fowners -R puppet:puppet /opt/puppetlabs/server/data + fperms -R 775 /opt/puppetlabs/server/data/puppetserver + fperms -R 700 /var/log/puppetlabs/puppetserver +} + +pkg_postinst() { + elog "to install you may want to run the following:" + elog + elog "puppet config set --section master vardir /opt/puppetlabs/server/data/puppetserver" + elog "puppet config set --section master logdir /var/log/puppetlabs/puppetserver" + elog "puppet config set --section master rundir /run/puppetlabs/puppetserver" + elog "puppet config set --section master pidfile /run/puppetlabs/puppetserver/puppetserver.pid" + elog "puppet config set --section master codedir /etc/puppetlabs/code" +# elog +# elog "the jruby needs it's own puppet gem installed..." +# elog "/opt/puppetlabs/server/apps/puppetserver/bin/puppetserver gem install puppet" +} diff --git a/app-admin/pwcrypt/Manifest b/app-admin/pwcrypt/Manifest new file mode 100644 index 000000000000..c3090a28b03a --- /dev/null +++ b/app-admin/pwcrypt/Manifest @@ -0,0 +1 @@ +DIST pwcrypt-1.2.2.tar.gz 36902 SHA256 276710b34f9e66ba6b19ba43c46abaf727a28ed94bbd209a9bd28a655029c2e1 SHA512 41644e82f8306003e9346900d7a961e87a5b8103ebc411cf09b5e0e40d8253b4c38a83db57c60f09d2dd2663ecc2e2edc10ea2b6d095c102ee10ae251b471ddf WHIRLPOOL db45fbd5ead3cad86735ebcbab3d7716fdb45987c1ef292bc5a538f05248ddf2ef523da5203ead01924bc55d524b74ea59b801db82d0a30e0c7b3b46a08f8965 diff --git a/app-admin/pwcrypt/metadata.xml b/app-admin/pwcrypt/metadata.xml new file mode 100644 index 000000000000..d4a08224d284 --- /dev/null +++ b/app-admin/pwcrypt/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>hattya@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/app-admin/pwcrypt/pwcrypt-1.2.2-r1.ebuild b/app-admin/pwcrypt/pwcrypt-1.2.2-r1.ebuild new file mode 100644 index 000000000000..f8c293aff030 --- /dev/null +++ b/app-admin/pwcrypt/pwcrypt-1.2.2-r1.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit toolchain-funcs + +DESCRIPTION="An improved version of cli-crypt (encrypts data sent to it from the cli)" +HOMEPAGE="http://xjack.org/pwcrypt/" +SRC_URI="http://xjack.org/pwcrypt/downloads/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +DOCS=( CREDITS README ) + +src_prepare() { + sed -i "s/make\( \|$\)/\$(MAKE)\1/g" Makefile.in || die + sed -i \ + -e "/^LDFLAGS/s/= /= @LDFLAGS@ /" \ + -e "/-install/s/ -s//" \ + src/Makefile.in || die + + tc-export CC +} diff --git a/app-admin/pwcrypt/pwcrypt-1.2.2.ebuild b/app-admin/pwcrypt/pwcrypt-1.2.2.ebuild new file mode 100644 index 000000000000..1cce7360361d --- /dev/null +++ b/app-admin/pwcrypt/pwcrypt-1.2.2.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit toolchain-funcs + +DESCRIPTION="An improved version of cli-crypt (encrypts data sent to it from the cli)" +HOMEPAGE="http://xjack.org/pwcrypt/" +SRC_URI="http://xjack.org/pwcrypt/downloads/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +src_prepare() { + tc-export CC +} + +src_install() { + dobin src/pwcrypt + dodoc CREDITS README +} diff --git a/app-admin/pwgen/Manifest b/app-admin/pwgen/Manifest new file mode 100644 index 000000000000..2895c677b65d --- /dev/null +++ b/app-admin/pwgen/Manifest @@ -0,0 +1 @@ +DIST pwgen-2.07.tar.gz 53513 SHA256 eb74593f58296c21c71cd07933e070492e9222b79cedf81d1a02ce09c0e11556 SHA512 9c56ff04ca2f6f60126608a25f395ddbc4a3ac59585a6f233c87d993b6388e30b1867d43a6bc5b0f9f1f4064b12ea450eac4f7c9ac2844707a99fad1bbd2664d WHIRLPOOL b1c7b543efd552ebd2db83ada501093d7ee03d6975df4a81255540b2b84817ef9b8abcf287cbc2500773987bb416946afc7104edaaa06400b76d7bc68db55469 diff --git a/app-admin/pwgen/files/2.06-special-char.patch b/app-admin/pwgen/files/2.06-special-char.patch new file mode 100644 index 000000000000..3d014fa4bf11 --- /dev/null +++ b/app-admin/pwgen/files/2.06-special-char.patch @@ -0,0 +1,11 @@ +--- a/pwgen.c ++++ b/pwgen.c +@@ -138,7 +138,7 @@ int main(int argc, char **argv) + break; + case 's': + pwgen = pw_rand; +- pwgen_flags = PW_DIGITS | PW_UPPERS; ++ pwgen_flags |= PW_DIGITS | PW_UPPERS; + break; + case 'C': + do_columns = 1; diff --git a/app-admin/pwgen/files/pwgen.rc b/app-admin/pwgen/files/pwgen.rc new file mode 100644 index 000000000000..424ea2dd7412 --- /dev/null +++ b/app-admin/pwgen/files/pwgen.rc @@ -0,0 +1,19 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + before local +} + +start() { + ebegin "Auto-scrambling root password for security" + echo root:`pwgen -s 16` | chpasswd > /dev/null 2>&1 + eend $? "Failed to scramble root password." +} + +stop() { + ebegin "Stopping pwgen" + eend $? "Failed to stop pwgen." +} diff --git a/app-admin/pwgen/metadata.xml b/app-admin/pwgen/metadata.xml new file mode 100644 index 000000000000..11dddfb5251a --- /dev/null +++ b/app-admin/pwgen/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>livecd</herd> + <maintainer> + <email>jlec@gentoo.org</email> + </maintainer> + <use> + <flag name="livecd">Install init script for root password scrambling on boot</flag> + </use> + <upstream> + <remote-id type="sourceforge">pwgen</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/pwgen/pwgen-2.07.ebuild b/app-admin/pwgen/pwgen-2.07.ebuild new file mode 100644 index 000000000000..4d652df71aab --- /dev/null +++ b/app-admin/pwgen/pwgen-2.07.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils + +DESCRIPTION="Password Generator" +HOMEPAGE="http://sourceforge.net/projects/pwgen/" +SRC_URI="mirror://sourceforge/pwgen/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" +IUSE="livecd" + +src_prepare() { + epatch "${FILESDIR}"/2.06-special-char.patch +} + +src_configure() { + econf --sysconfdir="${EPREFIX}"/etc/pwgen +} + +src_install() { + default + use livecd && newinitd "${FILESDIR}"/pwgen.rc pwgen +} diff --git a/app-admin/pydf/Manifest b/app-admin/pydf/Manifest new file mode 100644 index 000000000000..2ef9685d6f49 --- /dev/null +++ b/app-admin/pydf/Manifest @@ -0,0 +1,2 @@ +DIST pydf_10.tar.gz 13430 SHA256 71be682c86a352afbafcf612cbc236f6f5810d80635685869a9c9b320203e241 SHA512 d8bf8a0a6e70fc02c5ff97844c224cc49036cc27bd01c50330dd3aa898e036d995952c8f83b84c3ccaa28753504fa1ef664f354190ffc127e67ea413ae90906b WHIRLPOOL 2bc7a137c600bf080052716b6a3e59546a2e79308810540472047471481d6a4174d8093b3ad15df8fe9d36d3c28b5c59ef48355bf7d74db8b2e00b27fa745677 +DIST pydf_12.tar.gz 14207 SHA256 860029145e42f3484fa647c42966c236d90cba0221681dbf5f48257b6c5b8c92 SHA512 5a5819b83fe2425cb951a139b38b1b639d17e1d17c4e3e4a80fc4eb6d5632c42b03a2767e1864c8bee13dbd72ebb91ec79fefde1ba448e2af9fc4a314821a3d0 WHIRLPOOL 0e5ac13af4ed1ecf8aa4b6c203fc7309032692c2b4dc1e029a4c8897d7430be58bf3ef7cea549e2432142586dc76b42fcb790a90cc9b61fe68ee860d720200b9 diff --git a/app-admin/pydf/metadata.xml b/app-admin/pydf/metadata.xml new file mode 100644 index 000000000000..f2b4a5d1d932 --- /dev/null +++ b/app-admin/pydf/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> + <email>yngwin@gentoo.org</email> + <name>Ben de Groot</name> + </maintainer> +</pkgmetadata> diff --git a/app-admin/pydf/pydf-10-r1.ebuild b/app-admin/pydf/pydf-10-r1.ebuild new file mode 100644 index 000000000000..f63627c1acad --- /dev/null +++ b/app-admin/pydf/pydf-10-r1.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python{2_7,3_3,3_4} ) +inherit python-r1 + +DESCRIPTION="Enhanced df with colors" +HOMEPAGE="http://kassiopeia.juls.savba.sk/~garabik/software/pydf/" +SRC_URI="http://kassiopeia.juls.savba.sk/~garabik/software/pydf/${PN}_${PV}.tar.gz" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="amd64 arm ppc ppc64 x86 ~x86-fbsd ~amd64-linux ~x86-linux" +IUSE="" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" +DEPEND="${PYTHON_DEPS}" +RDEPEND="${DEPEND}" + +src_prepare() { + sed -i -e "s:/etc/pydfrc:${EPREFIX}/etc/pydfrc:" pydf || die +} + +src_install() { + python_foreach_impl python_doscript pydf + insinto /etc + doins pydfrc + doman pydf.1 + dodoc README +} diff --git a/app-admin/pydf/pydf-12.ebuild b/app-admin/pydf/pydf-12.ebuild new file mode 100644 index 000000000000..da5e2e67c921 --- /dev/null +++ b/app-admin/pydf/pydf-12.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python{2_7,3_3,3_4} ) +inherit python-r1 + +DESCRIPTION="Enhanced df with colors" +HOMEPAGE="http://kassiopeia.juls.savba.sk/~garabik/software/pydf/" +SRC_URI="http://kassiopeia.juls.savba.sk/~garabik/software/pydf/${PN}_${PV}.tar.gz" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" +IUSE="" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" +DEPEND="${PYTHON_DEPS}" +RDEPEND="${DEPEND}" + +src_prepare() { + sed -i -e "s:/etc/pydfrc:${EPREFIX}/etc/pydfrc:" pydf || die +} + +src_install() { + python_foreach_impl python_doscript pydf + insinto /etc + doins pydfrc + doman pydf.1 + dodoc README +} diff --git a/app-admin/python-updater/Manifest b/app-admin/python-updater/Manifest new file mode 100644 index 000000000000..1e42e3b38339 --- /dev/null +++ b/app-admin/python-updater/Manifest @@ -0,0 +1,3 @@ +DIST python-updater-0.11.tar.bz2 9355 SHA256 5c88b2a56febe67e783855a1c51c4c89637e948704834ad1f5d1b6e46cc4a7b8 SHA512 613d0b772faed65690b3999fb557f4414926f72f2f6084cf2e91c225a036df8c1a3c73e4fa6feac191cb7ac89035d3bcae9a6b23f479e2cf63d69bb8c57217fe WHIRLPOOL 9eab112192a3515e71d4971b89282d3f9725629af5b4db6a090d74f4c3dc9421dbfbc9c6c0393b3d6387d4926b1eb1bbc6291ac18ae31e86ecfeb37cfba68b14 +DIST python-updater-0.12.tar.bz2 10323 SHA256 9df20f8e4acb18428f649ca944e9f6875125d996df6a72f0dab4e1f4b51ffe72 SHA512 6bb092ab52274f22edce479c2efafb3ad96c8969ecf0e72a99c5c6dc2755c6caf9bfaacbcb745a8839b79c891c6356b6cfcba08ce117061a0e6d17d3d43ff3fd WHIRLPOOL 86659c9b5a4f9752416342ed09e710a70133f7b69e61f707d1800f4008db63770b4252a32222c56047a9db37319963558872ea8618fc00f44f4fc4da4b800c62 +DIST python-updater-0.13.tar.bz2 10384 SHA256 9123cdb538f3f05f20562acb1e6bb4f568061f3b6d866b31edb24da325bfbbbe SHA512 5c75cd76e18d19a6d4fdec902d47cccf41d61fd9b6d40c6c22b4579e826130ebdf00c8da57b6ba2752ff10832f5fcebb9a0a2dbeef03551add0382f57b15ac5a WHIRLPOOL bf804db9ac5dcd7aea9141c43378b0c5d938d5a984c9fe73fb9d8db1933354270a2cf74e5ea49066cb5c2fae1e60590638abf9a79cb9394bcbe9c3487cde9af7 diff --git a/app-admin/python-updater/files/python-updater-0.10-expand-aliases.patch b/app-admin/python-updater/files/python-updater-0.10-expand-aliases.patch new file mode 100644 index 000000000000..d48e221f2d30 --- /dev/null +++ b/app-admin/python-updater/files/python-updater-0.10-expand-aliases.patch @@ -0,0 +1,11 @@ +--- python-updater ++++ python-updater +@@ -67,6 +67,8 @@ + # Portage variables. + PKG_DBDIR="/var/db/pkg" + ++shopt -s expand_aliases ++ + # usage() + # display usage + usage() { diff --git a/app-admin/python-updater/files/python-updater-0.10-only-alias-sed-if-exists.patch b/app-admin/python-updater/files/python-updater-0.10-only-alias-sed-if-exists.patch new file mode 100644 index 000000000000..20051f51594d --- /dev/null +++ b/app-admin/python-updater/files/python-updater-0.10-only-alias-sed-if-exists.patch @@ -0,0 +1,23 @@ +Only alias sed to /usr/lib/portage/bin/ebuild-helpers/sed if the +latter exists (which should be the case on prefix portages, but not on +normal ones). Fixes fallout from bug #370935 on non-prefix portages. + +--- python-updater ++++ python-updater +@@ -488,8 +488,15 @@ + shift + done + ++# On a prefix portage we need to use sed from ebuild-helpers/ instead ++# of $PATH. On non-prefix portages ebuild-helpers/sed does not exist. ++# Prepending ebuild-helpers/ to $PATH uses too many tools from there. ++# So alias sed to ebuild-helpers/sed if it exists: + if [[ "${PMS_COMMAND[${PMS_INDEX}]}" == "emerge" ]]; then +- alias sed="$(/usr/bin/python -c "import os; print(os.path.dirname(os.path.realpath('$(type -p emerge)')))")/ebuild-helpers/sed" ++ sed="$(/usr/bin/python -c "import os; print(os.path.dirname(os.path.realpath('$(type -p emerge)')))")/ebuild-helpers/sed" ++ if [[ -x "${sed}" ]]; then ++ alias sed="${sed}" ++ fi + fi + + if has_version "=dev-lang/python-2*"; then diff --git a/app-admin/python-updater/metadata.xml b/app-admin/python-updater/metadata.xml new file mode 100644 index 000000000000..de483c53568f --- /dev/null +++ b/app-admin/python-updater/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>python</herd> +</pkgmetadata> diff --git a/app-admin/python-updater/python-updater-0.11.ebuild b/app-admin/python-updater/python-updater-0.11.ebuild new file mode 100644 index 000000000000..8ecee960ddab --- /dev/null +++ b/app-admin/python-updater/python-updater-0.11.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +if [[ "${PV}" == "9999" ]]; then + inherit git-2 +fi + +DESCRIPTION="Script used to reinstall Python packages after changing of active Python versions" +HOMEPAGE="http://www.gentoo.org/proj/en/Python/" +if [[ "${PV}" == "9999" ]]; then + SRC_URI="" + EGIT_REPO_URI="git://anongit.gentoo.org/proj/python-updater.git" +else + SRC_URI="http://dev.gentoo.org/~floppym/dist/${P}.tar.bz2" + KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="" + +DEPEND="$([[ "${PV}" == "9999" ]] && echo "sys-apps/help2man")" +RDEPEND="|| ( >=sys-apps/portage-2.1.6 >=sys-apps/paludis-0.56.0 )" + +src_compile() { + if [[ "${PV}" == "9999" ]]; then + emake ${PN}.1 || die "Generation of man page failed" + fi +} + +src_install() { + dosbin ${PN} + doman ${PN}.1 + dodoc AUTHORS +} diff --git a/app-admin/python-updater/python-updater-0.12.ebuild b/app-admin/python-updater/python-updater-0.12.ebuild new file mode 100644 index 000000000000..4aff91f1455e --- /dev/null +++ b/app-admin/python-updater/python-updater-0.12.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +if [[ "${PV}" == "9999" ]]; then + inherit git-r3 +fi + +DESCRIPTION="Script used to reinstall Python packages after changing of active Python versions" +HOMEPAGE="http://www.gentoo.org/proj/en/Python/" +if [[ "${PV}" == "9999" ]]; then + EGIT_REPO_URI="git://anongit.gentoo.org/proj/python-updater.git" +else + SRC_URI="http://dev.gentoo.org/~floppym/dist/${P}.tar.bz2" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="" + +if [[ ${PV} == 9999 ]]; then + DEPEND=" + sys-apps/gentoo-functions + sys-apps/help2man + " +fi +RDEPEND=" + sys-apps/gentoo-functions + || ( >=sys-apps/portage-2.1.6 >=sys-apps/paludis-0.56.0 sys-apps/pkgcore ) +" + +src_compile() { + [[ ${PV} == 9999 ]] && emake python-updater + default +} diff --git a/app-admin/python-updater/python-updater-0.13.ebuild b/app-admin/python-updater/python-updater-0.13.ebuild new file mode 100644 index 000000000000..4aff91f1455e --- /dev/null +++ b/app-admin/python-updater/python-updater-0.13.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +if [[ "${PV}" == "9999" ]]; then + inherit git-r3 +fi + +DESCRIPTION="Script used to reinstall Python packages after changing of active Python versions" +HOMEPAGE="http://www.gentoo.org/proj/en/Python/" +if [[ "${PV}" == "9999" ]]; then + EGIT_REPO_URI="git://anongit.gentoo.org/proj/python-updater.git" +else + SRC_URI="http://dev.gentoo.org/~floppym/dist/${P}.tar.bz2" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="" + +if [[ ${PV} == 9999 ]]; then + DEPEND=" + sys-apps/gentoo-functions + sys-apps/help2man + " +fi +RDEPEND=" + sys-apps/gentoo-functions + || ( >=sys-apps/portage-2.1.6 >=sys-apps/paludis-0.56.0 sys-apps/pkgcore ) +" + +src_compile() { + [[ ${PV} == 9999 ]] && emake python-updater + default +} diff --git a/app-admin/python-updater/python-updater-9999.ebuild b/app-admin/python-updater/python-updater-9999.ebuild new file mode 100644 index 000000000000..4aff91f1455e --- /dev/null +++ b/app-admin/python-updater/python-updater-9999.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +if [[ "${PV}" == "9999" ]]; then + inherit git-r3 +fi + +DESCRIPTION="Script used to reinstall Python packages after changing of active Python versions" +HOMEPAGE="http://www.gentoo.org/proj/en/Python/" +if [[ "${PV}" == "9999" ]]; then + EGIT_REPO_URI="git://anongit.gentoo.org/proj/python-updater.git" +else + SRC_URI="http://dev.gentoo.org/~floppym/dist/${P}.tar.bz2" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="" + +if [[ ${PV} == 9999 ]]; then + DEPEND=" + sys-apps/gentoo-functions + sys-apps/help2man + " +fi +RDEPEND=" + sys-apps/gentoo-functions + || ( >=sys-apps/portage-2.1.6 >=sys-apps/paludis-0.56.0 sys-apps/pkgcore ) +" + +src_compile() { + [[ ${PV} == 9999 ]] && emake python-updater + default +} diff --git a/app-admin/qpage/Manifest b/app-admin/qpage/Manifest new file mode 100644 index 000000000000..2d6a502ba352 --- /dev/null +++ b/app-admin/qpage/Manifest @@ -0,0 +1 @@ +DIST qpage-3.3.tar.Z 225689 SHA256 0bbecd2908380c5d28b8beeee0d0238854162128db5ef4ea603614d52ee7d24c SHA512 d6062fb9e9cd6cfd60cadb923d29d36fd649c27adff2a36fd4e768798b90780153b78e7d0d1a13dcad94971ac98b32c1c5a3b415d5a1b4aa1cfbac564514a3e9 WHIRLPOOL 2a1ed78e6f25a07e872848cb75c82111f6c80ae4b03714ff5f7a872a33788da58d2cd1a14d127e4f17503939e0d640a6a43cc0d5adf83f8616d927da16cfe9fc diff --git a/app-admin/qpage/files/qpage b/app-admin/qpage/files/qpage new file mode 100644 index 000000000000..a937af3d210d --- /dev/null +++ b/app-admin/qpage/files/qpage @@ -0,0 +1,29 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + need net +} + +checkconfig() { + if [ ! -e /etc/qpage/qpage.cf ] ; then + eerror "You need a /etc/qpage/qpage.cf file first." + eerror "There is a sample file in /etc/qpage/." + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting qpage" + start-stop-daemon --start --quiet --exec /usr/bin/qpage -- -q 10 + eend $? +} + +stop() { + ebegin "Stopping qpage" + start-stop-daemon --stop --quiet --exec /usr/bin/qpage + eend $? +} diff --git a/app-admin/qpage/files/qpage-3.3-fix-warning.patch b/app-admin/qpage/files/qpage-3.3-fix-warning.patch new file mode 100644 index 000000000000..722677648250 --- /dev/null +++ b/app-admin/qpage/files/qpage-3.3-fix-warning.patch @@ -0,0 +1,12 @@ +diff -urN qpage-3.3.orig/srvrsnpp.c qpage-3.3/srvrsnpp.c +--- qpage-3.3.orig/srvrsnpp.c 1998-10-25 14:55:05.000000000 -0500 ++++ qpage-3.3/srvrsnpp.c 2006-01-25 15:49:57.000000000 -0500 +@@ -1061,7 +1061,7 @@ + if (ptr && strcmp(ptr, STRING_UNKNOWN) != 0) + p->ident = strdup(ptr); + +- ptr = eval_hostinfo(&request.client); ++ ptr = eval_hostinfo(&request.client[0]); + + if (ptr && strcmp(ptr, STRING_UNKNOWN) != 0) + p->hostname = strdup(ptr); diff --git a/app-admin/qpage/files/qpage-3.3-gentoo.patch b/app-admin/qpage/files/qpage-3.3-gentoo.patch new file mode 100644 index 000000000000..577fb8a4ff3b --- /dev/null +++ b/app-admin/qpage/files/qpage-3.3-gentoo.patch @@ -0,0 +1,72 @@ +--- config.input.dist 2003-04-11 14:03:36.000000000 -0700 ++++ config.input 2003-04-11 14:05:47.000000000 -0700 +@@ -20,7 +20,7 @@ + # See the QuickPage documentation for complete details about + # the syntax of the configuration file. + # +-QPAGE_CONFIG="/etc/qpage.cf" ++QPAGE_CONFIG="/etc/qpage/qpage.cf" + + + # +@@ -41,7 +41,7 @@ + # copies of the configuration file. Only one filename + # may be specified. + # +-SNPP_SERVER_FILE="/etc/qpage.servers" ++SNPP_SERVER_FILE="/etc/qpage/qpage.servers" + + + # +--- qpage.man.dist 2003-04-18 14:43:45.000000000 -0700 ++++ qpage.man 2003-04-18 14:43:55.000000000 -0700 +@@ -867,7 +867,7 @@ + must be able to detect when it's safe to send dial commands to the modem. + .LP + .SH FILES +-/etc/qpage.cf ++/etc/qpage/qpage.cf + .SH SEE ALSO + .B RFC-1861 + .SH KNOWN BUGS +--- example.cf.dist 2003-04-25 09:55:47.000000000 -0700 ++++ example.cf 2003-04-25 10:55:11.000000000 -0700 +@@ -21,7 +21,7 @@ + # + # modem=<modem name> + # text=<optional text, no whitespace allowed> +-# device=<modem device e.g. /dev/ttya> ++# device=<modem device e.g. /dev/tts/0> + # initcmd=<modem initialization command> + # dialcmd=<modem dial command not including phone number> + # +@@ -64,14 +64,15 @@ + + queuedir=/var/spool/qpage + ++lockdir=/var/lock/subsys/qpage ++ + identtimeout=5 + snpptimeout=60 + +-modem=ttya device=/dev/cua/a +-modem=ttyb device=/dev/cua/b ++modem=ttyS0 device=/dev/tts/0 + + service=default +- device=ttya,ttyb ++ device=ttyS0 + baudrate=1200 + parity=even + allowpid=yes +--- ixo.c.dist 2003-04-25 11:36:30.000000000 -0700 ++++ ixo.c 2003-04-25 11:37:37.000000000 -0700 +@@ -192,7 +192,7 @@ + if ((i = read_modem(fd, seconds)) < 0) + return(NULL); + +- if (i == '\r') { ++ if (i == '\r' || i == '\n') { + *ptr = '\0'; + got_full_packet++; + } diff --git a/app-admin/qpage/metadata.xml b/app-admin/qpage/metadata.xml new file mode 100644 index 000000000000..05df577170f0 --- /dev/null +++ b/app-admin/qpage/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> + <email>chutzpah@gentoo.org</email> + <name>Patrick McLean</name> +</maintainer> +<longdescription lang="en"> +QuickPage is a client/server software package that enables you to send messages +to an alphanumeric pager. The client accepts a message from the user and +forwards it to a server using SNPP. The server uses a modem to transmit the +message to the recipient's paging service using the TAP protocol (also known as +the IXO protocol). +</longdescription> +</pkgmetadata> diff --git a/app-admin/qpage/qpage-3.3.ebuild b/app-admin/qpage/qpage-3.3.ebuild new file mode 100644 index 000000000000..dfb769629093 --- /dev/null +++ b/app-admin/qpage/qpage-3.3.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils toolchain-funcs + +DESCRIPTION="Sends messages to an alphanumeric pager via TAP protocol" +HOMEPAGE="http://www.qpage.org/" +SRC_URI="http://www.qpage.org/download/${P}.tar.Z" + +LICENSE="qpage" +SLOT="0" +KEYWORDS="alpha amd64 x86" +IUSE="tcpd" + +DEPEND="tcpd? ( sys-apps/tcp-wrappers )" +RDEPEND="${DEPEND} + virtual/mta" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${P}-gentoo.patch + epatch "${FILESDIR}"/${P}-fix-warning.patch +} + +src_compile() { + tc-export CC + econf || die "econf failed" + + # There doesn't seem to be a clean way to disable tcp wrappers in + # this package if you have it installed, but don't want to use it. + if ! use tcpd ; then + sed -i 's/-lwrap//g; s/-DTCP_WRAPPERS//g' Makefile + echo '#undef TCP_WRAPPERS' >> config.h + fi + + emake || die "emake failed" +} + +src_install() { + einstall || die "einstall failed" + + dodir /var/spool/qpage + fowners daemon:daemon /var/spool/qpage + fperms 770 /var/spool/qpage + + dodir /var/lock/subsys/qpage + fowners daemon:daemon /var/lock/subsys/qpage + fperms 770 /var/lock/subsys/qpage + + insinto /etc/qpage + doins example.cf || die "doins example.cf failed" + + doinitd "${FILESDIR}"/qpage +} + +pkg_postinst() { + elog + elog "Post-installation tasks:" + elog + elog "1. Create /etc/qpage/qpage.cf (see example.cf in that dir)." + elog "2. Insure that the serial port selected in qpage.cf" + elog " is writable by user or group daemon." + elog "3. Set automatic startup with rc-update add qpage default" + elog "4. Send mail to tomiii@qpage.org telling him how" + elog " you like qpage! :-)" + elog +} diff --git a/app-admin/quickswitch/Manifest b/app-admin/quickswitch/Manifest new file mode 100644 index 000000000000..5c90fde01bb2 --- /dev/null +++ b/app-admin/quickswitch/Manifest @@ -0,0 +1 @@ +DIST quickswitch-1.05.tar.gz 20218 SHA256 88dc6cff47fc9555064bd368bed8aad6d817a885743775b99ef9fe2c90b7f29e SHA512 dfb6b952e06d03834b22ad1abe415499bc3f231dcfee0b551ceadc4c020604b2574b70fff03ffb7099913d77e49c545ee44d51f9f7651c4fba113b0503c3bd26 WHIRLPOOL b3284add168e12941e78a872f27a9cae19700df6448427aa023a8f41025e97ff7a59cd95ffe97d652dc274d212b336f5dbcb9047ce2f6a52798880ef5e78238f diff --git a/app-admin/quickswitch/metadata.xml b/app-admin/quickswitch/metadata.xml new file mode 100644 index 000000000000..3c6ff9fb93de --- /dev/null +++ b/app-admin/quickswitch/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> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <longdescription>A utility for linux laptop users to use multiple network + profiles, and switch effortlessly.</longdescription> + <upstream> + <remote-id type="sourceforge">quickswitch</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/quickswitch/quickswitch-1.05.ebuild b/app-admin/quickswitch/quickswitch-1.05.ebuild new file mode 100644 index 000000000000..7dd0c7a22821 --- /dev/null +++ b/app-admin/quickswitch/quickswitch-1.05.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +IUSE="ncurses" + +DESCRIPTION="Utility to switch network profiles on the fly" +SRC_URI="mirror://sourceforge/quickswitch/${P}.tar.gz" +HOMEPAGE="http://quickswitch.sf.net" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="x86 ppc sparc s390 amd64" + +DEPEND=">=dev-lang/perl-5.6.0" +RDEPEND="ncurses? ( dev-perl/CursesWidgets )" + +src_install() { + dobin switchto + dosed "s:/etc/switchto.conf:/etc/quickswitch/switchto.conf:" \ + /usr/bin/switchto + dosed "s:/etc/switchto.last:/etc/quickswitch/switchto.last:" \ + /usr/bin/switchto + if use ncurses; then + dobin switcher + dosed "s:/etc/switchto.conf:/etc/quickswitch/switchto.conf:" \ + /usr/bin/switcher + fi + + dodir /etc/quickswitch + insinto /etc/quickswitch + newins switchto.conf switchto.conf.sample + + dosed "s:/etc/switchto.last:/etc/quickswitch/switchto.last:" \ + /etc/quickswitch/switchto.conf.sample + dosed "s:/usr/local/sbin/iwconfig:/sbin/iwconfig:" \ + /etc/quickswitch/switchto.conf.sample + dodoc README +} diff --git a/app-admin/r10k/Manifest b/app-admin/r10k/Manifest new file mode 100644 index 000000000000..015969f3755c --- /dev/null +++ b/app-admin/r10k/Manifest @@ -0,0 +1,2 @@ +DIST r10k-1.1.3.gem 30720 SHA256 4b4732046a7478f28668dd3db08ce2527bb45c6da83ec0c604f16d09fce9b91a SHA512 9ddb06c3535c4d5f4f0d8156ddf7671f248283874ef7fab4a2e9d00534e6d165e1b7a32937ecef8043a7fb8ff1143a9dd7bc388f0d7c810de86bc369a22fb502 WHIRLPOOL ea9b3a291cc581c719c2852a0d5f268be2389ed783368a0b20c6dc81b047d5725c60956de3282a353dfefd034a4be2eadaceba1a79ee9c0c16b3afaca3be2ac8 +DIST r10k-1.5.1.gem 164864 SHA256 4dd4edfb1b69400324780784bf214a80bec3d0dbd46bc94113683904d503fdb0 SHA512 4440a893aaa6ec0337f9347b620f92afd93099465c148bfe90cd44c2c6fe29cc8411b8c225044a9547d24a8857b580dcf2ea190bf64fe9ba180d1c5c3832d1dd WHIRLPOOL b8a3a49857bc97e4b1529c4a8f33ace1e6c1cca270bd4be3669494568bbc9a0b85e15419103bbb63622aadd3ad1453e11ae63b85b9c86a67d013962f4d7b2761 diff --git a/app-admin/r10k/metadata.xml b/app-admin/r10k/metadata.xml new file mode 100644 index 000000000000..300319a1e57b --- /dev/null +++ b/app-admin/r10k/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> + <email>vikraman@gentoo.org</email> + <name>Vikraman Choudhury</name> + </maintainer> + <herd>sysadmin</herd> + <longdescription lang="en"> + r10k provides a general purpose toolset for deploying Puppet environments and modules. It implements the Puppetfile format and provides a native implementation of Puppet dynamic environments. + </longdescription> + <upstream> + <remote-id type="rubyforge">r10k</remote-id> + <remote-id type="github">adrienthebo/r10k</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/r10k/r10k-1.1.3-r1.ebuild b/app-admin/r10k/r10k-1.1.3-r1.ebuild new file mode 100644 index 000000000000..20067fbf89f4 --- /dev/null +++ b/app-admin/r10k/r10k-1.1.3-r1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +USE_RUBY="ruby19 ruby20 ruby21" + +RUBY_FAKEGEM_RECIPE_TEST="rspec" +RUBY_FAKEGEM_TASK_DOC="" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Puppet environment and module deployment" +HOMEPAGE="http://github.com/adrienthebo/r10k" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+git" + +ruby_add_rdepend " + >=dev-ruby/colored-1.2 + =dev-ruby/cri-2* + >=dev-ruby/systemu-2.5.2 + >=dev-ruby/log4r-1.1.10 + dev-ruby/json" + +RDEPEND="${RDEPEND} git? ( >=dev-vcs/git-1.6.6 )" + +all_ruby_prepare() { + sed -i -e 's/json_pure/json/' \ + -e '/cri/ s/2.4.0/2.4/' \ + -e '/systemu/ s/2.5.2/2.5/' \ + -e '/s.files/d' ${RUBY_FAKEGEM_GEMSPEC} || die +} + +pkg_postinst() { + ewarn + ewarn "If you are upgrading from 1.1.0 and are using multiple sources, please read" + ewarn "this. (If not, feel free to continue with your regularly scheduled day.)" + ewarn + ewarn "GH-48 (https://github.com/adrienthebo/r10k/issues/48) introduced the ability" + ewarn "for environments to be prefixed with the source name so that multiple sources" + ewarn "installed into the same directory would not overwrite each other. However" + ewarn "prefixing was automatically enabled and would break existing setups where" + ewarn "multiple sources were cloned into different directories." + ewarn + ewarn "Because this introduced a breaking change, SemVer dictates that the automatic" + ewarn "prefixing has to be rolled back. Prefixing can be enabled but always defaults" + ewarn "to off. If you are relying on this behavior you will need to update your r10k.yaml" + ewarn "to enable prefixing on a per-source basis." + ewarn + ewarn "Please see the issue (https://github.com/adrienthebo/r10k/issues/48) for more" + ewarn "information." +} diff --git a/app-admin/r10k/r10k-1.5.1.ebuild b/app-admin/r10k/r10k-1.5.1.ebuild new file mode 100644 index 000000000000..6610f6121d98 --- /dev/null +++ b/app-admin/r10k/r10k-1.5.1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +USE_RUBY="ruby19 ruby20 ruby21" + +RUBY_FAKEGEM_RECIPE_TEST="rspec" +RUBY_FAKEGEM_TASK_DOC="" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Puppet environment and module deployment" +HOMEPAGE="http://github.com/adrienthebo/r10k" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+git" + +ruby_add_rdepend " + >=dev-ruby/colored-1.2 + =dev-ruby/cri-2.7* + >=dev-ruby/systemu-2.5.2 + >=dev-ruby/log4r-1.1.10 + >=dev-ruby/faraday-0.9.0 + >=dev-ruby/faraday_middleware-0.9.0 + >=dev-ruby/faraday_middleware-multi_json-0.0.6 + >=dev-ruby/multi_json-1.10 + >=dev-ruby/semantic_puppet-0.1.1 + dev-ruby/json" + +RDEPEND="${RDEPEND} git? ( >=dev-vcs/git-1.6.6 )" + +all_ruby_prepare() { + sed -i -e 's/json_pure/json/' \ + -e '/cri/ s/2\.6\../2.7/' \ + -e '/systemu/ s/2.5.2/2.5/' \ + -e '/s.files/d' ${RUBY_FAKEGEM_GEMSPEC} || die +} + +pkg_postinst() { + ewarn + ewarn "If you are upgrading from 1.1.0 and are using multiple sources, please read" + ewarn "this. (If not, feel free to continue with your regularly scheduled day.)" + ewarn + ewarn "GH-48 (https://github.com/adrienthebo/r10k/issues/48) introduced the ability" + ewarn "for environments to be prefixed with the source name so that multiple sources" + ewarn "installed into the same directory would not overwrite each other. However" + ewarn "prefixing was automatically enabled and would break existing setups where" + ewarn "multiple sources were cloned into different directories." + ewarn + ewarn "Because this introduced a breaking change, SemVer dictates that the automatic" + ewarn "prefixing has to be rolled back. Prefixing can be enabled but always defaults" + ewarn "to off. If you are relying on this behavior you will need to update your r10k.yaml" + ewarn "to enable prefixing on a per-source basis." + ewarn + ewarn "Please see the issue (https://github.com/adrienthebo/r10k/issues/48) for more" + ewarn "information." +} diff --git a/app-admin/radmind/Manifest b/app-admin/radmind/Manifest new file mode 100644 index 000000000000..a27446cd5c51 --- /dev/null +++ b/app-admin/radmind/Manifest @@ -0,0 +1 @@ +DIST radmind-1.14.1.tar.gz 403553 SHA256 92ce3d586245b107bf4e412b59eb02ec3e57b4d12a0b9a16b0fadf10983ed21f SHA512 bccf9681a6899be3b500065237dd1e04cd83ffb6f9be0e355412e7b0c556325f7d13435cec65a8a5e156e4411da915744f01a615472f6361d52c4d54d8be20eb WHIRLPOOL ed00a477ec5b35621a2568fba8c2c7913d6f9c18165b13d1405b5a7d5fd8fe0ce89c19f639df5bccbeee3849213d9afa4a3d2eaf58ff461ca35395c30d3a929a diff --git a/app-admin/radmind/files/radmind-1.14.0-parallel-make.patch b/app-admin/radmind/files/radmind-1.14.0-parallel-make.patch new file mode 100644 index 000000000000..63c52ba33066 --- /dev/null +++ b/app-admin/radmind/files/radmind-1.14.0-parallel-make.patch @@ -0,0 +1,50 @@ +--- a/Makefile.in ++++ b/Makefile.in +@@ -204,37 +204,37 @@ + radmind : libsnet/libsnet.la ${RADMIND_OBJ} Makefile + ${CC} ${CFLAGS} -o radmind ${RADMIND_OBJ} ${LDFLAGS} + +-fsdiff : ${FSDIFF_OBJ} ++fsdiff : libsnet/libsnet.la ${FSDIFF_OBJ} + ${CC} ${CFLAGS} -o fsdiff ${FSDIFF_OBJ} ${LDFLAGS} + +-ktcheck: ${KTCHECK_OBJ} ++ktcheck: libsnet/libsnet.la ${KTCHECK_OBJ} + ${CC} ${CFLAGS} -o ktcheck ${KTCHECK_OBJ} ${LDFLAGS} + +-lapply: ${LAPPLY_OBJ} ++lapply: libsnet/libsnet.la ${LAPPLY_OBJ} + ${CC} ${CFLAGS} -o lapply ${LAPPLY_OBJ} ${LDFLAGS} + +-lcksum: ${LCKSUM_OBJ} ++lcksum: libsnet/libsnet.la ${LCKSUM_OBJ} + ${CC} ${CFLAGS} -o lcksum ${LCKSUM_OBJ} ${LDFLAGS} + +-lcreate: ${LCREATE_OBJ} ++lcreate: libsnet/libsnet.la ${LCREATE_OBJ} + ${CC} ${CFLAGS} -o lcreate ${LCREATE_OBJ} ${LDFLAGS} + +-lmerge: ${LMERGE_OBJ} ++lmerge: libsnet/libsnet.la ${LMERGE_OBJ} + ${CC} ${CFLAGS} -o lmerge ${LMERGE_OBJ} ${LDFLAGS} + +-lfdiff: ${LFDIFF_OBJ} ++lfdiff: libsnet/libsnet.la ${LFDIFF_OBJ} + ${CC} ${CFLAGS} -o lfdiff ${LFDIFF_OBJ} ${LDFLAGS} + +-repo : ${REPO_OBJ} ++repo: libsnet/libsnet.la ${REPO_OBJ} + ${CC} ${CFLAGS} -o repo ${REPO_OBJ} ${LDFLAGS} + + t2pkg: ${T2PKG_OBJ} + ${CC} ${CFLAGS} -o t2pkg ${T2PKG_OBJ} ${LDFLAGS} + +-twhich: ${TWHICH_OBJ} ++twhich: libsnet/libsnet.la ${TWHICH_OBJ} + ${CC} ${CFLAGS} -o twhich ${TWHICH_OBJ} ${LDFLAGS} + +-lsort: ${LSORT_OBJ} ++lsort: libsnet/libsnet.la ${LSORT_OBJ} + ${CC} ${CFLAGS} -o lsort ${LSORT_OBJ} ${LDFLAGS} + + FRC : diff --git a/app-admin/radmind/files/radmind-1.7.0-gentoo.patch b/app-admin/radmind/files/radmind-1.7.0-gentoo.patch new file mode 100644 index 000000000000..3fad7b30467c --- /dev/null +++ b/app-admin/radmind/files/radmind-1.7.0-gentoo.patch @@ -0,0 +1,29 @@ +diff -Naur radmind-1.5.0/radmind.conf radmind-1.5.0-r1/radmind.conf +--- radmind-1.5.0/radmind.conf 1970-01-01 01:00:00.000000000 +0100 ++++ radmind-1.5.0-r1/radmind.conf 2005-02-24 23:04:12.379193384 +0100 +@@ -0,0 +1,3 @@ ++# chose server dir here ++# RADMIND_PATH="/srv/radmind" ++# RADMIND_OPTS="-D ${RADMIND_PATH} -p 6666" +diff -Naur radmind-1.5.0/rc.radmind radmind-1.5.0-r1/rc.radmind +--- radmind-1.5.0/rc.radmind 1970-01-01 01:00:00.000000000 +0100 ++++ radmind-1.5.0-r1/rc.radmind 2005-02-24 23:04:12.379193384 +0100 +@@ -0,0 +1,18 @@ ++#!/sbin/runscript ++ ++depend (){ ++ need net ++} ++ ++start(){ ++ ebegin "Starting radmind server" ++ start-stop-daemon --start --quiet --exec /usr/sbin/radmind \ ++ -- ${RADMIND_OPTS} ++ eend $? ++} ++ ++stop() { ++ ebegin "Stopping radmind" ++ start-stop-daemon --stop --quiet --exec /usr/sbin/radmind ++ eend $? ++} diff --git a/app-admin/radmind/files/radmind-1.7.1-dnssd.patch b/app-admin/radmind/files/radmind-1.7.1-dnssd.patch new file mode 100644 index 000000000000..fe71ee013d1b --- /dev/null +++ b/app-admin/radmind/files/radmind-1.7.1-dnssd.patch @@ -0,0 +1,22 @@ +diff -ru radmind-1.7.1~/configure radmind-1.7.1/configure +--- radmind-1.7.1~/configure 2007-02-10 19:20:01.000000000 +0100 ++++ radmind-1.7.1/configure 2007-02-10 19:22:04.000000000 +0100 +@@ -5265,12 +5265,12 @@ + echo "${ECHO_T}$ac_cv_header_dns_sd_h" >&6 + + fi +-if test $ac_cv_header_dns_sd_h = yes; then +- cat >>confdefs.h <<\_ACEOF +-#define HAVE_DNSSD 1 +-_ACEOF +- +-fi ++#if test $ac_cv_header_dns_sd_h = yes; then ++# cat >>confdefs.h <<\_ACEOF ++##define HAVE_DNSSD 1 ++#_ACEOF ++# ++#fi + + + diff --git a/app-admin/radmind/metadata.xml b/app-admin/radmind/metadata.xml new file mode 100644 index 000000000000..c5692ac1bf6c --- /dev/null +++ b/app-admin/radmind/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>netmon</herd> + <longdescription>A suite of Unix command-line tools and a server designed to remotely administer +the file systems of multiple Unix machines.</longdescription> + <upstream> + <remote-id type="sourceforge">radmind</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/radmind/radmind-1.14.1.ebuild b/app-admin/radmind/radmind-1.14.1.ebuild new file mode 100644 index 000000000000..4551dc1c580d --- /dev/null +++ b/app-admin/radmind/radmind-1.14.1.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils + +DESCRIPTION="command-line tools and server to remotely administer multiple Unix filesystems" +HOMEPAGE="http://rsug.itd.umich.edu/software/radmind/" +SRC_URI="mirror://sourceforge/radmind/${P}.tar.gz" + +LICENSE="HPND" +SLOT="0" +KEYWORDS="~amd64 x86" + +DEPEND="dev-libs/openssl" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-1.7.0-gentoo.patch + # remove dnssd as it doesn't compile + epatch "${FILESDIR}"/${PN}-1.7.1-dnssd.patch + epatch "${FILESDIR}"/${PN}-1.14.0-parallel-make.patch +} + +src_install() { + default + dodoc README VERSION COPYRIGHT +} diff --git a/app-admin/ranpwd/Manifest b/app-admin/ranpwd/Manifest new file mode 100644 index 000000000000..533bd51e9feb --- /dev/null +++ b/app-admin/ranpwd/Manifest @@ -0,0 +1 @@ +DIST ranpwd-1.2.tar.gz 41018 SHA256 b63cc1a621966a3bfabc83803c32617ef8caf5b7687042ac1b0eee04b8b79507 SHA512 7ae8ff593623a2102e50fbb3356889291408263100a358de14bd44b13c1d2931bf0e1e8ec972a620b8328a179a38a0d614099ffea2473079f9ed2425809a922f WHIRLPOOL d2cba9af972ee81d2758ca90c1860e61b05fd4a6c9dd8284eb7ebacfd3f2ed94e072e57092aaf35797b4ce3b9c88ca45012b9bb2606adad84d5099c71827e7e6 diff --git a/app-admin/ranpwd/metadata.xml b/app-admin/ranpwd/metadata.xml new file mode 100644 index 000000000000..d3bec776e095 --- /dev/null +++ b/app-admin/ranpwd/metadata.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>crypto</herd> +<longdescription></longdescription> +</pkgmetadata> diff --git a/app-admin/ranpwd/ranpwd-1.2.ebuild b/app-admin/ranpwd/ranpwd-1.2.ebuild new file mode 100644 index 000000000000..c0c8ba541c97 --- /dev/null +++ b/app-admin/ranpwd/ranpwd-1.2.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=3 + +DESCRIPTION="Generate random passwords using the in-kernel cryptographically secure random number generator" +HOMEPAGE="http://www.kernel.org/pub/software/utils/admin/ranpwd/" +SRC_URI="mirror://kernel/software/utils/admin/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ia64 ppc ppc64 x86" +IUSE="" + +DEPEND="" +RDEPEND="" + +src_test() { + einfo "generating random passwords" + for a in 1 2 3 4 5 6 7 8 9 + do + ./ranpwd $(($a * 10)) + done +} + +src_install() { + emake INSTALLROOT="${D}" install || die +} diff --git a/app-admin/recursos/Manifest b/app-admin/recursos/Manifest new file mode 100644 index 000000000000..2cf42ccc9c66 --- /dev/null +++ b/app-admin/recursos/Manifest @@ -0,0 +1 @@ +DIST recursos-2.0.tbz2 29480 SHA256 031e2b2cae9c86ce828b609c30ca24d32ddcfa13c53b15f35388ad9da6ec1520 SHA512 391bd253b62cbc2afbf054baa368bef5f7847624889188829557244f132bf484d4d4652a8c524da95ae3b39909fbdc37796eb325839bcd5e8982f7dcb6cd89e4 WHIRLPOOL 696de8f5c5d205d21630aa5ee95818d12c313d53b65e63d6b69defa41c38d0e5b63f72c067b4535690f41ead9cd4e74b12b7c89605d9b25fd487041a7fb03cf2 diff --git a/app-admin/recursos/metadata.xml b/app-admin/recursos/metadata.xml new file mode 100644 index 000000000000..73490c4cea00 --- /dev/null +++ b/app-admin/recursos/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> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <longdescription> + A set of script to extrac usefull info about your system and report it + in plain text or html. It can generate Grpahs using rrdtools. + </longdescription> +</pkgmetadata> diff --git a/app-admin/recursos/recursos-2.0.ebuild b/app-admin/recursos/recursos-2.0.ebuild new file mode 100644 index 000000000000..b22333e174d2 --- /dev/null +++ b/app-admin/recursos/recursos-2.0.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +DESCRIPTION="Script to create html and text report about your system" +HOMEPAGE="http://www.josealberto.org" +SRC_URI="mirror://gentoo/${P}.tbz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND="|| ( media-gfx/imagemagick media-gfx/graphicsmagick[imagemagick] ) + app-shells/bash + net-analyzer/rrdtool[graph]" + +S=${WORKDIR}/r2 + +src_install() { + WWWDIR="/var/www/localhost/htdocs/R2" + + insinto /etc + doins recursos2.conf + + dobin R2createrrd.sh R2generarrd.sh R2updaterrd.sh Recursos2.sh + + dodir ${WWWDIR} + insinto ${WWWDIR} + doins R2/*.html + + dodir ${WWWDIR}/common + insinto ${WWWDIR}/common + doins R2/common/* + + dodir ${WWWDIR}/rrd/mini +} + +pkg_postinst() { + elog "Fist you must configure /etc/recursos2.conf" + elog "Then follow these steps:" + elog + elog "1. Run R2createrrd.sh" + elog + elog "2. Add crontab jobs (this is an example):" + elog "*/2 * * * * root /usr/bin/R2updaterrd.sh" + elog "*/5 * * * * root /usr/bin/R2generarrd.sh" + elog "*/10 * * * * root /usr/bin/Recursos2.sh \ " + elog " title general system disks net \ " + elog " > /var/www/localhost/htdocs/recursos.html" + elog + elog "You can use Recursos2.sh to extract info about your system" + elog "in html or plain text and mail the file or whatever." + elog +} diff --git a/app-admin/reportmagic/Manifest b/app-admin/reportmagic/Manifest new file mode 100644 index 000000000000..258dedbc68f5 --- /dev/null +++ b/app-admin/reportmagic/Manifest @@ -0,0 +1 @@ +DIST rmagic-2.21.tar.gz 451179 SHA256 a3e9276634e25cee08c7a309a98a61eec6a5af15ca8a75653b40b98ead35e69f SHA512 ed9f4e6f8d6160afbe138125c4cb65010a08b95390117ebf07ccde289ff42b78664b1fe677e23f46a221d153889f807c545329936829fceeae4690b00732a637 WHIRLPOOL f3c3a0e0d00deaaeae9d4c1b49aeb533838585f7596cc1ffa197da8e9762140f8b3ed73f56f226241b96c398c739a7d8410b47c27fcca59cc22a85393cf022bf diff --git a/app-admin/reportmagic/metadata.xml b/app-admin/reportmagic/metadata.xml new file mode 100644 index 000000000000..89915e672570 --- /dev/null +++ b/app-admin/reportmagic/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <longdescription lang="en"> + A report generating applicaton from web site log files. + </longdescription> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + <name>Default assignee for orphaned packages</name> + </maintainer> +</pkgmetadata> diff --git a/app-admin/reportmagic/reportmagic-2.21.ebuild b/app-admin/reportmagic/reportmagic-2.21.ebuild new file mode 100644 index 000000000000..cc9b2c952bc8 --- /dev/null +++ b/app-admin/reportmagic/reportmagic-2.21.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="Makes usable statistics from your web site log file analysis" +HOMEPAGE="http://www.reportmagic.org/" +SRC_URI="http://www.reportmagic.org/rmagic-${PV}.tar.gz" + +LICENSE="Artistic" +SLOT="0" +KEYWORDS="x86 ppc amd64" +IUSE="truetype" + +DEPEND="sys-libs/zlib + media-libs/libpng + media-libs/gd + truetype? ( media-libs/freetype ) + virtual/jpeg + dev-perl/GD + dev-perl/Config-IniFiles + virtual/perl-File-Spec + dev-perl/HTML-Tagset + dev-perl/HTML-Parser + dev-perl/GDGraph + virtual/perl-File-Temp + dev-perl/GD-Graph3d" + +S="${WORKDIR}/rmagic-${PV}" + +src_unpack() { + unpack ${A} ; cd "${S}" + + sed -i \ + -e "s:^\$DEST.*:\$DEST='${D}/usr/share/reportmagic';:g" \ + -e "s:^\$DOC.*:\$DOC='${D}/usr/share/doc/${PF}';:g" \ + Install.PL \ + || die "sed failed" +} + +src_install() { + perl Install.PL -no_modules +} diff --git a/app-admin/restart_services/Manifest b/app-admin/restart_services/Manifest new file mode 100644 index 000000000000..66ab15b3059f --- /dev/null +++ b/app-admin/restart_services/Manifest @@ -0,0 +1,2 @@ +DIST restart_services-0.10.0.tgz 19786 SHA256 207a0861084b0e18dd1098f46b2fa502d2fc6cd08048cf6e490d8b62efadfcbc SHA512 dcd171bc584998b36316229e426f142a9cd93c42310e8d58e0b1d3561b2b09ce817b22703dd8aba3f8dcea7ebf1a469c26a80582fc7579d73eff0c5e5104fb34 WHIRLPOOL 24b1c036f55b6bd1807a135f21dce1cdb8b4a2189913f00b060b05dc3ef57051d333a1b51274f3b7f0fc19e0871b0f900354aa385d3e79b099b243f98951dd61 +DIST restart_services-0.11.0.tgz 20259 SHA256 60a14c500126782704fc016f09fce708da53c4f4e786f5630e789e4166d50620 SHA512 f5b987938e9f2e04febd1a8e9009696aba05e087f6cfd2f2b9eb15f95067c17de696357b0c91360f9591e9376870bf867e1455ac74a6024cbaa864825a811856 WHIRLPOOL 0d5b6b4e5e8f00c75cabeb7bcc1e9b369937fa46a0804e6061ed3dfbd4040c9836da725a55475b1231d1b867f47b782ec5bcb70dd4b4fa2caf31ff55515a3f92 diff --git a/app-admin/restart_services/metadata.xml b/app-admin/restart_services/metadata.xml new file mode 100644 index 000000000000..ea7bd021a21e --- /dev/null +++ b/app-admin/restart_services/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> + <email>mschiff@gentoo.org</email> + <name>Marc Schiffbauer</name> + </maintainer> +</pkgmetadata> diff --git a/app-admin/restart_services/restart_services-0.10.0.ebuild b/app-admin/restart_services/restart_services-0.10.0.ebuild new file mode 100644 index 000000000000..6b1d9fd93ab9 --- /dev/null +++ b/app-admin/restart_services/restart_services-0.10.0.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="Tool to manage OpenRC services that need to be restarted" +HOMEPAGE="http://dev.gentoo.org/~mschiff/restart_services/" +SRC_URI="http://dev.gentoo.org/~mschiff/src/${PN}/${P}.tgz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND=" + app-admin/lib_users + sys-apps/openrc +" + +src_install() { + dosbin restart_services + doman restart_services.1 + insinto /etc + doins restart_services.conf + dodoc README CHANGES +} diff --git a/app-admin/restart_services/restart_services-0.11.0.ebuild b/app-admin/restart_services/restart_services-0.11.0.ebuild new file mode 100644 index 000000000000..6b1d9fd93ab9 --- /dev/null +++ b/app-admin/restart_services/restart_services-0.11.0.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="Tool to manage OpenRC services that need to be restarted" +HOMEPAGE="http://dev.gentoo.org/~mschiff/restart_services/" +SRC_URI="http://dev.gentoo.org/~mschiff/src/${PN}/${P}.tgz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND=" + app-admin/lib_users + sys-apps/openrc +" + +src_install() { + dosbin restart_services + doman restart_services.1 + insinto /etc + doins restart_services.conf + dodoc README CHANGES +} diff --git a/app-admin/rex/Manifest b/app-admin/rex/Manifest new file mode 100644 index 000000000000..8b2d0b171131 --- /dev/null +++ b/app-admin/rex/Manifest @@ -0,0 +1,3 @@ +DIST Rex-1.0.0.tar.gz 261873 SHA256 894ba5128842b33cbc5dfeabdbeded18f303d2efbb082d08c9fceb38a7a0217b SHA512 53eb51e88e466f9dc429da828e3745c074eac1e1f1ba02f5c4f058358f071cd6eb71a95d56f65bd9b0e142aa824b2c660b7e7fe83c9ecd742dec12c3a4b642d4 WHIRLPOOL dc6b0dcd6ef3b1de4a7839a47054481b036bbd5395702c110e7760173797428b24d198bd50d8975045bd740a6180278bc34eef57c827e4d6a17a316577f16608 +DIST Rex-1.2.0.tar.gz 267664 SHA256 26a222bf418950b94b53c22c5fe87828a1503d6794a5516759914c5925f5f6fb SHA512 68467d00b6acdedd6b92dd51a8a6b42e3acf92fd28713a7ee7137744cd071b681e2e8f2fc5cf45df8979bdb78e9b49d2dbd52db7505f8aa9169b18e94e38719d WHIRLPOOL 453330d69b4a8e7e5f689fd10797233948a32fc239025fe68196ee2bfcd71f762f80e008e959cec209da58c8e1bb9be9ac66abaea9efe3bd70b4fcd38f903a8e +DIST Rex-1.3.2.tar.gz 271446 SHA256 49be858e2ae51dda2fa2769b5e824ca2b5b7605f3b7e6c2f613b889e132e34b0 SHA512 589383b5a2c993e775be12ecd7b6ed5b525bd1f503311592bb302dd8558f5e0221fae6b459d4b52be418cb423fd294a759a63fce918b260e7c90fa153df0525a WHIRLPOOL ace24f03fc5ee5cb5b58bc14d4eb60f18598df645ad4c39260797012e2ecd2c40f72b3875f63dd5b4213990a6de817abcd511ade5d2928110072719e8b9c8ee2 diff --git a/app-admin/rex/metadata.xml b/app-admin/rex/metadata.xml new file mode 100644 index 000000000000..636bea348b32 --- /dev/null +++ b/app-admin/rex/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>proxy-maintainers</herd> + <maintainer> + <email>erkiferenc@gmail.com</email> + <name>Ferenc Erki</name> + </maintainer> + <maintainer> + <email>patrick@gentoo.org</email> + <name>Patrick Lauer</name> + </maintainer> +</pkgmetadata> diff --git a/app-admin/rex/rex-1.0.0.ebuild b/app-admin/rex/rex-1.0.0.ebuild new file mode 100644 index 000000000000..dc21bdf49dff --- /dev/null +++ b/app-admin/rex/rex-1.0.0.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +MODULE_AUTHOR=JFRIED +MODULE_VERSION=0.53.1 +MODULE_A=Rex-${PV}.tar.gz + +inherit perl-module + +DESCRIPTION="(R)?ex is a small script to ease the execution of remote commands" + +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="dev-perl/Net-SSH2" +DEPEND="${RDEPEND} + dev-perl/JSON-XS + dev-perl/XML-Simple + dev-perl/Digest-SHA1 + dev-perl/Digest-HMAC + dev-perl/Expect + dev-perl/DBI + dev-perl/yaml + dev-perl/libwww-perl + dev-perl/String-Escape + dev-perl/List-MoreUtils + dev-perl/Parallel-ForkManager + dev-perl/Text-Glob" + +SRC_TEST="do" + +S="${WORKDIR}/Rex-${PV}" diff --git a/app-admin/rex/rex-1.2.0.ebuild b/app-admin/rex/rex-1.2.0.ebuild new file mode 100644 index 000000000000..24548e328fd7 --- /dev/null +++ b/app-admin/rex/rex-1.2.0.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +MODULE_AUTHOR=JFRIED +MODULE_VERSION=0.53.1 +MODULE_A=Rex-${PV}.tar.gz + +inherit perl-module + +DESCRIPTION="(R)?ex is a small script to ease the execution of remote commands" + +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="dev-perl/Net-SSH2" +DEPEND="${RDEPEND} + dev-perl/JSON-XS + dev-perl/XML-Simple + dev-perl/Digest-SHA1 + dev-perl/Digest-HMAC + dev-perl/Expect + dev-perl/DBI + dev-perl/yaml + dev-perl/libwww-perl + dev-perl/String-Escape + dev-perl/List-MoreUtils + dev-perl/Parallel-ForkManager + dev-perl/Text-Glob + dev-perl/Sort-Naturally + dev-perl/TermReadKey + dev-perl/Hash-Merge" + +SRC_TEST="do" + +S="${WORKDIR}/Rex-${PV}" diff --git a/app-admin/rex/rex-1.3.2-r1.ebuild b/app-admin/rex/rex-1.3.2-r1.ebuild new file mode 100644 index 000000000000..561ea9dd61ee --- /dev/null +++ b/app-admin/rex/rex-1.3.2-r1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +MODULE_AUTHOR=FERKI +MODULE_A=Rex-${PV}.tar.gz + +inherit perl-module + +DESCRIPTION="(R)?ex is a small script to ease the execution of remote commands" + +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RDEPEND=" + dev-perl/DBI + dev-perl/Digest-HMAC + dev-perl/Digest-SHA1 + dev-perl/Expect + dev-perl/Hash-Merge + dev-perl/IO-String + dev-perl/IO-Tty + dev-perl/IPC-Shareable + dev-perl/JSON-XS + dev-perl/List-MoreUtils + dev-perl/Net-OpenSSH + dev-perl/Net-SFTP-Foreign + dev-perl/Parallel-ForkManager + dev-perl/Sort-Naturally + dev-perl/String-Escape + dev-perl/TermReadKey + dev-perl/Text-Glob + dev-perl/URI + dev-perl/XML-LibXML + dev-perl/XML-Simple + dev-perl/libwww-perl + dev-perl/yaml + virtual/perl-Carp + virtual/perl-Data-Dumper + virtual/perl-Digest-MD5 + virtual/perl-Exporter + virtual/perl-File-Spec + virtual/perl-MIME-Base64 + virtual/perl-Scalar-List-Utils + virtual/perl-Storable + virtual/perl-Time-HiRes +" + +DEPEND=" + ${RDEPEND} + test? ( + dev-perl/Test-UseAllModules + virtual/perl-File-Temp + ) +" + +SRC_TEST="do" + +S="${WORKDIR}/Rex-${PV}" diff --git a/app-admin/rex/rex-1.3.2.ebuild b/app-admin/rex/rex-1.3.2.ebuild new file mode 100644 index 000000000000..aa51dd46e12d --- /dev/null +++ b/app-admin/rex/rex-1.3.2.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +MODULE_AUTHOR=FERKI +MODULE_VERSION=0.53.1 +MODULE_A=Rex-${PV}.tar.gz + +inherit perl-module + +DESCRIPTION="(R)?ex is a small script to ease the execution of remote commands" + +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="dev-perl/Net-SSH2" +DEPEND="${RDEPEND} + dev-perl/JSON-XS + dev-perl/XML-Simple + dev-perl/Digest-SHA1 + dev-perl/Digest-HMAC + dev-perl/Expect + dev-perl/DBI + dev-perl/yaml + dev-perl/libwww-perl + dev-perl/String-Escape + dev-perl/List-MoreUtils + dev-perl/Parallel-ForkManager + dev-perl/Text-Glob + dev-perl/Test-UseAllModules + dev-perl/Sort-Naturally + dev-perl/TermReadKey + dev-perl/Hash-Merge + dev-perl/IO-String" + +SRC_TEST="do" + +S="${WORKDIR}/Rex-${PV}" diff --git a/app-admin/rigo/Manifest b/app-admin/rigo/Manifest new file mode 100644 index 000000000000..520d012e476c --- /dev/null +++ b/app-admin/rigo/Manifest @@ -0,0 +1 @@ +DIST entropy-254.tar.bz2 18516662 SHA256 5e411472eaf7016a68a4aa81ef92dd3aad8403fc65a0ffb09c57b91c959ca3a6 SHA512 3b3e82abad8008720e370b7892b7be1c48aaa6605914db977f68b9a108ada0a4adbaa5b7b50a9a02ba9c8b0bdefadcda1eceee2c7c2abc385b3daf669649e2da WHIRLPOOL 593469b858707e4ceca56146fa1d608141e44dda0a0921ed6a3ec566878c1e3c153410233f088d57db4f8bd9d1c796bd945cbea3ba455572efc05eca42023ce5 diff --git a/app-admin/rigo/metadata.xml b/app-admin/rigo/metadata.xml new file mode 100644 index 000000000000..187f7a710efe --- /dev/null +++ b/app-admin/rigo/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> + <email>lxnay@gentoo.org</email> + <name>Fabio Erculiani</name> + </maintainer> + <use> + </use> +</pkgmetadata> + diff --git a/app-admin/rigo/rigo-254.ebuild b/app-admin/rigo/rigo-254.ebuild new file mode 100644 index 000000000000..13c04a556fc0 --- /dev/null +++ b/app-admin/rigo/rigo-254.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils gnome2-utils fdo-mime python-single-r1 + +DESCRIPTION="Rigo, the Sabayon Application Browser" +HOMEPAGE="http://www.sabayon.org" +LICENSE="GPL-3" + +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="" + +SRC_URI="mirror://sabayon/sys-apps/entropy-${PV}.tar.bz2" +S="${WORKDIR}/entropy-${PV}/rigo" + +DEPEND="${PYTHON_DEPS}" +RDEPEND="${PYTHON_DEPS} + || ( dev-python/pygobject-cairo:3 dev-python/pygobject:3[cairo] ) + ~sys-apps/entropy-${PV}[${PYTHON_USEDEP}] + ~sys-apps/rigo-daemon-${PV}[${PYTHON_USEDEP}] + sys-devel/gettext + x11-libs/gtk+:3 + x11-libs/vte:2.90 + >=x11-misc/xdg-utils-1.1.0_rc1_p20120319" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +src_install() { + emake DESTDIR="${D}" install || die "make install failed" + + python_optimize "${D}/usr/lib/rigo/${PN}" +} + +pkg_postinst() { + fdo-mime_mime_database_update + fdo-mime_desktop_database_update +} + +pkg_postrm() { + fdo-mime_mime_database_update + fdo-mime_desktop_database_update +} diff --git a/app-admin/rsyslog/Manifest b/app-admin/rsyslog/Manifest new file mode 100644 index 000000000000..c2219c314860 --- /dev/null +++ b/app-admin/rsyslog/Manifest @@ -0,0 +1,4 @@ +DIST rsyslog-8.7.0.tar.gz 2003365 SHA256 c77125b67a623569c9bdca8136b9aac013f1c6fd82fb8595e3ea267e61800f9c SHA512 53feac42c14134d76f5592ee491bb56fb2c4c33822a7a5609a5267b6911a5c5c4e73c5d66a913a666967d8826ee3077b91d8d2a1d1b60bcb3d425b35ec4677b0 WHIRLPOOL c74c401de68bb59310e307a0d9859d2f58bcbf8126d637d23d4f3979a0d6c69bce8ca850c2942b43f311ea83f47c9554f34e5dc10623d32324da1b18023d357d +DIST rsyslog-8.9.0.tar.gz 2022294 SHA256 eab00e8e758cd9dd33b3e2cf6af80297d1951dc7db37bd723a6488a35d577adc SHA512 942cccc2cbe147572cc2d346ac330d80c86915757b2b7a380829f0b40294d7e4afd4887d5066821af1e059cd78cdb38520fc9d28b55daa7afcd0e5b2e6bd9a5d WHIRLPOOL cc072a64364f38d98187e7102e5be0277011071ce90a510a641aea6a5b3573a436e6539c5688b24d12a9654786892070c1518093e0176e5a40bea57f7dded133 +DIST rsyslog-doc-8.7.0.tar.gz 4105507 SHA256 f131bfb963eed4fe74d7336ee5261876b436004b78994d47523a82c0f7d666a8 SHA512 9b5b6f28a55b58c956ca614301fc9667243d02c321f8b4071264e4040dd8fe79ba7eb5a08912e2a229bdcf12f68eec24f1c65ba7b82ccd60c8e70d34267b8405 WHIRLPOOL 386ad5164768a5a4919ba5acda29f3ef670b78cc9d6845e3c8ee252b43d6622c19c7f8ec1edd7d0f1d111bf2c06d29fb5dbf9af6b46c426932ae6caa0e63c30c +DIST rsyslog-doc-8.9.0.tar.gz 4100654 SHA256 d3c6747439fabbfa976922ca26ffa695778668e757261e00103f2444cf153afa SHA512 dbc6dfc43f3a75ba671969d2fd59080d96e411a62a2ac91444d076acba548b2c87000f9822fa0af82f22b4f5c098273d407c1e665ce4b24a52dbddfdc9ab981f WHIRLPOOL 550d499ec556a75344d25331aa1df1855f6f70e2e702c086a8ecbf1817eb1f4bc3b94224b77491f3bc1f6c758a22475c248f8afdfc25816132dfedd81c6dfee0 diff --git a/app-admin/rsyslog/files/8-stable/10-respect_CFLAGS-r1.patch b/app-admin/rsyslog/files/8-stable/10-respect_CFLAGS-r1.patch new file mode 100644 index 000000000000..de89e6708c1f --- /dev/null +++ b/app-admin/rsyslog/files/8-stable/10-respect_CFLAGS-r1.patch @@ -0,0 +1,15 @@ +diff --git a/configure.ac b/configure.ac +index bebb399..5003f10 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -792,8 +792,8 @@ if test "x$enable_rsyslogrt" = "xyes"; then + fi + AM_CONDITIONAL(ENABLE_RSYSLOGRT, test x$enable_rsyslogrt = xyes) + RSRT_CFLAGS="\$(RSRT_CFLAGS1) \$(LIBESTR_CFLAGS) \$(JSON_C_CFLAGS)" +-if test "$GCC" = "yes" +-then RSRT_CFLAGS="$RSRT_CFLAGS -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -Werror=implicit-function-declaration -g" ++if test "$GCC" = "yes"; then ++ RSRT_CFLAGS="$RSRT_CFLAGS -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -Werror=implicit-function-declaration" + fi + RSRT_LIBS="\$(RSRT_LIBS1) \$(LIBESTR_LIBS) \$(JSON_C_LIBS)" + AC_SUBST(RSRT_CFLAGS1) diff --git a/app-admin/rsyslog/files/8-stable/10-respect_CFLAGS.patch b/app-admin/rsyslog/files/8-stable/10-respect_CFLAGS.patch new file mode 100644 index 000000000000..c74279bfdedc --- /dev/null +++ b/app-admin/rsyslog/files/8-stable/10-respect_CFLAGS.patch @@ -0,0 +1,11 @@ +--- configure.old 2014-10-02 15:41:45.692471540 +0200 ++++ configure.ac 2014-10-02 15:42:11.122743182 +0200 +@@ -835,7 +835,7 @@ + AM_CONDITIONAL(ENABLE_RSYSLOGRT, test x$enable_rsyslogrt = xyes) + RSRT_CFLAGS="\$(RSRT_CFLAGS1) \$(LIBESTR_CFLAGS) \$(JSON_C_CFLAGS)" + if test "$GCC" = "yes" +-then RSRT_CFLAGS="$RSRT_CFLAGS -W -std=c99 -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g" ++then RSRT_CFLAGS="$RSRT_CFLAGS -W -std=c99 -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute" + fi + RSRT_LIBS="\$(RSRT_LIBS1) \$(LIBESTR_LIBS) \$(JSON_C_LIBS)" + AC_SUBST(RSRT_CFLAGS1) diff --git a/app-admin/rsyslog/files/8-stable/50-default.conf b/app-admin/rsyslog/files/8-stable/50-default.conf new file mode 100644 index 000000000000..9ae8578215bb --- /dev/null +++ b/app-admin/rsyslog/files/8-stable/50-default.conf @@ -0,0 +1,95 @@ +####################### +### DEFAULT ACTIONS ### +####################### + +auth,authpriv.* action( + type="omfile" + File="/var/log/auth.log" + FileCreateMode="0600" + FileOwner="root" + FileGroup="adm" + Sync="off" +) + +cron.* action( + type="omfile" + File="/var/log/cron.log" + FileOwner="root" + FileGroup="adm" +) + +daemon.* action( + type="omfile" + File="/var/log/daemon.log" + FileOwner="root" + FileGroup="adm" +) + +kern.* action( + type="omfile" + File="/var/log/kern.log" + FileOwner="root" + FileGroup="adm" +) + +lpr.* action( + type="omfile" + File="/var/log/lpr.log" + FileOwner="root" + FileGroup="adm" +) + +mail.* action( + type="omfile" + File="/var/log/mail.log" + FileOwner="root" + FileGroup="adm" +) + +news.* action( + type="omfile" + File="/var/log/news.log" + FileOwner="root" + FileGroup="adm" +) + +user.* action( + type="omfile" + File="/var/log/user.log" + FileOwner="root" + FileGroup="adm" +) + +*.=debug;auth,authpriv,news,mail.none action( + type="omfile" + File="/var/log/debug.log" + FileOwner="root" + FileGroup="adm" +) + +*.info;auth,authpriv,cron,daemon,lpr,mail,news.none action( + type="omfile" + File="/var/log/messages" + FileOwner="root" + FileGroup="adm" +) + +# Uncomment the following directive to re-enable the +# deprecated "/var/log/syslog" log file (don't forget to re-enable log +# rotation in "/etc/logrotate.d/rsyslog" if you do that!) +#*.*;auth,authpriv.none action( +# type="omfile" +# File="/var/log/syslog" +# FileOwner="root" +# FileGroup="adm" +#) + +*.emerg action( + type="omusrmsg" + Users="*" + action.execOnlyOnceEveryInterval="10" +) + +# Create an additional socket for the default chroot location +# (used by net-misc/openssh[hpn], see https://bugs.gentoo.org/490744) +input(type="imuxsock" Socket="/var/empty/dev/log") diff --git a/app-admin/rsyslog/files/8-stable/50-rsyslog-add-option-to-disable-valgrind-usage-in-testbench.patch b/app-admin/rsyslog/files/8-stable/50-rsyslog-add-option-to-disable-valgrind-usage-in-testbench.patch new file mode 100644 index 000000000000..77d7919c6188 --- /dev/null +++ b/app-admin/rsyslog/files/8-stable/50-rsyslog-add-option-to-disable-valgrind-usage-in-testbench.patch @@ -0,0 +1,56 @@ +From 2945539d12bbb79c44fd4402e87150b4ec58af25 Mon Sep 17 00:00:00 2001 +From: Thomas D. +Date: Tue, 24 Mar 2015 02:03:13 +0100 +Subject: [PATCH] Add option to disable valgrind usage in testbench + +Temporary workaround for https://github.com/rsyslog/rsyslog/issues/263 + +--- + configure.ac | 27 +++++++++++++++++++++++---- + 1 file changed, 23 insertions(+), 4 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 0c72f80..cdfdd25 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -13,10 +13,6 @@ AC_CONFIG_HEADERS([config.h]) + + AC_USE_SYSTEM_EXTENSIONS + +-# check if valgrind is present +-AC_CHECK_PROG(have_valgrind, [valgrind], [yes]) +-AM_CONDITIONAL(HAVE_VALGRIND, test x$have_valgrind = xyes) +- + # Checks for programs. + AC_PROG_LEX + AC_PROG_YACC +@@ -1125,6 +1121,29 @@ if test "x$enable_testbench" = "xyes"; then + fi + + ++# valgrind-testbench ++AC_ARG_WITH([valgrind_testbench], ++ [AS_HELP_STRING([--without-valgrind-testbench], [Don't use valgrind in testbench])] ++) ++ ++if test "x$with_valgrind_testbench" != "xno"; then ++ AC_CHECK_PROG(VALGRIND, [valgrind], [valgrind], [no]) ++ ++ if test "x$enable_testbench" = "xyes" && test "x$VALGRIND" = "xno"; then ++ if test "x$with_valgrind_testbench" = "xyes"; then ++ AC_MSG_ERROR([valgrind is missing but forced with --with-valgrind-testbench. Either install valgrind or remove the option!]) ++ else ++ AC_MSG_WARN([valgrind is missing -- testbench won't use valgrind!]) ++ fi ++ else ++ AC_MSG_NOTICE([testbench will use valgrind]) ++ fi ++else ++ AC_MSG_NOTICE([testbench won't use valgrind due to set --without-valgrind-testbench option]) ++fi ++AM_CONDITIONAL([HAVE_VALGRIND], [test "x$with_valgrind_testbench" != "xno" && test "x$VALGRIND" != "xno"]) ++ ++ + # settings for the file input module + AC_ARG_ENABLE(imfile, + [AS_HELP_STRING([--enable-imfile],[file input module enabled @<:@default=no@:>@])], diff --git a/app-admin/rsyslog/files/8-stable/50-rsyslog-fix-size-based-legacy-config-statements.patch b/app-admin/rsyslog/files/8-stable/50-rsyslog-fix-size-based-legacy-config-statements.patch new file mode 100644 index 000000000000..67a2f0616f32 --- /dev/null +++ b/app-admin/rsyslog/files/8-stable/50-rsyslog-fix-size-based-legacy-config-statements.patch @@ -0,0 +1,31 @@ +From 3b7bd0b7a7f0f5f1bf7609bdf34e7d9a32608ea6 Mon Sep 17 00:00:00 2001 +From: Rainer Gerhards <rgerhards@adiscon.com> +Date: Tue, 17 Mar 2015 11:50:06 +0100 +Subject: [PATCH] bugfix: size-based legacy config statements did not work + properly + +on some platforms they misadressed memory, which could also lead +to a segfault on startup. The problem is NOT experience on amd686 +in 64bit builds -- that's probably the reason this bug was uncovered +very late. We assume, it's present in all v8 versions. + +Thanks to Michael Biebl for alerting us of it. + +closes https://github.com/rsyslog/rsyslog/issues/270 +--- + runtime/cfsysline.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/runtime/cfsysline.c b/runtime/cfsysline.c +index 36d4679..b441a48 100644 +--- a/runtime/cfsysline.c ++++ b/runtime/cfsysline.c +@@ -161,7 +161,7 @@ static rsRetVal parseIntVal(uchar **pp, int64 *pVal) + * param value must be int64! + * rgerhards, 2008-01-09 + */ +-static rsRetVal doGetSize(uchar **pp, rsRetVal (*pSetHdlr)(void*, uid_t), void *pVal) ++static rsRetVal doGetSize(uchar **pp, rsRetVal (*pSetHdlr)(void*, int64), void *pVal) + { + DEFiRet; + int64 i; diff --git a/app-admin/rsyslog/files/8-stable/50-rsyslog-run-queue-persist-test-only-once.patch b/app-admin/rsyslog/files/8-stable/50-rsyslog-run-queue-persist-test-only-once.patch new file mode 100644 index 000000000000..d2ded2228983 --- /dev/null +++ b/app-admin/rsyslog/files/8-stable/50-rsyslog-run-queue-persist-test-only-once.patch @@ -0,0 +1,22 @@ +From 31a5edc9be63de42f68825ff8e4d683534664a68 Mon Sep 17 00:00:00 2001 +From: Thomas D. +Date: Sun, 8 Mar 2015 21:05:03 +0100 +Subject: [PATCH] tests: Run queue-persist.sh only once + +queue-persist.sh was called twice in Makefile. +--- + tests/Makefile.am | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/tests/Makefile.am b/tests/Makefile.am +index 7575b84..9824e7e 100644 +--- a/tests/Makefile.am ++++ b/tests/Makefile.am +@@ -83,7 +83,6 @@ TESTS += \ + imuxsock_logger_root.sh \ + imuxsock_traillf_root.sh \ + imuxsock_ccmiddle_root.sh \ +- queue-persist.sh \ + discard-rptdmsg.sh \ + discard-allmark.sh \ + discard.sh \ diff --git a/app-admin/rsyslog/files/8-stable/README.gentoo b/app-admin/rsyslog/files/8-stable/README.gentoo new file mode 100644 index 000000000000..9f0666c86b0a --- /dev/null +++ b/app-admin/rsyslog/files/8-stable/README.gentoo @@ -0,0 +1,36 @@ +Introduction +============ + +Since rsyslog version 7.6 we are shipping a new default Gentoo +configuration. See bug #501982 to learn more about what we were trying to +achieve by rewriting the entire configuration. + + +Important changes +================= + +1. "/var/log/syslog" log file is now deprecated + + Beginning with rsyslog-7.6, the "/var/log/syslog" log file will no + longer being written per default. We are considering this file as + deprecated/obsolet for the typical user/system. + The content from this log file is still availble through other + (dedicated) log files, see + + - /var/log/cron.log + - /var/log/daemon.log + - /var/log/mail.log + - /var/log/messages + + If you really need the old "/var/log/syslog" log file, all you have to + do is uncommenting the corresponding configuration directive in + "/etc/rsyslog.d/50-default.conf". + + If you do so, don't forget to re-enable log rotation in + "/etc/logrotate.d/rsyslog", too. + + +2. An additional input socket in "/var/empty/dev/log" (default chroot + location) will be created per default + + See bug #490744 for further details. diff --git a/app-admin/rsyslog/files/8-stable/rsyslog.conf b/app-admin/rsyslog/files/8-stable/rsyslog.conf new file mode 100644 index 000000000000..da484598a652 --- /dev/null +++ b/app-admin/rsyslog/files/8-stable/rsyslog.conf @@ -0,0 +1,61 @@ +# /etc/rsyslog.conf +# +# This configuration is based on RainerScript, the new recommended syntax +# for RSYSLOG. See http://www.rsyslog.com/doc/rainerscript.html for further +# details. +# +# But if you don't want to learn something new at moment, don't worry: The +# legacy syntax is still supported. +# +# You may want to use the new RSYSLOG configuration builder to create your +# own more advanced configuration: http://www.rsyslog.com/rsyslog-configuration-builder/ + +# Check config syntax on startup and abort if unclean (default: off) +#$AbortOnUncleanConfig on + + +############### +### MODULES ### +############### + +# Read syslog messages from default Unix socket /dev/log (e.g. via logger command) +module(load="imuxsock") + +# Read messages from the kernel log and submits them to the syslog engine +module(load="imklog") + +# Inject "--MARK--" messages every $Interval (seconds) +#module(load="immark" Interval="600") + +# Read syslog messages from UDP +#module(load="imudp") +#input(type="imudp" port="514") + +# Read syslog messages from TCP +#module(load="imtcp") +#input(type="imtcp" port="514") + + +######################### +### GLOBAL DIRECTIVES ### +######################### + +# Where to place spool and state files +$WorkDirectory /var/spool/rsyslog + +# Reduce repeating messages (default: off) +#$RepeatedMsgReduction on + +# Set defaults for every output file +$Umask 0022 + +module( + load="builtin:omfile" + Template="RSYSLOG_TraditionalFileFormat" + FileCreateMode="0644" + DirCreateMode="0755" +) + + +# Include all conf files in /etc/rsyslog.d/ +$IncludeConfig /etc/rsyslog.d/*.conf diff --git a/app-admin/rsyslog/files/8-stable/rsyslog.confd b/app-admin/rsyslog/files/8-stable/rsyslog.confd new file mode 100644 index 000000000000..d8cbe875960a --- /dev/null +++ b/app-admin/rsyslog/files/8-stable/rsyslog.confd @@ -0,0 +1,30 @@ +# /etc/conf.d/rsyslog + +# Configuration file +RSYSLOG_CONFIGFILE="/etc/rsyslog.conf" + +# PID file +# If you should ever change this, remember to update +# "/etc/logrotate.d/rsyslog", too. +RSYSLOG_PIDFILE="/run/rsyslogd.pid" + +# You can use this configuration option to pass additional options to the +# start-stop-daemon, see start-stop-daemon(8) for more details. +# Per default we wait 1000ms after we have started the service to ensure +# that the daemon is really up and running. +RSYSLOG_SSDARGS="--wait 1000" + +# The termination timeout (start-stop-daemon parameter "retry") ensures +# that the service will be terminated within a given time (60 + 5 seconds +# per default) when you are stopping the service. +# You need to increase the value when you are working with a large queue. +# See http://www.rsyslog.com/doc/queues.html for further information. +RSYSLOG_TERMTIMEOUT="TERM/60/KILL/5" + + +# Options to rsyslogd +# See rsyslogd(8) for more details +# Notes: +# * Do not specify another PIDFILE but use the variable above to change the location +# * Do not specify another CONFIGFILE but use the variable above to change the location +RSYSLOG_OPTS="" diff --git a/app-admin/rsyslog/files/8-stable/rsyslog.initd b/app-admin/rsyslog/files/8-stable/rsyslog.initd new file mode 100644 index 000000000000..a74f218e6a32 --- /dev/null +++ b/app-admin/rsyslog/files/8-stable/rsyslog.initd @@ -0,0 +1,69 @@ +#!/sbin/runscript +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +RSYSLOG_CONFIGFILE=${RSYSLOG_CONFIGFILE:-"/etc/rsyslog.conf"} +RSYSLOG_PIDFILE=${RSYSLOG_PIDFILE:-"/run/rsyslogd.pid"} + +command="/usr/sbin/rsyslogd" +command_args="${RSYSLOG_OPTS} -f ${RSYSLOG_CONFIGFILE} -i ${RSYSLOG_PIDFILE}" +start_stop_daemon_args="${RSYSLOG_SSDARGS}" +pidfile="${RSYSLOG_PIDFILE}" +retry="${RSYSLOG_TERMTIMEOUT}" + +required_files="${RSYSLOG_CONFIGFILE}" + +description="RSYSLOG is the rocket-fast system for log processing (syslog replacement)." + +extra_commands="configtest" +extra_started_commands="rotate" + +description_configtest="Run rsyslogd's internal config check." + +description_rotate="Sends rsyslogd a signal to re-open its log files." + +depend() { + need clock hostname localmount + provide logger +} + +start_pre() { + if [ "${RC_CMD}" != "restart" ]; then + configtest || return 1 + fi +} + +stop_pre() { + if [ "${RC_CMD}" = "restart" ]; then + configtest || return 1 + fi +} + +stop_post() { + rm -f ${RSYSLOG_PIDFILE} +} + +configtest() { + # This will currently only detect fatal errors + # See https://github.com/rsyslog/rsyslog/issues/79 + + local _test_command="${command} -N 999 -f ${RSYSLOG_CONFIGFILE}" + local _retval=0 + + ebegin "Checking rsyslogd's configuration" + ${_test_command} >/dev/null 2>&1 + _retval=$? + + if [ ${_retval} -ne 0 ]; then + ${_test_command} + fi + + eend ${_retval} "failed, please correct errors above" +} + +rotate() { + ebegin "Re-opening rsyslogd logs" + start-stop-daemon --signal SIGHUP --pidfile "${RSYSLOG_PIDFILE}" + eend $? +} diff --git a/app-admin/rsyslog/files/8-stable/rsyslog.logrotate b/app-admin/rsyslog/files/8-stable/rsyslog.logrotate new file mode 100644 index 000000000000..1eae30e0d741 --- /dev/null +++ b/app-admin/rsyslog/files/8-stable/rsyslog.logrotate @@ -0,0 +1,37 @@ +# Uncomment the following directive if you have re-enabled +# "/var/log/syslog" in "/etc/rsyslog.d/50-default.conf" +#/var/log/syslog +#{ +# rotate 7 +# daily +# missingok +# notifempty +# delaycompress +# compress +# postrotate +# test -r /run/rsyslogd.pid && kill -HUP $(cat /run/rsyslogd.pid) &>/dev/null +# endscript +#} + +/var/log/auth.log +/var/log/cron.log +/var/log/daemon.log +/var/log/kern.log +/var/log/lpr.log +/var/log/mail.log +/var/log/news.log +/var/log/user.log +/var/log/debug.log +/var/log/messages +{ + rotate 4 + weekly + missingok + notifempty + compress + delaycompress + sharedscripts + postrotate + test -r /run/rsyslogd.pid && kill -HUP $(cat /run/rsyslogd.pid) &>/dev/null + endscript +} diff --git a/app-admin/rsyslog/metadata.xml b/app-admin/rsyslog/metadata.xml new file mode 100644 index 000000000000..2be62ca5ed75 --- /dev/null +++ b/app-admin/rsyslog/metadata.xml @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>ultrabug@gentoo.org</email> + <name>Ultrabug</name> + <description>Primary Maintainer</description> + </maintainer> + <maintainer> + <email>whissi@whissi.de</email> + <name>Thomas D. (Whissi)</name> + <description>Proxy-Maintainer, CC. bugs</description> + </maintainer> + <use> + <flag name="dbi">Build the general database output module (requires <pkg>dev-db/libdbi</pkg>)</flag> + <flag name="elasticsearch">Build the Elasticsearch output module (requires <pkg>net-misc/curl</pkg>)</flag> + <flag name="gcrypt">Add support for encrypted log files using <pkg>dev-libs/libgcrypt</pkg></flag> + <flag name="jemalloc">Use <pkg>dev-libs/jemalloc</pkg> for allocations.</flag> + <flag name="kerberos">Build the GSSAPI input and output module (requires <pkg>virtual/krb5</pkg>)</flag> + <flag name="mongodb">Build the MongoDB output module (requires <pkg>dev-libs/libmongo-client</pkg>)</flag> + <flag name="mysql">Build the MySQL databse output module (requires <pkg>virtual/mysql</pkg>)</flag> + <flag name="normalize">Build the normalize modify module (requires <pkg>dev-libs/libee</pkg> and <pkg>dev-libs/liblognorm</pkg>)</flag> + <flag name="omudpspoof">Build the udpspoof output module (requires <pkg>net-libs/libnet</pkg>)</flag> + <flag name="postgres">Build the PostgreSQL database output module (requires <pkg>dev-db/postgresql-base</pkg>)</flag> + <flag name="rabbitmq">Build the RabbitMQ output module (requires <pkg>net-libs/rabbitmq-c</pkg>)</flag> + <flag name="redis">Build the Redis output module using (requires <pkg>dev-libs/hiredis</pkg>)</flag> + <flag name="relp">Build the Reliable Event Logging Protocol (RELP) output module (requires <pkg>dev-libs/librelp</pkg>)</flag> + <flag name="rfc3195">Build the rfc3195 input module (requires <pkg>dev-libs/liblogging</pkg>)</flag> + <flag name="rfc5424hmac">Build the rfc5424hmac modify module (requires <pkg>dev-libs/openssl</pkg>)</flag> + <flag name="snmp">Build the snmp modify and output module (requires <pkg>net-analyzer/net-snmp</pkg>)</flag> + <flag name="ssl">Add support for encrypted client/server communication (requires <pkg>net-libs/gnutls</pkg>)</flag> + <flag name="systemd">Build the journal input and output module (requires <pkg>sys-apps/systemd</pkg>)</flag> + <flag name="usertools">Installs the user tools (rsgtutil, rscryutil...) corresponding to the set USE flags</flag> + <flag name="zeromq">Build the ZeroMQ input and output modules (requires <pkg>net-libs/zeromq</pkg>)</flag> + </use> + <upstream> + <bugs-to>https://github.com/rsyslog/rsyslog/issues</bugs-to> + <remote-id type="cpe">cpe:/a:rsyslog:rsyslog</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/rsyslog/rsyslog-8.7.0-r2.ebuild b/app-admin/rsyslog/rsyslog-8.7.0-r2.ebuild new file mode 100644 index 000000000000..1c72272b5208 --- /dev/null +++ b/app-admin/rsyslog/rsyslog-8.7.0-r2.ebuild @@ -0,0 +1,413 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +AUTOTOOLS_AUTORECONF=1 + +inherit autotools-utils eutils systemd + +DESCRIPTION="An enhanced multi-threaded syslogd with database support and more" +HOMEPAGE="http://www.rsyslog.com/" + +BRANCH="8-stable" + +PATCHES=( + "${FILESDIR}"/${BRANCH}/10-respect_CFLAGS-r1.patch +) + +if [[ ${PV} == "9999" ]]; then + EGIT_REPO_URI=" + git://github.com/rsyslog/${PN}.git + https://github.com/rsyslog/${PN}.git + " + + DOC_REPO_URI=" + git://github.com/rsyslog/${PN}-doc.git + https://github.com/rsyslog/${PN}-doc.git + " + + inherit git-r3 +else + SRC_URI=" + http://www.rsyslog.com/files/download/${PN}/${P}.tar.gz + doc? ( http://www.rsyslog.com/files/download/${PN}/${PN}-doc-${PV}.tar.gz ) + " + KEYWORDS="amd64 ~arm hppa x86" + + PATCHES+=( "${FILESDIR}"/${BRANCH}/50-rsyslog-run-queue-persist-test-only-once.patch ) + PATCHES+=( "${FILESDIR}"/${BRANCH}/50-rsyslog-fix-size-based-legacy-config-statements.patch ) + PATCHES+=( "${FILESDIR}"/${BRANCH}/50-rsyslog-add-option-to-disable-valgrind-usage-in-testbench.patch ) +fi + +LICENSE="GPL-3 LGPL-3 Apache-2.0" +SLOT="0" +IUSE="dbi debug doc elasticsearch +gcrypt jemalloc kerberos mongodb mysql normalize omudpspoof postgres rabbitmq redis relp rfc3195 rfc5424hmac snmp ssl systemd test usertools zeromq" + +RDEPEND=" + >=dev-libs/json-c-0.11:= + >=dev-libs/libestr-0.1.9 + >=dev-libs/liblogging-1.0.1:=[stdlog] + >=sys-libs/zlib-1.2.5 + dbi? ( >=dev-db/libdbi-0.8.3 ) + elasticsearch? ( >=net-misc/curl-7.35.0 ) + gcrypt? ( >=dev-libs/libgcrypt-1.5.3:= ) + jemalloc? ( >=dev-libs/jemalloc-3.3.1 ) + kerberos? ( virtual/krb5 ) + mongodb? ( >=dev-libs/libmongo-client-0.1.4 ) + mysql? ( virtual/mysql ) + normalize? ( + >=dev-libs/libee-0.4.0 + >=dev-libs/liblognorm-1.1.0:= + ) + omudpspoof? ( >=net-libs/libnet-1.1.6 ) + postgres? ( >=dev-db/postgresql-8.4.20:= ) + rabbitmq? ( >=net-libs/rabbitmq-c-0.3.0 ) + redis? ( >=dev-libs/hiredis-0.11.0 ) + relp? ( >=dev-libs/librelp-1.2.5 ) + rfc3195? ( >=dev-libs/liblogging-1.0.1:=[rfc3195] ) + rfc5424hmac? ( >=dev-libs/openssl-0.9.8y:= ) + snmp? ( >=net-analyzer/net-snmp-5.7.2 ) + ssl? ( >=net-libs/gnutls-2.12.23 ) + systemd? ( >=sys-apps/systemd-208 ) + zeromq? ( >=net-libs/czmq-1.2.0 )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +if [[ ${PV} == "9999" ]]; then + DEPEND+=" doc? ( >=dev-python/sphinx-1.1.3-r7 )" +fi + +# Maitainer note : open a bug to upstream +# showing that building in a separate dir fails +AUTOTOOLS_IN_SOURCE_BUILD=1 + +AUTOTOOLS_PRUNE_LIBTOOL_FILES="modules" + +DOCS=( + AUTHORS + ChangeLog + "${FILESDIR}"/${BRANCH}/README.gentoo +) + +src_unpack() { + if [[ ${PV} == "9999" ]]; then + git-r3_fetch + git-r3_checkout + else + unpack ${P}.tar.gz + fi + + if use doc; then + if [[ ${PV} == "9999" ]]; then + local _EGIT_BRANCH= + if [ -n "${EGIT_BRANCH}" ]; then + # Cannot use rsyslog commits/branches for documentation repository + _EGIT_BRANCH=${EGIT_BRANCH} + unset EGIT_BRANCH + fi + + git-r3_fetch "${DOC_REPO_URI}" + git-r3_checkout "${DOC_REPO_URI}" "${S}"/docs + + if [ -n "${_EGIT_BRANCH}" ]; then + # Restore previous EGIT_BRANCH information + EGIT_BRANCH=${_EGIT_BRANCH} + fi + else + local doc_tarball="${PN}-doc-${PV}.tar.gz" + + cd "${S}" || die "Cannot change dir into '$S'" + mkdir docs || die "Failed to create docs directory" + cd docs || die "Failed to change dir into '${S}/docs'" + unpack ${doc_tarball} + fi + fi +} + +src_configure() { + # Maintainer notes: + # * Guardtime support is missing because libgt isn't yet available + # in portage. + # * Hadoop's HDFS file system output module is currently not + # supported in Gentoo because nobody is able to test it + # (JAVA dependency). + # * dev-libs/hiredis doesn't provide pkg-config (see #504614, + # upstream PR 129 and 136) so we need to export HIREDIS_* + # variables because rsyslog's build system depends on pkg-config. + + if use redis; then + export HIREDIS_LIBS="-L${EPREFIX}/usr/$(get_libdir) -lhiredis" + export HIREDIS_CFLAGS="-I${EPREFIX}/usr/include" + fi + + local myeconfargs=( + --disable-generate-man-pages + --without-valgrind-testbench + $(use_enable test testbench) + # Input Plugins without depedencies + --enable-imdiag + --enable-imfile + --enable-impstats + --enable-imptcp + # Message Modificiation Plugins without depedencies + --enable-mmanon + --enable-mmaudit + --enable-mmfields + --enable-mmjsonparse + --enable-mmpstrucdata + --enable-mmsequence + --enable-mmutf8fix + # Output Modification Plugins without dependencies + --enable-mail + --enable-omprog + --enable-omruleset + --enable-omstdout + --enable-omuxsock + # Misc + --enable-pmaixforwardedfrom + --enable-pmciscoios + --enable-pmcisconames + --enable-pmlastmsg + --enable-pmsnare + # DB + $(use_enable dbi libdbi) + $(use_enable mongodb ommongodb) + $(use_enable mysql) + $(use_enable postgres pgsql) + $(use_enable redis omhiredis) + # Debug + $(use_enable debug) + $(use_enable debug diagtools) + $(use_enable debug memcheck) + $(use_enable debug rtinst) + $(use_enable debug valgrind) + # Misc + $(use_enable elasticsearch) + $(use_enable gcrypt libgcrypt) + $(use_enable jemalloc) + $(use_enable kerberos gssapi-krb5) + $(use_enable normalize mmnormalize) + $(use_enable omudpspoof) + $(use_enable rabbitmq omrabbitmq) + $(use_enable relp) + $(use_enable rfc3195) + $(use_enable rfc5424hmac mmrfc5424addhmac) + $(use_enable snmp) + $(use_enable snmp mmsnmptrapd) + $(use_enable ssl gnutls) + $(use_enable systemd imjournal) + $(use_enable systemd omjournal) + $(use_enable usertools) + $(use_enable zeromq imzmq3) + $(use_enable zeromq omzmq3) + "$(systemd_with_unitdir)" + ) + + autotools-utils_src_configure +} + +src_compile() { + autotools-utils_src_compile + + if use doc && [[ "${PV}" == "9999" ]]; then + einfo "Building documentation ..." + local doc_dir="${S}/docs" + cd "${doc_dir}" || die "Cannot chdir into \"${doc_dir}\"!" + sphinx-build -b html source build || die "Building documentation failed!" + fi +} + +src_test() { + local _has_increased_ulimit= + + if ulimit -n 3072; then + _has_increased_ulimit="true" + fi + + if ! emake --jobs 1 check; then + eerror "Test suite failed! :(" + + if [ -z "${_has_increased_ulimit}" ]; then + eerror "Probably because open file limit couldn't be set to 3072." + fi + + if has userpriv $FEATURES; then + eerror "Please try to reproduce the test suite failure with FEATURES=-userpriv " \ + "before you submit a bug report." + fi + + fi +} + +src_install() { + use doc && HTML_DOCS=( "${S}/docs/build/" ) + autotools-utils_src_install + + newconfd "${FILESDIR}/${BRANCH}/${PN}.confd" ${PN} + newinitd "${FILESDIR}/${BRANCH}/${PN}.initd" ${PN} + + keepdir /var/empty/dev + keepdir /var/spool/${PN} + keepdir /etc/ssl/${PN} + keepdir /etc/${PN}.d + + insinto /etc + newins "${FILESDIR}/${BRANCH}/${PN}.conf" ${PN}.conf + + insinto /etc/rsyslog.d/ + doins "${FILESDIR}/${BRANCH}/50-default.conf" + + insinto /etc/logrotate.d/ + newins "${FILESDIR}/${BRANCH}/${PN}.logrotate" ${PN} + + if use mysql; then + insinto /usr/share/doc/${PF}/scripts/mysql + doins plugins/ommysql/createDB.sql + fi + + if use postgres; then + insinto /usr/share/doc/${PF}/scripts/pgsql + doins plugins/ompgsql/createDB.sql + fi +} + +pkg_postinst() { + local advertise_readme=0 + + if [[ -z "${REPLACING_VERSIONS}" ]]; then + # This is a new installation + + advertise_readme=1 + + if use mysql || use postgres; then + echo + elog "Sample SQL scripts for MySQL & PostgreSQL have been installed to:" + elog " /usr/share/doc/${PF}/scripts" + fi + + if use ssl; then + echo + elog "To create a default CA and certificates for your server and clients, run:" + elog " emerge --config =${PF}" + elog "on your logging server. You can run it several times," + elog "once for each logging client. The client certificates will be signed" + elog "using the CA certificate generated during the first run." + fi + fi + + if [[ -z "${REPLACING_VERSIONS}" ]] || [[ ${REPLACING_VERSIONS} < 8.0 ]]; then + # Show this message until rsyslog-8.x + echo + elog "Since ${PN}-7.6.3 we no longer use the catch-all log target" + elog "\"/var/log/syslog\" due to its redundancy to the other log targets." + + advertise_readme=1 + fi + + if [[ ${advertise_readme} -gt 0 ]]; then + # We need to show the README file location + + echo "" + elog "Please read" + elog "" + elog " ${EPREFIX}/usr/share/doc/${PF}/README.gentoo*" + elog "" + elog "for more details." + fi +} + +pkg_config() { + if ! use ssl ; then + einfo "There is nothing to configure for rsyslog unless you" + einfo "used USE=ssl to build it." + return 0 + fi + + # Make sure the certificates directory exists + CERTDIR="${EROOT}/etc/ssl/${PN}" + if [ ! -d "${CERTDIR}" ]; then + mkdir "${CERTDIR}" || die + fi + einfo "Your certificates will be stored in ${CERTDIR}" + + # Create a default CA if needed + if [ ! -f "${CERTDIR}/${PN}_ca.cert.pem" ]; then + einfo "No CA key and certificate found in ${CERTDIR}, creating them for you..." + certtool --generate-privkey \ + --outfile "${CERTDIR}/${PN}_ca.privkey.pem" &>/dev/null + chmod 400 "${CERTDIR}/${PN}_ca.privkey.pem" + + cat > "${T}/${PF}.$$" <<- _EOF + cn = Portage automated CA + ca + cert_signing_key + expiration_days = 3650 + _EOF + + certtool --generate-self-signed \ + --load-privkey "${CERTDIR}/${PN}_ca.privkey.pem" \ + --outfile "${CERTDIR}/${PN}_ca.cert.pem" \ + --template "${T}/${PF}.$$" &>/dev/null + chmod 400 "${CERTDIR}/${PN}_ca.privkey.pem" + + # Create the server certificate + echo + einfon "Please type the Common Name of the SERVER you wish to create a certificate for: " + read -r CN + + einfo "Creating private key and certificate for server ${CN}..." + certtool --generate-privkey \ + --outfile "${CERTDIR}/${PN}_${CN}.key.pem" &>/dev/null + chmod 400 "${CERTDIR}/${PN}_${CN}.key.pem" + + cat > "${T}/${PF}.$$" <<- _EOF + cn = ${CN} + tls_www_server + dns_name = ${CN} + expiration_days = 3650 + _EOF + + certtool --generate-certificate \ + --outfile "${CERTDIR}/${PN}_${CN}.cert.pem" \ + --load-privkey "${CERTDIR}/${PN}_${CN}.key.pem" \ + --load-ca-certificate "${CERTDIR}/${PN}_ca.cert.pem" \ + --load-ca-privkey "${CERTDIR}/${PN}_ca.privkey.pem" \ + --template "${T}/${PF}.$$" &>/dev/null + chmod 400 "${CERTDIR}/${PN}_${CN}.cert.pem" + + else + einfo "Found existing ${CERTDIR}/${PN}_ca.cert.pem, skipping CA and SERVER creation." + fi + + # Create a client certificate + echo + einfon "Please type the Common Name of the CLIENT you wish to create a certificate for: " + read -r CN + + einfo "Creating private key and certificate for client ${CN}..." + certtool --generate-privkey \ + --outfile "${CERTDIR}/${PN}_${CN}.key.pem" &>/dev/null + chmod 400 "${CERTDIR}/${PN}_${CN}.key.pem" + + cat > "${T}/${PF}.$$" <<- _EOF + cn = ${CN} + tls_www_client + dns_name = ${CN} + expiration_days = 3650 + _EOF + + certtool --generate-certificate \ + --outfile "${CERTDIR}/${PN}_${CN}.cert.pem" \ + --load-privkey "${CERTDIR}/${PN}_${CN}.key.pem" \ + --load-ca-certificate "${CERTDIR}/${PN}_ca.cert.pem" \ + --load-ca-privkey "${CERTDIR}/${PN}_ca.privkey.pem" \ + --template "${T}/${PF}.$$" &>/dev/null + chmod 400 "${CERTDIR}/${PN}_${CN}.cert.pem" + + rm -f "${T}/${PF}.$$" + + echo + einfo "Here is the documentation on how to encrypt your log traffic:" + einfo " http://www.rsyslog.com/doc/rsyslog_tls.html" +} diff --git a/app-admin/rsyslog/rsyslog-8.9.0.ebuild b/app-admin/rsyslog/rsyslog-8.9.0.ebuild new file mode 100644 index 000000000000..eca7028bdcc8 --- /dev/null +++ b/app-admin/rsyslog/rsyslog-8.9.0.ebuild @@ -0,0 +1,409 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +AUTOTOOLS_AUTORECONF=1 + +inherit autotools-utils eutils systemd + +DESCRIPTION="An enhanced multi-threaded syslogd with database support and more" +HOMEPAGE="http://www.rsyslog.com/" + +BRANCH="8-stable" + +PATCHES=( + "${FILESDIR}"/${BRANCH}/10-respect_CFLAGS-r1.patch +) + +if [[ ${PV} == "9999" ]]; then + EGIT_REPO_URI=" + git://github.com/rsyslog/${PN}.git + https://github.com/rsyslog/${PN}.git + " + + DOC_REPO_URI=" + git://github.com/rsyslog/${PN}-doc.git + https://github.com/rsyslog/${PN}-doc.git + " + + inherit git-r3 +else + SRC_URI=" + http://www.rsyslog.com/files/download/${PN}/${P}.tar.gz + doc? ( http://www.rsyslog.com/files/download/${PN}/${PN}-doc-${PV}.tar.gz ) + " + KEYWORDS="~amd64 ~arm ~hppa ~x86" +fi + +LICENSE="GPL-3 LGPL-3 Apache-2.0" +SLOT="0" +IUSE="dbi debug doc elasticsearch +gcrypt jemalloc kerberos mongodb mysql normalize omudpspoof postgres rabbitmq redis relp rfc3195 rfc5424hmac snmp ssl systemd test usertools zeromq" + +RDEPEND=" + >=dev-libs/json-c-0.11:= + >=dev-libs/libestr-0.1.9 + >=dev-libs/liblogging-1.0.1:=[stdlog] + >=sys-libs/zlib-1.2.5 + dbi? ( >=dev-db/libdbi-0.8.3 ) + elasticsearch? ( >=net-misc/curl-7.35.0 ) + gcrypt? ( >=dev-libs/libgcrypt-1.5.3:= ) + jemalloc? ( >=dev-libs/jemalloc-3.3.1 ) + kerberos? ( virtual/krb5 ) + mongodb? ( >=dev-libs/libmongo-client-0.1.4 ) + mysql? ( virtual/mysql ) + normalize? ( + >=dev-libs/libee-0.4.0 + >=dev-libs/liblognorm-1.1.0:= + ) + omudpspoof? ( >=net-libs/libnet-1.1.6 ) + postgres? ( >=dev-db/postgresql-8.4.20:= ) + rabbitmq? ( >=net-libs/rabbitmq-c-0.3.0 ) + redis? ( >=dev-libs/hiredis-0.11.0 ) + relp? ( >=dev-libs/librelp-1.2.5 ) + rfc3195? ( >=dev-libs/liblogging-1.0.1:=[rfc3195] ) + rfc5424hmac? ( >=dev-libs/openssl-0.9.8y:= ) + snmp? ( >=net-analyzer/net-snmp-5.7.2 ) + ssl? ( >=net-libs/gnutls-2.12.23 ) + systemd? ( >=sys-apps/systemd-208 ) + zeromq? ( >=net-libs/czmq-1.2.0 )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +if [[ ${PV} == "9999" ]]; then + DEPEND+=" doc? ( >=dev-python/sphinx-1.1.3-r7 )" +fi + +# Maitainer note : open a bug to upstream +# showing that building in a separate dir fails +AUTOTOOLS_IN_SOURCE_BUILD=1 + +AUTOTOOLS_PRUNE_LIBTOOL_FILES="modules" + +DOCS=( + AUTHORS + ChangeLog + "${FILESDIR}"/${BRANCH}/README.gentoo +) + +src_unpack() { + if [[ ${PV} == "9999" ]]; then + git-r3_fetch + git-r3_checkout + else + unpack ${P}.tar.gz + fi + + if use doc; then + if [[ ${PV} == "9999" ]]; then + local _EGIT_BRANCH= + if [ -n "${EGIT_BRANCH}" ]; then + # Cannot use rsyslog commits/branches for documentation repository + _EGIT_BRANCH=${EGIT_BRANCH} + unset EGIT_BRANCH + fi + + git-r3_fetch "${DOC_REPO_URI}" + git-r3_checkout "${DOC_REPO_URI}" "${S}"/docs + + if [ -n "${_EGIT_BRANCH}" ]; then + # Restore previous EGIT_BRANCH information + EGIT_BRANCH=${_EGIT_BRANCH} + fi + else + local doc_tarball="${PN}-doc-${PV}.tar.gz" + + cd "${S}" || die "Cannot change dir into '$S'" + mkdir docs || die "Failed to create docs directory" + cd docs || die "Failed to change dir into '${S}/docs'" + unpack ${doc_tarball} + fi + fi +} + +src_configure() { + # Maintainer notes: + # * Guardtime support is missing because libgt isn't yet available + # in portage. + # * Hadoop's HDFS file system output module is currently not + # supported in Gentoo because nobody is able to test it + # (JAVA dependency). + # * dev-libs/hiredis doesn't provide pkg-config (see #504614, + # upstream PR 129 and 136) so we need to export HIREDIS_* + # variables because rsyslog's build system depends on pkg-config. + + if use redis; then + export HIREDIS_LIBS="-L${EPREFIX}/usr/$(get_libdir) -lhiredis" + export HIREDIS_CFLAGS="-I${EPREFIX}/usr/include" + fi + + local myeconfargs=( + --disable-generate-man-pages + --without-valgrind-testbench + $(use_enable test testbench) + # Input Plugins without depedencies + --enable-imdiag + --enable-imfile + --enable-impstats + --enable-imptcp + # Message Modificiation Plugins without depedencies + --enable-mmanon + --enable-mmaudit + --enable-mmfields + --enable-mmjsonparse + --enable-mmpstrucdata + --enable-mmsequence + --enable-mmutf8fix + # Output Modification Plugins without dependencies + --enable-mail + --enable-omprog + --enable-omruleset + --enable-omstdout + --enable-omuxsock + # Misc + --enable-pmaixforwardedfrom + --enable-pmciscoios + --enable-pmcisconames + --enable-pmlastmsg + --enable-pmsnare + # DB + $(use_enable dbi libdbi) + $(use_enable mongodb ommongodb) + $(use_enable mysql) + $(use_enable postgres pgsql) + $(use_enable redis omhiredis) + # Debug + $(use_enable debug) + $(use_enable debug diagtools) + $(use_enable debug memcheck) + $(use_enable debug rtinst) + $(use_enable debug valgrind) + # Misc + $(use_enable elasticsearch) + $(use_enable gcrypt libgcrypt) + $(use_enable jemalloc) + $(use_enable kerberos gssapi-krb5) + $(use_enable normalize mmnormalize) + $(use_enable omudpspoof) + $(use_enable rabbitmq omrabbitmq) + $(use_enable relp) + $(use_enable rfc3195) + $(use_enable rfc5424hmac mmrfc5424addhmac) + $(use_enable snmp) + $(use_enable snmp mmsnmptrapd) + $(use_enable ssl gnutls) + $(use_enable systemd imjournal) + $(use_enable systemd omjournal) + $(use_enable usertools) + $(use_enable zeromq imzmq3) + $(use_enable zeromq omzmq3) + "$(systemd_with_unitdir)" + ) + + autotools-utils_src_configure +} + +src_compile() { + autotools-utils_src_compile + + if use doc && [[ "${PV}" == "9999" ]]; then + einfo "Building documentation ..." + local doc_dir="${S}/docs" + cd "${doc_dir}" || die "Cannot chdir into \"${doc_dir}\"!" + sphinx-build -b html source build || die "Building documentation failed!" + fi +} + +src_test() { + local _has_increased_ulimit= + + if ulimit -n 3072; then + _has_increased_ulimit="true" + fi + + if ! emake --jobs 1 check; then + eerror "Test suite failed! :(" + + if [ -z "${_has_increased_ulimit}" ]; then + eerror "Probably because open file limit couldn't be set to 3072." + fi + + if has userpriv $FEATURES; then + eerror "Please try to reproduce the test suite failure with FEATURES=-userpriv " \ + "before you submit a bug report." + fi + + fi +} + +src_install() { + use doc && HTML_DOCS=( "${S}/docs/build/" ) + autotools-utils_src_install + + newconfd "${FILESDIR}/${BRANCH}/${PN}.confd" ${PN} + newinitd "${FILESDIR}/${BRANCH}/${PN}.initd" ${PN} + + keepdir /var/empty/dev + keepdir /var/spool/${PN} + keepdir /etc/ssl/${PN} + keepdir /etc/${PN}.d + + insinto /etc + newins "${FILESDIR}/${BRANCH}/${PN}.conf" ${PN}.conf + + insinto /etc/rsyslog.d/ + doins "${FILESDIR}/${BRANCH}/50-default.conf" + + insinto /etc/logrotate.d/ + newins "${FILESDIR}/${BRANCH}/${PN}.logrotate" ${PN} + + if use mysql; then + insinto /usr/share/doc/${PF}/scripts/mysql + doins plugins/ommysql/createDB.sql + fi + + if use postgres; then + insinto /usr/share/doc/${PF}/scripts/pgsql + doins plugins/ompgsql/createDB.sql + fi +} + +pkg_postinst() { + local advertise_readme=0 + + if [[ -z "${REPLACING_VERSIONS}" ]]; then + # This is a new installation + + advertise_readme=1 + + if use mysql || use postgres; then + echo + elog "Sample SQL scripts for MySQL & PostgreSQL have been installed to:" + elog " /usr/share/doc/${PF}/scripts" + fi + + if use ssl; then + echo + elog "To create a default CA and certificates for your server and clients, run:" + elog " emerge --config =${PF}" + elog "on your logging server. You can run it several times," + elog "once for each logging client. The client certificates will be signed" + elog "using the CA certificate generated during the first run." + fi + fi + + if [[ -z "${REPLACING_VERSIONS}" ]] || [[ ${REPLACING_VERSIONS} < 8.0 ]]; then + # Show this message until rsyslog-8.x + echo + elog "Since ${PN}-7.6.3 we no longer use the catch-all log target" + elog "\"/var/log/syslog\" due to its redundancy to the other log targets." + + advertise_readme=1 + fi + + if [[ ${advertise_readme} -gt 0 ]]; then + # We need to show the README file location + + echo "" + elog "Please read" + elog "" + elog " ${EPREFIX}/usr/share/doc/${PF}/README.gentoo*" + elog "" + elog "for more details." + fi +} + +pkg_config() { + if ! use ssl ; then + einfo "There is nothing to configure for rsyslog unless you" + einfo "used USE=ssl to build it." + return 0 + fi + + # Make sure the certificates directory exists + CERTDIR="${EROOT}/etc/ssl/${PN}" + if [ ! -d "${CERTDIR}" ]; then + mkdir "${CERTDIR}" || die + fi + einfo "Your certificates will be stored in ${CERTDIR}" + + # Create a default CA if needed + if [ ! -f "${CERTDIR}/${PN}_ca.cert.pem" ]; then + einfo "No CA key and certificate found in ${CERTDIR}, creating them for you..." + certtool --generate-privkey \ + --outfile "${CERTDIR}/${PN}_ca.privkey.pem" &>/dev/null + chmod 400 "${CERTDIR}/${PN}_ca.privkey.pem" + + cat > "${T}/${PF}.$$" <<- _EOF + cn = Portage automated CA + ca + cert_signing_key + expiration_days = 3650 + _EOF + + certtool --generate-self-signed \ + --load-privkey "${CERTDIR}/${PN}_ca.privkey.pem" \ + --outfile "${CERTDIR}/${PN}_ca.cert.pem" \ + --template "${T}/${PF}.$$" &>/dev/null + chmod 400 "${CERTDIR}/${PN}_ca.privkey.pem" + + # Create the server certificate + echo + einfon "Please type the Common Name of the SERVER you wish to create a certificate for: " + read -r CN + + einfo "Creating private key and certificate for server ${CN}..." + certtool --generate-privkey \ + --outfile "${CERTDIR}/${PN}_${CN}.key.pem" &>/dev/null + chmod 400 "${CERTDIR}/${PN}_${CN}.key.pem" + + cat > "${T}/${PF}.$$" <<- _EOF + cn = ${CN} + tls_www_server + dns_name = ${CN} + expiration_days = 3650 + _EOF + + certtool --generate-certificate \ + --outfile "${CERTDIR}/${PN}_${CN}.cert.pem" \ + --load-privkey "${CERTDIR}/${PN}_${CN}.key.pem" \ + --load-ca-certificate "${CERTDIR}/${PN}_ca.cert.pem" \ + --load-ca-privkey "${CERTDIR}/${PN}_ca.privkey.pem" \ + --template "${T}/${PF}.$$" &>/dev/null + chmod 400 "${CERTDIR}/${PN}_${CN}.cert.pem" + + else + einfo "Found existing ${CERTDIR}/${PN}_ca.cert.pem, skipping CA and SERVER creation." + fi + + # Create a client certificate + echo + einfon "Please type the Common Name of the CLIENT you wish to create a certificate for: " + read -r CN + + einfo "Creating private key and certificate for client ${CN}..." + certtool --generate-privkey \ + --outfile "${CERTDIR}/${PN}_${CN}.key.pem" &>/dev/null + chmod 400 "${CERTDIR}/${PN}_${CN}.key.pem" + + cat > "${T}/${PF}.$$" <<- _EOF + cn = ${CN} + tls_www_client + dns_name = ${CN} + expiration_days = 3650 + _EOF + + certtool --generate-certificate \ + --outfile "${CERTDIR}/${PN}_${CN}.cert.pem" \ + --load-privkey "${CERTDIR}/${PN}_${CN}.key.pem" \ + --load-ca-certificate "${CERTDIR}/${PN}_ca.cert.pem" \ + --load-ca-privkey "${CERTDIR}/${PN}_ca.privkey.pem" \ + --template "${T}/${PF}.$$" &>/dev/null + chmod 400 "${CERTDIR}/${PN}_${CN}.cert.pem" + + rm -f "${T}/${PF}.$$" + + echo + einfo "Here is the documentation on how to encrypt your log traffic:" + einfo " http://www.rsyslog.com/doc/rsyslog_tls.html" +} diff --git a/app-admin/sagan-rules/Manifest b/app-admin/sagan-rules/Manifest new file mode 100644 index 000000000000..d4e342ed6f5b --- /dev/null +++ b/app-admin/sagan-rules/Manifest @@ -0,0 +1,2 @@ +DIST sagan-rules-06172014.tar.gz 273531 SHA256 c20a37c8b555ff424a68120a07260bcd2ff1c90c09c0372c60149f42cfaedd4f SHA512 824e3b159fae10876f59e50b1c751e509b04e6ee347e74afb19c1a5f935fe41b8d8874d6379bea477fea5a9c5754b1917f9b78da3009203fe23a0c600e03da23 WHIRLPOOL f49e44184ee75b0f1b0ae6ca581750989faaa6da2cb107c518eb2fe550064b2d97c58d2cbcbe78fbac34292296ee870743bf8ba308030832d3a166c2c7d31e53 +DIST sagan-rules-20130430.tar.gz 240975 SHA256 58077c7ce1e47bb32965336afee3d372108325da67dc2f4a562a9850d986415c SHA512 bc31f043a0e14542665d9e1469d85427fea395bb86b833200dfa3c8f4cbd2591f6268f26a478c768ad8784aeb1a102e01e3bbfc63636a0384b2092193bbb9bdb WHIRLPOOL d460b320b415c71f48011406ee3cde1967b46249d5e09a11343fa028a2b1fe103c6775a2eaa485897d834b3727cbc41a90092471096b39e7a121db8a1de806e4 diff --git a/app-admin/sagan-rules/metadata.xml b/app-admin/sagan-rules/metadata.xml new file mode 100644 index 000000000000..c9106df06540 --- /dev/null +++ b/app-admin/sagan-rules/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>proxy-maintainers</herd> +<maintainer> + <email>andreis.vinogradovs@gmail.com</email> +</maintainer> +<maintainer> + <email>maksbotan@gentoo.org</email> +</maintainer> +<use> + <flag name='lognorm'>Install normalize rules support with <pkg>dev-libs/liblognorm</pkg></flag> +</use> +</pkgmetadata> diff --git a/app-admin/sagan-rules/sagan-rules-20130430.ebuild b/app-admin/sagan-rules/sagan-rules-20130430.ebuild new file mode 100644 index 000000000000..16e8c1e9ca10 --- /dev/null +++ b/app-admin/sagan-rules/sagan-rules-20130430.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +DESCRIPTION="Rules for Sagan log analyzer" +HOMEPAGE="http://sagan.softwink.com/" +SRC_URI="http://dev.gentoo.org/~maksbotan/sagan/sagan-rules-${PV}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="+lognorm" + +DEPEND="" +RDEPEND="${DEPEND}" +PDEPEND="app-admin/sagan" + +S=${WORKDIR}/rules + +src_install() { + insinto /etc/sagan-rules + doins ./*.config + doins ./*rules + if use lognorm ; then + doins ./*normalize.rulebase + fi +} diff --git a/app-admin/sagan-rules/sagan-rules-20140617.ebuild b/app-admin/sagan-rules/sagan-rules-20140617.ebuild new file mode 100644 index 000000000000..0194a6aa4327 --- /dev/null +++ b/app-admin/sagan-rules/sagan-rules-20140617.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +DESCRIPTION="Rules for Sagan log analyzer" +HOMEPAGE="http://sagan.softwink.com/" +SRC_URI="http://sagan.quadrantsec.com/rules/sagan-rules-06172014.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="+lognorm" + +DEPEND="" +RDEPEND="${DEPEND}" +PDEPEND="app-admin/sagan" + +S=${WORKDIR}/rules + +src_install() { + insinto /etc/sagan-rules + doins ./*.config + doins ./*rules + doins ./*map + if use lognorm ; then + doins ./*normalize.rulebase + fi +} diff --git a/app-admin/sagan-rules/sagan-rules-99999999.ebuild b/app-admin/sagan-rules/sagan-rules-99999999.ebuild new file mode 100644 index 000000000000..7f1dd0d08412 --- /dev/null +++ b/app-admin/sagan-rules/sagan-rules-99999999.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit git-2 + +DESCRIPTION="Rules for Sagan log analyzer" +HOMEPAGE="http://sagan.softwink.com/" +EGIT_REPO_URI="https://github.com/beave/sagan-rules.git" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="" +IUSE="+lognorm" + +DEPEND="" +RDEPEND="${DEPEND}" +PDEPEND="app-admin/sagan" + +S="${WORKDIR}"/rules + +src_install() { + insinto /etc/sagan-rules + doins ./*.config + doins ./*rules + if use lognorm; then + doins ./*normalize.rulebase + fi +} diff --git a/app-admin/sagan/Manifest b/app-admin/sagan/Manifest new file mode 100644 index 000000000000..01f4b1459f2a --- /dev/null +++ b/app-admin/sagan/Manifest @@ -0,0 +1,2 @@ +DIST sagan-0.2.3.tar.gz 231774 SHA256 fc50697cf8ce0fe7c1c662a57a9526710e649c2bf8088acdef46010e06e5ddf2 SHA512 2110f3d34db69cb5c453b8e37d06debeea7531ebf15a9b78954ac1657ddce34feaaff87d14695759c3deb2eed5ecc0e6fec5881fb5037af8efa6c3c9600242cc WHIRLPOOL 417d78263a907c89a865a41228ffc6e2184e1d37d1d583ee0c42da991c411cd40e99b2d537e11a7712615643f57b406439cb5af84a1eacc12a2ef7ca96c72533 +DIST sagan-1.0.0RC3.tar.gz 285207 SHA256 527ddcb583f362c92eca5557cda2116a64200da3f868b512f42abbf78b961508 SHA512 29388a339b290bb4de2359c0c54b9e1d43ef207b223a499a1a4faa36de4d9590a777a796dd773948e995d052b71f3ef47ca5bad5c133116c4dbb53b4fe336123 WHIRLPOOL 35e18084056d15dae578378df4c335fb98ebbb1514b0762a573e4b3507253ac00ee944f06f2f443a2e8cef44c19d312e936923f9223314d8970cec4ae332f36e diff --git a/app-admin/sagan/files/json_header_location.patch b/app-admin/sagan/files/json_header_location.patch new file mode 100644 index 000000000000..78a34886a73d --- /dev/null +++ b/app-admin/sagan/files/json_header_location.patch @@ -0,0 +1,26 @@ +diff --git a/configure.ac b/configure.ac +--- a/configure.ac ++++ b/configure.ac +@@ -194,7 +194,7 @@ + if test "$LOGNORM" = "yes"; then + AC_MSG_RESULT([------- liblognorm support is enabled -------]) + AC_CHECK_HEADER([liblognorm.h]) +- AC_CHECK_HEADERS([json/json.h json.h], [break], [AC_MSG_ERROR([json-c headers not found or not usable. ++ AC_CHECK_HEADERS([json-c/json.h json.h], [break], [AC_MSG_ERROR([json-c headers not found or not usable. + This library is important for the correlation aspects of Sagan! Please see + https://wiki.quadrantsec.com/bin/view/Main/LibLogNorm. To disable this feature + use the --disable-lognorm flag.])]) +diff --git a/src/sagan-liblognorm.c b/src/sagan-liblognorm.c +--- a/src/sagan-liblognorm.c ++++ b/src/sagan-liblognorm.c +@@ -40,9 +40,7 @@ + #include <lognorm.h> + + #if defined(HAVE_JSON_JSON_H) +-# include <json/json.h> +-#else +-# include <json.h> ++# include <json-c/json.h> + #endif + + #include "sagan.h" diff --git a/app-admin/sagan/files/mysql_check.patch b/app-admin/sagan/files/mysql_check.patch new file mode 100644 index 000000000000..d2247aab571e --- /dev/null +++ b/app-admin/sagan/files/mysql_check.patch @@ -0,0 +1,26 @@ +diff --git a/configure.in b/configure.ac +rename from configure.in +rename to configure.ac +--- a/configure.in ++++ b/configure.ac +@@ -215,13 +215,17 @@ + AC_CHECK_LIB(pthread, main,,AC_MSG_ERROR(Sagan needs pthreads!)) + AC_CHECK_LIB(m, main,,AC_MSG_ERROR(Sagan needs libm!)) + ++save_LIBS=$LIBS + if test "$MYSQL" = "yes"; then + AC_MSG_RESULT([------- MySQL support is enabled -------]) ++ AC_CHECK_PROGS(MYSQL_CONFIG, mysql_config) + AC_CHECK_HEADER([mysql/mysql.h]) + AC_CHECK_HEADER([mysql/errmsg.h]) +- AC_CHECK_LIB(mysqlclient_r, main,,AC_MSG_ERROR(The MySQL library libmysqlclient_r is missing! +-If you're not interested in MySQL support use the --disable-mysql flag.)) +- fi ++ LIBS=$(mysql_config --libs_r) ++ AC_CHECK_LIB(mysqlclient_r, main,,AC_MSG_ERROR(The MySQL library libmysqlclient_r is missing!)) ++fi ++LIBS="$save_LIBS $LIBS" ++ + + if test "$POSTGRES" = "yes"; then + AC_MSG_RESULT([------- PostgreSQL support is enabled -------]) diff --git a/app-admin/sagan/files/sagan.confd b/app-admin/sagan/files/sagan.confd new file mode 100644 index 000000000000..cab6db55ccf0 --- /dev/null +++ b/app-admin/sagan/files/sagan.confd @@ -0,0 +1,9 @@ +# Copyright 1999-2011 Gentoo Foundation +# # Distributed under the terms of the GNU General Public License v2 + +# Sagan daemon configuration file +# Make debug mode +# SAGAN_OPTS = " --debug " +# +# Run as user, default sagan +SAGAN_USER="sagan" diff --git a/app-admin/sagan/files/sagan.init b/app-admin/sagan/files/sagan.init new file mode 100644 index 000000000000..dfce6cadf336 --- /dev/null +++ b/app-admin/sagan/files/sagan.init @@ -0,0 +1,18 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +pidfile="/var/run/sagan/sagan.pid" +command="/usr/bin/sagan" +command_args="-D \"${SAGAN_OPTS}\" -u \"${SAGAN_USER}\"" + +depend() { + use logger mysql postgresql + need localmount +} + +start_pre() { + checkpath -d -o sagan /var/run/sagan + checkpath -p -o sagan -m 0644 /var/run/sagan/sagan.fifo +} diff --git a/app-admin/sagan/files/sagan.init-r1 b/app-admin/sagan/files/sagan.init-r1 new file mode 100644 index 000000000000..5844fdf4e1de --- /dev/null +++ b/app-admin/sagan/files/sagan.init-r1 @@ -0,0 +1,18 @@ +#!/sbin/runscript +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +pidfile="/var/run/sagan/sagan.pid" +command="/usr/bin/sagan" +command_args="-D \"${SAGAN_OPTS}\" -u \"${SAGAN_USER}\"" + +depend() { + use logger mysql postgresql + need localmount +} + +start_pre() { + checkpath -d -o sagan /run/sagan + checkpath -p -o sagan -m 0644 /run/sagan/sagan.fifo +} diff --git a/app-admin/sagan/metadata.xml b/app-admin/sagan/metadata.xml new file mode 100644 index 000000000000..0d04c216b673 --- /dev/null +++ b/app-admin/sagan/metadata.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>proxy-maintainers</herd> + <maintainer> + <email>andreis.vinogradovs@gmail.com</email> + <name>Andreis Vinogradovs</name> + </maintainer> + <maintainer> + <email>maksbotan@gentoo.org</email> + <name>Maxim Koltsov</name> + </maintainer> + <maintainer> + <email>qnikst@gentoo.org</email> + <name>Alexander Vershilov</name> + </maintainer> + <use> + <flag name='smtp'>Build witch SMTP (E-Mail) support</flag> + <flag name='lognorm'>Add support for log/rules normalizations via <pkg>dev-libs/liblognorm</pkg></flag> + <flag name='pcap'>Add support for network packet capture via <pkg>net-libs/libpcap</pkg></flag> + <flag name='libdnet'>Add support for <pkg>dev-libs/libdnet</pkg></flag> + <flag name='snort'>Add support to interact with Snort IDE using <pkg>net-analyzer/snortsam</pkg>'</flag> + </use> +</pkgmetadata> diff --git a/app-admin/sagan/sagan-0.2.3.ebuild b/app-admin/sagan/sagan-0.2.3.ebuild new file mode 100644 index 000000000000..19c5c57be205 --- /dev/null +++ b/app-admin/sagan/sagan-0.2.3.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +AUTOTOOLS_AUTORECONF=1 +AUTOTOOLS_IN_SOURCE_BUILD=1 + +inherit eutils autotools-utils user + +DESCRIPTION="Sagan is a multi-threaded, real time system and event log monitoring system" +HOMEPAGE="http://sagan.quadrantsec.com/" +SRC_URI="http://sagan.quadrantsec.com/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="+libdnet +lognorm mysql +pcap postgres smtp snort" + +RDEPEND="dev-libs/libpcre + app-admin/sagan-rules[lognorm?] + smtp? ( net-libs/libesmtp ) + pcap? ( net-libs/libpcap ) + mysql? ( virtual/mysql ) + postgres? ( dev-db/postgresql ) + lognorm? ( dev-libs/liblognorm ) + libdnet? ( dev-libs/libdnet ) + snort? ( >=net-analyzer/snortsam-2.50 ) + " + +DEPEND="virtual/pkgconfig + ${RDEPEND}" + +DOCS=( AUTHORS ChangeLog FAQ INSTALL README NEWS TODO ) +PATCHES=( "${FILESDIR}"/mysql_check.patch ) + +pkg_setup() { + enewgroup sagan + enewuser sagan -1 -1 /dev/null sagan +} + +src_configure() { + local myeconfargs=( + $(use_enable mysql) + $(use_enable postgres postgresql) + $(use_enable smtp esmtp) + $(use_enable lognorm) + $(use_enable libdnet) + $(use_enable pcap libpcap) + $(use_enable snort snortsam) + --disable-prelude + ) + + autotools-utils_src_configure +} + +src_install() { + autotools-utils_src_install + + diropts -g sagan -o sagan -m 775 + + dodir /var/log/sagan + + keepdir /var/log/sagan + + touch "${ED}"/var/log/sagan/sagan.log + chown sagan.sagan "${ED}"/var/log/sagan/sagan.log + + newinitd "${FILESDIR}"/sagan.init sagan + newconfd "${FILESDIR}"/sagan.confd sagan + + insinto /usr/share/doc/${PF}/examples + doins -r extra/* +} + +pkg_postinst() { + if use smtp; then + ewarn "You have enabled smtp use flag. If you plan on using Sagan with" + ewarn "email, create valid writable home directory for user 'sagan'" + ewarn "For security reasons it was created with /dev/null home directory" + fi + + einfo "For configuration assistance see" + einfo "http://wiki.quadrantsec.com/bin/view/Main/SaganHOWTO" +} diff --git a/app-admin/sagan/sagan-1.0.0_rc3.ebuild b/app-admin/sagan/sagan-1.0.0_rc3.ebuild new file mode 100644 index 000000000000..871c024e8f2e --- /dev/null +++ b/app-admin/sagan/sagan-1.0.0_rc3.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +AUTOTOOLS_AUTORECONF=1 +AUTOTOOLS_IN_SOURCE_BUILD=1 + +inherit eutils autotools-utils user + +DESCRIPTION="Sagan is a multi-threaded, real time system and event log monitoring system" +HOMEPAGE="http://sagan.quadrantsec.com/" +SRC_URI="http://sagan.quadrantsec.com/download/sagan-1.0.0RC3.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="geoip +libdnet +lognorm mysql +pcap smtp snort" + +RDEPEND="dev-libs/libpcre + app-admin/sagan-rules[lognorm?] + smtp? ( net-libs/libesmtp ) + pcap? ( net-libs/libpcap ) + mysql? ( virtual/mysql ) + lognorm? ( + dev-libs/liblognorm + dev-libs/json-c + dev-libs/libee + dev-libs/libestr + ) + libdnet? ( dev-libs/libdnet ) + snort? ( >=net-analyzer/snortsam-2.50 ) + geoip? ( dev-libs/geoip ) + " + +DEPEND="virtual/pkgconfig + ${RDEPEND}" + +DOCS=( AUTHORS ChangeLog FAQ INSTALL README NEWS TODO ) +PATCHES=( "${FILESDIR}"/json_header_location.patch ) +S="${WORKDIR}/sagan-1.0.0RC3/" + +pkg_setup() { + enewgroup sagan + enewuser sagan -1 -1 /dev/null sagan +} + +src_configure() { + local myeconfargs=( + $(use_enable smtp esmtp) + $(use_enable lognorm) + $(use_enable libdnet) + $(use_enable pcap libpcap) + $(use_enable snort snortsam) + $(use_enable geoip) + ) + + autotools-utils_src_configure +} + +src_install() { + autotools-utils_src_install + + diropts -g sagan -o sagan -m 775 + + dodir /var/log/sagan + + keepdir /var/log/sagan + + touch "${ED}"/var/log/sagan/sagan.log + chown sagan.sagan "${ED}"/var/log/sagan/sagan.log + + newinitd "${FILESDIR}"/sagan.init-r1 sagan + newconfd "${FILESDIR}"/sagan.confd sagan + + insinto /usr/share/doc/${PF}/examples + doins -r extra/* +} + +pkg_postinst() { + if use smtp; then + ewarn "You have enabled smtp use flag. If you plan on using Sagan with" + ewarn "email, create valid writable home directory for user 'sagan'" + ewarn "For security reasons it was created with /dev/null home directory" + fi + + einfo "For configuration assistance see" + einfo "http://wiki.quadrantsec.com/bin/view/Main/SaganHOWTO" +} diff --git a/app-admin/salt/Manifest b/app-admin/salt/Manifest new file mode 100644 index 000000000000..baf548fc0313 --- /dev/null +++ b/app-admin/salt/Manifest @@ -0,0 +1,5 @@ +DIST salt-2014.7.4.tar.gz 3833928 SHA256 0adf4c138ebd26745b1d1157be0772d89da3582fe8a6622a8031cbe32a28e9f3 SHA512 8cbb9b26472b8980c36f0394a79bf872fd68a62bc886ba2a7fa35720db0a01c3a026e63c839a5c0dddc328c9555fa87aff4cfd71e3faaf01d6c1db01ae5bed64 WHIRLPOOL 1234c14e5fbb552cabb827d416e5ccbaccf9df03bac1ea72f32eeac33dc06d6afe0af0e83bff1682fbec0a52558a43945fccca8a9b08ace28c42a6c2c2016f01 +DIST salt-2014.7.5.tar.gz 3845643 SHA256 474d0a23866e42c664f46e04bc8ead87fc57ee16ff2cc8945248f1e0706f6eb8 SHA512 60e64db5125eb3c6f44cccf906ff0e8916cdcb31970e000785a81cf6ae95b38c681088f2fb3964fabc16667a26403ae30cb84cea3493d837d0b57aa86e771160 WHIRLPOOL b3600c1824cd49983cfe73567ec4a3861bdec88c5cc725ae8159e917e5074ade32aee29eafe5ec78fe4c87f2effc0f5f49627772e12468eb3a050b9395a45374 +DIST salt-2015.5.1.tar.gz 4970135 SHA256 0edb1d0584f53e805ad6ffc21c163a637b23d187052ba2dbb7e641c2d7099c4d SHA512 0de9b3391f33940e230b21841dca05943edcf7a890c0cae8efdd39bcbaf46c27f71cefaf73861dc5b59b567c40c2f0cada04ccedc73cffd905a449795b2f8ecb WHIRLPOOL 4aaa899fa6fd13b60daba7bbef692db24020ffc54e03e4c5d194e32aaa1580430a5fc7bb70f0b87e1ed2710428ed9aa8e729fa4e1144fb42754c740e3e45405e +DIST salt-2015.5.3.tar.gz 5389038 SHA256 f8b04dc8bd4b00ce803d31ce5fba033c2f20fa38cdc5a3bf54b4c47362fbe853 SHA512 61203cb9b82fe8ab84fa36d06f442aebcf5c5decfacb99f8df6b52320979699d168f9df7e9e675a13a8078feabbe9210a40e526627a213239760ea43d85f1298 WHIRLPOOL 160455263ee1a95faec1f03dfcd16f9b811e5ecb961a2db5c9545070ed74786c83592e008c1ed70a6ea358ba2491128d6081d57bf7c0a679bb99abb1555bbd21 +DIST salt-vim-20141109.tar.gz 3783 SHA256 4989d111ad618ea3f5f7a7046a0ff6ce3ca6bc7f71fca90849f7c38947ab6d9a SHA512 d8d62ee827012e29586cf492f2881ee5870ed058828102f985e8b27300c115e01bb126f89decb15a19a8e206dc54c89856d4c31b3ff5320a36385cb5ed517a63 WHIRLPOOL 98026b2cdcb64665790475e3b20a7de294e5cefb390b414294756cad440bc040d9044ffd37a13f3c93af9be1a1bfd444710ff0df24895db624f49fddd16b5545 diff --git a/app-admin/salt/files/api-confd-1 b/app-admin/salt/files/api-confd-1 new file mode 100644 index 000000000000..c70e8e766da0 --- /dev/null +++ b/app-admin/salt/files/api-confd-1 @@ -0,0 +1,5 @@ +# /etc/conf.d/salt-master: config file for /etc/init.d/salt-master + +# see man pages for salt-minion or run `salt-master --help` +# for valid cmdline options +SALT_OPTS="--log-level=warning" diff --git a/app-admin/salt/files/api-initd-3 b/app-admin/salt/files/api-initd-3 new file mode 100644 index 000000000000..e5be2c3d83d8 --- /dev/null +++ b/app-admin/salt/files/api-initd-3 @@ -0,0 +1,14 @@ +#!/sbin/runscript +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +command="/usr/bin/salt-api" +command_args="${SALT_OPTS}" +command_background="1" +pidfile="/var/run/salt-api.pid" +name="SALT API daemon" + +depend() { + use net logger +} diff --git a/app-admin/salt/files/api-initd-4 b/app-admin/salt/files/api-initd-4 new file mode 100644 index 000000000000..e69acdf86b9b --- /dev/null +++ b/app-admin/salt/files/api-initd-4 @@ -0,0 +1,15 @@ +#!/sbin/runscript +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +command="/usr/bin/salt-api" +command_args="${SALT_OPTS}" +command_background="1" +pidfile="/var/run/salt-api.pid" +name="SALT API daemon" +retry="20" + +depend() { + use net logger +} diff --git a/app-admin/salt/files/master-confd-1 b/app-admin/salt/files/master-confd-1 new file mode 100644 index 000000000000..c70e8e766da0 --- /dev/null +++ b/app-admin/salt/files/master-confd-1 @@ -0,0 +1,5 @@ +# /etc/conf.d/salt-master: config file for /etc/init.d/salt-master + +# see man pages for salt-minion or run `salt-master --help` +# for valid cmdline options +SALT_OPTS="--log-level=warning" diff --git a/app-admin/salt/files/master-initd-3 b/app-admin/salt/files/master-initd-3 new file mode 100644 index 000000000000..ecaa29f5779b --- /dev/null +++ b/app-admin/salt/files/master-initd-3 @@ -0,0 +1,14 @@ +#!/sbin/runscript +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +command="/usr/bin/salt-master" +command_args="${SALT_OPTS}" +command_background="1" +pidfile="/var/run/salt-master.pid" +name="SALT master daemon" + +depend() { + use net logger +} diff --git a/app-admin/salt/files/master-initd-4 b/app-admin/salt/files/master-initd-4 new file mode 100644 index 000000000000..dc4962809e02 --- /dev/null +++ b/app-admin/salt/files/master-initd-4 @@ -0,0 +1,15 @@ +#!/sbin/runscript +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +command="/usr/bin/salt-master" +command_args="${SALT_OPTS}" +command_background="1" +pidfile="/var/run/salt-master.pid" +name="SALT master daemon" +retry="20" + +depend() { + use net logger +} diff --git a/app-admin/salt/files/minion-confd-1 b/app-admin/salt/files/minion-confd-1 new file mode 100644 index 000000000000..d69d83fcd60d --- /dev/null +++ b/app-admin/salt/files/minion-confd-1 @@ -0,0 +1,5 @@ +# /etc/conf.d/salt-minion: config file for /etc/init.d/salt-minion + +# see man pages for salt-minion or run `salt-minion --help` +# for valid cmdline options +SALT_OPTS="--log-level=warning" diff --git a/app-admin/salt/files/minion-initd-3 b/app-admin/salt/files/minion-initd-3 new file mode 100644 index 000000000000..07842841a59a --- /dev/null +++ b/app-admin/salt/files/minion-initd-3 @@ -0,0 +1,15 @@ +#!/sbin/runscript +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +command="/usr/bin/salt-minion" +command_args="${SALT_OPTS}" +command_background="1" +pidfile="/var/run/salt-minion.pid" +name="SALT minion daemon" + +depend() { + need net + use logger +} diff --git a/app-admin/salt/files/minion-initd-4 b/app-admin/salt/files/minion-initd-4 new file mode 100644 index 000000000000..350703a0b52b --- /dev/null +++ b/app-admin/salt/files/minion-initd-4 @@ -0,0 +1,16 @@ +#!/sbin/runscript +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +command="/usr/bin/salt-minion" +command_args="${SALT_OPTS}" +command_background="1" +pidfile="/var/run/salt-minion.pid" +name="SALT minion daemon" +retry="20" + +depend() { + need net + use logger +} diff --git a/app-admin/salt/files/salt-2014.7.0-remove-pydsl-includes-test.patch b/app-admin/salt/files/salt-2014.7.0-remove-pydsl-includes-test.patch new file mode 100644 index 000000000000..0cf3efe8f347 --- /dev/null +++ b/app-admin/salt/files/salt-2014.7.0-remove-pydsl-includes-test.patch @@ -0,0 +1,104 @@ +diff --git a/tests/unit/pydsl_test.py b/tests/unit/pydsl_test.py +index 59442bd..2c5d129 100644 +--- a/tests/unit/pydsl_test.py ++++ b/tests/unit/pydsl_test.py +@@ -297,99 +297,6 @@ class PyDSLRendererTestCase(TestCase): + finally: + shutil.rmtree(dirpath, ignore_errors=True) + +- def test_rendering_includes(self): +- dirpath = tempfile.mkdtemp(dir=integration.SYS_TMP_DIR) +- if not os.path.isdir(dirpath): +- self.skipTest( +- 'The temporary directory {0!r} was not created'.format( +- dirpath +- ) +- ) +- output = os.path.join(dirpath, 'output') +- try: +- write_to(os.path.join(dirpath, 'aaa.sls'), textwrap.dedent('''\ +- #!pydsl|stateconf -ps +- +- include('xxx') +- yyy = include('yyy') +- +- # ensure states in xxx are run first, then those in yyy and then those in aaa last. +- extend(state('yyy::start').stateconf.require(stateconf='xxx::goal')) +- extend(state('.start').stateconf.require(stateconf='yyy::goal')) +- +- extend(state('yyy::Y2').cmd.run('echo Y2 extended >> {0}')) +- +- __pydsl__.set(ordered=True) +- +- yyy.hello('red', 1) +- yyy.hello('green', 2) +- yyy.hello('blue', 3) +- '''.format(output))) +- +- write_to(os.path.join(dirpath, 'xxx.sls'), textwrap.dedent('''\ +- #!stateconf -os yaml . jinja +- +- include: +- - yyy +- +- extend: +- yyy::start: +- stateconf.set: +- - require: +- - stateconf: .goal +- +- yyy::Y1: +- cmd.run: +- - name: 'echo Y1 extended >> {0}' +- +- .X1: +- cmd.run: +- - name: echo X1 >> {1} +- - cwd: / +- .X2: +- cmd.run: +- - name: echo X2 >> {2} +- - cwd: / +- .X3: +- cmd.run: +- - name: echo X3 >> {3} +- - cwd: / +- +- '''.format(output, output, output, output))) +- +- write_to(os.path.join(dirpath, 'yyy.sls'), textwrap.dedent('''\ +- #!pydsl|stateconf -ps +- +- include('xxx') +- __pydsl__.set(ordered=True) +- +- state('.Y1').cmd.run('echo Y1 >> {0}', cwd='/') +- state('.Y2').cmd.run('echo Y2 >> {1}', cwd='/') +- state('.Y3').cmd.run('echo Y3 >> {2}', cwd='/') +- +- def hello(color, number): +- state(color).cmd.run('echo hello '+color+' '+str(number)+' >> {3}', cwd='/') +- '''.format(output, output, output, output))) +- +- state_highstate({'base': ['aaa']}, dirpath) +- expected = textwrap.dedent('''\ +- X1 +- X2 +- X3 +- Y1 extended +- Y2 extended +- Y3 +- hello red 1 +- hello green 2 +- hello blue 3 +- ''') +- +- with open(output, 'r') as f: +- self.assertEqual(sorted(f.read()), sorted(expected)) +- +- finally: +- shutil.rmtree(dirpath, ignore_errors=True) +- + def test_compile_time_state_execution(self): + if not sys.stdin.isatty(): + self.skipTest('Not attached to a TTY') diff --git a/app-admin/salt/files/salt-2014.7.1-remove-pydsl-includes-test.patch b/app-admin/salt/files/salt-2014.7.1-remove-pydsl-includes-test.patch new file mode 100644 index 000000000000..7c33c12f5c71 --- /dev/null +++ b/app-admin/salt/files/salt-2014.7.1-remove-pydsl-includes-test.patch @@ -0,0 +1,104 @@ +diff --git a/tests/unit/pydsl_test.py b/tests/unit/pydsl_test.py +index 57ba81e..b26154e 100644 +--- a/tests/unit/pydsl_test.py ++++ b/tests/unit/pydsl_test.py +@@ -298,99 +298,6 @@ class PyDSLRendererTestCase(TestCase): + finally: + shutil.rmtree(dirpath, ignore_errors=True) + +- def test_rendering_includes(self): +- dirpath = tempfile.mkdtemp(dir=integration.SYS_TMP_DIR) +- if not os.path.isdir(dirpath): +- self.skipTest( +- 'The temporary directory {0!r} was not created'.format( +- dirpath +- ) +- ) +- output = os.path.join(dirpath, 'output') +- try: +- write_to(os.path.join(dirpath, 'aaa.sls'), textwrap.dedent('''\ +- #!pydsl|stateconf -ps +- +- include('xxx') +- yyy = include('yyy') +- +- # ensure states in xxx are run first, then those in yyy and then those in aaa last. +- extend(state('yyy::start').stateconf.require(stateconf='xxx::goal')) +- extend(state('.start').stateconf.require(stateconf='yyy::goal')) +- +- extend(state('yyy::Y2').cmd.run('echo Y2 extended >> {0}')) +- +- __pydsl__.set(ordered=True) +- +- yyy.hello('red', 1) +- yyy.hello('green', 2) +- yyy.hello('blue', 3) +- '''.format(output))) +- +- write_to(os.path.join(dirpath, 'xxx.sls'), textwrap.dedent('''\ +- #!stateconf -os yaml . jinja +- +- include: +- - yyy +- +- extend: +- yyy::start: +- stateconf.set: +- - require: +- - stateconf: .goal +- +- yyy::Y1: +- cmd.run: +- - name: 'echo Y1 extended >> {0}' +- +- .X1: +- cmd.run: +- - name: echo X1 >> {1} +- - cwd: / +- .X2: +- cmd.run: +- - name: echo X2 >> {2} +- - cwd: / +- .X3: +- cmd.run: +- - name: echo X3 >> {3} +- - cwd: / +- +- '''.format(output, output, output, output))) +- +- write_to(os.path.join(dirpath, 'yyy.sls'), textwrap.dedent('''\ +- #!pydsl|stateconf -ps +- +- include('xxx') +- __pydsl__.set(ordered=True) +- +- state('.Y1').cmd.run('echo Y1 >> {0}', cwd='/') +- state('.Y2').cmd.run('echo Y2 >> {1}', cwd='/') +- state('.Y3').cmd.run('echo Y3 >> {2}', cwd='/') +- +- def hello(color, number): +- state(color).cmd.run('echo hello '+color+' '+str(number)+' >> {3}', cwd='/') +- '''.format(output, output, output, output))) +- +- state_highstate({'base': ['aaa']}, dirpath) +- expected = textwrap.dedent('''\ +- X1 +- X2 +- X3 +- Y1 extended +- Y2 extended +- Y3 +- hello red 1 +- hello green 2 +- hello blue 3 +- ''') +- +- with salt.utils.fopen(output, 'r') as f: +- self.assertEqual(sorted(f.read()), sorted(expected)) +- +- finally: +- shutil.rmtree(dirpath, ignore_errors=True) +- + def test_compile_time_state_execution(self): + if not sys.stdin.isatty(): + self.skipTest('Not attached to a TTY') diff --git a/app-admin/salt/files/salt-2014.7.5-archive-test.patch b/app-admin/salt/files/salt-2014.7.5-archive-test.patch new file mode 100644 index 000000000000..f7ff561efd62 --- /dev/null +++ b/app-admin/salt/files/salt-2014.7.5-archive-test.patch @@ -0,0 +1,15 @@ +diff --git a/tests/unit/states/archive_test.py b/tests/unit/states/archive_test.py +index a7f3005..bb0bc45 100644 +--- a/tests/unit/states/archive_test.py ++++ b/tests/unit/states/archive_test.py +@@ -78,9 +78,7 @@ class ArchiveTest(TestCase): + running_as = 'root' + filename = os.path.join( + tmp_dir, +- 'files/test/_tmp{0}_test_archive.tar'.format( +- '' if running_as == 'root' else '_{0}'.format(running_as) +- ) ++ 'files/test/_tmp_test_archive.tar' + ) + for test_opts, ret_opts in zip(test_tar_opts, ret_tar_opts): + ret = archive.extracted(tmp_dir, diff --git a/app-admin/salt/files/salt-2015.5.0-archive-test.patch b/app-admin/salt/files/salt-2015.5.0-archive-test.patch new file mode 100644 index 000000000000..c47422326974 --- /dev/null +++ b/app-admin/salt/files/salt-2015.5.0-archive-test.patch @@ -0,0 +1,15 @@ +diff --git a/tests/unit/states/archive_test.py b/tests/unit/states/archive_test.py +index 588ec1a..acd53fa 100644 +--- a/tests/unit/states/archive_test.py ++++ b/tests/unit/states/archive_test.py +@@ -78,9 +78,7 @@ class ArchiveTest(TestCase): + running_as = 'root' + filename = os.path.join( + tmp_dir, +- 'files/test/_tmp{0}_test_archive_.tar'.format( +- '' if running_as == 'root' else '_{0}'.format(running_as) +- ) ++ 'files/test/_tmp_test_archive_.tar' + ) + for test_opts, ret_opts in zip(test_tar_opts, ret_tar_opts): + ret = archive.extracted(tmp_dir, diff --git a/app-admin/salt/files/salt-2015.5.1-skip-libvirt-test-on-nonroot.patch b/app-admin/salt/files/salt-2015.5.1-skip-libvirt-test-on-nonroot.patch new file mode 100644 index 000000000000..acb8a091ac48 --- /dev/null +++ b/app-admin/salt/files/salt-2015.5.1-skip-libvirt-test-on-nonroot.patch @@ -0,0 +1,20 @@ +diff --git a/tests/unit/states/libvirt_test.py b/tests/unit/states/libvirt_test.py +index ec09542..477e5c3 100644 +--- a/tests/unit/states/libvirt_test.py ++++ b/tests/unit/states/libvirt_test.py +@@ -4,6 +4,7 @@ + ''' + # Import Python libs + from __future__ import absolute_import ++import os + + # Import Salt Testing Libs + from salttesting import skipIf, TestCase +@@ -27,6 +28,7 @@ libvirt.__opts__ = {} + + + @skipIf(NO_MOCK, NO_MOCK_REASON) ++@skipIf(os.geteuid() != 0, 'You must be logged in as root to run this test') + class LibvirtTestCase(TestCase): + ''' + Test cases for salt.states.libvirt diff --git a/app-admin/salt/files/salt-api.service b/app-admin/salt/files/salt-api.service new file mode 100644 index 000000000000..fd9f665fff09 --- /dev/null +++ b/app-admin/salt/files/salt-api.service @@ -0,0 +1,10 @@ +[Unit] +Description=The Salt Master Server +After=syslog.target network.target + +[Service] +Type=simple +ExecStart=/usr/bin/salt-api + +[Install] +WantedBy=multi-user.target diff --git a/app-admin/salt/files/salt-master.service b/app-admin/salt/files/salt-master.service new file mode 100644 index 000000000000..4f3827ede6df --- /dev/null +++ b/app-admin/salt/files/salt-master.service @@ -0,0 +1,10 @@ +[Unit] +Description=The Salt Master Server +After=syslog.target network.target + +[Service] +Type=simple +ExecStart=/usr/bin/salt-master + +[Install] +WantedBy=multi-user.target diff --git a/app-admin/salt/files/salt-minion.service b/app-admin/salt/files/salt-minion.service new file mode 100644 index 000000000000..2f199f998eca --- /dev/null +++ b/app-admin/salt/files/salt-minion.service @@ -0,0 +1,10 @@ +[Unit] +Description=The Salt Minion +After=syslog.target network.target + +[Service] +Type=simple +ExecStart=/usr/bin/salt-minion + +[Install] +WantedBy=multi-user.target diff --git a/app-admin/salt/files/salt-syndic.service b/app-admin/salt/files/salt-syndic.service new file mode 100644 index 000000000000..922eef35af8b --- /dev/null +++ b/app-admin/salt/files/salt-syndic.service @@ -0,0 +1,10 @@ +[Unit] +Description=The Salt Master Server +After=syslog.target network.target + +[Service] +Type=simple +ExecStart=/usr/bin/salt-syndic + +[Install] +WantedBy=multi-user.target diff --git a/app-admin/salt/files/syndic-confd-1 b/app-admin/salt/files/syndic-confd-1 new file mode 100644 index 000000000000..d69d83fcd60d --- /dev/null +++ b/app-admin/salt/files/syndic-confd-1 @@ -0,0 +1,5 @@ +# /etc/conf.d/salt-minion: config file for /etc/init.d/salt-minion + +# see man pages for salt-minion or run `salt-minion --help` +# for valid cmdline options +SALT_OPTS="--log-level=warning" diff --git a/app-admin/salt/files/syndic-initd-3 b/app-admin/salt/files/syndic-initd-3 new file mode 100644 index 000000000000..532be92c50f8 --- /dev/null +++ b/app-admin/salt/files/syndic-initd-3 @@ -0,0 +1,14 @@ +#!/sbin/runscript +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +command="/usr/bin/salt-syndic" +command_args="${SALT_OPTS}" +command_background="1" +pidfile="/var/run/salt-syndic.pid" +name="SALT syndic daemon" + +depend() { + use net logger +} diff --git a/app-admin/salt/files/syndic-initd-4 b/app-admin/salt/files/syndic-initd-4 new file mode 100644 index 000000000000..65916b4b42c2 --- /dev/null +++ b/app-admin/salt/files/syndic-initd-4 @@ -0,0 +1,15 @@ +#!/sbin/runscript +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +command="/usr/bin/salt-syndic" +command_args="${SALT_OPTS}" +command_background="1" +pidfile="/var/run/salt-syndic.pid" +name="SALT syndic daemon" +retry="20" + +depend() { + use net logger +} diff --git a/app-admin/salt/metadata.xml b/app-admin/salt/metadata.xml new file mode 100644 index 000000000000..7b86f458a6ae --- /dev/null +++ b/app-admin/salt/metadata.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>chutzpah@gentoo.org</email> + <name>Patrick McLean</name> + </maintainer> + <longdescription lang="en"> +Salt is a powerful remote execution manager that can be used to administer +servers in a fast and efficient way. + +Salt allows commands to be executed across large groups of servers. This means +systems can be easily managed, but data can also be easily gathered. Quick +introspection into running systems becomes a reality. + +Remote execution is usually used to set up a certain state on a remote system. +Salt addresses this problem as well, the salt state system uses salt state +files to define the state a server needs to be in. + +Between the remote execution system, and state management Salt addresses the +backbone of cloud and data center management. +</longdescription> + <use> + <flag name="api">Enable support for salt-api.</flag> + <flag name="cherrypy">Enable support for using cherrypy.</flag> + <flag name="libcloud">Enable salt-cloud support via libcloud.</flag> + <flag name="libvirt">Support managing virtual machines with app-emulation/libvirt.</flag> + <flag name="gnupg">Enable support for gnupg via python-gnupg.</flag> + <flag name="keyring">Enable support for keyrings via python-keyring.</flag> + <flag name="mako">Add support for using the mako template engine for parsing salt states.</flag> + <flag name="mongodb">Support returning data to a mongodb server.</flag> + <flag name="neutron">Support the OpenStack neutron network service.</flag> + <flag name="nova">Enable support for the OpenStack Nova API</flag> + <flag name="openssl">Add support for using TLS via OpenSSL.</flag> + <flag name="raet">Add support for the new RAET transport.</flag> + <flag name="redis">Support returning data to a redis database.</flag> + <flag name="timelib">Use timelib to parse english textual date descriptions.</flag> + <flag name="zeromq">Add support for the zeromq transport.</flag> + </use> + <upstream> + <remote-id type="pypi">salt</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/salt/salt-2014.7.4.ebuild b/app-admin/salt/salt-2014.7.4.ebuild new file mode 100644 index 000000000000..385fe0fcec7b --- /dev/null +++ b/app-admin/salt/salt-2014.7.4.ebuild @@ -0,0 +1,108 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=(python2_7) + +inherit eutils distutils-r1 systemd + +DESCRIPTION="Salt is a remote execution and configuration manager" +HOMEPAGE="http://saltstack.org/" + +if [[ ${PV} == 9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="git://github.com/${PN}stack/${PN}.git" + EGIT_BRANCH="develop" + SRC_URI="" + KEYWORDS="" +else + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + KEYWORDS="~x86 ~amd64" +fi + +LICENSE="Apache-2.0" +SLOT="0" +IUSE="api ldap libcloud libvirt gnupg keyring mako mongodb mysql nova" +IUSE+=" openssl redis selinux timelib raet +zeromq test" + +RDEPEND="sys-apps/pciutils + dev-python/jinja[${PYTHON_USEDEP}] + >=dev-python/msgpack-0.3[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/markupsafe[${PYTHON_USEDEP}] + >=dev-python/requests-1.0.0[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + libcloud? ( >=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}] ) + mako? ( dev-python/mako[${PYTHON_USEDEP}] ) + ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] ) + openssl? ( dev-python/pyopenssl[${PYTHON_USEDEP}] ) + libvirt? ( dev-python/libvirt-python[${PYTHON_USEDEP}] ) + raet? ( + dev-python/libnacl[${PYTHON_USEDEP}] + dev-python/ioflo[${PYTHON_USEDEP}] + dev-python/raet[${PYTHON_USEDEP}] + ) + zeromq? ( + >=dev-python/pyzmq-2.2.0[${PYTHON_USEDEP}] + >=dev-python/m2crypto-0.22.3[${PYTHON_USEDEP}] + dev-python/pycrypto[${PYTHON_USEDEP}] + ) + api? ( + || ( + dev-python/cherrypy[${PYTHON_USEDEP}] + www-servers/tornado[${PYTHON_USEDEP}] + ) + ) + mongodb? ( dev-python/pymongo[${PYTHON_USEDEP}] ) + keyring? ( dev-python/keyring[${PYTHON_USEDEP}] ) + mysql? ( dev-python/mysql-python[${PYTHON_USEDEP}] ) + redis? ( dev-python/redis-py[${PYTHON_USEDEP}] ) + selinux? ( sec-policy/selinux-salt ) + timelib? ( dev-python/timelib[${PYTHON_USEDEP}] ) + nova? ( >=dev-python/python-novaclient-2.17.0[${PYTHON_USEDEP}] ) + gnupg? ( dev-python/python-gnupg[${PYTHON_USEDEP}] )" +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + dev-python/pip[${PYTHON_USEDEP}] + dev-python/virtualenv[${PYTHON_USEDEP}] + dev-python/timelib[${PYTHON_USEDEP}] + >=dev-python/SaltTesting-2015.2.16[${PYTHON_USEDEP}] + ${RDEPEND} + )" + +DOCS=(README.rst AUTHORS) + +REQUIRED_USE="|| ( raet zeromq )" + +PATCHES=( + "${FILESDIR}/${PN}-2014.7.1-remove-pydsl-includes-test.patch" +) + +python_prepare() { + # this test fails because it trys to "pip install distribute" + rm tests/unit/{modules,states}/zcbuildout_test.py +} + +python_install_all() { + USE_SETUPTOOLS=1 distutils-r1_python_install_all + + for s in minion master syndic $(use api && echo api); do + newinitd "${FILESDIR}"/${s}-initd-3 salt-${s} + newconfd "${FILESDIR}"/${s}-confd-1 salt-${s} + systemd_dounit "${FILESDIR}"/salt-${s}.service + done + + insinto /etc/${PN} + doins -r conf/* +} + +python_test() { + # testsuite likes lots of files + ulimit -n 3072 + + # using ${T} for the TMPDIR makes some tests needs paths that exceed PATH_MAX + USE_SETUPTOOLS=1 SHELL="/bin/bash" TMPDIR="/tmp" \ + ${EPYTHON} tests/runtests.py \ + --unit-tests --no-report --verbose || die "testing failed" +} diff --git a/app-admin/salt/salt-2014.7.5.ebuild b/app-admin/salt/salt-2014.7.5.ebuild new file mode 100644 index 000000000000..bfbff12057f2 --- /dev/null +++ b/app-admin/salt/salt-2014.7.5.ebuild @@ -0,0 +1,109 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=(python2_7) + +inherit eutils distutils-r1 systemd + +DESCRIPTION="Salt is a remote execution and configuration manager" +HOMEPAGE="http://saltstack.org/" + +if [[ ${PV} == 9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="git://github.com/${PN}stack/${PN}.git" + EGIT_BRANCH="develop" + SRC_URI="" + KEYWORDS="" +else + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + KEYWORDS="~x86 ~amd64" +fi + +LICENSE="Apache-2.0" +SLOT="0" +IUSE="api ldap libcloud libvirt gnupg keyring mako mongodb mysql nova" +IUSE+=" openssl redis selinux timelib raet +zeromq test" + +RDEPEND="sys-apps/pciutils + dev-python/jinja[${PYTHON_USEDEP}] + >=dev-python/msgpack-0.3[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/markupsafe[${PYTHON_USEDEP}] + >=dev-python/requests-1.0.0[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + libcloud? ( >=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}] ) + mako? ( dev-python/mako[${PYTHON_USEDEP}] ) + ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] ) + openssl? ( dev-python/pyopenssl[${PYTHON_USEDEP}] ) + libvirt? ( dev-python/libvirt-python[${PYTHON_USEDEP}] ) + raet? ( + dev-python/libnacl[${PYTHON_USEDEP}] + dev-python/ioflo[${PYTHON_USEDEP}] + dev-python/raet[${PYTHON_USEDEP}] + ) + zeromq? ( + >=dev-python/pyzmq-2.2.0[${PYTHON_USEDEP}] + >=dev-python/m2crypto-0.22.3[${PYTHON_USEDEP}] + dev-python/pycrypto[${PYTHON_USEDEP}] + ) + api? ( + || ( + dev-python/cherrypy[${PYTHON_USEDEP}] + www-servers/tornado[${PYTHON_USEDEP}] + ) + ) + mongodb? ( dev-python/pymongo[${PYTHON_USEDEP}] ) + keyring? ( dev-python/keyring[${PYTHON_USEDEP}] ) + mysql? ( dev-python/mysql-python[${PYTHON_USEDEP}] ) + redis? ( dev-python/redis-py[${PYTHON_USEDEP}] ) + selinux? ( sec-policy/selinux-salt ) + timelib? ( dev-python/timelib[${PYTHON_USEDEP}] ) + nova? ( >=dev-python/python-novaclient-2.17.0[${PYTHON_USEDEP}] ) + gnupg? ( dev-python/python-gnupg[${PYTHON_USEDEP}] )" +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + dev-python/pip[${PYTHON_USEDEP}] + dev-python/virtualenv[${PYTHON_USEDEP}] + dev-python/timelib[${PYTHON_USEDEP}] + >=dev-python/SaltTesting-2015.2.16[${PYTHON_USEDEP}] + ${RDEPEND} + )" + +DOCS=(README.rst AUTHORS) + +REQUIRED_USE="|| ( raet zeromq )" + +PATCHES=( + "${FILESDIR}/${PN}-2014.7.1-remove-pydsl-includes-test.patch" + "${FILESDIR}/${PN}-2014.7.5-archive-test.patch" +) + +python_prepare() { + # this test fails because it trys to "pip install distribute" + rm tests/unit/{modules,states}/zcbuildout_test.py +} + +python_install_all() { + USE_SETUPTOOLS=1 distutils-r1_python_install_all + + for s in minion master syndic $(use api && echo api); do + newinitd "${FILESDIR}"/${s}-initd-3 salt-${s} + newconfd "${FILESDIR}"/${s}-confd-1 salt-${s} + systemd_dounit "${FILESDIR}"/salt-${s}.service + done + + insinto /etc/${PN} + doins -r conf/* +} + +python_test() { + # testsuite likes lots of files + ulimit -n 3072 + + # using ${T} for the TMPDIR makes some tests needs paths that exceed PATH_MAX + USE_SETUPTOOLS=1 SHELL="/bin/bash" TMPDIR="/tmp" \ + ${EPYTHON} tests/runtests.py \ + --unit-tests --no-report --verbose || die "testing failed" +} diff --git a/app-admin/salt/salt-2015.5.1.ebuild b/app-admin/salt/salt-2015.5.1.ebuild new file mode 100644 index 000000000000..33404a8d1129 --- /dev/null +++ b/app-admin/salt/salt-2015.5.1.ebuild @@ -0,0 +1,117 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=(python2_7) + +inherit eutils systemd vim-plugin distutils-r1 + +DESCRIPTION="Salt is a remote execution and configuration manager" +HOMEPAGE="http://saltstack.org/" +SALT_VIM_HASH="20695f68e5895e5ae2b5884b78f5a2cd29897b05" + +if [[ ${PV} == 9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="git://github.com/${PN}stack/${PN}.git" + EGIT_BRANCH="develop" + SRC_URI="" + KEYWORDS="" +else + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + KEYWORDS="~x86 ~amd64" +fi + +SRC_URI+=" vim-syntax? ( https://github.com/${PN}stack/${PN}-vim/archive/${SALT_VIM_HASH}.tar.gz -> salt-vim-20141109.tar.gz )" + +LICENSE="Apache-2.0" +SLOT="0" +IUSE="cherrypy ldap libcloud libvirt gnupg keyring mako mongodb mysql neutron nova" +IUSE+=" openssl redis selinux test timelib raet +zeromq vim-syntax" + +RDEPEND="sys-apps/pciutils + dev-python/jinja[${PYTHON_USEDEP}] + >=dev-python/msgpack-0.3[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/markupsafe[${PYTHON_USEDEP}] + >=dev-python/requests-1.0.0[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + >=www-servers/tornado-4.0[${PYTHON_USEDEP}] + libcloud? ( >=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}] ) + mako? ( dev-python/mako[${PYTHON_USEDEP}] ) + ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] ) + openssl? ( dev-python/pyopenssl[${PYTHON_USEDEP}] ) + libvirt? ( dev-python/libvirt-python[${PYTHON_USEDEP}] ) + raet? ( + >=dev-python/libnacl-1.0.0[${PYTHON_USEDEP}] + >=dev-python/ioflo-1.1.7[${PYTHON_USEDEP}] + >=dev-python/raet-0.6.0[${PYTHON_USEDEP}] + ) + zeromq? ( + >=dev-python/pyzmq-2.2.0[${PYTHON_USEDEP}] + >=dev-python/m2crypto-0.22.3[${PYTHON_USEDEP}] + dev-python/pycrypto[${PYTHON_USEDEP}] + ) + cherrypy? ( >=dev-python/cherrypy-3.2.2[${PYTHON_USEDEP}] ) + mongodb? ( dev-python/pymongo[${PYTHON_USEDEP}] ) + keyring? ( dev-python/keyring[${PYTHON_USEDEP}] ) + mysql? ( dev-python/mysql-python[${PYTHON_USEDEP}] ) + redis? ( dev-python/redis-py[${PYTHON_USEDEP}] ) + selinux? ( sec-policy/selinux-salt ) + timelib? ( dev-python/timelib[${PYTHON_USEDEP}] ) + nova? ( >=dev-python/python-novaclient-2.17.0[${PYTHON_USEDEP}] ) + neutron? ( >=dev-python/python-neutronclient-2.3.6[${PYTHON_USEDEP}] ) + gnupg? ( dev-python/python-gnupg[${PYTHON_USEDEP}] )" +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + dev-python/pip[${PYTHON_USEDEP}] + dev-python/virtualenv[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + dev-python/timelib[${PYTHON_USEDEP}] + >=dev-python/boto-2.32.1[${PYTHON_USEDEP}] + >=dev-python/moto-0.3.6[${PYTHON_USEDEP}] + >=dev-python/SaltTesting-2015.2.16[${PYTHON_USEDEP}] + ${RDEPEND} + )" + +DOCS=(README.rst AUTHORS) + +REQUIRED_USE="|| ( raet zeromq )" + +PATCHES=( + "${FILESDIR}/${PN}-2014.7.1-remove-pydsl-includes-test.patch" + "${FILESDIR}/${PN}-2015.5.0-archive-test.patch" + "${FILESDIR}/${PN}-2015.5.1-skip-libvirt-test-on-nonroot.patch" +) + +python_prepare() { + # this test fails because it trys to "pip install distribute" + rm tests/unit/{modules,states}/zcbuildout_test.py tests/unit/modules/{rh_ip,win_network}_test.py +} + +python_install_all() { + local svc + USE_SETUPTOOLS=1 distutils-r1_python_install_all + + for svc in minion master syndic api; do + newinitd "${FILESDIR}"/${svc}-initd-4 salt-${svc} + newconfd "${FILESDIR}"/${svc}-confd-1 salt-${svc} + systemd_dounit "${FILESDIR}"/salt-${svc}.service + done + + insinto /etc/${PN} + doins -r conf/* + + use vim-syntax && S="${WORKDIR}/salt-vim-${SALT_VIM_HASH}" \ + vim-plugin_src_install +} + +python_test() { + # testsuite likes lots of files + ulimit -n 3072 + + # using ${T} for the TMPDIR makes some tests needs paths that exceed PATH_MAX + USE_SETUPTOOLS=1 SHELL="/bin/bash" TMPDIR="/tmp" \ + ${EPYTHON} tests/runtests.py \ + --unit-tests --no-report --verbose || die "testing failed" +} diff --git a/app-admin/salt/salt-2015.5.3.ebuild b/app-admin/salt/salt-2015.5.3.ebuild new file mode 100644 index 000000000000..5f23c6bb1c04 --- /dev/null +++ b/app-admin/salt/salt-2015.5.3.ebuild @@ -0,0 +1,116 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=(python2_7) + +inherit eutils systemd vim-plugin distutils-r1 + +DESCRIPTION="Salt is a remote execution and configuration manager" +HOMEPAGE="http://saltstack.org/" +SALT_VIM_HASH="20695f68e5895e5ae2b5884b78f5a2cd29897b05" + +if [[ ${PV} == 9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="git://github.com/${PN}stack/${PN}.git" + EGIT_BRANCH="develop" + SRC_URI="" + KEYWORDS="" +else + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + KEYWORDS="~x86 ~amd64" +fi + +SRC_URI+=" vim-syntax? ( https://github.com/${PN}stack/${PN}-vim/archive/${SALT_VIM_HASH}.tar.gz -> salt-vim-20141109.tar.gz )" + +LICENSE="Apache-2.0" +SLOT="0" +IUSE="cherrypy ldap libcloud libvirt gnupg keyring mako mongodb mysql neutron nova" +IUSE+=" openssl redis selinux test timelib raet +zeromq vim-syntax" + +RDEPEND="sys-apps/pciutils + dev-python/jinja[${PYTHON_USEDEP}] + >=dev-python/msgpack-0.3[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/markupsafe[${PYTHON_USEDEP}] + >=dev-python/requests-1.0.0[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + >=www-servers/tornado-4.0[${PYTHON_USEDEP}] + libcloud? ( >=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}] ) + mako? ( dev-python/mako[${PYTHON_USEDEP}] ) + ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] ) + openssl? ( dev-python/pyopenssl[${PYTHON_USEDEP}] ) + libvirt? ( dev-python/libvirt-python[${PYTHON_USEDEP}] ) + raet? ( + >=dev-python/libnacl-1.0.0[${PYTHON_USEDEP}] + >=dev-python/ioflo-1.1.7[${PYTHON_USEDEP}] + >=dev-python/raet-0.6.0[${PYTHON_USEDEP}] + ) + zeromq? ( + >=dev-python/pyzmq-2.2.0[${PYTHON_USEDEP}] + >=dev-python/m2crypto-0.22.3[${PYTHON_USEDEP}] + dev-python/pycrypto[${PYTHON_USEDEP}] + ) + cherrypy? ( >=dev-python/cherrypy-3.2.2[${PYTHON_USEDEP}] ) + mongodb? ( dev-python/pymongo[${PYTHON_USEDEP}] ) + keyring? ( dev-python/keyring[${PYTHON_USEDEP}] ) + mysql? ( dev-python/mysql-python[${PYTHON_USEDEP}] ) + redis? ( dev-python/redis-py[${PYTHON_USEDEP}] ) + selinux? ( sec-policy/selinux-salt ) + timelib? ( dev-python/timelib[${PYTHON_USEDEP}] ) + nova? ( >=dev-python/python-novaclient-2.17.0[${PYTHON_USEDEP}] ) + neutron? ( >=dev-python/python-neutronclient-2.3.6[${PYTHON_USEDEP}] ) + gnupg? ( dev-python/python-gnupg[${PYTHON_USEDEP}] )" +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + dev-python/pip[${PYTHON_USEDEP}] + dev-python/virtualenv[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + dev-python/timelib[${PYTHON_USEDEP}] + >=dev-python/boto-2.32.1[${PYTHON_USEDEP}] + >=dev-python/moto-0.3.6[${PYTHON_USEDEP}] + >=dev-python/SaltTesting-2015.2.16[${PYTHON_USEDEP}] + ${RDEPEND} + )" + +DOCS=(README.rst AUTHORS) + +REQUIRED_USE="|| ( raet zeromq )" + +PATCHES=( + "${FILESDIR}/${PN}-2014.7.1-remove-pydsl-includes-test.patch" + "${FILESDIR}/${PN}-2015.5.0-archive-test.patch" +) + +python_prepare() { + # this test fails because it trys to "pip install distribute" + rm tests/unit/{modules,states}/zcbuildout_test.py tests/unit/modules/{rh_ip,win_network}_test.py +} + +python_install_all() { + local svc + USE_SETUPTOOLS=1 distutils-r1_python_install_all + + for svc in minion master syndic api; do + newinitd "${FILESDIR}"/${svc}-initd-4 salt-${svc} + newconfd "${FILESDIR}"/${svc}-confd-1 salt-${svc} + systemd_dounit "${FILESDIR}"/salt-${svc}.service + done + + insinto /etc/${PN} + doins -r conf/* + + use vim-syntax && S="${WORKDIR}/salt-vim-${SALT_VIM_HASH}" \ + vim-plugin_src_install +} + +python_test() { + # testsuite likes lots of files + ulimit -n 3072 + + # using ${T} for the TMPDIR makes some tests needs paths that exceed PATH_MAX + USE_SETUPTOOLS=1 SHELL="/bin/bash" TMPDIR="/tmp" \ + ${EPYTHON} tests/runtests.py \ + --unit-tests --no-report --verbose || die "testing failed" +} diff --git a/app-admin/salt/salt-9999.ebuild b/app-admin/salt/salt-9999.ebuild new file mode 100644 index 000000000000..d7d1937a474c --- /dev/null +++ b/app-admin/salt/salt-9999.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=(python2_7) + +inherit eutils distutils-r1 systemd + +DESCRIPTION="Salt is a remote execution and configuration manager" +HOMEPAGE="http://saltstack.org/" + +if [[ ${PV} == 9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="git://github.com/${PN}stack/${PN}.git" + EGIT_BRANCH="develop" + SRC_URI="" + KEYWORDS="" +else + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + KEYWORDS="~x86 ~amd64" +fi + +LICENSE="Apache-2.0" +SLOT="0" +IUSE="api ldap libcloud libvirt gnupg keyring mako mongodb mysql nova" +IUSE+=" openssl redis selinux timelib raet +zeromq test" + +RDEPEND="sys-apps/pciutils + dev-python/jinja[${PYTHON_USEDEP}] + >=dev-python/msgpack-0.3[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/markupsafe[${PYTHON_USEDEP}] + >=dev-python/requests-1.0.0[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + libcloud? ( >=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}] ) + mako? ( dev-python/mako[${PYTHON_USEDEP}] ) + ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] ) + openssl? ( dev-python/pyopenssl[${PYTHON_USEDEP}] ) + libvirt? ( dev-python/libvirt-python[${PYTHON_USEDEP}] ) + raet? ( + dev-python/libnacl[${PYTHON_USEDEP}] + dev-python/ioflo[${PYTHON_USEDEP}] + dev-python/raet[${PYTHON_USEDEP}] + ) + zeromq? ( + >=dev-python/pyzmq-2.2.0[${PYTHON_USEDEP}] + >=dev-python/m2crypto-0.22.3[${PYTHON_USEDEP}] + dev-python/pycrypto[${PYTHON_USEDEP}] + ) + api? ( + || ( + dev-python/cherrypy[${PYTHON_USEDEP}] + www-servers/tornado[${PYTHON_USEDEP}] + ) + ) + mongodb? ( dev-python/pymongo[${PYTHON_USEDEP}] ) + keyring? ( dev-python/keyring[${PYTHON_USEDEP}] ) + mysql? ( dev-python/mysql-python[${PYTHON_USEDEP}] ) + redis? ( dev-python/redis-py[${PYTHON_USEDEP}] ) + selinux? ( sec-policy/selinux-salt ) + timelib? ( dev-python/timelib[${PYTHON_USEDEP}] ) + nova? ( >=dev-python/python-novaclient-2.17.0[${PYTHON_USEDEP}] ) + gnupg? ( dev-python/python-gnupg[${PYTHON_USEDEP}] )" +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + dev-python/pip[${PYTHON_USEDEP}] + dev-python/virtualenv[${PYTHON_USEDEP}] + dev-python/timelib[${PYTHON_USEDEP}] + >=dev-python/SaltTesting-2015.2.16[${PYTHON_USEDEP}] + ${RDEPEND} + )" + +DOCS=(README.rst AUTHORS) + +REQUIRED_USE="|| ( raet zeromq )" + +python_prepare() { + # this test fails because it trys to "pip install distribute" + rm tests/unit/{modules,states}/zcbuildout_test.py +} + +python_install_all() { + USE_SETUPTOOLS=1 distutils-r1_python_install_all + + for s in minion master syndic $(use api && echo api); do + newinitd "${FILESDIR}"/${s}-initd-3 salt-${s} + newconfd "${FILESDIR}"/${s}-confd-1 salt-${s} + systemd_dounit "${FILESDIR}"/salt-${s}.service + done + + insinto /etc/${PN} + doins -r conf/* +} + +python_test() { + # testsuite likes lots of files + ulimit -n 3072 + + # using ${T} for the TMPDIR makes some tests needs paths that exceed PATH_MAX + USE_SETUPTOOLS=1 SHELL="/bin/bash" TMPDIR="/tmp" \ + ${EPYTHON} tests/runtests.py \ + --unit-tests --no-report --verbose || die "testing failed" +} diff --git a/app-admin/setools/Manifest b/app-admin/setools/Manifest new file mode 100644 index 000000000000..6aeaf2fec08d --- /dev/null +++ b/app-admin/setools/Manifest @@ -0,0 +1,4 @@ +DIST setools-3.3.8-01-fedora-patches.tar.gz 1128 SHA256 420b852d4209d07b73cec84586e000e7a6a719135ea677711abf97d420840bb6 SHA512 1aa2cc50c307929b522e029a552bfd545aef07656d1983289b0ea9be67aa94c07272a59c17630fc09fd79b06845ada318cdfa48d6cc243a24026e015c23b9634 WHIRLPOOL 25ae2b15fb15060fd0d34c55f4cc098b70a3a616f5334b092657a9c5df037b7fcf00fd185f33ba142e47d46c36b2fb7e9434021d6e987832fe833367a50d7449 +DIST setools-3.3.8-03-gentoo-patches.tar.gz 6584 SHA256 8eac460b7dc2ee5e2f23148cdbf187316edd78ce0ec7ebbb6b0f68d6ad33d86a SHA512 5458dab5775b558e287f946c299753be5cb5eb6c1c2b9df0e32c7cfa758bb5316d142aa6338d3019f5f1eeb72876e4d5ed4939b0dbfe7b7e01c08a19a086bacc WHIRLPOOL e1afa6bb28f3aee2f3acdc66efd8ca02548c4f8e5707052ea455f1db558126f069d63278251630ee68bf4987157279161006975cb14d44055492228fa476cd72 +DIST setools-3.3.8-04-gentoo-patches.tar.bz2 94986 SHA256 9a8a43ac97606fde9b2610ceed65f640638929853f871ce530982bedfd919b64 SHA512 39bf00b6aaf31821c6e2e2fb4c460dd1914fba4bf8385acebedf88f1533da990f1fb925dd49d75827aebef3f394a50a1edea46a07204193b58c65a066a064e6a WHIRLPOOL 4a92e4cf6930584de931c5d0805815aacd1c1af4434ca8e73414eda33588a55ef8d7bdfe4195be642889eee480128cbe12d1c5612e07ea304021b230e0b74816 +DIST setools-3.3.8.tar.bz2 951428 SHA256 44387ecc9a231ec536a937783440cd8960a72c51f14bffc1604b7525e341e999 SHA512 2c42ee9904174ed6c6fc129e374ec3591925094ab0ef65001b0104e365c5634bf4a79f28369608c80199d8f59fafaa5f274107c04c129c380eeef7adb0c32667 WHIRLPOOL 11c4065809909764f4364b78df1a8030d189315601b882919ccacb5fb147c1b3a061c5bbf9ced3c243d4615ab7727e9db0c89e931a884ae8b317ae3a879e5371 diff --git a/app-admin/setools/files/fix-check-role_set_expand-libsepol-2.1.0.patch b/app-admin/setools/files/fix-check-role_set_expand-libsepol-2.1.0.patch new file mode 100644 index 000000000000..548f60b7dc88 --- /dev/null +++ b/app-admin/setools/files/fix-check-role_set_expand-libsepol-2.1.0.patch @@ -0,0 +1,24 @@ +diff -ur setools-3.3.7.orig/configure.ac setools-3.3.7/configure.ac +--- setools-3.3.7.orig/configure.ac 2011-08-12 19:20:32.651000078 +0200 ++++ setools-3.3.7/configure.ac 2011-08-12 19:20:42.224000036 +0200 +@@ -503,7 +503,7 @@ + [AC_LANG_SOURCE([ + #include <sepol/policydb/expand.h> + int main () { +- return role_set_expand(NULL, NULL, NULL, NULL); ++ return role_set_expand(NULL, NULL, NULL, NULL, NULL); + }])], + sepol_new_user_role_mapping="yes", + sepol_new_user_role_mapping="no") +diff -ur setools-3.3.7.orig/libqpol/src/policy_define.c setools-3.3.7/libqpol/src/policy_define.c +--- setools-3.3.7.orig/libqpol/src/policy_define.c 2011-08-12 19:20:32.657000013 +0200 ++++ setools-3.3.7/libqpol/src/policy_define.c 2011-08-12 19:20:53.907005864 +0200 +@@ -2133,7 +2133,7 @@ + + /* This ebitmap business is just to ensure that there are not conflicting role_trans rules */ + #ifdef HAVE_SEPOL_USER_ROLE_MAPPING +- if (role_set_expand(&roles, &e_roles, policydbp, NULL)) ++ if (role_set_expand(&roles, &e_roles, policydbp, NULL, NULL)) + #else + if (role_set_expand(&roles, &e_roles, policydbp)) + #endif diff --git a/app-admin/setools/files/fix-implicit-def-fstat.patch b/app-admin/setools/files/fix-implicit-def-fstat.patch new file mode 100644 index 000000000000..72764320a252 --- /dev/null +++ b/app-admin/setools/files/fix-implicit-def-fstat.patch @@ -0,0 +1,13 @@ +diff -ur setools-3.3.7.orig/libqpol/src/policy.c setools-3.3.7/libqpol/src/policy.c +--- setools-3.3.7.orig/libqpol/src/policy.c 2011-08-12 19:48:13.793000029 +0200 ++++ setools-3.3.7/libqpol/src/policy.c 2011-08-12 19:49:32.880001229 +0200 +@@ -36,6 +36,9 @@ + #include <stdio.h> + #include <stdlib.h> + #include <sys/mman.h> ++#include <sys/types.h> ++#include <sys/stat.h> ++#include <unistd.h> + #include <asm/types.h> + + #include <sepol/debug.h> diff --git a/app-admin/setools/files/setools3-userspace-2.4-compatibility.patch b/app-admin/setools/files/setools3-userspace-2.4-compatibility.patch new file mode 100644 index 000000000000..c8fc3f52905d --- /dev/null +++ b/app-admin/setools/files/setools3-userspace-2.4-compatibility.patch @@ -0,0 +1,114 @@ +From f1e5b208d507171968ca4d2eeefd7980f1004a3c Mon Sep 17 00:00:00 2001 +From: Chris PeBenito <cpebenito@tresys.com> +Date: Thu, 12 Feb 2015 08:55:12 -0500 +Subject: [PATCH] Update for 2015-02-02 Userspace release (2.4) + +SETools now requires libsepol 2.4 and libselinux 2.4. +--- + configure.ac | 6 +++--- + libqpol/src/policy_define.c | 4 ++-- + libqpol/src/policy_extend.c | 4 ++-- + libqpol/src/syn_rule_query.c | 6 +++--- + secmds/replcon.cc | 2 +- + 5 files changed, 11 insertions(+), 11 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 80395e6..ae20da7 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -25,9 +25,9 @@ libseaudit_version=4.5 + setoolsdir='${prefix}/share/setools-3.3' + javadir='${prefix}/share/java' + +-version_min_sepol_major=1 +-version_min_sepol_minor=12 +-version_min_sepol_patch=27 ++version_min_sepol_major=2 ++version_min_sepol_minor=4 ++version_min_sepol_patch=0 + + dnl *** end of tunable values *** + +diff --git a/libqpol/src/policy_define.c b/libqpol/src/policy_define.c +index 229779c..15f70ba 100644 +--- a/libqpol/src/policy_define.c ++++ b/libqpol/src/policy_define.c +@@ -1661,7 +1661,7 @@ int define_compute_type_helper(int which, avrule_t ** rule) + goto bad; + } + class_perm_node_init(perm); +- perm->class = i + 1; ++ perm->tclass = i + 1; + perm->data = datum->s.value; + perm->next = avrule->perms; + avrule->perms = perm; +@@ -1901,7 +1901,7 @@ int define_te_avtab_helper(int which, avrule_t ** rule) + goto out; + } + class_perm_node_init(cur_perms); +- cur_perms->class = i + 1; ++ cur_perms->tclass = i + 1; + if (!perms) + perms = cur_perms; + if (tail) +diff --git a/libqpol/src/policy_extend.c b/libqpol/src/policy_extend.c +index 5325a87..1417271 100644 +--- a/libqpol/src/policy_extend.c ++++ b/libqpol/src/policy_extend.c +@@ -843,7 +843,7 @@ static int qpol_syn_rule_table_insert_sepol_avrule(qpol_policy_t * policy, qpol_ + for (class_node = rule->perms; class_node; class_node = class_node->next) { + key.rule_type = rule->specified; + key.source_val = key.target_val = i + 1; +- key.class_val = class_node->class; ++ key.class_val = class_node->tclass; + key.cond = cond; + if (qpol_syn_rule_table_insert_entry(policy, table, &key, new_rule)) + goto err; +@@ -856,7 +856,7 @@ static int qpol_syn_rule_table_insert_sepol_avrule(qpol_policy_t * policy, qpol_ + key.rule_type = rule->specified; + key.source_val = i + 1; + key.target_val = j + 1; +- key.class_val = class_node->class; ++ key.class_val = class_node->tclass; + key.cond = cond; + if (qpol_syn_rule_table_insert_entry(policy, table, &key, new_rule)) + goto err; +diff --git a/libqpol/src/syn_rule_query.c b/libqpol/src/syn_rule_query.c +index 3e63204..d7578f1 100644 +--- a/libqpol/src/syn_rule_query.c ++++ b/libqpol/src/syn_rule_query.c +@@ -67,7 +67,7 @@ static void *syn_rule_class_state_get_cur(const qpol_iterator_t * iter) + return NULL; + } + +- return db->class_val_to_struct[srcs->cur->class - 1]; ++ return db->class_val_to_struct[srcs->cur->tclass - 1]; + } + + static int syn_rule_class_state_next(qpol_iterator_t * iter) +@@ -465,10 +465,10 @@ int qpol_syn_avrule_get_perm_iter(const qpol_policy_t * policy, const qpol_syn_a + } + + for (node = internal_rule->perms; node; node = node->next) { +- for (i = 0; i < db->class_val_to_struct[node->class - 1]->permissions.nprim; i++) { ++ for (i = 0; i < db->class_val_to_struct[node->tclass - 1]->permissions.nprim; i++) { + if (!(node->data & (1 << i))) + continue; +- tmp = sepol_av_to_string(db, node->class, (sepol_access_vector_t) (1 << i)); ++ tmp = sepol_av_to_string(db, node->tclass, (sepol_access_vector_t) (1 << i)); + if (tmp) { + tmp++; /* remove prepended space */ + for (cur = 0; cur < perm_list_sz; cur++) +diff --git a/secmds/replcon.cc b/secmds/replcon.cc +index 34f7c1a..307c39f 100644 +--- a/secmds/replcon.cc ++++ b/secmds/replcon.cc +@@ -60,7 +60,7 @@ static struct option const longopts[] = { + {NULL, 0, NULL, 0} + }; + +-extern int lsetfilecon_raw(const char *, security_context_t) __attribute__ ((weak)); ++extern int lsetfilecon_raw(const char *, const char *) __attribute__ ((weak)); + + /** + * As that setools must work with older libselinux versions that may diff --git a/app-admin/setools/metadata.xml b/app-admin/setools/metadata.xml new file mode 100644 index 000000000000..12d653b53586 --- /dev/null +++ b/app-admin/setools/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>selinux</herd> + <longdescription>SELinux policy analysis tools.</longdescription> + <upstream> + <remote-id type="github">TresysTechnology/setools</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/setools/setools-3.3.8-r5.ebuild b/app-admin/setools/setools-3.3.8-r5.ebuild new file mode 100644 index 000000000000..d1b6a8c7d5ac --- /dev/null +++ b/app-admin/setools/setools-3.3.8-r5.ebuild @@ -0,0 +1,160 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +PYTHON_COMPAT=( python2_7 ) + +inherit autotools java-pkg-opt-2 python-r1 eutils toolchain-funcs + +DESCRIPTION="SELinux policy tools" +HOMEPAGE="http://www.tresys.com/selinux/selinux_policy_tools.shtml" +SRC_URI="http://oss.tresys.com/projects/setools/chrome/site/dists/${P}/${P}.tar.bz2 + http://dev.gentoo.org/~swift/patches/setools/${P}-01-fedora-patches.tar.gz + http://dev.gentoo.org/~swift/patches/setools/${P}-03-gentoo-patches.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="X debug java python" + +DEPEND=">=sys-libs/libsepol-2.1.4 + >=sys-libs/libselinux-2.3 + sys-devel/bison + sys-devel/flex + >=dev-db/sqlite-3.2:3 + dev-libs/libxml2:2 + virtual/pkgconfig + java? ( + dev-lang/swig:1 + >=virtual/jdk-1.4 + ) + python? ( + ${PYTHON_DEPS} + dev-lang/swig:1 + ) + X? ( + >=dev-lang/tk-8.4.9 + >=gnome-base/libglade-2.0 + >=x11-libs/gtk+-2.8:2 + )" + +RDEPEND=">=sys-libs/libsepol-2.1.4 + >=sys-libs/libselinux-2.3 + >=dev-db/sqlite-3.2:3 + dev-libs/libxml2:2 + java? ( >=virtual/jre-1.4 ) + X? ( + >=dev-lang/tk-8.4.9:0= + >=dev-tcltk/bwidget-1.8 + >=gnome-base/libglade-2.0 + >=x11-libs/gtk+-2.8:2 + )" + +RESTRICT="test" +# setools dirs that contain python code to build +PYTHON_DIRS="libapol/swig/python libpoldiff/swig/python libqpol/swig/python libseaudit/swig/python libsefs/swig/python python" + +pkg_setup() { + if use java; then + java-pkg-opt-2_pkg_setup + fi +} + +src_prepare() { + EPATCH_MULTI_MSG="Applying various (Fedora-provided) setools fixes... " \ + EPATCH_SUFFIX="patch" \ + EPATCH_SOURCE="${WORKDIR}" \ + EPATCH_FORCE="yes" \ + epatch + + EPATCH_MULTI_MSG="Applying various (Gentoo) setool fixes... " \ + EPATCH_SUFFIX="patch" \ + EPATCH_SOURCE="${WORKDIR}/gentoo-patches" \ + EPATCH_FORCE="yes" \ + epatch + + # Disable broken check for SWIG version. + sed -e "s/AC_PROG_SWIG(2.0.0)/AC_PROG_SWIG/" -i configure.ac || die "sed failed" + # Use swig1.3 + sed -e 's/AC_PATH_PROG(\[SWIG\],\[swig\])/AC_PATH_PROG([SWIG],[swig1.3])/' -i m4/ac_pkg_swig.m4 || die "failed to set swig1.3" + # Fix build failure due to double __init__.py installation + sed -e "s/^wrappedpy_DATA = qpol.py \$(pkgpython_PYTHON)/wrappedpy_DATA = qpol.py/" -i libqpol/swig/python/Makefile.am || die + + local dir + for dir in ${PYTHON_DIRS}; do + # Python bindings are built/installed manually. + sed -e "s/MAYBE_PYSWIG = python/MAYBE_PYSWIG =/" -i ${dir%python}Makefile.am || die "sed failed" + # Make PYTHON_LDFLAGS replaceable during running `make`. + sed -e "/^AM_LDFLAGS =/s/@PYTHON_LDFLAGS@/\$(PYTHON_LDFLAGS)/" -i ${dir}/Makefile.am || die "sed failed" + done + + # temporary work around bug #424581 until automake-1.12 is stable (then + # depend on it). Need to use MKDIR_P in the mean time for 1.12+. + has_version ">=sys-devel/automake-1.12.1" && { find . -name 'Makefile.*' -exec sed -i -e 's:mkdir_p:MKDIR_P:g' {} + || die; } + + eautoreconf + + # Disable byte-compilation of Python modules. + echo '#!/bin/sh' > py-compile + + epatch_user +} + +src_configure() { + tc-ld-disable-gold #467136 + econf \ + --with-java-prefix=${JAVA_HOME} \ + --disable-selinux-check \ + --disable-bwidget-check \ + $(use_enable python swig-python) \ + $(use_enable java swig-java) \ + $(use_enable X swig-tcl) \ + $(use_enable X gui) \ + $(use_enable debug) + + # work around swig c99 issues. it does not require + # c99 anyway. + sed -i -e 's/-std=gnu99//' "${S}/libseaudit/swig/python/Makefile" +} + +src_compile() { + emake + + if use python; then + building() { + python_export PYTHON_INCLUDEDIR + python_export PYTHON_SITEDIR + python_export PYTHON_LIBS + emake \ + SWIG_PYTHON_CPPFLAGS="-I${PYTHON_INCLUDEDIR}" \ + PYTHON_LDFLAGS="${PYTHON_LIBS}" \ + pyexecdir="${PYTHON_SITEDIR}" \ + pythondir="${PYTHON_SITEDIR}" \ + -C "$1" + } + local dir + for dir in ${PYTHON_DIRS}; do + python_foreach_impl building ${dir} + done + fi +} + +src_install() { + emake DESTDIR="${D}" install + + if use python; then + installation() { + python_export PYTHON_SITEDIR + emake DESTDIR="${D}" \ + pyexecdir="${PYTHON_SITEDIR}" \ + pythondir="${PYTHON_SITEDIR}" \ + -C "$1" install + } + + local dir + for dir in ${PYTHON_DIRS}; do + python_foreach_impl installation "${dir}" + done + fi +} diff --git a/app-admin/setools/setools-3.3.8-r7.ebuild b/app-admin/setools/setools-3.3.8-r7.ebuild new file mode 100644 index 000000000000..2d4502037404 --- /dev/null +++ b/app-admin/setools/setools-3.3.8-r7.ebuild @@ -0,0 +1,138 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +PYTHON_COMPAT=( python2_7 python3_4 ) + +inherit autotools java-pkg-opt-2 python-r1 eutils toolchain-funcs + +DESCRIPTION="SELinux policy tools" +HOMEPAGE="http://www.tresys.com/selinux/selinux_policy_tools.shtml" +SRC_URI="http://oss.tresys.com/projects/setools/chrome/site/dists/${P}/${P}.tar.bz2 + http://dev.gentoo.org/~perfinion/patches/setools/${P}-04-gentoo-patches.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="X debug java python" + +COMMONDEPEND=">=sys-libs/libsepol-2.4 + >=sys-libs/libselinux-2.4 + >=dev-db/sqlite-3.2:3 + dev-libs/libxml2:2 + python? ( ${PYTHON_DEPS} ) + X? ( + >=dev-lang/tk-8.4.9:0= + >=gnome-base/libglade-2.0 + >=x11-libs/gtk+-2.8:2 + )" + +DEPEND="${COMMONDEPEND} + >=sys-devel/automake-1.12.1 + sys-devel/bison + sys-devel/flex + virtual/pkgconfig + java? ( dev-lang/swig + virtual/jdk:= ) + python? ( dev-lang/swig )" + +RDEPEND="${COMMONDEPEND} + java? ( >=virtual/jre-1.4:= ) + X? ( >=dev-tcltk/bwidget-1.8 )" + +RESTRICT="test" +# setools dirs that contain python code to build +PYTHON_DIRS="libapol/swig/python libpoldiff/swig/python libqpol/swig/python libseaudit/swig/python libsefs/swig/python python" + +pkg_setup() { + if use java; then + java-pkg-opt-2_pkg_setup + fi +} + +src_prepare() { + EPATCH_MULTI_MSG="Applying various (Gentoo) setool fixes... " \ + EPATCH_SUFFIX="patch" \ + EPATCH_SOURCE="${WORKDIR}/gentoo-patches" \ + EPATCH_FORCE="yes" \ + epatch + + # Fix build failure due to double __init__.py installation + sed -e "s/^wrappedpy_DATA = qpol.py \$(pkgpython_PYTHON)/wrappedpy_DATA = qpol.py/" -i libqpol/swig/python/Makefile.am || die + # Disable broken check for SWIG version. Bug #542032 + sed -e "s/AC_PROG_SWIG(2.0.0)/AC_PROG_SWIG/" -i configure.ac || die "sed failed" + + local dir + for dir in ${PYTHON_DIRS}; do + # Python bindings are built/installed manually. + sed -e "s/MAYBE_PYSWIG = python/MAYBE_PYSWIG =/" -i ${dir%python}Makefile.am || die "sed failed" + # Make PYTHON_LDFLAGS replaceable during running `make`. + sed -e "/^AM_LDFLAGS =/s/@PYTHON_LDFLAGS@/\$(PYTHON_LDFLAGS)/" -i ${dir}/Makefile.am || die "sed failed" + done + + epatch_user + + eautoreconf + + # Disable byte-compilation of Python modules. + echo '#!/bin/sh' > py-compile +} + +src_configure() { + tc-ld-disable-gold #467136 + econf \ + --with-java-prefix=${JAVA_HOME} \ + --disable-selinux-check \ + --disable-bwidget-check \ + $(use_enable python swig-python) \ + $(use_enable java swig-java) \ + $(use_enable X swig-tcl) \ + $(use_enable X gui) \ + $(use_enable debug) + + # work around swig c99 issues. it does not require + # c99 anyway. + sed -i -e 's/-std=gnu99//' "${S}/libseaudit/swig/python/Makefile" +} + +src_compile() { + emake + + if use python; then + building() { + python_export PYTHON_INCLUDEDIR + python_export PYTHON_SITEDIR + python_export PYTHON_LIBS + emake \ + SWIG_PYTHON_CPPFLAGS="-I${PYTHON_INCLUDEDIR}" \ + PYTHON_LDFLAGS="${PYTHON_LIBS}" \ + pyexecdir="${PYTHON_SITEDIR}" \ + pythondir="${PYTHON_SITEDIR}" \ + -C "$1" + } + local dir + for dir in ${PYTHON_DIRS}; do + python_foreach_impl building ${dir} + done + fi +} + +src_install() { + emake DESTDIR="${D}" install + + if use python; then + installation() { + python_export PYTHON_SITEDIR + emake DESTDIR="${D}" \ + pyexecdir="${PYTHON_SITEDIR}" \ + pythondir="${PYTHON_SITEDIR}" \ + -C "$1" install + } + + local dir + for dir in ${PYTHON_DIRS}; do + python_foreach_impl installation "${dir}" + done + fi +} diff --git a/app-admin/setools/setools-9999.ebuild b/app-admin/setools/setools-9999.ebuild new file mode 100644 index 000000000000..de9943ad7e0a --- /dev/null +++ b/app-admin/setools/setools-9999.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +PYTHON_COMPAT=( python2_7 python3_4 ) + +inherit distutils-r1 + +DESCRIPTION="Policy Analysis Tools for SELinux" +HOMEPAGE="https://github.com/TresysTechnology/setools/wiki" + +if [[ ${PV} == 9999 ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/TresysTechnology/setools.git" +else + #SRC_URI="https://github.com/TresysTechnology/setools/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +IUSE="debug test" + +RDEPEND="${PYTHON_DEPS} + >=sys-libs/libselinux-2.4:=[${PYTHON_USEDEP}] + >=dev-python/networkx-1.8[${PYTHON_USEDEP}] + app-arch/bzip2:= + dev-libs/libpcre:= + " + +DEPEND="${RDEPEND} + >=dev-lang/swig-2.0.12:0 + sys-devel/bison + sys-devel/flex + >=sys-libs/libsepol-2.4 + test? ( + python_targets_python2_7? ( dev-python/mock[${PYTHON_USEDEP}] ) + dev-python/tox[${PYTHON_USEDEP}] + )" + +python_prepare_all() { + sed -i "s/'-Werror', //" "${S}"/setup.py || die "failed to remove Werror" + distutils-r1_python_prepare_all +} diff --git a/app-admin/showconsole/Manifest b/app-admin/showconsole/Manifest new file mode 100644 index 000000000000..00ea82531c82 --- /dev/null +++ b/app-admin/showconsole/Manifest @@ -0,0 +1 @@ +DIST showconsole-1.08.tar.bz2 20821 SHA256 3f3c1462c21db37054e109bbda23490de759311e8d182a3565f1ae8926d10e27 SHA512 b80c83350408211ba3e069befb2cc9ee53bfdde5ddeb43213bd02a70d65cf987c223cb22dabb687b9a21ccf7312bef17dee968d1d1cd6c66fc0b1ad6e0bd02b2 WHIRLPOOL 7ed12042b45a8771729d254ffd6c2ab7db0174b3e5c485bfd088faff7455cd45a2df4341dc6390106857becff850e3091ae93edcfe87cc2be81c36f1893a4583 diff --git a/app-admin/showconsole/files/1.07-no-TIOCGDEV.patch b/app-admin/showconsole/files/1.07-no-TIOCGDEV.patch new file mode 100644 index 000000000000..49a09cea2155 --- /dev/null +++ b/app-admin/showconsole/files/1.07-no-TIOCGDEV.patch @@ -0,0 +1,27 @@ +--- showconsole-1.07/libconsole.c.orig 2004-12-03 21:57:24.507411240 -0500 ++++ showconsole-1.07/libconsole.c 2004-12-03 21:59:26.820816776 -0500 +@@ -1021,13 +1021,8 @@ + char * name = NULL; + DIR * dev; + +-#ifdef TIOCGDEV ++#define TIOCGDEV _IOR('T',0x32, unsigned int) + if (ioctl (0, TIOCGDEV, &tty) < 0) { +- if (errno == EINVAL && !getenv("NOTIOCGDEV")) +- warn("Warning: the ioctl TIOCGDEV is not known by the kernel\n"); +-#else +-# error The ioctl TIOCGDEV is not defined (SuSE TIOCGDEV patch is missed) +-#endif + if (!(name = ttyname(0)) || !strcmp(name, "/dev/console")) + tty = fallback(pid, ppid); + else { +@@ -1036,9 +1031,7 @@ + name = lnk; + goto out; + } +-#ifdef TIOCGDEV + } +-#endif + + if (!(dev = opendir("/dev"))) + error("can not opendir(/dev): %s\n", STRERR); diff --git a/app-admin/showconsole/files/bootlogger.sh b/app-admin/showconsole/files/bootlogger.sh new file mode 100644 index 000000000000..bea8568a0de6 --- /dev/null +++ b/app-admin/showconsole/files/bootlogger.sh @@ -0,0 +1,33 @@ +# /lib/rcscripts/addons/bootlogger.sh: Handle logging of output at boot +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +if [[ -x /sbin/blogd ]] ; then + +bootlog() { + [[ ${RC_BOOTLOG} == "yes" ]] || return 0 + + local opt=$1 + shift + case ${opt} in + start) blogd_start "$@";; + sync) blogd_sync "$@";; + quit) blogd_quit "$@";; + esac +} + +blogd_start() { + /sbin/blogd -q +} + +blogd_sync() { + echo > /var/log/boot.msg + killall -IO blogd +} + +blogd_quit() { + killall -QUIT blogd +} + +fi diff --git a/app-admin/showconsole/files/showconsole-1.08-build.patch b/app-admin/showconsole/files/showconsole-1.08-build.patch new file mode 100644 index 000000000000..520a1607430b --- /dev/null +++ b/app-admin/showconsole/files/showconsole-1.08-build.patch @@ -0,0 +1,13 @@ +http://bugs.gentoo.org/143768 + +--- showconsole-1.08/Makefile ++++ showconsole-1.08/Makefile +@@ -37,7 +37,7 @@ + RM = rm -f + MKDIR = mkdir -p + RMDIR = rm -rf +- INSTBINFLAGS = -s -m 0700 ++ INSTBINFLAGS = -m 0700 + INSTBIN = install $(INSTBINFLAGS) + INSTDOCFLAGS = -c -m 0444 + INSTDOC = install $(INSTDOCFLAGS) diff --git a/app-admin/showconsole/files/showconsole-1.08-no-pthread-yield.patch b/app-admin/showconsole/files/showconsole-1.08-no-pthread-yield.patch new file mode 100644 index 000000000000..7592b5ef8e25 --- /dev/null +++ b/app-admin/showconsole/files/showconsole-1.08-no-pthread-yield.patch @@ -0,0 +1,17 @@ +http://sourceware.org/cgi-bin/cvsweb.cgi/~checkout~/linuxthreads/linuxthreads/FAQ.html?rev=1.2.2.1&content-type=text/html&cvsroot=glibc#E + +use sched_yield, not pthread_yield + +http://bugs.gentoo.org/119762 + +--- libconsole.c ++++ libconsole.c +@@ -439,7 +439,7 @@ + ret = 0; + } + } else +- pthread_yield(); ++ sched_yield(); + + return ret; + } diff --git a/app-admin/showconsole/files/showconsole-1.08-quiet.patch b/app-admin/showconsole/files/showconsole-1.08-quiet.patch new file mode 100644 index 000000000000..d03996056a5e --- /dev/null +++ b/app-admin/showconsole/files/showconsole-1.08-quiet.patch @@ -0,0 +1,34 @@ +--- blogd.c ++++ blogd.c +@@ -183,6 +183,7 @@ + { + int fd, flags; + int ptm, pts, cntrtty = 1; ++ int quiet = 0; + pid_t pid, ppid = getppid(); + char ptsname[NAME_MAX+1]; + struct termios t; +@@ -193,7 +194,14 @@ + myname = basename(*argv); + + if (argc > 2) +- error("Too many args; usage: %s [/dev/tty<X>]\n", myname); ++ error("Too many args; usage: %s [-q] [/dev/tty<X>]\n", myname); ++ ++ if (argc > 1 && strcmp(argv[1], "-q") == 0) { ++ quiet = 1; ++ --argc; ++ if (argc > 2) ++ argv[1] = argv[2]; ++ } + + if (argc == 2) + tty = argv[1]; +@@ -282,6 +289,7 @@ + close(pts); + close(ptm); + close(fd); ++ if (!quiet) + fprintf(stdout, "\rBoot logging started on %s(%s) at %.24s\n", tty, name, stt); + fflush(stdout); + exit(0); diff --git a/app-admin/showconsole/metadata.xml b/app-admin/showconsole/metadata.xml new file mode 100644 index 000000000000..96a2d586367d --- /dev/null +++ b/app-admin/showconsole/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>base-system</herd> +</pkgmetadata> diff --git a/app-admin/showconsole/showconsole-1.08.ebuild b/app-admin/showconsole/showconsole-1.08.ebuild new file mode 100644 index 000000000000..aa13fb28d9a5 --- /dev/null +++ b/app-admin/showconsole/showconsole-1.08.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# This tarball is extracted from SuSe's sysvinit-2.86-#.src.rpm +# You can find said src rpm via opensuse.org: +# http://mirrors.kernel.org/opensuse/distribution/SL-OSS-*/inst-source/suse/src/ + +inherit eutils multilib toolchain-funcs + +DESCRIPTION="small daemon for logging console output during boot" +HOMEPAGE="http://www.novell.com/linux/suse/" +SRC_URI="mirror://gentoo/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh ~sparc x86" +IUSE="" + +DEPEND="" + +src_unpack() { + unpack ${P}.tar.bz2 + cd "${S}" + epatch "${FILESDIR}"/1.07-no-TIOCGDEV.patch + epatch "${FILESDIR}"/${P}-quiet.patch + epatch "${FILESDIR}"/${P}-no-pthread-yield.patch #119762 + epatch "${FILESDIR}"/${P}-build.patch #143768 +} + +src_compile() { + emake COPTS="${CFLAGS}" CC="$(tc-getCC)" || die "emake failed" +} + +src_install() { + make install DESTDIR="${D}" || die "install failed" + insinto /$(get_libdir)/rcscripts/addons + doins "${FILESDIR}"/bootlogger.sh || die "rcscript addon" + rmdir "${D}"/usr/lib/lsb || die + dodoc showconsole-*.lsm README +} diff --git a/app-admin/socklog/Manifest b/app-admin/socklog/Manifest new file mode 100644 index 000000000000..418666729fee --- /dev/null +++ b/app-admin/socklog/Manifest @@ -0,0 +1 @@ +DIST socklog-2.1.0.tar.gz 56942 SHA256 aa869a787ee004da4e5509b5a0031bcc17a4ab4ac650c2ce8d4e488123acb455 SHA512 920ce5e661a6a3d970fa77ee3c228d48699ea03530be2b43b7517458b25e31a0a7f352ece2d076c715b6d34dbb26b424b48eb0f55b9bcd0355b74d3e34c77ac7 WHIRLPOOL b0dcf0eeacbd3edb0465ccbd40ec546fe293c3d293fac254e11ca8c07514b01de2a6d45a6ef0ce697e33a5d631810af62955fb66333f2606f36dc51587025806 diff --git a/app-admin/socklog/files/socklog-2.1.0-headers.patch b/app-admin/socklog/files/socklog-2.1.0-headers.patch new file mode 100644 index 000000000000..b7c10e3da606 --- /dev/null +++ b/app-admin/socklog/files/socklog-2.1.0-headers.patch @@ -0,0 +1,54 @@ +add missing headers for misc funcs and types + +--- a/chkshsgr.c ++++ b/chkshsgr.c +@@ -1,10 +1,11 @@ + /* Public domain. */ + + #include <unistd.h> ++#include <grp.h> + + int main() + { +- short x[4]; ++ gid_t x[4]; + + x[0] = x[1] = 0; + if (getgroups(1,x) == 0) if (setgroups(1,x) == -1) _exit(1); +--- a/pathexec_run.c ++++ b/pathexec_run.c +@@ -1,5 +1,6 @@ + /* Public domain. */ + ++#include <unistd.h> + #include "error.h" + #include "stralloc.h" + #include "str.h" +--- a/prot.c ++++ b/prot.c +@@ -1,12 +1,15 @@ + /* Public domain. */ + ++#include <unistd.h> ++#include <grp.h> ++ + #include "hasshsgr.h" + #include "prot.h" + + int prot_gid(int gid) + { + #ifdef HASSHORTSETGROUPS +- short x[2]; ++ gid_t x[2]; + x[0] = gid; x[1] = 73; /* catch errors */ + if (setgroups(1,x) == -1) return -1; + #else +--- a/seek_set.c ++++ b/seek_set.c +@@ -1,5 +1,6 @@ + /* Public domain. */ + ++#include <unistd.h> + #include <sys/types.h> + #include "seek.h" + diff --git a/app-admin/socklog/metadata.xml b/app-admin/socklog/metadata.xml new file mode 100644 index 000000000000..96a2d586367d --- /dev/null +++ b/app-admin/socklog/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>base-system</herd> +</pkgmetadata> diff --git a/app-admin/socklog/socklog-2.1.0.ebuild b/app-admin/socklog/socklog-2.1.0.ebuild new file mode 100644 index 000000000000..2a024b297795 --- /dev/null +++ b/app-admin/socklog/socklog-2.1.0.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="3" + +inherit eutils toolchain-funcs flag-o-matic + +DESCRIPTION="small secure replacement for syslogd with automatic log rotation" +HOMEPAGE="http://smarden.org/socklog/" +SRC_URI="http://smarden.org/socklog/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" +IUSE="static" + +RDEPEND=">=sys-process/runit-1.4.0" + +S=${WORKDIR}/admin/${P}/src + +src_prepare() { + epatch "${FILESDIR}"/${PN}-2.1.0-headers.patch + use static && append-ldflags -static + echo "$(tc-getCC) ${CFLAGS} ${CPPFLAGS}" > conf-cc + echo "$(tc-getCC) ${CFLAGS} ${LDFLAGS}" > conf-ld +} + +src_install() { + dobin tryto uncat socklog-check || die + dosbin socklog socklog-conf || die + + cd .. + dodoc package/CHANGES + dohtml doc/*.html + doman man/* +} diff --git a/app-admin/sshguard/Manifest b/app-admin/sshguard/Manifest new file mode 100644 index 000000000000..4b35a743dd9a --- /dev/null +++ b/app-admin/sshguard/Manifest @@ -0,0 +1 @@ +DIST sshguard-1.5.tar.bz2 303767 SHA256 b537f8765455fdf8424f87d4bd695e5b675b88e5d164865452137947093e7e19 SHA512 6d17abccd94af9e7fb04a54477ff5686caa64dc36e2f2cbc4a8cd7bc293923daf2fee87fa7f2e247eba1b310abe68549e652ab3224c2d19822d2e8a0306e49e6 WHIRLPOOL 7d579f5c9a03d79f7cc7b51b537b91b053faa56653ba7c5182550ddab41c0fbcd12a6cd7a6dfb2d1e2323905ef3e35aaef9ca8175d97e26cb953d57403f46562 diff --git a/app-admin/sshguard/files/sshguard-1.5-day-starts-with-0.patch b/app-admin/sshguard/files/sshguard-1.5-day-starts-with-0.patch new file mode 100644 index 000000000000..a8f9ad090019 --- /dev/null +++ b/app-admin/sshguard/files/sshguard-1.5-day-starts-with-0.patch @@ -0,0 +1,11 @@ +--- a/src/parser/attack_scanner.l ++++ b/src/parser/attack_scanner.l +@@ -72,7 +72,7 @@ + + + MONTH (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) +-DAYNO [1-9][0-9]? ++DAYNO [0-9][0-9]? + HOUR (0|1)[0-9]|2[0-4] + MINPS [0-5][0-9] + WORD [a-zA-Z0-9][-_a-zA-Z0-9]+ diff --git a/app-admin/sshguard/files/sshguard.confd b/app-admin/sshguard/files/sshguard.confd new file mode 100644 index 000000000000..b3d8c178f02f --- /dev/null +++ b/app-admin/sshguard/files/sshguard.confd @@ -0,0 +1,22 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# Config file for /etc/init.d/sshguard +# See sshguard(8) for details. + +# Initial (empty) options. +SSHGUARD_OPTS="" + +# Files to monitor +# -l <source> +SSHGUARD_OPTS="${SSHGUARD_OPTS} -l /var/log/auth.log" + +# White listing +# -w <addr/host/block/file> +#SSHGUARD_OPTS="${SSHGUARD_OPTS} -w 192.168.0.0/24" + +# Define how long in milliseconds start-stop-daemon waits to check that +# sshguard is still running before calling success or failure. +# Values lower than the default of 999 are probably not useful. +SSHGUARD_WAIT="999" diff --git a/app-admin/sshguard/files/sshguard.initd b/app-admin/sshguard/files/sshguard.initd new file mode 100644 index 000000000000..03b6a09156bb --- /dev/null +++ b/app-admin/sshguard/files/sshguard.initd @@ -0,0 +1,25 @@ +#!/sbin/runscript +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + after iptables + use logger +} + +SSHGUARD_PIDFILE=${SSHGUARD_PIDFILE:-/var/run/${SVCNAME}.pid} + +start() { + ebegin "Starting sshguard" + [[ -z ${SSHGUARD_WAIT} ]] && SSHGUARD_WAIT=999 + start-stop-daemon --start --wait ${SSHGUARD_WAIT} --background --quiet --exec \ + /usr/sbin/sshguard -- -i ${SSHGUARD_PIDFILE} ${SSHGUARD_OPTS} + eend $? +} + +stop() { + ebegin "Stopping sshguard" + start-stop-daemon --stop -p ${SSHGUARD_PIDFILE} + eend $? +} diff --git a/app-admin/sshguard/metadata.xml b/app-admin/sshguard/metadata.xml new file mode 100644 index 000000000000..6ba8e796f6b5 --- /dev/null +++ b/app-admin/sshguard/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>netmon</herd> + <use> + <flag name="ipfilter">Enable ipfilter firewall support (only for *bsd)</flag> + </use> + <upstream> + <remote-id type="sourceforge">sshguard</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/sshguard/sshguard-1.5-r1.ebuild b/app-admin/sshguard/sshguard-1.5-r1.ebuild new file mode 100644 index 000000000000..3e1e0b03b9e4 --- /dev/null +++ b/app-admin/sshguard/sshguard-1.5-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +inherit flag-o-matic + +DESCRIPTION="protects hosts from brute force attacks against ssh" +HOMEPAGE="http://sshguard.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 x86 ~x86-fbsd" +IUSE="ipfilter kernel_FreeBSD kernel_linux" + +CDEPEND="kernel_linux? ( net-firewall/iptables ) + kernel_FreeBSD? ( !ipfilter? ( sys-freebsd/freebsd-pf ) )" +DEPEND="${CDEPEND} + sys-devel/flex" +RDEPEND="${CDEPEND} + sys-apps/openrc + virtual/logger" + +src_prepare() { + sed -i configure -e '/OPTIMIZER_CFLAGS=/d' || die +} + +src_configure() { + # Needed for usleep(3), see "nasty" in src/sshguard_logsuck.c + append-flags -D_BSD_SOURCE + + local myconf + if use kernel_linux; then + myconf="--with-firewall=iptables" + elif use kernel_FreeBSD; then + use ipfilter && myconf="--with-firewall=ipfw" \ + || myconf="--with-firewall=pf" + fi + + econf ${myconf} +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + newinitd "${FILESDIR}"/${PN}.initd ${PN} || die + newconfd "${FILESDIR}"/${PN}.confd ${PN} || die + dodoc README Changes scripts/sshguard_backendgen.sh examples/* || die +} diff --git a/app-admin/sshguard/sshguard-1.5-r2.ebuild b/app-admin/sshguard/sshguard-1.5-r2.ebuild new file mode 100644 index 000000000000..b96fc3281d22 --- /dev/null +++ b/app-admin/sshguard/sshguard-1.5-r2.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit flag-o-matic + +DESCRIPTION="protects hosts from brute force attacks against ssh" +HOMEPAGE="http://sshguard.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~x86-fbsd" +IUSE="ipfilter kernel_FreeBSD kernel_linux" + +CDEPEND="kernel_linux? ( net-firewall/iptables ) + kernel_FreeBSD? ( !ipfilter? ( sys-freebsd/freebsd-pf ) )" +DEPEND="${CDEPEND} + sys-devel/flex" +RDEPEND="${CDEPEND} + sys-apps/openrc + virtual/logger" + +DOCS=( README Changes scripts/sshguard_backendgen.sh ) + +src_prepare() { + sed -i configure -e '/OPTIMIZER_CFLAGS=/d' || die +} + +src_configure() { + # Needed for usleep(3), see "nasty" in src/sshguard_logsuck.c + append-cppflags -D_BSD_SOURCE + + local myconf + if use kernel_linux; then + einfo "Selected firewall backend: iptables" + myconf="--with-firewall=iptables" + elif use kernel_FreeBSD; then + if use ipfilter; then + einfo "Selected firewall backend: ipfw" + myconf="--with-firewall=ipfw" + else + einfo "Selected firewall backend: pf" + myconf="--with-firewall=pf" + fi + fi + + econf ${myconf} +} + +src_install() { + default + dodoc examples/* + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} +} diff --git a/app-admin/sshguard/sshguard-1.5-r3.ebuild b/app-admin/sshguard/sshguard-1.5-r3.ebuild new file mode 100644 index 000000000000..ad5ca34d27d0 --- /dev/null +++ b/app-admin/sshguard/sshguard-1.5-r3.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils flag-o-matic + +DESCRIPTION="protects hosts from brute force attacks against ssh" +HOMEPAGE="http://sshguard.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~x86-fbsd" +IUSE="ipfilter kernel_FreeBSD kernel_linux" + +CDEPEND="kernel_linux? ( net-firewall/iptables ) + kernel_FreeBSD? ( !ipfilter? ( sys-freebsd/freebsd-pf ) )" +DEPEND="${CDEPEND} + sys-devel/flex" +RDEPEND="${CDEPEND} + sys-apps/openrc + virtual/logger" + +DOCS=( README Changes scripts/sshguard_backendgen.sh ) + +src_prepare() { + sed -i -e '/OPTIMIZER_CFLAGS=/d' configure || die + epatch "${FILESDIR}"/${P}-day-starts-with-0.patch +} + +src_configure() { + # Needed for usleep(3), see "nasty" in src/sshguard_logsuck.c + append-cppflags -D_BSD_SOURCE + + local myconf + if use kernel_linux; then + einfo "Selected firewall backend: iptables" + myconf="--with-firewall=iptables" + elif use kernel_FreeBSD; then + if use ipfilter; then + einfo "Selected firewall backend: ipfw" + myconf="--with-firewall=ipfw" + else + einfo "Selected firewall backend: pf" + myconf="--with-firewall=pf" + fi + fi + + econf ${myconf} +} + +src_install() { + default + dodoc examples/* + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} +} diff --git a/app-admin/stow/Manifest b/app-admin/stow/Manifest new file mode 100644 index 000000000000..1ae23061477f --- /dev/null +++ b/app-admin/stow/Manifest @@ -0,0 +1 @@ +DIST stow-2.2.0.tar.gz 479109 SHA256 8b89d79939cf9ae87d2f223bb36a3b2d0c66775b62aeb9953c6d33dab40d3c2b SHA512 43de6eddd6d8323682c6f5d4de00131009b7685a937c2a88ea1596cf9e12ced073983af571255d90c6e205c60dd976668f067909c92a9bce8ba0dfd984b253be WHIRLPOOL 0148d5b8c152a2058c5856c3b3503615860228fc12c19bd5f2a959b1cd756e51df65fb26593f84d27b317c43b3d26eabe1cd3d365282fa8a6b0e04979afcf12c diff --git a/app-admin/stow/files/99stow b/app-admin/stow/files/99stow new file mode 100644 index 000000000000..07625f392537 --- /dev/null +++ b/app-admin/stow/files/99stow @@ -0,0 +1,3 @@ +LDPATH=/var/lib/lib +PATH=/var/lib/bin +MANPATH=/var/lib/share/man diff --git a/app-admin/stow/files/stow-2.2.0-avoid-precedence-warning.patch b/app-admin/stow/files/stow-2.2.0-avoid-precedence-warning.patch new file mode 100644 index 000000000000..75838e3a7c62 --- /dev/null +++ b/app-admin/stow/files/stow-2.2.0-avoid-precedence-warning.patch @@ -0,0 +1,13 @@ +--- lib/Stow.pm.in ++++ lib/Stow.pm.in +@@ -1734,8 +1734,8 @@ sub read_a_link { + } + elsif (-l $path) { + debug(4, " read_a_link($path): real link"); +- return readlink $path +- or error("Could not read link: $path"); ++ my $target = readlink $path or error("Could not read link: $path ($!)"); ++ return $target; + } + internal_error("read_a_link() passed a non link path: $path\n"); + } diff --git a/app-admin/stow/metadata.xml b/app-admin/stow/metadata.xml new file mode 100644 index 000000000000..fe6e121f44e2 --- /dev/null +++ b/app-admin/stow/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>proxy-maintainers</herd> + <maintainer> + <email>ewfalor@gmail.com</email> + <name>Erik Falor</name> + </maintainer> + <maintainer> + <email>maksbotan@gentoo.org</email> + <name>Maxim Koltsov</name> + </maintainer> +</pkgmetadata> diff --git a/app-admin/stow/stow-2.2.0-r2.ebuild b/app-admin/stow/stow-2.2.0-r2.ebuild new file mode 100644 index 000000000000..87d6617ffa97 --- /dev/null +++ b/app-admin/stow/stow-2.2.0-r2.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils + +DESCRIPTION="Manage installation of software in /var/lib/" +HOMEPAGE="http://www.gnu.org/software/stow/" +SRC_URI="mirror://gnu/stow/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="test" + +DEPEND="dev-lang/perl + test? ( + virtual/perl-Test-Harness + dev-perl/Test-Output + )" +RDEPEND="dev-lang/perl" + +src_prepare() { + epatch "${FILESDIR}/${P}-avoid-precedence-warning.patch" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed." + + # create new STOWDIR + dodir /var/lib/stow + + # install env.d file to add STOWDIR to PATH and LDPATH + doenvd "${FILESDIR}"/99stow || die "doenvd failed" +} + +pkg_postinst() { + elog "We now recommend that you use /var/lib/stow as your STOWDIR" + elog "instead of /usr/local in order to avoid conflicts with the" + elog "symlink from /usr/lib64 -> /usr/lib. See Bug 246264 for" + elog "more details on this change." + elog "For your convenience, PATH has been updated to include" + elog "/var/lib/stow/bin." +} diff --git a/app-admin/sud/Manifest b/app-admin/sud/Manifest new file mode 100644 index 000000000000..6bb6eba18f2b --- /dev/null +++ b/app-admin/sud/Manifest @@ -0,0 +1 @@ +DIST sud-1.3.tar.gz 117542 SHA256 c4fdf9dfc7a58daf75cb37d2bc4d10d3767216e2b8e4861a87c2d274bac252a0 SHA512 54b58b54e665133dcc40f00708a929bc038df1e2ce18514d830e3f3f823110bd27a209771fc378c2bcd372692e168f55150f12893e2fbd433b51e2173dbd410e WHIRLPOOL 1a59305b9afc2d35e5bb7b9c58c3b554d8fb01748abffd2e88c79bdde24e4d7046947347b45cbdae20e62a0f4712e91b7446812ce5f5d18ed194e4b886f95f4f diff --git a/app-admin/sud/files/sud.rc6 b/app-admin/sud/files/sud.rc6 new file mode 100644 index 000000000000..753c4d967844 --- /dev/null +++ b/app-admin/sud/files/sud.rc6 @@ -0,0 +1,21 @@ +#!/sbin/runscript +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + need net +} + +start() { + ebegin "Starting sud" + start-stop-daemon --start --quiet --pidfile /var/run/sud.pid \ + --exec /usr/sbin/sud + eend $? +} + +stop() { + ebegin "Stopping sud" + start-stop-daemon --stop --quiet --pidfile /var/run/sud.pid + eend $? +} diff --git a/app-admin/sud/metadata.xml b/app-admin/sud/metadata.xml new file mode 100644 index 000000000000..27c217d9a05d --- /dev/null +++ b/app-admin/sud/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>base-system</herd> +<maintainer> + <email>lu_zero@gentoo.org</email> +</maintainer> +<longdescription> +sud (superuser daemon) permits a user to switch to root privileges and to use a suid program in a nosuid environment. It is based on a client/server model and on the ability to pass file descriptors between processes. sud permits you to choose your authentication method, and your effective credentials will be checked by using a Unix domain socket. +</longdescription> +</pkgmetadata> diff --git a/app-admin/sud/sud-1.3-r1.ebuild b/app-admin/sud/sud-1.3-r1.ebuild new file mode 100644 index 000000000000..9edef7df73df --- /dev/null +++ b/app-admin/sud/sud-1.3-r1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 + +inherit eutils flag-o-matic + +DESCRIPTION="A daemon to execute processes with special (and customizable) privileges in a nosuid environment" +HOMEPAGE="http://s0ftpj.org/projects/sud/index.htm" +SRC_URI="http://s0ftpj.org/projects/sud/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +src_prepare() { + sed -i -e \ + 's/install-data-hook:$/& install-exec/' \ + -e \ + 's:chmod 500 $(sbindir)/ilogin:chmod 500 $(DESTDIR)$(sbindir)/ilogin:' \ + "${S}"/login/Makefile.in || die "sed failed." + sed -i -e \ + 's/install-data-hook:$/& install-exec/' \ + -e \ + 's:chmod 555 $(bindir)/suz:chmod 500 $(DESTDIR)$(bindir)/suz:' \ + "${S}"/su/Makefile.in || die "sed failed." + sed -i -e \ + 's/install-data-hook:$/& install-exec/' \ + -e \ + 's:chmod 500 $(sbindir)/sud:chmod 500 $(DESTDIR)$(sbindir)/sud:' \ + "${S}"/sud/Makefile.in || die "sed failed." +} + +src_configure() { + append-flags -D_GNU_SOURCE + default_src_configure +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed." + dodoc AUTHORS ChangeLog* README NEWS TODO + doman ilogin.1 sud.1 suz.1 + insinto /etc + doins miscs/sud.conf* + newinitd "${FILESDIR}"/sud.rc6 sud +} diff --git a/app-admin/sudo/Manifest b/app-admin/sudo/Manifest new file mode 100644 index 000000000000..414c944f76b3 --- /dev/null +++ b/app-admin/sudo/Manifest @@ -0,0 +1,3 @@ +DIST sudo-1.8.12.tar.gz 2493373 SHA256 163b51841de8ad19276581a6782d61f5948f1f72a0a843371a1c167d3dc4f3b0 SHA512 1815343eceb7cfa6e37c961ce1c68cf96fc290356b92078d6d24a2c85d8b7a7236df78d3ff7f5e30eba492dc8407346d884e01c0b989eef4414156cfec80b67b WHIRLPOOL 0d9e618937a08b9bf74aaebf12f5b9f96afd827728f90fa95b6a2a4f932cc84240d56674aa903062247068ec5aa3369b14bad64130caeb313330286510c2d3f6 +DIST sudo-1.8.13.tar.gz 2515307 SHA256 e374e5edf2c11c00d6916a9f51cb0ad15e51c7b028370fa15169b07e61e05a25 SHA512 d5498ce8136e903a5ee9e6b1e9b69149b2268798f0678bf7fa82d56947c60d0dec1d7ee25df382e2ee05ecb660720af6b6bc24ad1b6493834e158ee3b186d03c WHIRLPOOL b06256020e5c21159f1b7ff7a9849053f89e95c58fce850653e60d625ad71f8cf9caf9421765398ed73d2ca4756483dcd9535dc856e681dc3b8d7c1206ae5553 +DIST sudo-1.8.14p3.tar.gz 2570892 SHA256 a8a697cbb113859058944850d098464618254804cf97961dee926429f00a1237 SHA512 022e75a4171c0d9b87569adc5b08afc1b8f2adb7dbc6c80dfb737029dbca560a08e317ce37f117b614f36b54666ed01559a72d0c92523a5a2ee3531f520d7a2b WHIRLPOOL 143ff1c464b539e79172cd0340a089739207d2b99fc01d183a27b24b5172c834d6ed0f7258116542ffa559a3a4c3540924261170655dd7bedb449f8d93496bbd diff --git a/app-admin/sudo/files/sudo-1.8.12-include-sys-types-h.patch b/app-admin/sudo/files/sudo-1.8.12-include-sys-types-h.patch new file mode 100644 index 000000000000..f33748669e97 --- /dev/null +++ b/app-admin/sudo/files/sudo-1.8.12-include-sys-types-h.patch @@ -0,0 +1,146 @@ +This fixes builds on uClibc and musl. See +https://bugs.gentoo.org/show_bug.cgi?id=544756 + +This patch is a slight modification of uptream commits: +http://www.sudo.ws/repos/sudo/rev/86eb67f3c41a +http://www.sudo.ws/repos/sudo/rev/e0794f05e95c + +diff -Naur sudo-1.8.12.orig/lib/util/getopt_long.c sudo-1.8.12/lib/util/getopt_long.c +--- sudo-1.8.12.orig/lib/util/getopt_long.c 2015-02-09 18:40:10.000000000 +0000 ++++ sudo-1.8.12/lib/util/getopt_long.c 2015-04-10 19:21:20.337032782 +0000 +@@ -52,6 +52,7 @@ + + #include <config.h> + ++#include <sys/types.h> + #include <stdio.h> + #ifdef STDC_HEADERS + # include <stdlib.h> +diff -Naur sudo-1.8.12.orig/lib/util/mksiglist.c sudo-1.8.12/lib/util/mksiglist.c +--- sudo-1.8.12.orig/lib/util/mksiglist.c 2015-02-09 18:40:10.000000000 +0000 ++++ sudo-1.8.12/lib/util/mksiglist.c 2015-04-10 19:22:38.719856268 +0000 +@@ -43,6 +43,7 @@ + #include "mksiglist.h" + + printf("#include <config.h>\n"); ++ printf("#include <sys/types.h>\n"); + printf("#include <signal.h>\n"); + printf("#include \"sudo_compat.h\"\n\n"); + printf("const char *const sudo_sys_siglist[NSIG] = {\n"); +diff -Naur sudo-1.8.12.orig/lib/util/mksigname.c sudo-1.8.12/lib/util/mksigname.c +--- sudo-1.8.12.orig/lib/util/mksigname.c 2015-02-09 18:40:10.000000000 +0000 ++++ sudo-1.8.12/lib/util/mksigname.c 2015-04-10 19:22:10.738491394 +0000 +@@ -43,6 +43,7 @@ + #include "mksigname.h" + + printf("#include <config.h>\n"); ++ printf("#include <sys/types.h>\n"); + printf("#include <signal.h>\n"); + printf("#include \"sudo_compat.h\"\n\n"); + printf("const char *const sudo_sys_signame[NSIG] = {\n"); +diff -Naur sudo-1.8.12.orig/lib/util/regress/fnmatch/fnm_test.c sudo-1.8.12/lib/util/regress/fnmatch/fnm_test.c +--- sudo-1.8.12.orig/lib/util/regress/fnmatch/fnm_test.c 2015-02-09 18:40:10.000000000 +0000 ++++ sudo-1.8.12/lib/util/regress/fnmatch/fnm_test.c 2015-04-10 19:21:20.340032928 +0000 +@@ -6,6 +6,7 @@ + + #include <config.h> + ++#include <sys/types.h> + #include <stdio.h> + #include <stdlib.h> + #ifdef HAVE_STRING_H +diff -Naur sudo-1.8.12.orig/lib/util/regress/glob/globtest.c sudo-1.8.12/lib/util/regress/glob/globtest.c +--- sudo-1.8.12.orig/lib/util/regress/glob/globtest.c 2015-02-09 18:40:10.000000000 +0000 ++++ sudo-1.8.12/lib/util/regress/glob/globtest.c 2015-04-10 19:21:20.341032977 +0000 +@@ -6,6 +6,7 @@ + + #include <config.h> + ++#include <sys/types.h> + #include <stdio.h> + #include <stdlib.h> + #ifdef HAVE_STRING_H +diff -Naur sudo-1.8.12.orig/lib/util/sha2.c sudo-1.8.12/lib/util/sha2.c +--- sudo-1.8.12.orig/lib/util/sha2.c 2015-02-09 18:40:09.000000000 +0000 ++++ sudo-1.8.12/lib/util/sha2.c 2015-04-10 19:21:20.342033026 +0000 +@@ -1,5 +1,5 @@ + /* +- * Copyright (c) 2013 Todd C. Miller <Todd.Miller@courtesan.com> ++ * Copyright (c) 2013-2015 Todd C. Miller <Todd.Miller@courtesan.com> + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above +@@ -25,6 +25,7 @@ + + #include <config.h> + ++#include <sys/types.h> + #include <stdio.h> + #ifdef STDC_HEADERS + # include <stdlib.h> +diff -Naur sudo-1.8.12.orig/plugins/sudoers/regress/parser/check_base64.c sudo-1.8.12/plugins/sudoers/regress/parser/check_base64.c +--- sudo-1.8.12.orig/plugins/sudoers/regress/parser/check_base64.c 2015-02-09 18:40:10.000000000 +0000 ++++ sudo-1.8.12/plugins/sudoers/regress/parser/check_base64.c 2015-04-10 19:21:20.342033026 +0000 +@@ -1,5 +1,5 @@ + /* +- * Copyright (c) 2013 Todd C. Miller <Todd.Miller@courtesan.com> ++ * Copyright (c) 2013-2015 Todd C. Miller <Todd.Miller@courtesan.com> + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above +@@ -16,6 +16,7 @@ + + #include <config.h> + ++#include <sys/types.h> + #include <stdio.h> + #ifdef STDC_HEADERS + # include <stdlib.h> +diff -Naur sudo-1.8.12.orig/plugins/sudoers/regress/parser/check_digest.c sudo-1.8.12/plugins/sudoers/regress/parser/check_digest.c +--- sudo-1.8.12.orig/plugins/sudoers/regress/parser/check_digest.c 2015-02-09 18:40:10.000000000 +0000 ++++ sudo-1.8.12/plugins/sudoers/regress/parser/check_digest.c 2015-04-10 19:21:20.343033075 +0000 +@@ -1,5 +1,5 @@ + /* +- * Copyright (c) 2013 Todd C. Miller <Todd.Miller@courtesan.com> ++ * Copyright (c) 2013-2015 Todd C. Miller <Todd.Miller@courtesan.com> + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above +@@ -16,6 +16,7 @@ + + #include <config.h> + ++#include <sys/types.h> + #include <stdio.h> + #ifdef STDC_HEADERS + # include <stdlib.h> +diff -Naur sudo-1.8.12.orig/plugins/sudoers/regress/parser/check_hexchar.c sudo-1.8.12/plugins/sudoers/regress/parser/check_hexchar.c +--- sudo-1.8.12.orig/plugins/sudoers/regress/parser/check_hexchar.c 2015-02-09 18:40:10.000000000 +0000 ++++ sudo-1.8.12/plugins/sudoers/regress/parser/check_hexchar.c 2015-04-10 19:21:20.344033124 +0000 +@@ -1,5 +1,5 @@ + /* +- * Copyright (c) 2014 Todd C. Miller <Todd.Miller@courtesan.com> ++ * Copyright (c) 2014-2015 Todd C. Miller <Todd.Miller@courtesan.com> + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above +@@ -16,6 +16,7 @@ + + #include <config.h> + ++#include <sys/types.h> + #include <stdio.h> + #ifdef STDC_HEADERS + # include <stdlib.h> +diff -Naur sudo-1.8.12.orig/plugins/sudoers/solaris_audit.c sudo-1.8.12/plugins/sudoers/solaris_audit.c +--- sudo-1.8.12.orig/plugins/sudoers/solaris_audit.c 2015-02-09 18:53:54.000000000 +0000 ++++ sudo-1.8.12/plugins/sudoers/solaris_audit.c 2015-04-10 19:21:20.345033172 +0000 +@@ -15,6 +15,8 @@ + */ + + #include <config.h> ++ ++#include <sys/types.h> + #include <stdarg.h> + #include <stdio.h> + #include <stdlib.h> diff --git a/app-admin/sudo/metadata.xml b/app-admin/sudo/metadata.xml new file mode 100644 index 000000000000..9116d3c7e097 --- /dev/null +++ b/app-admin/sudo/metadata.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>base-system</herd> + <longdescription lang="en"> + Sudo (superuser do) allows a system administrator to give certain + users (or groups of users) the ability to run some (or all) + commands as root or another user while logging the commands and + arguments. + </longdescription> + <use> + <flag name='sendmail'> + Allow sudo to send emails with sendmail. + </flag> + <flag name='offensive'> + Let sudo print insults when the user types the wrong password. + </flag> + </use> + <upstream> + <remote-id type="cpe">cpe:/a:todd_miller:sudo</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/sudo/sudo-1.8.12.ebuild b/app-admin/sudo/sudo-1.8.12.ebuild new file mode 100644 index 000000000000..d1ed25ec38cf --- /dev/null +++ b/app-admin/sudo/sudo-1.8.12.ebuild @@ -0,0 +1,197 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils pam multilib libtool + +MY_P=${P/_/} +MY_P=${MY_P/beta/b} + +uri_prefix= +case ${P} in +*_beta*|*_rc*) uri_prefix=beta/ ;; +esac + +DESCRIPTION="Allows users or groups to run commands as other users" +HOMEPAGE="http://www.sudo.ws/" +SRC_URI="http://www.sudo.ws/sudo/dist/${uri_prefix}${MY_P}.tar.gz + ftp://ftp.sudo.ws/pub/sudo/${uri_prefix}${MY_P}.tar.gz" + +# Basic license is ISC-style as-is, some files are released under +# 3-clause BSD license +LICENSE="ISC BSD" +SLOT="0" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~sparc-solaris" +IUSE="ldap nls pam offensive selinux skey +sendmail" + +DEPEND="pam? ( virtual/pam ) + skey? ( >=sys-auth/skey-1.1.5-r1 ) + ldap? ( + >=net-nds/openldap-2.1.30-r1 + dev-libs/cyrus-sasl + ) + sys-libs/zlib" +RDEPEND="${DEPEND} + selinux? ( sec-policy/selinux-sudo ) + ldap? ( dev-lang/perl ) + pam? ( sys-auth/pambase ) + >=app-misc/editor-wrapper-3 + virtual/editor + sendmail? ( virtual/mta )" +DEPEND="${DEPEND} + sys-devel/bison" + +S=${WORKDIR}/${MY_P} + +REQUIRED_USE="pam? ( !skey ) skey? ( !pam )" + +MAKEOPTS+=" SAMPLES=" + +src_prepare() { + epatch "${FILESDIR}"/${P}-include-sys-types-h.patch + elibtoolize +} + +set_rootpath() { + # FIXME: secure_path is a compile time setting. using ROOTPATH + # is not perfect, env-update may invalidate this, but until it + # is available as a sudoers setting this will have to do. + einfo "Setting secure_path ..." + + # first extract the default ROOTPATH from build env + ROOTPATH=$(unset ROOTPATH; . "${EPREFIX}"/etc/profile.env; echo "${ROOTPATH}") + if [[ -z ${ROOTPATH} ]] ; then + ewarn " Failed to find ROOTPATH, please report this" + fi + + # then remove duplicate path entries + cleanpath() { + local newpath thisp IFS=: + for thisp in $1 ; do + if [[ :${newpath}: != *:${thisp}:* ]] ; then + newpath+=:$thisp + else + einfo " Duplicate entry ${thisp} removed..." + fi + done + ROOTPATH=${newpath#:} + } + cleanpath /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin${ROOTPATH:+:${ROOTPATH}} + + # finally, strip gcc paths #136027 + rmpath() { + local e newpath thisp IFS=: + for thisp in ${ROOTPATH} ; do + for e ; do [[ $thisp == $e ]] && continue 2 ; done + newpath+=:$thisp + done + ROOTPATH=${newpath#:} + } + rmpath '*/gcc-bin/*' '*/gnat-gcc-bin/*' '*/gnat-gcc/*' + + einfo "... done" +} + +src_configure() { + local ROOTPATH + set_rootpath + + # audit: somebody got to explain me how I can test this before I + # enable it.. - Diego + # plugindir: autoconf code is crappy and does not delay evaluation + # until `make` time, so we have to use a full path here rather than + # basing off other values. + econf \ + --enable-zlib=system \ + --with-secure-path="${ROOTPATH}" \ + --with-editor="${EPREFIX}"/usr/libexec/editor \ + --with-env-editor \ + $(use_with offensive insults) \ + $(use_with offensive all-insults) \ + $(use_with ldap ldap_conf_file /etc/ldap.conf.sudo) \ + $(use_with ldap) \ + $(use_enable nls) \ + $(use_with pam) \ + $(use_with skey) \ + $(use_with selinux) \ + $(use_with sendmail) \ + --without-opie \ + --without-linux-audit \ + --with-rundir="${EPREFIX}"/var/run/sudo \ + --with-vardir="${EPREFIX}"/var/db/sudo \ + --with-plugindir="${EPREFIX}"/usr/$(get_libdir)/sudo \ + --docdir="${EPREFIX}"/usr/share/doc/${PF} +} + +src_install() { + default + + if use ldap ; then + dodoc README.LDAP doc/schema.OpenLDAP + dosbin plugins/sudoers/sudoers2ldif + + cat <<-EOF > "${T}"/ldap.conf.sudo + # See ldap.conf(5) and README.LDAP for details + # This file should only be readable by root + + # supported directives: host, port, ssl, ldap_version + # uri, binddn, bindpw, sudoers_base, sudoers_debug + # tls_{checkpeer,cacertfile,cacertdir,randfile,ciphers,cert,key + EOF + + insinto /etc + doins "${T}"/ldap.conf.sudo + fperms 0440 /etc/ldap.conf.sudo + fi + + pamd_mimic system-auth sudo auth account session + + keepdir /var/db/sudo + fperms 0700 /var/db/sudo + + # Don't install into /var/run as that is a tmpfs most of the time + # (bug #504854) + rm -rf "${D}"/var/run +} + +pkg_postinst() { + if use ldap ; then + ewarn + ewarn "sudo uses the /etc/ldap.conf.sudo file for ldap configuration." + ewarn + if grep -qs '^[[:space:]]*sudoers:' "${ROOT}"/etc/nsswitch.conf ; then + ewarn "In 1.7 series, LDAP is no more consulted, unless explicitly" + ewarn "configured in /etc/nsswitch.conf." + ewarn + ewarn "To make use of LDAP, add this line to your /etc/nsswitch.conf:" + ewarn " sudoers: ldap files" + ewarn + fi + fi + if use prefix ; then + ewarn + ewarn "To use sudo, you need to change file ownership and permissions" + ewarn "with root privileges, as follows:" + ewarn + ewarn " # chown root:root ${EPREFIX}/usr/bin/sudo" + ewarn " # chown root:root ${EPREFIX}/usr/lib/sudo/sudoers.so" + ewarn " # chown root:root ${EPREFIX}/etc/sudoers" + ewarn " # chown root:root ${EPREFIX}/etc/sudoers.d" + ewarn " # chown root:root ${EPREFIX}/var/db/sudo" + ewarn " # chmod 4111 ${EPREFIX}/usr/bin/sudo" + ewarn + fi + + elog "To use the -A (askpass) option, you need to install a compatible" + elog "password program from the following list. Starred packages will" + elog "automatically register for the use with sudo (but will not force" + elog "the -A option):" + elog "" + elog " [*] net-misc/ssh-askpass-fullscreen" + elog " net-misc/x11-ssh-askpass" + elog "" + elog "You can override the choice by setting the SUDO_ASKPASS environmnent" + elog "variable to the program you want to use." +} diff --git a/app-admin/sudo/sudo-1.8.13.ebuild b/app-admin/sudo/sudo-1.8.13.ebuild new file mode 100644 index 000000000000..d36ae5e10180 --- /dev/null +++ b/app-admin/sudo/sudo-1.8.13.ebuild @@ -0,0 +1,196 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils pam multilib libtool + +MY_P=${P/_/} +MY_P=${MY_P/beta/b} + +uri_prefix= +case ${P} in +*_beta*|*_rc*) uri_prefix=beta/ ;; +esac + +DESCRIPTION="Allows users or groups to run commands as other users" +HOMEPAGE="http://www.sudo.ws/" +SRC_URI="http://www.sudo.ws/sudo/dist/${uri_prefix}${MY_P}.tar.gz + ftp://ftp.sudo.ws/pub/sudo/${uri_prefix}${MY_P}.tar.gz" + +# Basic license is ISC-style as-is, some files are released under +# 3-clause BSD license +LICENSE="ISC BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~sparc-solaris" +IUSE="ldap nls pam offensive selinux skey +sendmail" + +DEPEND="pam? ( virtual/pam ) + skey? ( >=sys-auth/skey-1.1.5-r1 ) + ldap? ( + >=net-nds/openldap-2.1.30-r1 + dev-libs/cyrus-sasl + ) + sys-libs/zlib" +RDEPEND="${DEPEND} + selinux? ( sec-policy/selinux-sudo ) + ldap? ( dev-lang/perl ) + pam? ( sys-auth/pambase ) + >=app-misc/editor-wrapper-3 + virtual/editor + sendmail? ( virtual/mta )" +DEPEND="${DEPEND} + sys-devel/bison" + +S=${WORKDIR}/${MY_P} + +REQUIRED_USE="pam? ( !skey ) skey? ( !pam )" + +MAKEOPTS+=" SAMPLES=" + +src_prepare() { + elibtoolize +} + +set_rootpath() { + # FIXME: secure_path is a compile time setting. using ROOTPATH + # is not perfect, env-update may invalidate this, but until it + # is available as a sudoers setting this will have to do. + einfo "Setting secure_path ..." + + # first extract the default ROOTPATH from build env + ROOTPATH=$(unset ROOTPATH; . "${EPREFIX}"/etc/profile.env; echo "${ROOTPATH}") + if [[ -z ${ROOTPATH} ]] ; then + ewarn " Failed to find ROOTPATH, please report this" + fi + + # then remove duplicate path entries + cleanpath() { + local newpath thisp IFS=: + for thisp in $1 ; do + if [[ :${newpath}: != *:${thisp}:* ]] ; then + newpath+=:$thisp + else + einfo " Duplicate entry ${thisp} removed..." + fi + done + ROOTPATH=${newpath#:} + } + cleanpath /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin${ROOTPATH:+:${ROOTPATH}} + + # finally, strip gcc paths #136027 + rmpath() { + local e newpath thisp IFS=: + for thisp in ${ROOTPATH} ; do + for e ; do [[ $thisp == $e ]] && continue 2 ; done + newpath+=:$thisp + done + ROOTPATH=${newpath#:} + } + rmpath '*/gcc-bin/*' '*/gnat-gcc-bin/*' '*/gnat-gcc/*' + + einfo "... done" +} + +src_configure() { + local ROOTPATH + set_rootpath + + # audit: somebody got to explain me how I can test this before I + # enable it.. - Diego + # plugindir: autoconf code is crappy and does not delay evaluation + # until `make` time, so we have to use a full path here rather than + # basing off other values. + econf \ + --enable-zlib=system \ + --with-secure-path="${ROOTPATH}" \ + --with-editor="${EPREFIX}"/usr/libexec/editor \ + --with-env-editor \ + $(use_with offensive insults) \ + $(use_with offensive all-insults) \ + $(use_with ldap ldap_conf_file /etc/ldap.conf.sudo) \ + $(use_with ldap) \ + $(use_enable nls) \ + $(use_with pam) \ + $(use_with skey) \ + $(use_with selinux) \ + $(use_with sendmail) \ + --without-opie \ + --without-linux-audit \ + --with-rundir="${EPREFIX}"/var/run/sudo \ + --with-vardir="${EPREFIX}"/var/db/sudo \ + --with-plugindir="${EPREFIX}"/usr/$(get_libdir)/sudo \ + --docdir="${EPREFIX}"/usr/share/doc/${PF} +} + +src_install() { + default + + if use ldap ; then + dodoc README.LDAP doc/schema.OpenLDAP + dosbin plugins/sudoers/sudoers2ldif + + cat <<-EOF > "${T}"/ldap.conf.sudo + # See ldap.conf(5) and README.LDAP for details + # This file should only be readable by root + + # supported directives: host, port, ssl, ldap_version + # uri, binddn, bindpw, sudoers_base, sudoers_debug + # tls_{checkpeer,cacertfile,cacertdir,randfile,ciphers,cert,key + EOF + + insinto /etc + doins "${T}"/ldap.conf.sudo + fperms 0440 /etc/ldap.conf.sudo + fi + + pamd_mimic system-auth sudo auth account session + + keepdir /var/db/sudo + fperms 0700 /var/db/sudo + + # Don't install into /var/run as that is a tmpfs most of the time + # (bug #504854) + rm -rf "${D}"/var/run +} + +pkg_postinst() { + if use ldap ; then + ewarn + ewarn "sudo uses the /etc/ldap.conf.sudo file for ldap configuration." + ewarn + if grep -qs '^[[:space:]]*sudoers:' "${ROOT}"/etc/nsswitch.conf ; then + ewarn "In 1.7 series, LDAP is no more consulted, unless explicitly" + ewarn "configured in /etc/nsswitch.conf." + ewarn + ewarn "To make use of LDAP, add this line to your /etc/nsswitch.conf:" + ewarn " sudoers: ldap files" + ewarn + fi + fi + if use prefix ; then + ewarn + ewarn "To use sudo, you need to change file ownership and permissions" + ewarn "with root privileges, as follows:" + ewarn + ewarn " # chown root:root ${EPREFIX}/usr/bin/sudo" + ewarn " # chown root:root ${EPREFIX}/usr/lib/sudo/sudoers.so" + ewarn " # chown root:root ${EPREFIX}/etc/sudoers" + ewarn " # chown root:root ${EPREFIX}/etc/sudoers.d" + ewarn " # chown root:root ${EPREFIX}/var/db/sudo" + ewarn " # chmod 4111 ${EPREFIX}/usr/bin/sudo" + ewarn + fi + + elog "To use the -A (askpass) option, you need to install a compatible" + elog "password program from the following list. Starred packages will" + elog "automatically register for the use with sudo (but will not force" + elog "the -A option):" + elog "" + elog " [*] net-misc/ssh-askpass-fullscreen" + elog " net-misc/x11-ssh-askpass" + elog "" + elog "You can override the choice by setting the SUDO_ASKPASS environmnent" + elog "variable to the program you want to use." +} diff --git a/app-admin/sudo/sudo-1.8.14_p3.ebuild b/app-admin/sudo/sudo-1.8.14_p3.ebuild new file mode 100644 index 000000000000..d36ae5e10180 --- /dev/null +++ b/app-admin/sudo/sudo-1.8.14_p3.ebuild @@ -0,0 +1,196 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils pam multilib libtool + +MY_P=${P/_/} +MY_P=${MY_P/beta/b} + +uri_prefix= +case ${P} in +*_beta*|*_rc*) uri_prefix=beta/ ;; +esac + +DESCRIPTION="Allows users or groups to run commands as other users" +HOMEPAGE="http://www.sudo.ws/" +SRC_URI="http://www.sudo.ws/sudo/dist/${uri_prefix}${MY_P}.tar.gz + ftp://ftp.sudo.ws/pub/sudo/${uri_prefix}${MY_P}.tar.gz" + +# Basic license is ISC-style as-is, some files are released under +# 3-clause BSD license +LICENSE="ISC BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~sparc-solaris" +IUSE="ldap nls pam offensive selinux skey +sendmail" + +DEPEND="pam? ( virtual/pam ) + skey? ( >=sys-auth/skey-1.1.5-r1 ) + ldap? ( + >=net-nds/openldap-2.1.30-r1 + dev-libs/cyrus-sasl + ) + sys-libs/zlib" +RDEPEND="${DEPEND} + selinux? ( sec-policy/selinux-sudo ) + ldap? ( dev-lang/perl ) + pam? ( sys-auth/pambase ) + >=app-misc/editor-wrapper-3 + virtual/editor + sendmail? ( virtual/mta )" +DEPEND="${DEPEND} + sys-devel/bison" + +S=${WORKDIR}/${MY_P} + +REQUIRED_USE="pam? ( !skey ) skey? ( !pam )" + +MAKEOPTS+=" SAMPLES=" + +src_prepare() { + elibtoolize +} + +set_rootpath() { + # FIXME: secure_path is a compile time setting. using ROOTPATH + # is not perfect, env-update may invalidate this, but until it + # is available as a sudoers setting this will have to do. + einfo "Setting secure_path ..." + + # first extract the default ROOTPATH from build env + ROOTPATH=$(unset ROOTPATH; . "${EPREFIX}"/etc/profile.env; echo "${ROOTPATH}") + if [[ -z ${ROOTPATH} ]] ; then + ewarn " Failed to find ROOTPATH, please report this" + fi + + # then remove duplicate path entries + cleanpath() { + local newpath thisp IFS=: + for thisp in $1 ; do + if [[ :${newpath}: != *:${thisp}:* ]] ; then + newpath+=:$thisp + else + einfo " Duplicate entry ${thisp} removed..." + fi + done + ROOTPATH=${newpath#:} + } + cleanpath /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin${ROOTPATH:+:${ROOTPATH}} + + # finally, strip gcc paths #136027 + rmpath() { + local e newpath thisp IFS=: + for thisp in ${ROOTPATH} ; do + for e ; do [[ $thisp == $e ]] && continue 2 ; done + newpath+=:$thisp + done + ROOTPATH=${newpath#:} + } + rmpath '*/gcc-bin/*' '*/gnat-gcc-bin/*' '*/gnat-gcc/*' + + einfo "... done" +} + +src_configure() { + local ROOTPATH + set_rootpath + + # audit: somebody got to explain me how I can test this before I + # enable it.. - Diego + # plugindir: autoconf code is crappy and does not delay evaluation + # until `make` time, so we have to use a full path here rather than + # basing off other values. + econf \ + --enable-zlib=system \ + --with-secure-path="${ROOTPATH}" \ + --with-editor="${EPREFIX}"/usr/libexec/editor \ + --with-env-editor \ + $(use_with offensive insults) \ + $(use_with offensive all-insults) \ + $(use_with ldap ldap_conf_file /etc/ldap.conf.sudo) \ + $(use_with ldap) \ + $(use_enable nls) \ + $(use_with pam) \ + $(use_with skey) \ + $(use_with selinux) \ + $(use_with sendmail) \ + --without-opie \ + --without-linux-audit \ + --with-rundir="${EPREFIX}"/var/run/sudo \ + --with-vardir="${EPREFIX}"/var/db/sudo \ + --with-plugindir="${EPREFIX}"/usr/$(get_libdir)/sudo \ + --docdir="${EPREFIX}"/usr/share/doc/${PF} +} + +src_install() { + default + + if use ldap ; then + dodoc README.LDAP doc/schema.OpenLDAP + dosbin plugins/sudoers/sudoers2ldif + + cat <<-EOF > "${T}"/ldap.conf.sudo + # See ldap.conf(5) and README.LDAP for details + # This file should only be readable by root + + # supported directives: host, port, ssl, ldap_version + # uri, binddn, bindpw, sudoers_base, sudoers_debug + # tls_{checkpeer,cacertfile,cacertdir,randfile,ciphers,cert,key + EOF + + insinto /etc + doins "${T}"/ldap.conf.sudo + fperms 0440 /etc/ldap.conf.sudo + fi + + pamd_mimic system-auth sudo auth account session + + keepdir /var/db/sudo + fperms 0700 /var/db/sudo + + # Don't install into /var/run as that is a tmpfs most of the time + # (bug #504854) + rm -rf "${D}"/var/run +} + +pkg_postinst() { + if use ldap ; then + ewarn + ewarn "sudo uses the /etc/ldap.conf.sudo file for ldap configuration." + ewarn + if grep -qs '^[[:space:]]*sudoers:' "${ROOT}"/etc/nsswitch.conf ; then + ewarn "In 1.7 series, LDAP is no more consulted, unless explicitly" + ewarn "configured in /etc/nsswitch.conf." + ewarn + ewarn "To make use of LDAP, add this line to your /etc/nsswitch.conf:" + ewarn " sudoers: ldap files" + ewarn + fi + fi + if use prefix ; then + ewarn + ewarn "To use sudo, you need to change file ownership and permissions" + ewarn "with root privileges, as follows:" + ewarn + ewarn " # chown root:root ${EPREFIX}/usr/bin/sudo" + ewarn " # chown root:root ${EPREFIX}/usr/lib/sudo/sudoers.so" + ewarn " # chown root:root ${EPREFIX}/etc/sudoers" + ewarn " # chown root:root ${EPREFIX}/etc/sudoers.d" + ewarn " # chown root:root ${EPREFIX}/var/db/sudo" + ewarn " # chmod 4111 ${EPREFIX}/usr/bin/sudo" + ewarn + fi + + elog "To use the -A (askpass) option, you need to install a compatible" + elog "password program from the following list. Starred packages will" + elog "automatically register for the use with sudo (but will not force" + elog "the -A option):" + elog "" + elog " [*] net-misc/ssh-askpass-fullscreen" + elog " net-misc/x11-ssh-askpass" + elog "" + elog "You can override the choice by setting the SUDO_ASKPASS environmnent" + elog "variable to the program you want to use." +} diff --git a/app-admin/sudo/sudo-9999.ebuild b/app-admin/sudo/sudo-9999.ebuild new file mode 100644 index 000000000000..c1143830b2e5 --- /dev/null +++ b/app-admin/sudo/sudo-9999.ebuild @@ -0,0 +1,202 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils pam multilib libtool +if [[ ${PV} == "9999" ]] ; then + EHG_REPO_URI="http://www.sudo.ws/repos/sudo" + inherit mercurial +fi + +MY_P=${P/_/} +MY_P=${MY_P/beta/b} + +uri_prefix= +case ${P} in +*_beta*|*_rc*) uri_prefix=beta/ ;; +esac + +DESCRIPTION="Allows users or groups to run commands as other users" +HOMEPAGE="http://www.sudo.ws/" +if [[ ${PV} != "9999" ]] ; then + SRC_URI="http://www.sudo.ws/sudo/dist/${uri_prefix}${MY_P}.tar.gz + ftp://ftp.sudo.ws/pub/sudo/${uri_prefix}${MY_P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~sparc-solaris" +fi + +# Basic license is ISC-style as-is, some files are released under +# 3-clause BSD license +LICENSE="ISC BSD" +SLOT="0" +IUSE="ldap nls pam offensive selinux skey +sendmail" + +DEPEND="pam? ( virtual/pam ) + skey? ( >=sys-auth/skey-1.1.5-r1 ) + ldap? ( + >=net-nds/openldap-2.1.30-r1 + dev-libs/cyrus-sasl + ) + sys-libs/zlib" +RDEPEND="${DEPEND} + selinux? ( sec-policy/selinux-sudo ) + ldap? ( dev-lang/perl ) + pam? ( sys-auth/pambase ) + >=app-misc/editor-wrapper-3 + virtual/editor + sendmail? ( virtual/mta )" +DEPEND="${DEPEND} + sys-devel/bison" + +S=${WORKDIR}/${MY_P} + +REQUIRED_USE="pam? ( !skey ) skey? ( !pam )" + +MAKEOPTS+=" SAMPLES=" + +src_prepare() { + elibtoolize +} + +set_rootpath() { + # FIXME: secure_path is a compile time setting. using ROOTPATH + # is not perfect, env-update may invalidate this, but until it + # is available as a sudoers setting this will have to do. + einfo "Setting secure_path ..." + + # first extract the default ROOTPATH from build env + ROOTPATH=$(unset ROOTPATH; . "${EPREFIX}"/etc/profile.env; echo "${ROOTPATH}") + if [[ -z ${ROOTPATH} ]] ; then + ewarn " Failed to find ROOTPATH, please report this" + fi + + # then remove duplicate path entries + cleanpath() { + local newpath thisp IFS=: + for thisp in $1 ; do + if [[ :${newpath}: != *:${thisp}:* ]] ; then + newpath+=:$thisp + else + einfo " Duplicate entry ${thisp} removed..." + fi + done + ROOTPATH=${newpath#:} + } + cleanpath /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin${ROOTPATH:+:${ROOTPATH}} + + # finally, strip gcc paths #136027 + rmpath() { + local e newpath thisp IFS=: + for thisp in ${ROOTPATH} ; do + for e ; do [[ $thisp == $e ]] && continue 2 ; done + newpath+=:$thisp + done + ROOTPATH=${newpath#:} + } + rmpath '*/gcc-bin/*' '*/gnat-gcc-bin/*' '*/gnat-gcc/*' + + einfo "... done" +} + +src_configure() { + local ROOTPATH + set_rootpath + + # audit: somebody got to explain me how I can test this before I + # enable it.. - Diego + # plugindir: autoconf code is crappy and does not delay evaluation + # until `make` time, so we have to use a full path here rather than + # basing off other values. + econf \ + --enable-zlib=system \ + --with-secure-path="${ROOTPATH}" \ + --with-editor="${EPREFIX}"/usr/libexec/editor \ + --with-env-editor \ + $(use_with offensive insults) \ + $(use_with offensive all-insults) \ + $(use_with ldap ldap_conf_file /etc/ldap.conf.sudo) \ + $(use_with ldap) \ + $(use_enable nls) \ + $(use_with pam) \ + $(use_with skey) \ + $(use_with selinux) \ + $(use_with sendmail) \ + --without-opie \ + --without-linux-audit \ + --with-rundir="${EPREFIX}"/var/run/sudo \ + --with-vardir="${EPREFIX}"/var/db/sudo \ + --with-plugindir="${EPREFIX}"/usr/$(get_libdir)/sudo \ + --docdir="${EPREFIX}"/usr/share/doc/${PF} +} + +src_install() { + default + + if use ldap ; then + dodoc README.LDAP doc/schema.OpenLDAP + dosbin plugins/sudoers/sudoers2ldif + + cat <<-EOF > "${T}"/ldap.conf.sudo + # See ldap.conf(5) and README.LDAP for details + # This file should only be readable by root + + # supported directives: host, port, ssl, ldap_version + # uri, binddn, bindpw, sudoers_base, sudoers_debug + # tls_{checkpeer,cacertfile,cacertdir,randfile,ciphers,cert,key + EOF + + insinto /etc + doins "${T}"/ldap.conf.sudo + fperms 0440 /etc/ldap.conf.sudo + fi + + pamd_mimic system-auth sudo auth account session + + keepdir /var/db/sudo + fperms 0700 /var/db/sudo + + # Don't install into /var/run as that is a tmpfs most of the time + # (bug #504854) + rm -rf "${D}"/var/run +} + +pkg_postinst() { + if use ldap ; then + ewarn + ewarn "sudo uses the /etc/ldap.conf.sudo file for ldap configuration." + ewarn + if grep -qs '^[[:space:]]*sudoers:' "${ROOT}"/etc/nsswitch.conf ; then + ewarn "In 1.7 series, LDAP is no more consulted, unless explicitly" + ewarn "configured in /etc/nsswitch.conf." + ewarn + ewarn "To make use of LDAP, add this line to your /etc/nsswitch.conf:" + ewarn " sudoers: ldap files" + ewarn + fi + fi + if use prefix ; then + ewarn + ewarn "To use sudo, you need to change file ownership and permissions" + ewarn "with root privileges, as follows:" + ewarn + ewarn " # chown root:root ${EPREFIX}/usr/bin/sudo" + ewarn " # chown root:root ${EPREFIX}/usr/lib/sudo/sudoers.so" + ewarn " # chown root:root ${EPREFIX}/etc/sudoers" + ewarn " # chown root:root ${EPREFIX}/etc/sudoers.d" + ewarn " # chown root:root ${EPREFIX}/var/db/sudo" + ewarn " # chmod 4111 ${EPREFIX}/usr/bin/sudo" + ewarn + fi + + elog "To use the -A (askpass) option, you need to install a compatible" + elog "password program from the following list. Starred packages will" + elog "automatically register for the use with sudo (but will not force" + elog "the -A option):" + elog "" + elog " [*] net-misc/ssh-askpass-fullscreen" + elog " net-misc/x11-ssh-askpass" + elog "" + elog "You can override the choice by setting the SUDO_ASKPASS environmnent" + elog "variable to the program you want to use." +} diff --git a/app-admin/sulfur/Manifest b/app-admin/sulfur/Manifest new file mode 100644 index 000000000000..8adc3e826e8f --- /dev/null +++ b/app-admin/sulfur/Manifest @@ -0,0 +1 @@ +DIST sulfur-1.0_rc104.tar.bz2 541140 SHA256 fbed99b527ee7f190dd0ddd49d0350ccb72473ec71aa2a5db1180fb5578aab1c SHA512 11038694fe8e0d145c3bd97c4a85d629aa7844bffe925d85e863c8cd72d555de0bf23d3a3115c255a62c4e48bc3501b201ad4bf918c6a5d2989ea0607a1a83f2 WHIRLPOOL 3ee09e6ed417c78e1db1907c4126b4f7892699e11be3ac8445794722c7a593a07083fc4236d290dc961bcc38eaef57127aad7fe65d3ae89845e161a2c36d5f67 diff --git a/app-admin/sulfur/metadata.xml b/app-admin/sulfur/metadata.xml new file mode 100644 index 000000000000..187f7a710efe --- /dev/null +++ b/app-admin/sulfur/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> + <email>lxnay@gentoo.org</email> + <name>Fabio Erculiani</name> + </maintainer> + <use> + </use> +</pkgmetadata> + diff --git a/app-admin/sulfur/sulfur-1.0_rc104-r1.ebuild b/app-admin/sulfur/sulfur-1.0_rc104-r1.ebuild new file mode 100644 index 000000000000..0caf4416b855 --- /dev/null +++ b/app-admin/sulfur/sulfur-1.0_rc104-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils gnome2-utils fdo-mime python-single-r1 + +DESCRIPTION="Sulfur, the Entropy Package Manager Store" +HOMEPAGE="http://www.sabayon.org" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="" + +SRC_URI="mirror://sabayon/app-admin/sulfur-${PV}.tar.bz2" + +RDEPEND="dev-python/pygtk:2[${PYTHON_USEDEP}] + >=sys-apps/entropy-${PV}[${PYTHON_USEDEP}] + sys-apps/file[python,${PYTHON_USEDEP}] + sys-devel/gettext + x11-libs/vte:0[python,${PYTHON_USEDEP}] + x11-misc/xdg-utils" +DEPEND="sys-devel/gettext" + +src_compile() { + emake || die "make failed" +} + +src_install() { + emake DESTDIR="${D}" LIBDIR="usr/lib" install || die "make install failed" + dodir /etc/gconf/schemas + insinto /etc/gconf/schemas + doins "${S}/misc/entropy-handler.schemas" + + python_fix_shebang "${ED}" + python_optimize "${ED%/}"/usr/lib/entropy +} + +pkg_postinst() { + fdo-mime_mime_database_update + fdo-mime_desktop_database_update + gnome2_gconf_savelist + gnome2_gconf_install +} + +pkg_postrm() { + gnome2_gconf_savelist + gnome2_gconf_uninstall +} diff --git a/app-admin/superadduser/files/1.0.9/superadduser b/app-admin/superadduser/files/1.0.9/superadduser new file mode 100644 index 000000000000..dd5e3158ddad --- /dev/null +++ b/app-admin/superadduser/files/1.0.9/superadduser @@ -0,0 +1,407 @@ +#!/bin/bash +# +# Copyright 1995 Hrvoje Dogan, Croatia. +# Copyright 2002, 2003, 2004 Stuart Winter, West Midlands, England, UK. +# Copyright 2004 Slackware Linux, Inc., Concord, CA, USA +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# +########################################################################## +# Program: /usr/sbin/adduser +# Purpose: Interactive front end to /usr/sbin/useradd for Slackware Linux +# Author : Stuart Winter <stuart@polplex.co.uk> +# Based on the original Slackware adduser by Hrvoje Dogan +# with modifications by Patrick Volkerding +# Version: 1.09 +########################################################################## +# Usage..: adduser [<new_user_name>] +########################################################################## +# History # +########### +# v1.09 - 07/06/04 +# * Added standard Slackware script licence to the head of this file. +# v1.08 - 25/04/04 +# * Disallow user names that begin with a numeric because useradd +# (from shadow v4.03) does not allow them. <sw> +# v1.07 - 07/03/03 +# * When supplying a null string for the uid (meaning 'Choose next available'), +# if there were file names in the range 'a-z' in the pwd then the +# egrep command considered these files rather than the null string. +# The egrep expression is now in quotes. +# Reported & fixed by Vadim O. Ustiansky <sw> +# v1.06 - 31/03/03 +# * Ask to chown user.group the home directory if it already exists. +# This helps reduce later confusion when adding users whose home dir +# already exists (mounted partition for example) and is owned +# by a user other than the user to which the directory is being +# assigned as home. Default is not to chown. +# Brought to my attention by mRgOBLIN. <sw> +# v1.05 - 04/01/03 +# * Advise & prevent users from creating logins with '.' characters +# in the user name. <sw> +# * Made pending account creation info look neater <sw> +# v1.04 - 09/06/02 +# * Catered for shadow-4.0.3's 'useradd' binary that no longer +# will let you create a user that has any uppercase chars in it +# This was reported on the userlocal.org forums +# by 'xcp' - thanks. <sw,pjv> +# v1.03 - 20/05/02 +# * Support 'broken' (null lines in) /etc/passwd and +# /etc/group files <sw> +# * For recycling UIDs (default still 'off'), we now look in +# /etc/login.defs for the UID_MIN value and use it +# If not found then default to 1000 <sw> +# v1.02 - 10/04/02 +# * Fix user-specified UID bug. <pjv> +# v1.01 - 23/03/02 +# * Match Slackware indenting style, simplify. <pjv> +# v1.00 - 22/03/02 +# * Created +####################################################################### + +# Path to files +pfile=/etc/passwd +gfile=/etc/group +sfile=/etc/shells + +# Paths to binaries +useradd=/usr/sbin/useradd +chfn=/usr/bin/chfn +passwd=/usr/bin/passwd +chmod=/bin/chmod + +# Defaults +defhome=/home +defshell=/bin/bash +defchmod=711 # home dir permissions - may be preferable to use 701, however. +defgroup=users + +# Determine what the minimum UID is (for UID recycling) +# (we ignore it if it's not at the beginning of the line (i.e. commented out with #)) +export recycleUIDMIN="$(grep ^UID_MIN /etc/login.defs | awk '{print $2}' 2>/dev/null)" +# If we couldn't find it, set it to the default of 1000 +if [[ -z "$recycleUIDMIN" ]]; then + export recycleUIDMIN=1000 # this is the default from Slackware's /etc/login.defs +fi + + +# This setting enables the 'recycling' of older unused UIDs. +# When you userdel a user, it removes it from passwd and shadow but it will +# never get used again unless you specify it expliticly -- useradd (appears to) just +# look at the last line in passwd and increment the uid. I like the idea of +# recycling uids but you may have very good reasons not to (old forgotten +# confidential files still on the system could then be owned by this new user). +# We'll set this to no because this is what the original adduser shell script +# did and it's what users expect. +recycleuids=no + +# Function to read keyboard input. +# bash1 is broken (even ash will take read -ep!), so we work around +# it (even though bash1 is no longer supported on Slackware). +function get_input() { + local output + if [[ "`echo $BASH_VERSION | cut -b1`" = "1" ]]; then + echo -n "${1} " >&2 # fudge for use with bash v1 + read output + else # this should work with any other /bin/sh + read -ep "${1} " output + fi + echo $output +} + +# Function to display the account info +function display () { + local goose + goose="$(echo $2 | cut -d ' ' -f 2-)" # lop off the prefixed argument useradd needs + echo -n "$1 " + # If it's null then display the 'other' information + if [ -z "$goose" -a ! -z "$3" ]; then + echo "$3" + else + echo "$goose" + fi +} + +# Function to check whether groups exist in the /etc/group file +function check_group () { + local got_error group + if [[ ! -z "$@" ]]; then + for group in $@ ; do + local uid_not_named="" uid_not_num="" + grep -v "$^" $gfile | awk -F: '{print $1}' | grep "^${group}$" >/dev/null 2>&1 || uid_not_named=yes + grep -v "$^" $gfile | awk -F: '{print $3}' | grep "^${group}$" >/dev/null 2>&1 || uid_not_num=yes + if [ ! -z "$uid_not_named" -a ! -z "$uid_not_num" ]; then + echo "- Group '$group' does not exist" + got_error=yes + fi + done + fi + # Return exit code of 1 if at least one of the groups didn't exist + if [[ ! -z "$got_error" ]]; then + return 1 + fi +} + +#: Read the login name for the new user :# +# +# Remember that most Mail Transfer Agents are case independant, so having +# 'uSer' and 'user' may cause confusion/things to break. Because of this, +# useradd from shadow-4.0.3 no longer accepts usernames containing uppercase, +# and we must reject them, too. + +# Set the login variable to the command line param +echo +LOGIN="$1" +needinput=yes +while [[ ! -z $needinput ]]; do + if [[ -z "$LOGIN" ]]; then + while [[ -z "$LOGIN" ]]; do LOGIN="$(get_input "Login name for new user []:")" ; done + fi + grep "^${LOGIN}:" $pfile >/dev/null 2>&1 # ensure it's not already used + if [[ $? -eq 0 ]]; then + echo "- User '$LOGIN' already exists; please choose another" + unset LOGIN + elif [[ ! -z "$( echo $LOGIN | grep "^[0-9]" )" ]]; then + echo "- User names cannot begin with a number; please choose another" + unset LOGIN + elif [[ ! "$LOGIN" = "`echo $LOGIN | tr A-Z a-z`" ]]; then # useradd does not allow uppercase + echo "- User '$LOGIN' contains illegal characters (uppercase); please choose another" + unset LOGIN + elif [[ ! -z "$( echo $LOGIN | grep '\.' )" ]]; then + echo "- User '$LOGIN' contains illegal characters (period/dot); please choose another" + unset LOGIN + else + unset needinput + fi +done + +# Display the user name passed from the shell if it hasn't changed +if [[ "$1" = "$LOGIN" ]]; then + echo "Login name for new user: $LOGIN" +fi + +#: Get the UID for the user & ensure it's not already in use :# +# +# Whilst we _can_ allow users with identical UIDs, it's not a 'good thing' because +# when you change password for the uid, it finds the first match in /etc/passwd +# which isn't necessarily the correct user +# +echo +needinput=yes +while [[ ! -z "$needinput" ]]; do + _UID="$(get_input "User ID ('UID') [ defaults to next available ]:")" + grep -v "^$" $pfile | awk -F: '{print $3}' | grep "^${_UID}$" >/dev/null 2>&1 + if [[ $? -eq 0 ]]; then + echo "- That UID is already in use; please choose another" + elif [ ! -z "$(echo $_UID | egrep '[A-Za-z]')" ]; then + echo "- UIDs are numerics only" + else + unset needinput + fi +done +# If we were given a UID, then syntax up the variable to pass to useradd +if [[ ! -z "$_UID" ]]; then + U_ID="-u ${_UID}" +else + # Will we be recycling UIDs? + if [[ "$recycleuids" = "yes" ]]; then + U_ID="-u $(awk -F: '{uid[$3]=1} END { for (i=ENVIRON["recycleUIDMIN"];i in uid;i++);print i}' $pfile)" + fi +fi + +#: Get the initial group for the user & ensure it exists :# +# +# We check /etc/group for both the text version and the group ID number +echo +needinput=yes +while [[ ! -z "$needinput" ]]; do + GID="$(get_input "Initial group [ ${defgroup} ]:")" + check_group "$GID" + if [[ $? -gt 0 ]]; then + echo "- Please choose another" + else + unset needinput + fi +done +# Syntax the variable ready for useradd +if [[ -z "$GID" ]]; then + GID="-g ${defgroup}" +else + GID="-g ${GID}" +fi + +#: Get additional groups for the user :# +# +echo +needinput=yes +while [[ ! -z "$needinput" ]]; do + AGID="$(get_input "Additional groups (comma separated) []:")" + AGID="$(echo "$AGID" | tr -d ' ' | tr , ' ')" # fix up for parsing + if [[ ! -z "$AGID" ]]; then + check_group "$AGID" # check all groups at once (treated as N # of params) + if [[ $? -gt 0 ]]; then + echo "- Please re-enter the group(s)" + else + unset needinput # we found all groups specified + AGID="-G $(echo "$AGID" | tr ' ' ,)" + fi + else + unset needinput # we don't *have* to have additional groups + fi +done + +#: Get the new user's home dir :# +# +echo +needinput=yes +while [[ ! -z "$needinput" ]]; do + HME="$(get_input "Home directory [ ${defhome}/${LOGIN} ]")" + if [[ -z "$HME" ]]; then + HME="${defhome}/${LOGIN}" + fi + # Warn the user if the home dir already exists + if [[ -d "$HME" ]]; then + echo "- Warning: '$HME' already exists !" + getyn="$(get_input " Do you wish to change the home directory path ? (Y/n) ")" + if [[ "$(echo $getyn | grep -i "n")" ]]; then + unset needinput + # You're most likely going to only do this if you have the dir *mounted* for this user's $HOME + getyn="$(get_input " Do you want to chown $LOGIN.$( echo $GID | awk '{print $2}') $HME ? (y/N) ")" + if [[ "$(echo $getyn | grep -i "y")" ]]; then + CHOWNHOMEDIR=$HME # set this to the home directory + fi + fi + else + unset needinput + fi +done +HME="-d ${HME}" + +#: Get the new user's shell :# +echo +needinput=yes +while [[ ! -z "$needinput" ]]; do + unset got_error + SHL="$(get_input "Shell [ ${defshell} ]")" + if [[ -z "$SHL" ]]; then + SHL="${defshell}" + fi + # Warn the user if the shell doesn't exist in /etc/shells or as a file + if [[ -z "$(grep "^${SHL}$" $sfile)" ]]; then + echo "- Warning: ${SHL} is not in ${sfile} (potential problem using FTP)" + got_error=yes + fi + if [[ ! -f "$SHL" ]]; then + echo "- Warning: ${SHL} does not exist as a file" + got_error=yes + fi + if [[ ! -z "$got_error" ]]; then + getyn="$(get_input " Do you wish to change the shell ? (Y/n) ")" + if [[ "$(echo $getyn | grep -i "n")" ]]; then + unset needinput + fi + else + unset needinput + fi +done +SHL="-s ${SHL}" + +#: Get the expiry date :# +echo +needinput=yes +while [[ ! -z "$needinput" ]]; do + EXP="$(get_input "Expiry date (YYYY-MM-DD) []:")" + if [[ ! -z "$EXP" ]]; then + # Check to see whether the expiry date is in the valid format + if [ -z "$(echo "$EXP" | grep "^[[:digit:]]\{4\}[-]\?[[:digit:]]\{2\}[-]\?[[:digit:]]\{2\}$")" ]; then + echo "- That is not a valid expiration date" + else + unset needinput + EXP="-e ${EXP}" + fi + else + unset needinput + fi +done + +# Display the info about the new impending account +echo +echo "New account will be created as follows:" +echo +echo "---------------------------------------" +display "Login name.......: " "$LOGIN" +display "UID..............: " "$_UID" "[ Next available ]" +display "Initial group....: " "$GID" +display "Additional groups: " "$AGID" "[ None ]" +display "Home directory...: " "$HME" +display "Shell............: " "$SHL" +display "Expiry date......: " "$EXP" "[ Never ]" +echo + +echo "This is it... if you want to bail out, hit Control-C. Otherwise, press" +echo "ENTER to go ahead and make the account." +read junk + +echo +echo "Creating new account..." +echo +echo + +# Add the account to the system +CMD="$useradd "$HME" -m "$EXP" "$U_ID" "$GID" "$AGID" "$SHL" "$LOGIN"" +$CMD + +if [[ $? -gt 0 ]]; then + echo "- Error running useradd command -- account not created!" + echo "(cmd: $CMD)" + exit 1 +fi + +# chown the home dir ? We can only do this once the useradd has +# completed otherwise the user name doesn't exist. +if [[ ! -z "${CHOWNHOMEDIR}" ]]; then + chown "$LOGIN"."$( echo $GID | awk '{print $2}')" "${CHOWNHOMEDIR}" +fi + +# Set the finger information +$chfn "$LOGIN" +if [[ $? -gt 0 ]]; then + echo "- Warning: an error occurred while setting finger information" +fi + +# Set a password +$passwd "$LOGIN" +if [[ $? -gt 0 ]]; then + echo "* WARNING: An error occured while setting the password for" + echo " this account. Please manually investigate this *" + exit 1 +fi + +# If it was created (it should have been!), set the permissions for that user's dir +HME="$(echo "$HME" | awk '{print $2}')" # We have to remove the -g prefix +if [[ -d "$HME" ]]; then + $chmod $defchmod "$HME" +fi + +echo +echo +echo "Account setup complete." +exit 0 + diff --git a/app-admin/superadduser/files/superadduser.8 b/app-admin/superadduser/files/superadduser.8 new file mode 100644 index 000000000000..efefadcd14d6 --- /dev/null +++ b/app-admin/superadduser/files/superadduser.8 @@ -0,0 +1,20 @@ +.TH superadduser "8" "April 2002" "superadduser 1.0" +.SH NAME +superadduser \- manual page for the superadduser program, an interactive +version of adduser. +.SH SYNOPSIS +.B superadduser +.SH DESCRIPTION +Superadduser interactively asks the user to fill in the necessary parameters to +the +.I shadow +package's useradd program. +.PP +.SH AUTHOR +Man page by Karl Trygve Kalleberg <karltk@gentoo.org> +.br +Script by Stuart Winter <stuart@polplex.co.uk> +.SH "SEE ALSO" +useradd(8) +.TP +The \fI/usr/sbin/superadduser\fR script. diff --git a/app-admin/superadduser/metadata.xml b/app-admin/superadduser/metadata.xml new file mode 100644 index 000000000000..96a2d586367d --- /dev/null +++ b/app-admin/superadduser/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>base-system</herd> +</pkgmetadata> diff --git a/app-admin/superadduser/superadduser-1.0.9.ebuild b/app-admin/superadduser/superadduser-1.0.9.ebuild new file mode 100644 index 000000000000..1cf8c94eb099 --- /dev/null +++ b/app-admin/superadduser/superadduser-1.0.9.ebuild @@ -0,0 +1,19 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +DESCRIPTION="Interactive adduser script from Slackware" +HOMEPAGE="http://www.interlude.org.uk/unix/slackware/" +SRC_URI="" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86" +IUSE="" + +RDEPEND="sys-apps/shadow" + +src_install() { + dosbin "${FILESDIR}"/${PV}/superadduser || die + doman "${FILESDIR}"/superadduser.8 +} diff --git a/app-admin/supernova/Manifest b/app-admin/supernova/Manifest new file mode 100644 index 000000000000..4b9734c14dec --- /dev/null +++ b/app-admin/supernova/Manifest @@ -0,0 +1,3 @@ +DIST supernova-1.0.7.tar.gz 17783 SHA256 e0336590e8b4a73404acbfd7379285c631daf628baaba64c9f42d839982d9949 SHA512 54e98ab0a7f926b96dc2da62951cb552767515ae8a94ef88fbcf654db6079c91d6971b526663116e36bab795939605ec108aa39247e57c5dacfccbab4048b7d9 WHIRLPOOL b769f5c4b3d284eb17447b9b9d63b12bbcb8c8c87637ce8e6999d3bdf245f5b47194f9454e4b273c0b176b7fae5497346a0657d34ed335b8e7039cd273cb9fe0 +DIST supernova-2.0.0.tar.gz 18298 SHA256 43b27ee9ed2ca7b0b5860bf52422750e215b60cb71eca106a57b4f900faef24e SHA512 a5c439cfe489991d5ae7f0f63e858b1200ac8df8f1556871f79f8cfc97862d46aae555aee9c97565308388305bd721ecce1f91221824f425caf19acb92f5ac8a WHIRLPOOL e4514e9c0312c68f1c017a92f1959180db042da0cd38ef83079bcee93344758383b41c06b5c51d1139b970dfdae51fda03f8f041d1788a533f9ca71645a7bcf9 +DIST supernova-2.0.5.tar.gz 18219 SHA256 8219f6e42e364aceba5d1b70211522ba76fafad16374f71319a0e43c7f615489 SHA512 737649bb0d5e7ee21d9721cba8556617afffdd8cfa287f9d08fa3d81bfa98eb35a6aeeded9c13e600d355616cd3983bfc80148c0934d2b7791da2724e420c9c0 WHIRLPOOL b9204b5fb265bd7384b8724c62a5a10a4220f34c9ebe20f8f95945f12399c6fb291abb3086b5a09cb988fca8229ec99377f84394c98f15b6874ae140396ab8a9 diff --git a/app-admin/supernova/metadata.xml b/app-admin/supernova/metadata.xml new file mode 100644 index 000000000000..e240c5fe8b82 --- /dev/null +++ b/app-admin/supernova/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> + <email>alunduil@gentoo.org</email> + <name>Alex Brandt</name> + </maintainer> + <longdescription lang="en"> + </longdescription> + <upstream> + <remote-id type="github">rackerhacker/supernova</remote-id> + <remote-id type="pypi">supernova</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/supernova/supernova-1.0.7.ebuild b/app-admin/supernova/supernova-1.0.7.ebuild new file mode 100644 index 000000000000..95f61b0cef80 --- /dev/null +++ b/app-admin/supernova/supernova-1.0.7.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit bash-completion-r1 distutils-r1 vcs-snapshot + +DESCRIPTION="novaclient wrapper for multiple nova environments" +HOMEPAGE="https://github.com/rackerhacker/supernova" +SRC_URI="https://github.com/major/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="doc examples" + +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) +" +RDEPEND=" + >=dev-python/keyring-0.9.2[${PYTHON_USEDEP}] + dev-python/rackspace-novaclient[${PYTHON_USEDEP}] +" + +python_compile_all() { + use doc && emake -C docs html +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/_build/html/. ) + use examples && local EXAMPLES=( example_configs/. ) + + distutils-r1_python_install_all + + newbashcomp contrib/${PN}-completion.bash ${PN} +} diff --git a/app-admin/supernova/supernova-2.0.0.ebuild b/app-admin/supernova/supernova-2.0.0.ebuild new file mode 100644 index 000000000000..03dc2ddffea4 --- /dev/null +++ b/app-admin/supernova/supernova-2.0.0.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit bash-completion-r1 distutils-r1 vcs-snapshot + +DESCRIPTION="novaclient wrapper for multiple nova environments" +HOMEPAGE="https://github.com/rackerhacker/supernova" +SRC_URI="https://github.com/major/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="examples test" + +CDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +DEPEND=" + ${CDEPEND} + test? ( dev-python/pytest[${PYTHON_USEDEP}] ) +" +RDEPEND=" + ${CDEPEND} + dev-python/click[${PYTHON_USEDEP}] + dev-python/configobj[${PYTHON_USEDEP}] + >=dev-python/keyring-0.9.2[${PYTHON_USEDEP}] + dev-python/python-novaclient[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] +" + +python_test() { + distutils_install_for_testing + cd "${TEST_DIR}"/lib || die + py.test || die "tests failed under ${EPYTHON}" +} + +python_install_all() { + use examples && local EXAMPLES=( example_configs/. ) + + distutils-r1_python_install_all + + newbashcomp contrib/${PN}-completion.bash ${PN} +} diff --git a/app-admin/supernova/supernova-2.0.5.ebuild b/app-admin/supernova/supernova-2.0.5.ebuild new file mode 100644 index 000000000000..56a25edac926 --- /dev/null +++ b/app-admin/supernova/supernova-2.0.5.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit bash-completion-r1 distutils-r1 + +DESCRIPTION="novaclient wrapper for multiple nova environments" +HOMEPAGE="https://github.com/rackerhacker/supernova" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="doc examples test" + +CDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +DEPEND=" + ${CDEPEND} + doc? ( >=dev-python/mkdocs-0.14.0[${PYTHON_USEDEP}] ) + test? ( dev-python/pytest[${PYTHON_USEDEP}] ) +" +RDEPEND=" + ${CDEPEND} + dev-python/click[${PYTHON_USEDEP}] + dev-python/configobj[${PYTHON_USEDEP}] + >=dev-python/keyring-0.9.2[${PYTHON_USEDEP}] + dev-python/python-novaclient[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] +" + +python_compile_all() { + if use doc; then + mkdocs build || die "docs failed to build" + fi +} + +python_test() { + distutils_install_for_testing + cd "${TEST_DIR}"/lib || die + py.test || die "tests failed under ${EPYTHON}" +} + +python_install_all() { + use doc && local HTML_DOCS=( site/. ) + use examples && local EXAMPLES=( example_configs/. ) + + distutils-r1_python_install_all + + newbashcomp contrib/${PN}-completion.bash ${PN} +} diff --git a/app-admin/supervisor/Manifest b/app-admin/supervisor/Manifest new file mode 100644 index 000000000000..78a6a1775b37 --- /dev/null +++ b/app-admin/supervisor/Manifest @@ -0,0 +1 @@ +DIST supervisor-3.1.3.tar.gz 391529 SHA256 e32c546fe8d2a6e079ec4819c49fd24534d4075a58af39118d04367918b3c282 SHA512 40795bfd1aee3eba9e51b6dc1bfcff20c42c0a42ca7ceecc35c428f7840d5d631303b7f0c4eee85375296fd4e9a48f6b405a87caf038f8ffbfe227b5160e7aa5 WHIRLPOOL da8f41907857c46633e93e1806449babd9230994a528c73946276c10387e380763b7b9fb884bb3376537d6eb55428e5873ed8e9a11cd410a3d6c8d7593907552 diff --git a/app-admin/supervisor/files/conf.d b/app-admin/supervisor/files/conf.d new file mode 100644 index 000000000000..922f4ce4132f --- /dev/null +++ b/app-admin/supervisor/files/conf.d @@ -0,0 +1,4 @@ +# /etc/conf.d/supervisord + +# Options to pass to the supervisord process +SUPD_OPTS="" diff --git a/app-admin/supervisor/files/init.d b/app-admin/supervisor/files/init.d new file mode 100644 index 000000000000..91188b7d36f8 --- /dev/null +++ b/app-admin/supervisor/files/init.d @@ -0,0 +1,28 @@ +#!/sbin/runscript +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +checkconfig() { + if [ ! -f /etc/supervisord.conf ] ; then + eerror "Please create /etc/supervisord.conf:" + eerror "echo_supervisord_conf >> /etc/supervisord.conf" + return 1 + fi + return 0 +} + +start() { + checkconfig || return $? + ebegin "Starting supervisord" + start-stop-daemon --start \ + --exec /usr/bin/supervisord -b --pidfile /var/run/supervisord.pid \ + -- -n ${SUPD_OPTS} + eend $? +} + +stop() { + ebegin "Stopping supervisord" + start-stop-daemon --stop --pidfile /var/run/supervisord.pid + eend $? +} diff --git a/app-admin/supervisor/files/init.d-r1 b/app-admin/supervisor/files/init.d-r1 new file mode 100644 index 000000000000..e1bff4f1c92d --- /dev/null +++ b/app-admin/supervisor/files/init.d-r1 @@ -0,0 +1,13 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +description="client/server system that allows its users to monitor and control a number of processes on UNIX-like operating systems" + +command="/usr/bin/supervisord" +pidfile="/var/run/supervisord.pid" +command_args="--nodaemon --pidfile ${pidfile} ${SUPD_OPTS}" +command_background="yes" + +required_files="/etc/supervisord.conf" diff --git a/app-admin/supervisor/metadata.xml b/app-admin/supervisor/metadata.xml new file mode 100644 index 000000000000..0d8452b949e9 --- /dev/null +++ b/app-admin/supervisor/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>python</herd> + <upstream> + <remote-id type="pypi">supervisor</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/supervisor/supervisor-3.1.3.ebuild b/app-admin/supervisor/supervisor-3.1.3.ebuild new file mode 100644 index 000000000000..c5791e15c8aa --- /dev/null +++ b/app-admin/supervisor/supervisor-3.1.3.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +PYTHON_COMPAT=( python2_7 ) # py2 only +# xml.etree.ElementTree module required. +PYTHON_REQ_USE="xml" + +inherit distutils-r1 + +MY_PV="${PV/_beta/b}" + +DESCRIPTION="A system for controlling process state under UNIX" +HOMEPAGE="http://supervisord.org/ http://pypi.python.org/pypi/supervisor" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${PN}-${MY_PV}.tar.gz" + +LICENSE="repoze ZPL BSD HPND GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="doc test" + +# ALL versions of meld3 match to >=meld3-0.6.5 +RDEPEND="dev-python/meld3[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + test? ( dev-python/mock[${PYTHON_USEDEP}] ) + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" + +S="${WORKDIR}/${PN}-${MY_PV}" + +python_compile_all() { + # Somehow the test phase is called and run on invoking a doc build; harmless + use doc && emake -C docs html +} + +python_test() { + esetup.py test +} + +python_install_all() { + newinitd "${FILESDIR}/init.d-r1" supervisord + newconfd "${FILESDIR}/conf.d" supervisord + use doc && local HTML_DOCS=( docs/.build/html/. ) + distutils-r1_python_install_all +} diff --git a/app-admin/swatch/Manifest b/app-admin/swatch/Manifest new file mode 100644 index 000000000000..37fb6988ba3c --- /dev/null +++ b/app-admin/swatch/Manifest @@ -0,0 +1 @@ +DIST swatch-3.2.3.tar.gz 31199 SHA256 e29480993e52f245f3abec079b3103d8e97244dafe754f8c2d37e7b0b3b58077 SHA512 8020fb99b7acfc322b2a80d8fd9669fc97f272c33b19a36ef1be025ffd1a463658e9b0cc5ddbac02b12a68db9e148da53734beb632677ef88337848bbd60e90f WHIRLPOOL 2fa2ff6dacec9bb527814b041951cfd5c48760cad3a94afcfe362bd13b38f0ea9b970aa7ff4882b30a5dabd79a552ea6e0ac8397e350ef88aa6569cdd7369bf3 diff --git a/app-admin/swatch/files/swatch-confd b/app-admin/swatch/files/swatch-confd new file mode 100644 index 000000000000..813a2a084fc7 --- /dev/null +++ b/app-admin/swatch/files/swatch-confd @@ -0,0 +1,25 @@ +# /etc/conf.d/swatch: config file for /etc/init.d/swatch + +# Path to the swatch program. +#SWATCH_BINARY="/usr/bin/swatch" + +# Swatchrc to read patterns and actions from. +#SWATCHRC="/etc/swatchrc" + +# File to monitor +#SWATCH_TAILFILE="/var/log/syslog" + +# Arguments to tail program +#SWATCH_TAILARGS="" + +# Swatch log file +#SWATCH_LOGFILE="/var/log/swatch.log" + +# Swatch error file +#SWATCH_ERRFILE="/var/log/swatch-err.log" + +# Where to output the generated script to. Should not be writable by others. +#SWATCH_SCRIPT="/var/run/swatch/swatch_script.pl" + +# Whether to parse the complete file once at startup. Defaults to "NO". +PARSE_FULL="NO" diff --git a/app-admin/swatch/files/swatch-init b/app-admin/swatch/files/swatch-init new file mode 100644 index 000000000000..cd622de5e59d --- /dev/null +++ b/app-admin/swatch/files/swatch-init @@ -0,0 +1,53 @@ +#!/sbin/runscript +# This script is based on the one created by Phil (bug #255329). + +depend() { + need logger +} + +SWATCH_BINARY=${SWATCH_BINARY:-/usr/bin/swatch} +SWATCHRC=${SWATCHRC:-/etc/swatchrc} +SWATCH_TAILFILE=${SWATCH_TAILFILE:-/var/log/syslog} +SWATCH_LOGFILE=${SWATCH_LOGFILE:-/var/log/swatch.log} +SWATCH_ERRFILE=${SWATCH_ERRFILE:-/var/log/swatch-err.log} +SWATCH_SCRIPT=${SWATCH_SCRIPT:-/var/run/swatch/swatch_script.pl} + +gen_script() { + local tailargs="" + if [ "${SWATCH_TAILARGS}" ]; then + tailargs="--tail-args=\"${SWATCH_TAILARGS}\"" + fi + ebegin "Generating swatch script from config" + ${SWATCH_BINARY} --dump-script="${SWATCH_SCRIPT}" \ + --use-cpan-file-tail ${tailargs} \ + --config-file "${SWATCHRC}" $1 "${SWATCH_TAILFILE}" + eend $? +} + +parse_full() { + gen_script --examine + ebegin "Parsing complete file once" + /usr/bin/perl ${SWATCH_SCRIPT} 1>/dev/null + eend $? +} + +start() { + checkpath -d -q -m 0750 -o root:root /var/run/swatch + if [ "${PARSE_FULL}" == "YES" ]; then + parse_full + fi + gen_script --tail-file + ebegin "Starting swatch" + start-stop-daemon --start --quiet --background \ + --make-pidfile --pidfile /var/run/swatch/swatch.pid \ + --stdout ${SWATCH_LOGFILE} --stderr ${SWATCH_ERRFILE} \ + --exec /usr/bin/perl -- ${SWATCH_SCRIPT} + eend $? +} + +stop() { + ebegin "Stopping swatch" + start-stop-daemon --stop --exec /usr/bin/perl \ + --pidfile /var/run/swatch/swatch.pid --quiet + eend $? +} diff --git a/app-admin/swatch/files/swatch-initd b/app-admin/swatch/files/swatch-initd new file mode 100644 index 000000000000..f1a25a66a209 --- /dev/null +++ b/app-admin/swatch/files/swatch-initd @@ -0,0 +1,52 @@ +#!/sbin/runscript +# This script is based on the one created by Phil (bug #255329). + +depend() { + need logger +} + +SWATCH_BINARY=${SWATCH_BINARY:-/usr/bin/swatch} +SWATCHRC=${SWATCHRC:-/etc/swatchrc} +SWATCH_TAILFILE=${SWATCH_TAILFILE:-/var/log/syslog} +SWATCH_LOGFILE=${SWATCH_LOGFILE:-/var/log/swatch.log} +SWATCH_ERRFILE=${SWATCH_ERRFILE:-/var/log/swatch-err.log} +SWATCH_SCRIPT=${SWATCH_SCRIPT:-/var/run/swatch/swatch_script.pl} + +gen_script() { + local tailargs="" + if [ "${SWATCH_TAILARGS}" ]; then + tailargs="--tail-args=\"${SWATCH_TAILARGS}\"" + fi + ebegin "Generating swatch script from config" + ${SWATCH_BINARY} --dump-script="${SWATCH_SCRIPT}" \ + --use-cpan-file-tail ${tailargs} \ + --config-file "${SWATCHRC}" $1 "${SWATCH_TAILFILE}" + eend $? +} + +parse_full() { + gen_script --examine + ebegin "Parsing complete file once" + /usr/bin/perl ${SWATCH_SCRIPT} 1>/dev/null + eend $? +} + +start() { + if [ "${PARSE_FULL}" == "YES" ]; then + parse_full + fi + gen_script --tail-file + ebegin "Starting swatch" + start-stop-daemon --start --quiet --background \ + --make-pidfile --pidfile /var/run/swatch/swatch.pid \ + --stdout ${SWATCH_LOGFILE} --stderr ${SWATCH_ERRFILE} \ + --exec /usr/bin/perl -- ${SWATCH_SCRIPT} + eend $? +} + +stop() { + ebegin "Stopping swatch" + start-stop-daemon --stop --exec /usr/bin/perl \ + --pidfile /var/run/swatch/swatch.pid --quiet + eend $? +} diff --git a/app-admin/swatch/files/swatchrc b/app-admin/swatch/files/swatchrc new file mode 100644 index 000000000000..92e88ded1ef5 --- /dev/null +++ b/app-admin/swatch/files/swatchrc @@ -0,0 +1,10 @@ +# +# A sample configuration file for swatch. +# +# See "man swatch" for details. + +# Mails root when invalid remote login attempted. +watchfor /(.*) (.*) (.*) (.*) (.*):( [iI]nvalid [uU]ser )(.*)( from )(.*)$/ + threshold track_by=$9,type=limit,count=3,seconds=30 + mail root,subject="Invalid user" + diff --git a/app-admin/swatch/metadata.xml b/app-admin/swatch/metadata.xml new file mode 100644 index 000000000000..9180d4d30061 --- /dev/null +++ b/app-admin/swatch/metadata.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>nimiux@gentoo.org</email> + <name>Chema Alonso</name> + </maintainer> + <longdescription lang="en"> + Swatch.pl started out as the "simple watchdog" for actively + monitoring log files produced by UNIX's syslog facility. + It has since been evolving into a utility that can monitor + just about any type of log. + </longdescription> + <longdescription lang="es"> + Swatch.pl comenzó como el "simple perro guardián" para + monitorizar activamente ficheros de registro producidos por + la capacidad syslog de los sistemas UNIX. Desde entonces ha + evolucionado hacia una utilidad que puede monitorizar cualquier + tipo de registro. + </longdescription> + <upstream> + <remote-id type="sourceforge">swatch</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/swatch/swatch-3.2.3-r2.ebuild b/app-admin/swatch/swatch-3.2.3-r2.ebuild new file mode 100644 index 000000000000..493fd1c6ce4f --- /dev/null +++ b/app-admin/swatch/swatch-3.2.3-r2.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +GENTOO_DEPEND_ON_PERL_SUBSLOT=yes +inherit perl-app + +DESCRIPTION="Perl-based system log watcher" +HOMEPAGE="http://sourceforge.net/projects/swatch/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +RDEPEND="dev-perl/DateManip + dev-perl/Date-Calc + dev-perl/File-Tail + dev-perl/TimeDate + >=virtual/perl-Time-HiRes-1.12" + +src_install() { + emake install + newinitd "${FILESDIR}/${PN}-init" "${PN}" + newconfd "${FILESDIR}/${PN}-confd" "${PN}" + insinto /etc + doins "${FILESDIR}/swatchrc" +} diff --git a/app-admin/sxid/Manifest b/app-admin/sxid/Manifest new file mode 100644 index 000000000000..df5ecf39f910 --- /dev/null +++ b/app-admin/sxid/Manifest @@ -0,0 +1 @@ +DIST sxid-4.2.tar.gz 41827 SHA256 f335286261474cb77ef4f89a5c4b452edabdbaf19b6b789f195c6a769cd32765 SHA512 ed2832a0ffa89a41eba39e116122878b830c46ee7bfb906652606cff61fe16bc28ab6e6b4a802cc2436d9b3a7bdd734a827f007e6f1ce14ca84a9015d3a37a69 WHIRLPOOL 634e26f9c578796c5d5c92829c2416192a72486fca1d1f5cf74de23b627fb591fbc11ef0f32f183f20530ecca4fb000e7070c92024c47dbf3e533572eb8395b4 diff --git a/app-admin/sxid/metadata.xml b/app-admin/sxid/metadata.xml new file mode 100644 index 000000000000..66bdcb020fbe --- /dev/null +++ b/app-admin/sxid/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> + <email>maintainer-needed@gentoo.org</email> + <description>This package lacks a primary herd or maintainer.</description> + </maintainer> + <upstream> + <remote-id type="freshmeat">sxid</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/sxid/sxid-4.2-r1.ebuild b/app-admin/sxid/sxid-4.2-r1.ebuild new file mode 100644 index 000000000000..f5c80e2b36ec --- /dev/null +++ b/app-admin/sxid/sxid-4.2-r1.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit autotools + +DESCRIPTION="suid, sgid file and directory checking" +HOMEPAGE="http://freshmeat.net/projects/sxid" +SRC_URI="http://linukz.org/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +RDEPEND="virtual/mailx" +DEPEND="" + +DOCS=( docs/sxid.{conf,cron}.example ) + +src_prepare() { + # this is an admin application and really requires root to run correctly + # we need to move the binary to the sbin directory + sed -i s/bindir/sbindir/g source/Makefile.in || die + eautoreconf +} + +pkg_postinst() { + elog "You will need to configure sxid.conf for your system using the manpage and example" +} diff --git a/app-admin/sysklogd/Manifest b/app-admin/sysklogd/Manifest new file mode 100644 index 000000000000..85bd89e02aa9 --- /dev/null +++ b/app-admin/sysklogd/Manifest @@ -0,0 +1,2 @@ +DIST sysklogd-1.5.1.tar.gz 90011 SHA256 5166c185ae23c92e8b9feee66a6e3d0bc944bf673112f53e3ecf62e08ce7c201 SHA512 a72196a1a172d25be1c4791ef6256fe71fa2ba8c1383d230e646e93f8a65c3a57c535189726325da4c792fdb2e9cb119bba43c878816a8e78e78189fd32b12b7 WHIRLPOOL a9be298553e89d1b61f3ac4d5cfc6bd5662ab84d9120adfcdd6b8aaf5fe4d54d9e34ac19dab5c1738578af302597e424e95fc68345a1855e3be2760b093037ea +DIST sysklogd_1.5-6.diff.gz 25677 SHA256 1c5366865bd058530071a6071c317ab3562f33f4b0f3a934878cb97059fde20a SHA512 816961a835a43057569f62fd20d9f7b5e0bfcfcb173b68947457708504db3ce47e635956c8a9564f9bd577d8f3c49dfc725d321dfd3370b2de918363c30f838e WHIRLPOOL 0c330ed79b5a688ddec0a80e6333c181cfa297350ec9559166e5828d715a305b5b52eee5f7cc95f7b4ebccf03f21de594d428fa2b2ef117bd0a1630684c71364 diff --git a/app-admin/sysklogd/files/sysklogd-1.4.2-caen-owl-klogd-drop-root.diff b/app-admin/sysklogd/files/sysklogd-1.4.2-caen-owl-klogd-drop-root.diff new file mode 100644 index 000000000000..40b8817d4e28 --- /dev/null +++ b/app-admin/sysklogd/files/sysklogd-1.4.2-caen-owl-klogd-drop-root.diff @@ -0,0 +1,162 @@ +http://cvsweb.openwall.com/cgi/cvsweb.cgi/~checkout~/Owl/packages/sysklogd/sysklogd-1.4.2-caen-owl-klogd-drop-root.diff?rev=1.2;content-type=text%2Fplain +diff -upk.orig sysklogd-1.4.2.orig/klogd.8 sysklogd-1.4.2/klogd.8 +--- sysklogd-1.4.2.orig/klogd.8 2005-03-11 16:12:09 +0000 ++++ sysklogd-1.4.2/klogd.8 2005-08-18 14:37:47 +0000 +@@ -18,6 +19,12 @@ klogd \- Kernel Log Daemon + .RB [ " \-f " + .I fname + ] ++.RB [ " \-u " ++.I username ++] ++.RB [ " \-j " ++.I chroot_dir ++] + .RB [ " \-iI " ] + .RB [ " \-n " ] + .RB [ " \-o " ] +@@ -53,6 +60,20 @@ stderr. + .BI "\-f " file + Log messages to the specified filename rather than to the syslog facility. + .TP ++.BI "\-u " username ++Tells klogd to become the specified user and drop root privileges before ++starting logging. ++.TP ++.BI "\-j " chroot_dir ++Tells klogd to ++.BR chroot (2) ++into this directory after initializing. ++This option is only valid if the \-u option is also used to run klogd ++without root privileges. ++Note that the use of this option will prevent \-i and \-I from working ++unless you set up the chroot directory in such a way that klogd can still ++read the kernel module symbols. ++.TP + .BI "\-i \-I" + Signal the currently executing klogd daemon. Both of these switches control + the loading/reloading of symbol information. The \-i switch signals the +diff -upk.orig sysklogd-1.4.2.orig/klogd.c sysklogd-1.4.2/klogd.c +--- sysklogd-1.4.2.orig/klogd.c 2005-08-18 12:29:52 +0000 ++++ sysklogd-1.4.2/klogd.c 2005-08-18 14:37:47 +0000 +@@ -261,6 +261,8 @@ + #include <stdarg.h> + #include <paths.h> + #include <stdlib.h> ++#include <pwd.h> ++#include <grp.h> + #include "klogd.h" + #include "ksyms.h" + #ifndef TESTING +@@ -315,6 +317,9 @@ static enum LOGSRC {none, proc, kernel} + int debugging = 0; + int symbols_twice = 0; + ++char *server_user = NULL; ++char *chroot_dir = NULL; ++int log_flags = 0; + + /* Function prototypes. */ + extern int ksyslog(int type, char *buf, int len); +@@ -535,8 +540,9 @@ static enum LOGSRC GetKernelLogSrc(void) + * First do a stat to determine whether or not the proc based + * file system is available to get kernel messages from. + */ +- if ( use_syscall || +- ((stat(_PATH_KLOG, &sb) < 0) && (errno == ENOENT)) ) ++ if (!server_user && ++ (use_syscall || ++ ((stat(_PATH_KLOG, &sb) < 0) && (errno == ENOENT)))) + { + /* Initialize kernel logging. */ + ksyslog(1, NULL, 0); +@@ -983,6 +989,27 @@ static void LogProcLine(void) + } + + ++static int drop_root(void) ++{ ++ struct passwd *pw; ++ ++ if (!(pw = getpwnam(server_user))) return -1; ++ ++ if (!pw->pw_uid) return -1; ++ ++ if (chroot_dir) { ++ if (chdir(chroot_dir)) return -1; ++ if (chroot(".")) return -1; ++ } ++ ++ if (setgroups(0, NULL)) return -1; ++ if (setgid(pw->pw_gid)) return -1; ++ if (setuid(pw->pw_uid)) return -1; ++ ++ return 0; ++} ++ ++ + int main(argc, argv) + + int argc; +@@ -1000,7 +1027,7 @@ int main(argc, argv) + chdir ("/"); + #endif + /* Parse the command-line. */ +- while ((ch = getopt(argc, argv, "c:df:iIk:nopsvx2")) != EOF) ++ while ((ch = getopt(argc, argv, "c:df:u:j:iIk:nopsvx2")) != EOF) + switch((char)ch) + { + case '2': /* Print lines with symbols twice. */ +@@ -1022,6 +1049,10 @@ int main(argc, argv) + case 'I': + SignalDaemon(SIGUSR2); + return(0); ++ case 'j': /* chroot 'j'ail */ ++ chroot_dir = optarg; ++ log_flags |= LOG_NDELAY; ++ break; + case 'k': /* Kernel symbol file. */ + symfile = optarg; + break; +@@ -1037,6 +1068,9 @@ int main(argc, argv) + case 's': /* Use syscall interface. */ + use_syscall = 1; + break; ++ case 'u': /* Run as this user */ ++ server_user = optarg; ++ break; + case 'v': + printf("klogd %s.%s\n", VERSION, PATCHLEVEL); + exit (1); +@@ -1045,6 +1079,10 @@ int main(argc, argv) + break; + } + ++ if (chroot_dir && !server_user) { ++ fputs("'-j' is only valid with '-u'\n", stderr); ++ exit(1); ++ } + + /* Set console logging level. */ + if ( log_level != (char *) 0 ) +@@ -1158,7 +1196,7 @@ int main(argc, argv) + } + } + else +- openlog("kernel", 0, LOG_KERN); ++ openlog("kernel", log_flags, LOG_KERN); + + + /* Handle one-shot logging. */ +@@ -1191,6 +1229,11 @@ int main(argc, argv) + } + } + ++ if (server_user && drop_root()) { ++ syslog(LOG_ALERT, "klogd: failed to drop root"); ++ Terminate(); ++ } ++ + /* The main loop. */ + while (1) + { diff --git a/app-admin/sysklogd/files/sysklogd-1.4.2-caen-owl-syslogd-bind.diff b/app-admin/sysklogd/files/sysklogd-1.4.2-caen-owl-syslogd-bind.diff new file mode 100644 index 000000000000..ad311a512c0f --- /dev/null +++ b/app-admin/sysklogd/files/sysklogd-1.4.2-caen-owl-syslogd-bind.diff @@ -0,0 +1,103 @@ +http://cvsweb.openwall.com/cgi/cvsweb.cgi/~checkout~/Owl/packages/sysklogd/sysklogd-1.4.2-caen-owl-syslogd-bind.diff?rev=1.1;content-type=text%2Fplain +diff -upk.orig sysklogd-1.4.2.orig/sysklogd.8 sysklogd-1.4.2/sysklogd.8 +--- sysklogd-1.4.2.orig/sysklogd.8 2004-07-09 17:33:32 +0000 ++++ sysklogd-1.4.2/sysklogd.8 2005-08-18 14:40:25 +0000 +@@ -15,6 +15,9 @@ sysklogd \- Linux system logging utiliti + .I config file + ] + .RB [ " \-h " ] ++.RB [ " \-i " ++.I IP address ++] + .RB [ " \-l " + .I hostlist + ] +@@ -104,6 +107,13 @@ Specifying this switch on the command li + This can cause syslog loops that fill up hard disks quite fast and + thus needs to be used with caution. + .TP ++.BI "\-i " "IP address" ++If ++.B syslogd ++is configured to accept log input from a UDP port, specify an IP address ++to bind to, rather than the default of INADDR_ANY. The address must be in ++dotted quad notation, DNS host names are not allowed. ++.TP + .BI "\-l " "hostlist" + Specify a hostname that should be logged only with its simple hostname + and not the fqdn. Multiple hosts may be specified using the colon +diff -upk.orig sysklogd-1.4.2.orig/syslogd.c sysklogd-1.4.2/syslogd.c +--- sysklogd-1.4.2.orig/syslogd.c 2005-08-18 14:33:22 +0000 ++++ sysklogd-1.4.2/syslogd.c 2005-08-18 14:40:25 +0000 +@@ -774,6 +774,8 @@ char **LocalHosts = NULL; /* these hosts + int NoHops = 1; /* Can we bounce syslog messages through an + intermediate host. */ + ++char *bind_addr = NULL; /* bind UDP port to this interface only */ ++ + extern int errno; + + /* Function prototypes. */ +@@ -878,7 +880,7 @@ int main(argc, argv) + funix[i] = -1; + } + +- while ((ch = getopt(argc, argv, "a:dhf:l:m:np:rs:v")) != EOF) ++ while ((ch = getopt(argc, argv, "a:dhf:i:l:m:np:rs:v")) != EOF) + switch((char)ch) { + case 'a': + if (nfunix < MAXFUNIX) +@@ -895,9 +897,17 @@ int main(argc, argv) + case 'h': + NoHops = 0; + break; ++ case 'i': ++ if (bind_addr) { ++ fprintf(stderr, "Only one -i argument allowed, " ++ "the first one is taken.\n"); ++ break; ++ } ++ bind_addr = optarg; ++ break; + case 'l': + if (LocalHosts) { +- fprintf (stderr, "Only one -l argument allowed," \ ++ fprintf(stderr, "Only one -l argument allowed, " + "the first one is taken.\n"); + break; + } +@@ -1244,7 +1254,7 @@ int main(argc, argv) + int usage() + { + fprintf(stderr, "usage: syslogd [-drvh] [-l hostlist] [-m markinterval] [-n] [-p path]\n" \ +- " [-s domainlist] [-f conffile]\n"); ++ " [-s domainlist] [-f conffile] [-i IP address]\n"); + exit(1); + } + +@@ -1286,15 +1296,22 @@ static int create_inet_socket() + int fd, on = 1; + struct sockaddr_in sin; + ++ memset(&sin, 0, sizeof(sin)); ++ sin.sin_family = AF_INET; ++ sin.sin_port = LogPort; ++ if (bind_addr) { ++ if (!inet_aton(bind_addr, &sin.sin_addr)) { ++ logerror("syslog: not a valid IP address to bind to."); ++ return -1; ++ } ++ } ++ + fd = socket(AF_INET, SOCK_DGRAM, 0); + if (fd < 0) { + logerror("syslog: Unknown protocol, suspending inet service."); + return fd; + } + +- memset(&sin, 0, sizeof(sin)); +- sin.sin_family = AF_INET; +- sin.sin_port = LogPort; + if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, \ + (char *) &on, sizeof(on)) < 0 ) { + logerror("setsockopt(REUSEADDR), suspending inet"); diff --git a/app-admin/sysklogd/files/sysklogd-1.4.2-caen-owl-syslogd-drop-root.diff b/app-admin/sysklogd/files/sysklogd-1.4.2-caen-owl-syslogd-drop-root.diff new file mode 100644 index 000000000000..8c3f571f3ca2 --- /dev/null +++ b/app-admin/sysklogd/files/sysklogd-1.4.2-caen-owl-syslogd-drop-root.diff @@ -0,0 +1,118 @@ +http://cvsweb.openwall.com/cgi/cvsweb.cgi/~checkout~/Owl/packages/sysklogd/sysklogd-1.4.2-caen-owl-syslogd-drop-root.diff?rev=1.1;content-type=text%2Fplain +diff -upk.orig sysklogd-1.4.2.orig/sysklogd.8 sysklogd-1.4.2/sysklogd.8 +--- sysklogd-1.4.2.orig/sysklogd.8 2005-08-18 14:40:25 +0000 ++++ sysklogd-1.4.2/sysklogd.8 2005-08-18 14:41:26 +0000 +@@ -32,6 +32,9 @@ sysklogd \- Linux system logging utiliti + .RB [ " \-s " + .I domainlist + ] ++.RB [ " \-u" ++.IB username ++] + .RB [ " \-v " ] + .LP + .SH DESCRIPTION +@@ -161,6 +164,19 @@ is specified and the host logging resolv + no domain would be cut, you will have to specify two domains like: + .BR "\-s north.de:infodrom.north.de" . + .TP ++.BI "\-u " "username" ++This causes the ++.B syslogd ++daemon to become the named user before starting up logging. ++ ++Note that when this option is in use, ++.B syslogd ++will open all log files as root when the daemon is first started; ++however, after a ++.B SIGHUP ++the files will be reopened as the non-privileged user. You should ++take this into account when deciding the ownership of the log files. ++.TP + .B "\-v" + Print version and exit. + .LP +diff -upk.orig sysklogd-1.4.2.orig/syslogd.c sysklogd-1.4.2/syslogd.c +--- sysklogd-1.4.2.orig/syslogd.c 2005-08-18 14:40:25 +0000 ++++ sysklogd-1.4.2/syslogd.c 2005-08-18 14:41:26 +0000 +@@ -524,6 +524,10 @@ static char sccsid[] = "@(#)syslogd.c 5. + #include <arpa/nameser.h> + #include <arpa/inet.h> + #include <resolv.h> ++ ++#include <pwd.h> ++#include <grp.h> ++ + #ifndef TESTING + #include "pidfile.h" + #endif +@@ -775,6 +779,7 @@ int NoHops = 1; /* Can we bounce syslog + intermediate host. */ + + char *bind_addr = NULL; /* bind UDP port to this interface only */ ++char *server_user = NULL; /* user name to run server as */ + + extern int errno; + +@@ -827,6 +832,21 @@ static int set_nonblock_flag(int desc) + return fcntl(desc, F_SETFL, flags | O_NONBLOCK); + } + ++static int drop_root(void) ++{ ++ struct passwd *pw; ++ ++ if (!(pw = getpwnam(server_user))) return -1; ++ ++ if (!pw->pw_uid) return -1; ++ ++ if (initgroups(server_user, pw->pw_gid)) return -1; ++ if (setgid(pw->pw_gid)) return -1; ++ if (setuid(pw->pw_uid)) return -1; ++ ++ return 0; ++} ++ + int main(argc, argv) + int argc; + char **argv; +@@ -880,7 +900,7 @@ int main(argc, argv) + funix[i] = -1; + } + +- while ((ch = getopt(argc, argv, "a:dhf:i:l:m:np:rs:v")) != EOF) ++ while ((ch = getopt(argc, argv, "a:dhf:i:l:m:np:rs:u:v")) != EOF) + switch((char)ch) { + case 'a': + if (nfunix < MAXFUNIX) +@@ -933,6 +953,9 @@ int main(argc, argv) + } + StripDomains = crunch_list(optarg); + break; ++ case 'u': ++ server_user = optarg; ++ break; + case 'v': + printf("syslogd %s.%s\n", VERSION, PATCHLEVEL); + exit (0); +@@ -1100,6 +1123,11 @@ int main(argc, argv) + kill (ppid, SIGTERM); + #endif + ++ if (server_user && drop_root()) { ++ dprintf("syslogd: failed to drop root\n"); ++ exit(1); ++ } ++ + /* Main loop begins here. */ + for (;;) { + int nfds; +@@ -1254,7 +1282,7 @@ int main(argc, argv) + int usage() + { + fprintf(stderr, "usage: syslogd [-drvh] [-l hostlist] [-m markinterval] [-n] [-p path]\n" \ +- " [-s domainlist] [-f conffile] [-i IP address]\n"); ++ " [-s domainlist] [-f conffile] [-i IP address] [-u username]\n"); + exit(1); + } + diff --git a/app-admin/sysklogd/files/sysklogd-1.5-build.patch b/app-admin/sysklogd/files/sysklogd-1.5-build.patch new file mode 100644 index 000000000000..12f4822cd265 --- /dev/null +++ b/app-admin/sysklogd/files/sysklogd-1.5-build.patch @@ -0,0 +1,20 @@ +respect env CC/CFLAGS/CPPFLAGS/LDFLAGS + +--- Makefile ++++ Makefile +@@ -17,14 +17,12 @@ + # along with this program; if not, write to the Free Software + # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +-CC= gcc + #SKFLAGS= -g -DSYSV -Wall + #LDFLAGS= -g +-SKFLAGS= $(RPM_OPT_FLAGS) -O3 -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce ++SKFLAGS= $(CFLAGS) $(CPPFLAGS) -DSYSV -Wall -fno-strength-reduce + # -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE + # -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE + # $(shell getconf LFS_SKFLAGS) +-LDFLAGS= -s + + # Look where your install program is. + INSTALL = /usr/bin/install diff --git a/app-admin/sysklogd/files/sysklogd-1.5-debian-cron.patch b/app-admin/sysklogd/files/sysklogd-1.5-debian-cron.patch new file mode 100644 index 000000000000..7f6c2a79b0b2 --- /dev/null +++ b/app-admin/sysklogd/files/sysklogd-1.5-debian-cron.patch @@ -0,0 +1,38 @@ +--- debian/cron.daily ++++ debian/cron.daily +@@ -20,10 +20,6 @@ + # Written by Martin Schulze <joey@debian.org>. + # $Id: cron.daily,v 1.14 2007-05-28 16:33:34 joey Exp $ + +-test -x /usr/sbin/syslogd-listfiles || exit 0 +-test -x /sbin/syslogd || exit 0 +-test -f /usr/share/sysklogd/dummy || exit 0 +- + set -e + + cd /var/log +@@ -41,4 +37,4 @@ + + # Restart syslogd + # +-/etc/init.d/sysklogd reload-or-restart > /dev/null ++/etc/init.d/sysklogd --quiet reload +--- debian/cron.weekly ++++ debian/cron.weekly +@@ -19,10 +19,6 @@ + # Written by Ian A. Murdock <imurdock@debian.org>. + # $Id: cron.weekly,v 1.11 2007-05-28 16:33:34 joey Exp $ + +-test -x /usr/sbin/syslogd-listfiles || exit 0 +-test -x /sbin/syslogd || exit 0 +-test -f /usr/share/sysklogd/dummy || exit 0 +- + set -e + + cd /var/log +@@ -40,4 +36,4 @@ + + # Restart syslogd + # +-/etc/init.d/sysklogd reload-or-restart > /dev/null ++/etc/init.d/sysklogd --quiet reload diff --git a/app-admin/sysklogd/files/sysklogd-1.5-syslog-func-collision.patch b/app-admin/sysklogd/files/sysklogd-1.5-syslog-func-collision.patch new file mode 100644 index 000000000000..76912a265565 --- /dev/null +++ b/app-admin/sysklogd/files/sysklogd-1.5-syslog-func-collision.patch @@ -0,0 +1,103 @@ +http://bugs.gentoo.org/342601 + +rename local "syslog" and "vsyslog" functions to avoid conflicts with glibc's + +patch by Dmitriy Matrosov + +--- sysklogd-1.5/klogd.c ++++ sysklogd-1.5/klogd.c +@@ -258,7 +262,6 @@ + #if !defined(__GLIBC__) + #include <linux/time.h> + #endif /* __GLIBC__ */ +-#include <stdarg.h> + #include <paths.h> + #include <stdlib.h> + #include <pwd.h> +@@ -637,7 +640,7 @@ + } + argl += 3; + } +- syslog(priority, fmt, argl); ++ syslog_own(priority, fmt, argl); + va_end(ap); + #ifdef TESTING + putchar('\n'); +@@ -646,7 +649,7 @@ + } + + va_start(ap, fmt); +- vsyslog(priority, fmt, ap); ++ vsyslog_own(priority, fmt, ap); + va_end(ap); + #ifdef TESTING + printf ("\n"); +@@ -1205,7 +1208,7 @@ + } + + if (server_user && drop_root()) { +- syslog(LOG_ALERT, "klogd: failed to drop root"); ++ syslog_own(LOG_ALERT, "klogd: failed to drop root"); + Terminate(); + } + +--- sysklogd-1.5/klogd.h ++++ sysklogd-1.5/klogd.h +@@ -24,6 +24,7 @@ + #include <stdio.h> + #include <syslog.h> + #include <string.h> ++#include <stdarg.h> + + + /* Function prototypes. */ +@@ -38,3 +43,5 @@ + extern char * ExpandKadds(char *, char *); + extern void SetParanoiaLevel(int); + extern void Syslog(int priority, char *fmt, ...); ++extern void syslog_own(int, const char *, ...); ++extern void vsyslog_own(int, const char *, va_list); +--- sysklogd-1.5/ksym_mod.c ++++ sysklogd-1.5/ksym_mod.c +@@ -95,7 +98,6 @@ + #if !defined(__GLIBC__) + #include <linux/time.h> + #endif /* __GLIBC__ */ +-#include <stdarg.h> + #include <paths.h> + #include <linux/version.h> + +--- sysklogd-1.5/syslog.c ++++ sysklogd-1.5/syslog.c +@@ -75,6 +79,10 @@ + + #define _PATH_LOGNAME "/dev/log" + ++ ++void syslog_own(int, const char *, ...); ++void vsyslog_own(int, const char *, va_list); ++ + static int LogFile = -1; /* fd for log */ + static int connected; /* have done connect */ + static int LogStat = 0; /* status bits, set by openlog() */ +@@ -82,17 +90,17 @@ + static int LogFacility = LOG_USER; /* default facility code */ + + void +-syslog(int pri, const char *fmt, ...) ++syslog_own(int pri, const char *fmt, ...) + { + va_list ap; + + va_start(ap, fmt); +- vsyslog(pri, fmt, ap); ++ vsyslog_own(pri, fmt, ap); + va_end(ap); + } + + void +-vsyslog(pri, fmt, ap) ++vsyslog_own(pri, fmt, ap) + int pri; + const char *fmt; + va_list ap; diff --git a/app-admin/sysklogd/files/sysklogd.confd b/app-admin/sysklogd/files/sysklogd.confd new file mode 100644 index 000000000000..c9735739117d --- /dev/null +++ b/app-admin/sysklogd/files/sysklogd.confd @@ -0,0 +1,6 @@ +# Config file for /etc/init.d/sysklogd + +SYSLOGD="-m 0" +# send warnings and above to the console +KLOGD="-c 3 -2" + diff --git a/app-admin/sysklogd/files/sysklogd.logrotate b/app-admin/sysklogd/files/sysklogd.logrotate new file mode 100644 index 000000000000..8148a2ab2948 --- /dev/null +++ b/app-admin/sysklogd/files/sysklogd.logrotate @@ -0,0 +1,8 @@ +/var/log/auth.log /var/log/daemon.log /var/log/debug /var/log/kern.log /var/log/lpr.log /var/log/mail.err /var/log/mail.info /var/log/mail.log /var/log/mail.warn /var/log/messages /var/log/news/news.crit /var/log/news/news.err /var/log/news/news.notice /var/log/syslog /var/log/user.log { + create 640 root root + sharedscripts + missingok + postrotate + /etc/init.d/sysklogd -q reload + endscript +} diff --git a/app-admin/sysklogd/files/sysklogd.rc7 b/app-admin/sysklogd/files/sysklogd.rc7 new file mode 100644 index 000000000000..fce3435fdccf --- /dev/null +++ b/app-admin/sysklogd/files/sysklogd.rc7 @@ -0,0 +1,75 @@ +#!/sbin/runscript +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Id$ + +extra_started_commands="reload" + +depend() { + need clock hostname + provide logger +} + +start_daemon() { + local retval=0 + local daemon="$1" + local options="$2" + + [ -z "${daemon}" ] && return 1 + + ebegin "sysklogd -> start: ${daemon}" + start-stop-daemon --start --exec /usr/sbin/"${daemon}" \ + --pidfile /var/run/"${daemon}".pid -- ${options} + retval=$? + eend ${retval} "Failed to start ${daemon}" + + return ${retval} +} + +stop_daemon() { + local retval=0 + local daemon="$1" + + [ -z "${daemon}" ] && return 1 + + ebegin "sysklogd -> stop: ${daemon}" + # syslogd can be stubborn some times (--retry 15)... + start-stop-daemon --stop --retry 15 --quiet --pidfile /var/run/"${daemon}".pid + retval=$? + eend ${retval} "Failed to stop ${daemon}" + + return ${retval} +} + +start() { + start_daemon "syslogd" "${SYSLOGD}" || return 1 + + # klogd do not always start proper if started too early + sleep 1 + + if ! start_daemon "klogd" "${KLOGD}" ; then + stop_daemon "syslogd" + return 1 + fi + + return 0 +} + +stop() { + stop_daemon "klogd" || return 1 + stop_daemon "syslogd" || return 1 + return 0 +} + +reload() { + local ret=0 + + ebegin "Reloading configuration" + + start-stop-daemon --signal HUP --pidfile /var/run/syslogd.pid + ret=$((${ret} + $?)) + start-stop-daemon --signal USR1 --pidfile /var/run/klogd.pid + ret=$((${ret} + $?)) + + eend ${ret} +} diff --git a/app-admin/sysklogd/metadata.xml b/app-admin/sysklogd/metadata.xml new file mode 100644 index 000000000000..b3d8b65eba31 --- /dev/null +++ b/app-admin/sysklogd/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>base-system</herd> + <use> + <flag name='logrotate'>use app-admin/logrotate for rotating logs rather than custom cron scripts</flag> + </use> +</pkgmetadata> diff --git a/app-admin/sysklogd/sysklogd-1.5.1.ebuild b/app-admin/sysklogd/sysklogd-1.5.1.ebuild new file mode 100644 index 000000000000..db3b49d505e4 --- /dev/null +++ b/app-admin/sysklogd/sysklogd-1.5.1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils flag-o-matic toolchain-funcs + +DEB_PV="1.5-6" +DESCRIPTION="Standard log daemons" +HOMEPAGE="http://www.infodrom.org/projects/sysklogd/" +SRC_URI="http://www.infodrom.org/projects/sysklogd/download/${P}.tar.gz + mirror://debian/pool/main/s/sysklogd/${PN}_${DEB_PV}.diff.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 ~sh sparc x86" +IUSE="logrotate" +RESTRICT="test" + +DEPEND="" +RDEPEND="dev-lang/perl + sys-apps/debianutils" + +src_prepare() { + epatch "${WORKDIR}"/${PN}_${DEB_PV}.diff + + epatch "${FILESDIR}"/${PN}-1.5-debian-cron.patch + epatch "${FILESDIR}"/${PN}-1.5-build.patch + + # CAEN/OWL security patches + epatch "${FILESDIR}"/${PN}-1.4.2-caen-owl-syslogd-bind.diff + epatch "${FILESDIR}"/${PN}-1.4.2-caen-owl-syslogd-drop-root.diff + epatch "${FILESDIR}"/${PN}-1.4.2-caen-owl-klogd-drop-root.diff + + epatch "${FILESDIR}"/${PN}-1.5-syslog-func-collision.patch #342601 +} + +src_configure() { + append-lfs-flags + tc-export CC +} + +src_install() { + dosbin syslogd klogd debian/syslog-facility debian/syslogd-listfiles + doman *.[1-9] debian/syslogd-listfiles.8 + insinto /etc + doins debian/syslog.conf + if use logrotate ; then + insinto /etc/logrotate.d + newins "${FILESDIR}"/sysklogd.logrotate sysklogd + else + exeinto /etc/cron.daily + newexe debian/cron.daily syslog + exeinto /etc/cron.weekly + newexe debian/cron.weekly syslog + fi + dodoc ANNOUNCE CHANGES NEWS README.1st README.linux + newinitd "${FILESDIR}"/sysklogd.rc7 sysklogd + newconfd "${FILESDIR}"/sysklogd.confd sysklogd +} diff --git a/app-admin/syslog-ng/Manifest b/app-admin/syslog-ng/Manifest new file mode 100644 index 000000000000..36b48cc94840 --- /dev/null +++ b/app-admin/syslog-ng/Manifest @@ -0,0 +1,3 @@ +DIST syslog-ng_3.4.8.tar.gz 3169372 SHA256 96c2f970fbba4fdd7659b1fee5e476d2858c911d4304d42099f495493762ff49 SHA512 23ba9908664e594c186cbe4bd5dcfb5d2ed3faf02ec45b931bb91b078660547989c2340a08b478a33adb530d39a6d6f39a2e7519107a3f6b923ac9f39529620e WHIRLPOOL 1085fa2c90e0c85421c64ed50e8a357f29006afea2f3e329e42d1e27f4210a10fe0f05d4af95a11c245d68b43644a4a829a50c05b7d541f59a6f580b3643b434 +DIST syslog-ng_3.6.2.tar.gz 3207456 SHA256 ef47fada52981e09af570457a5af30f815f5d5b6c2e33754cedd4ca9780d8261 SHA512 15603b4df2001e1ce7e0019d0dd9a0f4295445e3fd19a527ebf3d49486da7da27fac6c465727ec0354f8f70ca0f671a285ec132f9aa0de62b40f18b44af2a226 WHIRLPOOL 7135db242374d6e5789c0820a06187b7e325054fd214e3aee75aac5b8dde56786b432cc4519c07ce0cd413c3a560e8e74ee6eca319c21eaa750ca8140ef1b63f +DIST syslog-ng_3.6.4.tar.gz 3276432 SHA256 7be11df31ac7d716f1f952e22b5ae8e2049edd633a41b223776a853d9106f4e7 SHA512 9c648628b9bd3ebb25bc44fa6586e88a4b9ed7c24b1c337569d3cccb04bf2f427ba1218900f8dfd8f668f245d6ab44ad45b67da661b7c2af68c6c42101b722e1 WHIRLPOOL 496a9b2e06e33b0c42726f3b13f859f356f136367c48363cd22b086b72f4f54a32cc057235636f2d2ea3ad7bdd622354ea67df1cbc770be608a84bc861fce93d diff --git a/app-admin/syslog-ng/files/3.4/syslog-ng.conf.gentoo b/app-admin/syslog-ng/files/3.4/syslog-ng.conf.gentoo new file mode 100644 index 000000000000..21ec3ae68599 --- /dev/null +++ b/app-admin/syslog-ng/files/3.4/syslog-ng.conf.gentoo @@ -0,0 +1,37 @@ +@version: 3.4 +# $Id$ +# +# Syslog-ng default configuration file for Gentoo Linux + +# https://bugs.gentoo.org/show_bug.cgi?id=426814 +@include "scl.conf" + +options { + threaded(yes); + chain_hostnames(no); + + # The default action of syslog-ng is to log a STATS line + # to the file every 10 minutes. That's pretty ugly after a while. + # Change it to every 12 hours so you get a nice daily update of + # how many messages syslog-ng missed (0). + stats_freq(43200); + # The default action of syslog-ng is to log a MARK line + # to the file every 20 minutes. That's seems high for most + # people so turn it down to once an hour. Set it to zero + # if you don't want the functionality at all. + mark_freq(3600); +}; + +source src { system(); internal(); }; + +destination messages { file("/var/log/messages"); }; + +# By default messages are logged to tty12... +destination console_all { file("/dev/tty12"); }; +# ...if you intend to use /dev/console for programs like xconsole +# you can comment out the destination line above that references /dev/tty12 +# and uncomment the line below. +#destination console_all { file("/dev/console"); }; + +log { source(src); destination(messages); }; +log { source(src); destination(console_all); }; diff --git a/app-admin/syslog-ng/files/3.4/syslog-ng.conf.gentoo.fbsd b/app-admin/syslog-ng/files/3.4/syslog-ng.conf.gentoo.fbsd new file mode 100644 index 000000000000..caa8e6faa157 --- /dev/null +++ b/app-admin/syslog-ng/files/3.4/syslog-ng.conf.gentoo.fbsd @@ -0,0 +1,25 @@ +@version: 3.4 +# $Id$ +# +# Syslog-ng default configuration file for Gentoo FreeBSD +# + +# https://bugs.gentoo.org/show_bug.cgi?id=426814 +@include "scl.conf" + +options { + threaded(yes); + chain_hostnames(no); + + # The default action of syslog-ng is to log a STATS line + # to the file every 10 minutes. That's pretty ugly after a while. + # Change it to every 12 hours so you get a nice daily update of + # how many messages syslog-ng missed (0). + stats_freq(43200); +}; + +source src { system(); internal(); }; + +destination messages { file("/var/log/messages"); }; + +log { source(src); destination(messages); }; diff --git a/app-admin/syslog-ng/files/3.4/syslog-ng.conf.gentoo.hardened b/app-admin/syslog-ng/files/3.4/syslog-ng.conf.gentoo.hardened new file mode 100644 index 000000000000..545be3314ea8 --- /dev/null +++ b/app-admin/syslog-ng/files/3.4/syslog-ng.conf.gentoo.hardened @@ -0,0 +1,115 @@ +@version: 3.4 +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# https://bugs.gentoo.org/show_bug.cgi?id=426814 +@include "scl.conf" + +# +# Syslog-ng configuration file, compatible with default hardened installations. +# + +options { + threaded(yes); + chain_hostnames(no); + stats_freq(43200); +}; + +source src { + unix-dgram("/dev/log"); + internal(); +}; +source kernsrc { + file("/proc/kmsg"); +}; + +#source net { udp(); }; +#log { source(net); destination(net_logs); }; +#destination net_logs { file("/var/log/HOSTS/$HOST/$YEAR$MONTH$DAY.log"); }; + +destination authlog { file("/var/log/auth.log"); }; +destination _syslog { file("/var/log/syslog"); }; +destination cron { file("/var/log/cron.log"); }; +destination daemon { file("/var/log/daemon.log"); }; +destination kern { file("/var/log/kern.log"); file("/dev/tty12"); }; +destination lpr { file("/var/log/lpr.log"); }; +destination user { file("/var/log/user.log"); }; +destination uucp { file("/var/log/uucp.log"); }; +#destination ppp { file("/var/log/ppp.log"); }; +destination mail { file("/var/log/mail.log"); }; + +destination avc { file("/var/log/avc.log"); }; +destination audit { file("/var/log/audit.log"); }; +destination pax { file("/var/log/pax.log"); }; +destination grsec { file("/var/log/grsec.log"); }; + +destination mailinfo { file("/var/log/mail.info"); }; +destination mailwarn { file("/var/log/mail.warn"); }; +destination mailerr { file("/var/log/mail.err"); }; + +destination newscrit { file("/var/log/news/news.crit"); }; +destination newserr { file("/var/log/news/news.err"); }; +destination newsnotice { file("/var/log/news/news.notice"); }; + +destination debug { file("/var/log/debug"); }; +destination messages { file("/var/log/messages"); }; +destination console { usertty("root"); }; +destination console_all { file("/dev/tty12"); }; +#destination loghost { udp("loghost" port(999)); }; + +destination xconsole { pipe("/dev/xconsole"); }; + +filter f_auth { facility(auth); }; +filter f_authpriv { facility(auth, authpriv); }; +filter f_syslog { not facility(authpriv, mail); }; +filter f_cron { facility(cron); }; +filter f_daemon { facility(daemon); }; +filter f_kern { facility(kern); }; +filter f_lpr { facility(lpr); }; +filter f_mail { facility(mail); }; +filter f_user { facility(user); }; +filter f_uucp { facility(uucp); }; +#filter f_ppp { facility(ppp); }; +filter f_news { facility(news); }; +filter f_debug { not facility(auth, authpriv, news, mail); }; +filter f_messages { level(info..warn) + and not facility(auth, authpriv, mail, news); }; +filter f_emergency { level(emerg); }; + +filter f_info { level(info); }; + +filter f_notice { level(notice); }; +filter f_warn { level(warn); }; +filter f_crit { level(crit); }; +filter f_err { level(err); }; + +filter f_avc { message(".*avc: .*"); }; +filter f_audit { message("^(\\[.*\..*\] |)audit.*") and not message(".*avc: .*"); }; +filter f_pax { message("^(\\[.*\..*\] |)PAX:.*"); }; +filter f_grsec { message("^(\\[.*\..*\] |)grsec:.*"); }; + +log { source(src); filter(f_authpriv); destination(authlog); }; +log { source(src); filter(f_syslog); destination(_syslog); }; +log { source(src); filter(f_cron); destination(cron); }; +log { source(src); filter(f_daemon); destination(daemon); }; +log { source(kernsrc); filter(f_kern); destination(kern); }; +log { source(src); filter(f_lpr); destination(lpr); }; +log { source(src); filter(f_mail); destination(mail); }; +log { source(src); filter(f_user); destination(user); }; +log { source(src); filter(f_uucp); destination(uucp); }; +log { source(kernsrc); filter(f_pax); destination(pax); }; +log { source(kernsrc); filter(f_grsec); destination(grsec); }; +log { source(kernsrc); filter(f_audit); destination(audit); }; +log { source(kernsrc); filter(f_avc); destination(avc); }; +log { source(src); filter(f_mail); filter(f_info); destination(mailinfo); }; +log { source(src); filter(f_mail); filter(f_warn); destination(mailwarn); }; +log { source(src); filter(f_mail); filter(f_err); destination(mailerr); }; +log { source(src); filter(f_news); filter(f_crit); destination(newscrit); }; +log { source(src); filter(f_news); filter(f_err); destination(newserr); }; +log { source(src); filter(f_news); filter(f_notice); destination(newsnotice); }; +log { source(src); filter(f_debug); destination(debug); }; +log { source(src); filter(f_messages); destination(messages); }; +log { source(src); filter(f_emergency); destination(console); }; +#log { source(src); filter(f_ppp); destination(ppp); }; +log { source(src); destination(console_all); }; diff --git a/app-admin/syslog-ng/files/3.4/syslog-ng.confd b/app-admin/syslog-ng/files/3.4/syslog-ng.confd new file mode 100644 index 000000000000..6a437d1bf36f --- /dev/null +++ b/app-admin/syslog-ng/files/3.4/syslog-ng.confd @@ -0,0 +1,42 @@ +# Config file for /etc/init.d/syslog-ng + +# If you are not using network logging, this entire section should be +# commented out. Otherwise, choose one of the settings below based on +# how you are configuring your network. +# +# If you are using the net.* scripts to configure your network, you should +# set rc_need to match the interface through which your logging server +# can be reached. +#rc_need="net.eth0" +# +# If you are using an interface manager like wicd, dhcpcd in standalone +# mode, networkmanager, etc to control your interfaces, set rc_need to +# the name of that service. +# rc_need="dhcpcd" +#rc_need="networkmanager" +# +# If you are using newnet and configuring your interface statically with +# the network script, you should use this setting. +#rc_need="network" +# +# You can use this setting, but I do not recommend relying on it. +#rc_need="net" +# +# You may also want to uncomment the following if you are using network +# logging. +#rc_use="stunnel" + +# For very customized setups these variables can be adjusted as needed +# but for most situations they should remain commented: +# SYSLOG_NG_CONFIGFILE=/etc/syslog-ng/syslog-ng.conf +# SYSLOG_NG_STATEFILE_DIR=/var/lib/syslog-ng +# SYSLOG_NG_STATEFILE=${SYSLOG_NG_STATEFILE_DIR}/syslog-ng.persist +# SYSLOG_NG_PIDFILE_DIR=/var/run +# SYSLOG_NG_PIDFILE=${SYSLOG_NG_PIDFILE_DIR}/syslog-ng.pid +# SYSLOG_NG_GROUP=root +# SYSLOG_NG_USER=root + +# Put any additional options for syslog-ng here. +# See syslog-ng(8) for more information. + +SYSLOG_NG_OPTS="" diff --git a/app-admin/syslog-ng/files/3.4/syslog-ng.rc6 b/app-admin/syslog-ng/files/3.4/syslog-ng.rc6 new file mode 100644 index 000000000000..b9ccbe3b2054 --- /dev/null +++ b/app-admin/syslog-ng/files/3.4/syslog-ng.rc6 @@ -0,0 +1,59 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +SYSLOG_NG_CONFIGFILE=${SYSLOG_NG_CONFIGFILE:-/etc/syslog-ng/${RC_SVCNAME}.conf} +SYSLOG_NG_STATEFILE_DIR=${SYSLOG_NG_STATEFILE_DIR:-/var/lib/syslog-ng} +SYSLOG_NG_STATEFILE=${SYSLOG_NG_STATEFILE:-${SYSLOG_NG_STATEFILE_DIR}/syslog-ng.persist} +SYSLOG_NG_PIDFILE_DIR=${SYSLOG_NG_PIDFILE_DIR:-/var/run} +SYSLOG_NG_PIDFILE=${SYSLOG_NG_PIDFILE:-${SYSLOG_NG_PIDFILE_DIR}/${RC_SVCNAME}.pid} + +SYSLOG_NG_GROUP=${SYSLOG_NG_GROUP:-root} +SYSLOG_NG_USER=${SYSLOG_NG_USER:-root} + +command="/usr/sbin/syslog-ng" +command_args="--persist-file \"${SYSLOG_NG_STATEFILE}\" --cfgfile \"${SYSLOG_NG_CONFIGFILE}\" --pidfile \"${SYSLOG_NG_PIDFILE}\" ${SYSLOG_NG_OPTS}" +extra_commands="checkconfig" +extra_started_commands="reload" +pidfile="${SYSLOG_NG_PIDFILE}" +start_stop_daemon_args="--user \"${SYSLOG_NG_USER}\":\"${SYSLOG_NG_GROUP}\"" +description="Syslog-ng is a syslog replacement with advanced filtering features." +description_checkconfig="Check the configuration file that will be used by \"start\"" +description_reload="Reload the configuration without exiting" +required_files="${SYSLOG_NG_CONFIGFILE}" +required_dirs="${SYSLOG_NG_PIDFILE_DIR}" + +depend() { + use clock + need hostname localmount + after bootmisc + provide logger +} + +checkconfig() { + ebegin "Checking your configfile (${SYSLOG_NG_CONFIGFILE})" + syslog-ng -s -f "${SYSLOG_NG_CONFIGFILE}" + eend $? "Configuration error. Please fix your configfile (${SYSLOG_NG_CONFIGFILE})" +} + +start_pre() { + checkconfig || return 1 + checkpath \ + -d \ + --mode 0700 \ + --owner "${SYSLOG_NG_OWNER}:${SYSLOG_NG_GROUP}" \ + "${SYSLOG_NG_STATEFILE_DIR}" +} + +stop_pre() { + [ "$RC_CMD" = restart ] && sleep 1 + return 0 +} + +reload() { + checkconfig || return 1 + ebegin "Reloading configuration and re-opening log files" + start-stop-daemon --signal HUP --pidfile "${pidfile}" + eend $? +} diff --git a/app-admin/syslog-ng/files/3.6/syslog-ng-3.6.2-redis.patch b/app-admin/syslog-ng/files/3.6/syslog-ng-3.6.2-redis.patch new file mode 100644 index 000000000000..aa00c3b9d0e4 --- /dev/null +++ b/app-admin/syslog-ng/files/3.6/syslog-ng-3.6.2-redis.patch @@ -0,0 +1,29 @@ +From 0e51c69056a93bd2b95341f005b8b1fdceec2b10 Mon Sep 17 00:00:00 2001 +From: Tibor Benke <ihrwein@gmail.com> +Date: Wed, 17 Dec 2014 23:52:41 +0100 +Subject: [PATCH] redis: free reply object after a succesful ping + +--- + modules/redis/redis.c | 7 ++++++- + 1 file changed, 6 insertions(+), 1 deletion(-) + +diff --git a/modules/redis/redis.c b/modules/redis/redis.c +index 46a5b6b..9114324 100644 +--- a/modules/redis/redis.c ++++ b/modules/redis/redis.c +@@ -132,9 +132,14 @@ redis_dd_format_persist_name(LogThrDestDriver *d) + static gboolean + redis_dd_connect(RedisDriver *self, gboolean reconnect) + { ++ redisReply *reply; ++ + if (reconnect && (self->c != NULL)) + { +- redisCommand(self->c, "ping"); ++ reply = redisCommand(self->c, "ping"); ++ ++ if (reply) ++ freeReplyObject(reply); + + if (!self->c->err) + return TRUE; diff --git a/app-admin/syslog-ng/files/3.6/syslog-ng.conf.gentoo b/app-admin/syslog-ng/files/3.6/syslog-ng.conf.gentoo new file mode 100644 index 000000000000..77dacb882b5e --- /dev/null +++ b/app-admin/syslog-ng/files/3.6/syslog-ng.conf.gentoo @@ -0,0 +1,37 @@ +@version: 3.6 +# $Id$ +# +# Syslog-ng default configuration file for Gentoo Linux + +# https://bugs.gentoo.org/show_bug.cgi?id=426814 +@include "scl.conf" + +options { + threaded(yes); + chain_hostnames(no); + + # The default action of syslog-ng is to log a STATS line + # to the file every 10 minutes. That's pretty ugly after a while. + # Change it to every 12 hours so you get a nice daily update of + # how many messages syslog-ng missed (0). + stats_freq(43200); + # The default action of syslog-ng is to log a MARK line + # to the file every 20 minutes. That's seems high for most + # people so turn it down to once an hour. Set it to zero + # if you don't want the functionality at all. + mark_freq(3600); +}; + +source src { system(); internal(); }; + +destination messages { file("/var/log/messages"); }; + +# By default messages are logged to tty12... +destination console_all { file("/dev/tty12"); }; +# ...if you intend to use /dev/console for programs like xconsole +# you can comment out the destination line above that references /dev/tty12 +# and uncomment the line below. +#destination console_all { file("/dev/console"); }; + +log { source(src); destination(messages); }; +log { source(src); destination(console_all); }; diff --git a/app-admin/syslog-ng/files/3.6/syslog-ng.conf.gentoo.fbsd b/app-admin/syslog-ng/files/3.6/syslog-ng.conf.gentoo.fbsd new file mode 100644 index 000000000000..46b1a84ae19d --- /dev/null +++ b/app-admin/syslog-ng/files/3.6/syslog-ng.conf.gentoo.fbsd @@ -0,0 +1,25 @@ +@version: 3.6 +# $Id$ +# +# Syslog-ng default configuration file for Gentoo FreeBSD +# + +# https://bugs.gentoo.org/show_bug.cgi?id=426814 +@include "scl.conf" + +options { + threaded(yes); + chain_hostnames(no); + + # The default action of syslog-ng is to log a STATS line + # to the file every 10 minutes. That's pretty ugly after a while. + # Change it to every 12 hours so you get a nice daily update of + # how many messages syslog-ng missed (0). + stats_freq(43200); +}; + +source src { system(); internal(); }; + +destination messages { file("/var/log/messages"); }; + +log { source(src); destination(messages); }; diff --git a/app-admin/syslog-ng/files/3.6/syslog-ng.conf.gentoo.hardened b/app-admin/syslog-ng/files/3.6/syslog-ng.conf.gentoo.hardened new file mode 100644 index 000000000000..8afb55338fe9 --- /dev/null +++ b/app-admin/syslog-ng/files/3.6/syslog-ng.conf.gentoo.hardened @@ -0,0 +1,115 @@ +@version: 3.6 +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# https://bugs.gentoo.org/show_bug.cgi?id=426814 +@include "scl.conf" + +# +# Syslog-ng configuration file, compatible with default hardened installations. +# + +options { + threaded(yes); + chain_hostnames(no); + stats_freq(43200); +}; + +source src { + unix-dgram("/dev/log"); + internal(); +}; +source kernsrc { + file("/proc/kmsg"); +}; + +#source net { udp(); }; +#log { source(net); destination(net_logs); }; +#destination net_logs { file("/var/log/HOSTS/$HOST/$YEAR$MONTH$DAY.log"); }; + +destination authlog { file("/var/log/auth.log"); }; +destination _syslog { file("/var/log/syslog"); }; +destination cron { file("/var/log/cron.log"); }; +destination daemon { file("/var/log/daemon.log"); }; +destination kern { file("/var/log/kern.log"); file("/dev/tty12"); }; +destination lpr { file("/var/log/lpr.log"); }; +destination user { file("/var/log/user.log"); }; +destination uucp { file("/var/log/uucp.log"); }; +#destination ppp { file("/var/log/ppp.log"); }; +destination mail { file("/var/log/mail.log"); }; + +destination avc { file("/var/log/avc.log"); }; +destination audit { file("/var/log/audit.log"); }; +destination pax { file("/var/log/pax.log"); }; +destination grsec { file("/var/log/grsec.log"); }; + +destination mailinfo { file("/var/log/mail.info"); }; +destination mailwarn { file("/var/log/mail.warn"); }; +destination mailerr { file("/var/log/mail.err"); }; + +destination newscrit { file("/var/log/news/news.crit"); }; +destination newserr { file("/var/log/news/news.err"); }; +destination newsnotice { file("/var/log/news/news.notice"); }; + +destination debug { file("/var/log/debug"); }; +destination messages { file("/var/log/messages"); }; +destination console { usertty("root"); }; +destination console_all { file("/dev/tty12"); }; +#destination loghost { udp("loghost" port(999)); }; + +destination xconsole { pipe("/dev/xconsole"); }; + +filter f_auth { facility(auth); }; +filter f_authpriv { facility(auth, authpriv); }; +filter f_syslog { not facility(authpriv, mail); }; +filter f_cron { facility(cron); }; +filter f_daemon { facility(daemon); }; +filter f_kern { facility(kern); }; +filter f_lpr { facility(lpr); }; +filter f_mail { facility(mail); }; +filter f_user { facility(user); }; +filter f_uucp { facility(uucp); }; +#filter f_ppp { facility(ppp); }; +filter f_news { facility(news); }; +filter f_debug { not facility(auth, authpriv, news, mail); }; +filter f_messages { level(info..warn) + and not facility(auth, authpriv, mail, news); }; +filter f_emergency { level(emerg); }; + +filter f_info { level(info); }; + +filter f_notice { level(notice); }; +filter f_warn { level(warn); }; +filter f_crit { level(crit); }; +filter f_err { level(err); }; + +filter f_avc { message(".*avc: .*"); }; +filter f_audit { message("^(\\[.*\..*\] |)audit.*") and not message(".*avc: .*"); }; +filter f_pax { message("^(\\[.*\..*\] |)PAX:.*"); }; +filter f_grsec { message("^(\\[.*\..*\] |)grsec:.*"); }; + +log { source(src); filter(f_authpriv); destination(authlog); }; +log { source(src); filter(f_syslog); destination(_syslog); }; +log { source(src); filter(f_cron); destination(cron); }; +log { source(src); filter(f_daemon); destination(daemon); }; +log { source(kernsrc); filter(f_kern); destination(kern); }; +log { source(src); filter(f_lpr); destination(lpr); }; +log { source(src); filter(f_mail); destination(mail); }; +log { source(src); filter(f_user); destination(user); }; +log { source(src); filter(f_uucp); destination(uucp); }; +log { source(kernsrc); filter(f_pax); destination(pax); }; +log { source(kernsrc); filter(f_grsec); destination(grsec); }; +log { source(kernsrc); filter(f_audit); destination(audit); }; +log { source(kernsrc); filter(f_avc); destination(avc); }; +log { source(src); filter(f_mail); filter(f_info); destination(mailinfo); }; +log { source(src); filter(f_mail); filter(f_warn); destination(mailwarn); }; +log { source(src); filter(f_mail); filter(f_err); destination(mailerr); }; +log { source(src); filter(f_news); filter(f_crit); destination(newscrit); }; +log { source(src); filter(f_news); filter(f_err); destination(newserr); }; +log { source(src); filter(f_news); filter(f_notice); destination(newsnotice); }; +log { source(src); filter(f_debug); destination(debug); }; +log { source(src); filter(f_messages); destination(messages); }; +log { source(src); filter(f_emergency); destination(console); }; +#log { source(src); filter(f_ppp); destination(ppp); }; +log { source(src); destination(console_all); }; diff --git a/app-admin/syslog-ng/files/3.6/syslog-ng.confd b/app-admin/syslog-ng/files/3.6/syslog-ng.confd new file mode 100644 index 000000000000..42fa26ab4cf4 --- /dev/null +++ b/app-admin/syslog-ng/files/3.6/syslog-ng.confd @@ -0,0 +1,42 @@ +# Config file for /etc/init.d/syslog-ng + +# If you are not using network logging, this entire section should be +# commented out. Otherwise, choose one of the settings below based on +# how you are configuring your network. +# +# If you are using the net.* scripts to configure your network, you should +# set rc_need to match the interface through which your logging server +# can be reached. +#rc_need="net.eth0" +# +# If you are using an interface manager like wicd, dhcpcd in standalone +# mode, networkmanager, etc to control your interfaces, set rc_need to +# the name of that service. +# rc_need="dhcpcd" +#rc_need="networkmanager" +# +# If you are using newnet and configuring your interface statically with +# the network script, you should use this setting. +#rc_need="network" +# +# You can use this setting, but I do not recommend relying on it. +#rc_need="net" +# +# You may also want to uncomment the following if you are using network +# logging. +#rc_use="stunnel" + +# For very customized setups these variables can be adjusted as needed +# but for most situations they should remain commented: +# SYSLOG_NG_CONFIGFILE=/etc/syslog-ng/syslog-ng.conf +# SYSLOG_NG_STATEFILE_DIR=/var/lib/syslog-ng +# SYSLOG_NG_STATEFILE=${SYSLOG_NG_STATEFILE_DIR}/syslog-ng.persist +# SYSLOG_NG_PIDFILE_DIR=/run +# SYSLOG_NG_PIDFILE=${SYSLOG_NG_PIDFILE_DIR}/syslog-ng.pid +# SYSLOG_NG_GROUP=root +# SYSLOG_NG_USER=root + +# Put any additional options for syslog-ng here. +# See syslog-ng(8) for more information. + +SYSLOG_NG_OPTS="" diff --git a/app-admin/syslog-ng/files/3.6/syslog-ng.rc6 b/app-admin/syslog-ng/files/3.6/syslog-ng.rc6 new file mode 100644 index 000000000000..88ca55f63928 --- /dev/null +++ b/app-admin/syslog-ng/files/3.6/syslog-ng.rc6 @@ -0,0 +1,59 @@ +#!/sbin/runscript +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +SYSLOG_NG_CONFIGFILE=${SYSLOG_NG_CONFIGFILE:-/etc/syslog-ng/${RC_SVCNAME}.conf} +SYSLOG_NG_STATEFILE_DIR=${SYSLOG_NG_STATEFILE_DIR:-/var/lib/syslog-ng} +SYSLOG_NG_STATEFILE=${SYSLOG_NG_STATEFILE:-${SYSLOG_NG_STATEFILE_DIR}/syslog-ng.persist} +SYSLOG_NG_PIDFILE_DIR=${SYSLOG_NG_PIDFILE_DIR:-/run} +SYSLOG_NG_PIDFILE=${SYSLOG_NG_PIDFILE:-${SYSLOG_NG_PIDFILE_DIR}/${RC_SVCNAME}.pid} + +SYSLOG_NG_GROUP=${SYSLOG_NG_GROUP:-root} +SYSLOG_NG_USER=${SYSLOG_NG_USER:-root} + +command="/usr/sbin/syslog-ng" +command_args="--persist-file \"${SYSLOG_NG_STATEFILE}\" --cfgfile \"${SYSLOG_NG_CONFIGFILE}\" --pidfile \"${SYSLOG_NG_PIDFILE}\" ${SYSLOG_NG_OPTS}" +extra_commands="checkconfig" +extra_started_commands="reload" +pidfile="${SYSLOG_NG_PIDFILE}" +start_stop_daemon_args="--user \"${SYSLOG_NG_USER}\":\"${SYSLOG_NG_GROUP}\"" +description="Syslog-ng is a syslog replacement with advanced filtering features." +description_checkconfig="Check the configuration file that will be used by \"start\"" +description_reload="Reload the configuration without exiting" +required_files="${SYSLOG_NG_CONFIGFILE}" +required_dirs="${SYSLOG_NG_PIDFILE_DIR}" + +depend() { + use clock + need hostname localmount + after bootmisc + provide logger +} + +checkconfig() { + ebegin "Checking your configfile (${SYSLOG_NG_CONFIGFILE})" + syslog-ng -s -f "${SYSLOG_NG_CONFIGFILE}" + eend $? "Configuration error. Please fix your configfile (${SYSLOG_NG_CONFIGFILE})" +} + +start_pre() { + checkconfig || return 1 + checkpath \ + -d \ + --mode 0700 \ + --owner "${SYSLOG_NG_USER}:${SYSLOG_NG_GROUP}" \ + "${SYSLOG_NG_STATEFILE_DIR}" +} + +stop_pre() { + [ "$RC_CMD" = restart ] && sleep 1 + return 0 +} + +reload() { + checkconfig || return 1 + ebegin "Reloading configuration and re-opening log files" + start-stop-daemon --signal HUP --pidfile "${pidfile}" + eend $? +} diff --git a/app-admin/syslog-ng/files/README.hardened b/app-admin/syslog-ng/files/README.hardened new file mode 100644 index 000000000000..dcb0fc3f3ae2 --- /dev/null +++ b/app-admin/syslog-ng/files/README.hardened @@ -0,0 +1,13 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +If you intend to use syslog-ng together with the systemd journal, +please be sure to configure it to listen accordingly, e.g. replace + + unix-dgram("/dev/log"); + +with + + unix-dgram("/run/systemd/journal/syslog"); + +in /etc/syslog-ng/syslog-ng.conf diff --git a/app-admin/syslog-ng/files/syslog-ng.logrotate b/app-admin/syslog-ng/files/syslog-ng.logrotate new file mode 100644 index 000000000000..60a181bc05cb --- /dev/null +++ b/app-admin/syslog-ng/files/syslog-ng.logrotate @@ -0,0 +1,13 @@ +# $Id$ +# +# Syslog-ng logrotate snippet for Gentoo Linux +# contributed by Michael Sterrett +# + +/var/log/messages { + missingok + sharedscripts + postrotate + /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true + endscript +} diff --git a/app-admin/syslog-ng/files/syslog-ng.logrotate.hardened b/app-admin/syslog-ng/files/syslog-ng.logrotate.hardened new file mode 100644 index 000000000000..2586fa3a4adf --- /dev/null +++ b/app-admin/syslog-ng/files/syslog-ng.logrotate.hardened @@ -0,0 +1,76 @@ +# $Id$ +# +# Syslog-ng logrotate snippet for Hardened Gentoo Linux +# contributed by Maciej Grela +# +# Updated bug #284669 + +# Generic +/var/log/debug /var/log/syslog /var/log/kern.log { + sharedscripts + missingok + postrotate + /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true + endscript +} + +# System services +/var/log/cron.log /var/log/daemon.log /var/log/lpr.log /var/log/uucp.log { + sharedscripts + missingok + postrotate + /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true + endscript +} + +# User log +/var/log/user.log { + sharedscripts + missingok + postrotate + /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true + endscript +} + +# News system +/var/log/news/news.crit /var/log/news/news.err /var/log/news/news.notice { + sharedscripts + missingok + postrotate + /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true + endscript +} + +# Mail system +/var/log/mail.log /var/log/mail.info /var/log/mail.err /var/log/mail.warn { + sharedscripts + missingok + postrotate + /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true + endscript +} + +# Hardened logs +/var/log/avc.log /var/log/audit.log /var/log/pax.log /var/log/grsec.log { + sharedscripts + missingok + postrotate + /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true + endscript +} + +# Authentication +/var/log/auth.log { + sharedscripts + postrotate + /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true + endscript +} + +# the rest +/var/log/messages { + sharedscripts + postrotate + /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true + endscript +} diff --git a/app-admin/syslog-ng/files/syslog-ng.logrotate.hardened.in b/app-admin/syslog-ng/files/syslog-ng.logrotate.hardened.in new file mode 100644 index 000000000000..e27ae40b8283 --- /dev/null +++ b/app-admin/syslog-ng/files/syslog-ng.logrotate.hardened.in @@ -0,0 +1,76 @@ +# $Id$ +# +# Syslog-ng logrotate snippet for Hardened Gentoo Linux +# contributed by Maciej Grela +# +# Updated bug #284669 + +# Generic +/var/log/debug /var/log/syslog /var/log/kern.log { + sharedscripts + missingok + postrotate + @GENTOO_RESTART@ > /dev/null 2>&1 || true + endscript +} + +# System services +/var/log/cron.log /var/log/daemon.log /var/log/lpr.log /var/log/uucp.log { + sharedscripts + missingok + postrotate + @GENTOO_RESTART@ > /dev/null 2>&1 || true + endscript +} + +# User log +/var/log/user.log { + sharedscripts + missingok + postrotate + @GENTOO_RESTART@ > /dev/null 2>&1 || true + endscript +} + +# News system +/var/log/news/news.crit /var/log/news/news.err /var/log/news/news.notice { + sharedscripts + missingok + postrotate + @GENTOO_RESTART@ > /dev/null 2>&1 || true + endscript +} + +# Mail system +/var/log/mail.log /var/log/mail.info /var/log/mail.err /var/log/mail.warn { + sharedscripts + missingok + postrotate + @GENTOO_RESTART@ > /dev/null 2>&1 || true + endscript +} + +# Hardened logs +/var/log/avc.log /var/log/audit.log /var/log/pax.log /var/log/grsec.log { + sharedscripts + missingok + postrotate + @GENTOO_RESTART@ > /dev/null 2>&1 || true + endscript +} + +# Authentication +/var/log/auth.log { + sharedscripts + postrotate + @GENTOO_RESTART@ > /dev/null 2>&1 || true + endscript +} + +# the rest +/var/log/messages { + sharedscripts + postrotate + @GENTOO_RESTART@ > /dev/null 2>&1 || true + endscript +} diff --git a/app-admin/syslog-ng/files/syslog-ng.logrotate.in b/app-admin/syslog-ng/files/syslog-ng.logrotate.in new file mode 100644 index 000000000000..a6a7580f665c --- /dev/null +++ b/app-admin/syslog-ng/files/syslog-ng.logrotate.in @@ -0,0 +1,13 @@ +# $Id$ +# +# Syslog-ng logrotate snippet for Gentoo Linux +# contributed by Michael Sterrett +# + +/var/log/messages { + missingok + sharedscripts + postrotate + @GENTOO_RESTART@ > /dev/null 2>&1 || true + endscript +} diff --git a/app-admin/syslog-ng/metadata.xml b/app-admin/syslog-ng/metadata.xml new file mode 100644 index 000000000000..db015d19593b --- /dev/null +++ b/app-admin/syslog-ng/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> + <email>mr_bones_@gentoo.org</email> + <name>Michael Sterrett</name> +</maintainer> +<use> + <flag name='amqp'>Enable support for AMQP destinations</flag> + <flag name='smtp'>Enable support for SMTP destinations</flag> + <flag name='spoof-source'>Enable support for spoofed source addresses</flag> + <flag name='json'>Enable support for JSON template formatting via <pkg>dev-libs/json-c</pkg></flag> + <flag name='mongodb'>Enable support for mongodb destinations</flag> + <flag name='pacct'>Enable support for reading Process Accounting files (EXPERIMENTAL, Linux only)</flag> + <flag name='redis'>Enable support for Redis destinations</flag> +</use> +</pkgmetadata> diff --git a/app-admin/syslog-ng/syslog-ng-3.4.8.ebuild b/app-admin/syslog-ng/syslog-ng-3.4.8.ebuild new file mode 100644 index 000000000000..b0d2b0964966 --- /dev/null +++ b/app-admin/syslog-ng/syslog-ng-3.4.8.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils multilib systemd + +MY_PV=${PV/_/} +DESCRIPTION="syslog replacement with advanced filtering features" +HOMEPAGE="http://www.balabit.com/network-security/syslog-ng" +SRC_URI="http://www.balabit.com/downloads/files/syslog-ng/sources/${MY_PV}/source/syslog-ng_${MY_PV}.tar.gz" + +LICENSE="GPL-2+ LGPL-2.1+" +SLOT="0" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~x86-fbsd" +IUSE="amqp caps dbi geoip ipv6 json mongodb pacct +pcre smtp spoof-source ssl systemd tcpd" +RESTRICT="test" + +RDEPEND=" + pcre? ( dev-libs/libpcre ) + spoof-source? ( net-libs/libnet:1.1 ) + ssl? ( dev-libs/openssl:= ) + smtp? ( net-libs/libesmtp ) + tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) + >=dev-libs/eventlog-0.2.12 + >=dev-libs/glib-2.10.1:2 + json? ( >=dev-libs/json-c-0.9 ) + caps? ( sys-libs/libcap ) + geoip? ( >=dev-libs/geoip-1.5.0 ) + dbi? ( >=dev-db/libdbi-0.8.3 ) + systemd? ( sys-apps/systemd )" +DEPEND="${RDEPEND} + virtual/pkgconfig + sys-devel/flex" + +S=${WORKDIR}/${PN}-${MY_PV} + +src_prepare() { + cp "${FILESDIR}"/*logrotate*.in "${TMPDIR}" || die + cd "${TMPDIR}" || die + + for f in *logrotate*.in ; do + if use systemd ; then + sed \ + 's/@GENTOO_RESTART@/systemctl kill -s HUP syslog-ng/' \ + $f > ${f/.in/} || die + else + sed \ + 's:@GENTOO_RESTART@:/etc/init.d/syslog-ng reload:' \ + $f > ${f/.in/} || die + fi + done +} + +src_configure() { + econf \ + --disable-docs \ + --with-ivykis=internal \ + --with-libmongo-client=internal \ + --sysconfdir=/etc/syslog-ng \ + --localstatedir=/var/lib/syslog-ng \ + --with-pidfile-dir=/var/run \ + --with-module-dir=/usr/$(get_libdir)/syslog-ng \ + $(systemd_with_unitdir) \ + $(use_enable systemd) \ + $(use_enable caps linux-caps) \ + $(use_enable geoip) \ + $(use_enable ipv6) \ + $(use_enable json) \ + $(use_enable mongodb) \ + $(use_enable pacct) \ + $(use_enable pcre) \ + $(use_enable smtp) \ + $(use_enable amqp) \ + $(usex amqp --with-librabbitmq-client=internal --without-librabbitmq-client) \ + $(use_enable spoof-source) \ + $(use_enable dbi sql) \ + $(use_enable ssl) \ + $(use_enable tcpd tcp-wrapper) +} + +src_install() { + # -j1 for bug #484470 + emake -j1 DESTDIR="${D}" install + + dodoc AUTHORS NEWS contrib/syslog-ng.conf* contrib/syslog2ng \ + "${FILESDIR}/${PV%.*}/syslog-ng.conf.gentoo.hardened" \ + "${TMPDIR}/syslog-ng.logrotate.hardened" \ + "${FILESDIR}/README.hardened" + + # Install default configuration + insinto /etc/syslog-ng + if use userland_BSD ; then + newins "${FILESDIR}/${PV%.*}/syslog-ng.conf.gentoo.fbsd" syslog-ng.conf + else + newins "${FILESDIR}/${PV%.*}/syslog-ng.conf.gentoo" syslog-ng.conf + fi + + insinto /etc/logrotate.d + newins "${TMPDIR}/syslog-ng.logrotate" syslog-ng + + newinitd "${FILESDIR}/${PV%.*}/syslog-ng.rc6" syslog-ng + newconfd "${FILESDIR}/${PV%.*}/syslog-ng.confd" syslog-ng + keepdir /etc/syslog-ng/patterndb.d /var/lib/syslog-ng + prune_libtool_files --modules +} + +pkg_postinst() { + elog "For detailed documentation please see the upstream website:" + elog "http://www.balabit.com/sites/default/files/documents/syslog-ng-ose-3.4-guides/en/syslog-ng-ose-v3.4-guide-admin/html/index.html" + + # bug #355257 + if ! has_version app-admin/logrotate ; then + echo + elog "It is highly recommended that app-admin/logrotate be emerged to" + elog "manage the log files. ${PN} installs a file in /etc/logrotate.d" + elog "for logrotate to use." + echo + fi +} diff --git a/app-admin/syslog-ng/syslog-ng-3.6.2.ebuild b/app-admin/syslog-ng/syslog-ng-3.6.2.ebuild new file mode 100644 index 000000000000..e8e6ec8a475d --- /dev/null +++ b/app-admin/syslog-ng/syslog-ng-3.6.2.ebuild @@ -0,0 +1,124 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils multilib systemd versionator + +MY_PV=${PV/_/} +MY_PV_MM=$(get_version_component_range 1-2) +DESCRIPTION="syslog replacement with advanced filtering features" +HOMEPAGE="http://www.balabit.com/network-security/syslog-ng" +SRC_URI="http://www.balabit.com/downloads/files/syslog-ng/sources/${MY_PV}/source/syslog-ng_${MY_PV}.tar.gz" + +LICENSE="GPL-2+ LGPL-2.1+" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd" +IUSE="amqp caps dbi geoip ipv6 json mongodb pacct redis smtp spoof-source ssl systemd tcpd" +RESTRICT="test" + +RDEPEND=" + caps? ( sys-libs/libcap ) + dbi? ( >=dev-db/libdbi-0.8.3 ) + geoip? ( >=dev-libs/geoip-1.5.0 ) + json? ( >=dev-libs/json-c-0.9 ) + redis? ( dev-libs/hiredis ) + smtp? ( net-libs/libesmtp ) + spoof-source? ( net-libs/libnet:1.1 ) + ssl? ( dev-libs/openssl:= ) + systemd? ( sys-apps/systemd ) + tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) + dev-libs/libpcre + >=dev-libs/eventlog-0.2.12 + >=dev-libs/glib-2.10.1:2" +DEPEND="${RDEPEND} + virtual/pkgconfig + sys-devel/flex" + +S=${WORKDIR}/${PN}-${MY_PV} + +src_prepare() { + epatch "${FILESDIR}"/${MY_PV_MM}/${P}-redis.patch + epatch_user + cp "${FILESDIR}"/*logrotate*.in "${TMPDIR}" || die + cd "${TMPDIR}" || die + + for f in *logrotate*.in ; do + if use systemd ; then + sed \ + 's/@GENTOO_RESTART@/systemctl kill -s HUP syslog-ng/' \ + $f > ${f/.in/} || die + else + sed \ + 's:@GENTOO_RESTART@:/etc/init.d/syslog-ng reload:' \ + $f > ${f/.in/} || die + fi + done +} + +src_configure() { + econf \ + --disable-docs \ + --with-embedded-crypto \ + --with-ivykis=internal \ + --with-libmongo-client=internal \ + --sysconfdir=/etc/syslog-ng \ + --localstatedir=/var/lib/syslog-ng \ + --with-pidfile-dir=/var/run \ + --with-module-dir=/usr/$(get_libdir)/syslog-ng \ + $(systemd_with_unitdir) \ + $(use_enable systemd) \ + $(use_enable caps linux-caps) \ + $(use_enable geoip) \ + $(use_enable ipv6) \ + $(use_enable json) \ + $(use_enable mongodb) \ + $(use_enable pacct) \ + $(use_enable redis) \ + $(use_enable smtp) \ + $(use_enable amqp) \ + $(usex amqp --with-librabbitmq-client=internal --without-librabbitmq-client) \ + $(use_enable spoof-source) \ + $(use_enable dbi sql) \ + $(use_enable ssl) \ + $(use_enable tcpd tcp-wrapper) +} + +src_install() { + # -j1 for bug #484470 + emake -j1 DESTDIR="${D}" install + + dodoc AUTHORS NEWS.md CONTRIBUTING.md contrib/syslog-ng.conf* \ + contrib/syslog2ng "${FILESDIR}/${MY_PV_MM}/syslog-ng.conf.gentoo.hardened" \ + "${TMPDIR}/syslog-ng.logrotate.hardened" "${FILESDIR}/README.hardened" + + # Install default configuration + insinto /etc/syslog-ng + if use userland_BSD ; then + newins "${FILESDIR}/${MY_PV_MM}/syslog-ng.conf.gentoo.fbsd" syslog-ng.conf + else + newins "${FILESDIR}/${MY_PV_MM}/syslog-ng.conf.gentoo" syslog-ng.conf + fi + + insinto /etc/logrotate.d + newins "${TMPDIR}/syslog-ng.logrotate" syslog-ng + + newinitd "${FILESDIR}/${MY_PV_MM}/syslog-ng.rc6" syslog-ng + newconfd "${FILESDIR}/${MY_PV_MM}/syslog-ng.confd" syslog-ng + keepdir /etc/syslog-ng/patterndb.d /var/lib/syslog-ng + prune_libtool_files --modules +} + +pkg_postinst() { + elog "For detailed documentation please see the upstream website:" + elog "http://www.balabit.com/sites/default/files/documents/syslog-ng-ose-3.6-guides/en/syslog-ng-ose-v3.6-guide-admin/html/index.html" + + # bug #355257 + if ! has_version app-admin/logrotate ; then + echo + elog "It is highly recommended that app-admin/logrotate be emerged to" + elog "manage the log files. ${PN} installs a file in /etc/logrotate.d" + elog "for logrotate to use." + echo + fi +} diff --git a/app-admin/syslog-ng/syslog-ng-3.6.4.ebuild b/app-admin/syslog-ng/syslog-ng-3.6.4.ebuild new file mode 100644 index 000000000000..486044e53ee3 --- /dev/null +++ b/app-admin/syslog-ng/syslog-ng-3.6.4.ebuild @@ -0,0 +1,124 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils multilib systemd versionator + +MY_PV=${PV/_/} +MY_PV_MM=$(get_version_component_range 1-2) +DESCRIPTION="syslog replacement with advanced filtering features" +HOMEPAGE="http://www.balabit.com/network-security/syslog-ng" +SRC_URI="http://www.balabit.com/downloads/files/syslog-ng/sources/${MY_PV}/source/syslog-ng_${MY_PV}.tar.gz" + +LICENSE="GPL-2+ LGPL-2.1+" +SLOT="0" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~x86-fbsd" +IUSE="amqp caps dbi geoip ipv6 json mongodb pacct redis smtp spoof-source ssl systemd tcpd" +RESTRICT="test" + +RDEPEND=" + caps? ( sys-libs/libcap ) + dbi? ( >=dev-db/libdbi-0.8.3 ) + geoip? ( >=dev-libs/geoip-1.5.0 ) + json? ( >=dev-libs/json-c-0.9 ) + redis? ( dev-libs/hiredis ) + smtp? ( net-libs/libesmtp ) + spoof-source? ( net-libs/libnet:1.1 ) + ssl? ( dev-libs/openssl:= ) + systemd? ( sys-apps/systemd ) + tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) + dev-libs/libpcre + >=dev-libs/eventlog-0.2.12 + >=dev-libs/glib-2.10.1:2" +DEPEND="${RDEPEND} + virtual/pkgconfig + sys-devel/flex" + +S=${WORKDIR}/${PN}-${MY_PV} + +src_prepare() { + epatch_user + cp "${FILESDIR}"/*logrotate*.in "${TMPDIR}" || die + cd "${TMPDIR}" || die + + for f in *logrotate*.in ; do + if use systemd ; then + sed \ + 's/@GENTOO_RESTART@/systemctl kill -s HUP syslog-ng/' \ + $f > ${f/.in/} || die + else + sed \ + 's:@GENTOO_RESTART@:/etc/init.d/syslog-ng reload:' \ + $f > ${f/.in/} || die + fi + done +} + +src_configure() { + econf \ + --disable-docs \ + --enable-manpages \ + --with-embedded-crypto \ + --with-ivykis=internal \ + --with-libmongo-client=internal \ + --sysconfdir=/etc/syslog-ng \ + --localstatedir=/var/lib/syslog-ng \ + --with-pidfile-dir=/var/run \ + --with-module-dir=/usr/$(get_libdir)/syslog-ng \ + $(systemd_with_unitdir) \ + $(use_enable systemd) \ + $(use_enable caps linux-caps) \ + $(use_enable geoip) \ + $(use_enable ipv6) \ + $(use_enable json) \ + $(use_enable mongodb) \ + $(use_enable pacct) \ + $(use_enable redis) \ + $(use_enable smtp) \ + $(use_enable amqp) \ + $(usex amqp --with-librabbitmq-client=internal --without-librabbitmq-client) \ + $(use_enable spoof-source) \ + $(use_enable dbi sql) \ + $(use_enable ssl) \ + $(use_enable tcpd tcp-wrapper) +} + +src_install() { + # -j1 for bug #484470 + emake -j1 DESTDIR="${D}" install + + dodoc AUTHORS NEWS.md CONTRIBUTING.md contrib/syslog-ng.conf* \ + contrib/syslog2ng "${FILESDIR}/${MY_PV_MM}/syslog-ng.conf.gentoo.hardened" \ + "${TMPDIR}/syslog-ng.logrotate.hardened" "${FILESDIR}/README.hardened" + + # Install default configuration + insinto /etc/syslog-ng + if use userland_BSD ; then + newins "${FILESDIR}/${MY_PV_MM}/syslog-ng.conf.gentoo.fbsd" syslog-ng.conf + else + newins "${FILESDIR}/${MY_PV_MM}/syslog-ng.conf.gentoo" syslog-ng.conf + fi + + insinto /etc/logrotate.d + newins "${TMPDIR}/syslog-ng.logrotate" syslog-ng + + newinitd "${FILESDIR}/${MY_PV_MM}/syslog-ng.rc6" syslog-ng + newconfd "${FILESDIR}/${MY_PV_MM}/syslog-ng.confd" syslog-ng + keepdir /etc/syslog-ng/patterndb.d /var/lib/syslog-ng + prune_libtool_files --modules +} + +pkg_postinst() { + elog "For detailed documentation please see the upstream website:" + elog "http://www.balabit.com/sites/default/files/documents/syslog-ng-ose-3.6-guides/en/syslog-ng-ose-v3.6-guide-admin/html/index.html" + + # bug #355257 + if ! has_version app-admin/logrotate ; then + echo + elog "It is highly recommended that app-admin/logrotate be emerged to" + elog "manage the log files. ${PN} installs a file in /etc/logrotate.d" + elog "for logrotate to use." + echo + fi +} diff --git a/app-admin/syslog-summary/Manifest b/app-admin/syslog-summary/Manifest new file mode 100644 index 000000000000..a5e2cac81719 --- /dev/null +++ b/app-admin/syslog-summary/Manifest @@ -0,0 +1 @@ +DIST syslog-summary-1.14.tar.gz 7278 SHA256 d912e9b7db3e3a33a4a95662c97ccf73ac5ead4d2f1779ef9184c53bede8518b SHA512 db1f0660ad435eea26fc3ec4cd475f5f1b98bb629495707741077e52aef88fe8bff4a318bb5b0821e57ccfa0646454c6825a5a4fc1fb4b73ea67cbd4defef277 WHIRLPOOL 68d78468ff2ea97fc0248546056c5448565fbcb3278057813a511c84d5b6913aede5f4e44ae85eb776a49cd1e24c0157c283bace741e173c8b93253578fe5496 diff --git a/app-admin/syslog-summary/metadata.xml b/app-admin/syslog-summary/metadata.xml new file mode 100644 index 000000000000..58a5df070bf2 --- /dev/null +++ b/app-admin/syslog-summary/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> + <email>phajdan.jr@gentoo.org</email> + <name>Pawel Hajdan jr</name> + </maintainer> + <upstream> + <remote-id type="github">dpaleino/syslog-summary</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/syslog-summary/syslog-summary-1.14-r1.ebuild b/app-admin/syslog-summary/syslog-summary-1.14-r1.ebuild new file mode 100644 index 000000000000..32d51de9d20b --- /dev/null +++ b/app-admin/syslog-summary/syslog-summary-1.14-r1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils python-single-r1 + +DESCRIPTION="Summarizes the contents of a syslog log file" +HOMEPAGE="http://github.com/dpaleino/syslog-summary" +SRC_URI="mirror://github/dpaleino/${PN}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 ~sparc x86" +IUSE="" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND="" +RDEPEND="${PYTHON_DEPS}" + +src_prepare() { + python_fix_shebang -f syslog-summary + + # Sadly, the makefile is useless for us. + rm Makefile || die +} + +src_install() { + dobin syslog-summary + dodoc AUTHORS ChangeLog NEWS README + doman syslog-summary.1 + + insinto /etc/syslog-summary + doins ignore.rules +} diff --git a/app-admin/syslogread/Manifest b/app-admin/syslogread/Manifest new file mode 100644 index 000000000000..f42a78398e73 --- /dev/null +++ b/app-admin/syslogread/Manifest @@ -0,0 +1 @@ +DIST syslogread-0.92.tar.gz 21807 SHA256 eae464db3d9cc9826f65c8bd7ccbfe95795c39fda2876d4db2a4ee8d578bcd03 SHA512 8e00d169955e2c659233df1746f0e50f33f50cf9eb7d4b6d2926eadd6e6a7183b7beec485b7422befc399cc48da83462a709304715083d2c5ec8359b6f3728c0 WHIRLPOOL d94f949bd193ded38df687e12438412e117afd6ab5a29c2edd86d213a0c1691ae19f5c942aa711336b99c65ca94d17189f50b40514137afb1bf856419794d4f9 diff --git a/app-admin/syslogread/files/0.92/klogd.run b/app-admin/syslogread/files/0.92/klogd.run new file mode 100644 index 000000000000..b6d0fb27795e --- /dev/null +++ b/app-admin/syslogread/files/0.92/klogd.run @@ -0,0 +1,4 @@ +#!/bin/sh +exec 2>&1 +exec < /proc/kmsg +exec /usr/bin/multilog t n64 /var/log/klogd diff --git a/app-admin/syslogread/files/0.92/syslogread-log.run b/app-admin/syslogread/files/0.92/syslogread-log.run new file mode 100644 index 000000000000..f53cd0199571 --- /dev/null +++ b/app-admin/syslogread/files/0.92/syslogread-log.run @@ -0,0 +1,3 @@ +#!/bin/sh +#exec setuidgid syslog syslogxlate '*.*' | multilog t /var/log/syslog +exec setuidgid syslog multilog t /var/log/syslog diff --git a/app-admin/syslogread/files/0.92/syslogread.run b/app-admin/syslogread/files/0.92/syslogread.run new file mode 100644 index 000000000000..fdcb018c3066 --- /dev/null +++ b/app-admin/syslogread/files/0.92/syslogread.run @@ -0,0 +1,2 @@ +#!/bin/sh +exec envuidgid syslog sysloglread -U /dev/log diff --git a/app-admin/syslogread/files/syslogread-0.92-fix-parallel-build.patch b/app-admin/syslogread/files/syslogread-0.92-fix-parallel-build.patch new file mode 100644 index 000000000000..98e810fc70a9 --- /dev/null +++ b/app-admin/syslogread/files/syslogread-0.92-fix-parallel-build.patch @@ -0,0 +1,19 @@ +--- Makefile.orig 2010-01-14 13:47:59.000000000 +0100 ++++ Makefile 2010-01-14 13:49:00.000000000 +0100 +@@ -45,14 +45,14 @@ + ./load insthier -lbg-installer + mv insthier installer + +-instcheck: load insthier.o ++instcheck: load insthier.o installer instshow + ./load insthier -lbg-instcheck + mv insthier instcheck + + insthier.o: compile insthier.c conf_bin.c conf_man.c + ./compile insthier.c + +-instshow: load insthier.o ++instshow: load insthier.o installer + ./load insthier -lbg-instshow + mv insthier instshow + diff --git a/app-admin/syslogread/metadata.xml b/app-admin/syslogread/metadata.xml new file mode 100644 index 000000000000..bbae4d96569c --- /dev/null +++ b/app-admin/syslogread/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> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <longdescription lang="en"> + This package is a set of tools that are useful in receiving, analyzing, + or producing syslog messages. + </longdescription> +</pkgmetadata> diff --git a/app-admin/syslogread/syslogread-0.92-r1.ebuild b/app-admin/syslogread/syslogread-0.92-r1.ebuild new file mode 100644 index 000000000000..6c40e596a571 --- /dev/null +++ b/app-admin/syslogread/syslogread-0.92-r1.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils toolchain-funcs multilib user + +DESCRIPTION="Syslog message handling tools" +HOMEPAGE="http://untroubled.org/syslogread/" +SRC_URI="http://untroubled.org/syslogread/archive/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="" + +DEPEND=">=dev-libs/bglibs-1.106" +RDEPEND="virtual/daemontools" + +pkg_setup() { + enewgroup syslog + enewuser syslog -1 -1 /nonexistent syslog +} + +src_prepare() { + epatch "${FILESDIR}"/syslogread-0.92-fix-parallel-build.patch +} + +src_configure() { + echo "/usr/include/bglibs/" > conf-bgincs + echo "/usr/$(get_libdir)/bglibs/" > conf-bglibs + echo "${D}/usr/bin" > conf-bin + echo "${D}/usr/share/man" > conf-man + echo "$(tc-getCC) ${CFLAGS}" > conf-cc + echo "$(tc-getCC) ${LDFLAGS}" > conf-ld +} + +src_install() { + dodir /usr/bin + dodir /usr/share/man + ./installer || die + + dodoc ANNOUNCEMENT ChangeLog README + + insinto /var/lib/supervise/klogd + newins "${FILESDIR}/${PV}/klogd.run" klogd.run + + insinto /var/lib/supervise/syslogd + newins "${FILESDIR}/${PV}/syslogread.run" syslogread.run + + insinto /var/lib/supervise/syslogd/log + newins "${FILESDIR}/${PV}/syslogread-log.run" syslogread-log.run + + # See ChangeLog for why these are commented out: + + #newinitd "${FILESDIR}/${PV}/syslogread.init" syslogread + + #keepdir /var/log/klogd + #keepdir /var/log/syslog + + #fowners syslog:syslog /var/log/syslog + #fperms o-rwx /var/log/syslog +} + +pkg_postinst() { + echo + elog "Run " + elog "emerge --config =${PF}" + elog "to create or update your run files (backups are created) in" + elog " /var/lib/supervise/klogd (kernel logger)" + elog " /var/lib/supervise/syslog (system logger)" + echo +} + +pkg_config() { + cd "${ROOT}"var/lib/supervise/klogd + [ -e run ] && cp run klogd.run.`date +%Y%m%d%H%M%S` + cp klogd.run run + chmod u+x run + + cd "${ROOT}"var/lib/supervise/syslogd + [ -e run ] && cp run syslogread.run.`date +%Y%m%d%H%M%S` + cp syslogread.run run + chmod u+x run + + cd "${ROOT}"var/lib/supervise/syslogd/log + [ -e run ] && cp run syslogread-log.run.`date +%Y%m%d%H%M%S` + cp syslogread-log.run run + chmod u+x run +} diff --git a/app-admin/sysrqd/Manifest b/app-admin/sysrqd/Manifest new file mode 100644 index 000000000000..a4912b54877d --- /dev/null +++ b/app-admin/sysrqd/Manifest @@ -0,0 +1 @@ +DIST sysrqd-14.tar.gz 4759 SHA256 aa938dc663b73fb28d165c8145f51b6c2412ccb202e641548452c9583d593428 diff --git a/app-admin/sysrqd/files/sysrqd-config.patch b/app-admin/sysrqd/files/sysrqd-config.patch new file mode 100644 index 000000000000..ce463814d1e3 --- /dev/null +++ b/app-admin/sysrqd/files/sysrqd-config.patch @@ -0,0 +1,13 @@ +--- sysrqd.c.orig 2009-11-05 14:58:21.644471772 +0100 ++++ sysrqd.c 2009-11-05 14:58:43.276472005 +0100 +@@ -40,8 +40,8 @@ + #define BIND_MAX_LEN 16 + #define PROMPT "sysrq> " + #define SYSRQ_TRIGGER_PATH "/proc/sysrq-trigger" +-#define AUTH_FILE "/etc/sysrqd.secret" +-#define BINDIP_FILE "/etc/sysrqd.bind" ++#define AUTH_FILE "/etc/sysrqd/sysrqd.secret" ++#define BINDIP_FILE "/etc/sysrqd/sysrqd.bind" + #define PID_FILE "/var/run/sysrqd.pid" + #define SYSRQD_PRIO -19 + #define SYSRQD_LISTEN_PORT 4094 diff --git a/app-admin/sysrqd/files/sysrqd.init b/app-admin/sysrqd/files/sysrqd.init new file mode 100755 index 000000000000..de4885420f88 --- /dev/null +++ b/app-admin/sysrqd/files/sysrqd.init @@ -0,0 +1,32 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + need net +} + +checkconfig() { + sysrqd_secret=/etc/sysrqd/sysrqd.secret + sysrqd_pidfile=/var/run/sysrqd.pid + if [ ! -e ${sysrqd_secret} ]; then + eerror "You need a '${sysrqd_secret}' containing a secret/password!" + eerror "Refusing to start." + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting ${SVCNAME}" + start-stop-daemon --start --pidfile ${sysrqd_pidfile} --quiet --exec /usr/sbin/sysrqd + eend $? +} + +stop() { + checkconfig || return 1 + ebegin "Stopping ${SVCNAME}" + start-stop-daemon --stop --quiet --pidfile ${sysrqd_pidfile} + eend $? +} diff --git a/app-admin/sysrqd/metadata.xml b/app-admin/sysrqd/metadata.xml new file mode 100644 index 000000000000..a1ade138906b --- /dev/null +++ b/app-admin/sysrqd/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> + <email>wschlich@gentoo.org</email> + <name>Wolfram Schlich</name> + <description>Primary maintainer</description> +</maintainer> +<longdescription> +sysrqd is a small daemon intended to manage Linux Sysrq over network. +Its philosophy is to be very responsive under heavy load and try to +be somehow reliable. Authentication is made by clear password. +</longdescription> +</pkgmetadata> diff --git a/app-admin/sysrqd/sysrqd-14.ebuild b/app-admin/sysrqd/sysrqd-14.ebuild new file mode 100644 index 000000000000..60e050b9349a --- /dev/null +++ b/app-admin/sysrqd/sysrqd-14.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils toolchain-funcs + +IUSE="" +DESCRIPTION="daemon providing access to the kernel sysrq functions via network" +HOMEPAGE="http://julien.danjou.info/projects/sysrqd" +#SRC_URI="http://julien.danjou.info/${PN}/${P}.tar.gz" +SRC_URI="http://dev.gentoo.org/~wschlich/src/${CATEGORY}/${PN}/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +DEPEND="" +RDEPEND="${DEPEND}" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${PN}-config.patch" +} + +src_compile() { + $(tc-getCC) ${CFLAGS} ${LDFLAGS} -o sysrqd sysrqd.c +} + +src_install() { + dosbin sysrqd + newinitd "${FILESDIR}/sysrqd.init" sysrqd + + local bindip='127.0.0.1' secret + declare -i secret + let secret=${RANDOM}*${RANDOM}*${RANDOM}*${RANDOM} + echo ${bindip} > sysrqd.bind + echo ${secret} > sysrqd.secret + + diropts -m 0700 -o root -g root + dodir /etc/sysrqd + insinto /etc/sysrqd + insopts -m 0600 -o root -g root + doins sysrqd.bind + doins sysrqd.secret + + dodoc README ChangeLog +} + +pkg_postinst() { + elog + elog "Be sure to change the initial secret in /etc/sysrqd/sysrqd.secret !" + elog "As a security precaution, sysrqd is configured to only listen on" + elog "127.0.0.1 by default. Change the content of /etc/sysrqd/sysrqd.bind" + elog "to an IPv4 address you want it to listen on or remove the file" + elog "to make it listen on any IP address (0.0.0.0)." + elog +} diff --git a/app-admin/sysstat/Manifest b/app-admin/sysstat/Manifest new file mode 100644 index 000000000000..427570f29f78 --- /dev/null +++ b/app-admin/sysstat/Manifest @@ -0,0 +1,3 @@ +DIST sysstat-11.0.2.tar.xz 291256 SHA256 acd87fdfbe7c796480f14fc26119d8f785d26827d74a0f5bced6c492a91f1b96 SHA512 4bb5f2ee14346d83c59bd4da36ae8fc6c13197eabb808b1b5db84b593f07d8b366b1f6329abed8d43e2a8497a89de0f89a398b741d4ca23b4a3a95973b5f0f54 WHIRLPOOL 98daee288e22f803f19bbe423eb999f527e8997f2ffd3fe1fe784363260365ee833dd33b755f44d6bfcc685f70b47cb8fd70fdd9a3fa679829c1e608bd65f8e2 +DIST sysstat-11.0.5.tar.xz 294020 SHA256 6b165d1664d192a897d0b53ae6db9b279048ed377ed23765d0d4a1b4d21386d6 SHA512 cac99950ffdf04eac18f4d0e9ac14ceac2d57938231dbdbfd1f980b7c656bee8991d96d560595034da874955dc06b207d8041f0a6414b8fd51ee79d859f0ed73 WHIRLPOOL 4debcc810c87663794292cf6c7ba89aa7ee1139019c7e81c69b5f6bd2ae0c195a848e0c87c4baf3182fdfefc40003aac607a022e689b765c3ea7b5d1731015bd +DIST sysstat-11.1.5.tar.xz 312436 SHA256 feb3a90d86ffd69cf5b88144a8876ae05bd42384f559676f08100671589fa2bb SHA512 07d4570628cd565f2a7d8f6f3631d9581e5f0c6866af2d1ba56ac2f2484541701e12b6c736631611f2588ba81638ad0a9860d6c4f5edc43296dc7200fac87cca WHIRLPOOL bf3da3b2722267d5980a8ddede370542f149e47eaf70dcbd82f7f300b8e6428e566efdc6f76d9474af9404d885780818a9270d76c725b06a713e0930182a8d33 diff --git a/app-admin/sysstat/files/sysstat-10.0.4-flags.patch b/app-admin/sysstat/files/sysstat-10.0.4-flags.patch new file mode 100644 index 000000000000..402e7d604b1a --- /dev/null +++ b/app-admin/sysstat/files/sysstat-10.0.4-flags.patch @@ -0,0 +1,31 @@ +--- a/Makefile.in ++++ b/Makefile.in +@@ -69,9 +69,8 @@ + SYSCONFIG_DIR = @SYSCONFIG_DIR@ + + # Compiler flags +-CFLAGS = @CFLAGS@ -Wall -Wstrict-prototypes -pipe -O2 ++CFLAGS = @CFLAGS@ -Wall -Wstrict-prototypes + DFLAGS = @DFLAGS@ +-LFLAGS = @STRIP@ + DFLAGS += -DSA_DIR=\"$(SA_DIR)\" -DSADC_PATH=\"$(SADC_PATH)\" + DFLAGS += $(DFSENSORS) + +@@ -154,7 +153,7 @@ + $(CC) -o $@ -c $(CFLAGS) $(DFLAGS) $< + + % : %.o +- $(CC) -o $@ $(CFLAGS) $^ $(LFLAGS) ++ $(CC) -o $@ $(CFLAGS) $(LFLAGS) $^ $(LIBS) + + all: sadc sar sadf iostat mpstat pidstat nfsiostat cifsiostat locales + +@@ -196,7 +195,7 @@ + + sadc.o: sadc.c sa.h version.h common.h ioconf.h sysconfig.h rd_stats.h rd_sensors.h + +-sadc: LFLAGS += $(LFSENSORS) ++sadc: LIBS = $(LFSENSORS) + sadc: sadc.o act_sadc.o sa_wrap.o sa_common.o librdstats.a librdsensors.a libsyscom.a + + sar.o: sar.c sa.h version.h common.h ioconf.h pr_stats.h sysconfig.h diff --git a/app-admin/sysstat/files/sysstat-11.0.4-cron.patch b/app-admin/sysstat/files/sysstat-11.0.4-cron.patch new file mode 100644 index 000000000000..9d047ac6e9fe --- /dev/null +++ b/app-admin/sysstat/files/sysstat-11.0.4-cron.patch @@ -0,0 +1,38 @@ +--- a/Makefile.in ++++ b/Makefile.in +@@ -368,25 +368,19 @@ + $(CHOWN) $(CRON_OWNER) $(DESTDIR)$(SA_DIR) + ifdef SYSTEMD_UNIT_DIR + mkdir -p $(DESTDIR)$(SYSTEMD_UNIT_DIR) +-else +- if [ -d /etc/cron.d ]; then \ +- mkdir -p $(DESTDIR)/etc/cron.d; \ +- elif [ -d /etc/cron.hourly -a -d /etc/cron.daily ]; then \ +- mkdir -p $(DESTDIR)/etc/cron.hourly $(DESTDIR)/etc/cron.daily; \ +- fi +- if [ -d $(INIT_DIR) ]; then \ +- mkdir -p $(DESTDIR)$(INIT_DIR); \ +- elif [ -d $(RC_DIR) ]; then \ ++endif ++ifeq ($(INSTALL_CRON),y) ++ mkdir -p $(DESTDIR)/etc/cron.d; \ ++ mkdir -p $(DESTDIR)$(INIT_DIR); \ ++ if [ -d $(RC_DIR) ]; then \ + mkdir -p $(DESTDIR)$(RC_DIR); \ + fi + endif +- if [ -z "$(SYSTEMD_UNIT_DIR)" -o ! -d "$(DESTDIR)$(SYSTEMD_UNIT_DIR)" ]; then \ +- if [ -d $(DESTDIR)/etc/cron.d ]; then \ +- $(INSTALL_DATA) cron/sysstat.crond $(DESTDIR)/etc/cron.d/sysstat; \ +- elif [ -d $(DESTDIR)/etc/cron.hourly -a -d $(DESTDIR)/etc/cron.daily ]; then \ +- $(INSTALL_BIN) cron/sysstat.cron.hourly $(DESTDIR)/etc/cron.hourly/sysstat; \ +- $(INSTALL_BIN) cron/sysstat.cron.daily $(DESTDIR)/etc/cron.daily/sysstat; \ +- fi \ ++ if [ -d $(DESTDIR)/etc/cron.d ]; then \ ++ $(INSTALL_DATA) cron/sysstat.crond $(DESTDIR)/etc/cron.d/sysstat; \ ++ elif [ -d $(DESTDIR)/etc/cron.hourly -a -d $(DESTDIR)/etc/cron.daily ]; then \ ++ $(INSTALL_BIN) cron/sysstat.cron.hourly $(DESTDIR)/etc/cron.hourly/sysstat; \ ++ $(INSTALL_BIN) cron/sysstat.cron.daily $(DESTDIR)/etc/cron.daily/sysstat; \ + fi + ifeq ($(COPY_ONLY),n) + if [ \( -z "$(SYSTEMD_UNIT_DIR)" -o ! -d "$(DESTDIR)$(SYSTEMD_UNIT_DIR)" \) -a ! -d $(DESTDIR)/etc/cron.d ]; then \ diff --git a/app-admin/sysstat/files/sysstat.init.d b/app-admin/sysstat/files/sysstat.init.d new file mode 100644 index 000000000000..fe737b695fe3 --- /dev/null +++ b/app-admin/sysstat/files/sysstat.init.d @@ -0,0 +1,19 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + use hostname +} + +start() { + ebegin "Writing a dummy startup record using sadc (see sadc(8))..." + /usr/lib/sa/sa1 --boot + eend $? +} + +stop() { + ebegin "Cannot stop writing a dummy startup record (see sadc(8))..." + eend $? +} diff --git a/app-admin/sysstat/metadata.xml b/app-admin/sysstat/metadata.xml new file mode 100644 index 000000000000..d77914bccb34 --- /dev/null +++ b/app-admin/sysstat/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> + <email>jer@gentoo.org</email> + <name>Jeroen Roovers</name> + </maintainer> + <use> + <flag name="cron">Install /etc/cron.d script to periodically run sar</flag> + <flag name="isag">Install isag, the Interactive System Activity Graph tool</flag> + </use> +</pkgmetadata> diff --git a/app-admin/sysstat/sysstat-11.0.2.ebuild b/app-admin/sysstat/sysstat-11.0.2.ebuild new file mode 100644 index 000000000000..3a645bd78f34 --- /dev/null +++ b/app-admin/sysstat/sysstat-11.0.2.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils multilib systemd toolchain-funcs + +DESCRIPTION="System performance tools for Linux" +HOMEPAGE="http://pagesperso-orange.fr/sebastien.godard/" +SRC_URI="${HOMEPAGE}${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ~arm ~arm64 hppa ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86" +IUSE="cron debug +doc isag nls lm_sensors selinux" + +CDEPEND=" + cron? ( sys-process/cronbase ) + isag? ( + dev-lang/tk:0 + dev-vcs/rcs + sci-visualization/gnuplot + ) + nls? ( virtual/libintl ) + lm_sensors? ( sys-apps/lm_sensors ) +" +DEPEND=" + ${CDEPEND} + nls? ( sys-devel/gettext ) +" +RDEPEND=" + ${CDEPEND} + selinux? ( sec-policy/selinux-sysstat ) +" + +src_prepare() { + if use nls; then + strip-linguas -i nls/ + local lingua pofile + for pofile in nls/*.po; do + lingua=${pofile/nls\/} + lingua=${lingua/.po} + if ! has ${lingua} ${LINGUAS}; then + rm "nls/${lingua}.po" || die + fi + done + fi + epatch "${FILESDIR}"/${PN}-10.0.4-flags.patch +} + +src_configure() { + tc-export AR + sa_lib_dir=/usr/$(get_libdir)/sa \ + conf_dir=/etc \ + rcdir=Gentoo-does-not-use-rc.d \ + econf \ + --enable-copy-only \ + --with-systemdsystemunitdir=$(systemd_get_unitdir) \ + $(use_enable cron install-cron) \ + $(use_enable debug debuginfo) \ + $(use_enable doc documentation ) \ + $(use_enable isag install-isag) \ + $(use_enable lm_sensors sensors) \ + $(use_enable nls) +} + +src_compile() { + emake LFLAGS="${LDFLAGS}" +} + +src_install() { + keepdir /var/log/sa + + use cron && dodir /etc/cron.d + + emake \ + DESTDIR="${D}" \ + DOC_DIR=/usr/share/doc/${PF} \ + install + + dodoc contrib/sargraph/sargraph + + newinitd "${FILESDIR}"/${PN}.init.d ${PN} + systemd_dounit ${PN}.service + + use doc && rm -f "${D}"usr/share/doc/${PF}/COPYING +} diff --git a/app-admin/sysstat/sysstat-11.0.5-r1.ebuild b/app-admin/sysstat/sysstat-11.0.5-r1.ebuild new file mode 100644 index 000000000000..afcb07805d22 --- /dev/null +++ b/app-admin/sysstat/sysstat-11.0.5-r1.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils multilib systemd toolchain-funcs + +DESCRIPTION="System performance tools for Linux" +HOMEPAGE="http://pagesperso-orange.fr/sebastien.godard/" +SRC_URI="${HOMEPAGE}${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="debug +doc isag nls lm_sensors selinux" + +CDEPEND=" + isag? ( + dev-lang/tk:0 + dev-vcs/rcs + sci-visualization/gnuplot + ) + nls? ( virtual/libintl ) + lm_sensors? ( sys-apps/lm_sensors ) +" +DEPEND=" + ${CDEPEND} + nls? ( sys-devel/gettext ) +" +RDEPEND=" + ${CDEPEND} + selinux? ( sec-policy/selinux-sysstat ) +" + +SYSSTAT_FAKE_RC_DIR=Gentoo-does-not-use-rc.d + +src_prepare() { + if use nls; then + strip-linguas -i nls/ + local lingua pofile + for pofile in nls/*.po; do + lingua=${pofile/nls\/} + lingua=${lingua/.po} + if ! has ${lingua} ${LINGUAS}; then + rm "nls/${lingua}.po" || die + fi + done + fi + epatch \ + "${FILESDIR}"/${PN}-10.0.4-flags.patch \ + "${FILESDIR}"/${PN}-11.0.4-cron.patch +} + +src_configure() { + tc-export AR + sa_lib_dir=/usr/$(get_libdir)/sa \ + conf_dir=/etc \ + rcdir=${SYSSTAT_FAKE_RC_DIR} \ + econf \ + --enable-copy-only \ + --with-systemdsystemunitdir=$(systemd_get_unitdir) \ + $(use_enable debug debuginfo) \ + $(use_enable doc documentation ) \ + $(use_enable isag install-isag) \ + $(use_enable lm_sensors sensors) \ + $(use_enable nls) \ + --enable-install-cron +} + +src_compile() { + emake LFLAGS="${LDFLAGS}" +} + +src_install() { + keepdir /var/log/sa + + emake \ + DESTDIR="${D}" \ + DOC_DIR=/usr/share/doc/${PF} \ + install + + dodoc contrib/sargraph/sargraph + + rm -r "${D}/${SYSSTAT_FAKE_RC_DIR}" || die + newinitd "${FILESDIR}"/${PN}.init.d ${PN} + systemd_dounit ${PN}.service + + use doc && rm -f "${D}"usr/share/doc/${PF}/COPYING +} diff --git a/app-admin/sysstat/sysstat-11.1.5-r1.ebuild b/app-admin/sysstat/sysstat-11.1.5-r1.ebuild new file mode 100644 index 000000000000..5737c3628eb3 --- /dev/null +++ b/app-admin/sysstat/sysstat-11.1.5-r1.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils multilib systemd toolchain-funcs + +DESCRIPTION="System performance tools for Linux" +HOMEPAGE="http://pagesperso-orange.fr/sebastien.godard/" +SRC_URI="${HOMEPAGE}${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +IUSE="debug +doc isag nls lm_sensors selinux" + +CDEPEND=" + isag? ( + dev-lang/tk:0 + dev-vcs/rcs + sci-visualization/gnuplot + ) + nls? ( virtual/libintl ) + lm_sensors? ( sys-apps/lm_sensors ) +" +DEPEND=" + ${CDEPEND} + nls? ( sys-devel/gettext ) +" +RDEPEND=" + ${CDEPEND} + selinux? ( sec-policy/selinux-sysstat ) +" + +SYSSTAT_FAKE_RC_DIR=Gentoo-does-not-use-rc.d + +src_prepare() { + if use nls; then + strip-linguas -i nls/ + local lingua pofile + for pofile in nls/*.po; do + lingua=${pofile/nls\/} + lingua=${lingua/.po} + if ! has ${lingua} ${LINGUAS}; then + rm "nls/${lingua}.po" || die + fi + done + fi + epatch \ + "${FILESDIR}"/${PN}-10.0.4-flags.patch \ + "${FILESDIR}"/${PN}-11.0.4-cron.patch +} + +src_configure() { + tc-export AR + sa_lib_dir=/usr/$(get_libdir)/sa \ + conf_dir=/etc \ + rcdir=${SYSSTAT_FAKE_RC_DIR} \ + econf \ + --enable-copy-only \ + --with-systemdsystemunitdir=$(systemd_get_unitdir) \ + $(use_enable debug debuginfo) \ + $(use_enable doc documentation ) \ + $(use_enable isag install-isag) \ + $(use_enable lm_sensors sensors) \ + $(use_enable nls) \ + --enable-install-cron +} + +src_compile() { + emake LFLAGS="${LDFLAGS}" +} + +src_install() { + keepdir /var/log/sa + + emake \ + DESTDIR="${D}" \ + DOC_DIR=/usr/share/doc/${PF} \ + install + + dodoc contrib/sargraph/sargraph + + rm -r "${D}/${SYSSTAT_FAKE_RC_DIR}" || die + newinitd "${FILESDIR}"/${PN}.init.d ${PN} + systemd_dounit ${PN}.service + + use doc && rm -f "${D}"usr/share/doc/${PF}/COPYING +} diff --git a/app-admin/system-config-printer/Manifest b/app-admin/system-config-printer/Manifest new file mode 100644 index 000000000000..2c80084c3f32 --- /dev/null +++ b/app-admin/system-config-printer/Manifest @@ -0,0 +1 @@ +DIST system-config-printer-1.4.8.tar.xz 904068 SHA256 9f65e96434819bf4170d654ef5caa945699e48f72bf5ae8c500341409c3db2f9 SHA512 9f832f11e0e6bca32a29201b9f78d7a3ea35a46f7484548e5e71e6939fd51065e07325e12bdb1bc577ee606299cfef54759def6564923904a79f27b654ec5304 WHIRLPOOL 9ade5a1b1cab5eeccfcaa0244e9421efafb0691f4da7925d4fffe80f3b6f7f6d7171d2082f4540606d1c6af8e7929fdd41f18edbee3fe13ad68c620ff18370e1 diff --git a/app-admin/system-config-printer/metadata.xml b/app-admin/system-config-printer/metadata.xml new file mode 100644 index 000000000000..aac0bbb8af46 --- /dev/null +++ b/app-admin/system-config-printer/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>gnome</herd> +<herd>kde</herd> +<maintainer> + <email>reavertm@gentoo.org</email> + <name>Maciej Mrozowski</name> +</maintainer> +</pkgmetadata> diff --git a/app-admin/system-config-printer/system-config-printer-1.4.8.ebuild b/app-admin/system-config-printer/system-config-printer-1.4.8.ebuild new file mode 100644 index 000000000000..ad6c8e046ae6 --- /dev/null +++ b/app-admin/system-config-printer/system-config-printer-1.4.8.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +GCONF_DEBUG="no" +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="xml" + +inherit gnome2 python-single-r1 systemd versionator + +MY_V="$(get_version_component_range 1-2)" + +DESCRIPTION="GNOME frontend for a Red Hat's printer administration tool" +HOMEPAGE="http://cyberelk.net/tim/software/system-config-printer/" +SRC_URI="http://cyberelk.net/tim/data/system-config-printer/${MY_V}/${P}.tar.xz" + +LICENSE="GPL-2" +KEYWORDS="~alpha amd64 ~arm ~ia64 ppc ppc64 ~sh ~sparc x86" +SLOT="0" + +IUSE="doc gnome-keyring policykit" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +# Needs cups running, bug 284005 +RESTRICT="test" + +# Additional unhandled dependencies +# gnome-extra/gnome-packagekit[${PYTHON_USEDEP}] with pygobject:2 ? +# python samba client: smbc +# selinux: needed for troubleshooting +RDEPEND=" + ${PYTHON_DEPS} + >=dev-libs/glib-2:2 + dev-libs/libxml2[python,${PYTHON_USEDEP}] + dev-python/dbus-python[${PYTHON_USEDEP}] + dev-python/pycairo[${PYTHON_USEDEP}] + >=dev-python/pycups-1.9.60[${PYTHON_USEDEP}] + dev-python/pycurl[${PYTHON_USEDEP}] + dev-python/pygobject:3[${PYTHON_USEDEP}] + net-print/cups[dbus] + virtual/libusb:1 + >=virtual/udev-172 + x11-libs/gtk+:3[introspection] + x11-libs/libnotify[introspection] + x11-libs/pango[introspection] + gnome-keyring? ( gnome-base/libgnome-keyring[introspection] ) + policykit? ( >=sys-auth/polkit-0.104-r1 ) + !app-admin/system-config-printer-common + !app-admin/system-config-printer-gnome +" +DEPEND="${RDEPEND} + app-text/docbook-xml-dtd:4.1.2 + >=app-text/xmlto-0.0.22 + dev-util/desktop-file-utils + dev-util/intltool + sys-devel/gettext + virtual/pkgconfig + doc? ( dev-python/epydoc[${PYTHON_USEDEP}] ) +" + +APP_LINGUAS="ar as bg bn_IN bn br bs ca cs cy da de el en_GB es et fa fi fr gu +he hi hr hu hy id is it ja ka kn ko lo lv mai mk ml mr ms nb nl nn or pa pl +pt_BR pt ro ru si sk sl sr@latin sr sv ta te th tr uk vi zh_CN zh_TW" +for X in ${APP_LINGUAS}; do + IUSE="${IUSE} linguas_${X}" +done + +# Bug 471472 +MAKEOPTS+=" -j1" + +pkg_setup() { + python-single-r1_pkg_setup +} + +src_configure() { + local myconf + + # Disable installation of translations when LINGUAS not chosen + if [[ -z "${LINGUAS}" ]]; then + myconf="${myconf} --disable-nls" + else + myconf="${myconf} --enable-nls" + fi + + gnome2_src_configure \ + --with-desktop-vendor=Gentoo \ + --with-udev-rules \ + $(systemd_with_unitdir) \ + ${myconf} +} + +src_compile() { + gnome2_src_compile + use doc && emake html +} + +src_install() { + gnome2_src_install + use doc && dohtml -r html/ + python_fix_shebang "${ED}" +} diff --git a/app-admin/system-tools-backends/Manifest b/app-admin/system-tools-backends/Manifest new file mode 100644 index 000000000000..13d48716b611 --- /dev/null +++ b/app-admin/system-tools-backends/Manifest @@ -0,0 +1 @@ +DIST system-tools-backends-2.10.2.tar.bz2 448939 SHA256 1dbe5177df46a9c7250735e05e77129fe7ec04840771accfa87690111ca2c670 SHA512 9ee3e0643122740493265e532350fed9056334de0ea3d6656daa1d42b97f76f0f85024ac87e732fe5122a1e31ad009a1d2f119720081673a06696b81452fb990 WHIRLPOOL 2357ca2249b8f7c7ce3fc7ffcb4c49bcd83040d77910bbb1ce19e47750da999e6d359689d14c284a84b421287d5a8d3d183fc1debd0b119aa520dd125ca1a599 diff --git a/app-admin/system-tools-backends/files/stb.rc b/app-admin/system-tools-backends/files/stb.rc new file mode 100644 index 000000000000..45e8b85b8d93 --- /dev/null +++ b/app-admin/system-tools-backends/files/stb.rc @@ -0,0 +1,21 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + need dbus +} + +start() { + ebegin "Starting system-tools-backend" + start-stop-daemon --start --exec /usr/sbin/system-tools-backends -- -D + eend $? +} + +stop() { + ebegin "Stopping system-tools-backend" + start-stop-daemon --stop --pidfile /var/run/system-tools-backends.pid + eend $? +} + diff --git a/app-admin/system-tools-backends/files/system-tools-backends-2.8.2-cve-2008-4311.patch b/app-admin/system-tools-backends/files/system-tools-backends-2.8.2-cve-2008-4311.patch new file mode 100644 index 000000000000..47f93da74f16 --- /dev/null +++ b/app-admin/system-tools-backends/files/system-tools-backends-2.8.2-cve-2008-4311.patch @@ -0,0 +1,47 @@ +From 544d679c2796602ff277e78e238abd56d30ad633 Mon Sep 17 00:00:00 2001 +From: Gilles Dartiguelongue <eva@gentoo.org> +Date: Mon, 14 Dec 2009 20:37:58 +0100 +Subject: [PATCH 3/4] Gentoo: fix CVE-2008-4311 + +commit fd648907e46017d46c367f59c62d0b0395830903 +Author: Simon McVittie <http://smcv.pseudorandom.co.uk/> +Date: 2009-01-04 19:35:51 +0000 + + Allow root to send messages to all the system tools backends, so + they work even when CVE-2008-4311 has been fixed. + + Also disallow normal user access by destination, not by + interface (fd.o #18961). +--- + org.freedesktop.SystemToolsBackends.conf | 8 ++++---- + 1 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/org.freedesktop.SystemToolsBackends.conf b/org.freedesktop.SystemToolsBackends.conf +index 58972ee..537ef73 100644 +--- a/org.freedesktop.SystemToolsBackends.conf ++++ b/org.freedesktop.SystemToolsBackends.conf +@@ -22,8 +22,10 @@ + <allow send_interface="org.freedesktop.SystemToolsBackends.Platform" send_member="getPlatform"/> + --> + +- <!-- Only allow talking to the dispatcher --> +- <allow send_destination="org.freedesktop.SystemToolsBackends"/> ++ <!-- configuration modules can't be accessed directly... --> ++ <deny send_destination="org.freedesktop.SystemToolsBackends"/> ++ <deny send_destination="org.freedesktop.SystemToolsBackends.Platform"/> ++ <deny send_destination="org.freedesktop.SystemToolsBackends"/> + </policy> + + <policy user="0"> +@@ -45,8 +47,6 @@ + + <!-- be able to speak to configuration modules, + so any message to them has to go through the dispatcher --> +- <allow send_interface="org.freedesktop.SystemToolsBackends"/> +- <allow send_interface="org.freedesktop.SystemToolsBackends.Platform"/> + <allow send_destination="org.freedesktop.SystemToolsBackends"/> + <allow send_destination="org.freedesktop.SystemToolsBackends.Platform"/> + <allow send_destination="org.freedesktop.SystemToolsBackends.GroupsConfig"/> +-- +1.6.5.4 + diff --git a/app-admin/system-tools-backends/files/system-tools-backends-2.8.2-default-permissions.patch b/app-admin/system-tools-backends/files/system-tools-backends-2.8.2-default-permissions.patch new file mode 100644 index 000000000000..bc58ba4fb1f9 --- /dev/null +++ b/app-admin/system-tools-backends/files/system-tools-backends-2.8.2-default-permissions.patch @@ -0,0 +1,25 @@ +From ea88120dac8ba2c2dabf4c393c283f69b3d33b5a Mon Sep 17 00:00:00 2001 +From: Gilles Dartiguelongue <eva@gentoo.org> +Date: Mon, 14 Dec 2009 20:37:15 +0100 +Subject: [PATCH 2/4] Gentoo: restrict access to stb to users in stb-admin group + +--- + org.freedesktop.SystemToolsBackends.conf | 4 ++++ + 1 files changed, 4 insertions(+), 0 deletions(-) + +diff --git a/org.freedesktop.SystemToolsBackends.conf b/org.freedesktop.SystemToolsBackends.conf +index d031525..58972ee 100644 +--- a/org.freedesktop.SystemToolsBackends.conf ++++ b/org.freedesktop.SystemToolsBackends.conf +@@ -60,4 +60,8 @@ + <allow send_destination="org.freedesktop.SystemToolsBackends.UserConfig"/> + <allow send_destination="org.freedesktop.SystemToolsBackends.UsersConfig"/> + </policy> ++ <policy group="stb-admin"> ++ <!-- be able to speak to the dispatcher --> ++ <allow send_destination="org.freedesktop.SystemToolsBackends"/> ++ </policy> + </busconfig> +-- +1.6.5.4 + diff --git a/app-admin/system-tools-backends/metadata.xml b/app-admin/system-tools-backends/metadata.xml new file mode 100644 index 000000000000..013e6579a275 --- /dev/null +++ b/app-admin/system-tools-backends/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>gnome</herd> +<longdescription lang="en"> +The System Tools Backends are a set of cross-platform modules for Linux, +FreeBSD, Solaris and other Unix systems. The backends provide an common DBus +interface to all distros for modifying or reading the system configuration. +</longdescription> +</pkgmetadata> diff --git a/app-admin/system-tools-backends/system-tools-backends-2.10.2.ebuild b/app-admin/system-tools-backends/system-tools-backends-2.10.2.ebuild new file mode 100644 index 000000000000..b47f4048c6ba --- /dev/null +++ b/app-admin/system-tools-backends/system-tools-backends-2.10.2.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +GCONF_DEBUG="no" +GNOME_TARBALL_SUFFIX="bz2" + +inherit eutils gnome2 readme.gentoo user + +DESCRIPTION="Tools aimed to make easy the administration of UNIX systems" +HOMEPAGE="http://projects.gnome.org/gst/" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ~arm ~arm64 ia64 ppc sparc x86" +IUSE="" + +RDEPEND=" + !<app-admin/gnome-system-tools-1.1.91 + >=sys-apps/dbus-1.1.2 + >=dev-libs/dbus-glib-0.74 + >=dev-libs/glib-2.15.2:2 + >=dev-perl/Net-DBus-0.33.4 + dev-lang/perl + >=sys-auth/polkit-0.94 + userland_GNU? ( virtual/shadow ) +" +DEPEND="${RDEPEND} + virtual/pkgconfig + >=dev-util/intltool-0.40" + +DISABLE_AUTOFORMATTING="yes" +DOC_CONTENTS="You need to add yourself to the group stb-admin and +add system-tools-backends to the default runlevel. +You can do this as root like so: +# rc-update add system-tools-backends default +" + +pkg_setup() { + enewgroup stb-admin +} + +src_prepare() { + # Change default permission, only people in stb-admin is allowed + # to speak to the dispatcher. + epatch "${FILESDIR}/${PN}-2.8.2-default-permissions.patch" + + # Apply fix from ubuntu for CVE 2008 4311 + epatch "${FILESDIR}/${PN}-2.8.2-cve-2008-4311.patch" + + gnome2_src_prepare +} + +src_configure() { + gnome2_src_configure --localstatedir=/var +} + +src_install() { + gnome2_src_install + readme.gentoo_create_doc +} + +pkg_postinst() { + gnome2_pkg_postinst + readme.gentoo_print_elog +} diff --git a/app-admin/systemrescuecd-x86/Manifest b/app-admin/systemrescuecd-x86/Manifest new file mode 100644 index 000000000000..1c0a7a5c2745 --- /dev/null +++ b/app-admin/systemrescuecd-x86/Manifest @@ -0,0 +1,6 @@ +DIST systemrescuecd-x86-4.4.1.iso 413272064 SHA256 358253bf8d88b10be49f5485bf00e6cffea4f38ce635fe0d9f798803edf53d9e SHA512 5c5045df219181064201dda195961096da9722d3d5758dcb111c2c74ed083b3464f314340c01a5a27a920c33bd5bc95efee2efa1edc2405a0d11d9bc67e4b2a5 WHIRLPOOL b834a7a985a85909e9f99441407df78a06ee2c508e3d2020c5c4045cf35e3462f0fba58b888d150f22c0d23daf0d866d4fa93ba4bb6252ab7b502c390824e6ef +DIST systemrescuecd-x86-4.5.0.iso 439603200 SHA256 47279ea1bd1f904fd7973a88ad74e749d46e6fbca4e9a8fc0fc110d4181721f9 SHA512 e821876cb6f58d5eaeba35c91c60503e81c04c50b3c496e4144c8dc459c6e78aece9b7e7a3ca35ce427e0965c197758b2267909bcdf95f6a19221898fdbc91b2 WHIRLPOOL 3d7ab635ca5dcb2d13d02d5597905434d11da8d441e132d2baae795dcccd42f706d0eaef1f266b1f4a8dea4242bfa225291d8d7f793e619f4fb26f9144c8bc0f +DIST systemrescuecd-x86-4.5.1.iso 443541504 SHA256 4fda2fce55a46c7b258fba10c88a4a337821c8b801a8cd3c344cc223a9c4436d SHA512 561fa30404a7a41a1fcb0cc24c1a5eea407de1c2d2f1bd5273e2acd471986ab8587df9f9b3ff364617f81a351cdedd12c6859b53b1f7e430867c654fd136a524 WHIRLPOOL d266518c6898f9163341eaa671ce8367ea2e836e959806e65095e8de34d72cefaec576a640fcca53811b01bfd4e45b6d69a8a3da6191dca320709b542fd9ff3d +DIST systemrescuecd-x86-4.5.2.iso 456060928 SHA256 e8805433699acd7b6df38ff893eddad8c6f287a09cc34be3f6fef46d3e5056c4 SHA512 b27223b08032f0132f81204a244638262cf70348a1a299e5bf63971db556d604e52d8c3408e3943c305eac887c2e38ed6d2b1488633595c9f8c1cc087162f911 WHIRLPOOL 0c304b5622e0079746128832133b7f554b8dd6536b447d399da150539c6425ed6ec6aaaef4d3d034ff9a6e814812f9f0ac3383b07f83f13ede9e00d917f2ad5b +DIST systemrescuecd-x86-4.5.3.iso 458467328 SHA256 16aadc8bef95a0f409a7865054e8597b1001d815b22d976556c103379ea6aba3 SHA512 14774e9a882d5a505532ab8bee85e81867f5d30674df471eb76cae84678eae00fa3992c894b6c90b85c7eaa20bdc04ffe910a7a432092faf3329c08bf54eff49 WHIRLPOOL 7fa6a4e708453bc149d50b56fc05e77ed0d14a6ebab0c939f4e33d92ccbf2409de0da1154425f633e7e4415a3de7f9dc705131259e290b5a40b51f4f43b0f7dd +DIST systemrescuecd-x86-4.5.4.iso 459102208 SHA256 333827d5375cbb9bb201aa2c36871d941e78eeb66652c18c76664154a30eb9a4 SHA512 c32904413516af917de3d58b8eaf3b5701b9c49b1249daf1f8eca060497d5278fedbb0c0d86907bf94ddeab716dc8bf014e0baed0aee66141e8967207805d446 WHIRLPOOL 75c46f12dd92b093e4194e3b67ca020aefc43a3d9e27d94088a2c2f7f0ccad5cd44f7d7fbec4185956756fc3a3bf8845a82ab7a3d171c6ce3d8672f76e9c46e0 diff --git a/app-admin/systemrescuecd-x86/metadata.xml b/app-admin/systemrescuecd-x86/metadata.xml new file mode 100644 index 000000000000..4b2dec1d9979 --- /dev/null +++ b/app-admin/systemrescuecd-x86/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> + <email>mgorny@gentoo.org</email> + <name>Michał Górny</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">systemrescuecd</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/systemrescuecd-x86/systemrescuecd-x86-4.4.1.ebuild b/app-admin/systemrescuecd-x86/systemrescuecd-x86-4.4.1.ebuild new file mode 100644 index 000000000000..d7cc39e4ee14 --- /dev/null +++ b/app-admin/systemrescuecd-x86/systemrescuecd-x86-4.4.1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="The .iso image of SystemRescueCD rescue disk, x86 (+ amd64) variant" +HOMEPAGE="http://www.sysresccd.org/" +SRC_URI="mirror://sourceforge/systemrescuecd/sysresccd-${PN#*-}/${PV}/${P}.iso" + +LICENSE="GPL-2" +SLOT="${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="" + +S=${WORKDIR} + +RESTRICT="mirror" + +src_install() { + insinto "/usr/share/${PN%-*}" + doins "${DISTDIR}/${P}.iso" +} + +pkg_postinst() { + local f=${EROOT%/}/usr/share/${PN%-*}/${PN}-newest.iso + + # no version newer than ours? we're the newest! + if ! has_version ">${CATEGORY}/${PF}"; then + ln -f -s -v "${P}.iso" "${f}" || die + fi +} + +pkg_postrm() { + local f=${EROOT%/}/usr/share/${PN%-*}/${PN}-newest.iso + + # if there is no version newer than ours installed + if ! has_version ">${CATEGORY}/${PF}"; then + # and we are truly and completely uninstalled... + if [[ ! ${REPLACED_BY_VERSION} ]]; then + # then find an older version to set the symlink to + local newest_version=$(best_version "<${CATEGORY}/${PF}") + + if [[ ${newest_version} ]]; then + # update the symlink + ln -f -s -v "${newest_version%-r*}.iso" "${f}" || die + else + # last version removed? clean up the symlink + rm -v "${f}" || die + # and the parent directory + rmdir "${f%/*}" || die + fi + fi + fi +} diff --git a/app-admin/systemrescuecd-x86/systemrescuecd-x86-4.5.0.ebuild b/app-admin/systemrescuecd-x86/systemrescuecd-x86-4.5.0.ebuild new file mode 100644 index 000000000000..d7cc39e4ee14 --- /dev/null +++ b/app-admin/systemrescuecd-x86/systemrescuecd-x86-4.5.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="The .iso image of SystemRescueCD rescue disk, x86 (+ amd64) variant" +HOMEPAGE="http://www.sysresccd.org/" +SRC_URI="mirror://sourceforge/systemrescuecd/sysresccd-${PN#*-}/${PV}/${P}.iso" + +LICENSE="GPL-2" +SLOT="${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="" + +S=${WORKDIR} + +RESTRICT="mirror" + +src_install() { + insinto "/usr/share/${PN%-*}" + doins "${DISTDIR}/${P}.iso" +} + +pkg_postinst() { + local f=${EROOT%/}/usr/share/${PN%-*}/${PN}-newest.iso + + # no version newer than ours? we're the newest! + if ! has_version ">${CATEGORY}/${PF}"; then + ln -f -s -v "${P}.iso" "${f}" || die + fi +} + +pkg_postrm() { + local f=${EROOT%/}/usr/share/${PN%-*}/${PN}-newest.iso + + # if there is no version newer than ours installed + if ! has_version ">${CATEGORY}/${PF}"; then + # and we are truly and completely uninstalled... + if [[ ! ${REPLACED_BY_VERSION} ]]; then + # then find an older version to set the symlink to + local newest_version=$(best_version "<${CATEGORY}/${PF}") + + if [[ ${newest_version} ]]; then + # update the symlink + ln -f -s -v "${newest_version%-r*}.iso" "${f}" || die + else + # last version removed? clean up the symlink + rm -v "${f}" || die + # and the parent directory + rmdir "${f%/*}" || die + fi + fi + fi +} diff --git a/app-admin/systemrescuecd-x86/systemrescuecd-x86-4.5.1.ebuild b/app-admin/systemrescuecd-x86/systemrescuecd-x86-4.5.1.ebuild new file mode 100644 index 000000000000..d7cc39e4ee14 --- /dev/null +++ b/app-admin/systemrescuecd-x86/systemrescuecd-x86-4.5.1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="The .iso image of SystemRescueCD rescue disk, x86 (+ amd64) variant" +HOMEPAGE="http://www.sysresccd.org/" +SRC_URI="mirror://sourceforge/systemrescuecd/sysresccd-${PN#*-}/${PV}/${P}.iso" + +LICENSE="GPL-2" +SLOT="${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="" + +S=${WORKDIR} + +RESTRICT="mirror" + +src_install() { + insinto "/usr/share/${PN%-*}" + doins "${DISTDIR}/${P}.iso" +} + +pkg_postinst() { + local f=${EROOT%/}/usr/share/${PN%-*}/${PN}-newest.iso + + # no version newer than ours? we're the newest! + if ! has_version ">${CATEGORY}/${PF}"; then + ln -f -s -v "${P}.iso" "${f}" || die + fi +} + +pkg_postrm() { + local f=${EROOT%/}/usr/share/${PN%-*}/${PN}-newest.iso + + # if there is no version newer than ours installed + if ! has_version ">${CATEGORY}/${PF}"; then + # and we are truly and completely uninstalled... + if [[ ! ${REPLACED_BY_VERSION} ]]; then + # then find an older version to set the symlink to + local newest_version=$(best_version "<${CATEGORY}/${PF}") + + if [[ ${newest_version} ]]; then + # update the symlink + ln -f -s -v "${newest_version%-r*}.iso" "${f}" || die + else + # last version removed? clean up the symlink + rm -v "${f}" || die + # and the parent directory + rmdir "${f%/*}" || die + fi + fi + fi +} diff --git a/app-admin/systemrescuecd-x86/systemrescuecd-x86-4.5.2.ebuild b/app-admin/systemrescuecd-x86/systemrescuecd-x86-4.5.2.ebuild new file mode 100644 index 000000000000..d7cc39e4ee14 --- /dev/null +++ b/app-admin/systemrescuecd-x86/systemrescuecd-x86-4.5.2.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="The .iso image of SystemRescueCD rescue disk, x86 (+ amd64) variant" +HOMEPAGE="http://www.sysresccd.org/" +SRC_URI="mirror://sourceforge/systemrescuecd/sysresccd-${PN#*-}/${PV}/${P}.iso" + +LICENSE="GPL-2" +SLOT="${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="" + +S=${WORKDIR} + +RESTRICT="mirror" + +src_install() { + insinto "/usr/share/${PN%-*}" + doins "${DISTDIR}/${P}.iso" +} + +pkg_postinst() { + local f=${EROOT%/}/usr/share/${PN%-*}/${PN}-newest.iso + + # no version newer than ours? we're the newest! + if ! has_version ">${CATEGORY}/${PF}"; then + ln -f -s -v "${P}.iso" "${f}" || die + fi +} + +pkg_postrm() { + local f=${EROOT%/}/usr/share/${PN%-*}/${PN}-newest.iso + + # if there is no version newer than ours installed + if ! has_version ">${CATEGORY}/${PF}"; then + # and we are truly and completely uninstalled... + if [[ ! ${REPLACED_BY_VERSION} ]]; then + # then find an older version to set the symlink to + local newest_version=$(best_version "<${CATEGORY}/${PF}") + + if [[ ${newest_version} ]]; then + # update the symlink + ln -f -s -v "${newest_version%-r*}.iso" "${f}" || die + else + # last version removed? clean up the symlink + rm -v "${f}" || die + # and the parent directory + rmdir "${f%/*}" || die + fi + fi + fi +} diff --git a/app-admin/systemrescuecd-x86/systemrescuecd-x86-4.5.3.ebuild b/app-admin/systemrescuecd-x86/systemrescuecd-x86-4.5.3.ebuild new file mode 100644 index 000000000000..d7cc39e4ee14 --- /dev/null +++ b/app-admin/systemrescuecd-x86/systemrescuecd-x86-4.5.3.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="The .iso image of SystemRescueCD rescue disk, x86 (+ amd64) variant" +HOMEPAGE="http://www.sysresccd.org/" +SRC_URI="mirror://sourceforge/systemrescuecd/sysresccd-${PN#*-}/${PV}/${P}.iso" + +LICENSE="GPL-2" +SLOT="${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="" + +S=${WORKDIR} + +RESTRICT="mirror" + +src_install() { + insinto "/usr/share/${PN%-*}" + doins "${DISTDIR}/${P}.iso" +} + +pkg_postinst() { + local f=${EROOT%/}/usr/share/${PN%-*}/${PN}-newest.iso + + # no version newer than ours? we're the newest! + if ! has_version ">${CATEGORY}/${PF}"; then + ln -f -s -v "${P}.iso" "${f}" || die + fi +} + +pkg_postrm() { + local f=${EROOT%/}/usr/share/${PN%-*}/${PN}-newest.iso + + # if there is no version newer than ours installed + if ! has_version ">${CATEGORY}/${PF}"; then + # and we are truly and completely uninstalled... + if [[ ! ${REPLACED_BY_VERSION} ]]; then + # then find an older version to set the symlink to + local newest_version=$(best_version "<${CATEGORY}/${PF}") + + if [[ ${newest_version} ]]; then + # update the symlink + ln -f -s -v "${newest_version%-r*}.iso" "${f}" || die + else + # last version removed? clean up the symlink + rm -v "${f}" || die + # and the parent directory + rmdir "${f%/*}" || die + fi + fi + fi +} diff --git a/app-admin/systemrescuecd-x86/systemrescuecd-x86-4.5.4.ebuild b/app-admin/systemrescuecd-x86/systemrescuecd-x86-4.5.4.ebuild new file mode 100644 index 000000000000..d7cc39e4ee14 --- /dev/null +++ b/app-admin/systemrescuecd-x86/systemrescuecd-x86-4.5.4.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="The .iso image of SystemRescueCD rescue disk, x86 (+ amd64) variant" +HOMEPAGE="http://www.sysresccd.org/" +SRC_URI="mirror://sourceforge/systemrescuecd/sysresccd-${PN#*-}/${PV}/${P}.iso" + +LICENSE="GPL-2" +SLOT="${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="" + +S=${WORKDIR} + +RESTRICT="mirror" + +src_install() { + insinto "/usr/share/${PN%-*}" + doins "${DISTDIR}/${P}.iso" +} + +pkg_postinst() { + local f=${EROOT%/}/usr/share/${PN%-*}/${PN}-newest.iso + + # no version newer than ours? we're the newest! + if ! has_version ">${CATEGORY}/${PF}"; then + ln -f -s -v "${P}.iso" "${f}" || die + fi +} + +pkg_postrm() { + local f=${EROOT%/}/usr/share/${PN%-*}/${PN}-newest.iso + + # if there is no version newer than ours installed + if ! has_version ">${CATEGORY}/${PF}"; then + # and we are truly and completely uninstalled... + if [[ ! ${REPLACED_BY_VERSION} ]]; then + # then find an older version to set the symlink to + local newest_version=$(best_version "<${CATEGORY}/${PF}") + + if [[ ${newest_version} ]]; then + # update the symlink + ln -f -s -v "${newest_version%-r*}.iso" "${f}" || die + else + # last version removed? clean up the symlink + rm -v "${f}" || die + # and the parent directory + rmdir "${f%/*}" || die + fi + fi + fi +} diff --git a/app-admin/tenshi/Manifest b/app-admin/tenshi/Manifest new file mode 100644 index 000000000000..a0cfc3d9e6bb --- /dev/null +++ b/app-admin/tenshi/Manifest @@ -0,0 +1,3 @@ +DIST tenshi-0.12.tar.gz 28467 SHA256 953bbad01cb03674ab6135b70f707467ccd55dd1b8cb7257f1f49473d7767920 SHA512 657998e3a8df49ad0aae9c948cdd78dab944153fdacf79ebfc31b3e57fb62d738514b94c61834342669c407a3b09e81ceab38c054153a9fae6337a377fc167db WHIRLPOOL a9c5b49238b5e7a86aa8df41f2b6cd6881f25ffacceb1ae850d37b2f227950536900af707884db5f16604903cf73c0586baecdb0a8cf0d906930dd2a5058d67c +DIST tenshi-0.14.tar.gz 29764 SHA256 73ff5dfb078e0744709d0ead26276a1c88af8a9f0515e786a60c84bd9cd9cfc7 SHA512 9922e9b7f9f39bc38f2e8844399146a9303d8a622b167b748fd76970820b04dc15df55e4ff87c05662ba9d120876cac9fa6ffa3bf07f2ad7c4f6f58d1ca667d2 WHIRLPOOL 780ced7b2cc1902d90c5c51edd77a28cf49dcc45f0e764b47d05c1fcbadf9b5f94fdf86c9c7a746c79fe61c164dc7c1bf8e9d1ac593e804767cc420ccb7f7c7d +DIST tenshi-0.15.tar.gz 28405 SHA256 4f875db168ca53249c521ac0b5a1e2b7498613bc3ac2a23de85638e44d0006a7 SHA512 7d241d192986d2073d8509cda8b6bd21bc678f05d6e3b830885485d259454c5e5c004b477e63dbef5eb3e5bea8c4af56d6d8ed32c6809de43ed1e144c6b3d04c WHIRLPOOL a35afa1c80cedbf57193b39119de428d53d70e222fcf8a597a187d67a66b2bea82934bf991f8cffa6aa0fc1a86b9f7e9e17d7d2c73e1bbb055d9f01acab8ff17 diff --git a/app-admin/tenshi/files/tenshi-create-mandir.patch b/app-admin/tenshi/files/tenshi-create-mandir.patch new file mode 100644 index 000000000000..72ca3f28576d --- /dev/null +++ b/app-admin/tenshi/files/tenshi-create-mandir.patch @@ -0,0 +1,10 @@ +--- a/Makefile ++++ b/Makefile +@@ -38,5 +38,7 @@ + install -g root -m 0644 -D tenshi.conf ${DESTDIR}${sysconfdir}/tenshi/tenshi.conf + install -d ${DESTDIR}${docdir} + install -m 0644 ${DOCS} ${DESTDIR}${docdir}/ ++ [ -d ${DESTDIR}${mandir}/man8 ] || \ ++ install -d ${DESTDIR}${mandir}/man8 + install -g root -m 0644 tenshi.8 ${DESTDIR}${mandir}/man8/ + install -g root -m 755 -d ${DESTDIR}${libdir} diff --git a/app-admin/tenshi/files/tenshi-openrc-init-r1.patch b/app-admin/tenshi/files/tenshi-openrc-init-r1.patch new file mode 100644 index 000000000000..be300d25f7ea --- /dev/null +++ b/app-admin/tenshi/files/tenshi-openrc-init-r1.patch @@ -0,0 +1,11 @@ +--- a/tenshi.gentoo-init ++++ b/tenshi.gentoo-init +@@ -1,6 +1,7 @@ + #!/sbin/runscript + +-opts="depend start stop reload flush checkconfig" ++extra_commands="checkconfig" ++extra_started_commands="reload flush" + + depend() { + need clock hostname logger diff --git a/app-admin/tenshi/files/tenshi-openrc-init.patch b/app-admin/tenshi/files/tenshi-openrc-init.patch new file mode 100644 index 000000000000..eef9874c553a --- /dev/null +++ b/app-admin/tenshi/files/tenshi-openrc-init.patch @@ -0,0 +1,11 @@ +--- a/tenshi.gentoo-init ++++ b/tenshi.gentoo-init +@@ -13,7 +13,7 @@ + + start() { + ebegin "Starting tenshi" +- start-stop-daemon --start --quiet --exec /usr/sbin/tenshi -- -c /etc/tenshi/tenshi.conf -P /var/lib/tenshi/tenshi.pid ++ start-stop-daemon --start --quiet --pidfile /var/lib/tenshi/tenshi.pid --exec /usr/sbin/tenshi -- -c /etc/tenshi/tenshi.conf -P /var/lib/tenshi/tenshi.pid + eend $? + } + diff --git a/app-admin/tenshi/metadata.xml b/app-admin/tenshi/metadata.xml new file mode 100644 index 000000000000..158d49339334 --- /dev/null +++ b/app-admin/tenshi/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>proxy-maintainers</herd> +<maintainer> + <email>bldewolf@csupomona.edu</email> + <name>Brian De Wolf</name> +</maintainer> +<maintainer> + <email>atj@pulsewidth.org.uk</email> + <name>Adam James</name> +</maintainer> +</pkgmetadata> diff --git a/app-admin/tenshi/tenshi-0.12.ebuild b/app-admin/tenshi/tenshi-0.12.ebuild new file mode 100644 index 000000000000..5af09323b1b7 --- /dev/null +++ b/app-admin/tenshi/tenshi-0.12.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit eutils user + +DESCRIPTION="Log parsing and notification program" +HOMEPAGE="http://dev.inversepath.com/trac/tenshi" +SRC_URI="http://dev.inversepath.com/tenshi/${P}.tar.gz" + +LICENSE="ISC" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +RDEPEND="dev-lang/perl + dev-perl/IO-BufferedSelect + sys-apps/coreutils" + +pkg_setup() { + enewgroup tenshi + enewuser tenshi -1 -1 /var/lib/tenshi tenshi +} + +src_prepare() { + epatch "${FILESDIR}/${PN}-create-mandir.patch" + epatch "${FILESDIR}/${PN}-openrc-init.patch" #218042 + epatch "${FILESDIR}/${PN}-openrc-init-r1.patch" #398987 + + # Fix for bug #241254 + sed -i 's:^docdir =.*:docdir = /usr/share/doc/${PF}:' \ + Makefile || die "docdir substitution failed" +} + +src_install() { + emake DESTDIR="${D}" install + fowners tenshi:root /etc/tenshi/tenshi.conf + dodir /var/lib/tenshi + fowners tenshi:root /var/lib/tenshi + doman tenshi.8 + newinitd tenshi.gentoo-init tenshi + keepdir /var/lib/tenshi +} + +pkg_postinst() { + ewarn "The sample config installed to ${ROOT}etc/tenshi/tenshi.conf" + ewarn "monitors /var/log/messages which, by default, can not be read" + ewarn "by the tenshi user. Make sure that the tenshi user has read" + ewarn "permission on all the files that you want tenshi to monitor." +} diff --git a/app-admin/tenshi/tenshi-0.14.ebuild b/app-admin/tenshi/tenshi-0.14.ebuild new file mode 100644 index 000000000000..402b52d93a91 --- /dev/null +++ b/app-admin/tenshi/tenshi-0.14.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit eutils user + +DESCRIPTION="Log parsing and notification program" +HOMEPAGE="http://dev.inversepath.com/trac/tenshi" +SRC_URI="http://dev.inversepath.com/tenshi/${P}.tar.gz" + +LICENSE="ISC" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +RDEPEND="dev-lang/perl + dev-perl/IO-BufferedSelect + sys-apps/coreutils" + +pkg_setup() { + enewgroup tenshi + enewuser tenshi -1 -1 /var/lib/tenshi tenshi +} + +src_prepare() { + # Fix for bug #241254 + sed -i 's:^docdir =.*:docdir = /usr/share/doc/${PF}:' \ + Makefile || die "docdir substitution failed" +} + +src_install() { + emake DESTDIR="${D}" install + fowners tenshi:root /etc/tenshi/tenshi.conf + dodir /var/lib/tenshi + fowners tenshi:root /var/lib/tenshi + doman tenshi.8 + newinitd tenshi.gentoo-init tenshi + keepdir /var/lib/tenshi +} + +pkg_postinst() { + ewarn "The sample config installed to ${ROOT}etc/tenshi/tenshi.conf" + ewarn "monitors /var/log/messages which, by default, can not be read" + ewarn "by the tenshi user. Make sure that the tenshi user has read" + ewarn "permission on all the files that you want tenshi to monitor." +} diff --git a/app-admin/tenshi/tenshi-0.15.ebuild b/app-admin/tenshi/tenshi-0.15.ebuild new file mode 100644 index 000000000000..487e4afd4876 --- /dev/null +++ b/app-admin/tenshi/tenshi-0.15.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils user + +DESCRIPTION="Log parsing and notification program" +HOMEPAGE="http://dev.inversepath.com/trac/tenshi" +SRC_URI="http://dev.inversepath.com/tenshi/${P}.tar.gz" + +LICENSE="ISC" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +RDEPEND="dev-lang/perl + dev-perl/IO-BufferedSelect + sys-apps/coreutils" + +pkg_setup() { + enewgroup tenshi + enewuser tenshi -1 -1 /var/lib/tenshi tenshi +} + +src_prepare() { + # Fix for bug #241254 + sed -i 's:^docdir =.*:docdir = /usr/share/doc/${PF}:' \ + Makefile || die "docdir substitution failed" +} + +src_install() { + emake DESTDIR="${D}" install + fowners tenshi:root /etc/tenshi/tenshi.conf + dodir /var/lib/tenshi + fowners tenshi:root /var/lib/tenshi + doman tenshi.8 + newinitd tenshi.gentoo-init tenshi + keepdir /var/lib/tenshi +} + +cpkg_postinst() { + ewarn "The sample config installed to ${ROOT}etc/tenshi/tenshi.conf" + ewarn "monitors /var/log/messages which, by default, can not be read" + ewarn "by the tenshi user. Make sure that the tenshi user has read" + ewarn "permission on all the files that you want tenshi to monitor." +} diff --git a/app-admin/testdisk/Manifest b/app-admin/testdisk/Manifest new file mode 100644 index 000000000000..945fff01816f --- /dev/null +++ b/app-admin/testdisk/Manifest @@ -0,0 +1,4 @@ +DIST testdisk-6.12.tar.bz2 554633 SHA256 bdfbe679146518a1321d64f512d6ec8980ac3a9f2296ef27a46c7743d0f9ea16 SHA512 5cd17d1ad851515dcd1f3ef5dfb7435aff2f89e2b0467e84552809d203688a47731e23a602dc10355861414eb2d8c6b9edd48225ccc6229ab59810803a59da4c WHIRLPOOL f667fa6e61990cd6c6532301e461fc1cdcd9303a96566cc501dc1945fd9328b234b8c3f5a760a839a9d4b026da29d03c3189fa9afc58b7f7efa6e96b15008a49 +DIST testdisk-6.13.tar.bz2 560696 SHA256 48275ccddfc9445b6c3e6e181728dae9e49bd25b824a6b5670d58f1f88cdf220 SHA512 30889b8afed5b0fac93ce028e8c95bfa3e14b72d39cc4f86659edcce0b8820c5ce0c2b7e1d09f23f0da977b5d1cb275551069a87b109d05538e63e9b76200442 WHIRLPOOL b9bcf93df5b42a26b4206969ee968122f194338a28c6a500e540e3cafec2ae84d0734624c58b3581fc9ac71f2ea1038f2997e3f91278d6eed18abf786cd31200 +DIST testdisk-6.14.tar.bz2 620077 SHA256 a597c3ebc375acdf0ff60f44ed8935a301132aae78ec00f64f091637d055326c SHA512 f479c7863e1a39bf747a0b73b37eba1016e4762373b9b68747fed6141aa8faa7703c89dddc975df18904759292cd7d333ca0619eacb3c1eea76790a917e95774 WHIRLPOOL def7c9506747c68e5fb786ab0725c8ca2e15ccd53fc7f336d77f72067a6a6094c716c57ec3652a8386bf176b40e2fb1504925c6734bc3037799a4bbef3c8e67d +DIST testdisk-7.0.tar.bz2 676990 SHA256 00bb3b6b22e6aba88580eeb887037aef026968c21a87b5f906c6652cbee3442d SHA512 b1ebe1d2fca453660a17623b70c06e0195cb5f07056fb7bc683d575c034fb71dfb793582c804dcff0ca57789a6de84bbf13b1a554353811660996e42199102e2 WHIRLPOOL 9ef3ed733f13477435123089cbd6168c189591284aa72dc9636470b35a21a32222d6871916b43e3c2ba4ac6da85979d6ec249b22c2573b77db7b2bcc280b85f1 diff --git a/app-admin/testdisk/files/fix_rare_crash-6.14.patch b/app-admin/testdisk/files/fix_rare_crash-6.14.patch new file mode 100644 index 000000000000..913be7e32ebd --- /dev/null +++ b/app-admin/testdisk/files/fix_rare_crash-6.14.patch @@ -0,0 +1,227 @@ +From a2676d349a975a142f1119c0aecb435e1b0db8b8 Mon Sep 17 00:00:00 2001 +From: Christophe Grenier <grenier@cgsecurity.org> +Date: Sat, 14 Jun 2014 12:08:59 +0200 +Subject: TestDisk: fix rare crash when listing NTFS directories + + +diff --git a/src/ntfs_dir.c b/src/ntfs_dir.c +index d416cea..b51c63d 100644 +--- a/src/ntfs_dir.c ++++ b/src/ntfs_dir.c +@@ -167,7 +167,15 @@ static int ntfs_td_list_entry( struct ntfs_dir_struct *ls, const ntfschar *name + const MFT_REF mref, const unsigned dt_type) + { + int result = 0; +- char *filename = (char *)calloc (1, MAX_PATH); ++ char *filename; ++ ntfs_inode *ni; ++ ntfs_attr_search_ctx *ctx_si = NULL; ++ file_info_t *new_file=NULL; ++ /* Keep FILE_NAME_WIN32 and FILE_NAME_POSIX */ ++ if ((name_type & FILE_NAME_WIN32_AND_DOS) == FILE_NAME_DOS) ++ return 0; ++ ++ filename = (char *)calloc (1, MAX_PATH); + if (!filename) + { + log_critical("ntfs_td_list_entry calloc failed\n"); +@@ -178,118 +186,111 @@ static int ntfs_td_list_entry( struct ntfs_dir_struct *ls, const ntfschar *name + if (ntfs_ucstoutf8(ls->cd, name, name_len, &filename, MAX_PATH) < 0 && + ntfs_ucstombs (name, name_len, &filename, MAX_PATH) < 0) { + log_error("Cannot represent filename in current locale.\n"); +- goto free; ++ goto freefn; + } + #else + if (ntfs_ucstombs (name, name_len, &filename, MAX_PATH) < 0) { + log_error("Cannot represent filename in current locale.\n"); +- goto free; ++ goto freefn; + } + #endif + + result = 0; /* These are successful */ + if (MREF(mref) < FILE_first_user && filename[0] == '$') /* Hide system file */ +- goto free; +- /* Keep FILE_NAME_WIN32 and FILE_NAME_POSIX */ +- if ((name_type & FILE_NAME_WIN32_AND_DOS) == FILE_NAME_DOS) +- goto free; +- { +- ntfs_inode *ni; +- ntfs_attr_search_ctx *ctx_si = NULL; +- file_info_t *new_file=NULL; ++ goto freefn; ++ result = -1; /* Everything else is bad */ + +- result = -1; /* Everything else is bad */ ++ ni = ntfs_inode_open(ls->vol, mref); ++ if (!ni) ++ goto freefn; ++ new_file=(file_info_t*)MALLOC(sizeof(*new_file)); ++ new_file->status=0; ++ new_file->st_ino=MREF(mref); ++ new_file->st_uid=0; ++ new_file->st_gid=0; + +- ni = ntfs_inode_open(ls->vol, mref); +- if (!ni) +- goto release; +- new_file=(file_info_t*)MALLOC(sizeof(*new_file)); +- new_file->status=0; +- td_list_add_tail(&new_file->list, &ls->dir_list->list); +- new_file->st_ino=MREF(mref); +- new_file->st_uid=0; +- new_file->st_gid=0; +- +- ctx_si = ntfs_attr_get_search_ctx(ni, ni->mrec); +- if (ctx_si) ++ ctx_si = ntfs_attr_get_search_ctx(ni, ni->mrec); ++ if (ctx_si) ++ { ++ if (ntfs_attr_lookup(AT_STANDARD_INFORMATION, AT_UNNAMED, 0, CASE_SENSITIVE, 0, NULL, 0, ctx_si)==0) + { +- if (ntfs_attr_lookup(AT_STANDARD_INFORMATION, AT_UNNAMED, 0, CASE_SENSITIVE, 0, NULL, 0, ctx_si)==0) ++ const ATTR_RECORD *attr = ctx_si->attr; ++ const STANDARD_INFORMATION *si = (const STANDARD_INFORMATION*)((const char*)attr + ++ le16_to_cpu(attr->value_offset)); ++ if(si) + { +- const ATTR_RECORD *attr = ctx_si->attr; +- const STANDARD_INFORMATION *si = (const STANDARD_INFORMATION*)((const char*)attr + +- le16_to_cpu(attr->value_offset)); +- if(si) +- { +- new_file->td_atime=td_ntfs2utc(sle64_to_cpu(si->last_access_time)); +- new_file->td_mtime=td_ntfs2utc(sle64_to_cpu(si->last_data_change_time)); +- new_file->td_ctime=td_ntfs2utc(sle64_to_cpu(si->creation_time)); +- } ++ new_file->td_atime=td_ntfs2utc(sle64_to_cpu(si->last_access_time)); ++ new_file->td_mtime=td_ntfs2utc(sle64_to_cpu(si->last_data_change_time)); ++ new_file->td_ctime=td_ntfs2utc(sle64_to_cpu(si->creation_time)); + } +- ntfs_attr_put_search_ctx(ctx_si); + } ++ ntfs_attr_put_search_ctx(ctx_si); ++ } ++ { ++ ATTR_RECORD *rec; ++ int first=1; ++ ntfs_attr_search_ctx *ctx = NULL; ++ if (dt_type == NTFS_DT_DIR) + { +- ATTR_RECORD *rec; +- int first=1; +- ntfs_attr_search_ctx *ctx = NULL; +- if (dt_type == NTFS_DT_DIR) ++ new_file->name=strdup(filename); ++ new_file->st_mode = LINUX_S_IFDIR| LINUX_S_IRUGO | LINUX_S_IXUGO; ++ new_file->st_size=0; ++ td_list_add_tail(&new_file->list, &ls->dir_list->list); ++ first=0; ++ } ++ ctx = ntfs_attr_get_search_ctx(ni, ni->mrec); ++ /* A file has always an unnamed date stream and ++ * may have named alternate data streams (ADS) */ ++ while((rec = find_attribute(AT_DATA, ctx))) ++ { ++ const s64 filesize = ntfs_get_attribute_value_length(ctx->attr); ++ if(rec->name_length && ++ (ls->dir_data->param & FLAG_LIST_ADS)!=FLAG_LIST_ADS) ++ continue; ++ if(first==0) + { +- new_file->name=strdup(filename); +- new_file->st_mode = LINUX_S_IFDIR| LINUX_S_IRUGO | LINUX_S_IXUGO; +- new_file->st_size=0; +- td_list_add_tail(&new_file->list, &ls->dir_list->list); +- first=0; ++ const file_info_t *old_file=new_file; ++ new_file=(file_info_t *)MALLOC(sizeof(*new_file)); ++ memcpy(new_file, old_file, sizeof(*new_file)); + } +- ctx = ntfs_attr_get_search_ctx(ni, ni->mrec); +- /* A file has always an unnamed date stream and +- * may have named alternate data streams (ADS) */ +- while((rec = find_attribute(AT_DATA, ctx))) ++ new_file->st_mode = LINUX_S_IFREG | LINUX_S_IRUGO; ++ new_file->st_size=filesize; ++ if (rec->name_length) + { +- const s64 filesize = ntfs_get_attribute_value_length(ctx->attr); +- if(rec->name_length && +- (ls->dir_data->param & FLAG_LIST_ADS)!=FLAG_LIST_ADS) +- continue; +- if(first==0) +- { +- const file_info_t *old_file=new_file; +- new_file=(file_info_t *)MALLOC(sizeof(*new_file)); +- memcpy(new_file, old_file, sizeof(*new_file)); +- } +- new_file->st_mode = LINUX_S_IFREG | LINUX_S_IRUGO; +- new_file->st_size=filesize; +- if (rec->name_length) ++ char *stream_name=NULL; ++ new_file->status=FILE_STATUS_ADS; ++ new_file->name = (char *)MALLOC(MAX_PATH); ++ if (ntfs_ucstombs((ntfschar *) ((char *) rec + le16_to_cpu(rec->name_offset)), ++ rec->name_length, &stream_name, 0) < 0) + { +- char *stream_name=NULL; +- new_file->status=FILE_STATUS_ADS; +- new_file->name = (char *)MALLOC(MAX_PATH); +- if (ntfs_ucstombs((ntfschar *) ((char *) rec + le16_to_cpu(rec->name_offset)), +- rec->name_length, &stream_name, 0) < 0) +- { +- log_error("ERROR: Cannot translate name into current locale.\n"); +- snprintf(new_file->name, MAX_PATH, "%s:???", filename); +- } +- else +- { +- snprintf(new_file->name, MAX_PATH, "%s:%s", filename, stream_name); +- } +- free(stream_name); ++ log_error("ERROR: Cannot translate name into current locale.\n"); ++ snprintf(new_file->name, MAX_PATH, "%s:???", filename); + } + else + { +- new_file->name=strdup(filename); ++ snprintf(new_file->name, MAX_PATH, "%s:%s", filename, stream_name); + } +- td_list_add_tail(&new_file->list, &ls->dir_list->list); +- first=0; ++ free(stream_name); + } +- ntfs_attr_put_search_ctx(ctx); ++ else ++ { ++ new_file->name=strdup(filename); ++ } ++ td_list_add_tail(&new_file->list, &ls->dir_list->list); ++ first=0; ++ } ++ ntfs_attr_put_search_ctx(ctx); ++ if(first) ++ { ++ free(new_file); + } +- +- result = 0; +-release: +- /* close the inode. */ +- if (ni) +- ntfs_inode_close(ni); + } +-free: ++ ++ result = 0; ++ /* close the inode. */ ++ if (ni) ++ ntfs_inode_close(ni); ++freefn: + free (filename); + return result; + } +-- +cgit v0.10.2 + diff --git a/app-admin/testdisk/files/install-gentoo.patch b/app-admin/testdisk/files/install-gentoo.patch new file mode 100644 index 000000000000..08a3944e68cc --- /dev/null +++ b/app-admin/testdisk/files/install-gentoo.patch @@ -0,0 +1,25 @@ +--- Makefile.am-original 2015-04-20 11:31:03.000000000 -0600 ++++ Makefile.am 2015-04-20 13:27:01.000000000 -0600 +@@ -1,9 +1,8 @@ + SUBDIRS = icons man src + +-EXTRA_DIST = AUTHORS COPYING ChangeLog INFO INSTALL NEWS README THANKS compile.sh \ ++EXTRA_DIST = compile.sh \ + progsreiserfs-journal.patch progsreiserfs-file-read.patch \ + darwin/readme_mac_powerpc.txt darwin/readme_mac_intel.txt \ +- documentation.html \ + dos/readme.txt \ + linux/testdisk.spec.in \ + linux/qphotorec.desktop \ +@@ -24,9 +23,9 @@ + + AUTOMAKE_OPTIONS = gnits + ++dist_doc_DATA = AUTHORS COPYING ChangeLog NEWS INFO INSTALL README THANKS documentation.html ++ + install-data-hook: +- $(mkinstalldirs) $(DESTDIR)$(docdir) +- $(INSTALL_DATA) $(top_srcdir)/AUTHORS $(top_srcdir)/ChangeLog $(top_srcdir)/NEWS $(top_srcdir)/README $(top_srcdir)/THANKS $(top_srcdir)/documentation.html $(DESTDIR)$(docdir) + if USEQT + $(mkinstalldirs) $(DESTDIR)$(datadir)/applications + $(INSTALL_DATA) $(top_srcdir)/linux/qphotorec.desktop $(DESTDIR)$(datadir)/applications diff --git a/app-admin/testdisk/metadata.xml b/app-admin/testdisk/metadata.xml new file mode 100644 index 000000000000..bcd5bf7763ec --- /dev/null +++ b/app-admin/testdisk/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>forensics</herd> + <maintainer> + <email>robbat2@gentoo.org</email> + <name>Robin H. Johnson</name> + <description>Primary maintainer</description> + </maintainer> + <use> + <flag name='ntfs'>Include the ability to read NTFS filesystems</flag> + <flag name='reiserfs'>Include reiserfs reading ability</flag> + <flag name='ewf'>Include ewf library</flag> + </use> +</pkgmetadata> diff --git a/app-admin/testdisk/testdisk-6.12.ebuild b/app-admin/testdisk/testdisk-6.12.ebuild new file mode 100644 index 000000000000..5a3367634199 --- /dev/null +++ b/app-admin/testdisk/testdisk-6.12.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils flag-o-matic + +DESCRIPTION="Checks and undeletes partitions + PhotoRec, signature based recovery tool" +HOMEPAGE="http://www.cgsecurity.org/wiki/TestDisk" +SRC_URI="http://www.cgsecurity.org/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="jpeg ntfs reiserfs static" + +# WARNING: reiserfs support does NOT work with reiserfsprogs +# you MUST use progsreiserfs-0.3.1_rc8 (the last version ever released). +DEPEND=" + >=sys-libs/ncurses-5.2 + jpeg? ( virtual/jpeg ) + ntfs? ( sys-fs/ntfs3g ) + reiserfs? ( >=sys-fs/progsreiserfs-0.3.1_rc8 ) + >=sys-fs/e2fsprogs-1.35 + sys-libs/zlib" +RDEPEND="!static? ( ${DEPEND} )" + +src_configure() { + local myconf + + # this is static method is the same used by upstream for their 'static' make + # target, but better, as it doesn't break. + use static && append-ldflags -static + + # --with-foo are broken, any use of --with/--without disable the + # functionality. + # The following variation must be used. + use reiserfs || myconf+=" --without-reiserfs" + use ntfs || myconf+=" --without-ntfs" + use jpeg || myconf+=" --without-jpeg" + + econf \ + --docdir="${ED}/usr/share/doc/${PF}" \ + --without-ewf \ + --enable-sudo \ + ${myconf} + + # perform safety checks for NTFS, REISERFS and JPEG + if use ntfs && ! egrep -q '^#define HAVE_LIBNTFS(3G)? 1$' "${S}"/config.h ; then + die "Failed to find either NTFS or NTFS-3G library." + fi + if use reiserfs && egrep -q 'undef HAVE_LIBREISERFS\>' "${S}"/config.h ; then + die "Failed to find reiserfs library." + fi + if use jpeg && egrep -q 'undef HAVE_LIBJPEG\>' "${S}"/config.h ; then + die "Failed to find jpeg library." + fi +} diff --git a/app-admin/testdisk/testdisk-6.13.ebuild b/app-admin/testdisk/testdisk-6.13.ebuild new file mode 100644 index 000000000000..fd2eafa57cff --- /dev/null +++ b/app-admin/testdisk/testdisk-6.13.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils flag-o-matic + +DESCRIPTION="Checks and undeletes partitions + PhotoRec, signature based recovery tool" +HOMEPAGE="http://www.cgsecurity.org/wiki/TestDisk" +SRC_URI="http://www.cgsecurity.org/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="jpeg ntfs reiserfs static" + +# WARNING: reiserfs support does NOT work with reiserfsprogs +# you MUST use progsreiserfs-0.3.1_rc8 (the last version ever released). +DEPEND=" + >=sys-libs/ncurses-5.2 + jpeg? ( virtual/jpeg ) + ntfs? ( sys-fs/ntfs3g ) + reiserfs? ( >=sys-fs/progsreiserfs-0.3.1_rc8 ) + >=sys-fs/e2fsprogs-1.35 + sys-libs/zlib" +RDEPEND="!static? ( ${DEPEND} )" + +src_configure() { + local myconf + + # this is static method is the same used by upstream for their 'static' make + # target, but better, as it doesn't break. + use static && append-ldflags -static + + # --with-foo are broken, any use of --with/--without disable the + # functionality. + # The following variation must be used. + use reiserfs || myconf+=" --without-reiserfs" + use ntfs || myconf+=" --without-ntfs" + use jpeg || myconf+=" --without-jpeg" + + econf \ + --docdir="${ED}/usr/share/doc/${PF}" \ + --without-ewf \ + --enable-sudo \ + ${myconf} + + # perform safety checks for NTFS, REISERFS and JPEG + if use ntfs && ! egrep -q '^#define HAVE_LIBNTFS(3G)? 1$' "${S}"/config.h ; then + die "Failed to find either NTFS or NTFS-3G library." + fi + if use reiserfs && egrep -q 'undef HAVE_LIBREISERFS\>' "${S}"/config.h ; then + die "Failed to find reiserfs library." + fi + if use jpeg && egrep -q 'undef HAVE_LIBJPEG\>' "${S}"/config.h ; then + die "Failed to find jpeg library." + fi +} diff --git a/app-admin/testdisk/testdisk-6.14-r1.ebuild b/app-admin/testdisk/testdisk-6.14-r1.ebuild new file mode 100644 index 000000000000..b38dab54651a --- /dev/null +++ b/app-admin/testdisk/testdisk-6.14-r1.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +AUTOTOOLS_AUTORECONF=1 + +inherit autotools-utils eutils flag-o-matic + +DESCRIPTION="Checks and undeletes partitions + PhotoRec, signature based recovery tool" +HOMEPAGE="http://www.cgsecurity.org/wiki/TestDisk" +SRC_URI="http://www.cgsecurity.org/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~arm ~ppc ~x86" +IUSE="ewf jpeg ntfs reiserfs static qt4" + +REQUIRED_USE="static? ( !qt4 )" + +# WARNING: reiserfs support does NOT work with reiserfsprogs +# you MUST use progsreiserfs-0.3.1_rc8 (the last version ever released). +DEPEND=" + static? ( + sys-apps/util-linux[static-libs] + >=sys-libs/ncurses-5.2[static-libs] + jpeg? ( virtual/jpeg:*[static-libs] ) + ntfs? ( sys-fs/ntfs3g[static-libs] ) + reiserfs? ( >=sys-fs/progsreiserfs-0.3.1_rc8[static-libs] ) + >=sys-fs/e2fsprogs-1.35[static-libs] + sys-libs/zlib[static-libs] + !arm? ( ewf? ( app-forensics/libewf:*[static-libs] ) ) + ) + !static? ( + sys-apps/util-linux + >=sys-libs/ncurses-5.2 + jpeg? ( virtual/jpeg:* ) + ntfs? ( sys-fs/ntfs3g ) + reiserfs? ( >=sys-fs/progsreiserfs-0.3.1_rc8 ) + >=sys-fs/e2fsprogs-1.35 + sys-libs/zlib + !arm? ( ewf? ( app-forensics/libewf:* ) ) + qt4? ( >=dev-qt/qtgui-4.0.1:* ) + )" +RDEPEND="!static? ( ${DEPEND} )" + +AUTOTOOLS_IN_SOURCE_BUILD=1 +DOCS=( ) +PATCHES=( "${FILESDIR}/fix_rare_crash-6.14.patch" ) + +src_configure() { + local myconf + + # this is static method is the same used by upstream for their 'static' make + # target, but better, as it doesn't break. + use static && append-ldflags -static + + # --with-foo are broken, any use of --with/--without disable the + # functionality. + # The following variation must be used. + use reiserfs || myconf+=" --without-reiserfs" + use ntfs || myconf+=" --without-ntfs --without-ntfs3g" + use jpeg || myconf+=" --without-jpeg" + use ewf || myconf+=" --without-ewf" + myconf+=$(usex qt4 " --enable-qt" " --disable-qt") + + econf \ + --docdir "${ROOT}/usr/share/doc/${P}" \ + --enable-sudo \ + ${myconf} + + # perform safety checks for NTFS, REISERFS and JPEG + if use ntfs && ! egrep -q '^#define HAVE_LIBNTFS(3G)? 1$' "${S}"/config.h ; then + die "Failed to find either NTFS or NTFS-3G library." + fi + if use reiserfs && egrep -q 'undef HAVE_LIBREISERFS\>' "${S}"/config.h ; then + die "Failed to find reiserfs library." + fi + if use jpeg && egrep -q 'undef HAVE_LIBJPEG\>' "${S}"/config.h ; then + die "Failed to find jpeg library." + fi +} diff --git a/app-admin/testdisk/testdisk-6.14.ebuild b/app-admin/testdisk/testdisk-6.14.ebuild new file mode 100644 index 000000000000..425b384de7c4 --- /dev/null +++ b/app-admin/testdisk/testdisk-6.14.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils flag-o-matic + +DESCRIPTION="Checks and undeletes partitions + PhotoRec, signature based recovery tool" +HOMEPAGE="http://www.cgsecurity.org/wiki/TestDisk" +SRC_URI="http://www.cgsecurity.org/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~arm ppc x86" +IUSE="jpeg ntfs reiserfs static" + +# WARNING: reiserfs support does NOT work with reiserfsprogs +# you MUST use progsreiserfs-0.3.1_rc8 (the last version ever released). +DEPEND=" + sys-apps/util-linux + >=sys-libs/ncurses-5.2 + jpeg? ( virtual/jpeg:* ) + ntfs? ( sys-fs/ntfs3g ) + reiserfs? ( >=sys-fs/progsreiserfs-0.3.1_rc8 ) + >=sys-fs/e2fsprogs-1.35 + sys-libs/zlib" +RDEPEND="!static? ( ${DEPEND} )" + +src_configure() { + local myconf + + # this is static method is the same used by upstream for their 'static' make + # target, but better, as it doesn't break. + use static && append-ldflags -static + + # --with-foo are broken, any use of --with/--without disable the + # functionality. + # The following variation must be used. + use reiserfs || myconf+=" --without-reiserfs" + use ntfs || myconf+=" --without-ntfs" + use jpeg || myconf+=" --without-jpeg" + + econf \ + --docdir="${ED}/usr/share/doc/${PF}" \ + --without-ewf \ + --enable-sudo \ + ${myconf} + + # perform safety checks for NTFS, REISERFS and JPEG + if use ntfs && ! egrep -q '^#define HAVE_LIBNTFS(3G)? 1$' "${S}"/config.h ; then + die "Failed to find either NTFS or NTFS-3G library." + fi + if use reiserfs && egrep -q 'undef HAVE_LIBREISERFS\>' "${S}"/config.h ; then + die "Failed to find reiserfs library." + fi + if use jpeg && egrep -q 'undef HAVE_LIBJPEG\>' "${S}"/config.h ; then + die "Failed to find jpeg library." + fi +} diff --git a/app-admin/testdisk/testdisk-7.0-r1.ebuild b/app-admin/testdisk/testdisk-7.0-r1.ebuild new file mode 100644 index 000000000000..6b9540c7d98a --- /dev/null +++ b/app-admin/testdisk/testdisk-7.0-r1.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +AUTOTOOLS_AUTORECONF=1 + +inherit autotools-utils eutils flag-o-matic + +DESCRIPTION="Checks and undeletes partitions + PhotoRec, signature based recovery tool" +HOMEPAGE="http://www.cgsecurity.org/wiki/TestDisk" +SRC_URI="http://www.cgsecurity.org/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~x86" +IUSE="jpeg ntfs reiserfs static" + +# WARNING: reiserfs support does NOT work with reiserfsprogs +# you MUST use progsreiserfs-0.3.1_rc8 (the last version ever released). +DEPEND=" + static? ( + sys-apps/util-linux[static-libs] + >=sys-libs/ncurses-5.2[static-libs] + jpeg? ( virtual/jpeg:*[static-libs] ) + ntfs? ( <=sys-fs/ntfs3g-2013.1.13[static-libs] ) + reiserfs? ( >=sys-fs/progsreiserfs-0.3.1_rc8[static-libs] ) + >=sys-fs/e2fsprogs-1.35[static-libs] + sys-libs/zlib[static-libs] + ) + !static? ( + sys-apps/util-linux + >=sys-libs/ncurses-5.2 + jpeg? ( virtual/jpeg:* ) + ntfs? ( <=sys-fs/ntfs3g-2013.1.13 ) + reiserfs? ( >=sys-fs/progsreiserfs-0.3.1_rc8 ) + >=sys-fs/e2fsprogs-1.35 + sys-libs/zlib + )" +RDEPEND="!static? ( ${DEPEND} )" + +AUTOTOOLS_IN_SOURCE_BUILD=1 +DOCS=( ) +PATCHES=( "${FILESDIR}/install-gentoo.patch" ) + +src_configure() { + local myconf + + # this is static method is the same used by upstream for their 'static' make + # target, but better, as it doesn't break. + use static && append-ldflags -static + + # --with-foo are broken, any use of --with/--without disable the + # functionality. + # The following variation must be used. + use reiserfs || myconf+=" --without-reiserfs" + use ntfs || myconf+=" --without-ntfs --without-ntfs3g" + use jpeg || myconf+=" --without-jpeg" + + econf \ + --docdir "${ROOT}/usr/share/doc/${P}" \ + --disable-qt \ + --without-ewf \ + --enable-sudo \ + ${myconf} + + # perform safety checks for NTFS, REISERFS and JPEG + if use ntfs && ! egrep -q '^#define HAVE_LIBNTFS(3G)? 1$' "${S}"/config.h ; then + die "Failed to find either NTFS or NTFS-3G library." + fi + if use reiserfs && egrep -q 'undef HAVE_LIBREISERFS\>' "${S}"/config.h ; then + die "Failed to find reiserfs library." + fi + if use jpeg && egrep -q 'undef HAVE_LIBJPEG\>' "${S}"/config.h ; then + die "Failed to find jpeg library." + fi +} diff --git a/app-admin/testdisk/testdisk-7.0-r2.ebuild b/app-admin/testdisk/testdisk-7.0-r2.ebuild new file mode 100644 index 000000000000..4c8b40f5070c --- /dev/null +++ b/app-admin/testdisk/testdisk-7.0-r2.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +AUTOTOOLS_AUTORECONF=1 + +inherit autotools-utils eutils flag-o-matic + +DESCRIPTION="Checks and undeletes partitions + PhotoRec, signature based recovery tool" +HOMEPAGE="http://www.cgsecurity.org/wiki/TestDisk" +SRC_URI="http://www.cgsecurity.org/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~arm ppc x86" +IUSE="ewf jpeg ntfs reiserfs static qt4" + +REQUIRED_USE="static? ( !qt4 )" + +# WARNING: reiserfs support does NOT work with reiserfsprogs +# you MUST use progsreiserfs-0.3.1_rc8 (the last version ever released). +DEPEND=" + static? ( + sys-apps/util-linux[static-libs] + >=sys-libs/ncurses-5.2[static-libs] + jpeg? ( virtual/jpeg:*[static-libs] ) + ntfs? ( sys-fs/ntfs3g[static-libs] ) + reiserfs? ( >=sys-fs/progsreiserfs-0.3.1_rc8[static-libs] ) + >=sys-fs/e2fsprogs-1.35[static-libs] + sys-libs/zlib[static-libs] + !arm? ( ewf? ( app-forensics/libewf:*[static-libs] ) ) + ) + !static? ( + sys-apps/util-linux + >=sys-libs/ncurses-5.2 + jpeg? ( virtual/jpeg:* ) + ntfs? ( sys-fs/ntfs3g ) + reiserfs? ( >=sys-fs/progsreiserfs-0.3.1_rc8 ) + >=sys-fs/e2fsprogs-1.35 + sys-libs/zlib + !arm? ( ewf? ( app-forensics/libewf:* ) ) + qt4? ( >=dev-qt/qtgui-4.0.1:* ) + )" +RDEPEND="!static? ( ${DEPEND} )" + +AUTOTOOLS_IN_SOURCE_BUILD=1 +DOCS=( ) + +src_configure() { + local myconf + + # this is static method is the same used by upstream for their 'static' make + # target, but better, as it doesn't break. + use static && append-ldflags -static + + # --with-foo are broken, any use of --with/--without disable the + # functionality. + # The following variation must be used. + use reiserfs || myconf+=" --without-reiserfs" + use ntfs || myconf+=" --without-ntfs --without-ntfs3g" + use jpeg || myconf+=" --without-jpeg" + use ewf || myconf+=" --without-ewf" + myconf+=$(usex qt4 " --enable-qt" " --disable-qt") + + econf \ + --docdir "${ROOT}/usr/share/doc/${P}" \ + --enable-sudo \ + ${myconf} + + # perform safety checks for NTFS, REISERFS and JPEG + if use ntfs && ! egrep -q '^#define HAVE_LIBNTFS(3G)? 1$' "${S}"/config.h ; then + die "Failed to find either NTFS or NTFS-3G library." + fi + if use reiserfs && egrep -q 'undef HAVE_LIBREISERFS\>' "${S}"/config.h ; then + die "Failed to find reiserfs library." + fi + if use jpeg && egrep -q 'undef HAVE_LIBJPEG\>' "${S}"/config.h ; then + die "Failed to find jpeg library." + fi +} diff --git a/app-admin/testdisk/testdisk-7.0.ebuild b/app-admin/testdisk/testdisk-7.0.ebuild new file mode 100644 index 000000000000..c2c69f965a42 --- /dev/null +++ b/app-admin/testdisk/testdisk-7.0.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +AUTOTOOLS_AUTORECONF=1 + +inherit autotools-utils eutils flag-o-matic + +DESCRIPTION="Checks and undeletes partitions + PhotoRec, signature based recovery tool" +HOMEPAGE="http://www.cgsecurity.org/wiki/TestDisk" +SRC_URI="http://www.cgsecurity.org/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~arm ~ppc x86" +IUSE="jpeg ntfs reiserfs static" + +# WARNING: reiserfs support does NOT work with reiserfsprogs +# you MUST use progsreiserfs-0.3.1_rc8 (the last version ever released). +DEPEND=" + static? ( + sys-apps/util-linux[static-libs] + >=sys-libs/ncurses-5.2[static-libs] + jpeg? ( virtual/jpeg:*[static-libs] ) + ntfs? ( <=sys-fs/ntfs3g-2013.1.13[static-libs] ) + reiserfs? ( >=sys-fs/progsreiserfs-0.3.1_rc8[static-libs] ) + >=sys-fs/e2fsprogs-1.35[static-libs] + sys-libs/zlib[static-libs] + ) + !static? ( + sys-apps/util-linux + >=sys-libs/ncurses-5.2 + jpeg? ( virtual/jpeg:* ) + ntfs? ( <=sys-fs/ntfs3g-2013.1.13 ) + reiserfs? ( >=sys-fs/progsreiserfs-0.3.1_rc8 ) + >=sys-fs/e2fsprogs-1.35 + sys-libs/zlib + )" +RDEPEND="!static? ( ${DEPEND} )" + +AUTOTOOLS_IN_SOURCE_BUILD=1 +DOCS=( ) +PATCHES=( "${FILESDIR}/install-gentoo.patch" ) + +src_configure() { + local myconf + + # this is static method is the same used by upstream for their 'static' make + # target, but better, as it doesn't break. + use static && append-ldflags -static + + # --with-foo are broken, any use of --with/--without disable the + # functionality. + # The following variation must be used. + use reiserfs || myconf+=" --without-reiserfs" + use ntfs || myconf+=" --without-ntfs --without-ntfs3g" + use jpeg || myconf+=" --without-jpeg" + + econf \ + --disable-qt \ + --without-ewf \ + --enable-sudo \ + ${myconf} + + # perform safety checks for NTFS, REISERFS and JPEG + if use ntfs && ! egrep -q '^#define HAVE_LIBNTFS(3G)? 1$' "${S}"/config.h ; then + die "Failed to find either NTFS or NTFS-3G library." + fi + if use reiserfs && egrep -q 'undef HAVE_LIBREISERFS\>' "${S}"/config.h ; then + die "Failed to find reiserfs library." + fi + if use jpeg && egrep -q 'undef HAVE_LIBJPEG\>' "${S}"/config.h ; then + die "Failed to find jpeg library." + fi +} diff --git a/app-admin/tmpreaper/Manifest b/app-admin/tmpreaper/Manifest new file mode 100644 index 000000000000..fbe35798c580 --- /dev/null +++ b/app-admin/tmpreaper/Manifest @@ -0,0 +1 @@ +DIST tmpreaper_1.6.13+nmu1.tar.gz 141080 SHA256 c88f05b5d995b9544edb7aaf36ac5ce55c6fac2a4c21444e5dba655ad310b738 SHA512 c868d421a7757a47b81c8932743981ded2b415c83377f8781fdfd4dfda48c701991da17fa262dfa0680b2a315d6b46ee4c9035ba4c06f5a0c1bc32efa717f19f WHIRLPOOL 65a6717a19620ef85f301c38fab9fa6b5b82a2a43acace48a7c3578231b6a378a1c6dcbd6d716395f235c0184bf3cc171bc3326790c2241606a1a8f244165253 diff --git a/app-admin/tmpreaper/files/tmpreaper-1.6.13-gentoo.patch b/app-admin/tmpreaper/files/tmpreaper-1.6.13-gentoo.patch new file mode 100644 index 000000000000..afd5f60f3a1c --- /dev/null +++ b/app-admin/tmpreaper/files/tmpreaper-1.6.13-gentoo.patch @@ -0,0 +1,47 @@ +diff -ur tmpreaper-1.6.13+nmu1.orig//debian/cron.daily tmpreaper-1.6.13+nmu1/debian/cron.daily +--- tmpreaper-1.6.13+nmu1.orig//debian/cron.daily 2008-05-19 10:10:16.000000000 -0700 ++++ tmpreaper-1.6.13+nmu1/debian/cron.daily 2010-10-10 19:44:14.563252064 -0700 +@@ -32,28 +32,7 @@ + + # Set config defaults + SHOWWARNING='' +- +-# get the TMPREAPER_TIME value from /etc/default/rcS +- +-if grep '^TMPTIME=' /etc/default/rcS >/dev/null 2>&1; then +- eval $(grep '^TMPTIME=' /etc/default/rcS) +- if [ -n "$TMPTIME" ]; then +- # Don't clean files if TMPTIME is negative or 'infinite' +- # to mimic the way /lib/init/bootclean.sh works. +- case "$TMPTIME" in +- -*|infinite|infinity) +- # don't use this as default +- ;; +- *) +- if [ "$TMPTIME" -gt 0 ]; then +- TMPREAPER_TIME=${TMPTIME}d +- else +- TMPREAPER_TIME=7d +- fi +- ;; +- esac +- fi +-fi ++TMPREAPER_TIME='' + + # ! Important ! The "set -f" below prevents the shell from expanding + # file paths, which is vital for the configuration below to work. +diff -ur tmpreaper-1.6.13+nmu1.orig//debian/tmpreaper.conf tmpreaper-1.6.13+nmu1/debian/tmpreaper.conf +--- tmpreaper-1.6.13+nmu1.orig//debian/tmpreaper.conf 2006-12-08 04:24:03.000000000 -0800 ++++ tmpreaper-1.6.13+nmu1/debian/tmpreaper.conf 2010-10-10 19:45:53.251119766 -0700 +@@ -40,9 +40,7 @@ + # TMPREAPER_ADDITIONALOPTIONS + # extra options that are passed to tmpreaper, e.g. --all + +-# uncomment and change the next line to overrule the /etc/default/rcS value +-# TMPREAPER_TIME=7d +- ++TMPREAPER_TIME=7d + TMPREAPER_PROTECT_EXTRA='' + TMPREAPER_DIRS='/tmp/.' + TMPREAPER_DELAY='256' diff --git a/app-admin/tmpreaper/files/tmpreaper-1.6.7-fix-protect.patch b/app-admin/tmpreaper/files/tmpreaper-1.6.7-fix-protect.patch new file mode 100644 index 000000000000..a76c80dd5fc7 --- /dev/null +++ b/app-admin/tmpreaper/files/tmpreaper-1.6.7-fix-protect.patch @@ -0,0 +1,46 @@ +--- tmpreaper.c.orig 2006-12-05 10:55:58.000000000 -0800 ++++ tmpreaper.c 2006-12-05 10:56:46.000000000 -0800 +@@ -467,6 +467,21 @@ + continue; + } + ++ if (FLAGS_PROTECT_P (flags)) { ++ skip = i = 0; ++ do { ++ if (sb.st_ino == protect_table[i].inode) { ++ message (LOG_VERBOSE, ++ "Entry matching `--protect' pattern skipped. `%s'\n", ++ protect_table[i].name); ++ skip = 1; ++ break; ++ } ++ } while (protect_table[i++].name); ++ if (skip) ++ continue; ++ } ++ + if (S_ISDIR (sb.st_mode)) { + char *dst; + +@@ -489,21 +504,6 @@ + (u_int) getpid(), ent->d_name); + } + +- if (FLAGS_PROTECT_P (flags)) { +- skip = i = 0; +- do { +- if (sb.st_ino == protect_table[i].inode) { +- message (LOG_VERBOSE, +- "Entry matching `--protect' pattern skipped. `%s'\n", +- protect_table[i].name); +- skip = 1; +- break; +- } +- } while (protect_table[i++].name); +- if (skip) +- continue; +- } +- + /* Decide whether to remove the file or not */ + /* check for mtime on directory instead of atime if requested */ + if ( FLAGS_MTIME_P(flags) || diff --git a/app-admin/tmpreaper/metadata.xml b/app-admin/tmpreaper/metadata.xml new file mode 100644 index 000000000000..3fd73a03715e --- /dev/null +++ b/app-admin/tmpreaper/metadata.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>xmw@gentoo.org</email> + <name>Michael Weber</name> + </maintainer> + <longdescription lang="en"> + tmpreaper is a program that can be used to clean out temporary-file + directories. It recursively searches the directory, refusing to chdir() + across symlinks, and removes files that haven't been accessed in a + user-specified amount of time. You can specify a set of files to protect + from deletion with a shell pattern. It will not remove files owned by the + process EUID that have the `w' bit clear, unless you ask it to, much like + `rm -f'. `tmpreaper' will not remove symlinks, sockets, fifos, or special + files unless given a command line option enabling it to. + + WARNING: Please do not run `tmpreaper' on `/'. There are no protections + against this written into the program, as that would prevent it from + functioning the way you'd expect it to in a `chroot(8)' environment. + + The daily tmpreaper run can be configured through /etc/tmpreaper.conf . + </longdescription> +</pkgmetadata> diff --git a/app-admin/tmpreaper/tmpreaper-1.6.13.ebuild b/app-admin/tmpreaper/tmpreaper-1.6.13.ebuild new file mode 100644 index 000000000000..8b9daeccc9df --- /dev/null +++ b/app-admin/tmpreaper/tmpreaper-1.6.13.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="3" +inherit eutils + +MY_P="${PN}_${PV}+nmu1" +DESCRIPTION="A utility for removing files based on when they were last accessed" +HOMEPAGE="http://packages.debian.org/sid/tmpreaper" +SRC_URI="mirror://debian/pool/main/t/${PN}/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~arm ppc x86" +IUSE="" + +DEPEND="" +RDEPEND="" + +S="${WORKDIR}/${MY_P/_/-}" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-1.6.7-fix-protect.patch + epatch "${FILESDIR}"/${P}-gentoo.patch +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + insinto /etc + doins debian/tmpreaper.conf || die "failed to install" + + exeinto /etc/cron.daily + newexe debian/cron.daily tmpreaper || die "failed to install cron script" + doman debian/tmpreaper.conf.5 || die + dodoc README ChangeLog debian/README* || die +} + +pkg_postinst() { + elog "This package installs a cron script under /etc/cron.daily" + elog "You can configure it using /etc/tmpreaper.conf" + elog "Consult tmpreaper.conf man page for more information" + elog "Read /usr/share/doc/${P}/README.security and" + elog "remove SHOWWARNING from /etc/tmpreaper.conf afterwards" +} diff --git a/app-admin/tmpwatch/Manifest b/app-admin/tmpwatch/Manifest new file mode 100644 index 000000000000..ca22cfe03d8c --- /dev/null +++ b/app-admin/tmpwatch/Manifest @@ -0,0 +1 @@ +DIST tmpwatch-2.11.tar.bz2 145609 SHA256 93168112b2515bc4c7117e8113b8d91e06b79550d2194d62a0c174fe6c2aa8d4 SHA512 9242c5e1812c2ffc756cfc4cdc3023d0c0515e7c180e58ca3a838aa075d09fe4dc08dbc9afbc87ce3382e8aa8cb80a70e406deeab4ce10b39b6845d667989d97 WHIRLPOOL 94d83c4a2b1c1a19ab88632c61de37903b709bc7fa88aff9f8ac4f4b71a26b8e6fbcb1564b3bce08ed5d1d0a78511c3470978a13211356f5fdf10b4d40f2de1c diff --git a/app-admin/tmpwatch/files/tmpwatch-2.11-boottime.patch b/app-admin/tmpwatch/files/tmpwatch-2.11-boottime.patch new file mode 100644 index 000000000000..b622c8d70e70 --- /dev/null +++ b/app-admin/tmpwatch/files/tmpwatch-2.11-boottime.patch @@ -0,0 +1,30 @@ +Make boot time detection failures non-fatal. Taken from PLD Linux + +Gentoo bug: https://bugs.gentoo.org/show_bug.cgi?id=468444 +PLD bug: https://bugs.launchpad.net/pld-linux/+bug/1034364 +Patch: https://github.com/pld-linux/tmpwatch/blob/master/tmpwatch-boottime.patch + +--- tmpwatch-2.11/tmpwatch.c~ ++++ tmpwatch-2.11/tmpwatch.c +@@ -666,9 +666,11 @@ + time_t boot_time; + + if (clock_gettime(CLOCK_REALTIME, &real_clock) != 0 +- || clock_gettime(CLOCK_BOOTTIME, &boot_clock) != 0) +- message(LOG_FATAL, "Error determining boot time: %s\n", ++ || clock_gettime(CLOCK_BOOTTIME, &boot_clock) != 0) { ++ message(LOG_DEBUG, "Error determining boot time: %s\n", + strerror(errno)); ++ socket_kill_time = 0; /* Never remove sockets */ ++ } else { + boot_time = real_clock.tv_sec - boot_clock.tv_sec; + if (real_clock.tv_nsec < boot_clock.tv_nsec) + boot_time--; +@@ -677,6 +679,7 @@ + boot_time -= 2; + + socket_kill_time = boot_time - grace_seconds; ++ } + #else + socket_kill_time = 0; /* Never remove sockets */ + #endif diff --git a/app-admin/tmpwatch/files/tmpwatch.cron b/app-admin/tmpwatch/files/tmpwatch.cron new file mode 100644 index 000000000000..95634ba16c78 --- /dev/null +++ b/app-admin/tmpwatch/files/tmpwatch.cron @@ -0,0 +1,48 @@ +#!/bin/sh +# $Id$ +# vim: ft=sh + +# This cron script contains several (commented out) examples. You may use +# them as is, by uncommenting them, or modify them to suit your needs. Read +# tmpwatch(8) for more information on tmpwatch parameters. + +### Variables ### + +TMPWATCH="/usr/sbin/tmpwatch" +#PORTAGE_TMPDIR="$(portageq envvar PORTAGE_TMPDIR)/portage" +#PORTAGE_LOGDIR="$(portageq envvar PORT_LOGDIR)" +#DISTDIR="$(portageq distdir)" + +### EXAMPLES ### + +# NOTE: if you have noatime in /etc/fstab for any partitions you plan on +# running tmpwatch on, you should obviously change any of the examples that +# use atime (-u|--atime). Those that don't specify anything, default to +# atime. + +# NOTE2: the time value is in HOURS! + +# Delete everything in /tmp that haven't been accessed in a week (>=168 hrs). +# +# if [[ -d /tmp ]]; then +# ${TMPWATCH} --atime 168 /tmp +# fi + +# Delete everything in PORTAGE_TMPDIR that hasn't been modified in 2 weeks. +# +# if [[ -d ${PORTAGE_TMPDIR:-/var/tmp/portage} && -z $(/usr/bin/pgrep emerge) ]]; then +# ${TMPWATCH} --mtime --all 336 ${PORTAGE_TMPDIR:-/var/tmp/portage} +# fi + +# Delete everything in DISTDIR that hasn't been accessed in 6 months (going +# by 30 day months) +# +# if [[ -d ${DISTDIR:-/usr/portage/distfiles} ]]; then +# ${TMPWATCH} --atime --fuser 4320 ${DISTDIR:-/usr/portage/distfiles} +# fi + +# Delete everything in PORTAGE_LOGDIR that hasn't been accessed in 4 weeks +# +# if [[ -d ${PORTAGE_LOGDIR:-/var/log/portage} ]]; then +# ${TMPWATCH} --atime 772 ${PORTAGE_LOGDIR:-/var/log/portage} +# fi diff --git a/app-admin/tmpwatch/metadata.xml b/app-admin/tmpwatch/metadata.xml new file mode 100644 index 000000000000..7af4418d46d2 --- /dev/null +++ b/app-admin/tmpwatch/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> + <email>fauli@gentoo.org</email> + <name>Christian Faulhammer</name> + </maintainer> +</pkgmetadata> diff --git a/app-admin/tmpwatch/tmpwatch-2.11-r1.ebuild b/app-admin/tmpwatch/tmpwatch-2.11-r1.ebuild new file mode 100644 index 000000000000..5a300e412916 --- /dev/null +++ b/app-admin/tmpwatch/tmpwatch-2.11-r1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit toolchain-funcs eutils + +DESCRIPTION="Files which haven't been accessed in a given period of time are removed from specified directories" +HOMEPAGE="https://fedorahosted.org/tmpwatch/" +SRC_URI="https://fedorahosted.org/releases/t/m/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="selinux" + +RDEPEND="selinux? ( sec-policy/selinux-tmpreaper )" +DEPEND="" + +src_prepare() { + epatch "${FILESDIR}/${P}-boottime.patch" + epatch_user +} + +src_compile() { + emake AR="$(tc-getAR)" +} + +src_install() { + dosbin tmpwatch || die + doman tmpwatch.8 || die + dodoc ChangeLog NEWS README AUTHORS || die + + exeinto /etc/cron.daily + newexe "${FILESDIR}/${PN}.cron" "${PN}" || die +} diff --git a/app-admin/tmpwatch/tmpwatch-2.11.ebuild b/app-admin/tmpwatch/tmpwatch-2.11.ebuild new file mode 100644 index 000000000000..64b9f553c4a5 --- /dev/null +++ b/app-admin/tmpwatch/tmpwatch-2.11.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit toolchain-funcs + +DESCRIPTION="Files which haven't been accessed in a given period of time are removed from specified directories" +HOMEPAGE="https://fedorahosted.org/tmpwatch/" +SRC_URI="https://fedorahosted.org/releases/t/m/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86" +IUSE="selinux" + +RDEPEND="selinux? ( sec-policy/selinux-tmpreaper )" +DEPEND="" + +src_compile() { + emake AR="$(tc-getAR)" +} + +src_install() { + dosbin tmpwatch || die + doman tmpwatch.8 || die + dodoc ChangeLog NEWS README AUTHORS || die + + exeinto /etc/cron.daily + newexe "${FILESDIR}/${PN}.cron" "${PN}" || die +} diff --git a/app-admin/tripwire/Manifest b/app-admin/tripwire/Manifest new file mode 100644 index 000000000000..33124b9a182e --- /dev/null +++ b/app-admin/tripwire/Manifest @@ -0,0 +1 @@ +DIST tripwire-2.4.2.2-src.tar.bz2 716616 SHA256 e09a7bdca9302e704cc62067399e0b584488f825b0e58c82ad6d54cd2e899fad SHA512 be39757aac7b74d4deac6c5048d0964d839a32f8f2a0d1878c4246888c4d59e35a503413595178c7af3a0da80725d0b36c21026dc734e1f760c9affda017bbbb WHIRLPOOL beb99e1ae055947a4b94a45f51492bcc453def5a41188f853ff3285a85ef8e2921274b86b095b77dbcdc8f549358f6216996a75ba391247e17bf7a29c78849c5 diff --git a/app-admin/tripwire/files/tripwire b/app-admin/tripwire/files/tripwire new file mode 100644 index 000000000000..8f0f23f3e2d5 --- /dev/null +++ b/app-admin/tripwire/files/tripwire @@ -0,0 +1,10 @@ +#!/bin/sh +HOST_NAME=`uname -n` +if [ ! -e /var/lib/tripwire/${HOST_NAME}.twd ] ; then + echo "**** Error: Tripwire database for ${HOST_NAME} not found. ****" + echo "**** Check tripwire.txt file for instructions or install ****" + echo "**** app-admin/mktwpol package (if you used the \"tools\" ****" + echo "**** USE flag, this has been done for you already. ****" +else + test -f /etc/tripwire/tw.cfg && /usr/sbin/tripwire --check --quiet +fi diff --git a/app-admin/tripwire/files/tripwire-2.4.2.2-buildnum.patch b/app-admin/tripwire/files/tripwire-2.4.2.2-buildnum.patch new file mode 100644 index 000000000000..becb0205e0de --- /dev/null +++ b/app-admin/tripwire/files/tripwire-2.4.2.2-buildnum.patch @@ -0,0 +1,7 @@ +diff -Nur a/src/buildnum.h b/src/buildnum.h +--- a/src/buildnum.h 2011-11-21 17:06:56.000000000 +0100 ++++ b/src/buildnum.h 2012-03-28 11:33:11.689974085 +0200 +@@ -1,2 +1,2 @@ +-#define BUILD_NUM _T("2") ++#define BUILD_NUM _T("0") + diff --git a/app-admin/tripwire/files/tripwire-2.4.2.2-exception-shadowing.patch b/app-admin/tripwire/files/tripwire-2.4.2.2-exception-shadowing.patch new file mode 100644 index 000000000000..1347590ef462 --- /dev/null +++ b/app-admin/tripwire/files/tripwire-2.4.2.2-exception-shadowing.patch @@ -0,0 +1,13 @@ +--- a/src/core/archive.cpp ++++ b/src/core/archive.cpp +@@ -886,8 +886,8 @@ void cLockedTemporaryFileArchive::OpenReadWrite( const TCHAR* filename, uint32 o + catch( eFSServices& e) + { + TSTRING errStr = TSS_GetString( cCore, core::STR_BAD_TEMPDIRECTORY ); +- eArchiveOpen e(strTempFile, errStr); +- throw e; ++ eArchiveOpen ex(strTempFile, errStr); ++ throw ex; + } + } + /////////////////////////////////////////////////////////////////////////////// diff --git a/app-admin/tripwire/files/tripwire-2.4.2.2-fix-configure.patch b/app-admin/tripwire/files/tripwire-2.4.2.2-fix-configure.patch new file mode 100644 index 000000000000..b72aaef681af --- /dev/null +++ b/app-admin/tripwire/files/tripwire-2.4.2.2-fix-configure.patch @@ -0,0 +1,12 @@ +diff -Nur a/configure.in b/configure.in +--- a/configure.in 2011-11-21 17:06:56.000000000 +0100 ++++ b/configure.in 2013-05-01 13:48:30.599978971 +0200 +@@ -6,7 +6,7 @@ + AC_CONFIG_SRCDIR([src/tw/tw.cpp]) + AC_CANONICAL_TARGET([]) + AM_INIT_AUTOMAKE(tripwire, 2.4.2.2) +-AM_CONFIG_HEADER(config.h) ++AC_CONFIG_HEADERS(config.h) + + dnl ################################# + dnl Cleanup Cruft Leftover From Patch diff --git a/app-admin/tripwire/files/tripwire-2.4.2.2-gcc-4.7.patch b/app-admin/tripwire/files/tripwire-2.4.2.2-gcc-4.7.patch new file mode 100644 index 000000000000..e8d35fb2ae39 --- /dev/null +++ b/app-admin/tripwire/files/tripwire-2.4.2.2-gcc-4.7.patch @@ -0,0 +1,25 @@ +diff -Nur a/src/cryptlib/algebra.h b/src/cryptlib/algebra.h +--- a/src/cryptlib/algebra.h 2011-11-21 16:06:56.000000000 +0000 ++++ b/src/cryptlib/algebra.h 2012-06-19 14:13:13.930019454 +0000 +@@ -273,7 +273,7 @@ + Element g[3]={b, a}; + unsigned int i0=0, i1=1, i2=2; + +- while (!Equal(g[i1], this->Zero())) ++ while (!this->Equal(g[i1], this->Zero())) + { + g[i2] = Mod(g[i0], g[i1]); + unsigned int t = i0; i0 = i1; i1 = i2; i2 = t; +diff -Nur a/src/twadmin/twadmincl.cpp b/src/twadmin/twadmincl.cpp +--- a/src/twadmin/twadmincl.cpp 2011-11-21 16:06:56.000000000 +0000 ++++ b/src/twadmin/twadmincl.cpp 2012-06-19 14:13:40.270019532 +0000 +@@ -33,6 +33,9 @@ + // twadmincl.cpp -- command line parsing for twadmin + // + ++ ++#include <unistd.h> ++ + #include "stdtwadmin.h" + + #include "twadmincl.h" diff --git a/app-admin/tripwire/files/tripwire-twpol-GENERIC.patch b/app-admin/tripwire/files/tripwire-twpol-GENERIC.patch new file mode 100644 index 000000000000..12b2419c5e71 --- /dev/null +++ b/app-admin/tripwire/files/tripwire-twpol-GENERIC.patch @@ -0,0 +1,25 @@ +--- a/policy/twpol-GENERIC.txt 2011-11-21 11:06:56.000000000 -0500 ++++ b/policy/twpol-GENERIC.txt 2013-09-11 08:13:34.000000000 -0400 +@@ -55,14 +55,14 @@ + ############################################################################## + + @@section GLOBAL +-TWROOT=; +-TWBIN=; +-TWPOL=; +-TWDB=; +-TWSKEY=; +-TWLKEY=; +-TWREPORT=; +-HOSTNAME=; ++#TWROOT=; ++TWBIN=/usr/sbin; ++TWPOL=/etc/tripwire; ++TWDB=/var/lib/tripwire/YOUR_HOSTNAME.twd; ++TWSKEY=/etc/tripwire; ++TWLKEY=/etc/tripwire; ++TWREPORT=/var/lib/tripwire/report; ++#HOSTNAME=; + + @@section FS + SEC_CRIT = $(IgnoreNone)-SHa ; # Critical files that cannot change diff --git a/app-admin/tripwire/files/tripwire.txt b/app-admin/tripwire/files/tripwire.txt new file mode 100644 index 000000000000..4f47f8bd8196 --- /dev/null +++ b/app-admin/tripwire/files/tripwire.txt @@ -0,0 +1,272 @@ +tripwire.txt v. 11 Sept 2013 + +Introduction to Tripwire, with Gentoo-specific installation information + +Tripwire software can monitor the integrity of critical system files and +directories by identifying specified changes made to selected system +files and directories. Configure Tripwire software to monitor your +system in the way that is best for you. + +Tripwire software works by comparing files and directories against a +defined baseline, stored in a tripwire-created database. Tripwire +generates the baseline by taking a "snapshot" of specified files and +directories. Tripwire software then compares the current system against +the baseline and reports modifications, additions, or deletions. Use +Tripwire software for system security, intrusion detection, damage +assessment, and recovery forensics. + + +To set-up Tripwire Configuration + +The Tripwire tarball installs the basic program files needed to run the +software. However, this installation does not prepare the configuration +files that Tripwire needs to perform correctly. After you install the +tripwire executable files and example configuration, you must: + +1. Review and perhaps edit the plain-text tripwire configuration file + (/etc/tripwire/twcfg.txt) with a text editor, if desired. + +2. Either run a configuration script (twsetup.sh from Gentoo's mktwpol + package, or tripwire-setup-keyfiles from Red Hat, or deprecated + twinstall.sh, also from Red Hat), or run the program `twadmin` with + the correct command line switches to make key files and encrypt/sign + the tripwire configuration file. + + Make site key file + ------------------ + `twadmin --generate-keys -S /etc/tripwire/site.key` + + Make local key file + ------------------- + `twadmin --generate-keys -L /etc/tripwire/$HOSTNAME-local.key` + + Make mandatory signed tripwire configuration file (tw.cfg) + ---------------------------------------------------------- + `twadmin --create-cfgfile -S /etc/tripwire/site.key /etc/tripwire/twcfg.txt` + +Note: Once encrypted/signed, the configuration file, tw.cfg, must not be +renamed or moved. The plain-text tripwire configuration file (twcfg.txt) +should be deleted. It can be recreated with `twadmin --print-cfgfile` + +3. Make a plain-text policy file. The use of the name twpol.txt is + common, but the name of this file is not defined or used by Tripwire, + other than preparation of the encrypted/signed policy file. + + To make the plain-text policy file, either run a policy file generator + (for example, mktwpol.sh from Gentoo's mktwpol package), or edit the + plain-text policy file (twpol-GENERIC.txt, or twpol.txt, or similar) + with a text editor. The plain-text policy file should not refer to + any non-existent file or directory. + + If you edit twpol-GENERIC.txt to act as your plain-text policy file, + provide your system's HOSTNAME at line 61. If you don't provide + the correct HOSTNAME, a tripwire inspection of the target computer's + filesystem will fail to check the tripwire database file for changes. + + TWDB=/var/lib/tripwire/YOUR_HOSTNAME.twd; + +4. Convert the plain-text policy file into the encrypted/signed form + that tripwire will refer to as it examines the files on the target + computer's filesystem. The default filename for the encrypted/signed + policy file is defined in the tripwire configuration file (tw.cfg) + and is usually tw.pol. The encryption/signing of plain-text twpol.txt + is done with yet another `twadmin` command line. + + Make mandatory encrypted/signed system inspection policy file + -------------------------------------------------------------- + `twadmin -m P -c /etc/tripwire/tw.cfg /etc/tripwire/twpol.txt` + +Note: If you modify the plain-text policy file after running the +configuration script, you must re-sign the plain-text policy file before +initializing the database file. Tripwire baseline database creation and +inspections refer to the encrypted/signed policy file, not to the +plain-text policy file. + +Note: The plain-text tripwire policy file (twpol.txt) should be deleted. +It can be recreated with `twadmin --print-polfile` + +5. Initialize the Tripwire database file. + + Record current file attributes in the tripwire database + ------------------------------------------------------- + `tripwire --init -c /etc/tripwire/tw.cfg` + +Note: Tripwire might issue some "Warning: File system error" errors, +and appear to hang. But as long as it follows with "### Continuing...", +it is still working. + +6. Run the first integrity check. + + `tripwire --check -c /etc/tripwire/tw.cfg` + +Note: The use of "-c /etc/tripwire/tw.cfg" is not required if Tripwire +uses the default tripwire configuration directory and file names. If +you defer to tripwire default filenames, then updating a text policy +file into a tripwire database, and running an integrity check, can be +done with these commands: + + `twadmin --create-polfile /etc/tripwire/twpol.txt` + `tripwire --init` + `tripwire --check` + +Modifying the Policy File + +How Tripwire software checks your system is specified in the Tripwire +plain-text policy file (twpol.txt). A default policy file is included in +the Tripwire software installation. This policy file should be tailored +to fit your particular system. Tailoring the policy file is necessary +to take advantage of Tripwire software's ability to monitor changes on +your system. + +The plain-text policy file is usually located at /etc/tripwire/twpol.txt. +An example policy file (located at /etc/tripwire/twpol-GENERIC.txt, or +at /usr/share/doc/tripwire-VER#-REL#/policyguide.txt) is included to +help you learn the policy language. Read the sample policy files and +the comments in the sample policy file to learn the policy language. + +After you modify the plain-text policy file, don't forget! + + encrypt/sign using `twadmin --create-polfile /etc/tripwire/twpol.txt` + + +Selecting Passphrases + +Tripwire files are encrypted/signed using site or local keys. These keys +are protected by passphrases. When selecting passphrases, the following +recommendations apply: + +Use at least eight alphanumeric and symbolic characters for each +passphrase. The maximum length of a passphrase is 1023 characters. +Quotes should not be used as passphrase characters. + +Assign a unique passphrase for the site key. The site key passphrase +protects the site key, which is used to sign Tripwire software +configuration and policy files. Assign a unique passphrase for the local +key. The local key signs the Tripwire baseline database file. The local +key may sign the Tripwire report files also. + +Store the passphrases in a secure location. There is no way to remove +encryption from a signed file if you forget your passphrase and lost the +key files. If you forget the passphrases, the files are unusable. In +that case you must create new key files and the baseline database. + + +Initializing the Database + +In Database Initialization mode, Tripwire software builds a database of +filesystem objects based on the rules in the policy file. This database +serves as the baseline for integrity checks. The syntax for Database +Initialization mode is: + + `tripwire --init -c /etc/tripwire/tw.cfg` + + +Running an Integrity Check + +The Integrity Check mode compares the current file system objects with +their properties recorded in the Tripwire database. Violations are +printed to stdout. The report file is saved and can later be accessed by +twprint. An email option enables you to send email. The syntax for +Integrity Check mode is: + + `tripwire --check -c /etc/tripwire/tw.cfg` + + +Printing Reports - twprint Print Report Mode + +The twprint --print-report mode prints the contents of a Tripwire +report. If you do not specify a report with the --twrfile or -r +command-line argument, the default report file specified by the +configuration file REPORTFILE variable is used. + +Example: On a machine named LIGHTHOUSE, the command could be: + + `twprint -m r --twrfile LIGHTHOUSE-19990622-021212.twr` + + +Updating the Database after an Integrity Check + +Database Update mode enables you to update the Tripwire database after +an integrity check if you determine that the violations discovered are +valid. This update process saves time by enabling you to update the +database without having to re-initialize it. It also enables selective +updating, which cannot be done through re-initialization. The syntax for +Database Update mode is: + + `tripwire --update` + + +Updating the Policy File + +Change the way that Tripwire software scans the system by changing the +rules in the policy file. You can then update the database without a +complete re-initialization. This saves a significant amount of time and +preserves security by keeping the policy file synchronized with the +database it uses. The syntax for Policy Update mode is: + + `tripwire --update-policy` + + +Testing email functions + +Test mode tests the software's email notification system, using the +settings currently specified in the configuration file. The syntax for +Email Test Reporting mode is: + + `tripwire --test` + + +Tripwire Components + +The policy file begins as a text file containing comments, rules, +directives, and variables. These dictate the way Tripwire software +checks your system. Each rule in the policy file specifies a system +object to be monitored. Rules also describe which changes to the object +to report, and which to ignore. + +System objects are the files and directories you wish to monitor. Each +object is identified by an object name. A property refers to a single +characteristic of an object that Tripwire software can monitor. +Directives control conditional processing of sets of rules in a policy +file. During installation, the text policy file is encrypted/signed and +renamed, and becomes the active policy file. + +The database file is an important component of Tripwire software. When +first installed, Tripwire software uses the policy file rules to create +the database file. The database file is a baseline "snapshot" of the +system in a known secure state. Tripwire software compares this baseline +against the current system to determine what changes have occurred. This +is an integrity check. + +When you perform an integrity check, Tripwire software produces report +files. Report files summarize any changes that violated the policy file +rules during the integrity check. You can view the report file in a +variety of formats, at varying levels of detail. + +The Tripwire configuration file stores system-specific information, such +as the location of Tripwire data files. Tripwire software generates some +of the configuration file information during installation. The system +administrator can change parameters in the configuration file at any +time. The configuration file variables POLFILE, DBFILE, REPORTFILE, +SITEKEYFILE, and LOCALKEYFILE specify where the policy file, database +file, report files, and site and local key files reside. These variables +must be defined or the configuration file is invalid. If any of these +variables are undefined, an error occurs on execution of Tripwire +software and the program exits. + + +Tripwire Help + +All Tripwire commands support the help arguments. + +Example: To get help with Create Configuration File mode, type: + + `twadmin --help --create-cfgfile` + + -? Display usage and version information + --help Display all command modes + --help all Display help for all command modes + --help [mode] Display help for current command mode + --version Display version information + +We recommend you read the Tripwire Release Notes and README file. diff --git a/app-admin/tripwire/files/twcfg.txt b/app-admin/tripwire/files/twcfg.txt new file mode 100644 index 000000000000..9cf39bcc01e4 --- /dev/null +++ b/app-admin/tripwire/files/twcfg.txt @@ -0,0 +1,15 @@ +ROOT =/usr/sbin +POLFILE =/etc/tripwire/tw.pol +DBFILE =/var/lib/tripwire/$(HOSTNAME).twd +REPORTFILE =/var/lib/tripwire/report/$(HOSTNAME)-$(DATE).twr +SITEKEYFILE =/etc/tripwire/site.key +LOCALKEYFILE =/etc/tripwire/$(HOSTNAME)-local.key +EDITOR =/bin/nano +LATEPROMPTING =false +LOOSEDIRECTORYCHECKING =false +MAILNOVIOLATIONS =true +EMAILREPORTLEVEL =3 +REPORTLEVEL =3 +MAILMETHOD =SENDMAIL +SYSLOGREPORTING =false +MAILPROGRAM =/usr/lib/sendmail -oi -t diff --git a/app-admin/tripwire/metadata.xml b/app-admin/tripwire/metadata.xml new file mode 100644 index 000000000000..6e194bd6a1a8 --- /dev/null +++ b/app-admin/tripwire/metadata.xml @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>nimiux@gentoo.org</email> + <name>Chema Alonso</name> + </maintainer> + <longdescription lang="en"> + Tripwire is a tool that aids system administrators and users in + monitoring a designated set of files for any changes. Used with system + files on a regular (e.g., daily) basis, Tripwire can notify system + administrators of corrupted or tampered files, so damage control + measures can be taken in a timely manner. + </longdescription> + <longdescription lang="es"> + Tripwire es una herramienta que ayuda a los administradores y + usuarios en la monitorización de los cambios en un conjunto de + ficheros. Se utiliza particularmente en los ficheros de sistema + de un modo regular (por ejemplo diariamente). Tripwire puede + notificar a los administradores de sistema sobre ficheros que + se han corrompido o han sido modificados maliciosamente, por lo + que se pueden adoptar medidas de control de forma periódica. + </longdescription> + <use> + <flag name="tools">Installs app-admin/mktwpol, providing scripts + for the installation/setup of tripwire, including generating the + tripwire policy file and maintenance of the tripwire database</flag> + <flag name="ssl">Adds support for Secure Socket Layer connections</flag> + <flag name="static">Builds the package statically</flag> + </use> + <upstream> + <remote-id type="sourceforge">tripwire</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/tripwire/tripwire-2.4.2.2-r3.ebuild b/app-admin/tripwire/tripwire-2.4.2.2-r3.ebuild new file mode 100644 index 000000000000..812de522276f --- /dev/null +++ b/app-admin/tripwire/tripwire-2.4.2.2-r3.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools eutils flag-o-matic + +DESCRIPTION="Open Source File Integrity Checker and IDS" +HOMEPAGE="http://www.tripwire.org/" +SRC_URI="mirror://sourceforge/tripwire/tripwire-${PV}-src.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86 ~x86-fbsd" +IUSE="ssl static +tools" + +DEPEND="sys-devel/automake + sys-devel/autoconf + ssl? ( dev-libs/openssl )" +RDEPEND="virtual/cron + virtual/mta + ssl? ( dev-libs/openssl )" +PDEPEND="tools? ( app-admin/mktwpol )" + +S="${WORKDIR}"/tripwire-"${PV}"-src + +src_prepare() { + epatch "${FILESDIR}"/"${P}"-fix-configure.patch + epatch "${FILESDIR}"/"${P}"-buildnum.patch + epatch "${FILESDIR}"/"${P}"-gcc-4.7.patch + epatch "${FILESDIR}"/"${PN}"-twpol-GENERIC.patch + epatch "${FILESDIR}"/"${P}"-exception-shadowing.patch + + mv configure.in configure.ac || die + eautoreconf +} + +src_configure() { + # tripwire can be sensitive to compiler optimisation. + # see #32613, #45823, and others. + # -taviso@gentoo.org + strip-flags + append-cppflags -DCONFIG_DIR='"\"/etc/tripwire\""' -fno-strict-aliasing + econf $(use_enable ssl openssl) $(use_enable static) +} + +src_install() { + dosbin "${S}"/bin/{siggen,tripwire,twadmin,twprint} + doman "${S}"/man/man{4/*.4,5/*.5,8/*.8} + dodir /etc/tripwire /var/lib/tripwire{,/report} + keepdir /var/lib/tripwire{,/report} + + exeinto /etc/cron.daily + doexe "${FILESDIR}"/tripwire + + dodoc ChangeLog policy/policyguide.txt TRADEMARK \ + "${FILESDIR}"/tripwire.txt + + insinto /etc/tripwire + doins "${FILESDIR}"/twcfg.txt policy/twpol-GENERIC.txt + + fperms 750 /etc/cron.daily/tripwire +} + +pkg_postinst() { + if [[ -z ${REPLACING_VERSIONS} ]] ; then + elog "Tripwire needs to be configured before its first run. You can" + elog "do this by manually editing the twpol-GENERIC.txt file shipped with" + elog "the package to suit your needs. A quickstart guide is provided" + elog "in tripwire.txt file to help you with this." + elog "To configure tripwire automatically, you can use the twsetup.sh" + elog "script provided by the app-admin/mktwpol package. This package is" + elog "installed for you by the \"tools\" USE flag (which is enabled by" + elog "default." +else + elog "Maintenance of tripwire policy files as packages are added" + elog "and deleted from your system can be automated by the mktwpol.sh" + elog "script provided by the app-admin/mktwpol package. This package" + elog "is installed for you if you append \"tools\" to your USE flags" + fi +} diff --git a/app-admin/ulogd/Manifest b/app-admin/ulogd/Manifest new file mode 100644 index 000000000000..8392508578e9 --- /dev/null +++ b/app-admin/ulogd/Manifest @@ -0,0 +1,2 @@ +DIST ulogd-2.0.4.tar.bz2 452234 SHA256 56b30a13a8832e97178f39b7bb173a0b1dfe173dbb60d99a1a386c0962a2effd SHA512 08e88661fcfbcfd327b03b7a883dc239991f47d5a4e4561f3ada5f6acc8f2349f3bd38c1c67f28e42bbccf4cad63b2b7c3b732c23bf24b7c5f05320d27977773 WHIRLPOOL 94ee731cee8b95295d1c675bb3904be1a5b27a1e901d462f248116c865e79d52703b5330882110d7212bda1bb964fc0c97c3e704589071f47fab4475e1c91161 +DIST ulogd-2.0.5.tar.bz2 456258 SHA256 a221cb9f77347c0ca00d0937e27c1b90e3291a553cc62a4139b788e2e420e8c0 SHA512 bf00b8adaad7bd04077a83521b0d7accc26e644c8f3386819e7f91476178b6733f1c6554fb82dd0d3913398c83a61d65f61dc973f199f610bfaadc6251504819 WHIRLPOOL fe499ac7b4070581439a05f4f2245f7a42fe5630da5dc32b9b069511ed1faa15fe482eee08d50477d3fb1d0bf0d3855a69fc82fb0f3e8eecdf082fb642519f91 diff --git a/app-admin/ulogd/files/ulogd-2.0.4-linux-headers-3.17-ipt_ulog.patch b/app-admin/ulogd/files/ulogd-2.0.4-linux-headers-3.17-ipt_ulog.patch new file mode 100644 index 000000000000..f8c10622e229 --- /dev/null +++ b/app-admin/ulogd/files/ulogd-2.0.4-linux-headers-3.17-ipt_ulog.patch @@ -0,0 +1,100 @@ +From 30e24dbfc7a8644e29664070e8c16e5c3997f87e Mon Sep 17 00:00:00 2001 +From: Pablo Neira Ayuso <pablo@netfilter.org> +Date: Fri, 7 Nov 2014 18:33:01 +0100 +Subject: [PATCH] include: keep a copy of linux/netfilter_ipv4/ipt_ULOG.h + +This fixes compilation if you use a Linux kernel >= 3.17. This problem +occurs since ULOG was removed from mainstream: + +http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=7200135bc1e61f1437dc326ae2ef2f310c50b4eb + +Closes: https://bugzilla.netfilter.org/show_bug.cgi?id=986 +Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> + +diff --git a/configure.ac b/configure.ac +index 522c345..c5f573c 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -142,7 +142,7 @@ dnl AM_CONDITIONAL(HAVE_PGSQL, test x$pgsqldir != x) + + AC_CONFIG_FILES(include/Makefile include/ulogd/Makefile include/libipulog/Makefile \ + include/linux/Makefile include/linux/netfilter/Makefile \ +- libipulog/Makefile \ ++ include/linux/netfilter_ipv4/Makefile libipulog/Makefile \ + input/Makefile input/packet/Makefile input/flow/Makefile \ + input/sum/Makefile \ + filter/Makefile filter/raw2packet/Makefile filter/packet2flow/Makefile \ +diff --git a/include/linux/Makefile.am b/include/linux/Makefile.am +index ca80d0d..18af1c2 100644 +--- a/include/linux/Makefile.am ++++ b/include/linux/Makefile.am +@@ -1,2 +1,2 @@ +- +-SUBDIRS = netfilter ++SUBDIRS = netfilter \ ++ netfilter_ipv4 +diff --git a/include/linux/netfilter_ipv4/Makefile.am b/include/linux/netfilter_ipv4/Makefile.am +new file mode 100644 +index 0000000..41819a3 +--- /dev/null ++++ b/include/linux/netfilter_ipv4/Makefile.am +@@ -0,0 +1 @@ ++noinst_HEADERS = ipt_ULOG.h +diff --git a/include/linux/netfilter_ipv4/ipt_ULOG.h b/include/linux/netfilter_ipv4/ipt_ULOG.h +new file mode 100644 +index 0000000..417aad2 +--- /dev/null ++++ b/include/linux/netfilter_ipv4/ipt_ULOG.h +@@ -0,0 +1,49 @@ ++/* Header file for IP tables userspace logging, Version 1.8 ++ * ++ * (C) 2000-2002 by Harald Welte <laforge@gnumonks.org> ++ * ++ * Distributed under the terms of GNU GPL */ ++ ++#ifndef _IPT_ULOG_H ++#define _IPT_ULOG_H ++ ++#ifndef NETLINK_NFLOG ++#define NETLINK_NFLOG 5 ++#endif ++ ++#define ULOG_DEFAULT_NLGROUP 1 ++#define ULOG_DEFAULT_QTHRESHOLD 1 ++ ++#define ULOG_MAC_LEN 80 ++#define ULOG_PREFIX_LEN 32 ++ ++#define ULOG_MAX_QLEN 50 ++/* Why 50? Well... there is a limit imposed by the slab cache 131000 ++ * bytes. So the multipart netlink-message has to be < 131000 bytes. ++ * Assuming a standard ethernet-mtu of 1500, we could define this up ++ * to 80... but even 50 seems to be big enough. */ ++ ++/* private data structure for each rule with a ULOG target */ ++struct ipt_ulog_info { ++ unsigned int nl_group; ++ size_t copy_range; ++ size_t qthreshold; ++ char prefix[ULOG_PREFIX_LEN]; ++}; ++ ++/* Format of the ULOG packets passed through netlink */ ++typedef struct ulog_packet_msg { ++ unsigned long mark; ++ long timestamp_sec; ++ long timestamp_usec; ++ unsigned int hook; ++ char indev_name[IFNAMSIZ]; ++ char outdev_name[IFNAMSIZ]; ++ size_t data_len; ++ char prefix[ULOG_PREFIX_LEN]; ++ unsigned char mac_len; ++ unsigned char mac[ULOG_MAC_LEN]; ++ unsigned char payload[0]; ++} ulog_packet_msg_t; ++ ++#endif /*_IPT_ULOG_H*/ +-- +2.0.4 + diff --git a/app-admin/ulogd/files/ulogd-2.0.5-remove-db-automagic.patch b/app-admin/ulogd/files/ulogd-2.0.5-remove-db-automagic.patch new file mode 100644 index 000000000000..dfa51112e063 --- /dev/null +++ b/app-admin/ulogd/files/ulogd-2.0.5-remove-db-automagic.patch @@ -0,0 +1,45 @@ +commit c61c05c2d050410c24346d42b013d7cb39149949 +Author: Harald Welte <laforge@gnumonks.org> +Date: Sun May 3 11:08:54 2015 +0200 + + configure.ac: Add --without-{mysql,pgsql} + + In some cases you may not want to build a certain output plugin, even + if the headers/libraries actually exist on the build host. + +diff --git a/configure.ac b/configure.ac +index c814bec..1a7f8de 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -85,7 +85,10 @@ if [! test "x$enable_nfacct" = "xyes"]; then + enable_nfacct="no" + fi + +-CT_CHECK_POSTGRES_DB() ++AC_ARG_WITH([pgsql], AS_HELP_STRING([--without-pgsql], [Build without postgresql output plugin [default=test]])) ++AS_IF([test "x$with_pgsql" != "xno"], [ ++ CT_CHECK_POSTGRES_DB() ++]) + AM_CONDITIONAL(HAVE_PGSQL, test "x$PQLIBPATH" != "x") + if test "x$PQLIBPATH" != "x"; then + enable_pgsql="yes" +@@ -93,7 +96,10 @@ else + enable_pgsql="no" + fi + +-CT_CHECK_MYSQL_DB() ++AC_ARG_WITH([mysql], AS_HELP_STRING([--without-mysql], [Build without mysql output plugin [default=test]])) ++AS_IF([test "x$with_mysql" != "xno"], [ ++ CT_CHECK_MYSQL_DB() ++]) + AM_CONDITIONAL(HAVE_MYSQL, test "x$MYSQL_LIB" != "x") + if test "x$MYSQL_LIB" != "x"; then + enable_mysql="yes" +@@ -101,6 +107,7 @@ else + enable_mysql="no" + fi + ++ + AC_ARG_WITH([sqlite], AS_HELP_STRING([--without-sqlite], [Build without SQLITE3 output plugin [default=test]])) + AS_IF([test "x$with_sqlite" != "xno"], [ + PKG_CHECK_MODULES([libsqlite3], [sqlite3], [], [:]) diff --git a/app-admin/ulogd/files/ulogd.init b/app-admin/ulogd/files/ulogd.init new file mode 100644 index 000000000000..ace6e8b51c91 --- /dev/null +++ b/app-admin/ulogd/files/ulogd.init @@ -0,0 +1,41 @@ +#!/sbin/runscript +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +extra_started_commands="reload reopen" + +: ${ULOGD_BINARY:=/usr/sbin/ulogd} +: ${ULOGD_PIDFILE:=/run/${SVCNAME}.pid} +: ${ULOGD_OPTS:=--daemon --uid ulogd --pidfile ${ULOGD_PIDFILE}} + +depend() { + before iptables ip6tables ebtables firewall + after mysql postgresql +} + +start() { + ebegin "Starting ${SVCNAME}" + start-stop-daemon --start \ + --exec ${ULOGD_BINARY} --pidfile ${ULOGD_PIDFILE} \ + -- ${ULOGD_OPTS} + eend $? +} + +stop() { + ebegin "Stopping ${SVCNAME}" + start-stop-daemon --stop --pidfile ${ULOGD_PIDFILE} + eend $? +} + +reload() { + ebegin "Reloading ${SVCNAME} configuration" + start-stop-daemon --signal USR1 --pidfile ${ULOGD_PIDFILE} + eend $? +} + +reopen() { + ebegin "Reopening ${SVCNAME} logfiles" + start-stop-daemon --signal HUP --pidfile ${ULOGD_PIDFILE} + eend $? +} diff --git a/app-admin/ulogd/files/ulogd.logrotate b/app-admin/ulogd/files/ulogd.logrotate new file mode 100644 index 000000000000..777e40097a5e --- /dev/null +++ b/app-admin/ulogd/files/ulogd.logrotate @@ -0,0 +1,9 @@ +/var/log/ulogd/*.log { + sharedscripts + missingok + notifempty + create 0640 ulogd + postrotate + [ -f /run/ulogd.pid ] && /bin/kill -HUP $(cat /run/ulogd.pid) + endscript +} diff --git a/app-admin/ulogd/files/ulogd.service b/app-admin/ulogd/files/ulogd.service new file mode 100644 index 000000000000..ec22db0ad663 --- /dev/null +++ b/app-admin/ulogd/files/ulogd.service @@ -0,0 +1,13 @@ +[Unit] +Description=A userspace logging daemon for netfilter/iptables related logging +Before=iptables.service ip6tables.service +After=mysql.service postgresql.service + +[Service] +Type=forking +PIDFile=/run/ulogd.pid +ExecStart=/usr/sbin/ulogd --daemon --uid ulogd --pidfile /run/ulogd.pid +ExecReload=/bin/kill -USR1 $MAINPID + +[Install] +WantedBy=network.target diff --git a/app-admin/ulogd/metadata.xml b/app-admin/ulogd/metadata.xml new file mode 100644 index 000000000000..0a868141b02f --- /dev/null +++ b/app-admin/ulogd/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>proxy-maintainers</herd> + <maintainer> + <email>itumaykin@gmail.com</email> + </maintainer> + <use> + <flag name='json'>Build JSON output plugin to save packets in JSON file format.</flag> + <flag name='pcap'>Build PCAP output plugin to save packets in libpcap file format.</flag> + <flag name='mysql'>Build MySQL output plugin to save packets in a mysql database.</flag> + <flag name='postgres'>Build PGSQL output plugin to save packets in a postgres database.</flag> + <flag name='sqlite'>Build SQLITE3 output plugin to save packets in a sqlite database.</flag> + <flag name='nflog'>Build NFLOG input plugin to support stateless packet-based logging via nfnetlink_queue.</flag> + <flag name='nfct'>Build NFCT input plugin to support stateful flow-based logging via nf_conntrack_netlink.</flag> + <flag name='nfacct'>Build NFACCT input plugin to support traffic accounting via nfnetlink_acct.</flag> + <flag name='ulog'>Build ULOG input plugin to support deprecated packet-based logging via ULOG target.</flag> + </use> +</pkgmetadata> diff --git a/app-admin/ulogd/ulogd-2.0.4-r1.ebuild b/app-admin/ulogd/ulogd-2.0.4-r1.ebuild new file mode 100644 index 000000000000..a49fa0235214 --- /dev/null +++ b/app-admin/ulogd/ulogd-2.0.4-r1.ebuild @@ -0,0 +1,140 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +AUTOTOOLS_AUTORECONF=1 +AUTOTOOLS_IN_SOURCE_BUILD=1 +inherit autotools-utils eutils linux-info readme.gentoo systemd user + +DESCRIPTION="A userspace logging daemon for netfilter/iptables related logging" +HOMEPAGE="http://netfilter.org/projects/ulogd/index.html" +SRC_URI="ftp://ftp.netfilter.org/pub/${PN}/${P}.tar.bz2 + http://www.netfilter.org/projects/${PN}/files/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ia64 ppc x86" +IUSE="dbi doc json mysql nfacct +nfct +nflog pcap postgres sqlite" + +RDEPEND="net-firewall/iptables + >=net-libs/libnfnetlink-1.0.1 + dbi? ( dev-db/libdbi ) + json? ( dev-libs/jansson ) + nfacct? ( + >=net-libs/libmnl-1.0.3 + >=net-libs/libnetfilter_acct-1.0.1 + ) + nfct? ( >=net-libs/libnetfilter_conntrack-1.0.2 ) + nflog? ( >=net-libs/libnetfilter_log-1.0.0 ) + mysql? ( virtual/mysql ) + pcap? ( net-libs/libpcap ) + postgres? ( dev-db/postgresql:= ) + sqlite? ( dev-db/sqlite:3 )" + +DEPEND="${RDEPEND} + doc? ( + app-text/linuxdoc-tools + app-text/texlive-core + virtual/latex-base + )" + +PATCHES=( "${FILESDIR}/${P}-linux-headers-3.17-ipt_ulog.patch" ) + +DOCS=( AUTHORS README TODO ) +DOC_CONTENTS="You must have at least one logging stack enabled to make ulogd work. +Please edit example configuration located at /etc/ulogd.conf" + +pkg_setup() { + enewgroup ulogd + enewuser ulogd -1 -1 /var/log/ulogd ulogd + + linux-info_pkg_setup + + if kernel_is lt 2 6 14; then + die "ulogd2 requires kernel newer than 2.6.14" + fi + + if kernel_is lt 2 6 18; then + ewarn + ewarn "You are using kernel older than 2.6.18" + ewarn "Some ulogd2 features may be unavailable" + ewarn + fi + + if use nfacct && kernel_is lt 3 3 0; then + ewarn "NFACCT input plugin requires kernel newer than 3.3.0" + fi + + if ! use nfacct && ! use nfct && ! use nflog && kernel_is gt 3 17 0; then + ewarn "ULOG target was removed since 3.17.0 kernel release" + ewarn "Consider enabling NFACCT, NFCT or NFLOG support" + fi +} + +src_prepare() { + # - make all logs to be kept in a single dir /var/log/ulogd + # - place sockets in /run instead of /tmp + sed -i \ + -e 's:var/log:var/log/ulogd:g' \ + -e 's:tmp:run:g' \ + ulogd.conf.in || die 'sed on ulogd.conf.in failed' + + autotools-utils_src_prepare +} + +src_configure() { + local myeconfargs=( + $(use_with dbi) + $(use_with json jansson) + $(use_enable nfacct) + $(use_enable nfct) + $(use_enable nflog) + $(use_with mysql) + $(use_with pcap) + $(use_with postgres pgsql) + $(use_with sqlite) + ) + autotools-utils_src_configure +} + +src_compile() { + autotools-utils_src_compile + + if use doc; then + # prevent access violations from generation of bitmap font files + export VARTEXFONTS="${T}"/fonts + emake -C doc + fi +} + +src_install() { + autotools-utils_src_install + readme.gentoo_create_doc + prune_libtool_files --modules + + if use doc; then + dohtml doc/${PN}.html + dodoc doc/${PN}.dvi doc/${PN}.txt doc/${PN}.ps + fi + + use sqlite && dodoc doc/sqlite3.table + use mysql && dodoc doc/mysql-*.sql + use postgres && dodoc doc/pgsql-*.sql + doman ${PN}.8 + + insinto /etc + doins ${PN}.conf + fowners root:ulogd /etc/ulogd.conf + fperms 640 /etc/ulogd.conf + + newinitd "${FILESDIR}/${PN}.init" ${PN} + systemd_dounit "${FILESDIR}/${PN}.service" + + insinto /etc/logrotate.d + newins "${FILESDIR}/${PN}.logrotate" ${PN} + + diropts -o ulogd -g ulogd + keepdir /var/log/ulogd +} diff --git a/app-admin/ulogd/ulogd-2.0.5.ebuild b/app-admin/ulogd/ulogd-2.0.5.ebuild new file mode 100644 index 000000000000..0822bd77efb7 --- /dev/null +++ b/app-admin/ulogd/ulogd-2.0.5.ebuild @@ -0,0 +1,141 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +AUTOTOOLS_AUTORECONF=1 +AUTOTOOLS_IN_SOURCE_BUILD=1 + +inherit autotools-utils eutils linux-info readme.gentoo systemd user + +DESCRIPTION="A userspace logging daemon for netfilter/iptables related logging" +HOMEPAGE="http://netfilter.org/projects/ulogd/index.html" +SRC_URI="ftp://ftp.netfilter.org/pub/${PN}/${P}.tar.bz2 + http://www.netfilter.org/projects/${PN}/files/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~ppc ~x86" +IUSE="dbi doc json mysql nfacct +nfct +nflog pcap postgres sqlite -ulog" + +RDEPEND=" + net-firewall/iptables + >=net-libs/libnfnetlink-1.0.1 + dbi? ( dev-db/libdbi ) + json? ( dev-libs/jansson ) + nfacct? ( + >=net-libs/libmnl-1.0.3 + >=net-libs/libnetfilter_acct-1.0.1 + ) + nfct? ( >=net-libs/libnetfilter_conntrack-1.0.2 ) + nflog? ( >=net-libs/libnetfilter_log-1.0.0 ) + mysql? ( virtual/mysql ) + pcap? ( net-libs/libpcap ) + postgres? ( dev-db/postgresql:= ) + sqlite? ( dev-db/sqlite:3 )" + +DEPEND="${RDEPEND} + doc? ( + app-text/linuxdoc-tools + app-text/texlive-core + virtual/latex-base + )" + +PATCHES=( "${FILESDIR}/${P}-remove-db-automagic.patch" ) + +DOCS=( AUTHORS README TODO ) +DOC_CONTENTS="You must have at least one logging stack enabled to make ulogd work. +Please edit example configuration located at /etc/ulogd.conf" + +pkg_setup() { + enewgroup ulogd + enewuser ulogd -1 -1 /var/log/ulogd ulogd + + linux-info_pkg_setup + + if kernel_is lt 2 6 14; then + die "ulogd2 requires kernel newer than 2.6.14" + fi + + if kernel_is lt 2 6 18; then + ewarn "You are using kernel older than 2.6.18" + ewarn "Some ulogd2 features may be unavailable" + fi + + if use nfacct && kernel_is lt 3 3 0; then + ewarn "NFACCT input plugin requires kernel newer than 3.3.0" + fi + + if use ulog && kernel_is gt 3 17 0; then + ewarn "ULOG target was removed since 3.17.0 kernel release" + ewarn "Consider enabling NFACCT, NFCT or NFLOG support" + fi +} + +src_prepare() { + # - make all logs to be kept in a single dir /var/log/ulogd + # - place sockets in /run instead of /tmp + sed -i \ + -e 's:var/log:var/log/ulogd:g' \ + -e 's:tmp:run:g' \ + ulogd.conf.in || die 'sed on ulogd.conf.in failed' + + autotools-utils_src_prepare +} + +src_configure() { + local myeconfargs=( + $(use_with dbi) + $(use_with json jansson) + $(use_enable nfacct) + $(use_enable nfct) + $(use_enable nflog) + $(use_with mysql) + $(use_with pcap) + $(use_with postgres pgsql) + $(use_with sqlite) + $(use_enable ulog) + ) + autotools-utils_src_configure +} + +src_compile() { + autotools-utils_src_compile + + if use doc; then + # prevent access violations from generation of bitmap font files + export VARTEXFONTS="${T}"/fonts + emake -C doc + fi +} + +src_install() { + autotools-utils_src_install + readme.gentoo_create_doc + prune_libtool_files --modules + + if use doc; then + dohtml doc/${PN}.html + dodoc doc/${PN}.dvi doc/${PN}.txt doc/${PN}.ps + fi + + use sqlite && dodoc doc/sqlite3.table + use mysql && dodoc doc/mysql-*.sql + use postgres && dodoc doc/pgsql-*.sql + doman ${PN}.8 + + insinto /etc + doins ${PN}.conf + fowners root:ulogd /etc/ulogd.conf + fperms 640 /etc/ulogd.conf + + newinitd "${FILESDIR}/${PN}.init" ${PN} + systemd_dounit "${FILESDIR}/${PN}.service" + + insinto /etc/logrotate.d + newins "${FILESDIR}/${PN}.logrotate" ${PN} + + diropts -o ulogd -g ulogd + keepdir /var/log/ulogd +} diff --git a/app-admin/usbview/Manifest b/app-admin/usbview/Manifest new file mode 100644 index 000000000000..bb431a56a026 --- /dev/null +++ b/app-admin/usbview/Manifest @@ -0,0 +1 @@ +DIST usbview-2.0.tar.gz 366337 SHA256 42511e4d43ddc5805bab0dea8aeeea54cc00462d229e04066ed5fb7c065d1b6b SHA512 87b3d0b0c734c94e5527f19575c0460f5c0b894dac29936a759d573058c9c007ad59c9be32a5c6d485cba258193efe4ca15bdd6f3ca31df321ed230778b5404f WHIRLPOOL 6c47fd33cee60f488164fadaaa87c826447fc33fab79526e7471423e251202e4ee62edaaca721052caf0922adc7bcf9f5c84b6e7237b8f7b6e8daeaa9b3d3324 diff --git a/app-admin/usbview/metadata.xml b/app-admin/usbview/metadata.xml new file mode 100644 index 000000000000..731225048652 --- /dev/null +++ b/app-admin/usbview/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>desktop-misc</herd> +</pkgmetadata> diff --git a/app-admin/usbview/usbview-2.0.ebuild b/app-admin/usbview/usbview-2.0.ebuild new file mode 100644 index 000000000000..c34a1da298d0 --- /dev/null +++ b/app-admin/usbview/usbview-2.0.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils linux-info + +DESCRIPTION="Display the topology of devices on the USB bus" +HOMEPAGE="http://www.kroah.com/linux-usb/" +SRC_URI="http://www.kroah.com/linux-usb/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 hppa ppc ppc64 sparc x86" + +RDEPEND=" + dev-libs/glib:2 + x11-libs/gdk-pixbuf:2 + x11-libs/gtk+:3 +" +DEPEND=" + ${RDEPEND} + virtual/pkgconfig +" + +DOCS=( AUTHORS ChangeLog README TODO ) + +pkg_setup() { + CONFIG_CHECK="~DEBUG_FS" + linux-info_pkg_setup +} + +src_install() { + default + doicon usb_icon.xpm + make_desktop_entry ${PN} 'USB Viewer' usb_icon +} diff --git a/app-admin/usermin/Manifest b/app-admin/usermin/Manifest new file mode 100644 index 000000000000..35fe334aed22 --- /dev/null +++ b/app-admin/usermin/Manifest @@ -0,0 +1 @@ +DIST usermin-1.600.tar.gz 9295065 SHA256 4952689a2a7c77b111aeb0fdfac66d4c5edaa06735091b92aacab72e9ecd27ef SHA512 9c0670360179a6e79ac17ea8f87810f05e640b42cf946beeac8d4398b2b9ce441e10a178da242cb77f2163afd8eb508ccb6c89f54b540907eba8d97dac592895 WHIRLPOOL 7c92ab2bbb1378ca6288fae46a0c8590b4ea6bfbd8b9abc5697efb4d8d1b2ac85ece6d506e64e8e25b7661707fe8802521440a8ebcdb3b874670ab04645beaab diff --git a/app-admin/usermin/files/init.d.usermin b/app-admin/usermin/files/init.d.usermin new file mode 100644 index 000000000000..e62b4aacd9bd --- /dev/null +++ b/app-admin/usermin/files/init.d.usermin @@ -0,0 +1,38 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + use net logger +} + + +checkconfig() { + if [ -f /etc/usermin/config ]; then + return 0; + else + eerror "Error starting usermin. Have you run '/usr/libexec/usermin/setup.sh'?" + return 1; + fi +} + +start() { # copied from /etc/usermin/start + checkconfig || return 1 + ebegin "Starting Usermin" + + LANG= + export LANG + + unset PERLIO + export PERLIO + start-stop-daemon --start --quiet \ + --exec /usr/libexec/usermin/miniserv.pl -- /etc/usermin/miniserv.conf + eend $? +} + +stop() { + ebegin "Stopping Usermin" + start-stop-daemon --stop --pidfile /var/run/usermin.pid --quiet + eend $? +} diff --git a/app-admin/usermin/files/usermin-1.080-safestop.patch b/app-admin/usermin/files/usermin-1.080-safestop.patch new file mode 100644 index 000000000000..2cfd7e25e7fb --- /dev/null +++ b/app-admin/usermin/files/usermin-1.080-safestop.patch @@ -0,0 +1,12 @@ +diff -Naur usermin-1.080.orig/setup.sh usermin-1.080/setup.sh +--- usermin-1.080.orig/setup.sh 2004-06-03 16:18:07.000000000 -0700 ++++ usermin-1.080/setup.sh 2004-07-26 01:27:23.959104711 -0700 +@@ -487,7 +487,7 @@ + echo "#!/bin/sh" >>$config_dir/stop + echo "echo Stopping Usermin server in $wadir" >>$config_dir/stop + echo "pidfile=\`grep \"^pidfile=\" $config_dir/miniserv.conf | sed -e 's/pidfile=//g'\`" >>$config_dir/stop +-echo "kill \`cat \$pidfile\`" >>$config_dir/stop ++echo "test -z \"\$pidfile\" || kill \`cat \$pidfile\`" >>$config_dir/stop + chmod 755 $config_dir/start $config_dir/stop + echo "..done" + echo "" diff --git a/app-admin/usermin/files/usermin-1.150-setup-nocheck.patch b/app-admin/usermin/files/usermin-1.150-setup-nocheck.patch new file mode 100644 index 000000000000..6b4a06fb9cf2 --- /dev/null +++ b/app-admin/usermin/files/usermin-1.150-setup-nocheck.patch @@ -0,0 +1,22 @@ +diff -Naurp usermin-1.150.orig/setup.sh usermin-1.150/setup.sh +--- usermin-1.150.orig/setup.sh 2005-09-03 16:19:50.000000000 -0700 ++++ usermin-1.150/setup.sh 2005-09-03 16:21:01.000000000 -0700 +@@ -342,12 +342,12 @@ else + echo "" + exit 12 + fi +- $perl -e 'use Socket; socket(FOO, PF_INET, SOCK_STREAM, getprotobyname("tcp")); setsockopt(FOO, SOL_SOCKET, SO_REUSEADDR, pack("l", 1)); bind(FOO, pack_sockaddr_in($ARGV[0], INADDR_ANY)) || exit(1); exit(0);' $port +- if [ $? != "0" ]; then +- echo "ERROR: TCP port $port is already in use by another program" +- echo "" +- exit 13 +- fi ++ #$perl -e 'use Socket; socket(FOO, PF_INET, SOCK_STREAM, getprotobyname("tcp")); setsockopt(FOO, SOL_SOCKET, SO_REUSEADDR, pack("l", 1)); bind(FOO, pack_sockaddr_in($ARGV[0], INADDR_ANY)) || exit(1); exit(0);' $port ++ #if [ $? != "0" ]; then ++ # echo "ERROR: TCP port $port is already in use by another program" ++ # echo "" ++ # exit 13 ++ #fi + + # Ask the user if SSL should be used + if [ "$ssl" = "" ]; then diff --git a/app-admin/usermin/files/usermin-1.540-r1.init b/app-admin/usermin/files/usermin-1.540-r1.init new file mode 100644 index 000000000000..90389764e698 --- /dev/null +++ b/app-admin/usermin/files/usermin-1.540-r1.init @@ -0,0 +1,38 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + use net logger +} + + +checkconfig() { + if [ -f /etc/usermin/config ]; then + return 0; + else + eerror "Error starting usermin. Have you run '/usr/libexec/usermin/setup.sh'?" + return 1; + fi +} + +start() { # copied from /etc/usermin/start + checkconfig || return 1 + ebegin "Starting Usermin" + + LANG= + export LANG + + unset PERLIO + export PERLIO + start-stop-daemon --start --quiet --user usermin \ + --exec /usr/libexec/usermin/miniserv.pl -- /etc/usermin/miniserv.conf + eend $? +} + +stop() { + ebegin "Stopping Usermin" + start-stop-daemon --stop --pidfile /var/run/usermin.pid --quiet + eend $? +} diff --git a/app-admin/usermin/files/usermin.pam-include.1 b/app-admin/usermin/files/usermin.pam-include.1 new file mode 100644 index 000000000000..50d360ce431c --- /dev/null +++ b/app-admin/usermin/files/usermin.pam-include.1 @@ -0,0 +1,11 @@ +#%PAM-1.0 + +auth required pam_securetty.so +auth required pam_nologin.so +auth include system-auth + +account include system-auth + +password include system-auth + +session include system-auth diff --git a/app-admin/usermin/metadata.xml b/app-admin/usermin/metadata.xml new file mode 100644 index 000000000000..3317d0c52e61 --- /dev/null +++ b/app-admin/usermin/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> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <longdescription> + A web-based user administration interface. + </longdescription> + <upstream> + <remote-id type="sourceforge">webadmin</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/usermin/usermin-1.600.ebuild b/app-admin/usermin/usermin-1.600.ebuild new file mode 100644 index 000000000000..b9d9142b4c9b --- /dev/null +++ b/app-admin/usermin/usermin-1.600.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils pam user + +DESCRIPTION="A web-based user administration interface" +HOMEPAGE="http://www.webmin.com/index6.html" +SRC_URI="mirror://sourceforge/webadmin/${P}.tar.gz" + +LICENSE="BSD GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="ipv6 ldap pam ssl syslog zlib" + +DEPEND="dev-lang/perl" + +RDEPEND="${DEPEND} + || ( virtual/perl-Digest-MD5 dev-perl/MD5 ) + dev-perl/Digest-SHA1 + dev-perl/Net-HTTP + sys-process/lsof + virtual/perl-Time-HiRes + virtual/perl-Time-Local + ipv6? ( dev-perl/Socket6 ) + ldap? ( dev-perl/perl-ldap ) + pam? ( dev-perl/Authen-PAM ) + ssl? ( dev-perl/Net-SSLeay ) + syslog? ( virtual/perl-Sys-Syslog ) + zlib? ( virtual/perl-Compress-Raw-Zlib )" + +pkg_setup() { + enewuser ${PN} -1 /bin/bash +} + +src_prepare() { + # Point to the correct mysql location + sed -i -e "s:/usr/local/mysql:/usr:g" mysql/config + + # Change /usr/local/bin/perl references + find . -type f | xargs sed -i -e 's:^#!.*/usr/local/bin/perl:#!/usr/bin/perl:' + + epatch "${FILESDIR}"/${PN}-1.080-safestop.patch + epatch "${FILESDIR}"/${PN}-1.150-setup-nocheck.patch +} + +src_install() { + dodir /usr/libexec/${PN} + cp -pR * "${D}"/usr/libexec/${PN} + + newinitd "${FILESDIR}"/${PN}-1.540-r1.init ${PN} + newpamd "${FILESDIR}"/${PN}.pam-include.1 ${PN} + + dodir /etc/${PN} + dodir /var/log/${PN} + + # Fix ownership + chown -R ${PN} "${ED}" + + config_dir=${D}/etc/${PN} + var_dir=${D}/var/log/${PN} + perl=/usr/bin/perl + autoos=1 + port=20000 + login=root + crypt="XXX" + host=`hostname` + use ssl && ssl=1 || ssl=0 + atboot=0 + nostart=1 + nochown=1 + autothird=1 + nouninstall=1 + noperlpath=1 + tempdir="${T}" + export config_dir var_dir perl autoos port login crypt host ssl atboot nostart nochown autothird nouninstall noperlpath tempdir + "${D}"/usr/libexec/${PN}/setup.sh > "${T}"/${PN}-setup.out 2>&1 || die "Failed to create initial ${PN} configuration." + + # Cleanup from the config script + rm -rf "${D}"/var/log/${PN} + keepdir /var/log/${PN} +} + +pkg_postinst() { + elog "To make ${PN} start at boot time, run: 'rc-update add ${PN} default'." + elog "Point your web browser to https://localhost:20000 to use ${PN}." +} diff --git a/app-admin/vault/Manifest b/app-admin/vault/Manifest new file mode 100644 index 000000000000..9b5f8e0d029e --- /dev/null +++ b/app-admin/vault/Manifest @@ -0,0 +1,3 @@ +DIST gox-0.3.0.tar.gz 13735 SHA256 29dc6b689f670a5444cc54cd9111549ccb01501901bc9197d0e1325a35157802 SHA512 cbc737a780403d1233af10a85b30676e0fcfbfbe99a740d0eff69bef4fd557c65d102c43b3b0dde0b8b935967be8cb33fab50d2baf481d27fa53285be6b1aef2 WHIRLPOOL f3a10a965c4cfe0707bad2f8307162564b00d2b0279d61311445714f28a17d97a4ee4d5a442a7aaaf25b9f44eff656a8b84485bdb0e5776cc7a1014350cff216 +DIST iochan-b584a329b193e206025682ae6c10cdbe03b0cd77.tar.gz 1110 SHA256 27aa65991036fe736d3c383378e49758097f5a11a20b40f44cc434eac97659f7 SHA512 a4314506416d6ab84c9cd96aeadc8d08c88df8f2a146b1e6a51e5f756c2e2409f39adf274487998d0229a46d81b2d0899717064459966f4dbfa5571cc9e85400 WHIRLPOOL 9fd40b227de5452642696326b0b0a66d95e2ddf738a1b6e7e712e201101bb84cc854161609836cae82515ba95ba1e5efd331ce68abdf79c654a9d7a874f849f3 +DIST vault-0.1.2.tar.gz 1158880 SHA256 b8d56f1ebd11f5d80a6a6728b6c9ac399c7e507e3e9fe8830966be50ba15d1b3 SHA512 49488d4fac62521e485a623a3f5fa384643e84bb9aff616efec2169d84731f9892b5ffa1ae475ce905032f6f8e816a372535bc328daf4ee5caf0344a3cd2e9bc WHIRLPOOL f1d678145fad5b8a988dacb8aabf02394a81b267aeabdd2a2968c0efc9576997e980800fe0f08fb70d2f6052fce5d9d94c6d46ee0b50d97ca68b404a78c2c381 diff --git a/app-admin/vault/files/localhost.json.example b/app-admin/vault/files/localhost.json.example new file mode 100644 index 000000000000..02c377e424a9 --- /dev/null +++ b/app-admin/vault/files/localhost.json.example @@ -0,0 +1,9 @@ +backend "consul" { + address = "127.0.0.1:8500" + path = "vault" +} + +listener "tcp" { + address = "127.0.0.1:8200" + tls_disable = 1 +} diff --git a/app-admin/vault/files/vault.confd b/app-admin/vault/files/vault.confd new file mode 100644 index 000000000000..606095864e71 --- /dev/null +++ b/app-admin/vault/files/vault.confd @@ -0,0 +1,7 @@ +# you can change the init script behavior by setting those parameters +# - group (default: vault) +# - pidfile (default: /run/vault/vault.pid) +# - user (default: vault) + +# extra arguments for the consul agent +command_args="-config=/etc/consul.d" diff --git a/app-admin/vault/files/vault.initd b/app-admin/vault/files/vault.initd new file mode 100644 index 000000000000..e4fb31bfafe8 --- /dev/null +++ b/app-admin/vault/files/vault.initd @@ -0,0 +1,25 @@ +#!/sbin/openrc-run +# Copyright 2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +description="vault server" +group=${group:-${SVCNAME}} +pidfile=${pidfile:-"/run/${SVCNAME}/${SVCNAME}.pid"} +user=${user:-${SVCNAME}} + +command="/usr/sbin/${SVCNAME}" +command_args="agent -config-dir=/etc/vault.d ${command_args}" +command_background="true" +start_stop_daemon_args="--user ${user} --group ${group} \ + --stdout /var/log/${SVCNAME}/${SVCNAME}.log \ + --stderr /var/log/${SVCNAME}/${SVCNAME}.log" + +depend() { + need net + after net +} + +start_pre() { + checkpath -d -m 0755 -o "${user}":"${group}" "${pidfile%/*}" +} diff --git a/app-admin/vault/files/vault.service b/app-admin/vault/files/vault.service new file mode 100644 index 000000000000..9a75a92a26d9 --- /dev/null +++ b/app-admin/vault/files/vault.service @@ -0,0 +1,17 @@ +[Unit] +Description=vault server +Requires=network-online.target +After=network-online.target + +[Service] +User=vault +Environment=VAULT_SERVER_OPTS="-config=/etc/vault.d" +ExecStart=/usr/bin/vault server $VAULT_SERVER_OPTS +CapabilityBoundingSet=CAP_IPC_LOCK +Capabilities=CAP_IPC_LOCK=eip +SecureBits=keep-caps +Restart=on-failure +SuccessExitStatus=2 + +[Install] +WantedBy=default.target diff --git a/app-admin/vault/metadata.xml b/app-admin/vault/metadata.xml new file mode 100644 index 000000000000..059d713e41ed --- /dev/null +++ b/app-admin/vault/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>zmedico@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/app-admin/vault/vault-0.1.2-r1.ebuild b/app-admin/vault/vault-0.1.2-r1.ebuild new file mode 100644 index 000000000000..770c1bb3ae44 --- /dev/null +++ b/app-admin/vault/vault-0.1.2-r1.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit fcaps systemd user + +KEYWORDS="~amd64" +DESCRIPTION="A tool for managing secrets" +HOMEPAGE="https://vaultproject.io/" +GO_PN="github.com/hashicorp/${PN}" +LICENSE="MPL-2.0" +SLOT="0" +IUSE="" + +DEPEND=">=dev-lang/go-1.4:= + dev-go/go-oauth2:=" +RDEPEND="" + +SRC_URI="https://${GO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz +https://github.com/mitchellh/gox/archive/v0.3.0.tar.gz -> gox-0.3.0.tar.gz +https://github.com/mitchellh/iochan/archive/b584a329b193e206025682ae6c10cdbe03b0cd77.tar.gz -> iochan-b584a329b193e206025682ae6c10cdbe03b0cd77.tar.gz" +STRIP_MASK="*.a" +S="${WORKDIR}/src/${GO_PN}" + +FILECAPS=( + -m 755 'cap_ipc_lock=+ei' usr/bin/${PN} +) + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 -1 -1 ${PN} +} + +src_unpack() { + local x + + default + mkdir -p src/${GO_PN%/*} || die + mv ${P} src/${GO_PN} || die + + # Create a writable GOROOT in order to avoid sandbox violations. + export GOROOT="${WORKDIR}/goroot" + cp -sR "${EPREFIX}"/usr/lib/go "${GOROOT}" || die + rm -rf "${GOROOT}/src/${GO_PN}" || die + + export GOPATH=${WORKDIR}:${WORKDIR}/src/github.com/hashicorp/vault/Godeps/_workspace + + while read -r -d '' x; do + rm -rf "${GOROOT}/src/${x}" "${GOROOT}/pkg/${KERNEL}_${ARCH}/${x}"{,.a} || die + done < <(find "${WORKDIR}/src/github.com/hashicorp/vault/Godeps/_workspace/src" -maxdepth 3 -mindepth 3 -type d -print0) + + mkdir -p "${GOROOT}/src/github.com/mitchellh" || die + rm -rf "${GOROOT}/src/github.com/mitchellh/gox" || die + mv gox-0.3.0 "${GOROOT}/src/github.com/mitchellh/gox" || die + rm -rf "${GOROOT}/src/github.com/mitchellh/iochan" || die + mv iochan-* "${GOROOT}/src/github.com/mitchellh/iochan" || die +} + +src_prepare() { + # Avoid the need to have a git checkout + sed -e 's:^GIT.*::' \ + -e 's:-ldflags.*:\\:' \ + -i scripts/build.sh || die +} + +src_compile() { + go install -v -x github.com/mitchellh/gox || die + PATH=${GOROOT}/bin:${PATH} emake dev +} + +src_install() { + local x + + newinitd "${FILESDIR}/${PN}.initd" "${PN}" + newconfd "${FILESDIR}/${PN}.confd" "${PN}" + systemd_dounit "${FILESDIR}/${PN}.service" + + keepdir /etc/${PN}.d + insinto /etc/${PN}.d + doins "${FILESDIR}/"*.json.example + + keepdir /var/log/${PN} + fowners ${PN}:${PN} /var/log/${PN} + + dobin bin/${PN} + find "${WORKDIR}"/{pkg,src} -name '.git*' -exec rm -rf {} \; 2>/dev/null + find "${WORKDIR}"/src/${GO_PN} -mindepth 1 -maxdepth 1 -type f -delete + while read -r -d '' x; do + x=${x#${WORKDIR}/src} + [[ -d ${WORKDIR}/pkg/${KERNEL}_${ARCH}/${x} || + -f ${WORKDIR}/pkg/${KERNEL}_${ARCH}/${x}.a ]] && continue + rm -rf "${WORKDIR}"/src/${x} + done < <(find "${WORKDIR}"/src/${GO_PN} -mindepth 1 -maxdepth 1 -type d -print0) + insopts -m0644 -p # preserve timestamps for bug 551486 + insinto /usr/lib/go/pkg/${KERNEL}_${ARCH}/${GO_PN%/*} + doins -r "${WORKDIR}"/pkg/${KERNEL}_${ARCH}/${GO_PN} + insinto /usr/lib/go/src/${GO_PN%/*} + doins -r "${WORKDIR}"/src/${GO_PN} +} diff --git a/app-admin/vault/vault-0.1.2.ebuild b/app-admin/vault/vault-0.1.2.ebuild new file mode 100644 index 000000000000..fad7f2eaf09f --- /dev/null +++ b/app-admin/vault/vault-0.1.2.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit fcaps systemd user + +KEYWORDS="~amd64" +DESCRIPTION="A tool for managing secrets" +HOMEPAGE="https://vaultproject.io/" +GO_PN="github.com/hashicorp/${PN}" +LICENSE="MPL-2.0" +SLOT="0" +IUSE="" + +DEPEND=">=dev-lang/go-1.4 + dev-go/go-oauth2" +RDEPEND="" + +SRC_URI="https://${GO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz +https://github.com/mitchellh/gox/archive/v0.3.0.tar.gz -> gox-0.3.0.tar.gz +https://github.com/mitchellh/iochan/archive/b584a329b193e206025682ae6c10cdbe03b0cd77.tar.gz -> iochan-b584a329b193e206025682ae6c10cdbe03b0cd77.tar.gz" +STRIP_MASK="*.a" +S="${WORKDIR}/src/${GO_PN}" + +FILECAPS=( + -m 755 'cap_ipc_lock=+ei' usr/bin/${PN} +) + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 -1 -1 ${PN} +} + +src_unpack() { + local x + + default + mkdir -p src/${GO_PN%/*} || die + mv ${P} src/${GO_PN} || die + + # Create a writable GOROOT in order to avoid sandbox violations. + export GOROOT="${WORKDIR}/goroot" + cp -sR "${EPREFIX}"/usr/lib/go "${GOROOT}" || die + rm -rf "${GOROOT}/src/${GO_PN}" || die + + export GOPATH=${WORKDIR}:${WORKDIR}/src/github.com/hashicorp/vault/Godeps/_workspace + + while read -r -d '' x; do + rm -rf "${GOROOT}/src/${x}" "${GOROOT}/pkg/${KERNEL}_${ARCH}/${x}"{,.a} || die + done < <(find "${WORKDIR}/src/github.com/hashicorp/vault/Godeps/_workspace/src" -maxdepth 3 -mindepth 3 -type d -print0) + + mkdir -p "${GOROOT}/src/github.com/mitchellh" || die + rm -rf "${GOROOT}/src/github.com/mitchellh/gox" || die + mv gox-0.3.0 "${GOROOT}/src/github.com/mitchellh/gox" || die + rm -rf "${GOROOT}/src/github.com/mitchellh/iochan" || die + mv iochan-* "${GOROOT}/src/github.com/mitchellh/iochan" || die +} + +src_prepare() { + # Avoid the need to have a git checkout + sed -e 's:^GIT.*::' \ + -e 's:-ldflags.*:\\:' \ + -i scripts/build.sh || die +} + +src_compile() { + go install -v -x github.com/mitchellh/gox || die + PATH=${GOROOT}/bin:${PATH} emake dev +} + +src_install() { + local x + + newinitd "${FILESDIR}/${PN}.initd" "${PN}" + newconfd "${FILESDIR}/${PN}.confd" "${PN}" + systemd_dounit "${FILESDIR}/${PN}.service" + + keepdir /etc/${PN}.d + insinto /etc/${PN}.d + doins "${FILESDIR}/"*.json.example + + keepdir /var/log/${PN} + fowners ${PN}:${PN} /var/log/${PN} + + dobin bin/${PN} + find "${WORKDIR}"/{pkg,src} -name '.git*' -exec rm -rf {} \; 2>/dev/null + find "${WORKDIR}"/src/${GO_PN} -mindepth 1 -maxdepth 1 -type f -delete + while read -r -d '' x; do + x=${x#${WORKDIR}/src} + [[ -d ${WORKDIR}/pkg/${KERNEL}_${ARCH}/${x} || + -f ${WORKDIR}/pkg/${KERNEL}_${ARCH}/${x}.a ]] && continue + rm -rf "${WORKDIR}"/src/${x} + done < <(find "${WORKDIR}"/src/${GO_PN} -mindepth 1 -maxdepth 1 -type d -print0) + insopts -m0644 -p # preserve timestamps for bug 551486 + insinto /usr/lib/go/pkg/${KERNEL}_${ARCH}/${GO_PN%/*} + doins -r "${WORKDIR}"/pkg/${KERNEL}_${ARCH}/${GO_PN} + insinto /usr/lib/go/src/${GO_PN%/*} + doins -r "${WORKDIR}"/src/${GO_PN} +} diff --git a/app-admin/vault/vault-9999.ebuild b/app-admin/vault/vault-9999.ebuild new file mode 100644 index 000000000000..f315b8c60689 --- /dev/null +++ b/app-admin/vault/vault-9999.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit fcaps git-r3 systemd user + +KEYWORDS="" +DESCRIPTION="A tool for managing secrets" +HOMEPAGE="https://vaultproject.io/" +GO_PN="github.com/hashicorp/${PN}" +EGIT_REPO_URI="git://${GO_PN}.git" +LICENSE="MPL-2.0" +SLOT="0" +IUSE="" + +DEPEND=">=dev-lang/go-1.4:= + dev-go/go-oauth2:=" +RDEPEND="" + +SRC_URI="" +STRIP_MASK="*.a" +S="${WORKDIR}/src/${GO_PN}" +EGIT_CHECKOUT_DIR="${S}" + +FILECAPS=( + -m 755 'cap_ipc_lock=+ei' usr/bin/${PN} +) + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 -1 -1 ${PN} +} + +src_unpack() { + local x + + git-r3_src_unpack + + # Create a writable GOROOT in order to avoid sandbox violations. + export GOROOT="${WORKDIR}/goroot" + cp -sR "${EPREFIX}"/usr/lib/go "${GOROOT}" || die + rm -rf "${GOROOT}/src/${GO_PN}" || die + + export GOPATH=${WORKDIR}:${WORKDIR}/src/github.com/hashicorp/vault/Godeps/_workspace + + while read -r -d '' x; do + rm -rf "${GOROOT}/src/${x}" "${GOROOT}/pkg/${KERNEL}_${ARCH}/${x}"{,.a} || die + done < <(find "${WORKDIR}/src/github.com/hashicorp/vault/Godeps/_workspace/src" -maxdepth 3 -mindepth 3 -type d -print0) + + rm -rf "${WORKDIR}/src/github.com/hashicorp/vault/Godeps/_workspace/src/github.com/awslabs" + go get -d -v -x github.com/awslabs/aws-sdk-go || die + + if ! type -P gox >/dev/null; then + pushd "${S}" >/dev/null || die + go get -d -v -x github.com/mitchellh/gox || die + fi +} + +src_compile() { + go install -v -x github.com/awslabs/aws-sdk-go || die + if ! type -P gox >/dev/null; then + go install -v -x github.com/mitchellh/gox || die + fi + PATH=${WORKDIR}/bin:${GOROOT}/bin:${PATH} emake dev +} + +src_install() { + local x + + newinitd "${FILESDIR}/${PN}.initd" "${PN}" + newconfd "${FILESDIR}/${PN}.confd" "${PN}" + systemd_dounit "${FILESDIR}/${PN}.service" + + keepdir /etc/${PN}.d + insinto /etc/${PN}.d + doins "${FILESDIR}/"*.json.example + + keepdir /var/log/${PN} + fowners ${PN}:${PN} /var/log/${PN} + + dobin bin/${PN} + find "${WORKDIR}"/{pkg,src} -name '.git*' -exec rm -rf {} \; 2>/dev/null + find "${WORKDIR}"/src/${GO_PN} -mindepth 1 -maxdepth 1 -type f -delete + while read -r -d '' x; do + x=${x#${WORKDIR}/src} + [[ -d ${WORKDIR}/pkg/${KERNEL}_${ARCH}/${x} || + -f ${WORKDIR}/pkg/${KERNEL}_${ARCH}/${x}.a ]] && continue + rm -rf "${WORKDIR}"/src/${x} + done < <(find "${WORKDIR}"/src/${GO_PN} -mindepth 1 -maxdepth 1 -type d -print0) + insopts -m0644 -p # preserve timestamps for bug 551486 + insinto /usr/lib/go/pkg/${KERNEL}_${ARCH}/${GO_PN%/*} + doins -r "${WORKDIR}"/pkg/${KERNEL}_${ARCH}/${GO_PN} + insinto /usr/lib/go/src/${GO_PN%/*} + doins -r "${WORKDIR}"/src/${GO_PN} +} diff --git a/app-admin/verynice/Manifest b/app-admin/verynice/Manifest new file mode 100644 index 000000000000..241c93d14ae1 --- /dev/null +++ b/app-admin/verynice/Manifest @@ -0,0 +1 @@ +DIST verynice-1.1.tar.gz 37576 SHA256 5830fd4ac14ba3677e49159adbb7cd61e3d42d1f0b9aa73e4ed0aa154af6cd8d SHA512 731fa22162bb4f48b943839ccf8ccdc769587e323da11e4a77ad14539a724ffbb89e5f4122e1ab36df3306c507afc958d1125160d34d9cbf55df4dc69e4a0139 WHIRLPOOL ed1b7790aa333497e869830b2aacc3fa2289864e363bef3362ffee115c8afa0eb36b8cc29f255d87b929bb3dec3f8d9e839f30668c4572bccfdfb61f95da07c3 diff --git a/app-admin/verynice/files/verynice b/app-admin/verynice/files/verynice new file mode 100644 index 000000000000..165b6c114751 --- /dev/null +++ b/app-admin/verynice/files/verynice @@ -0,0 +1,20 @@ +#!/sbin/runscript +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + after checkroot root +} + +start() { + ebegin "Starting verynice" + /usr/sbin/verynice -d /var/run/verynice.pid + eend $? +} + +stop() { + ebegin "Stopping verynice" + start-stop-daemon --stop --quiet --pidfile=/var/run/verynice.pid + eend $? +} diff --git a/app-admin/verynice/files/verynice-1.1-build.patch b/app-admin/verynice/files/verynice-1.1-build.patch new file mode 100644 index 000000000000..a70202b99300 --- /dev/null +++ b/app-admin/verynice/files/verynice-1.1-build.patch @@ -0,0 +1,73 @@ +From: Julian Ospald <hasufell@gentoo.org> +Date: Wed Dec 26 19:46:44 UTC 2012 +Subject: build system + +respect flags, add LDFLAGS to linker line +fix install rules + +--- Makefile ++++ Makefile +@@ -15,13 +15,15 @@ + # along with this program; if not, write to the Free Software + # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +-CC = gcc ++CC ?= gcc + + + RPM_BUILD_ROOT= + + # PREFIX is usually either /usr or /usr/local + PREFIX=/usr/local ++BINDIR=$(PREFIX)/sbin ++ETCDIR=/etc + TARGET=linux + + +@@ -32,8 +34,8 @@ + VERSION=1.1 + + #CFLAGS= -I../include/ -O3 -Wimplicit +-CFLAGS= -I../include/ -g -Wimplicit -DPREFIX=\"$(PREFIX)\" -DTARGET_$(TARGET) -DVERSION=\"$(VERSION)\" +-LINK = gcc ++CFLAGS += -Wimplicit ++CPPFLAGS = -I../include/ -DPREFIX=\"$(PREFIX)\" -DTARGET_$(TARGET) -DVERSION=\"$(VERSION)\" + AG = /home3/sdh4/anagram/ag_unix_dev/ag + + +@@ -55,20 +57,15 @@ + (cd .. ; tar cvzf verynice-$(VERSION).tar.gz verynice/ ) + + install: +- $(INSTALL) -d $(RPM_BUILD_ROOT)$(PREFIX)/sbin +- $(INSTALL) verynice $(RPM_BUILD_ROOT)$(PREFIX)/sbin +- if [ $(PREFIX) = "/usr" ]; then \ +- mv -f $(RPM_BUILD_ROOT)/etc/verynice.conf $(RPM_BUILD_ROOT)/etc/verynice.conf~ ; \ +- $(INSTALL) verynice.conf $(RPM_BUILD_ROOT)/etc ; \ +- else \ +- $(INSTALL) -d $(RPM_BUILD_ROOT)$(PREFIX)/etc ; \ +- mv -f $(RPM_BUILD_ROOT)$(PREFIX)/etc/verynice.conf $(RPM_BUILD_ROOT)$(PREFIX)/etc/verynice.conf~ ; \ +- $(INSTALL) -m 644 verynice.conf $(RPM_BUILD_ROOT)$(PREFIX)/etc ; \ +- fi ++ $(INSTALL) -d $(RPM_BUILD_ROOT)$(BINDIR) ++ $(INSTALL) verynice $(RPM_BUILD_ROOT)$(BINDIR) ++ $(INSTALL) -d $(RPM_BUILD_ROOT)$(ETCDIR) ++ $(INSTALL) -m 644 verynice.conf $(RPM_BUILD_ROOT)$(ETCDIR) + $(INSTALL) -d $(RPM_BUILD_ROOT)$(PREFIX)/share + $(INSTALL) -d $(RPM_BUILD_ROOT)$(PREFIX)/share/doc + $(INSTALL) -d $(RPM_BUILD_ROOT)$(PREFIX)/share/doc/verynice-$(VERSION) +- $(INSTALL) -m 644 verynice.html $(RPM_BUILD_ROOT)$(PREFIX)/share/doc/verynice-$(VERSION) ++ $(INSTALL) -d $(RPM_BUILD_ROOT)$(PREFIX)/share/doc/verynice-$(VERSION)/html ++ $(INSTALL) -m 644 verynice.html $(RPM_BUILD_ROOT)$(PREFIX)/share/doc/verynice-$(VERSION)/html + $(INSTALL) -m 644 README $(RPM_BUILD_ROOT)$(PREFIX)/share/doc/verynice-$(VERSION) + $(INSTALL) -m 644 README.SYN $(RPM_BUILD_ROOT)$(PREFIX)/share/doc/verynice-$(VERSION) + $(INSTALL) -m 644 COPYING $(RPM_BUILD_ROOT)$(PREFIX)/share/doc/verynice-$(VERSION) +@@ -95,7 +92,7 @@ + $(AG) $* + + verynice: verynice.o config.o linklist.o stringstack.o +- $(LINK) -g -o $@ $^ -lm ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ -lm + + + diff --git a/app-admin/verynice/files/verynice.service b/app-admin/verynice/files/verynice.service new file mode 100644 index 000000000000..e85ef4c895b2 --- /dev/null +++ b/app-admin/verynice/files/verynice.service @@ -0,0 +1,8 @@ +[Unit] +Description=A tool for dynamically adjusting the nice-level of processes + +[Service] +ExecStart=/usr/sbin/verynice + +[Install] +WantedBy=multi-user.target diff --git a/app-admin/verynice/metadata.xml b/app-admin/verynice/metadata.xml new file mode 100644 index 000000000000..bdc91aaef4c7 --- /dev/null +++ b/app-admin/verynice/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> + <email>hasufell@gentoo.org</email> + </maintainer> + <longdescription lang="en"> + A tool that can dynamically adjust the nice-level of processes under + Unix-like operating systems. + </longdescription> +</pkgmetadata> diff --git a/app-admin/verynice/verynice-1.1-r2.ebuild b/app-admin/verynice/verynice-1.1-r2.ebuild new file mode 100644 index 000000000000..4332b1288071 --- /dev/null +++ b/app-admin/verynice/verynice-1.1-r2.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils systemd toolchain-funcs + +DESCRIPTION="A tool for dynamically adjusting the nice-level of processes" +HOMEPAGE="http://thermal.cnde.iastate.edu/~sdh4/verynice/" +SRC_URI="http://thermal.cnde.iastate.edu/~sdh4/verynice/down/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +S=${WORKDIR}/${PN} + +src_prepare() { + epatch "${FILESDIR}"/${P}-build.patch +} + +src_compile() { + tc-export CC + emake RPM_BUILD_ROOT="${D}" PREFIX=/usr +} + +src_install(){ + emake RPM_BUILD_ROOT="${D}" PREFIX=/usr VERSION=${PVR} install + doinitd "${FILESDIR}"/verynice + systemd_dounit "${FILESDIR}"/verynice.service +} diff --git a/app-admin/watchfolder/Manifest b/app-admin/watchfolder/Manifest new file mode 100644 index 000000000000..20f7b05ad6d1 --- /dev/null +++ b/app-admin/watchfolder/Manifest @@ -0,0 +1 @@ +DIST watchfolder-0.3.3.tar.gz 86741 SHA256 fa853937d27eeae5acc492f1ade53298ae40cfc0094539dd36a9fdb87dda1846 SHA512 162a3535748d280d06db8b05ddc4c87b578ff4be08aeb7a08858c28fd4612f46c4b8ed866513283edcd6ad24207c94a02e562200ae102d1897b4b28be6717dc6 WHIRLPOOL 9f0cd5b84336530fbbd6e6c0227eb2b8f438716692aa9bec46636623bd69779daa6e851315aeaf186a70b54061a3330c283164ead833f19c6b2f50ef3a9ef60d diff --git a/app-admin/watchfolder/files/0.3.3-64bit.patch b/app-admin/watchfolder/files/0.3.3-64bit.patch new file mode 100644 index 000000000000..ea78be4fe295 --- /dev/null +++ b/app-admin/watchfolder/files/0.3.3-64bit.patch @@ -0,0 +1,11 @@ +--- watchd-0.3.3/watchd.c.orig 2006-02-23 12:33:32.000000000 -0500 ++++ watchd-0.3.3/watchd.c 2006-02-23 12:45:30.000000000 -0500 +@@ -176,7 +176,7 @@ + // free(p2tmp); + + p2tmp=strchr(p2,0xa); // Not very nice, +- p2[(int)p2tmp-(int)p2]=0x00; // but in fact: It works ;) ++ *(p2+(p2tmp-p2))=0x00; // but in fact: It works ;) + + while (p2[0]==' ') {p2++;} // Again, quick and dirty.. + while (p1[strlen(p1)-1]==' ') {p1[strlen(p1)-1]=0;} // Need to say anything?;) diff --git a/app-admin/watchfolder/files/0.3.3-fortify-sources.patch b/app-admin/watchfolder/files/0.3.3-fortify-sources.patch new file mode 100644 index 000000000000..c9e47038612f --- /dev/null +++ b/app-admin/watchfolder/files/0.3.3-fortify-sources.patch @@ -0,0 +1,11 @@ +--- watchd.c 2009-02-27 23:46:42.000000000 +0000 ++++ watchd.c 2009-02-27 23:50:22.000000000 +0000 +@@ -671,7 +671,7 @@ + { + if (folder->flags&FL_LOG_FILE) + { +- log=open(curfolder->logfile, O_CREAT | O_WRONLY | O_APPEND ); ++ log=open(curfolder->logfile, O_CREAT | O_WRONLY | O_APPEND, S_IRUSR | S_IWUSR ); + if (log>0) + { + lseek(fd, SEEK_SET, 0); // Rewind temp log file.. diff --git a/app-admin/watchfolder/metadata.xml b/app-admin/watchfolder/metadata.xml new file mode 100644 index 000000000000..67a0ac76914d --- /dev/null +++ b/app-admin/watchfolder/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> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="freshmeat">watchd</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/watchfolder/watchfolder-0.3.3.ebuild b/app-admin/watchfolder/watchfolder-0.3.3.ebuild new file mode 100644 index 000000000000..04ad295f0ac6 --- /dev/null +++ b/app-admin/watchfolder/watchfolder-0.3.3.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils toolchain-funcs + +DESCRIPTION="Watches directories and processes files, similar to the watchfolder option of Acrobat Distiller" +HOMEPAGE="http://freshmeat.net/projects/watchd/" +SRC_URI="http://dstunrea.sdf-eu.org/files/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ppc ~x86" +IUSE="" +DEPEND="" + +S="${WORKDIR}/${P/folder/d}" + +src_unpack() { + unpack ${A} + cd "${S}" + + # patch to remove warnings on 64 bit systems + epatch "${FILESDIR}"/${PV}-64bit.patch || die + # and a gcc 4.3.3 / fortify_sources fix + epatch "${FILESDIR}"/${PV}-fortify-sources.patch || die + + sed -i \ + -e '/-c -o/s:OPT:CFLAGS:' \ + -e 's:(\(LD\)\?OPT):(LDFLAGS) $(CFLAGS):' \ + -e 's:gcc:$(CC):' \ + Makefile || die "sed Makefile failed" +} + +src_compile() { + emake CC="$(tc-getCC)" || die "emake failed" +} + +src_install() { + dobin watchd || die "dobin failed" + insinto /etc + doins watchd.conf + dodoc README doc/* +} diff --git a/app-admin/webalizer/Manifest b/app-admin/webalizer/Manifest new file mode 100644 index 000000000000..c5f27cfc6b77 --- /dev/null +++ b/app-admin/webalizer/Manifest @@ -0,0 +1,7 @@ +DIST webalizer-2.23-05-RB29-patch.tar.gz 45853 SHA256 e212d1928315805b655bcb2614cf9e128373c80601ed6b7ee82ae6d050232a44 SHA512 967a5418e858adb5be8b64bac7edb52ac6eca8bce567269866f2ae7ac6e34c09d2d0ab1d7e7cfcbd92972cf5ea05ac2abaea2058e6fa9273e27cf10aacfb4759 WHIRLPOOL 2ac54d38f160e4311b240e00e6b33c0523341418a32190a3fdd2ba13a226fd53c986ea6d8e127f3444dec03c2801d984964f08141ee8e329e198dde520a6e76c +DIST webalizer-2.23-05-src.tar.bz2 308238 SHA256 afc88b8ee0927d9ed004962cb7e3d3054ef7628c7bc8a7b2e3ea1d758a47885a SHA512 4840c2ba25e34d5e276c724c311d2c2d7a0223dcbf6dec567960f56bc4cdfe4f6a1e412e3fcab53395d6357377f4f8d2b3bcc4b23c46a3ec6a895813a681cd4b WHIRLPOOL 82e092ae6e21e3bd3f70cd53a2dc6b71ed3903f640d7e4d2aa5be81ad43cf8aea54f0dd1d3fc02f55a615b1b9208ec339ccadcfa342737e61ebb0404f7fddfe1 +DIST webalizer-2.23-08-RB30-patch.tar.gz 45723 SHA256 cfd12f33a869e6eb2cf94165a75f733f205d85ba78345ce35b0b1bbce1a6aa93 SHA512 142674cb7de6e1833ed9bf7587d5d3b1fce64eb95b7448392d0e8ec6e89dcd69cdb6900b75db9c283b19e5423392f76565b5ad279748da656ed2061fb180c949 WHIRLPOOL 639be013978da35219f06866475268a89ae098d9ad10d43e4d03d8610c0d485c9ea47ed61ee41182d012841aa093babae334ec83ff5b941081c1afe3e0e545f2 +DIST webalizer-2.23-08-src.tar.bz2 308090 SHA256 b37524fbd98e97052a80d59f75e69f857468752cf74cc0eb0972e5fab02eb6f7 SHA512 23fe6e3ef1c85aa527ffafef16c31c13ad8e1f9feb774557c07a5c8fd6c67986b98180ef16d6cebe62d59c5f7ca214b8292e94ce8f195fa0541de9c5438fb9bd WHIRLPOOL 78f16d7a0bc0eda3cc03b2f9e62d5a722d9aa0935ed17b7ce102f3b3634e3b20476c80305dc887cfcc6a858fd0898e1e456d2cf9bf3275a854c8ab7ee126f779 +DIST webalizer-geodb-20140201.tgz 733070 SHA256 27abf8f48c76e63deae2ea86cd2c2ebe8ddd41a493d57289ae3a56ba1c7e5aaf SHA512 c31bbf39ab2a27712f83e7c1cf4297bc26850ed72e68bb4b47233b062055cf26931e859cdbc70dfa7737e17a3c05d4858b4e9c9c3a0492b0b285f92c0f992223 WHIRLPOOL 33ee071e70219abee3c794e3b60d18a1cfe7ed83495b41355b270398c696e8688f25155ee8e5b9d37f92da41904367d904ab91f565ba5005d32f401350a3b93d +DIST webalizer-geodb-latest.tgz 639447 SHA256 f2a1bd7fcc9c93ed6a627bd15f2c31866d5a6c6b7dd48852d84a129386327218 SHA512 0f32d1249902e17f37cd0e7680004262bbe5b4a34a00d882319258c6aed80503e89ed192d8365731ab507fa54560082ae16c7023d0bc2232350709106be24117 WHIRLPOOL 26f1edf87ea6102c5047b41702fd273d40360bde7c481183a3303e2c89af3d6ba7470cd942d4af1574bed8822b776a26ea13c2388b7654fffccee856cc99e571 +DIST webalizer.conf.gz 8986 SHA256 b7da31865a8c13a66756247d68242d6478900f2c2b9b5698ed35c0c613fb9a71 SHA512 ec7f815e0215116d72e6d93b471a4b86a1c152a8ebae7c374144cabeeb06750d3a39fde65faf069e9aeb133f27b0b4cdee16bed5442e7fbd4eb4f45a4f3cd84b WHIRLPOOL 58c2ced08eeba65e1c7acf951e2e0e1806af58fcd37997c4d824504235303d7f75cf6c05c7ce051e2e2f3b3abff9a929f0dfd7722a995a8ab65232cfb549e83a diff --git a/app-admin/webalizer/files/apache.webalizer b/app-admin/webalizer/files/apache.webalizer new file mode 100644 index 000000000000..0dbab4111a92 --- /dev/null +++ b/app-admin/webalizer/files/apache.webalizer @@ -0,0 +1,9 @@ +# This is the config snippet for Webalizer +<Directory "/var/www/localhost/htdocs/webalizer"> + Options None + AllowOverride None + Order allow,deny + Allow from all +</Directory> + +# vim: ts=4 filetype=apache diff --git a/app-admin/webalizer/files/webalizer-language-list.txt b/app-admin/webalizer/files/webalizer-language-list.txt new file mode 100644 index 000000000000..ed9e3232417b --- /dev/null +++ b/app-admin/webalizer/files/webalizer-language-list.txt @@ -0,0 +1,136 @@ +aa afar +ab abkhazian +af afrikaans +am amharic +ar arabic +as assamese +ay aymara +az azerbaijani +ba bashkir +be byelorussian +bg bulgarian +bh bihari +bi bislama +bn bengali +bo tibetan +br breton +ca catalan +co corsican +cs czech +cy welsh +da danish +de german +dz bhutani +el greek +en english +eo esperanto +es spanish +et estonian +eu basque +fa persian +fi finnish +fj fiji +fo faeroese +fr french +fy frisian +ga irish +gd gaelic +gl galician +gn guarani +gu gujarati +ha hausa +hi hindi +hr croatian +hu hungarian +hy armenian +ia interlingua +ie interlingue +ik inupiak +in indonesian +is icelandic +it italian +iw hebrew +ja japanese +ji yiddish +jw javanese +ka georgian +kk kazakh +kl greenlandic +km cambodian +kn kannada +ko korean +ks kashmiri +ku kurdish +ky kirghiz +la latin +ln lingala +lo laothian +lt lithuanian +lv latvian +mg malagasy +mi maori +mk macedonian +ml malayalam +mn mongolian +mo moldavian +mr marathi +ms malay +mt maltese +my burmese +na nauru +ne nepali +nl dutch +no norwegian +oc occitan +om oromo afan +or oriya +pa punjabi +pl polish +ps pashto +pt portuguese +qu quechua +rm rhaeto-romance +rn kirundi +ro romanian +ru russian +rw kinyarwanda +sa sanskrit +sd sindhi +sg sangro +sh serbo-croatian +si singhalese +sk slovak +sl slovenian +sm samoan +sn shona +so somali +sq albanian +sr serbian +ss siswati +st sesotho +su sudanese +sv swedish +sw swahili +ta tamil +te tegulu +tg tajik +th thai +ti tigrinya +tk turkmen +tl tagalog +tn setswana +to tonga +tr turkish +ts tsonga +tt tatar +tw twi +uk ukrainian +ur urdu +uz uzbek +vi vietnamese +vo volapuk +wo wolof +xh xhosa +yo yoruba +zh chinese +zu zulu diff --git a/app-admin/webalizer/metadata.xml b/app-admin/webalizer/metadata.xml new file mode 100644 index 000000000000..bdcb9578b97a --- /dev/null +++ b/app-admin/webalizer/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>web-apps</herd> + <maintainer> + <email>blueness@gentoo.org</email> + <name>Anthony G. Basile</name> + </maintainer> + <use> + <flag name='xtended'>Include the 404 extension</flag> + </use> +</pkgmetadata> diff --git a/app-admin/webalizer/webalizer-2.23.05.ebuild b/app-admin/webalizer/webalizer-2.23.05.ebuild new file mode 100644 index 000000000000..3e237f8bf934 --- /dev/null +++ b/app-admin/webalizer/webalizer-2.23.05.ebuild @@ -0,0 +1,134 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# uses webapp.eclass to create directories with right permissions +# probably slight overkill but works well + +EAPI="2" + +inherit versionator eutils webapp db-use + +WEBAPP_MANUAL_SLOT="yes" +XTENDED_VER="RB29" +XTENDED_URL="rb29" + +MY_PV="$(get_version_component_range 1-2)-$(get_version_component_range 3)" +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="Webserver log file analyzer" +HOMEPAGE="http://www.webalizer.org/" +SRC_URI="ftp://ftp.mrunix.net/pub/webalizer/${MY_P}-src.tar.bz2 + xtended? ( http://patrickfrei.ch/webalizer/${XTENDED_URL}/${PN}-${MY_PV}-${XTENDED_VER}-patch.tar.gz ) + ftp://ftp.mrunix.net/pub/webalizer/webalizer-geodb-latest.tgz + mirror://gentoo/${PN}.conf.gz" + +LICENSE="GPL-2" +KEYWORDS="alpha amd64 ~arm hppa ppc ppc64 ~sparc x86" +IUSE="geoip nls xtended" +SLOT="0" + +DEPEND=">=sys-libs/db-4.2 + >=sys-libs/zlib-1.1.4 + >=media-libs/libpng-1.2 + >=media-libs/gd-1.8.3[png] + dev-libs/geoip" +RDEPEND="${DEPEND}" + +S="${WORKDIR}"/${MY_P} + +pkg_setup() { + webapp_pkg_setup + + # USE=nls has no real meaning if LINGUAS isn't set + if use nls && [[ -z "${LINGUAS}" ]]; then + ewarn "you must set LINGUAS in /etc/make.conf" + ewarn "if you want to USE=nls" + die "please either set LINGUAS or do not use nls" + fi +} + +src_prepare() { + if use xtended; then + epatch "${WORKDIR}"/${PN}-${MY_PV}-${XTENDED_VER}-patch + fi +} + +src_configure() { + # really dirty hack; necessary due to a really gross ./configure + # basically, it just sets the natural language the program uses + # unfortunatly, this program only allows for one lang, so only the first + # entry in LINGUAS is used + if use nls; then + local longlang="$(grep ^${LINGUAS:0:2} "${FILESDIR}"/webalizer-language-list.txt)" + local myconf="${myconf} --with-language=${longlang:3}" + else + local myconf="${myconf} --with-language=english" + fi + + econf --enable-dns \ + --with-db=$(db_includedir) \ + --with-dblib=$(db_libname) \ + ${myconf} \ + $(use_enable geoip) \ + --with-geodb=/usr/share/webalizer/geodb \ + || die "econf failed" +} + +src_install() { + webapp_src_preinst + + dobin webalizer + dosym webalizer /usr/bin/webazolver + doman webalizer.1 + + insinto /etc + doins "${WORKDIR}"/${PN}.conf + dosed "s/apache/apache2/g" /etc/webalizer.conf + + insinto /usr/share/webalizer/geodb + doins "${WORKDIR}"/GeoDB.dat + + dodoc CHANGES *README* INSTALL sample.conf "${FILESDIR}"/apache.webalizer + + webapp_src_install +} + +pkg_postinst() { + elog + elog "It is suggested that you restart apache before using webalizer" + elog "You may want to review /etc/webalizer.conf and ensure that" + elog "OutputDir is set correctly" + elog + elog "Then just type webalizer to generate your stats." + elog "You can also use cron to generate them e.g. every day." + elog "They can be accessed via http://localhost/webalizer" + elog + elog "A sample Apache config file has been installed into" + elog "/usr/share/doc/${PF}/apache.webalizer" + elog "Please edit and install it as necessary" + elog + + if [[ ${#LINGUAS} -gt 2 ]] && use nls; then + ewarn + ewarn "You have more than one language in LINGUAS" + ewarn "Due to the limitations of this package, it was built" + ewarn "only with ${LINGUAS:0:2} support. If this is not what" + ewarn "you intended, please place the language you desire" + ewarn "_first_ in the list of LINGUAS in /etc/make.conf" + ewarn + fi + + if use xtended; then + ewarn + ewarn "If you are upgrading webalizer from USE=-xtended to USE=xtended" + ewarn "you will need to delete webalizer.current and process all previous" + ewarn "days in the same month using 'webalizer /path/to/access_log.1'." + ewarn "For more information about using XTENDED webalizer, see:" + ewarn + ewarn " http://www.patrickfrei.ch/webalizer/rb15/INSTALL" + ewarn + fi + + webapp_pkg_postinst +} diff --git a/app-admin/webalizer/webalizer-2.23.08.ebuild b/app-admin/webalizer/webalizer-2.23.08.ebuild new file mode 100644 index 000000000000..1df2ec806287 --- /dev/null +++ b/app-admin/webalizer/webalizer-2.23.08.ebuild @@ -0,0 +1,148 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# uses webapp.eclass to create directories with right permissions +# probably slight overkill but works well + +EAPI="5" + +inherit versionator eutils webapp db-use + +WEBAPP_MANUAL_SLOT="yes" +XTENDED_VER="RB30" +XTENDED_URL="rb30" + +MY_PV="$(get_version_component_range 1-2)-$(get_version_component_range 3)" +MY_P="${PN}-${MY_PV}" + +GEODB_DATE="20140201" +GEODB_URL="ftp://ftp.mrunix.net/pub/webalizer/geodb/" +GEODB_DIR="/usr/share/webalizer/geodb" + +DESCRIPTION="Webserver log file analyzer" +HOMEPAGE="http://www.webalizer.org/" +SRC_URI="ftp://ftp.mrunix.net/pub/webalizer/${MY_P}-src.tar.bz2 + xtended? ( http://patrickfrei.ch/webalizer/${XTENDED_URL}/${PN}-${MY_PV}-${XTENDED_VER}-patch.tar.gz ) + http://dev.gentoo.org/~blueness/webalizer/webalizer.conf.gz + ${GEODB_URL}/webalizer-geodb-${GEODB_DATE}.tgz" + +LICENSE="GPL-2" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="bzip2 xtended geoip nls" +SLOT="0" + +DEPEND=">=sys-libs/db-4.2 + >=sys-libs/zlib-1.1.4 + >=media-libs/libpng-1.2 + >=media-libs/gd-1.8.3[png] + dev-libs/geoip + bzip2? ( app-arch/bzip2 )" +RDEPEND="${DEPEND}" + +S="${WORKDIR}"/${MY_P} + +pkg_setup() { + webapp_pkg_setup + + # USE=nls has no real meaning if LINGUAS isn't set + if use nls && [[ -z "${LINGUAS}" ]]; then + ewarn "you must set LINGUAS in /etc/make.conf" + ewarn "if you want to USE=nls" + die "please either set LINGUAS or do not use nls" + fi +} + +src_prepare() { + if use xtended; then + epatch "${WORKDIR}"/${PN}-${MY_PV}-${XTENDED_VER}-patch + fi +} + +src_configure() { + # really dirty hack; necessary due to a really gross ./configure + # basically, it just sets the natural language the program uses + # unfortunatly, this program only allows for one lang, so only the first + # entry in LINGUAS is used + if use nls; then + local longlang="$(grep ^${LINGUAS:0:2} "${FILESDIR}"/webalizer-language-list.txt)" + local myconf="${myconf} --with-language=${longlang:3}" + else + local myconf="${myconf} --with-language=english" + fi + + econf --enable-dns \ + --with-db=$(db_includedir) \ + --with-dblib=$(db_libname) \ + ${myconf} \ + $(use_enable geoip) \ + $(use_enable bzip2 bz2) \ + --with-geodb=${GEODB_DIR} \ + || die "econf failed" +} + +src_install() { + webapp_src_preinst + + dobin webalizer + dosym webalizer /usr/bin/webazolver + doman webalizer.1 + + insinto /etc + doins "${WORKDIR}"/${PN}.conf + + insinto ${GEODB_DIR} + doins "${WORKDIR}"/GeoDB.dat + + dodoc CHANGES *README* INSTALL sample.conf "${FILESDIR}"/apache.webalizer + + webapp_src_install +} + +pkg_postinst() { + elog + elog "It is suggested that you restart apache before using webalizer" + elog "You may want to review /etc/webalizer.conf and ensure that" + elog "OutputDir is set correctly" + elog + elog "Then just type webalizer to generate your stats." + elog "You can also use cron to generate them e.g. every day." + elog "They can be accessed via http://localhost/webalizer" + elog + elog "A sample Apache config file has been installed into" + elog "/usr/share/doc/${PF}/apache.webalizer" + elog "Please edit and install it as necessary" + elog + + if [[ ${#LINGUAS} -gt 2 ]] && use nls; then + ewarn + ewarn "You have more than one language in LINGUAS" + ewarn "Due to the limitations of this package, it was built" + ewarn "only with ${LINGUAS:0:2} support. If this is not what" + ewarn "you intended, please place the language you desire" + ewarn "_first_ in the list of LINGUAS in /etc/make.conf" + ewarn + fi + + if use xtended; then + ewarn + ewarn "If you are upgrading webalizer from USE=-xtended to USE=xtended" + ewarn "you will need to delete webalizer.current and process all previous" + ewarn "days in the same month using 'webalizer /path/to/access_log.1'." + ewarn "For more information about using XTENDED webalizer, see:" + ewarn + ewarn " http://www.patrickfrei.ch/webalizer/rb30/INSTALL" + ewarn + fi + + if use geoip; then + elog + elog "Note: we have installed the GeoDB.dat dated ${GEODB_DATE}." + elog "But you may want to upate to the latest version which is" + elog "available at ${GEODB_URL}. Replace the GeoDB.dat file in" + elog "${GEODB_DIR} with the newer version." + elog + fi + + webapp_pkg_postinst +} diff --git a/app-admin/webapp-config/Manifest b/app-admin/webapp-config/Manifest new file mode 100644 index 000000000000..4c6c0ac19339 --- /dev/null +++ b/app-admin/webapp-config/Manifest @@ -0,0 +1,3 @@ +DIST webapp-config-1.52.tar.bz2 62951 SHA256 b8295bbc518f68f60913fe2ee9232d77f1a10e21fcddffb8c4370546ba96a2a5 SHA512 ec616067588e6ab306af067e70bab9d17961aa675f387ee67a2291235ce81638b49a784d9a6c31891b7c78a712f276c3e62c6681a5e496a52c7e6fe7753922ea WHIRLPOOL ca6484871e26acff6d14510a4a925672258f58c1c8c05c5207b78350b1cc787e29c6ea68c1af05b5c5aaebed12ce545e023f54acbdc7215678b30a2f14708eee +DIST webapp-config-1.53.tar.bz2 63429 SHA256 4d45b1452feb730cc55bfdce686277183acfd64ab6aef5fab82992d1a508263d SHA512 7d2fc7197d537f2264c26b68b61e69273d2fcd3eec93657db54ba685c8383e7b8245cf05ed2ddd8b72453bf3fbf8f4bc4867e53d608331799df2e6162be14820 WHIRLPOOL f12ca0f3fcee31de6e2ead3cd3685fa32c697d258324bf40fc2bfc2f1787c4e7cbd7290bbb5f5523515bff29cb78bece35fcad390e419cf5dd619e5efdafc1dc +DIST webapp-config-1.54.tar.bz2 58954 SHA256 7663c4f7ae0d4e7206e349f3bf79fed479c9971365363929f431c92ebd622d17 SHA512 fa61e88696eaed130575e5ae9a17ec827aa14aece359e5ba43fa723ad00083def22e44fb02d99fc5ba6000a5949c5ce7aecea9307d2bfae333e202ef111dcd31 WHIRLPOOL 417944147e0bdc7eb1575b10102230306f6c76652beeb0e2866d0fbe41b12bcdeb31421dd7551961db55f4fe4544ca5600c072cb74083621745c7c74fbfeec2e diff --git a/app-admin/webapp-config/files/webapp-config-1.50.16-absolute-paths.patch b/app-admin/webapp-config/files/webapp-config-1.50.16-absolute-paths.patch new file mode 100644 index 000000000000..c74fff9b2079 --- /dev/null +++ b/app-admin/webapp-config/files/webapp-config-1.50.16-absolute-paths.patch @@ -0,0 +1,42 @@ +Index: webapp-config-1.50.16/WebappConfig/config.py +=================================================================== +--- webapp-config-1.50.16.orig/WebappConfig/config.py ++++ webapp-config-1.50.16/WebappConfig/config.py +@@ -204,6 +204,7 @@ class Config: + pass + + self.__d = { ++ 'allow_absolute' : 'no', + 'config_protect' : wrapper.config_protect, + # Necessary to load the config file + 'my_etcconfig' : '/etc/vhosts/webapp-config', +@@ -870,8 +871,13 @@ class Config: + # + # this makes sure we don't write rubbish into the installs list + +- installpath = self.config.get('USER', 'g_htdocsdir') + '/' + \ +- self.config.get('USER', 'g_installdir') ++ g_installdir = self.config.get('USER', 'g_installdir') ++ ++ if (os.path.isabs(g_installdir) ++ and self.config.get('USER', 'allow_absolute') == 'yes'): ++ installpath = g_installdir ++ else: ++ installpath = self.config.get('USER', 'g_htdocsdir') + '/' + g_installdir + + installpath = re.compile('/+').sub('/', self.__root + installpath) + +Index: webapp-config-1.50.16/config/webapp-config +=================================================================== +--- webapp-config-1.50.16.orig/config/webapp-config ++++ webapp-config-1.50.16/config/webapp-config +@@ -183,6 +183,9 @@ vhost_perms_virtualowned_file="o-w" + + vhost_perms_installdir="0755" + ++# Allow specifying absolute path names using the -d option? ++allow_absolute="no" ++ + + # ======================================================================== + # END OF USER-EDITABLE SETTINGS diff --git a/app-admin/webapp-config/files/webapp-config-1.50.16-apache-move.patch b/app-admin/webapp-config/files/webapp-config-1.50.16-apache-move.patch new file mode 100644 index 000000000000..6f9a30e7a689 --- /dev/null +++ b/app-admin/webapp-config/files/webapp-config-1.50.16-apache-move.patch @@ -0,0 +1,13 @@ +Index: webapp-config-1.50.16/WebappConfig/server.py +=================================================================== +--- webapp-config-1.50.16.orig/WebappConfig/server.py ++++ webapp-config-1.50.16/WebappConfig/server.py +@@ -300,7 +300,7 @@ class Apache(Basic): + + name = 'Apache' + desc = 'supports installation on Apache 1 & 2' +- dep = '>=net-www/apache-1.3' ++ dep = '>=www-servers/apache-1.3' + + def set_server_user(self): + self.vhost_server_uid = get_user('apache') diff --git a/app-admin/webapp-config/files/webapp-config-1.50.16-baselayout2.patch b/app-admin/webapp-config/files/webapp-config-1.50.16-baselayout2.patch new file mode 100644 index 000000000000..24f000413479 --- /dev/null +++ b/app-admin/webapp-config/files/webapp-config-1.50.16-baselayout2.patch @@ -0,0 +1,13 @@ +Index: webapp-config-1.50.16/sbin/webapp-cleaner +=================================================================== +--- webapp-config-1.50.16.orig/sbin/webapp-cleaner ++++ webapp-config-1.50.16/sbin/webapp-cleaner +@@ -11,7 +11,7 @@ CMD="emerge -Cav" + WEBAPP_DIR="/usr/share/webapps" + WEBAPP_CONFIG= + +-[[ -z ${RC_GOT_FUNCTIONS} ]] && source /sbin/functions.sh ++[[ -z ${RC_GOT_FUNCTIONS} ]] && source /lib/gentoo/functions.sh + + function help() { + echo "Remove obsolete and unused versions of web applications" diff --git a/app-admin/webapp-config/files/webapp-config-1.50.16-fix-unicode-tests.patch b/app-admin/webapp-config/files/webapp-config-1.50.16-fix-unicode-tests.patch new file mode 100644 index 000000000000..cad75a2e517f --- /dev/null +++ b/app-admin/webapp-config/files/webapp-config-1.50.16-fix-unicode-tests.patch @@ -0,0 +1,39 @@ +Make strings unicode to fix test failures + +Python enables unicode by default. Various quoted strings used +in tests were not declared as unicode and so caused false failures. +This patch addresses this issue. + +Signed-off-by: Matthew Thode <prometheanfire@gentoo.org> +Signed-off-by: Anthony G. Basile <blueness@gentoo.org> + +diff -rupN webapp-config-1.50.16/WebappConfig.orig/db.py webapp-config-1.50.16/WebappConfig/db.py +--- webapp-config-1.50.16/WebappConfig.orig/db.py 2012-06-17 11:10:15.964264617 -0500 ++++ webapp-config-1.50.16/WebappConfig/db.py 2012-06-17 11:11:05.364265831 -0500 +@@ -186,7 +186,7 @@ class WebappDB(AppHierarchy): + >>> sb = [i[1] for i in b.list_locations().items()] + >>> sb.sort(lambda x,y: cmp(x[0]+x[1],y[0]+y[1])) + >>> sb +- [['gallery', '1.4.4_p6'], ['gallery', '2.0_rc2'], ['horde', '3.0.5'], ['phpldapadmin', '0.9.7_alpha4']] ++ [[u'gallery', u'1.4.4_p6'], [u'gallery', u'2.0_rc2'], [u'horde', u'3.0.5'], [u'phpldapadmin', u'0.9.7_alpha4']] + + >>> c = WebappDB(here + '/tests/testfiles/webapps', + ... package = 'horde', version = '3.0.5') +@@ -572,7 +572,7 @@ class WebappSource(AppHierarchy): + ... 'horde', '3.0.5') + >>> d = a.get_source_directories('htdocs') + >>> [i for i in d if i != '.svn'] +- ['dir1', 'dir2'] ++ [u'dir1', u'dir2'] + ''' + dirs = [] + +@@ -604,7 +604,7 @@ class WebappSource(AppHierarchy): + >>> a = WebappSource(here + '/tests/testfiles/share-webapps', + ... 'horde', '3.0.5') + >>> a.get_source_files('htdocs') +- ['test1', 'test2'] ++ [u'test1', u'test2'] + ''' + + files = [] diff --git a/app-admin/webapp-config/files/webapp-config-1.50.16-htdocs-symlink.patch b/app-admin/webapp-config/files/webapp-config-1.50.16-htdocs-symlink.patch new file mode 100644 index 000000000000..a7421b9b2c21 --- /dev/null +++ b/app-admin/webapp-config/files/webapp-config-1.50.16-htdocs-symlink.patch @@ -0,0 +1,13 @@ +Index: webapp-config-1.50.16/WebappConfig/server.py +=================================================================== +--- webapp-config-1.50.16.orig/WebappConfig/server.py ++++ webapp-config-1.50.16/WebappConfig/server.py +@@ -158,7 +158,7 @@ class Basic: + + # is the installation directory empty? + +- if not os.listdir(self.__destd): ++ if not os.listdir(self.__destd) and os.path.isdir(self.__destd): + if not self.__p: + os.rmdir(self.__destd) + else: diff --git a/app-admin/webapp-config/files/webapp-config-1.50.16-update-servers.patch b/app-admin/webapp-config/files/webapp-config-1.50.16-update-servers.patch new file mode 100644 index 000000000000..f6e7bbd54144 --- /dev/null +++ b/app-admin/webapp-config/files/webapp-config-1.50.16-update-servers.patch @@ -0,0 +1,80 @@ +--- WebappConfig/config.py 2006-12-30 13:38:36.000000000 -0500 ++++ config.py 2009-05-28 12:08:53.000000000 -0400 +@@ -1289,8 +1289,9 @@ + + allowed_servers = {'apache' : WebappConfig.server.Apache, + 'lighttpd' : WebappConfig.server.Lighttpd, +- 'aolserver': WebappConfig.server.Aolserver, +- 'cherokee' : WebappConfig.server.Cherokee} ++ 'cherokee' : WebappConfig.server.Cherokee, ++ 'nginx' : WebappConfig.server.Nginx, ++ 'gatling' : WebappConfig.server.Gatling} + + server = self.config.get('USER', 'vhost_server') + +--- WebappConfig/server.py 2009-05-28 12:06:48.000000000 -0400 ++++ server.py 2009-05-28 12:10:54.000000000 -0400 +@@ -316,16 +316,6 @@ + self.vhost_server_uid = get_user('lighttpd') + self.vhost_server_gid = get_group('lighttpd') + +-class Aolserver(Basic): +- +- name = 'Aolserver' +- desc = 'supports installation on Aolserver' +- dep = 'www-servers/aolserver' +- +- def set_server_user(self): +- self.vhost_server_uid = get_user('aolserver') +- self.vhost_server_gid = get_group('aolserver') +- + class Cherokee(Basic): + + name = 'Cherokee' +@@ -336,9 +326,30 @@ + self.vhost_server_uid = get_user('cherokee') + self.vhost_server_gid = get_group('cherokee') + ++class Nginx(Basic): ++ ++ name = 'Nginx' ++ desc = 'supports installation on Nginx' ++ dep = 'www-servers/nginx' ++ ++ def set_server_user(self): ++ self.vhost_server_uid = get_user('nginx') ++ self.vhost_server_gid = get_group('nginx') ++ ++class Gatling(Basic): ++ ++ name = 'Gatling' ++ desc = 'supports installation on Gatling' ++ dep = 'www-servers/gatling' ++ ++ def set_server_user(self): ++ self.vhost_server_uid = get_user('gatling') ++ self.vhost_server_gid = get_group('gatling') ++ + def listservers(): + + OUT.notice('\n'.join(['apache', +- 'aolserver', + 'lighttpd', +- 'cherokee'])) ++ 'cherokee', ++ 'nginx', ++ 'gatling'])) +--- config/webapp-config 2006-12-30 13:39:13.000000000 -0500 ++++ webapp-config 2009-05-28 12:11:24.000000000 -0400 +@@ -65,9 +65,10 @@ + # your choices are: + # + # apache +-# aolserver + # lighttpd + # cherokee ++# nginx ++# gatling + # + # you can override this setting by using the -s switch to webapp-config + diff --git a/app-admin/webapp-config/files/webapp-config-1.51-fix-indentation.patch b/app-admin/webapp-config/files/webapp-config-1.51-fix-indentation.patch new file mode 100644 index 000000000000..27a11aa83372 --- /dev/null +++ b/app-admin/webapp-config/files/webapp-config-1.51-fix-indentation.patch @@ -0,0 +1,25 @@ +From 1bc28049300625a3b24a632e2aacb5776937c19b Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Manuel=20R=C3=BCger?= <mrueg@gentoo.org> +Date: Tue, 6 Aug 2013 03:59:31 +0200 +Subject: [PATCH] WebappConfig/config.py: fix indentation + +--- + WebappConfig/config.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/WebappConfig/config.py b/WebappConfig/config.py +index bf55d1e..bb86a55 100644 +--- a/WebappConfig/config.py ++++ b/WebappConfig/config.py +@@ -962,7 +962,7 @@ class Config: + OUT.die('You need to specify at least the application you' + ' would like to handle!') + else: +- return self.config.get('USER', 'pn') ++ return self.config.get('USER', 'pn') + + def check_version_set(self): + if not self.config.has_option('USER', 'pvr'): +-- +1.8.1.5 + diff --git a/app-admin/webapp-config/files/webapp-config-1.52-nulls-doctest.patch b/app-admin/webapp-config/files/webapp-config-1.52-nulls-doctest.patch new file mode 100644 index 000000000000..97c64a90df25 --- /dev/null +++ b/app-admin/webapp-config/files/webapp-config-1.52-nulls-doctest.patch @@ -0,0 +1,185 @@ +From 5f61d249507c3502c3c76faf3926522e6e63370d Mon Sep 17 00:00:00 2001 +From: Devan Franchini <twitch153@gentoo.org> +Date: Fri, 3 Jan 2014 21:03:00 -0500 +Subject: [PATCH] WebappConfig/{ebuild,content}.py: Nulls doctest code. + +Due to the variable nature of the returning values of the two functions +run_vars() and add(), it is unrealistic to depend on doctest to not +fail. It has been decided that disabling these two doctest codes would +be the best decision to prevent failures that are not detrimental. + +X-Gentoo-Bug: 430010 +X-Gentoo-Bug-URL: https://bugs.gentoo.org/430010 +--- + WebappConfig/content.py | 36 ++++++++++++++++++------------------ + WebappConfig/ebuild.py | 46 +++++++++++++++++++++++----------------------- + 2 files changed, 41 insertions(+), 41 deletions(-) + +diff --git a/WebappConfig/content.py b/WebappConfig/content.py +index 8fe5be9..c635f5a 100644 +--- a/WebappConfig/content.py ++++ b/WebappConfig/content.py +@@ -379,71 +379,71 @@ class Contents: + (and this is important for md5) + relative - 1 for storing a relative filename, 0 otherwise + +- >>> OUT.color_off() +- >>> import os.path +- >>> here = os.path.dirname(os.path.realpath(__file__)) ++ OUT.color_off() ++ import os.path ++ here = os.path.dirname(os.path.realpath(__file__)) + + One for pretending: + +- >>> a = Contents(here + '/tests/testfiles/contents/app/', ++ a = Contents(here + '/tests/testfiles/contents/app/', + ... package = 'test', version = '1.0', + ... pretend = True) + + And this one is for real: + +- >>> b = Contents(here + '/tests/testfiles/contents/app/', ++ b = Contents(here + '/tests/testfiles/contents/app/', + ... package = 'test', version = '1.0') + + Pretend to add a file: + +- >>> a.add('file', 'config-owned', ++ a.add('file', 'config-owned', + ... destination = here + '/tests/testfiles/contents/app/', + ... path = '/test1', relative = True) + * pretending to add: file 1 config-owned "test1" + + Lets not pretend this time: + +- >>> b.add('file', 'config-owned', ++ b.add('file', 'config-owned', + ... destination = here + '/tests/testfiles/contents/app/', + ... path = '/test1', relative = True) +- >>> b.entry(here + '/tests/testfiles/contents/app/test1') #doctest: +ELLIPSIS ++ b.entry(here + '/tests/testfiles/contents/app/test1') #doctest: +ELLIPSIS + 'file 1 config-owned "test1" ... d8e8fca2dc0f896fd7cb4cb0031ba249 ' + + Lets produce an error with a file that does not exist: + +- >>> b.add('file', 'config-owned', ++ b.add('file', 'config-owned', + ... destination = here + '/tests/testfiles/contents/app/', + ... path = '/nothere', relative = True) #doctest: +ELLIPSIS + * Cannot access file .../tests/testfiles/contents/app/nothere to add it as installation content. This should not happen! + + Other file types: + +- >>> b.add('hardlink', 'config-owned', ++ b.add('hardlink', 'config-owned', + ... destination = here + '/tests/testfiles/contents/app/', + ... path = '/test2', relative = True) +- >>> b.entry(here + '/tests/testfiles/contents/app/test2') #doctest: +ELLIPSIS ++ b.entry(here + '/tests/testfiles/contents/app/test2') #doctest: +ELLIPSIS + 'file 1 config-owned "test2" ... d8e8fca2dc0f896fd7cb4cb0031ba249 ' +- >>> b.add('dir', 'default-owned', ++ b.add('dir', 'default-owned', + ... destination = here + '/tests/testfiles/contents/app/', + ... path = '/dir1', relative = True) +- >>> b.entry(here + '/tests/testfiles/contents/app/dir1') #doctest: +ELLIPSIS ++ b.entry(here + '/tests/testfiles/contents/app/dir1') #doctest: +ELLIPSIS + 'dir 1 default-owned "dir1" ... 0 ' +- >>> b.add('dir', 'default-owned', destination = here + '/tests/testfiles/contents/app', ++ b.add('dir', 'default-owned', destination = here + '/tests/testfiles/contents/app', + ... path = '/dir1', + ... relative = False) +- >>> b.entry(here + '/tests/testfiles/contents/app/dir1') #doctest: +ELLIPSIS ++ b.entry(here + '/tests/testfiles/contents/app/dir1') #doctest: +ELLIPSIS + 'dir 0 default-owned ".../tests/testfiles/contents/app/dir1" ... 0 ' + + Q: Is the full link to the target what we want? + A: Yes, since the link will still be ok even if we move the directory. + +- >>> b.add('sym', 'virtual', ++ b.add('sym', 'virtual', + ... destination = here + '/tests/testfiles/contents/app/', + ... path = '/test3', relative = True) +- >>> b.entry(here + '/tests/testfiles/contents/app/test3') #doctest: +ELLIPSIS ++ b.entry(here + '/tests/testfiles/contents/app/test3') #doctest: +ELLIPSIS + 'sym 1 virtual "test3" ... 0 .../tests/testfiles/contents/app/test1' + +- >>> b.db_print() #doctest: +ELLIPSIS ++ b.db_print() #doctest: +ELLIPSIS + file 1 config-owned "test1" ... d8e8fca2dc0f896fd7cb4cb0031ba249 + file 1 config-owned "test2" ... d8e8fca2dc0f896fd7cb4cb0031ba249 + sym 1 virtual "test3" ... 0 .../tests/testfiles/contents/app/test1 +diff --git a/WebappConfig/ebuild.py b/WebappConfig/ebuild.py +index 03c0c57..cc23bec 100644 +--- a/WebappConfig/ebuild.py ++++ b/WebappConfig/ebuild.py +@@ -201,35 +201,35 @@ class Ebuild: + The procedure from above is repeated to set up the default + environment: + +- >>> import WebappConfig.config +- >>> config = WebappConfig.config.Config() +- >>> config.config.set('USER', 'my_htdocsbase', 'htdocs') +- >>> config.config.set('USER', 'pn', 'horde') +- >>> config.config.set('USER', 'pvr', '3.0.5') +- >>> import os.path +- >>> here = os.path.dirname(os.path.realpath(__file__)) +- >>> config.config.set('USER', 'my_approot', here + +- ... '/tests/testfiles/share-webapps') +- >>> my_approot = config.config.get('USER', 'my_approot') +- >>> my_appdir = my_approot + "/horde/3.0.5" +- >>> config.config.set('USER', 'my_appdir', my_appdir) +- >>> config.config.set('USER', 'my_hookscriptsdir', my_appdir + '/hooks') +- >>> config.config.set('USER', 'my_cgibinbase', 'cgi-bin') +- >>> config.config.set('USER', 'my_errorsbase', 'error') +- >>> config.config.set('USER', 'my_iconsbase', 'icons') +- >>> config.config.set('USER', 'my_serverconfigdir', '/'.join([my_appdir,'conf'])) +- >>> config.config.set('USER', 'my_hostrootdir', '/'.join([my_appdir,'hostroot'])) +- >>> config.config.set('USER', 'my_htdocsdir', '/'.join([my_appdir,'htdocs'])) +- >>> config.config.set('USER', 'my_sqlscriptsdir', '/'.join([my_appdir,'sqlscripts'])) ++ "">>> import WebappConfig.config" ++ ">>> config = WebappConfig.config.Config()" ++ ">>> config.config.set('USER', 'my_htdocsbase', 'htdocs')" ++ ">>> config.config.set('USER', 'pn', 'horde')" ++ ">>> config.config.set('USER', 'pvr', '3.0.5')" ++ ">>> import os.path" ++ ">>> here = os.path.dirname(os.path.realpath(__file__))" ++ ">>> config.config.set('USER', 'my_approot', here +" ++ "... '/tests/testfiles/share-webapps')" ++ ">>> my_approot = config.config.get('USER', 'my_approot')" ++ ">>> my_appdir = my_approot + "/horde/3.0.5"" ++ ">>> config.config.set('USER', 'my_appdir', my_appdir)" ++ ">>> config.config.set('USER', 'my_hookscriptsdir', my_appdir + '/hooks')" ++ ">>> config.config.set('USER', 'my_cgibinbase', 'cgi-bin')" ++ ">>> config.config.set('USER', 'my_errorsbase', 'error')" ++ ">>> config.config.set('USER', 'my_iconsbase', 'icons')" ++ ">>> config.config.set('USER', 'my_serverconfigdir', '/'.join([my_appdir,'conf']))" ++ ">>> config.config.set('USER', 'my_hostrootdir', '/'.join([my_appdir,'hostroot']))" ++ ">>> config.config.set('USER', 'my_htdocsdir', '/'.join([my_appdir,'htdocs']))" ++ ">>> config.config.set('USER', 'my_sqlscriptsdir', '/'.join([my_appdir,'sqlscripts']))" + + Time to create the ebuild handler: + +- >>> a = Ebuild(config) ++ ">>> a = Ebuild(config)" + + The dummy post-install file should display all the variables + that are exported here: + +- >>> a.show_postinst() #doctest: +ELLIPSIS ++ ">>> a.show_postinst() #doctest: +ELLIPSIS + <BLANKLINE> + ================================================================= + POST-INSTALL INSTRUCTIONS +@@ -270,7 +270,7 @@ class Ebuild: + PVR: 3.0.5 + <BLANKLINE> + ================================================================= +- <BLANKLINE> ++ <BLANKLINE>" + ''' + + v_root = self.get_config('vhost_root') +-- +1.8.3.2 + diff --git a/app-admin/webapp-config/files/webapp-config-1.53-sources-function.sh-from-lib-gentoo.patch b/app-admin/webapp-config/files/webapp-config-1.53-sources-function.sh-from-lib-gentoo.patch new file mode 100644 index 000000000000..06a924a426be --- /dev/null +++ b/app-admin/webapp-config/files/webapp-config-1.53-sources-function.sh-from-lib-gentoo.patch @@ -0,0 +1,25 @@ +From ff7ba0d89c79584f14a8137d886a656a9af6de5c Mon Sep 17 00:00:00 2001 +From: Devan Franchini <twitch153@gentoo.org> +Date: Sat, 27 Dec 2014 20:43:08 -0500 +Subject: [PATCH] webapp-cleaner: sources function.sh from /lib/gentoo + +--- + sbin/webapp-cleaner | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/sbin/webapp-cleaner b/sbin/webapp-cleaner +index bfec623..52e44ac 100755 +--- a/sbin/webapp-cleaner ++++ b/sbin/webapp-cleaner +@@ -13,7 +13,7 @@ CMD="emerge -Cav" + WEBAPP_DIR="/usr/share/webapps" + WEBAPP_CONFIG= + +-[[ -z ${RC_GOT_FUNCTIONS} ]] && source /etc/init.d/functions.sh ++[[ -z ${RC_GOT_FUNCTIONS} ]] && source /lib/gentoo/functions.sh + + function help() { + echo "Remove obsolete and unused versions of web applications" +-- +2.0.5 + diff --git a/app-admin/webapp-config/files/webapp-config-1.54-pvr-check.patch b/app-admin/webapp-config/files/webapp-config-1.54-pvr-check.patch new file mode 100644 index 000000000000..9a35ad70cafb --- /dev/null +++ b/app-admin/webapp-config/files/webapp-config-1.54-pvr-check.patch @@ -0,0 +1,49 @@ +commit 9e251c7574d074e424ea19024f743c754f321979 +Author: Devan Franchini <twitch153@gentoo.org> +Date: Fri Jul 10 21:25:17 2015 -0400 + + config.py: Fixes package version checking regression + + Previously webapp-config would not do any sanity checks when + setting the package version. After adding a sanity check in 1.54 + I made the mistake of not being flexible enough and this caused + a regression that prevented web apps with versions such as + "20140929d"[1] to be installed. This commit fixes that while still + allowing for some sanity checking. + + [1]: https://github.com/gentoo/webapp-config/issues/2 + +diff --git a/WebappConfig/config.py b/WebappConfig/config.py +index 6c915c3..3a176a0 100644 +--- a/WebappConfig/config.py ++++ b/WebappConfig/config.py +@@ -996,17 +996,20 @@ class Config: + OUT.die('Invalid package name') + + if len(args) > 1: +- argsvr = args[1].split('.') +- if len(argsvr) == 1: +- OUT.die('Invalid package version: %(pvr)s' ++ pvr = args[1] ++ has_int = False # A package version should have at least one ++ # numerical value, but we want to allow for ++ # the flexibility of having any alphanumeric ++ # value while checking to make sure it's sane. ++ ++ for char in pvr: ++ if char.isdigit(): ++ has_int = True ++ ++ if not has_int: ++ OUT.die('Invalid package version: "%(pvr)s"' + % {'pvr': args[1]}) + +- pvr = '' +- for i in range(0, len(argsvr)): +- if not i == len(argsvr) - 1: +- pvr += argsvr[i] + '.' +- else: +- pvr += argsvr[i] + self.config.set('USER', 'pvr', pvr) + + if (not options['dir'] and diff --git a/app-admin/webapp-config/metadata.xml b/app-admin/webapp-config/metadata.xml new file mode 100644 index 000000000000..c2253fc5d9b9 --- /dev/null +++ b/app-admin/webapp-config/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>web-apps</herd> + <maintainer> + <email>twitch153@gentoo.org</email> + <name>Devan Franchini</name> + </maintainer> + <maintainer> + <email>blueness@gentoo.org</email> + <name>Anthony G. Basile</name> + </maintainer> + <use> + <flag name="portage">Propagete python_targets dependencies to sys-apps/portage</flag> + </use> +</pkgmetadata> diff --git a/app-admin/webapp-config/webapp-config-1.52-r1.ebuild b/app-admin/webapp-config/webapp-config-1.52-r1.ebuild new file mode 100644 index 000000000000..278cdfe676f0 --- /dev/null +++ b/app-admin/webapp-config/webapp-config-1.52-r1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +PYTHON_COMPAT=( python{2_7,3_3} ) + +inherit distutils-r1 + +SRC_URI="http://dev.gentoo.org/~twitch153/${PN}/${P}.tar.bz2" +KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd" + +DESCRIPTION="Gentoo's installer for web-based applications" +HOMEPAGE="http://sourceforge.net/projects/webapp-config/" + +LICENSE="GPL-2" +SLOT="0" +IUSE="+portage" + +DEPEND="app-text/xmlto + !dev-python/configparser" +RDEPEND="portage? ( sys-apps/portage[${PYTHON_USEDEP}] )" + +python_prepare() { + epatch "${FILESDIR}/${P}-nulls-doctest.patch" +} + +python_compile_all() { + emake -C doc/ +} + +python_install() { + # According to this discussion: + # http://mail.python.org/pipermail/distutils-sig/2004-February/003713.html + # distutils does not provide for specifying two different script install + # locations. Since we only install one script here the following should + # be ok + distutils-r1_python_install --install-scripts="/usr/sbin" +} + +python_install_all() { + distutils-r1_python_install_all + + insinto /etc/vhosts + doins config/webapp-config + + keepdir /usr/share/webapps + keepdir /var/db/webapps + + dodoc AUTHORS + doman doc/*.[58] + dohtml doc/*.[58].html +} + +python_test() { + PYTHONPATH="." "${PYTHON}" WebappConfig/tests/dtest.py \ + || die "Testing failed with ${EPYTHON}" +} + +pkg_postinst() { + elog "Now that you have upgraded webapp-config, you **must** update your" + elog "config files in /etc/vhosts/webapp-config before you emerge any" + elog "packages that use webapp-config." +} diff --git a/app-admin/webapp-config/webapp-config-1.53-r2.ebuild b/app-admin/webapp-config/webapp-config-1.53-r2.ebuild new file mode 100644 index 000000000000..df377d591cd7 --- /dev/null +++ b/app-admin/webapp-config/webapp-config-1.53-r2.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +RESTRICT="test" + +PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy ) + +inherit distutils-r1 + +SRC_URI="http://dev.gentoo.org/~twitch153/${PN}/${P}.tar.bz2" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd" + +DESCRIPTION="Gentoo's installer for web-based applications" +HOMEPAGE="http://sourceforge.net/projects/webapp-config/" + +LICENSE="GPL-2" +SLOT="0" +IUSE="+portage" + +DEPEND="app-text/xmlto + !dev-python/configparser + sys-apps/gentoo-functions" +RDEPEND="portage? ( sys-apps/portage[${PYTHON_USEDEP}] )" + +python_prepare() { + epatch "${FILESDIR}/${P}-sources-function.sh-from-lib-gentoo.patch" +} + +python_compile_all() { + emake -C doc/ +} + +python_install() { + # According to this discussion: + # http://mail.python.org/pipermail/distutils-sig/2004-February/003713.html + # distutils does not provide for specifying two different script install + # locations. Since we only install one script here the following should + # be ok + distutils-r1_python_install --install-scripts="/usr/sbin" +} + +python_install_all() { + distutils-r1_python_install_all + + insinto /etc/vhosts + doins config/webapp-config + + keepdir /usr/share/webapps + keepdir /var/db/webapps + + dodoc AUTHORS + doman doc/*.[58] + dohtml doc/*.[58].html +} + +python_test() { + PYTHONPATH="." "${PYTHON}" WebappConfig/tests/dtest.py \ + || die "Testing failed with ${EPYTHON}" +} + +pkg_postinst() { + elog "Now that you have upgraded webapp-config, you **must** update your" + elog "config files in /etc/vhosts/webapp-config before you emerge any" + elog "packages that use webapp-config." +} diff --git a/app-admin/webapp-config/webapp-config-1.54-r1.ebuild b/app-admin/webapp-config/webapp-config-1.54-r1.ebuild new file mode 100644 index 000000000000..e16f3092c2f1 --- /dev/null +++ b/app-admin/webapp-config/webapp-config-1.54-r1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy ) + +inherit distutils-r1 + +SRC_URI="http://dev.gentoo.org/~twitch153/${PN}/${P}.tar.bz2" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" + +DESCRIPTION="Gentoo's installer for web-based applications" +HOMEPAGE="http://sourceforge.net/projects/webapp-config/" + +LICENSE="GPL-2" +SLOT="0" +IUSE="+portage" + +DEPEND="app-text/xmlto + sys-apps/gentoo-functions" +RDEPEND="portage? ( sys-apps/portage[${PYTHON_USEDEP}] )" + +python_prepare() { + epatch "${FILESDIR}/${P}-pvr-check.patch" +} +python_compile_all() { + emake -C doc/ +} + +python_install() { + # According to this discussion: + # http://mail.python.org/pipermail/distutils-sig/2004-February/003713.html + # distutils does not provide for specifying two different script install + # locations. Since we only install one script here the following should + # be ok + distutils-r1_python_install --install-scripts="/usr/sbin" +} + +python_install_all() { + distutils-r1_python_install_all + + insinto /etc/vhosts + doins config/webapp-config + + keepdir /usr/share/webapps + keepdir /var/db/webapps + + dodoc AUTHORS + doman doc/*.[58] + dohtml doc/*.[58].html +} + +python_test() { + PYTHONPATH="." "${PYTHON}" WebappConfig/tests/external.py \ + || die "Testing failed with ${EPYTHON}" +} + +pkg_postinst() { + elog "webapp-config now requires that all -I/-U/-C commands be followed" + elog "by the package name and package version of the webapp" + elog "eg.) 'webapp-config -d drupal -I drupal 8.0.0_beta10'" + elog "See 'man 8 webapp-config' for more information" +} diff --git a/app-admin/webapp-config/webapp-config-9999.ebuild b/app-admin/webapp-config/webapp-config-9999.ebuild new file mode 100644 index 000000000000..2325439ab7b1 --- /dev/null +++ b/app-admin/webapp-config/webapp-config-9999.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy ) + +inherit distutils-r1 + +if [[ ${PV} = 9999* ]] +then + EGIT_REPO_URI="git://anongit.gentoo.org/proj/${PN}.git" + inherit git-r3 + KEYWORDS="" +else + SRC_URI="http://dev.gentoo.org/~blueness/${PN}/${P}.tar.bz2" + KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" +fi + +DESCRIPTION="Gentoo's installer for web-based applications" +HOMEPAGE="http://sourceforge.net/projects/webapp-config/" + +LICENSE="GPL-2" +SLOT="0" +IUSE="+portage" + +DEPEND="app-text/xmlto + !dev-python/configparser + sys-apps/gentoo-functions" +RDEPEND="portage? ( sys-apps/portage[${PYTHON_USEDEP}] )" + +python_compile_all() { + emake -C doc/ +} + +python_install() { + # According to this discussion: + # http://mail.python.org/pipermail/distutils-sig/2004-February/003713.html + # distutils does not provide for specifying two different script install + # locations. Since we only install one script here the following should + # be ok + distutils-r1_python_install --install-scripts="/usr/sbin" +} + +python_install_all() { + distutils-r1_python_install_all + + insinto /etc/vhosts + doins config/webapp-config + + keepdir /usr/share/webapps + keepdir /var/db/webapps + + dodoc AUTHORS + doman doc/*.[58] + dohtml doc/*.[58].html +} + +python_test() { + PYTHONPATH="." "${PYTHON}" WebappConfig/tests/external.py \ + || die "Testing failed with ${EPYTHON}" +} + +pkg_postinst() { + elog "Now that you have upgraded webapp-config, you **must** update your" + elog "config files in /etc/vhosts/webapp-config before you emerge any" + elog "packages that use webapp-config." +} diff --git a/app-admin/webmin/Manifest b/app-admin/webmin/Manifest new file mode 100644 index 000000000000..d363bb20ebc3 --- /dev/null +++ b/app-admin/webmin/Manifest @@ -0,0 +1,2 @@ +DIST webmin-1.730-minimal.tar.gz 2616032 SHA256 9e101e5cbd728f43474222dd3948aa8d4a006620e9b4b7074af60db8b22cd117 SHA512 62f5067a1dc122c037a08d3dddb6a6de7ea88203ca9f8d99c3d349e2bf20c138aa56a0cd62fd5b65d520b38b8df655a9177ffb412fea2f880bdb410b2817dd43 WHIRLPOOL 6eed741e901fe96843801d060e9ffaf3e80130ec532953144e6f2b33244fb4de2111e59800d6ef2113b788a67d81ee5b529cca8252d8ca7011afc56a356f94ea +DIST webmin-1.730.tar.gz 22469783 SHA256 91ec24951c5df041da9a299d280fcfcd83df7406b60ffa6ff816cb7a63d3a9cc SHA512 060fe881e6e8588bc46c01769de913aa56f004fdab6144baefa705c66086624cbb621be5c65bee6814c6dee340b7f93434843b34def00a83acbd259056b21529 WHIRLPOOL ea86d251cf551a3661619c46101b30c28ab01aeb75ac4b5e8de6354c0ede6af8b3602410ca8eed876c876681233d8e5763aaa6b4f8a93d3c4c8ed14366521b4f diff --git a/app-admin/webmin/files/gentoo-setup b/app-admin/webmin/files/gentoo-setup new file mode 100755 index 000000000000..0c2dd2d186d1 --- /dev/null +++ b/app-admin/webmin/files/gentoo-setup @@ -0,0 +1,417 @@ +#!/bin/sh +# gentoo-setup.sh +# +# Version 1.2 +# +# A modified original Webmin setup.sh script to comply with Gentoo specifics +# +# Modification done by: PhobosK <phobosk@kbfx.net> +# +# This script runs after the webmin archive is installed, and in the pkg_config() phase. +# It does setup the various config files of Webmin depending on if it is +# a new install, an upgrade or a reset. + +LANG= +export LANG + +if [ -z ${wadir} ]; then + echo "You can't run this script outside of the 'emerge --config app-admin/webmin' command." + exit 1 +fi + +# All things we do is from the Webmin install dir - $wadir +cd $wadir + + +# Are we hard resetting everything? +# If yes, we do: +# 1. Run the specific Webmin $wadir/run-uninstalls.pl +# It runs all uninstall.pl files in every module's folder. +# They delete all the set specific Webmin cron jobs. +# If bumping you should go through these files using the command: +# find . -name uninstall.pl -exec cat {} \; -print +# 2. Delete the whole /etc/webmin content, keeping only the gentoo .keep_* files +if [ "$reset" = "hard" ]; then + echo "Running Webmin's specific uninstall procedures.. (Please ignore any possible errors)" + (WEBMIN_CONFIG=$config_dir WEBMIN_VAR=$var_dir LANG= "$wadir/run-uninstalls.pl") + echo "..done" + echo "" + + echo "Deleting the content of user's config folder: $config_dir .." + find $config_dir ! -name '.keep_*' -delete 2>/dev/null + echo "..done" + echo "" +fi + + +# Are we soft resetting? +# If yes we do: +# - Delete the $config_dir/config file so we get new config values +if [ "$reset" = "soft" ]; then + echo "Deleting the user's $config_dir/config file.." + if [ -f "$config_dir/config" ]; then + rm -f "$config_dir/config" + fi + echo "..done" + echo "" +fi + + +# Get all available modules of this version +allmods=`echo */module.info | sed -e 's/\/module.info//g'` + +# Get current Webmin version +ver=`cat "$wadir/version"` + +if [ -r "$config_dir/config" ]; then + upgrading=1 +fi + + +# Check if upgrading from an old version +if [ "$upgrading" = 1 ]; then + echo "Updating existant Webmin's config files.." + + # Get current var path + if [ -r "$config_dir/var-path" ]; then + _var_dir=`cat $config_dir/var-path` + if [ -n ${_var_dir} ]; then + var_dir=${_var_dir} + fi + fi + + # Get current perl path + if [ -r "$config_dir/perl-path" ]; then + _perl=`cat $config_dir/perl-path` + if [ -n ${_perl} ]; then + perl=${_perl} + fi + fi + + # Get old os name and version + os_type=`grep "^os_type=" $config_dir/config | sed -e 's/os_type=//g'` + os_version=`grep "^os_version=" $config_dir/config | sed -e 's/os_version=//g'` + real_os_type=`grep "^real_os_type=" $config_dir/config | sed -e 's/real_os_type=//g'` + real_os_version=`grep "^real_os_version=" $config_dir/config | sed -e 's/real_os_version=//g'` + + # Get port, ssl, no_ssl2, no_ssl3, ssl_redirect, no_sslcompression and keyfile + port=`grep "^port=" $config_dir/miniserv.conf | sed -e 's/port=//g'` + ssl=`grep "^ssl=" $config_dir/miniserv.conf | sed -e 's/ssl=//g'` + no_ssl2=`grep "^no_ssl2=" $config_dir/miniserv.conf | sed -e 's/no_ssl2=//g'` + no_ssl3=`grep "^no_ssl3=" $config_dir/miniserv.conf | sed -e 's/no_ssl3=//g'` + ssl_redirect=`grep "^ssl_redirect=" $config_dir/miniserv.conf | sed -e 's/ssl_redirect=//g'` + no_sslcompression=`grep "^no_sslcompression=" $config_dir/miniserv.conf | sed -e 's/no_sslcompression=//g'` + keyfile=`grep "^keyfile=" $config_dir/miniserv.conf | sed -e 's/keyfile=//g'` + + # Update ACLs + $perl "$wadir/newmods.pl" $config_dir $allmods + + # Update miniserv.conf with new root directory, mime types file and server info + grep -v "^root=" $config_dir/miniserv.conf | grep -v "^mimetypes=" | grep -v "^server=" >$tempdir/$$.miniserv.conf + mv $tempdir/$$.miniserv.conf $config_dir/miniserv.conf + echo "root=$wadir" >> $config_dir/miniserv.conf + echo "mimetypes=$wadir/mime.types" >> $config_dir/miniserv.conf + echo "server=MiniServ/$ver" >> $config_dir/miniserv.conf + grep logout= $config_dir/miniserv.conf >/dev/null + if [ $? != "0" ]; then + echo "logout=$config_dir/logout-flag" >> $config_dir/miniserv.conf + fi + + # Remove old cache of module infos + rm -f $config_dir/module.infos.cache + echo "..done" + echo "" +else + # Create webserver's new config files + echo "Creating Webmin's new config files.." + + echo $perl > $config_dir/perl-path + echo $var_dir > $config_dir/var-path + + # Create a totally new conf file + cfile=$config_dir/miniserv.conf + echo "port=$port" > $cfile + echo "root=$wadir" >> $cfile + echo "mimetypes=$wadir/mime.types" >> $cfile + echo "addtype_cgi=internal/cgi" >> $cfile + echo "realm=Webmin Server" >> $cfile + echo "logfile=$var_dir/miniserv.log" >> $cfile + echo "errorlog=$var_dir/miniserv.error" >> $cfile + echo "pidfile=$pidfile" >> $cfile + echo "logtime=168" >> $cfile + echo "ppath=$ppath" >> $cfile + echo "ssl=$ssl" >> $cfile + echo "no_ssl2=$no_ssl2" >> $cfile + echo "no_ssl3=$no_ssl3" >> $cfile + echo "ssl_redirect=$ssl_redirect" >> $cfile + echo "no_sslcompression=$no_sslcompression" >> $cfile + echo "keyfile=$keyfile" >> $cfile + echo "env_WEBMIN_CONFIG=$config_dir" >> $cfile + echo "env_WEBMIN_VAR=$var_dir" >> $cfile + echo "atboot=$atboot" >> $cfile + echo "logout=$config_dir/logout-flag" >> $cfile + echo "listen=10000" >> $cfile + echo "denyfile=\\.pl\$" >> $cfile + echo "log=1" >> $cfile + echo "blockhost_failures=5" >> $cfile + echo "blockhost_time=60" >> $cfile + echo "syslog=1" >> $cfile + echo "session=1" >> $cfile + echo "premodules=WebminCore" >> $cfile + echo "server=MiniServ/$ver" >> $cfile + + # Append package-specific info to config file. + # miniserv-conf can be created by upstream or by us in src_install phase (see there). + if [ -f "$wadir/miniserv-conf" ]; then + cat "$wadir/miniserv-conf" >>$cfile + fi + + # Create the default user allowed to login - root only + login="root" + + if [ -r /etc/shadow ]; then + #crypt=`grep "^root:" /etc/shadow | cut -f 2 -d :` + crypt=x + else + crypt=`grep "^root:" /etc/passwd | cut -f 2 -d :` + fi + + ufile=$config_dir/miniserv.users + echo "$login:$crypt:0" > $ufile + chmod 600 $ufile + + + echo "userfile=$ufile" >> $cfile + chmod 600 $cfile + echo "..done" + echo "" + + echo "Creating access control file.." + afile=$config_dir/webmin.acl + echo "$login: $allmods" > $afile + chmod 600 $afile + echo "..done" + echo "" +fi + + +# Create start, stop, restart and reload Gentoo compliant Webmin scripts +# We use sys-apps/openrc functions which is already pulled by sys-apps/baselayout +# or systemctl if we run under systemd +echo "Creating start and stop scripts.." +rm -f $config_dir/{start,stop,restart,reload} + +# The start script in /etc/webmin (Gentoo compliant) +cat <<END >>"$config_dir/start" +#!/bin/sh + +if [ ! -f "${pidfile}" ]; then + if [[ -d /run/systemd/system ]] ; then + systemctl start webmin.service + else + rc-service --ifexists -- webmin start + fi +fi +END + +# The stop script in /etc/webmin (Gentoo compliant) +cat <<END >>"$config_dir/stop" +#!/bin/sh + +if [[ -d /run/systemd/system ]] ; then + systemctl stop webmin.service +else + rc-service --ifexists -- webmin --ifstarted stop +fi +END + +# The restart script in /etc/webmin (Gentoo compliant) +cat <<END >>"$config_dir/restart" +#!/bin/sh + +if [[ -d /run/systemd/system ]] ; then + systemctl try-restart webmin.service +else + rc-service --ifexists -- webmin --ifstarted restart +fi +END + +# The reload script in /etc/webmin (Gentoo compliant) +cat <<END >>"$config_dir/reload" +#!/bin/sh + +if [[ -d /run/systemd/system ]] ; then + systemctl reload-or-try-restart webmin.service +else + rc-service --ifexists -- webmin --ifstarted reload +fi +END + +chmod 755 $config_dir/{start,stop,restart,reload} +echo "..done" +echo "" + + +if [ "$upgrading" = 1 ]; then + echo "Updating other config files.." +else + echo "Copying other config files.." +fi + +# This just copies and merges the Webmin's release config files, with user's in the /etc/webmin folder +newmods=`$perl "$wadir/copyconfig.pl" "$os_type/$real_os_type" "$os_version/$real_os_version" "$wadir" $config_dir "" $allmods` +if [ "$upgrading" != 1 ]; then + # Store the OS and version + echo "os_type=$os_type" >> $config_dir/config + echo "os_version=$os_version" >> $config_dir/config + echo "real_os_type=$real_os_type" >> $config_dir/config + echo "real_os_version=$real_os_version" >> $config_dir/config + + # Turn on logging by default + echo "log=1" >> $config_dir/config + + # Disallow unknown referers by default + echo "referers_none=1" >>$config_dir/config +else + # one-off hack to set log variable in config from miniserv.conf + grep log= $config_dir/config >/dev/null + if [ "$?" = "1" ]; then + grep log= $config_dir/miniserv.conf >> $config_dir/config + grep logtime= $config_dir/miniserv.conf >> $config_dir/config + grep logclear= $config_dir/miniserv.conf >> $config_dir/config + fi + + # Disallow unknown referers if not set + grep referers_none= $config_dir/config >/dev/null + if [ "$?" != "0" ]; then + echo "referers_none=1" >>$config_dir/config + fi +fi +echo $ver > $config_dir/version +echo "..done" +echo "" + +# Set passwd_ fields in miniserv.conf from global config +for field in passwd_file passwd_uindex passwd_pindex passwd_cindex passwd_mindex; do + grep $field= $config_dir/miniserv.conf >/dev/null + if [ "$?" != "0" ]; then + grep $field= $config_dir/config >> $config_dir/miniserv.conf + fi +done +grep passwd_mode= $config_dir/miniserv.conf >/dev/null +if [ "$?" != "0" ]; then + echo passwd_mode=0 >> $config_dir/miniserv.conf +fi + +# Disable SSL compression to defeat BEAST attack +grep no_sslcompression= $config_dir/miniserv.conf >/dev/null +if [ "$?" != "0" ]; then + echo no_sslcompression=1 >> $config_dir/miniserv.conf +fi + +# Tighten SSL security +grep no_ssl2= $config_dir/miniserv.conf >/dev/null +if [ "$?" != "0" ]; then + echo no_ssl2=1 >> $config_dir/miniserv.conf +fi + +grep no_ssl3= $config_dir/miniserv.conf >/dev/null +if [ "$?" != "0" ]; then + echo no_ssl3=1 >> $config_dir/miniserv.conf +fi + +# Make Perl crypt MD5 the default +grep md5pass= $config_dir/config >/dev/null +if [ "$?" != "0" ]; then + echo md5pass=1 >> $config_dir/config +fi + +# Set a special theme if none was set before +if [ "$theme" = "" ]; then + theme=`cat "$wadir/defaulttheme" 2>/dev/null` +fi +oldthemeline=`grep "^theme=" $config_dir/config` +oldtheme=`echo $oldthemeline | sed -e 's/theme=//g'` +if [ "$theme" != "" ] && [ "$oldthemeline" = "" ] && [ -d "$wadir/$theme" ]; then + themelist=$theme +fi + +# Set a special overlay if none was set before +if [ "$overlay" = "" ]; then + overlay=`cat "$wadir/defaultoverlay" 2>/dev/null` +fi +if [ "$overlay" != "" ] && [ "$theme" != "" ] && [ -d "$wadir/$overlay" ]; then + themelist="$themelist $overlay" +fi + +# Apply the theme and maybe overlay +if [ "$themelist" != "" ]; then + echo "theme=$themelist" >> $config_dir/config + echo "preroot=$themelist" >> $config_dir/miniserv.conf +fi + +# If the old blue-theme is still in use, change it (new in 1.730) +oldtheme=`grep "^theme=" $config_dir/config | sed -e 's/theme=//g'` +if [ "$oldtheme" = "blue-theme" ]; then + sed -i -e 's/theme=blue-theme/theme=gray-theme/g' $config_dir/config + sed -i -e 's/preroot=blue-theme/preroot=gray-theme/g' $config_dir/miniserv.conf +fi + +# Set the product field in the global config +grep product= $config_dir/config >/dev/null +if [ "$?" != "0" ]; then + echo product=webmin >> $config_dir/config +fi + +# If password delays are not specifically disabled, enable them +grep passdelay= $config_dir/miniserv.conf >/dev/null +if [ "$?" != "0" ]; then + echo passdelay=1 >> $config_dir/miniserv.conf +fi + + +echo "Changing ownership and permissions.." +# Make all config dirs non-world-readable +for m in $newmods; do + chown -R root:root $config_dir/$m + chmod -R og-rw $config_dir/$m +done + +# Make miniserv config files non-world-readable +for f in miniserv.conf miniserv.users; do + chown -R root:root $config_dir/$f + chmod -R og-rw $config_dir/$f +done +chmod +r $config_dir/version + +# Fix up bad permissions from some older installs +for m in ldap-client ldap-server ldap-useradmin mailboxes mysql postgresql servers virtual-server; do + if [ -d "$config_dir/$m" ]; then + chown root:root $config_dir/$m + chmod og-rw $config_dir/$m + chmod og-rw $config_dir/$m/config 2>/dev/null + fi +done +echo "..done" +echo "" + + +# This executes all postinstall.pl for every module +# If you do bump, you should look at the specific changes they do with this command in root folder: +# find . -name postinstall.pl -exec cat {} \; -print +# Generally they are safe to run 'cause they change only user's config in /etc/webmin +# or setup some cron jobs +if [ "$nopostinstall" = "" ]; then + echo "Running postinstall scripts.. (Please ignore any possible errors)" + (cd "$wadir" ; WEBMIN_CONFIG=$config_dir WEBMIN_VAR=$var_dir "$wadir/run-postinstalls.pl") + echo "..done" + echo "" +fi + +# Enable background collection +if [ "$upgrading" != 1 -a -r $config_dir/system-status/enable-collection.pl ]; then + echo "Enabling background status collection.. (Please ignore any possible errors)" + $config_dir/system-status/enable-collection.pl 5 + echo "..done" + echo "" +fi diff --git a/app-admin/webmin/files/init.d.webmin b/app-admin/webmin/files/init.d.webmin new file mode 100644 index 000000000000..cde2fd4c86d1 --- /dev/null +++ b/app-admin/webmin/files/init.d.webmin @@ -0,0 +1,86 @@ +#!/sbin/runscript +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + + +# We do not give a choice to user for configuring these 'cause it will mess up +# Webmin's configuration +WEBMIN_EXE="%exe%" +WEBMIN_PID="%pid%" +WEBMIN_CONF="%conf%" +WEBMIN_CONFIG="%config%" + +extra_started_commands="reload" + +depend() { + use net logger +} + +checkconfig() { + # Check if Webmin setup has been done + if [ ! -f ${WEBMIN_CONFIG} ]; then + eerror "Error in Webmin's configuration. The ${WEBMIN_CONFIG} is not present." + eerror "Please run 'emerge --config app-admin/webmin' to fix this." + return 1 + fi + + # Check if ssl cert is present + local key ssl + key=`grep "^keyfile=" ${WEBMIN_CONF} | sed -e 's/keyfile=//g'` + ssl=`grep "^ssl=" ${WEBMIN_CONF} | sed -e 's/ssl=//g'` + + if [ ! -f "${key}" ] ; then + if [ "${ssl}" = "0" ]; then + ewarn "Your SSL certificate is not present." + ewarn "Please either fix the path in the 'keyfile=' option of your ${WEBMIN_CONF}" + ewarn "OR run 'emerge --config app-admin/webmin'" + else + eerror "Error in Webmin's configuration. No SSL certificate is present." + eerror "Please either fix the path in the 'keyfile=' option of your ${WEBMIN_CONF}" + eerror "OR change the 'ssl=' option of your ${WEBMIN_CONF} to 'ssl=0'" + eerror "OR run 'emerge --config app-admin/webmin'" + return 1 + fi + fi + + return 0 +} + +reload() { + if [ ! -f "${WEBMIN_PID}" ]; then + eerror "Webmin is not running" + return 1 + fi + + checkconfig || return 1 + + ebegin "Reloading Webmin's configuration files" + start-stop-daemon --signal USR1 --pidfile "$WEBMIN_PID" + eend $? +} + +start() { + checkconfig || return 1 + ebegin "Starting Webmin" + + start-stop-daemon --start --background --interpreted \ + --env LANG= \ + --env PERLLIB="%perllib%" \ + --exec "$WEBMIN_EXE" \ + --pidfile "$WEBMIN_PID" \ + -- "$WEBMIN_CONF" + eend $? + # Leave time to spawn, so no stop is received while spawning + sleep 3 +} + +stop() { + ebegin "Stopping Webmin" + start-stop-daemon --stop --interpreted --quiet \ + --exec "$WEBMIN_EXE" \ + --pidfile "$WEBMIN_PID" + eend $? + # Leave time to stop because of the scripts that use this + sleep 3 +} diff --git a/app-admin/webmin/files/webmin.service b/app-admin/webmin/files/webmin.service new file mode 100644 index 000000000000..5bec85b97c8c --- /dev/null +++ b/app-admin/webmin/files/webmin.service @@ -0,0 +1,18 @@ +[Unit] +Description=Webmin Administration Tool +After=network.target remote-fs.target nss-lookup.target +ConditionFileNotEmpty=%config% +ConditionFileNotEmpty=%conf% + +[Service] +RemainAfterExit=yes +KillMode=mixed +# Webmin is exiting with 1 on SIGTERM +SuccessExitStatus=1 +ExecStart=%exe% %conf% +PIDFile=%pid% +Environment="PERLLIB=%perllib%" LANG= +ExecReload=/bin/kill -USR1 $MAINPID + +[Install] +WantedBy=multi-user.target diff --git a/app-admin/webmin/metadata.xml b/app-admin/webmin/metadata.xml new file mode 100644 index 000000000000..f1dbb51ddeb3 --- /dev/null +++ b/app-admin/webmin/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>proxy-maintainers</herd> + <maintainer> + <email>phobosk@fastmail.fm</email> + <name>PhobosK</name> + <description>Proxy maintainer. Assign bugs to him</description> + </maintainer> + <upstream> + <remote-id type="sourceforge">webadmin</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/webmin/webmin-1.730.ebuild b/app-admin/webmin/webmin-1.730.ebuild new file mode 100644 index 000000000000..54f23b10a374 --- /dev/null +++ b/app-admin/webmin/webmin-1.730.ebuild @@ -0,0 +1,304 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils pam ssl-cert systemd + +DESCRIPTION="A web-based Unix systems administration interface" +HOMEPAGE="http://www.webmin.com/" +SRC_URI="minimal? ( mirror://sourceforge/webadmin/${P}-minimal.tar.gz ) + !minimal? ( mirror://sourceforge/webadmin/${P}.tar.gz )" + +LICENSE="BSD GPL-2" +SLOT="0" + +KEYWORDS="~amd64 ~x86" + +# NOTE: The ssl flag auto added by ssl-cert eclass is not used actually +# because openssl is forced by dev-perl/Net-SSLeay +IUSE="minimal +ssl mysql postgres ldap" + +# All the required perl modules can be found easily using (in Webmin's root src dir): +# find . -name cpan_modules.pl -exec grep "::" {} \; +# NOTE: If Webmin doesn't find the required perl modules, it offers(runtime) the user +# to install them using the in-built cpan module, and this will mess up perl on the system +# That's why some modules are forced without a use flag +# NOTE: pam, ssl and dnssec-tools deps are forced for security and Gentoo compliance installation reasons +DEPEND="virtual/perl-MIME-Base64 + virtual/perl-Socket + virtual/perl-Sys-Syslog + virtual/perl-Time-HiRes + virtual/perl-Time-Local + dev-perl/Authen-Libwrap + dev-perl/IO-Tty + dev-perl/MD5 + dev-perl/Net-SSLeay + dev-perl/Authen-PAM + dev-perl/Sys-Hostname-Long + >=net-dns/dnssec-tools-1.13 + !minimal? ( + mysql? ( dev-perl/DBD-mysql ) + postgres? ( dev-perl/DBD-Pg ) + ldap? ( dev-perl/perl-ldap ) + dev-perl/XML-Generator + dev-perl/XML-Parser + )" +RDEPEND="${DEPEND}" + +src_prepare() { + local perl="$( which perl )" + + # Remove the unnecessary and incompatible files + rm -rf acl/Authen-SolarisRBAC-0.1* + if ! use minimal ; then + rm -rf {format,{bsd,hpux,sgi}exports,zones,rbac} + rm -f mount/{free,net,open}bsd-mounts* + rm -f mount/macos-mounts* + fi + + # For security reasons remove the SSL certificate that comes with Webmin + # We will create our own later + rm -f miniserv.pem + + # Remove the Webmin setup scripts to avoid Webmin in runtime to mess up config + # We will use our own later + rm -f setup.{sh,pl} + + # Set the installation type/mode to Gentoo + echo "gentoo" > install-type + + # Fix the permissions of the install files + chmod -R og-w "${S}" + + # Since we should not modify any files after install + # we set the perl path in all cgi and pl files here using Webmin's routines + # The pl file is Prefix safe and works only on provided input, no other filesystem files + ebegin "Fixing perl path in source files" + (find "${S}" -name '*.cgi' -print ; find "${S}" -name '*.pl' -print) | $perl "${S}"/perlpath.pl $perl - + eend $? +} + +src_install() { + # Create config dir and keep + diropts -m0755 + dodir /etc/webmin + keepdir /etc/webmin + + # Create install dir + # Third party modules installed through Webmin go here too, so keep + dodir /usr/libexec/webmin + keepdir /usr/libexec/webmin + + # Copy our own setup script to installation folder + insinto /usr/libexec/webmin + newins "${FILESDIR}"/gentoo-setup gentoo-setup.sh + fperms 0744 /usr/libexec/webmin/gentoo-setup.sh + + # This is here if we ever want in future ebuilds to add some specific + # config values in the /etc/webmin/miniserv.conf + # The format of this file should be the same as the one of miniserv.conf: + # var=value + # + # Uncomment it if you use such file. Before that check if upstream + # has this file in root dir too. + #newins "${FILESDIR}/miniserv-conf" miniserv-conf + + # Create the log dir and keep + diropts -m0700 + dodir /var/log/webmin + keepdir /var/log/webmin + + # Create the init.d file and put the neccessary variables there + newinitd "${FILESDIR}"/init.d.webmin webmin + sed -i \ + -e "s:%exe%:${EROOT}usr/libexec/webmin/miniserv.pl:" \ + -e "s:%pid%:${EROOT}var/run/webmin.pid:" \ + -e "s:%conf%:${EROOT}etc/webmin/miniserv.conf:" \ + -e "s:%config%:${EROOT}etc/webmin/config:" \ + -e "s:%perllib%:${EROOT}usr/libexec/webmin:" \ + "${ED}etc/init.d/webmin" \ + || die "Failed to patch the webmin init file" + + # Create the systemd service file and put the neccessary variables there + systemd_newunit "${FILESDIR}"/webmin.service webmin.service + sed -i \ + -e "s:%exe%:${EROOT}usr/libexec/webmin/miniserv.pl:" \ + -e "s:%pid%:${EROOT}var/run/webmin.pid:" \ + -e "s:%conf%:${EROOT}etc/webmin/miniserv.conf:" \ + -e "s:%config%:${EROOT}etc/webmin/config:" \ + -e "s:%perllib%:${EROOT}usr/libexec/webmin:" \ + "${ED}$(_systemd_get_unitdir)/webmin.service" \ + || die "Failed to patch the webmin systemd service file" + + # Setup pam + pamd_mimic system-auth webmin auth account session + + # Copy files to installation folder + ebegin "Copying install files to destination" + cp -pPR "${S}"/* "${ED}usr/libexec/webmin" + eend $? +} + +pkg_preinst() { + # First stop service if running so Webmin to not messup our config + ebegin "Stopping any running Webmin instance prior merging" + if systemd_is_booted ; then + systemctl stop webmin.service 2>/dev/null + else + rc-service --ifexists -- webmin --ifstarted stop + fi + eend $? +} + +pkg_postinst() { + # Run pkg_config phase first - non interactively + export INTERACTIVE="no" + pkg_config + # Every next time pkg_config should be interactive + INTERACTIVE="yes" + + ewarn + ewarn "Bare in mind that not all Webmin modules are Gentoo tweaked and may have some issues." + ewarn "Always be careful when using modules that modify init entries, do update of webmin, install CPAN modules etc." + ewarn "To avoid problems, please before using any module, look at its configuration options first." + ewarn "(Usually there is a link at top in the right pane of Webmin for configuring the module.)" + ewarn + if systemd_is_booted ; then + elog "- To make Webmin start at boot time, run: 'systemctl enable webmin.service'" + else + elog "- To make Webmin start at boot time, run: 'rc-update add webmin default'" + fi + elog "- The default URL to connect to Webmin is: https://localhost:10000" + elog "- The default user that can login is: root" + elog "- To reconfigure Webmin in case of problems run 'emerge --config app-admin/webmin'" +} + +pkg_prerm() { + # First stop service if running - we do not want Webmin to mess up config + ebegin "Stopping any running Webmin instance prior unmerging" + if systemd_is_booted ; then + systemctl stop webmin.service 2>/dev/null + else + rc-service --ifexists -- webmin --ifstarted stop + fi + eend $? +} + +pkg_postrm() { + # If removing webmin completely, remind the user for the Webmin's own cron jobs. + if [[ ! ${REPLACED_BY_VERSION} ]]; then + ewarn + ewarn "You have uninstalled Webmin, so have in mind that all cron jobs scheduled" + ewarn "by Webmin for its own modules, are left active and they will fail when Webmin is missing." + ewarn "To fix this just disable them if you intend to use Webmin again," + ewarn "OR delete them if not." + ewarn + fi +} + +pkg_config(){ + # First stop service if running + ebegin "Stopping any running Webmin instance" + if systemd_is_booted ; then + systemctl stop webmin.service 2>/dev/null + else + rc-service --ifexists -- webmin --ifstarted stop + fi + eend $? + + # Next set the default reset variable to 'none' + # reset/_reset can be: + # 'none' - does not reset anything, just upgrades if a conf is present + # OR installs new conf if a conf is missing + # 'soft' - deletes only $config_dir/config file and thus resetting most + # conf values to their defaults. Keeps the specific Webmin cron jobs + # 'hard' - deletes all files in $config_dir (keeping the .keep_* Gentoo file) + # and thus resetting all Webmin. Deletes the specific Webmin cron jobs too. + local _reset="none" + + # If in interactive mode ask user what should we do + if [[ "${INTERACTIVE}" = "yes" ]]; then + einfo + einfo "Please enter the number of the action you would like to perform?" + einfo + einfo "1. Update configuration" + einfo " (keeps old config options and adds the new ones)" + einfo "2. Soft reset configuration" + einfo " (keeps some old config options, the other options are set to default)" + ewarn " All Webmin users will be reset" + einfo "3. Hard reset configuration" + einfo " (all options including module options are set to default)" + ewarn " You will lose all Webmin configuration options you have done till now" + einfo "4. Exit this configuration utility (default)" + while [ "$correct" != "true" ] ; do + read answer + if [[ "$answer" = "1" ]] ; then + _reset="none" + correct="true" + elif [[ "$answer" = "2" ]] ; then + _reset="soft" + correct="true" + elif [[ "$answer" = "3" ]] ; then + _reset="hard" + correct="true" + elif [ "$answer" = "4" -o "$answer" = "" ] ; then + die "User aborted configuration." + else + echo "Answer not recognized. Enter a number from 1 to 4" + fi + done + + if [[ "$_reset" = "hard" ]]; then + while [ "$sure" != "true" ] ; do + ewarn "You will lose all Webmin configuration options you have done till now." + ewarn "Are you sure you want to do this? (y/n)" + read answer + if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then + sure="true" + elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then + die "User aborted configuration." + else + echo "Answer not recognized. Enter 'y' or 'n'" + fi + done + fi + fi + + export reset=$_reset + + # Create ssl certificate for Webmin if there is not one in the proper place + if [[ ! -e "${EROOT}etc/ssl/webmin/server.pem" ]]; then + SSL_ORGANIZATION="${SSL_ORGANIZATION:-Webmin Server}" + SSL_COMMONNAME="${SSL_COMMONNAME:-*}" + install_cert "${EROOT}/etc/ssl/webmin/server" + fi + + # Ensure all paths passed to the setup script use EROOT + export wadir="${EROOT}usr/libexec/webmin" + export config_dir="${EROOT}etc/webmin" + export var_dir="${EROOT}var/log/webmin" + export tempdir="${T}" + export pidfile="${EROOT}var/run/webmin.pid" + export perl="$( which perl )" + export os_type='gentoo-linux' + export os_version='*' + export real_os_type='Gentoo Linux' + export real_os_version='Any version' + # Forcing 'ssl', 'no_ssl2', 'no_ssl3', 'ssl_redirect' and 'no_sslcompression' for tightening security + export ssl=1 + export no_ssl2=1 + export no_ssl3=1 + export ssl_redirect=1 + export no_sslcompression=1 + export keyfile="${EROOT}etc/ssl/webmin/server.pem" + export port=10000 + + export atboot=0 + + einfo "Executing Webmin's configure script" + $wadir/gentoo-setup.sh + + einfo "Configuration of Webmin done" +} diff --git a/app-admin/whowatch/Manifest b/app-admin/whowatch/Manifest new file mode 100644 index 000000000000..f7dff2d516d0 --- /dev/null +++ b/app-admin/whowatch/Manifest @@ -0,0 +1 @@ +DIST whowatch-1.8.5.tar.gz 133845 SHA256 5e77107c2bd31eee5609d80caf3f07fb4b913b4b2e71c1d0e73204937ffc9c8a SHA512 9a534dcc859101e3f6636fcfc191be3c0a66b843225dbace0d851f8cca7bbf1374929f604414556c651167c24a223525304fe2963a92b97ba97a8f57179ec738 WHIRLPOOL 0048cf078d9cc4c467b3df6017d541cffe45f5b9b6f58a2b83fda13f7cddacbe7b1bdc2161efb5538b7c3f18f117b10b52157738bb553fd6ea2d58b6007e58bb diff --git a/app-admin/whowatch/files/whowatch-1.8.4-select.patch b/app-admin/whowatch/files/whowatch-1.8.4-select.patch new file mode 100644 index 000000000000..0907c70e6750 --- /dev/null +++ b/app-admin/whowatch/files/whowatch-1.8.4-select.patch @@ -0,0 +1,17 @@ +--- a/src/whowatch.c ++++ b/src/whowatch.c +@@ -436,12 +436,12 @@ + gettimeofday(&after, 0); + tv.tv_sec -= (after.tv_sec - before.tv_sec); + if(retval > 0) { +- int key = read_key(); ++ int key = getkey(); + key_action(key); + } + if(tv.tv_sec <= 0) { + ticks++; +- periodic(); ++ main_periodic(); + tv.tv_sec = TIMEOUT; + } + #endif diff --git a/app-admin/whowatch/files/whowatch-1.8.4-tinfo.patch b/app-admin/whowatch/files/whowatch-1.8.4-tinfo.patch new file mode 100644 index 000000000000..6ad7849ac037 --- /dev/null +++ b/app-admin/whowatch/files/whowatch-1.8.4-tinfo.patch @@ -0,0 +1,19 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -16,14 +16,8 @@ + dnl Replace `main' with a function in -lkvm: + AC_CHECK_LIB(kvm, kvm_openfiles) + dnl Replace `main' with a function in -lncurses: +-CURS=0 +-AC_CHECK_LIB(ncurses, scrollok, [CURS=1 ; LIBS="$LIBS -lncurses"]) +-if test "$CURS" != "1"; then +- AC_CHECK_LIB(curses, scrollok, [CURS=1 ; LIBS="$LIBS -lcurses"]) +-fi +-if test "$CURS" != "1"; then +- AC_MSG_ERROR([Could not find proper curses library]) +-fi ++PKG_CHECK_MODULES(NCURSES, ncurses, [LIBS="$LIBS $NCURSES_LIBS"], ++ AC_MSG_ERROR([Could not find proper curses library])) + + dnl Checks for header files. + AC_HEADER_DIRENT diff --git a/app-admin/whowatch/metadata.xml b/app-admin/whowatch/metadata.xml new file mode 100644 index 000000000000..a7076d48dfab --- /dev/null +++ b/app-admin/whowatch/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> + <email>jer@gentoo.org</email> + <name>Jeroen Roovers</name> + </maintainer> + <longdescription> + A interactive who program that displays information about the users currently logged into the machine. + </longdescription> +</pkgmetadata> diff --git a/app-admin/whowatch/whowatch-1.8.5.ebuild b/app-admin/whowatch/whowatch-1.8.5.ebuild new file mode 100644 index 000000000000..1a5867a8a265 --- /dev/null +++ b/app-admin/whowatch/whowatch-1.8.5.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils + +DESCRIPTION="interactive who-like program that displays information about users currently logged on in real time" +HOMEPAGE="http://wizard.ae.krakow.pl/~mike/" +SRC_URI="http://wizard.ae.krakow.pl/~mike/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~arm hppa ~mips ppc x86" +IUSE="" + +RDEPEND=" + sys-libs/ncurses +" +DEPEND=" + ${RDEPEND} + virtual/pkgconfig +" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-1.8.4-tinfo.patch + epatch "${FILESDIR}"/${PN}-1.8.4-select.patch + eautoreconf +} + +src_install() { + dobin src/${PN} + doman ${PN}.1 + dodoc AUTHORS ChangeLog README TODO +} diff --git a/app-admin/xstow/Manifest b/app-admin/xstow/Manifest new file mode 100644 index 000000000000..824aa2238976 --- /dev/null +++ b/app-admin/xstow/Manifest @@ -0,0 +1 @@ +DIST xstow-1.0.1.tar.bz2 153530 SHA256 b25279134689519c15fa5caea3d437c0e8c49d9cfa0c91cc45fb842025b1bf35 SHA512 bb4bb0e9d8fbfe3933c2137cd2258e3246ebfba549aec669a7f324e82af0eea4ab7ca38e68d7102c1417c1566029318749139fa91efd7a904b8f742d426a3d4b WHIRLPOOL 052f3ed2ddf3b6612d898a596aec4547578253aca1e1fa2dc7b3209646c029d59b589ede80ad40586b5c926e6e7826591f98d0137feddfcd4aa5fea66218a23a diff --git a/app-admin/xstow/files/99xstow b/app-admin/xstow/files/99xstow new file mode 100644 index 000000000000..07625f392537 --- /dev/null +++ b/app-admin/xstow/files/99xstow @@ -0,0 +1,3 @@ +LDPATH=/var/lib/lib +PATH=/var/lib/bin +MANPATH=/var/lib/share/man diff --git a/app-admin/xstow/files/xstow-0.5.1-gcc43.patch b/app-admin/xstow/files/xstow-0.5.1-gcc43.patch new file mode 100644 index 000000000000..ded9e32cc577 --- /dev/null +++ b/app-admin/xstow/files/xstow-0.5.1-gcc43.patch @@ -0,0 +1,67 @@ +--- xstow-0.5.1.orig/src/format.h ++++ xstow-0.5.1/src/format.h +@@ -648,17 +648,17 @@ + + switch( num_of_args ) + { +- case 1: n = std::snprintf( buffer, buffer_size, format.c_str(), ++ case 1: n = snprintf( buffer, buffer_size, format.c_str(), + D( a ) ); break; +- case 2: n = std::snprintf( buffer, buffer_size, format.c_str(), ++ case 2: n = snprintf( buffer, buffer_size, format.c_str(), + D( a ), D( b ) ); break; +- case 3: n = std::snprintf( buffer, buffer_size, format.c_str(), ++ case 3: n = snprintf( buffer, buffer_size, format.c_str(), + D( a ), D( b ), D( c ) ); break; +- case 4: n = std::snprintf( buffer, buffer_size, format.c_str(), ++ case 4: n = snprintf( buffer, buffer_size, format.c_str(), + D( a ), D( b ), D( c ), D( d ) ); break; +- case 5: n = std::snprintf( buffer, buffer_size, format.c_str(), ++ case 5: n = snprintf( buffer, buffer_size, format.c_str(), + D( a ), D( b ), D( c ), D( d ), D( e ) ); break; +- case 6: n = std::snprintf( buffer, buffer_size, format.c_str(), ++ case 6: n = snprintf( buffer, buffer_size, format.c_str(), + D( a ), D( b ), D( c ), D( d ), D( e ), D( f ) ); break; + } + +--- xstow-0.5.1.orig/src/main.cpp ++++ xstow-0.5.1/src/main.cpp +@@ -1,3 +1,4 @@ ++#include <cstdlib> + #include <iostream> + + #include "local_config.h" +--- xstow-0.5.1.orig/src/cppdir.cpp ++++ xstow-0.5.1/src/cppdir.cpp +@@ -1,6 +1,8 @@ + #include "cppdir.h" + #include "debug.h" + ++#include <cstdlib> ++ + #define OUT(level) DEBUG_OUT( level, MODULE_CPPDIR) + + extern "C" { +--- xstow-0.5.1.orig/src/setup.cpp ++++ xstow-0.5.1/src/setup.cpp +@@ -5,6 +5,8 @@ + #include "debug.h" + #include "nignore.h" + ++#include <cstdlib> ++ + #undef OUT + + #define OUT( level ) DEBUG_OUT( level, MODULE_SETUP ) +--- xstow-0.5.1.orig/src/tree.cpp ++++ xstow-0.5.1/src/tree.cpp +@@ -26,6 +26,7 @@ + + + #include <algorithm> ++#include <cstring> + + #define OUT(level) DEBUG_OUT(level, MODULE_TREE) + + + diff --git a/app-admin/xstow/files/xstow-1.0.1-ncurses.patch b/app-admin/xstow/files/xstow-1.0.1-ncurses.patch new file mode 100644 index 000000000000..b7d29f287e7f --- /dev/null +++ b/app-admin/xstow/files/xstow-1.0.1-ncurses.patch @@ -0,0 +1,56 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -91,11 +91,12 @@ + AC_MSG_RESULT(disabled) + support_curses=0 + else ++ AC_MSG_RESULT(enabled) + support_curses=1 + fi + ], +- [ +- AC_MSG_RESULT(enabled) ++ []) ++if test $support_curses -eq 1; then + AC_CHECK_HEADER([curses.h], + [ + # test which libraray to use +@@ -146,7 +147,7 @@ + fi + + if test $support_curses -eq 1; then +- AC_SUBST(LDFLAGS_DYNAMIC, "$LDFLAGS -l$curseslib $tinfolib") ++ AC_SUBST(LDFLAGS_DYNAMIC, "-l$curseslib $tinfolib") + AC_DEFINE(HAVE_CURSES_H, 1, [curses library can be used]) + fi + +@@ -154,8 +155,7 @@ + [ + support_curses=0 + ]) +- ]) +- ++fi + + NO_STL_SSTREAM=0 + NO_STL_STRSTREAM=0 +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -46,7 +46,7 @@ + backtrace.h \ + backtrace.cpp + +-xstow_LDFLAGS= $(LDFLAGS) $(LDFLAGS_DYNAMIC) ++xstow_LDADD= $(LDFLAGS_DYNAMIC) + + if ENABLE_MERGE + +@@ -63,7 +63,7 @@ + backtrace.h \ + backtrace.cpp + +-merge_info_LDFLAGS= $(LDFLAGS) $(LDFLAGS_DYNAMIC) ++merge_info_LDADD= $(LDFLAGS_DYNAMIC) + + endif + diff --git a/app-admin/xstow/metadata.xml b/app-admin/xstow/metadata.xml new file mode 100644 index 000000000000..fd48bdee4f61 --- /dev/null +++ b/app-admin/xstow/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>proxy-maintainers</herd> + <maintainer> + <email>ewfalor@gmail.com</email> + <name>Erik Falor</name> + </maintainer> + <maintainer> + <email>maksbotan@gentoo.org</email> + <name>Maxim Koltsov</name> + </maintainer> + <longdescription>A program that manages the installation of software packages.</longdescription> + <upstream> + <remote-id type="sourceforge">xstow</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/xstow/xstow-1.0.1.ebuild b/app-admin/xstow/xstow-1.0.1.ebuild new file mode 100644 index 000000000000..99427b597b03 --- /dev/null +++ b/app-admin/xstow/xstow-1.0.1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools eutils + +DESCRIPTION="replacement for GNU stow with extensions" +HOMEPAGE="http://xstow.sourceforge.net/" +SRC_URI="mirror://sourceforge/xstow/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="ncurses" + +DEPEND="ncurses? ( sys-libs/ncurses )" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-ncurses.patch + eautoreconf +} + +src_configure() { + econf $(use_with ncurses curses) +} + +src_install() { + emake DESTDIR="${D}" docdir="/usr/share/doc/${PF}/html" install + dodoc AUTHORS ChangeLog NEWS README TODO + + # create new STOWDIR + dodir /var/lib/xstow + + # install env.d file to add STOWDIR to PATH and LDPATH + doenvd "${FILESDIR}/99xstow" || die "doenvd failed" +} + +pkg_postinst() { + elog "We now recommend that you use /var/lib/xstow as your STOWDIR" + elog "instead of /usr/local in order to avoid conflicts with the" + elog "symlink from /usr/lib64 -> /usr/lib. See Bug 246264" + elog "(regarding app-admin/stow, equally applicable to XStow) for" + elog "more details on this change." + elog "For your convenience, PATH has been updated to include" + elog "/var/lib/bin." +} diff --git a/app-admin/xtail/Manifest b/app-admin/xtail/Manifest new file mode 100644 index 000000000000..def3b108d4d9 --- /dev/null +++ b/app-admin/xtail/Manifest @@ -0,0 +1,2 @@ +DIST 20120219-patch-aalto.zip 4991 SHA256 e9904a74aa2309be1ea1d4039fa257d6e7f32bb176dbc0cdf2daa6d3d2390b1b SHA512 ae20448944e25aa04879bdab8d61bd910b1aa6f85c3d8287e712c6d37b1154af480edc6569467e31b3b404d7f90f771ec3e4c20c58132d9125303b40a6f102f2 WHIRLPOOL b3e8e6c5b686acd2c502f7d09f88acce9a5785878a767a4b24a35a0ded49ecd3ed0922075c8fc9bdaea1108a8b9ecd6d330e4671f6b1e8f0ddf1fff530f0e6d0 +DIST xtail-2.1.tar.gz 26769 SHA256 75184926dffd89e9405769b24f01c8ed3b25d3c4a8eac60271fc5bb11f6c2d53 SHA512 a8519969ef960af97c4dcb75c679daa5687f553c909817ede1134dfa5d70ed71c5264f0e61c8c579cc253ccb7739a68c5213811169489a98e676ef8941d9446f WHIRLPOOL 39ab0e4c5379a2acd43bcb29bcd2fce42c7581aea6173fc01bf3ab0075d76ccdbcdaa2c6b8614ee9720c1ac456d9ce3ce0dd4a0078ced413c28d0f599f0fdcf5 diff --git a/app-admin/xtail/metadata.xml b/app-admin/xtail/metadata.xml new file mode 100644 index 000000000000..b4c2c658bbaf --- /dev/null +++ b/app-admin/xtail/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>proxy-maintainers</herd> + <maintainer> + <email>gentoo.power@gmail.com</email> + <name>Iván</name> + </maintainer> +</pkgmetadata> diff --git a/app-admin/xtail/xtail-2.1-r1.ebuild b/app-admin/xtail/xtail-2.1-r1.ebuild new file mode 100644 index 000000000000..b92d58f19f9c --- /dev/null +++ b/app-admin/xtail/xtail-2.1-r1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils toolchain-funcs + +DESCRIPTION="Tail multiple logfiles at once, even if rotated" +HOMEPAGE="http://www.unicom.com/sw/xtail/" +SRC_URI="http://www.unicom.com/sw/xtail/${P}.tar.gz + http://www.unicom.com/files/20120219-patch-aalto.zip" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ppc ~sparc x86" +IUSE="" +DEPEND="app-arch/unzip" + +src_prepare() { + epatch ../0001-Use-ISO8601-Fix-Gcc-header-Use-C-c.patch + epatch ../0001-xtail.1-remove-SIGQUIT.patch + epatch ../xtail_2.1-5-debian-local-changes.patch +} + +src_compile() { + tc-export CC + emake +} + +src_install() { + dobin xtail + doman xtail.1 + dodoc README + newdoc ../README README.patches +} diff --git a/app-admin/xtail/xtail-2.1.ebuild b/app-admin/xtail/xtail-2.1.ebuild new file mode 100644 index 000000000000..6d166707dddf --- /dev/null +++ b/app-admin/xtail/xtail-2.1.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 +inherit toolchain-funcs + +DESCRIPTION="Tail multiple logfiles at once, even if rotated" +HOMEPAGE="http://www.unicom.com/sw/xtail/" +SRC_URI="http://www.unicom.com/sw/xtail/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ppc sparc x86" +IUSE="" + +src_compile() { + tc-export CC + emake || die "emake failed" +} + +src_install() { + dobin xtail || die + doman xtail.1 || die + dodoc README +} diff --git a/app-admin/yaala/Manifest b/app-admin/yaala/Manifest new file mode 100644 index 000000000000..b2fd0f5c5088 --- /dev/null +++ b/app-admin/yaala/Manifest @@ -0,0 +1 @@ +DIST yaala-0.7.3.tar.bz2 41528 SHA256 a2c3a2173ed2f09aae7992ed11c8257ffce631fbe1dc99c286a911f1743ff936 SHA512 30ad37c2c612f47472a840ea40aa924ffa59828455e7268dc29eb3d0276aab835b54396a29eabce88ef0e357523086b182ca1ec366b50851ecb8d2530f4eac01 WHIRLPOOL 949159522a230ce9892bd64537afc8c826dff0496f68e2dd30660ebe099d9dbd59e83cda9acbbd8501026532bd9eb02fe3da3fce3b98a7242eb269c04469d2da diff --git a/app-admin/yaala/files/yaala-0.7.3-r1-correct-paths.patch b/app-admin/yaala/files/yaala-0.7.3-r1-correct-paths.patch new file mode 100644 index 000000000000..e938abf4b802 --- /dev/null +++ b/app-admin/yaala/files/yaala-0.7.3-r1-correct-paths.patch @@ -0,0 +1,31 @@ +--- a/yaala 2013-04-03 15:50:03.909024254 +0200 ++++ b/yaala 2013-04-03 15:49:46.545691028 +0200 +@@ -58,6 +58,6 @@ + + parse_argv (@ARGV); +-read_config (get_config ('config') ? get_config ('config') : 'config'); ++read_config (get_config ('config') ? get_config ('config') : '/etc/yaala/config'); + + unless (get_config ('input')) + { +--- a/lib/Yaala/Parser/WebserverTools.pm 2013-04-03 16:04:02.665685730 +0200 ++++ b/lib/Yaala/Parser/WebserverTools.pm 2013-04-03 16:04:36.729018853 +0200 +@@ -11,7 +11,7 @@ + detect_browser detect_os extract_data); + @Yaala::Parser::WebserverTools::ISA = ('Exporter'); + +-read_config ('webserver.config'); ++read_config ('/etc/yaala/webserver.config'); + + our $referer_format = get_config ('referer_format'); + our $localhost_name = ''; +--- a/lib/Yaala/Data/Persistent.pm 2013-04-03 16:08:06.935684219 +0200 ++++ b/lib/Yaala/Data/Persistent.pm 2013-04-03 16:07:54.229017631 +0200 +@@ -18,5 +18,5 @@ + our $HAVE_STORABLE = 0; + our $WANT_PERSISTENCY = 1; + our $DATA_STRUCTURE = {}; +-our $FILENAME = 'persistency.data'; ++our $FILENAME = '/var/lib/yaala/persistency.data'; + + diff --git a/app-admin/yaala/metadata.xml b/app-admin/yaala/metadata.xml new file mode 100644 index 000000000000..f6828df92fea --- /dev/null +++ b/app-admin/yaala/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> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <longdescription> + Yet Another Log Analyzer + </longdescription> + <use> + <flag name='storable'>Support for persistence of Perl data structures.</flag> + </use> +</pkgmetadata> diff --git a/app-admin/yaala/yaala-0.7.3-r1.ebuild b/app-admin/yaala/yaala-0.7.3-r1.ebuild new file mode 100644 index 000000000000..22d252f61c3c --- /dev/null +++ b/app-admin/yaala/yaala-0.7.3-r1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils + +DESCRIPTION="Yet Another Log Analyzer" +HOMEPAGE="http://www.yaala.org/" +SRC_URI="http://www.${PN}.org/files/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="gd storable" + +RDEPEND="dev-lang/perl + gd? ( dev-perl/GDGraph ) + storable? ( virtual/perl-Storable )" + +src_prepare() { + epatch "${FILESDIR}"/${PF}-correct-paths.patch + + sed -i "s:/var/lib/${PN}:/usr/bin:g" packaging/${PN}.cron || die 'Failed to correct path in cron file.' +} + +src_install() { + dobin ${PN} + + exeinto /usr/lib64/perl5/vendor_perl/${PN^}/ + doexe lib/${PN^}/*.pm + + exeinto /usr/lib64/perl5/vendor_perl/${PN^}/Data/ + doexe lib/${PN^}/Data/*.pm + + exeinto /usr/lib64/perl5/vendor_perl/${PN^}/Parser/ + doexe lib/${PN^}/Parser/*.pm + + exeinto /usr/lib64/perl5/vendor_perl/${PN^}/Report/ + doexe lib/${PN^}/Report/*.pm + + dodoc AUTHORS CHANGELOG README{,.persistency,.selections} + + insinto /usr/share/${PN} + doins -r reports + doins -r sample_configs + + insinto /etc/${PN} + doins {,webserver.}config + + insinto /etc/logrotate.d + doins packaging/${PN}.cron + + if use storable ; then + dodir /var/lib/${PN} + keepdir /var/lib/${PN} + chmod 777 /var/lib/${PN} + fi +} + +pkg_postinst() { + ewarn "It is required that you change the configuration files in /etc/${PN}" + ewarn "before you run \`yaala ...\`, otherwise it will refuse to execute because" + ewarn "Setup.pm checks whether the variable 'select' has been unquoted and set." + echo "" + elog "Example configuration files can be found in /usr/share/${PN}." +} |