aboutsummaryrefslogtreecommitdiffstats
path: root/main/ngircd/APKBUILD
blob: 6d9bda63a2c35458f259716da2a0202b0568497e (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=19.1
pkgrel=0
pkgdesc="Next Generation IRC Daemon"
url="http://ngircd.barton.de/"
arch="all"
license="GPL"
depends=
makedepends="openssl-dev zlib-dev linux-pam-dev"
install="$pkgname.pre-install"
source="ftp://ftp.berlios.de/pub/$pkgname/$pkgname-$pkgver.tar.gz
	client_user_len.patch
	$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
#	sed -i \
#		-e "s:/usr/local/etc/ngircd.motd:/etc/ngircd/ngircd.motd:" \
#		-e "s:;ServerUID = 65534:ServerUID = ngircd:" \
#		-e "s:;ServerGID = 65534:ServerGID = nogroup:" \
#		doc/sample-ngircd.conf
}
	
build() {
	cd "$_builddir"
	./configure --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="baa653d4877ea5b24af64859115e00f8  ngircd-19.1.tar.gz
2c41fceb7fd3987f61109ff9f3bb60ee  client_user_len.patch
628548a938f27fedcb6797c427bf0035  ngircd.initd"