55 lines
1.5 KiB
Bash
55 lines
1.5 KiB
Bash
# Template file for 'munge'
|
|
pkgname=munge
|
|
version=0.5.14
|
|
revision=2
|
|
build_style=gnu-configure
|
|
configure_args="--with-crypto-lib=openssl
|
|
--with-openssl-prefix=${XBPS_CROSS_BASE}/usr
|
|
x_ac_cv_check_fifo_recvfd=no ac_cv_file__dev_spx=no"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="bzip2-devel libressl-devel zlib-devel"
|
|
depends="shadow"
|
|
short_desc="MUNGE Uid 'N' Gid Emporium authentication service"
|
|
maintainer="pulux <pulux@pf4sh.de>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://dun.github.io/munge/"
|
|
distfiles="https://github.com/dun/${pkgname}/releases/download/${pkgname}-${version}/${pkgname}-${version}.tar.xz"
|
|
checksum=6606a218f18090fa1f702e3f6fb608073eb6aafed534cf7dd81b67b2e0d30640
|
|
make_dirs="/etc/munge 0755 munge munge
|
|
/var/log/munge 0755 munge munge
|
|
/var/lib/munge 0711 munge munge"
|
|
|
|
system_accounts="munge"
|
|
munge_homedir="/var/log/munge"
|
|
|
|
pre_install() {
|
|
# needs this to install pc files in cross compilation.
|
|
vmkdir usr/lib/pkgconfig
|
|
}
|
|
post_install() {
|
|
vsv munge
|
|
rm -f ${DESTDIR}/etc/init.d/munge
|
|
rm -f ${DESTDIR}/etc/default/munge
|
|
rm -f ${DESTDIR}/usr/lib/tmpfiles.d/munge.conf
|
|
rm -f ${DESTDIR}/usr/lib/systemd/system/munge.service
|
|
}
|
|
|
|
munge-devel_package() {
|
|
depends="munge-libs>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/lib/*.a
|
|
vmove usr/lib/*.so
|
|
vmove usr/share/man/man3
|
|
}
|
|
}
|
|
|
|
munge-libs_package() {
|
|
short_desc+=" - runtime libraries"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so.*"
|
|
}
|
|
}
|