void-packages/srcpkgs/inspircd/template

37 lines
1.1 KiB
Bash
Raw Normal View History

2015-12-29 02:16:02 +01:00
# Template file for 'inspircd'
pkgname=inspircd
2016-02-17 06:54:17 +01:00
version=2.0.21
2016-05-26 18:12:58 +02:00
revision=3
build_style=gnu-makefile
2015-12-29 02:16:02 +01:00
hostmakedepends="perl pkg-config"
2016-05-26 18:12:58 +02:00
makedepends="geoip-devel libressl-devel sqlite-devel"
2015-12-29 02:16:02 +01:00
system_accounts="${pkgname}"
2016-05-26 18:12:58 +02:00
make_dirs="/var/log/inspircd 0755 ${pkgname} ${pkgname}"
2015-12-29 02:16:02 +01:00
homepage="http://www.inspircd.org/"
2016-05-26 18:12:58 +02:00
short_desc="Modular Internet Relay Chat server"
2015-12-29 02:16:02 +01:00
maintainer="Alexander Gehrke <void@qwertyuiop.de>"
license="GPL-2"
2016-05-26 18:12:58 +02:00
distfiles="https://github.com/inspircd/inspircd/archive/v${version}.tar.gz"
2016-02-17 06:54:17 +01:00
checksum=bc2f861d754754a108797699319186130ef7d909204eb56ab2c3b1ae80c9d6c5
2015-12-29 02:16:02 +01:00
2016-05-26 18:12:58 +02:00
do_configure() {
./configure --enable-extras=m_ssl_openssl.cpp,m_regex_posix.cpp,m_sqlite3.cpp,m_geoip.cpp
2016-05-26 18:12:58 +02:00
./configure \
--prefix=/usr \
--config-dir=/etc/inspircd \
--log-dir=/var/log/inspircd \
--data-dir=/var/lib/inspircd \
--module-dir=/usr/lib/${pkgname}/modules \
--binary-dir=/usr/bin \
--uid inspircd \
--disable-interactive \
--enable-openssl \
--enable-epoll
sed -i 's/-ldl/& -lm/' GNUmakefile
2015-12-29 02:16:02 +01:00
}
post_install() {
vsv inspircd
2016-05-26 18:12:58 +02:00
rm ${DESTDIR}/usr/${pkgname}
2016-01-11 11:52:47 +01:00
rm ${DESTDIR}/usr/.gdbargs
2015-12-29 02:16:02 +01:00
}