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-03-25 22:35:23 +01:00
|
|
|
revision=2
|
2015-12-29 02:16:02 +01:00
|
|
|
build_style=configure
|
|
|
|
hostmakedepends="perl pkg-config"
|
2016-01-11 11:46:38 +01:00
|
|
|
makedepends="libressl-devel sqlite-devel geoip-devel"
|
2015-12-29 02:16:02 +01:00
|
|
|
system_accounts="${pkgname}"
|
|
|
|
homepage="http://www.inspircd.org/"
|
|
|
|
distfiles="https://github.com/inspircd/inspircd/archive/v${version}.tar.gz"
|
|
|
|
short_desc="Modular internet relay chat server"
|
|
|
|
maintainer="Alexander Gehrke <void@qwertyuiop.de>"
|
|
|
|
license="GPL-2"
|
2016-02-17 06:54:17 +01:00
|
|
|
checksum=bc2f861d754754a108797699319186130ef7d909204eb56ab2c3b1ae80c9d6c5
|
2015-12-29 02:16:02 +01:00
|
|
|
|
|
|
|
configure_args="--prefix=/usr"
|
2016-01-11 11:46:38 +01:00
|
|
|
configure_args+=" --with-cc=${XBPS_CROSS_TRIPLET:+${XBPS_CROSS_TRIPLET}-}g++"
|
2015-12-29 02:16:02 +01:00
|
|
|
configure_args+=" --config-dir=/etc/inspircd"
|
|
|
|
configure_args+=" --log-dir=/var/log/inspircd"
|
|
|
|
configure_args+=" --data-dir=/var/lib/inspircd"
|
2016-01-11 11:46:38 +01:00
|
|
|
configure_args+=" --module-dir=/usr/lib/$pkgname/modules"
|
|
|
|
configure_args+=" --binary-dir=/usr/bin"
|
2015-12-29 02:16:02 +01:00
|
|
|
configure_args+=" --uid inspircd"
|
|
|
|
configure_args+=" --disable-interactive"
|
|
|
|
configure_args+=" --enable-openssl"
|
|
|
|
configure_args+=" --enable-epoll"
|
|
|
|
|
|
|
|
make_dirs="/var/log/inspircd 0755 inspircd inspircd"
|
|
|
|
|
|
|
|
pre_configure() {
|
2016-01-11 11:46:38 +01:00
|
|
|
./configure --enable-extras=m_ssl_openssl.cpp,m_regex_posix.cpp,m_sqlite3.cpp,m_geoip.cpp
|
2015-12-29 02:16:02 +01:00
|
|
|
}
|
|
|
|
post_install() {
|
|
|
|
vsv inspircd
|
2016-01-11 11:52:47 +01:00
|
|
|
rm ${DESTDIR}/usr/$pkgname
|
|
|
|
rm ${DESTDIR}/usr/.gdbargs
|
2015-12-29 02:16:02 +01:00
|
|
|
}
|