diff --git a/common/shlibs b/common/shlibs index eae643bfe2..08bdcee8f2 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2316,3 +2316,4 @@ libshout.so.3 libshout-2.4.1_1 libfirm.so.1.22 libfirm-1.22.0_1 libaudiofile.so.1 audiofile-0.3.6_1 libbs2b.so.0 libbs2b-3.1.0_1 +libmunge.so.2 munge-libs-0.5.11_1 diff --git a/srcpkgs/munge-devel b/srcpkgs/munge-devel new file mode 120000 index 0000000000..9bd1490823 --- /dev/null +++ b/srcpkgs/munge-devel @@ -0,0 +1 @@ +munge \ No newline at end of file diff --git a/srcpkgs/munge-libs b/srcpkgs/munge-libs new file mode 120000 index 0000000000..9bd1490823 --- /dev/null +++ b/srcpkgs/munge-libs @@ -0,0 +1 @@ +munge \ No newline at end of file diff --git a/srcpkgs/munge/INSTALL.msg b/srcpkgs/munge/INSTALL.msg new file mode 100644 index 0000000000..b6bb17fd90 --- /dev/null +++ b/srcpkgs/munge/INSTALL.msg @@ -0,0 +1,14 @@ +Don't forget to generate the Secret Key: + + You can create a secret key using a variety of methods: + + A. Wait around for some random data (recommended for the paranoid): + $ dd if=/dev/random bs=1 count=1024 >/etc/munge/munge.key + + B. Grab some pseudorandom data (recommended for the impatient): + $ dd if=/dev/urandom bs=1 count=1024 >/etc/munge/munge.key + + C. Enter the hash of a password: + $ echo -n "foo" | sha1sum | cut -d' ' -f1 >/etc/munge/munge.key + +The Key-File must owned by munge with the permission 700 diff --git a/srcpkgs/munge/files/munge/run b/srcpkgs/munge/files/munge/run new file mode 100644 index 0000000000..467b5f8ff8 --- /dev/null +++ b/srcpkgs/munge/files/munge/run @@ -0,0 +1,11 @@ +#!/bin/sh + +if [ ! -d /var/lib/munge ]; then + mkdir -m0711 -p /var/lib/munge +fi +chown munge:munge /var/lib/munge +if [ ! -d /var/run/munge ]; then + mkdir -m0755 -p /var/run/munge +fi +chown munge:munge /var/run/munge +exec chpst -u munge:munge munged -F 2>&1 diff --git a/srcpkgs/munge/template b/srcpkgs/munge/template new file mode 100644 index 0000000000..a15c1559b0 --- /dev/null +++ b/srcpkgs/munge/template @@ -0,0 +1,48 @@ +# Template file for 'munge' +pkgname=munge +version=0.5.11 +revision=1 +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 " +license="GPL-3" +homepage="https://dun.github.io/munge/" +distfiles="https://github.com/dun/${pkgname}/releases/download/${pkgname}-${version}/${pkgname}-${version}.tar.bz2" +checksum=8e075614f81cb0a6df21a0aafdc825498611a04429d0876f074fc828739351a5 + +system_accounts="munge" +munge_homedir="/var/run/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 +} + +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_descr+=" - runtime libraries" + pkg_install() { + vmove "usr/lib/*.so.*" + } +}