mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-28 16:32:57 +02:00
inspircd: update to 3.0.1
This commit is contained in:
parent
1dd5f6cf7e
commit
80ea5396e0
3 changed files with 26 additions and 15 deletions
2
srcpkgs/inspircd/INSTALL.msg
Normal file
2
srcpkgs/inspircd/INSTALL.msg
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
You need to create a configuration file before running inspircd.
|
||||||
|
Example configuration can be found at /etc/inspircd/examples/
|
|
@ -1,5 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
install -d -m0755 -o inspircd -g inspircd /run/inspircd
|
|
||||||
exec chpst -u inspircd inspircd \
|
exec chpst -u inspircd inspircd \
|
||||||
--nofork --config /etc/inspircd/inspircd.conf \
|
--nofork --config /etc/inspircd/inspircd.conf
|
||||||
--logfile /var/log/inspircd/ircd.log
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'inspircd'
|
# Template file for 'inspircd'
|
||||||
pkgname=inspircd
|
pkgname=inspircd
|
||||||
version=2.0.27
|
version=3.0.1
|
||||||
revision=3
|
revision=1
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
hostmakedepends="perl pkg-config"
|
hostmakedepends="perl pkg-config"
|
||||||
makedepends="geoip-devel libressl-devel sqlite-devel gnutls-devel"
|
makedepends="geoip-devel libressl-devel sqlite-devel gnutls-devel"
|
||||||
|
@ -10,30 +10,41 @@ maintainer="Alexander Gehrke <void@qwertyuiop.de>"
|
||||||
license="GPL-2.0-only"
|
license="GPL-2.0-only"
|
||||||
homepage="http://www.inspircd.org/"
|
homepage="http://www.inspircd.org/"
|
||||||
distfiles="https://github.com/inspircd/inspircd/archive/v${version}.tar.gz"
|
distfiles="https://github.com/inspircd/inspircd/archive/v${version}.tar.gz"
|
||||||
checksum=6bc1956bd6a7d2d463c646f1563c99cb507f2f214e51d6ac9c70906ac27aae73
|
checksum=e8668da4c8a183e86a42e9a825311b8280687481f8dc14c49f188f97d1aceef0
|
||||||
|
|
||||||
system_accounts="$pkgname"
|
system_accounts="inspircd"
|
||||||
make_dirs="/var/log/inspircd 0755 ${pkgname} ${pkgname}"
|
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() {
|
do_configure() {
|
||||||
./configure --enable-extras=m_ssl_openssl.cpp,m_regex_posix.cpp,m_sqlite3.cpp,m_geoip.cpp
|
./configure --enable-extras=m_ssl_openssl.cpp,m_regex_posix.cpp,m_sqlite3.cpp
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--config-dir=/etc/inspircd \
|
--config-dir=/etc/inspircd \
|
||||||
--log-dir=/var/log/inspircd \
|
--log-dir=/var/log/inspircd \
|
||||||
--data-dir=/var/lib/inspircd \
|
--data-dir=/var/lib/inspircd \
|
||||||
|
--manual-dir=/usr/share/man/man1 \
|
||||||
--module-dir=/usr/lib/${pkgname}/modules \
|
--module-dir=/usr/lib/${pkgname}/modules \
|
||||||
--binary-dir=/usr/bin \
|
--binary-dir=/usr/bin \
|
||||||
--uid inspircd \
|
--distribution-label voidlinux-${revision} \
|
||||||
--disable-interactive \
|
--gid 0 \
|
||||||
--enable-openssl \
|
--uid 0 \
|
||||||
--enable-gnutls \
|
--disable-interactive
|
||||||
--enable-epoll
|
vsed -i 's/-ldl/& -lm/' GNUmakefile
|
||||||
sed -i 's/-ldl/& -lm/' GNUmakefile
|
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vsv inspircd
|
vsv inspircd
|
||||||
rm ${DESTDIR}/usr/${pkgname}
|
rm ${DESTDIR}/usr/${pkgname}
|
||||||
rm ${DESTDIR}/usr/.gdbargs
|
rm ${DESTDIR}/usr/.gdbargs
|
||||||
|
rm ${DESTDIR}/usr/inspircd.service
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue