blob: 964b2d167c7ece20028405c7256c1a278185466f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=charybdis
pkgver=3.5.5
pkgrel=0
pkgdesc="A highly-scalable IRCv3-compliant IRC daemon"
url="http://www.atheme.org/project/charybdis.html"
arch="all"
license="BSD GPL2"
pkgusers="ircd"
depends=""
depends_dev="bison flex libressl-dev zlib-dev libtool"
makedepends="$depends_dev"
install="$pkgname.pre-install"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/charybdis-ircd/$pkgname/archive/$pkgname-$pkgver.tar.gz
$pkgname.initd
$pkgname.confd"
builddir="$srcdir"/$pkgname-$pkgname-$pkgver
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc/charybdis \
--localstatedir=/var \
--libexecdir=/usr/lib \
--disable-assert \
--enable-ssl \
--enable-ipv6 \
--with-rundir=/var/run \
--with-program-prefix=charybdis- \
|| return 1
make || return 1
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
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
}
sha512sums="4922132e7c23bf5270841497b94c71ba91996d03a54d4c68e2a2abd6fc8466b9ba7d42b48862cb2f0e490007dc56eb7da3ee7df7cec93ae3d840f8ecd9a538d0 charybdis-3.5.5.tar.gz
584d28ded8c943172764ee89a0dcf2593e8a71a9ce876635b6fb86485171caad7c5e7fe0ec18fc217bfe93b7ceb865e9930e3af74458cb1f0b698c38fd70947f charybdis.initd
1886b312b0ea40945de45db7a379bff2a3af426155fb77676e03f21f8d1d733e057fb5c3cb65fb72bb56008c4c92f3d2d0010563f871fd0802446de443ddfd5e charybdis.confd"
|