ngircd: add systemd service; enable ipv6; add ssl pkg option (on).
This commit is contained in:
parent
186d28cc8e
commit
de97d9e6e5
2 changed files with 34 additions and 6 deletions
10
srcpkgs/ngircd/files/ngircd.service
Normal file
10
srcpkgs/ngircd/files/ngircd.service
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Next Generation IRC Daemon
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/sbin/ngircd -n
|
||||||
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
|
@ -1,21 +1,39 @@
|
||||||
# Template build file for 'ngircd'
|
# Template build file for 'ngircd'
|
||||||
pkgname=ngircd
|
pkgname=ngircd
|
||||||
version=20.2
|
version=20.2
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
hostmakedepends="pkg-config autoconf"
|
configure_args="--enable-ipv6 --without-ident"
|
||||||
makedepends="openssl-devel"
|
hostmakedepends="pkg-config"
|
||||||
|
makedepends="zlib-devel"
|
||||||
homepage="http://ngircd.barton.de/"
|
homepage="http://ngircd.barton.de/"
|
||||||
short_desc="free, portable and lightweight Internet Relay Chat server"
|
short_desc="Free, portable and lightweight Internet Relay Chat server"
|
||||||
maintainer="pancake <pancake@nopcode.org>"
|
maintainer="pancake <pancake@nopcode.org>"
|
||||||
license="GPL-2"
|
license="GPL-2"
|
||||||
distfiles="ftp://ftp.berlios.de/pub/$pkgname/$pkgname-$version.tar.gz"
|
distfiles="ftp://ftp.berlios.de/pub/$pkgname/$pkgname-$version.tar.gz"
|
||||||
checksum=306c0ef0d2ceac0836a84ecf871a6bc4dd16c25683aa87c0f172b6e68b93357d
|
checksum=306c0ef0d2ceac0836a84ecf871a6bc4dd16c25683aa87c0f172b6e68b93357d
|
||||||
|
|
||||||
|
# Package build options
|
||||||
|
build_options="ssl"
|
||||||
|
desc_option_ssl="Enable support for SSL"
|
||||||
|
|
||||||
|
# Enable ssl by default.
|
||||||
|
build_options_default="ssl"
|
||||||
|
|
||||||
|
if [ "$build_option_ssl" ]; then
|
||||||
|
configure_args+=" --with-openssl"
|
||||||
|
makedepends+=" openssl-devel"
|
||||||
|
else
|
||||||
|
configure_args+=" --without-openssl"
|
||||||
|
fi
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
vinstall ${FILESDIR}/${pkgname}.service 644 usr/lib/systemd/system
|
||||||
|
}
|
||||||
|
|
||||||
ngircd_package() {
|
ngircd_package() {
|
||||||
conf_files="/etc/ngircd.conf"
|
conf_files="/etc/ngircd.conf"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove etc
|
vmove all
|
||||||
vmove usr
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue