summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Destuynder <kang@gentoo.org>2004-06-06 22:10:26 +0000
committerGuillaume Destuynder <kang@gentoo.org>2004-06-06 22:10:26 +0000
commit818ec89f8a7dcde773cedda0f58afa1ff928c9e4 (patch)
tree3187ea963824be83f2647520af4e22ce6126d4b9 /net-p2p
parentFix use invocation (Manifest recommit) (diff)
downloadgentoo-2-818ec89f8a7dcde773cedda0f58afa1ff928c9e4.tar.gz
gentoo-2-818ec89f8a7dcde773cedda0f58afa1ff928c9e4.tar.bz2
gentoo-2-818ec89f8a7dcde773cedda0f58afa1ff928c9e4.zip
cvs commit
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/mhxd/ChangeLog8
-rw-r--r--net-p2p/mhxd/Manifest5
-rw-r--r--net-p2p/mhxd/files/digest-mhxd-0.4.91
-rw-r--r--net-p2p/mhxd/files/hxd.rc24
-rw-r--r--net-p2p/mhxd/metadata.xml11
-rw-r--r--net-p2p/mhxd/mhxd-0.4.9.ebuild72
6 files changed, 121 insertions, 0 deletions
diff --git a/net-p2p/mhxd/ChangeLog b/net-p2p/mhxd/ChangeLog
new file mode 100644
index 000000000000..731fb634d925
--- /dev/null
+++ b/net-p2p/mhxd/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for net-p2p/mhxd
+# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/mhxd/ChangeLog,v 1.1 2004/06/06 22:10:25 kang Exp $
+
+*mhxd-0.4.9 (05 Jun 2004)
+
+ 05 Jun 2004; Guillaume Destuynder <kang@gentoo.org>:
+ Initial import. Ebuild submitted by myself.
diff --git a/net-p2p/mhxd/Manifest b/net-p2p/mhxd/Manifest
new file mode 100644
index 000000000000..1518afc20985
--- /dev/null
+++ b/net-p2p/mhxd/Manifest
@@ -0,0 +1,5 @@
+MD5 b730c4230a6e4fadd3447abd1c3e48c9 ChangeLog 250
+MD5 4c80a328afc724eabbec779a403c2664 metadata.xml 512
+MD5 327afaa02e9975d90c856b3d8a812fd5 mhxd-0.4.9.ebuild 1776
+MD5 263e07d7b6e0692f95a9126ce487b78d files/hxd.rc 395
+MD5 3fd74d28e2f7311b6bd55accaf024e5b files/digest-mhxd-0.4.9 62
diff --git a/net-p2p/mhxd/files/digest-mhxd-0.4.9 b/net-p2p/mhxd/files/digest-mhxd-0.4.9
new file mode 100644
index 000000000000..58b808fd7e2a
--- /dev/null
+++ b/net-p2p/mhxd/files/digest-mhxd-0.4.9
@@ -0,0 +1 @@
+MD5 c72c172c792d7951b26385c6f66596f7 mhxd-0.4.9.tar.gz 550951
diff --git a/net-p2p/mhxd/files/hxd.rc b/net-p2p/mhxd/files/hxd.rc
new file mode 100644
index 000000000000..6b3f968c3cb6
--- /dev/null
+++ b/net-p2p/mhxd/files/hxd.rc
@@ -0,0 +1,24 @@
+#!/sbin/runscript
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin Starting hxd
+ cd /home/hxd
+ start-stop-daemon --quiet --start -c hxd --pidfile /var/run/hxd.pid --startas /usr/sbin/hxd -f /etc/hxd.conf
+ eend $?
+}
+
+stop() {
+ ebegin Stopping hxd
+ start-stop-daemon --quiet --stop -c hxd --pidfile /var/run/hxd.pid
+ eend $?
+}
+
+reload() {
+ ebegin Reloading hxd
+ su hxd -c "killall -HUP hxd"
+ eend $?
+}
diff --git a/net-p2p/mhxd/metadata.xml b/net-p2p/mhxd/metadata.xml
new file mode 100644
index 000000000000..854478fd077c
--- /dev/null
+++ b/net-p2p/mhxd/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>net-p2p</herd>
+<maintainer>
+ <email>kang@gentoo.org</email>
+ <name>Guillaume Destuynder</name>
+ <description>Hotline packages maintainer</description>
+</maintainer>
+<longdescription>mhxd is an Hotline server under the GPL for Linux/Unixes. It supports the Hotline Protocol from 1.2.3 up to 1.5+ (and this means it also includes the 1.9+ clients)</longdescription>
+</pkgmetadata>
diff --git a/net-p2p/mhxd/mhxd-0.4.9.ebuild b/net-p2p/mhxd/mhxd-0.4.9.ebuild
new file mode 100644
index 000000000000..f05b3cae6260
--- /dev/null
+++ b/net-p2p/mhxd/mhxd-0.4.9.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/mhxd/mhxd-0.4.9.ebuild,v 1.1 2004/06/06 22:10:26 kang Exp $
+
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~ppc"
+
+DESCRIPTION="This is a Hotline 1.5+ compatible *nix Hotline Server. It supports IRC compatibility. See http://www.hotspringsinc.com/"
+SRC_URI="http://projects.acidbeats.de/${P}.tar.gz"
+HOMEPAGE="http://hotlinex.sf.net/"
+
+IUSE="ipv6 ssl mysql"
+
+DEPEND="virtual/glibc
+ ssl? ( >=dev-libs/openssl-0.9.6d )
+ mysql? ( >=dev-db/mysql-3.23.52 )
+ >=sys-libs/zlib-1.1.4"
+
+SLOT="0"
+
+src_compile() {
+ econf \
+ `use_enable ssl idea cipher hope compress` \
+ `use_enable ipv6` \
+ `use_enable mysql sql` \
+ --enable-acctedit --enable-irc || die "bad configure"
+ emake || die "compile problem"
+ make install || die "compile problem"
+}
+
+src_install() {
+ cd ${S}
+ dodoc AUTHORS INSTALL PROBLEMS README* ChangeLog TODO NEWS run/hxd/hxd.conf
+
+ cpdirs="accounts files newsdir etc exec lib"
+ insinto /etc; doins run/hxd/hxd.conf
+ dosbin run/hxd/bin/hxd
+ dobin run/hxd/bin/acctedit
+
+ dodir /var/hxd
+ for d in ${cpdirs} ; do
+ insinto /var/hxd
+ cp -R run/hxd/${d} ${D}/var/hxd/${d}
+ done
+ insinto /var/hxd ; doins run/hxd/news
+ insinto /var/hxd; doins run/hxd/agreement
+
+ keepdir /var/hxd/files
+ keepdir /var/hxd/lib
+ exeinto /etc/init.d ; newexe ${FILESDIR}/hxd.rc hxd
+}
+
+pkg_preinst() {
+ if ! groupmod hxd; then
+ groupadd hxd 2> /dev/null || \
+ die "Failed to create hxd group"
+ fi
+
+ if ! id hxd; then
+ useradd -s /dev/null -d /var/hxd -c "hxd added by portage" -g hxd hxd
+ assert "Failed to create hxd user"
+ fi
+}
+
+pkg_postinst() {
+ #fowners don't do directories :(
+ chown -R hxd:hxd /var/hxd
+ einfo
+ einfo "Welcome to Horline!"
+ einfo "Login as admin and no password to your hotline server, and change the password"
+ einfo
+}