36 lines
1.1 KiB
Bash
36 lines
1.1 KiB
Bash
# Template file for 'inspircd'
|
|
pkgname=inspircd
|
|
version=2.0.23
|
|
revision=3
|
|
build_style=gnu-makefile
|
|
hostmakedepends="perl pkg-config"
|
|
makedepends="geoip-devel libressl-devel sqlite-devel"
|
|
system_accounts="${pkgname}"
|
|
make_dirs="/var/log/inspircd 0755 ${pkgname} ${pkgname}"
|
|
homepage="http://www.inspircd.org/"
|
|
short_desc="Modular Internet Relay Chat server"
|
|
maintainer="Alexander Gehrke <void@qwertyuiop.de>"
|
|
license="GPL-2"
|
|
distfiles="https://github.com/inspircd/inspircd/archive/v${version}.tar.gz"
|
|
checksum=522b31fc80e8fd90b66837bf50f8a941233709d5b1fc9c0b3c47a413fb69f162
|
|
|
|
do_configure() {
|
|
./configure --enable-extras=m_ssl_openssl.cpp,m_regex_posix.cpp,m_sqlite3.cpp,m_geoip.cpp
|
|
./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
|
|
}
|
|
post_install() {
|
|
vsv inspircd
|
|
rm ${DESTDIR}/usr/${pkgname}
|
|
rm ${DESTDIR}/usr/.gdbargs
|
|
}
|