aboutsummaryrefslogtreecommitdiffstats
path: root/main/ngircd/APKBUILD
blob: 3adbfea1dee066060a6d394d70e02b4bf05217a3 (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
# Contributor: Leonardo Arena <larena@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ngircd
pkgver=22.1
pkgrel=0
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="http://ngircd.barton.de/pub/ngircd/ngircd-$pkgver.tar.xz
	$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 \
		--enable-ipv6 \
		|| return 1
	make || return 1
}

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

md5sums="e9167f226670b38138ca8f2f4acb0165  ngircd-22.1.tar.xz
51c3679a7c1f2f5522031fa856e34734  ngircd.initd"
sha256sums="cbe76d63fa919b2eaa87c5942f587f9fa95291e6fa4d7490d71bc94fa69b4956  ngircd-22.1.tar.xz
890d0dc433a8d7f082c35ba806bac53f19d2d4352fcb7127cc28741abcbd6a75  ngircd.initd"
sha512sums="ebb0a4be61cdbd4ac3451fd35023f040b5585dca582c8af3d8286c7975c66764ca6806aac53d9afd31d4148775caba9720efe4d1606aa15442d5697ffeb666a7  ngircd-22.1.tar.xz
50339507917c956a38451394a8a5996337ff29948944ff6aa40ed39f6dd3d6bfdfb864d60a24199c0a86a01e18a71f213efa6cfb2857a320f31b9fcfb92c6ac1  ngircd.initd"