summaryrefslogtreecommitdiffstats
path: root/unmaintained/shadowircd/APKBUILD
blob: ea1d16b79b248325523d8c42f525c82bb1391a89 (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Contributor: Sam Dodrill <shadow.h511@gmail.com>
# Maintainer: Sam Dodrill <shadow.h511@gmail.com>
pkgname=shadowircd
pkgver=6.3.3
pkgrel=1
pkgdesc="Scalable IRC daemon with many useful features"
url="http://www.github.com/shadowircd/shadowircd"
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="https://github.com/shadowircd/shadowircd/archive/shadowircd-6.3.3.tar.gz
	$pkgname.initd
	$pkgname.confd"
_builddir="$srcdir"/$pkgname-$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
			*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}
build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc/shadowircd \
		--localstatedir=/var \
		--libexecdir=/usr/lib \
		--disable-assert \
		--enable-ssl \
		--enable-ipv6 \
		--with-rundir=/var/run \
		|| return 1
	 make
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
        rm -f "$pkgdir"/usr/lib/*.la
        install -m755 -D "$srcdir"/$pkgname.initd \
              "$pkgdir"/etc/init.d/shadowircd || return 1
        install -m644 -D "$srcdir"/$pkgname.confd \
              "$pkgdir"/etc/conf.d/shadowircd || return 1
        chown ircd "$pkgdir"/var/run/shadowircd
        chown ircd "$pkgdir"/var/log/shadowircd
        chown ircd "$pkgdir"/var/shadowircd
	sed -i -e "s/\"modules\"/\"\/usr\/lib\/shadowircd\/modules\"/g" $pkgdir/etc/$pkgname/example.conf
	sed -i -e "s/\"modules\/autoload\"/\"\/usr\/lib\/shadowircd\/modules\/autoload\"/g" "$pkgdir"/etc/$pkgname/example.conf
	sed -i -e "s/usr\/local\/ircd\/modules/usr\/lib\/shadowircd\/modules/g" "$pkgdir"/etc/$pkgname/reference.conf
}

md5sums="fff418e27b8979285a13b93ec7d6dbd1  shadowircd-6.3.3.tar.gz
9c5473325cf654433ea8844d3e4e4882  shadowircd.initd
585358efa2a9fa1cb15317d4442e1774  shadowircd.confd"
sha256sums="a3b6189a473e837d4248b8f18b1e8454ab111c8eafeb46eda477095771636f24  shadowircd-6.3.3.tar.gz
e969f81f76d32104edd6db7b5a47b6eaef09f595d6940c5a3821a7d2b29c6fd7  shadowircd.initd
0564d57624848d943cb0986d7115d596c98c24b5034b2c81ce489abe4ebd3912  shadowircd.confd"
sha512sums="f3638bee6d49c56738cf05dd7c67d93344ed5787eb8777589390dbc38a1481e9a28895bdd4534124dcc8dbe247f3e28e299fe0bc0bb89e4d974b4aff734701d4  shadowircd-6.3.3.tar.gz
5a3592d3be89af13cdc4e30dd1595e13e70fbb369ab3921d8ca7e8089618ad3be98edf9adb69510f889d8e9bd8f7dd515d7cdd8c4de591d7e36d67d33787abec  shadowircd.initd
40e1d2a7a01b97721893dd6ea2bc1857c4bb74b257362ad8bcde9087fe44d1514cbea12a8ab53feb41499f73807de3fa8de9f89a5eb5cb2d558507e952db5a58  shadowircd.confd"