pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
munge: Authentication service for creating and validating credentials
Module Name: pkgsrc-wip
Committed By: Jason Bacon <bacon%NetBSD.org@localhost>
Pushed By: outpaddling
Date: Fri Jan 31 19:06:21 2020 -0600
Changeset: f77524a9791aa3972e1cea552431f923c91554ab
Modified Files:
Makefile
Added Files:
munge/DESCR
munge/Makefile
munge/PLIST
munge/PLIST.FreeBSD
munge/PLIST.Linux
munge/PLIST.old
munge/buildlink3.mk
munge/distinfo
munge/files/munge.sh
munge/patches/patch-src_etc_Makefile.in
Log Message:
munge: Authentication service for creating and validating credentials
Testing v0.5.14
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=f77524a9791aa3972e1cea552431f923c91554ab
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
munge/DESCR | 9 +++++++
munge/Makefile | 46 +++++++++++++++++++++++++++++++++
munge/PLIST | 33 +++++++++++++++++++++++
munge/PLIST.FreeBSD | 3 +++
munge/PLIST.Linux | 3 +++
munge/PLIST.old | 35 +++++++++++++++++++++++++
munge/buildlink3.mk | 13 ++++++++++
munge/distinfo | 7 +++++
munge/files/munge.sh | 15 +++++++++++
munge/patches/patch-src_etc_Makefile.in | 30 +++++++++++++++++++++
11 files changed, 195 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index 9d8fe9f422..5496fb5aa8 100644
--- a/Makefile
+++ b/Makefile
@@ -2275,6 +2275,7 @@ SUBDIR+= multisync-palm
SUBDIR+= multisync-syncml
SUBDIR+= multisync-syncml-moto
SUBDIR+= multitail
+SUBDIR+= munge
SUBDIR+= munin-c-git
SUBDIR+= munin-common
SUBDIR+= munin-master
diff --git a/munge/DESCR b/munge/DESCR
new file mode 100644
index 0000000000..fc10b79dd5
--- /dev/null
+++ b/munge/DESCR
@@ -0,0 +1,9 @@
+MUNGE (MUNGE Uid 'N' Gid Emporium) is an authentication service
+for creating and validating credentials. It is designed to be
+highly scalable for use in an HPC cluster environment. It allows
+a process to authenticate the UID and GID of another local or
+remote process within a group of hosts having common users and
+groups. These hosts form a security realm that is defined by a
+shared cryptographic key. Clients within this security realm can
+create and validate credentials without the use of root
+privileges, reserved ports, or platform-specific methods.
diff --git a/munge/Makefile b/munge/Makefile
new file mode 100644
index 0000000000..426f00c6cc
--- /dev/null
+++ b/munge/Makefile
@@ -0,0 +1,46 @@
+# $NetBSD: Makefile,v 1.23 2020/01/18 21:50:41 jperkin Exp $
+
+DISTNAME= munge-0.5.14
+CATEGORIES= security
+MASTER_SITES= ${MASTER_SITE_GITHUB:=dun/}
+GITHUB_RELEASE= ${DISTNAME}
+EXTRACT_SUFX= .tar.xz
+
+MAINTAINER= bacon%NetBSD.org@localhost
+HOMEPAGE= https://dun.github.io/munge/
+COMMENT= Authentication service for creating and validating credentials
+LICENSE= gnu-gpl-v3
+
+USE_TOOLS+= perl pkg-config
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+CONFIGURE_ARGS+= --localstatedir=${VARBASE}
+INSTALLATION_DIRS+= lib/pkgconfig
+
+OWN_DIRS= ${VARBASE}/lib/munge
+OWN_DIRS+= ${VARBASE}/log/munge
+OWN_DIRS+= ${VARBASE}/run/munge
+OWN_DIRS+= etc/munge
+
+BUILD_DEFS+= VARBASE
+
+RCD_SCRIPTS+= munge
+
+SUBST_CLASSES+= init
+SUBST_STAGE.init= post-patch
+SUBST_FILES.init= ${WRKSRC}/src/etc/munge.sysvinit.init.in
+SUBST_SED.init= -e 's|USER="munge"|USER="daemon"|g'
+SUBST_SED.init+= -e 's|GROUP="munge"|GROUP="daemon"|g'
+
+SUBST_CLASSES+= systemd
+SUBST_STAGE.systemd= post-patch
+SUBST_FILES.systemd= ${WRKSRC}/src/etc/munge.systemd.service.in
+SUBST_SED.systemd= -e 's|User=munge|User=daemon|g'
+SUBST_SED.systemd+= -e 's|Group=munge|Group=daemon|g'
+
+.include "../../archivers/bzip2/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../security/libgcrypt/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/munge/PLIST b/munge/PLIST
new file mode 100644
index 0000000000..cbb506b6bd
--- /dev/null
+++ b/munge/PLIST
@@ -0,0 +1,33 @@
+@comment $NetBSD: PLIST,v 1.6 2018/03/24 18:05:58 bacon Exp $
+bin/munge
+bin/remunge
+bin/unmunge
+include/munge.h
+lib/libmunge.la
+lib/pkgconfig/munge.pc
+man/man1/munge.1
+man/man1/remunge.1
+man/man1/unmunge.1
+man/man3/munge.3
+man/man3/munge_ctx.3
+man/man3/munge_ctx_copy.3
+man/man3/munge_ctx_create.3
+man/man3/munge_ctx_destroy.3
+man/man3/munge_ctx_get.3
+man/man3/munge_ctx_set.3
+man/man3/munge_ctx_strerror.3
+man/man3/munge_decode.3
+man/man3/munge_encode.3
+man/man3/munge_enum.3
+man/man3/munge_enum_int_to_str.3
+man/man3/munge_enum_is_valid.3
+man/man3/munge_enum_str_to_int.3
+man/man3/munge_strerror.3
+man/man7/munge.7
+man/man8/munged.8
+man/man8/mungekey.8
+sbin/munged
+sbin/mungekey
+@pkgdir var/run/munge
+@pkgdir var/log/munge
+@pkgdir var/lib/munge
diff --git a/munge/PLIST.FreeBSD b/munge/PLIST.FreeBSD
new file mode 100644
index 0000000000..4f5fe12f74
--- /dev/null
+++ b/munge/PLIST.FreeBSD
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST.FreeBSD,v 1.5 2018/03/24 18:05:58 bacon Exp $
+share/examples/munge/default/munge
+share/examples/munge/init.d/munge
diff --git a/munge/PLIST.Linux b/munge/PLIST.Linux
new file mode 100644
index 0000000000..fd258fd864
--- /dev/null
+++ b/munge/PLIST.Linux
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST.Linux,v 1.4 2018/03/24 18:05:58 bacon Exp $
+share/examples/munge/rc.d/init.d/munge
+share/examples/munge/sysconfig/munge
diff --git a/munge/PLIST.old b/munge/PLIST.old
new file mode 100644
index 0000000000..ba878b3398
--- /dev/null
+++ b/munge/PLIST.old
@@ -0,0 +1,35 @@
+@comment $NetBSD: PLIST,v 1.6 2018/03/24 18:05:58 bacon Exp $
+bin/munge
+bin/remunge
+bin/unmunge
+include/munge.h
+lib/libmunge.la
+lib/pkgconfig/munge.pc
+lib/systemd/system/munge.service
+lib/tmpfiles.d/munge.conf
+man/man1/munge.1
+man/man1/remunge.1
+man/man1/unmunge.1
+man/man3/munge.3
+man/man3/munge_ctx.3
+man/man3/munge_ctx_copy.3
+man/man3/munge_ctx_create.3
+man/man3/munge_ctx_destroy.3
+man/man3/munge_ctx_get.3
+man/man3/munge_ctx_set.3
+man/man3/munge_ctx_strerror.3
+man/man3/munge_decode.3
+man/man3/munge_encode.3
+man/man3/munge_enum.3
+man/man3/munge_enum_int_to_str.3
+man/man3/munge_enum_is_valid.3
+man/man3/munge_enum_str_to_int.3
+man/man3/munge_strerror.3
+man/man7/munge.7
+man/man8/munged.8
+man/man8/mungekey.8
+sbin/munged
+sbin/mungekey
+@pkgdir var/run/munge
+@pkgdir var/log/munge
+@pkgdir var/lib/munge
diff --git a/munge/buildlink3.mk b/munge/buildlink3.mk
new file mode 100644
index 0000000000..9a20f1e2fb
--- /dev/null
+++ b/munge/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2012/02/19 03:51:17 asau Exp $
+
+BUILDLINK_TREE+= munge
+
+.if !defined(MUNGE_BUILDLINK3_MK)
+MUNGE_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.munge+= munge>=0.5.10
+BUILDLINK_PKGSRCDIR.munge?= ../../security/munge
+
+.endif # MUNGE_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -munge
diff --git a/munge/distinfo b/munge/distinfo
new file mode 100644
index 0000000000..f6f9de109b
--- /dev/null
+++ b/munge/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.6 2018/03/24 18:05:58 bacon Exp $
+
+SHA1 (munge-0.5.14.tar.xz) = 7c11df405bbbb5fcdaece771488ffab3a94ddf20
+RMD160 (munge-0.5.14.tar.xz) = 787fcc12744476616849e4c05351407f308bbe51
+SHA512 (munge-0.5.14.tar.xz) = 742c9f2c1cf9f5b070f91fc6b9e74c5f2712c385bce6820c400e884fb6d78f86dea7ebe8e3918d056bf72e746a6af5481a1a8d9f0834a28836da90a42b4eb166
+Size (munge-0.5.14.tar.xz) = 439776 bytes
+SHA1 (patch-src_etc_Makefile.in) = 6f9732c892b51b9b4bc5cefeb4da0a2823f69a43
diff --git a/munge/files/munge.sh b/munge/files/munge.sh
new file mode 100644
index 0000000000..eab070367f
--- /dev/null
+++ b/munge/files/munge.sh
@@ -0,0 +1,15 @@
+#!@RCD_SCRIPTS_SHELL@
+# $NetBSD: munge.sh,v 1.1 2014/09/11 16:11:46 asau Exp $
+#
+# PROVIDE: munge
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+
+. /etc/rc.subr
+
+name="munge"
+rcvar=${name}
+command="@PREFIX@/sbin/munged"
+
+load_rc_config $name
+run_rc_command "$1"
diff --git a/munge/patches/patch-src_etc_Makefile.in b/munge/patches/patch-src_etc_Makefile.in
new file mode 100644
index 0000000000..7ef18dd914
--- /dev/null
+++ b/munge/patches/patch-src_etc_Makefile.in
@@ -0,0 +1,30 @@
+$NetBSD$
+
+# pkgsrc hierarchy
+
+--- src/etc/Makefile.in.orig 2020-02-01 00:21:19.726062417 +0000
++++ src/etc/Makefile.in
+@@ -286,6 +286,7 @@ sbindir = @sbindir@
+ sharedstatedir = @sharedstatedir@
+ srcdir = @srcdir@
+ sysconfdir = @sysconfdir@
++sysconfexampledir = $(prefix)/share/examples/munge
+ sysconfigdir = @sysconfigdir@
+ systemdunitdir = @systemdunitdir@
+ sysvinitddir = @sysvinitddir@
+@@ -598,13 +599,13 @@ install-data-hook: install-dirs install-
+ uninstall-local: uninstall-dirs uninstall-logrotate uninstall-pkgconfig uninstall-systemd uninstall-sysvinit
+
+ install-dirs:
+- $(MKDIR_P) -m 0700 '$(DESTDIR)$(sysconfdir)/munge'
++ $(MKDIR_P) -m 0700 '$(DESTDIR)$(sysconfexampledir)/munge'
+ $(MKDIR_P) -m 0711 '$(DESTDIR)$(localstatedir)/lib/munge'
+ $(MKDIR_P) -m 0700 '$(DESTDIR)$(localstatedir)/log/munge'
+ $(MKDIR_P) -m 0755 '$(DESTDIR)$(runstatedir)/munge'
+
+ uninstall-dirs:
+- rmdir '$(DESTDIR)$(sysconfdir)/munge' 2>/dev/null || :
++ rmdir '$(DESTDIR)$(sysconfexampledir)/munge' 2>/dev/null || :
+ rmdir '$(DESTDIR)$(localstatedir)/lib/munge' 2>/dev/null || :
+ rmdir '$(DESTDIR)$(localstatedir)/log/munge' 2>/dev/null || :
+ rmdir '$(DESTDIR)$(runstatedir)/munge' 2>/dev/null || :
Home |
Main Index |
Thread Index |
Old Index