49 lines
1.4 KiB
Bash
49 lines
1.4 KiB
Bash
# Template file for 'inspircd'
|
|
pkgname=inspircd
|
|
version=3.4.0
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
hostmakedepends="perl pkg-config"
|
|
makedepends="geoip-devel libressl-devel sqlite-devel gnutls-devel"
|
|
short_desc="Modular Internet Relay Chat server"
|
|
maintainer="Alexander Gehrke <void@qwertyuiop.de>"
|
|
license="GPL-2.0-only"
|
|
homepage="http://www.inspircd.org/"
|
|
distfiles="https://github.com/inspircd/inspircd/archive/v${version}.tar.gz"
|
|
checksum=8372295f24f4f92606029cdabd16f244f6ccddc3dbfd84d625408827495e3245
|
|
|
|
system_accounts="inspircd"
|
|
inspircd_homedir="/var/lib/inspircd"
|
|
make_dirs="
|
|
/var/log/inspircd 0750 ${pkgname} ${pkgname}
|
|
/var/lib/inspircd 0750 ${pkgname} ${pkgname}"
|
|
|
|
pre_configure() {
|
|
if [ "$CROSS_BUILD" ]; then
|
|
# configure script runs compiled executables to check for compiler features
|
|
vsed -i '/return 0 unless.*test_file(/d' make/configure.pm
|
|
fi
|
|
}
|
|
|
|
do_configure() {
|
|
./configure --enable-extras=m_ssl_openssl.cpp,m_regex_posix.cpp,m_sqlite3.cpp
|
|
./configure \
|
|
--prefix=/usr \
|
|
--config-dir=/etc/inspircd \
|
|
--log-dir=/var/log/inspircd \
|
|
--data-dir=/var/lib/inspircd \
|
|
--manual-dir=/usr/share/man/man1 \
|
|
--module-dir=/usr/lib/${pkgname}/modules \
|
|
--binary-dir=/usr/bin \
|
|
--distribution-label voidlinux-${revision} \
|
|
--gid 0 \
|
|
--uid 0 \
|
|
--disable-interactive
|
|
vsed -i 's/-ldl/& -lm/' GNUmakefile
|
|
}
|
|
|
|
post_install() {
|
|
vsv inspircd
|
|
rm ${DESTDIR}/usr/${pkgname}
|
|
rm ${DESTDIR}/usr/inspircd.service
|
|
}
|