summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Kuhn <wuodan@hispeed.ch>2012-07-21 03:13:41 +0200
committerStefan Kuhn <wuodan@hispeed.ch>2012-07-21 03:13:41 +0200
commit054837df490310e187ab20721c3dbf42cca601b9 (patch)
tree7ef7136621832ed5a02214f5e8268c70548e5d1f
parentupdated HOMEPAGE (diff)
downloadwuodan-054837df490310e187ab20721c3dbf42cca601b9.tar.gz
wuodan-054837df490310e187ab20721c3dbf42cca601b9.tar.bz2
wuodan-054837df490310e187ab20721c3dbf42cca601b9.zip
fix for Bug 375825 - app-admin/ulogd-2.0.0_beta4 fails to build with
+doc USE flag if latex is not installed
-rw-r--r--app-admin/ulogd/Manifest4
-rw-r--r--app-admin/ulogd/files/ulogd36
-rw-r--r--app-admin/ulogd/metadata.xml13
-rw-r--r--app-admin/ulogd/ulogd-2.0.0_beta4.ebuild96
4 files changed, 149 insertions, 0 deletions
diff --git a/app-admin/ulogd/Manifest b/app-admin/ulogd/Manifest
new file mode 100644
index 0000000..c0fcc94
--- /dev/null
+++ b/app-admin/ulogd/Manifest
@@ -0,0 +1,4 @@
+AUX ulogd 759 RMD160 aabb4660974f6237230c2b6dcdc6cd6e5325e6b5 SHA1 80219a2f2b94a24febf05b53ccc2776d1237fe0a SHA256 ddfc3baf62d1641315a2a4eb932d81ce1f3d4b25dbdf90104caceca2e8a7458f
+DIST ulogd-2.0.0beta4.tar.bz2 354526 RMD160 9208fcbd0d637ae1c99822dba67a2311dc28826d SHA1 92f9bbd6dfd5b72673c392fa6ccd6cc7ff811f24 SHA256 f29a75b87e2da6284a6e52a359c9d9e1f7c14b6dd96a4cd1b68f18a91f48e7a2
+EBUILD ulogd-2.0.0_beta4.ebuild 2312 RMD160 ef4e105ef893881ead6cc1e3cdf477f7fadda29b SHA1 f2ac0be610012f23118d179765335d188ec14ac4 SHA256 521abd800b641084a41a823e8c8e3f3df986f418458f799ece51416ed255756f
+MISC metadata.xml 642 RMD160 a99323244aab18e90903149dee600d5bebd438ac SHA1 1d485df78db71b274f9635151c27f73e70588e10 SHA256 063b93639b0ca59451de65ca8e10c29bde9d3086e29714e0daa4b0ca00814110
diff --git a/app-admin/ulogd/files/ulogd b/app-admin/ulogd/files/ulogd
new file mode 100644
index 0000000..e2f76a1
--- /dev/null
+++ b/app-admin/ulogd/files/ulogd
@@ -0,0 +1,36 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/ulogd/files/ulogd,v 1.5 2012/01/01 01:01:06 idl0r Exp $
+
+extra_started_commands="reload"
+
+depend() {
+ need net
+}
+
+checkconfig() {
+ if [ ! -e /etc/ulogd.conf ]; then
+ eerror "You need /etc/ulogd.conf"
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting ulogd"
+ start-stop-daemon --start --quiet --exec /usr/sbin/ulogd -- -u ulogd -d >/dev/null 2>&1
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ulogd"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/ulogd >/dev/null 2>&1
+ eend $?
+}
+
+reload() {
+ ebegin "Reloading ulogd.conf file"
+ killall -HUP ulogd &>/dev/null
+ eend $?
+}
diff --git a/app-admin/ulogd/metadata.xml b/app-admin/ulogd/metadata.xml
new file mode 100644
index 0000000..1bdb027
--- /dev/null
+++ b/app-admin/ulogd/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>
+ <use>
+ <flag name='pcap'>Build PCAP output plugin to save packets in PCAP format. Uses the <pkg>net-libs/libpcap</pkg> library</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 an sqlite database.</flag>
+ </use>
+</pkgmetadata>
diff --git a/app-admin/ulogd/ulogd-2.0.0_beta4.ebuild b/app-admin/ulogd/ulogd-2.0.0_beta4.ebuild
new file mode 100644
index 0000000..6451081
--- /dev/null
+++ b/app-admin/ulogd/ulogd-2.0.0_beta4.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/ulogd/ulogd-2.0.0_beta4.ebuild,v 1.2 2012/05/31 03:00:39 zmedico Exp $
+
+EAPI="1"
+
+inherit eutils user
+
+MY_P=${P/_/}
+S="${WORKDIR}/${MY_P}"
+
+DESCRIPTION="A userspace logging daemon for netfilter/iptables related logging"
+HOMEPAGE="http://netfilter.org/projects/ulogd/index.html"
+SRC_URI="http://ftp.netfilter.org/pub/${PN}/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+# ~ia64 removed because of net-libs/libmnl
+SLOT="0"
+KEYWORDS="~amd64 ~ppc -sparc ~x86"
+# sqlite not supported in ulogd-2 yet
+IUSE="doc mysql postgres pcap" # sqlite
+
+# net-libs/libmnl
+RDEPEND="net-firewall/iptables
+ >=net-libs/libnetfilter_conntrack-0.0.95
+ >=net-libs/libnetfilter_log-1.0
+ >=net-libs/libnfnetlink-0.0.39
+ mysql? ( virtual/mysql )
+ pcap? ( net-libs/libpcap )
+ postgres? ( dev-db/postgresql-base )"
+ #sqlite? ( dev-db/sqlite:3 )
+
+DEPEND="${RDEPEND}
+ net-libs/libmnl
+ sys-devel/autoconf:2.5
+ doc? (
+ app-text/linuxdoc-tools
+ app-text/texlive-core
+ virtual/latex-base
+ )"
+
+pkg_setup() {
+ enewgroup ulogd
+ enewuser ulogd -1 -1 /var/log/ulogd ulogd
+}
+
+src_compile() {
+ econf \
+ $(use_with mysql) \
+ $(use_with postgres pgsql) \
+ $(use_with pcap pcap /usr) \
+ --without-sqlite3 #$(use_with sqlite sqlite3)
+
+ emake || die "emake failed"
+
+ if use doc ; then
+ # build extra documentation files (.ps, .txt, .html, .dvi)
+
+ # prevent access violations from generation of bitmap font files
+ export VARTEXFONTS="${T}"
+ emake -C doc || die "emake for docs failed"
+ fi
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die "emake install failed"
+
+ doinitd "${FILESDIR}"/ulogd || die "doinitd failed"
+
+ insinto /etc
+ doins ulogd.conf || die "ulogd.conf installation failed"
+
+ dodoc AUTHORS README
+
+ if use doc ; then
+ dohtml doc/ulogd.html
+ dodoc doc/ulogd.dvi
+ dodoc doc/ulogd.txt
+ dodoc doc/ulogd.ps
+ fi
+
+ use mysql && dodoc doc/mysql-ulogd2.sql
+ use postgres && dodoc doc/pgsql-ulogd2.sql
+ #use sqlite && dodoc doc/sqlite3.table
+
+ # install logrotate config
+ insinto /etc/logrotate.d
+ newins ulogd.logrotate ulogd || die "logrotate config failed"
+
+ doman ulogd.8 || die
+}
+
+pkg_postinst() {
+ chown root:ulogd "${ROOT}"/etc/ulogd.conf
+ chmod 640 "${ROOT}"/etc/ulogd.conf
+}