diff options
author | Sven Wegener <swegener@gentoo.org> | 2004-07-15 21:36:02 +0000 |
---|---|---|
committer | Sven Wegener <swegener@gentoo.org> | 2004-07-15 21:36:02 +0000 |
commit | 2d1c06285603e3b282c0b7f4f88f6cd2ac2410ba (patch) | |
tree | 9d4be9258a1f2962c0f9b01686aab3eb307de81e /net-im | |
parent | Bad patch -> fixed. (Manifest recommit) (diff) | |
download | gentoo-2-2d1c06285603e3b282c0b7f4f88f6cd2ac2410ba.tar.gz gentoo-2-2d1c06285603e3b282c0b7f4f88f6cd2ac2410ba.tar.bz2 gentoo-2-2d1c06285603e3b282c0b7f4f88f6cd2ac2410ba.zip |
Initial import, ebuild written by me.
Diffstat (limited to 'net-im')
-rw-r--r-- | net-im/silc-server/ChangeLog | 10 | ||||
-rw-r--r-- | net-im/silc-server/Manifest | 3 | ||||
-rw-r--r-- | net-im/silc-server/files/digest-silc-server-0.9.18 | 1 | ||||
-rw-r--r-- | net-im/silc-server/files/silc-server.init.d | 21 | ||||
-rw-r--r-- | net-im/silc-server/metadata.xml | 5 | ||||
-rw-r--r-- | net-im/silc-server/silc-server-0.9.18.ebuild | 61 |
6 files changed, 101 insertions, 0 deletions
diff --git a/net-im/silc-server/ChangeLog b/net-im/silc-server/ChangeLog new file mode 100644 index 000000000000..141f295a7d5f --- /dev/null +++ b/net-im/silc-server/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for net-im/silc-server +# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-im/silc-server/ChangeLog,v 1.1 2004/07/15 21:36:02 swegener Exp $ + +*silc-server-0.9.18 (15 Jul 2004) + + 15 Jul 2004; Sven Wegener <swegener@gentoo.org> +metadata.xml, + +files/silc-server.init.d, +silc-server-0.9.18.ebuild: + Initial import, ebuild written by me. + diff --git a/net-im/silc-server/Manifest b/net-im/silc-server/Manifest new file mode 100644 index 000000000000..e4af27003a7d --- /dev/null +++ b/net-im/silc-server/Manifest @@ -0,0 +1,3 @@ +MD5 5ecdfe4aa0a7f79cecdca3f8e661d231 silc-server-0.9.18.ebuild 1400 +MD5 f6b465867deda9bc8629f6399aa0c025 files/silc-server.init.d 428 +MD5 35c2cb3f96d044d2fa789fdaee59b960 files/digest-silc-server-0.9.18 72 diff --git a/net-im/silc-server/files/digest-silc-server-0.9.18 b/net-im/silc-server/files/digest-silc-server-0.9.18 new file mode 100644 index 000000000000..78f07feb2ed7 --- /dev/null +++ b/net-im/silc-server/files/digest-silc-server-0.9.18 @@ -0,0 +1 @@ +MD5 c74b2ba088a81b670a64d350239cde62 silc-server-0.9.18.tar.bz2 1169331 diff --git a/net-im/silc-server/files/silc-server.init.d b/net-im/silc-server/files/silc-server.init.d new file mode 100644 index 000000000000..4a9531e2dddd --- /dev/null +++ b/net-im/silc-server/files/silc-server.init.d @@ -0,0 +1,21 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-im/silc-server/files/silc-server.init.d,v 1.1 2004/07/15 21:36:02 swegener Exp $ + +depend() { + need net + use dns +} + +start() { + ebegin "Starting silc-server" + start-stop-daemon --start --quiet --exec /usr/sbin/silcd -- -f /etc/silc-server/silcd.conf + eend $? +} + +stop() { + ebegin "Shutting down silc-server" + start-stop-daemon --stop --pidfile /var/run/silcd.pid + eend $? +} diff --git a/net-im/silc-server/metadata.xml b/net-im/silc-server/metadata.xml new file mode 100644 index 000000000000..6ef15e900f17 --- /dev/null +++ b/net-im/silc-server/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-irc</herd> +</pkgmetadata> diff --git a/net-im/silc-server/silc-server-0.9.18.ebuild b/net-im/silc-server/silc-server-0.9.18.ebuild new file mode 100644 index 000000000000..1c875ba23a77 --- /dev/null +++ b/net-im/silc-server/silc-server-0.9.18.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-im/silc-server/silc-server-0.9.18.ebuild,v 1.1 2004/07/15 21:36:02 swegener Exp $ + +inherit eutils + +DESCRIPTION="Server for Secure Internet Live Conferencing" +SRC_URI="http://www.silcnet.org/download/server/sources/${P}.tar.bz2" +HOMEPAGE="http://silcnet.org/" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~x86" +IUSE="ipv6 debug" + +DEPEND="!<=net-im/silc-toolkit-0.9.12-r1 + !<=net-im/silc-client-1.0.1" + +src_compile() { + econf \ + --sysconfdir=/etc/${PN} \ + --with-docdir=/usr/share/doc/${PF} \ + --with-helpdir=/usr/share/${PN}/help \ + --with-logsdir=/var/log/${PN} \ + --with-simdir=/usr/lib/${PN} \ + --with-mandir=/usr/share/man \ + `use_enable ipv6` \ + `use_enable debug` \ + || die "econf failed" + emake -j1 all || die "emake failed" +} + +src_install() { + make DESTDIR=${D} install || die "make install failed" + + fperms 600 /etc/${PN} + keepdir /var/log/${PN} + + rm -rf \ + ${D}/usr/libsilc* \ + ${D}/usr/include \ + ${D}/etc/${PN}/silcd.{pub,prv} + + exeinto /etc/init.d + newexe ${FILESDIR}/silc-server.init.d silc-server + + sed -i \ + -e 's:/var/lib/silcd.pid:/var/run/silcd.pid:' \ + -e 's:ip = "10.2.1.6";:ip = "0.0.0.0";:' \ + -e 's:User = "nobody";:User = "silcd";:' \ + ${D}/etc/${PN}/silcd.conf +} + +pkg_postinst() { + enewuser silcd + + if [ ! -f ${ROOT}/etc/${PN}/silcd.prv ] ; then + einfo "Creating key pair in ${ROOT}/etc/${PN}" + silcd -C ${ROOT}/etc/${PN} + fi +} |