aboutsummaryrefslogblamecommitdiffstats
path: root/main/ngircd/APKBUILD
blob: 099aba8174993820b03317d55299c30009b5c2ea (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                   
           
        

                                    
          
             
        



                                                                 
         
 
         












                                                                            



                                     



                                                                      
                                                             
                                               
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ngircd
pkgver=17.1
pkgrel=0
pkgdesc="Next Generation IRC Daemon"
url="http://ngircd.barton.de/"
arch="all"
license="GPL"
depends=
makedepends="openssl-dev zlib-dev"
install="$pkgname.pre-install"
source="ftp://ftp.berlios.de/pub/$pkgname/$pkgname-$pkgver.tar.gz
	$pkgname.initd
	"

build() {
	cd "$srcdir"/$pkgname-$pkgver
	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

	./configure --prefix=/usr \
		--sysconfdir=/etc/ngircd \
		--mandir=/usr/share/man \
		--without-ident \
		--with-openssl
	make || return 1
}

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

md5sums="b4ad0b1f18875ff3f2e92f076e64496b  ngircd-17.1.tar.gz
50d8388540a2e3eb0630e8ac6369f394  ngircd.initd"