blob: 87ec6cc8d6510d47f942e20eb1777d9f61cbfa19 (
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
|
# $Id: PKGBUILD 78622 2012-10-22 09:20:20Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Zerial <fernando@zerial.org>
pkgname=unrealircd
pkgver=3.2.9
pkgrel=4
pkgdesc="Open Source IRC Server"
arch=('i686' 'x86_64')
url="http://unrealircd.com"
license=('GPL2')
depends=('openssl' 'curl' 'c-ares')
conflicts=('ircd')
provides=('ircd')
backup=('etc/unrealircd/unrealircd.conf'
'etc/conf.d/unrealircd')
source=(http://www.unrealircd.com/downloads/Unreal$pkgver.tar.gz
unrealircd.rc
unrealircd.service
arch-fixes.patch)
md5sums=('bde023695347969f545ce5f2a9ac9aed'
'07ffa1e82a01f319a8b997e155d2af1d'
'2103ce8a4a4e79f6955920bfebea0202'
'77807313c4578f2c30286b9f9e3fb21c')
build() {
mkdir -p $pkgdir/etc/unrealircd
mkdir -p $pkgdir/usr/bin
cd $srcdir/Unreal3.2
patch -p1 <$srcdir/arch-fixes.patch
./configure --with-showlistmodes \
--enable-hub --enable-prefixaq --with-listen=5 \
--with-dpath=/etc/unrealircd \
--with-spath=/usr/bin \
--with-nick-history=2000 --with-sendq=3000000 \
--with-bufferpool=18 --with-hostname=archlinux \
--with-permissions=0600 --with-fd-setsize=1024 \
--enable-dynamic-linking \
--enable-ziplinks \
--enable-ssl \
--enable-libcurl=/usr \
--with-system-cares
make
make IRCDDIR=$pkgdir/etc/unrealircd BINDIR=$pkgdir/usr/bin install
mv $srcdir/Unreal3.2/src/ircd $pkgdir/usr/bin/unrealircd
mv $srcdir/Unreal3.2/doc/example.conf $pkgdir/etc/unrealircd/unrealircd.conf
mkdir -p $pkgdir/usr/lib/unrealircd
mv $pkgdir/etc/unrealircd/modules $pkgdir/usr/lib/unrealircd/
ln -s /usr/lib/unrealircd/modules $pkgdir/etc/unrealircd/modules
install -D -m0755 $srcdir/unrealircd.rc $pkgdir/etc/rc.d/unrealircd
# log
mkdir -p $pkgdir/var/log/unrealircd/
touch $pkgdir/var/log/unrealircd/ircd.log
ln -s /var/log/unrealircd/ircd.log $pkgdir/etc/unrealircd/ircd.log
mkdir -p $pkgdir/etc/conf.d/
echo 'UNREALIRCD_USER=root' >$pkgdir/etc/conf.d/unrealircd
find $pkgdir/usr -type f -exec chmod ugo+r {} \;
find $pkgdir/usr -type d -exec chmod ugo+rx {} \;
install -Dm0644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service
}
|