Commit ef26de8b authored by Francesco Colista's avatar Francesco Colista
Browse files

testing/charybdis: new aport. Fixes Feature #1113

parent ea1d2187
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=charybdis
pkgver=3.4.0
pkgrel=0
pkgdesc="A highly-scalable IRCv3-compliant IRC daemon"
url="http://www.atheme.org/project/charybdis"
arch="all"
license="GPL2"
pkgusers="ircd"
depends=""
depends_dev="bison flex openssl-dev zlib-dev libtool"
makedepends="$depends_dev"
install="$pkgname.pre-install"
subpackages="$pkgname-dev $pkgname-doc"
source="saveas-http://www.stack.nl/~jilles/irc/$pkgname-$pkgver.tbz2/$pkgname-$pkgver.tar.bz2
$pkgname.initd
$pkgname.confd"
_builddir="$srcdir"/$pkgname-$pkgver
build() {
cd "$_builddir"
./configure \
--prefix=/usr \
--sysconfdir=/etc/charybdis \
--localstatedir=/var \
--libexecdir=/usr/lib \
--disable-assert \
--enable-ssl \
--enable-ipv6 \
--with-rundir=/var/run \
--with-program-prefix=charybdis-
make
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install
rm -f "$pkgdir"/usr/lib/*.la
install -m755 -D "$srcdir"/$pkgname.initd \
"$pkgdir"/etc/init.d/charybdis-ircd || return 1
install -m644 -D "$srcdir"/$pkgname.confd \
"$pkgdir"/etc/conf.d/charybdis-ircd || return 1
chown ircd "$pkgdir"/var/run/charybdis
chown ircd "$pkgdir"/var/log/charybdis
chown ircd "$pkgdir"/var/charybdis
}
md5sums="b31c126ae76938233d6a0a6d1123dce8 charybdis-3.4.0.tar.bz2
b11b3bba9a61f2b288ad83b62dbb67bf charybdis.initd
4bbd6b06a4389bd4826ab8ba7f76393a charybdis.confd"
CHARYBDIS_USER="ircd"
CHARYBDIS_PID="/var/run/charybdis/ircd.pid"
#!/sbin/runscript
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-irc/charybdis/files/charybdis-ircd.initd,v 1.2 2008/01/08 21:17:02 jokey Exp $
depend() {
use net
provide ircd
}
start() {
ebegin "Starting ircd-charybdis"
start-stop-daemon --start --quiet -u ${CHARYBDIS_USER} --exec /usr/bin/charybdis-ircd >/dev/null
eend $?
}
stop() {
ebegin "Stopping ircd-charybdis"
start-stop-daemon --stop --quiet --pidfile ${CHARYBDIS_PID}
eend $?
}
#!/bin/sh
adduser -h /var/run/charybdis -s /bin/false -S -D ircd 2>/dev/null
exit 0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment