diff options
author | Sven Wegener <swegener@gentoo.org> | 2004-12-01 21:26:13 +0000 |
---|---|---|
committer | Sven Wegener <swegener@gentoo.org> | 2004-12-01 21:26:13 +0000 |
commit | 9a845dea3d2f1bb34cc6e8e382cdfb16ae99c4a2 (patch) | |
tree | 8423b1266c99a9015a038f1cfc1e2cc4733870da /net-news | |
parent | Fixed typo in ChangeLog (diff) | |
download | historical-9a845dea3d2f1bb34cc6e8e382cdfb16ae99c4a2.tar.gz historical-9a845dea3d2f1bb34cc6e8e382cdfb16ae99c4a2.tar.bz2 historical-9a845dea3d2f1bb34cc6e8e382cdfb16ae99c4a2.zip |
Initial import, ebuild written by me.
Diffstat (limited to 'net-news')
-rw-r--r-- | net-news/nntpswitch/ChangeLog | 10 | ||||
-rw-r--r-- | net-news/nntpswitch/Manifest | 15 | ||||
-rw-r--r-- | net-news/nntpswitch/files/digest-nntpswitch-0.11 | 1 | ||||
-rw-r--r-- | net-news/nntpswitch/files/nntpswitch.init.d | 21 | ||||
-rw-r--r-- | net-news/nntpswitch/metadata.xml | 5 | ||||
-rw-r--r-- | net-news/nntpswitch/nntpswitch-0.11.ebuild | 75 |
6 files changed, 127 insertions, 0 deletions
diff --git a/net-news/nntpswitch/ChangeLog b/net-news/nntpswitch/ChangeLog new file mode 100644 index 000000000000..da3d4f608a18 --- /dev/null +++ b/net-news/nntpswitch/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for net-news/nntpswitch +# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-news/nntpswitch/ChangeLog,v 1.1 2004/12/01 21:26:13 swegener Exp $ + +*nntpswitch-0.11 (01 Dec 2004) + + 01 Dec 2004; Sven Wegener <swegener@gentoo.org> +metadata.xml, + +files/nntpswitch.init.d, +nntpswitch-0.11.ebuild: + Initial import, ebuild written by me. + diff --git a/net-news/nntpswitch/Manifest b/net-news/nntpswitch/Manifest new file mode 100644 index 000000000000..8c795f646076 --- /dev/null +++ b/net-news/nntpswitch/Manifest @@ -0,0 +1,15 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +MD5 97c82a17da9f8033de96e75011380e1c nntpswitch-0.11.ebuild 2070 +MD5 48b1336cd730a53b886cb09231412687 ChangeLog 404 +MD5 d4764f5c17f5e0b416f7ddf271c77d71 metadata.xml 161 +MD5 43a13b7a5681200f7038c535e4f18243 files/digest-nntpswitch-0.11 66 +MD5 712cf4e650fe165063e51192847bc374 files/nntpswitch.init.d 519 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.9.10 (GNU/Linux) + +iD8DBQFBrjb9I1lqEGTUzyQRAopCAKC6CezK+Q/5JdvBT52+YuCdn2QVlQCfUPHo +UfOr7Q3na58jHFkHBfx96Cc= +=cpJa +-----END PGP SIGNATURE----- diff --git a/net-news/nntpswitch/files/digest-nntpswitch-0.11 b/net-news/nntpswitch/files/digest-nntpswitch-0.11 new file mode 100644 index 000000000000..09e59410eda2 --- /dev/null +++ b/net-news/nntpswitch/files/digest-nntpswitch-0.11 @@ -0,0 +1 @@ +MD5 e032f2944c1afa86c83e52048ccc0665 nntpswitch-0.11.tar.gz 86116 diff --git a/net-news/nntpswitch/files/nntpswitch.init.d b/net-news/nntpswitch/files/nntpswitch.init.d new file mode 100644 index 000000000000..9b5a8be712a0 --- /dev/null +++ b/net-news/nntpswitch/files/nntpswitch.init.d @@ -0,0 +1,21 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/net-news/nntpswitch/files/nntpswitch.init.d,v 1.1 2004/12/01 21:26:13 swegener Exp $ + +depend() { + use net +} + +start() { + ebegin "Starting NNTP Switch" + /usr/sbin/nntpswitchd &>/dev/null + eend $? +} + +stop() { + ebegin "Stopping NNTP Switch" + start-stop-daemon --stop --quiet --pidfile /var/run/nntpswitchd.pid + eend $? + rm -f /var/run/nntpswitchd.pid +} diff --git a/net-news/nntpswitch/metadata.xml b/net-news/nntpswitch/metadata.xml new file mode 100644 index 000000000000..4d0ebe73a55f --- /dev/null +++ b/net-news/nntpswitch/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>net-news</herd> +</pkgmetadata> diff --git a/net-news/nntpswitch/nntpswitch-0.11.ebuild b/net-news/nntpswitch/nntpswitch-0.11.ebuild new file mode 100644 index 000000000000..9e3bbb9eb181 --- /dev/null +++ b/net-news/nntpswitch/nntpswitch-0.11.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-news/nntpswitch/nntpswitch-0.11.ebuild,v 1.1 2004/12/01 21:26:13 swegener Exp $ + +DESCRIPTION="Load Balancing NNTP Router" +HOMEPAGE="http://www.nntpswitch.org/" +SRC_URI="http://www.nntpswitch.org/download/${P}.tar.gz" +LICENSE="as-is" +SLOT="0" +KEYWORDS="~x86" +IUSE="ldap mysql postgres" + +RDEPEND="mysql? ( dev-db/mysql ) + postgres? ( dev-db/postgresql ) + ldap? ( net-nds/openldap )" + +DEPEND="${RDEPEND} + >=sys-apps/sed-4" + +S=${WORKDIR}/${PN} + +src_unpack() { + unpack ${A} + + sed -i \ + -e "s/-O3/${CFLAGS}/" \ + -e "s:lib/nntpswitch:$(get_libdir)/nntpswitch:" \ + ${S}/Makefile + sed -i \ + -e "s:/usr/local/lib:/usr/$(get_libdir)/nntpswitch:" \ + ${S}/nntpswitch.conf.in + sed -i \ + -e "s:/usr/local/etc/nntpswitch/passwd:/etc/nntpswitch/passwd:" \ + ${S}/etc/access.conf +} + +src_compile() { + emake -j1 || die "emake failed" + + if use mysql + then + emake -j1 mysql || die "emake mysql failed" + fi + if use postgres + then + emake -j1 postgres || die "emake postgres failed" + fi + if use ldap + then + emake -j1 ldap || die "emake ldap failed" + fi +} + +src_install() { + dodir /usr/sbin /usr/$(get_libdir)/nntpswitch + make PREFIX="${D}/usr" install || die "make install failed" + + insinto /etc/nntpswitch + newins nntpswitch.conf-dist nntpswitch.conf || die "newins failed" + doins etc/{{access,servers}.conf,passwd,overview.fmt} || die "doins failed" + + keepdir /var/lib/nntpswitch || die "keepdir failed" + dosym /var/lib/nntpswitch/active /etc/nntpswitch/active || die "dosym failed" + dosym /var/lib/nntpswitch/newsgroups /etc/nntpswitch/newsgroups || die "dosym failed" + + newinitd ${FILESDIR}/nntpswitch.init.d nntpswitch || die "newinitd failed" +} + +pkg_postinst() { + einfo "Please configure nntpswitch using the files in /etc/nntpswitch!" + einfo + einfo "After this, you need to generate a nntpswitch-compatible active file," + einfo "before you can start nntpswitch for the first time. Use 'updategroups'" + einfo "to perform this step." +} |