diff options
Diffstat (limited to 'security/munge')
-rw-r--r-- | security/munge/DESCR | 9 | ||||
-rw-r--r-- | security/munge/Makefile | 25 | ||||
-rw-r--r-- | security/munge/PLIST | 33 | ||||
-rw-r--r-- | security/munge/buildlink3.mk | 13 | ||||
-rw-r--r-- | security/munge/distinfo | 8 | ||||
-rw-r--r-- | security/munge/patches/patch-config_x__ac__arch.m4 | 22 | ||||
-rw-r--r-- | security/munge/patches/patch-configure | 22 | ||||
-rw-r--r-- | security/munge/patches/patch-src_etc_Makefile.in | 54 |
8 files changed, 186 insertions, 0 deletions
diff --git a/security/munge/DESCR b/security/munge/DESCR new file mode 100644 index 00000000000..fc10b79dd54 --- /dev/null +++ b/security/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/security/munge/Makefile b/security/munge/Makefile new file mode 100644 index 00000000000..0ff0b5e04fe --- /dev/null +++ b/security/munge/Makefile @@ -0,0 +1,25 @@ +# $NetBSD: Makefile,v 1.1.1.1 2012/02/19 03:51:17 asau Exp $ + +DISTNAME= munge-0.5.10 +CATEGORIES= security +MASTER_SITES= http://munge.googlecode.com/files/ +EXTRACT_SUFX= .tar.bz2 + +MAINTAINER= asau@inbox.ru +HOMEPAGE= http://code.google.com/p/munge/ +COMMENT= Authentication service for creating and validating credentials + +PKG_DESTDIR_SUPPORT= user-destdir + +USE_TOOLS= perl +GNU_CONFIGURE= yes +USE_LIBTOOL= yes +CONFIGURE_ARGS+= --localstatedir=$(VARBASE) + +OWN_DIRS= $(VARBASE)/lib/munge $(VARBASE)/log/munge $(VARBASE)/run/munge + +.include "../../archivers/bzip2/buildlink3.mk" +.include "../../devel/zlib/buildlink3.mk" +.include "../../security/openssl/buildlink3.mk" +.include "../../mk/pthread.buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/security/munge/PLIST b/security/munge/PLIST new file mode 100644 index 00000000000..4c6ef69eece --- /dev/null +++ b/security/munge/PLIST @@ -0,0 +1,33 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2012/02/19 03:51:17 asau Exp $ +bin/munge +bin/remunge +bin/unmunge +include/munge.h +lib/libmunge.la +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 +sbin/munged +share/examples/default/munge +share/examples/init.d/munge +@pkgdir var/run/munge +@pkgdir var/log/munge +@pkgdir var/lib/munge +@pkgdir share/examples/munge diff --git a/security/munge/buildlink3.mk b/security/munge/buildlink3.mk new file mode 100644 index 00000000000..9a20f1e2fb6 --- /dev/null +++ b/security/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/security/munge/distinfo b/security/munge/distinfo new file mode 100644 index 00000000000..f5792945ba7 --- /dev/null +++ b/security/munge/distinfo @@ -0,0 +1,8 @@ +$NetBSD: distinfo,v 1.1.1.1 2012/02/19 03:51:17 asau Exp $ + +SHA1 (munge-0.5.10.tar.bz2) = 2abd4103dc99549e2d8d002d845e301304f3fbbf +RMD160 (munge-0.5.10.tar.bz2) = d461bd002dde7114608993dacb6a5535a9047f2b +Size (munge-0.5.10.tar.bz2) = 424285 bytes +SHA1 (patch-config_x__ac__arch.m4) = c55f74140c7e4234fcbbbee8ba46069745c03994 +SHA1 (patch-configure) = 52b13fea580e2a80ba352475d6486b87d199283d +SHA1 (patch-src_etc_Makefile.in) = bd0963657918d70bcb03c12cff80831f96d8f4a7 diff --git a/security/munge/patches/patch-config_x__ac__arch.m4 b/security/munge/patches/patch-config_x__ac__arch.m4 new file mode 100644 index 00000000000..18c8d6e5840 --- /dev/null +++ b/security/munge/patches/patch-config_x__ac__arch.m4 @@ -0,0 +1,22 @@ +$NetBSD: patch-config_x__ac__arch.m4,v 1.1.1.1 2012/02/19 03:51:17 asau Exp $ + +--- config/x_ac_arch.m4.orig 2006-10-31 01:17:13.000000000 +0000 ++++ config/x_ac_arch.m4 +@@ -57,7 +57,7 @@ AC_DEFUN([X_AC_ARCH], [ + fi + fi + +- if test "$x_ac_arch" == "32"; then ++ if test "$x_ac_arch" = "32"; then + if expr "$host_os" : "aix" >/dev/null 2>&1; then + test -z "$OBJECT_MODE" && AC_MSG_ERROR( + [The OBJECT_MODE variable must be exported to the shell.]) +@@ -67,7 +67,7 @@ AC_DEFUN([X_AC_ARCH], [ + test -d /lib -o -d /usr/lib \ + && LDFLAGS="-L/lib -L/usr/lib $LDFLAGS" + fi +- elif test "$x_ac_arch" == "64"; then ++ elif test "$x_ac_arch" = "64"; then + if expr "$host_os" : "aix" >/dev/null 2>&1; then + test -z "$OBJECT_MODE" && AC_MSG_ERROR( + [The OBJECT_MODE variable must be exported to the shell.]) diff --git a/security/munge/patches/patch-configure b/security/munge/patches/patch-configure new file mode 100644 index 00000000000..e127f95ebe6 --- /dev/null +++ b/security/munge/patches/patch-configure @@ -0,0 +1,22 @@ +$NetBSD: patch-configure,v 1.1.1.1 2012/02/19 03:51:17 asau Exp $ + +--- configure.orig 2012-01-24 14:54:58.000000000 +0000 ++++ configure +@@ -4864,7 +4864,7 @@ $as_echo "${x_ac_arch_prog_cc_maix=no}" + fi + fi + +- if test "$x_ac_arch" == "32"; then ++ if test "$x_ac_arch" = "32"; then + if expr "$host_os" : "aix" >/dev/null 2>&1; then + test -z "$OBJECT_MODE" && as_fn_error $? "The OBJECT_MODE variable must be exported to the shell." "$LINENO" 5 + OBJECT_MODE=32 +@@ -4873,7 +4873,7 @@ $as_echo "${x_ac_arch_prog_cc_maix=no}" + test -d /lib -o -d /usr/lib \ + && LDFLAGS="-L/lib -L/usr/lib $LDFLAGS" + fi +- elif test "$x_ac_arch" == "64"; then ++ elif test "$x_ac_arch" = "64"; then + if expr "$host_os" : "aix" >/dev/null 2>&1; then + test -z "$OBJECT_MODE" && as_fn_error $? "The OBJECT_MODE variable must be exported to the shell." "$LINENO" 5 + OBJECT_MODE=64 diff --git a/security/munge/patches/patch-src_etc_Makefile.in b/security/munge/patches/patch-src_etc_Makefile.in new file mode 100644 index 00000000000..2c83a2dce0b --- /dev/null +++ b/security/munge/patches/patch-src_etc_Makefile.in @@ -0,0 +1,54 @@ +$NetBSD: patch-src_etc_Makefile.in,v 1.1.1.1 2012/02/19 03:51:17 asau Exp $ + +--- src/etc/Makefile.in.orig 2011-01-20 01:41:36.000000000 +0000 ++++ src/etc/Makefile.in +@@ -217,6 +217,7 @@ sbindir = @sbindir@ + sharedstatedir = @sharedstatedir@ + srcdir = @srcdir@ + sysconfdir = @sysconfdir@ ++sysconfexampledir = $(pkgdatadir)/examples + target_alias = @target_alias@ + top_build_prefix = @top_build_prefix@ + top_builddir = @top_builddir@ +@@ -432,23 +433,23 @@ distclean-local:: + + install-data-local: + expr "`id`" : 'uid=0(' >/dev/null && OWNER="-o daemon" || OWNER=""; \ +- $(INSTALL) -m 0755 -d "$(DESTDIR)$(sysconfdir)/init.d"; \ +- new=""; test ! -f "$(DESTDIR)$(sysconfdir)/init.d/munge" \ ++ $(INSTALL) -m 0755 -d "$(DESTDIR)$(sysconfexampledir)/init.d"; \ ++ new=""; test ! -f "$(DESTDIR)$(sysconfexampledir)/init.d/munge" \ + || cmp "$(builddir)/munge.init" \ +- "$(DESTDIR)$(sysconfdir)/init.d/munge" \ ++ "$(DESTDIR)$(sysconfexampledir)/init.d/munge" \ + 1>/dev/null 2>&1 || new=".new"; \ + $(INSTALL) -m 0755 "$(builddir)/munge.init" \ +- "$(DESTDIR)$(sysconfdir)/init.d/munge$${new}"; \ ++ "$(DESTDIR)$(sysconfexampledir)/init.d/munge$${new}"; \ + test -d "/etc/sysconfig" && d="sysconfig" || d="default"; \ +- new=""; test ! -f "$(DESTDIR)$(sysconfdir)/$${d}/munge" \ ++ new=""; test ! -f "$(DESTDIR)$(sysconfexampledir)/$${d}/munge" \ + || cmp "$(srcdir)/munge.sysconfig" \ +- "$(DESTDIR)$(sysconfdir)/$${d}/munge" \ ++ "$(DESTDIR)$(sysconfexampledir)/$${d}/munge" \ + 1>/dev/null 2>&1 || new=".new"; \ +- $(INSTALL) -m 0755 -d "$(DESTDIR)$(sysconfdir)/$${d}"; \ ++ $(INSTALL) -m 0755 -d "$(DESTDIR)$(sysconfexampledir)/$${d}"; \ + $(INSTALL) -m 0644 "$(srcdir)/munge.sysconfig" \ +- "$(DESTDIR)$(sysconfdir)/$${d}/munge$${new}"; \ ++ "$(DESTDIR)$(sysconfexampledir)/$${d}/munge$${new}"; \ + $(INSTALL) $${OWNER} -m 0700 -d \ +- "$(DESTDIR)$(sysconfdir)/munge"; \ ++ "$(DESTDIR)$(sysconfexampledir)/munge"; \ + $(INSTALL) -m 0711 -d "$(DESTDIR)$(localstatedir)/lib"; \ + $(INSTALL) $${OWNER} -m 0711 -d \ + "$(DESTDIR)$(localstatedir)/lib/munge"; \ +@@ -458,7 +459,7 @@ install-data-local: + $(INSTALL) -m 0711 -d "$(DESTDIR)$(localstatedir)/run"; \ + $(INSTALL) $${OWNER} -m 0755 -d \ + "$(DESTDIR)$(localstatedir)/run/munge" +- chmod 755 "$(DESTDIR)$(sysconfdir)" ++ chmod 755 "$(DESTDIR)$(sysconfexampledir)" + chmod 755 "$(DESTDIR)$(localstatedir)" + chmod 755 "$(DESTDIR)$(localstatedir)/lib" + chmod 755 "$(DESTDIR)$(localstatedir)/log" |