aboutsummaryrefslogtreecommitdiffstats
path: root/main/ngircd/APKBUILD
blob: d4a2c3efb920389b1ff402e36d49aa9589795eb2 (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
# Contributor: Leonardo Arena <larena@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ngircd
pkgver=21.1
pkgrel=1
pkgdesc="Next Generation IRC Daemon"
url="http://ngircd.barton.de/"
arch="all"
license="GPL2+"
depends=""
makedepends="openssl-dev zlib-dev linux-pam-dev"
install="$pkgname.pre-install"
source="ftp://ftp.berlios.de/pub/$pkgname/$pkgname-$pkgver.tar.gz
	$pkgname.initd
	"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	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/ngircd \
		--mandir=/usr/share/man \
		--without-ident \
		--with-openssl \
		--with-pam \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	install -Dm755 ../$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
}

md5sums="69eacaaa46124541a1eef2b1e955bdef  ngircd-21.1.tar.gz
628548a938f27fedcb6797c427bf0035  ngircd.initd"
sha256sums="96083ae7dbc5df852efc904fff4800959f103554de2c6d096deaa5408135f59e  ngircd-21.1.tar.gz
67d7427762ce9f97abe494448032912cdc45291df070afc80562b34c94b7915c  ngircd.initd"
sha512sums="0c959502194e4fbd6ef00b78e262ac72f21d6fc41c8bab10d9eb24ca075437bebe59131e95410f9c0a6be2737db2141b2195c00e0b8c031161adf4dfba2765c9  ngircd-21.1.tar.gz
f74c9064aaef9957dcd6acd45bf107a6f74ffe618b96373308ba151dcbffb62ec9062ed956e5d57c7b46bca1dd22a7486f182640cc5ab607f3f8b39600d6506f  ngircd.initd"