debian/0000775000000000000000000000000012262152062007166 5ustar debian/rules0000775000000000000000000000750312262152010010244 0ustar #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # # Modified to make a template file for a multi-binary package with separated # build-arch and build-indep targets by Bill Allombert 2001 # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # This has to be exported to make some magic below work. export DH_OPTIONS # These are used for cross-compiling and for saving the configure script # from having to guess our platform (since we know it already) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) CFLAGS = -Wall -g -D_GNU_SOURCE ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif config.status: configure dh_testdir dh_autoreconf # Add here commands to configure the package. CPPFLAGS="$(shell dpkg-buildflags --get CPPFLAGS)" LDFLAGS="$(shell dpkg-buildflags --get LDFLAGS)" CFLAGS="$(CFLAGS) -Wl,-z,defs" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --localstatedir=/var --sysconfdir=/etc --with-crypto-lib=libgcrypt #Architecture build: build-arch build-indep build-arch: build-arch-stamp build-arch-stamp: config.status # Add here commands to compile the arch part of the package. #$(MAKE) touch build-arch-stamp build-indep: build-indep-stamp build-indep-stamp: config.status # Add here commands to compile the indep part of the package. #$(MAKE) doc touch build-indep-stamp clean: dh_testdir dh_testroot rm -f build-arch-stamp build-indep-stamp #CONFIGURE-STAMP# # Add here commands to clean up after the build process. [ ! -f Makefile ] || $(MAKE) distclean dh_autoreconf_clean dh_clean install: install-indep install-arch install-indep: dh_testdir dh_testroot dh_prep -i dh_installdirs -i # Add here commands to install the indep part of the package into # debian/-doc. #INSTALLDOC# dh_install -i install-arch: dh_testdir dh_testroot dh_prep -s dh_installdirs -s # Add here commands to install the arch part of the package into # debian/tmp. $(MAKE) install DESTDIR=$(CURDIR)/debian/munge test -e debian/munge/usr/lib/tmpfiles.d/munge.conf || cp -f src/etc/munge-tmpfiles.conf debian/munge/usr/lib/tmpfiles.d/munge.conf rm -rf debian/munge/var/run dh_install -s rm -r debian/munge/usr/include rm debian/munge/usr/lib/lib*.a rm debian/munge/usr/lib/lib*.la rm debian/munge/usr/lib/lib*.so rm -r debian/munge/usr/share/man/man3 rm -r debian/munge/usr/lib/*.so.* rm -rf debian/munge/usr/lib/pkgconfig # Must not depend on anything. This is to be called by # binary-arch/binary-indep # in another 'make' thread. binary-common: dh_testdir dh_testroot dh_installchangelogs dh_installdocs dh_installman debian/create-munge-key.8 install -m644 debian/libmunge2.lintian debian/libmunge2/usr/share/lintian/overrides/libmunge2 dh_compress dh_installinit dh_installlogrotate dh_link dh_strip dh_fixperms dh_makeshlibs dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb # Build architecture independant packages using the common target. binary-indep: build-indep install-indep $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common # Build architecture dependant packages using the common target. binary-arch: build-arch install-arch $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common #binary: binary-arch binary-indep binary: binary-arch .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch debian/create-munge-key.80000664000000000000000000000176212234511344012430 0ustar .\" Man page contributed by Gennaro Oliva .TH CREATE_MUNGE_KEY 8 "2007-03-17" MUNGE "MUNGE Uid 'N' Gid Emporium" .SH NAME create-munge-key \- Create munge key .SH SYNOPSIS .B create-munge-key [\fIOPTION\fR]... .SH DESCRIPTION The \fBcreate-munge-key\fR script creates a cryptographic key for munge(8) authentication service .SH OPTIONS .TP .BI "-h" Display a summary of the command-line options. .TP .BI "-r" specify /dev/random as random file for key generation default is /dev/urandom which provide a worst entropy .TP .BI "-f" Force overwriting existing old key .SH "EXIT STATUS" The \fBcreate-munge-key\fR returns a zero exit code when the key is successfully created. On error, it prints an error message to stderr and returns a non-zero exit code. .SH AUTHOR Gennaro Oliva .SH "SEE ALSO" .BR remunge (1), .BR unmunge (1), .BR munge (3), .BR munge_ctx (3), .BR munge_enum (3), .BR munge (7), .BR munged (8). .PP \fBhttp://munge.googlecode.com/\fR debian/watch0000664000000000000000000000012512234511344010216 0ustar version=3 http://code.google.com/p/munge/downloads/list?can=3 .*/munge-(\d.*)\.tar.* debian/create-munge-key0000664000000000000000000000362212234511344012257 0ustar #! /bin/sh # Generates a random key for munged # # (C) 2007 Gennaro Oliva # You may freely distribute this file under the terms of the GNU General # Public License, version 2 or later. #Setting default random file randomfile=/dev/urandom #Usage message usage="Try \`$0 -h' for more information." #Help message needhelp() { echo Usage: create-munge-key [OPTION]... echo Generates a random key for munged echo List of options echo " -f force overwriting existing old key" echo " -r specify /dev/random as random file for key generation" echo " default is /dev/urandom" echo " -h display this help and exit" } #Parsing command line options while getopts "hrf" options; do case $options in r ) randomfile=/dev/random;; f ) force=yes;; h ) needhelp exit 0;; \? ) echo $usage exit 1;; * ) echo $usage exit 1;; esac done if [ `id -u` != 0 ] ; then echo "Please run create-munge-key as root." exit 1 fi #Checking random file presence if [ ! -e $randomfile ] ; then echo $0: cannot find random file $randomfile exit 1 fi #Checking if the user want to overwrite existing key file if [ "$force" != "yes" ] && [ -e /etc/munge/munge.key ] ; then echo The munge key /etc/munge/munge.key already exists echo -n "Do you want to overwrite it? (y/N) " read ans if [ "$ans" != "y" -a "$ans" != "Y" ] ; then exit 0 fi fi #Generating the key file and change owner and permissions if [ "$randomfile" = "/dev/random" ] ; then echo Please type on the keyboard, echo move your mouse, echo utilize the disks. This gives the random number generator echo a better chance to gain enough entropy. fi echo -n "Generating a pseudo-random key using $randomfile " dd if=$randomfile bs=1 count=1024 > /etc/munge/munge.key \ 2>/dev/null chown munge:munge /etc/munge/munge.key chmod 0400 /etc/munge/munge.key echo completed. exit 0 debian/prerm0000664000000000000000000000013612234511344010237 0ustar #!/bin/sh set -e #DEBHELPER# rm -f /var/lib/munge/munge.seed rm -rf /var/run/munge exit 0 debian/changelog0000664000000000000000000002640312262152030011040 0ustar munge (0.5.11-1ubuntu1) trusty; urgency=medium * Use dh-autoreconf to get new libtool macros for ppc64el. -- Logan Rosen Sat, 04 Jan 2014 22:39:54 -0500 munge (0.5.11-1) unstable; urgency=low * New upstream release (Closes: #727467) * Standard version upgraded to 3.9.4.0 (no changes) * Removed "After=syslog.target" from the syslogd file * Usage of dpkg-buildflags for CPPFLAGS and LDFLAGS * Explicit copy of tmpfiles and pkgconfig files to avoid makefile target directory checks -- Gennaro Oliva Fri, 01 Nov 2013 12:16:59 +0100 munge (0.5.10-1) unstable; urgency=low * New upstream release * Updated copyright, homepage, watch thanks to Chris Dunlap * Standards version upgraded to 3.9.1.0 (no changes) * Switch to dpkg-source 3.0 (quilt) format * Added explicit dependency by the same version of libmunge for munge -- Gennaro Oliva Mon, 28 Feb 2011 20:41:12 +0100 munge (0.5.9-2) unstable; urgency=low * Update some licensing info, and documentation files thanks to Chris Dunlap -- Gennaro Oliva Thu, 25 Mar 2010 14:16:47 +0100 munge (0.5.9-1) unstable; urgency=low * New upstreal release -- Gennaro Oliva Thu, 25 Mar 2010 00:06:51 +0100 munge (0.5.8-12) unstable; urgency=low * Macros and shell scripts from libtool 3.2.6b-2 added in the config directory; AM_PROG_CC_C_O added in configure.ac ; new Makefile.in and aclocal.m4 generated (Closes: #558574) -- Gennaro Oliva Mon, 08 Feb 2010 20:23:25 +0100 munge (0.5.8-11) unstable; urgency=low * Added missingok to logrotate -- Gennaro Oliva Wed, 14 Oct 2009 19:26:24 +0200 munge (0.5.8-10) unstable; urgency=low * In the init script the runlevel 2 was moved from Default-Stop to Default-Start, $named was moved from Required-{Start,Stop} to Should-{Start,Stop}, $remote_fs was added in Required-{Start,Stop}, $local_fs was removed from Should-{Start,Stop} (Closes: #541238) * Updated upstream config.{sub,guess} under the config directory (Closes: #537469) -- Gennaro Oliva Sun, 27 Sep 2009 22:19:07 +0200 munge (0.5.8-9) unstable; urgency=low * Updated config.{sub,guess} files to build on AVR32 (Closes: #536114) -- Gennaro Oliva Thu, 16 Jul 2009 12:06:09 +0200 munge (0.5.8-8) unstable; urgency=low * Added -D_GNU_SOURCE to CFLAGS in rules to fix missing ucred struct, thanks to Peter Green (Closes: #526556) * debhelper compatibility version switched from 4 to 7 * standard version updated from 3.7.3.0 to 3.8.1 * added Homepage field to the control file and removed from description * absolute path for deluser in postrm removed * var/run/munge removed by dirs file * pidfile directory created by the init script * useless preinst script removed * symbols control file for package libmunge2 created * file libmunge-dev.docs created * install files for libmunge2 libmunge-dev munge created -- Gennaro Oliva Tue, 05 May 2009 09:57:25 +0200 munge (0.5.8-7) unstable; urgency=low * Corrected a bashism in the create-munge-key script (Closes: #465009) -- Gennaro Oliva Wed, 05 Mar 2008 12:57:54 +0100 munge (0.5.8-6) unstable; urgency=low * Added support for uscan (Closes: #454320) thanks to Manuel Prinz -- Gennaro Oliva Mon, 14 Jan 2008 17:08:15 +0100 munge (0.5.8-5) unstable; urgency=low * Adduser moved from preinst to postinst * Check deluser existence in postrm (closes: #431530) * Change the description of libmunge2 libmunge-dev using MUNGE (all-caps) when referring to the service as a whole * Added homepage in packages libmunge2 libmunge-dev description -- Gennaro Oliva Tue, 03 Jul 2007 12:51:13 +0200 munge (0.5.8-4) unstable; urgency=low * Double service stop when upgrading solved * Added homepage in package description -- Gennaro Oliva Sun, 17 Jun 2007 11:00:05 +0200 munge (0.5.8-3) unstable; urgency=low * logrotate script modifyed to direct output from init script to /dev/null -- Gennaro Oliva Mon, 04 Jun 2007 16:40:58 +0200 munge (0.5.8-2) unstable; urgency=low * Copyright file updated with Todd C. Miller and FSF copyrights -- Gennaro Oliva Sun, 20 May 2007 14:50:31 +0200 munge (0.5.8-1) unstable; urgency=low [ Dirk Eddelbuettel ] * New upstream release * debian/control: Added Dirk Eddelbuettel as Uploaders: * debian/control, debian/templates: Minor rewording * debian/postinst: Use /dev/urandom [ Gennaro Oliva ] * debconf munge.key creation removed * Added create-munge-key script for key creation * Added create-munge-key.8 manual page * Added lsb functions to log init script actions * Added function check-key to the init script invoked on start and restart -- Gennaro Oliva Thu, 22 Mar 2007 09:18:08 +0100 munge (0.5.6-2) unstable; urgency=low * Added Chris Dunlap suggestions: /etc/munge postinst permissions /var/lib/munge postinst permissions, postrm removal and inclusion in dirs /var/log/munge postrm removal Readme.Debian rewritten * munge.dirs contains only munge specific dirs * logrotate script added * service stopped twice in postrm removed -- Gennaro Oliva Thu, 30 Nov 2006 15:45:16 +0100 munge (0.5.6-1) unstable; urgency=low * New upstream version available -- Gennaro Oliva Wed, 29 Nov 2006 10:49:53 +0100 munge (0.5.5) unstable; urgency=low * New upstream version available -- Gennaro Oliva Wed, 22 Nov 2006 17:36:08 +0100 munge (0.5.4-1) unstable; urgency=low * New upstream version available -- Gennaro Oliva Thu, 28 Sep 2006 10:23:35 +0200 munge (0.5.3-1) unstable; urgency=low * Added debconf munge.key creation * Created README.Debian with istruction for manual key creation * Packaging binaries and libraries separately * Description clarified * Key Creation with /dev/random * Custom init script eliminates non-debian instructions by the upstream * zlib1g-dev and libbz2-dev added to build dependencies * munge dependency by libmunge2 modified * libmunge2-dev package renamed to libmunge-dev * Creation of the specific munge user for running the daemon * Prerm script now stop the daemon * Preinst script add the munge user -- Gennaro Oliva Thu, 14 Sep 2006 12:41:13 +0200 munge (0.5-1) unstable; urgency=low * Initial release Closes: #360909 -- Gennaro Oliva Tue, 14 Mar 2006 22:25:03 +0100 munge (0.5.8-9) unstable; urgency=low * Updated config.{sub,guess} files to build on AVR32 (Closes: #536114) -- Gennaro Oliva Thu, 16 Jul 2009 11:52:33 +0200 munge (0.5.8-8) unstable; urgency=low * Added -D_GNU_SOURCE to CFLAGS in rules to fix missing ucred struct, thanks to Peter Green (Closes: #526556) * debhelper compatibility version switched from 4 to 7 * standard version updated from 3.7.3.0 to 3.8.1 * added Homepage field to the control file and removed from description * absolute path for deluser in postrm removed * var/run/munge removed by dirs file * pidfile directory created by the init script * useless preinst script removed * symbols control file for package libmunge2 created * file libmunge-dev.docs created * install files for libmunge2 libmunge-dev munge created -- Gennaro Oliva Tue, 05 May 2009 09:57:25 +0200 munge (0.5.8-7) unstable; urgency=low * Corrected a bashism in the create-munge-key script (Closes: #465009) -- Gennaro Oliva Wed, 05 Mar 2008 12:57:54 +0100 munge (0.5.8-6) unstable; urgency=low * Added support for uscan (Closes: #454320) thanks to Manuel Prinz -- Gennaro Oliva Mon, 14 Jan 2008 17:08:15 +0100 munge (0.5.8-5) unstable; urgency=low * Adduser moved from preinst to postinst * Check deluser existence in postrm (closes: #431530) * Change the description of libmunge2 libmunge-dev using MUNGE (all-caps) when referring to the service as a whole * Added homepage in packages libmunge2 libmunge-dev description -- Gennaro Oliva Tue, 03 Jul 2007 12:51:13 +0200 munge (0.5.8-4) unstable; urgency=low * Double service stop when upgrading solved * Added homepage in package description -- Gennaro Oliva Sun, 17 Jun 2007 11:00:05 +0200 munge (0.5.8-3) unstable; urgency=low * logrotate script modifyed to direct output from init script to /dev/null -- Gennaro Oliva Mon, 04 Jun 2007 16:40:58 +0200 munge (0.5.8-2) unstable; urgency=low * Copyright file updated with Todd C. Miller and FSF copyrights -- Gennaro Oliva Sun, 20 May 2007 14:50:31 +0200 munge (0.5.8-1) unstable; urgency=low [ Dirk Eddelbuettel ] * New upstream release * debian/control: Added Dirk Eddelbuettel as Uploaders: * debian/control, debian/templates: Minor rewording * debian/postinst: Use /dev/urandom [ Gennaro Oliva ] * debconf munge.key creation removed * Added create-munge-key script for key creation * Added create-munge-key.8 manual page * Added lsb functions to log init script actions * Added function check-key to the init script invoked on start and restart -- Gennaro Oliva Thu, 22 Mar 2007 09:18:08 +0100 munge (0.5.6-2) unstable; urgency=low * Added Chris Dunlap suggestions: /etc/munge postinst permissions /var/lib/munge postinst permissions, postrm removal and inclusion in dirs /var/log/munge postrm removal Readme.Debian rewritten * munge.dirs contains only munge specific dirs * logrotate script added * service stopped twice in postrm removed -- Gennaro Oliva Thu, 30 Nov 2006 15:45:16 +0100 munge (0.5.6-1) unstable; urgency=low * New upstream version available -- Gennaro Oliva Wed, 29 Nov 2006 10:49:53 +0100 munge (0.5.5) unstable; urgency=low * New upstream version available -- Gennaro Oliva Wed, 22 Nov 2006 17:36:08 +0100 munge (0.5.4-1) unstable; urgency=low * New upstream version available -- Gennaro Oliva Thu, 28 Sep 2006 10:23:35 +0200 munge (0.5.3-1) unstable; urgency=low * Added debconf munge.key creation * Created README.Debian with istruction for manual key creation * Packaging binaries and libraries separately * Description clarified * Key Creation with /dev/random * Custom init script eliminates non-debian instructions by the upstream * zlib1g-dev and libbz2-dev added to build dependencies * munge dependency by libmunge2 modified * libmunge2-dev package renamed to libmunge-dev * Creation of the specific munge user for running the daemon * Prerm script now stop the daemon * Preinst script add the munge user -- Gennaro Oliva Thu, 14 Sep 2006 12:41:13 +0200 munge (0.5-1) unstable; urgency=low * Initial release Closes: #360909 -- Gennaro Oliva Tue, 14 Mar 2006 22:25:03 +0100 debian/libmunge2.lintian0000664000000000000000000000004412234511344012431 0ustar libmunge2: spelling-error-in-binary debian/compat0000664000000000000000000000000212234511344010365 0ustar 7 debian/libmunge-dev.install0000664000000000000000000000035512234514300013133 0ustar debian/munge/usr/include/* usr/include debian/munge/usr/lib/lib*.a usr/lib debian/munge/usr/lib/lib*.la usr/lib debian/munge/usr/lib/lib*.so usr/lib debian/munge/usr/share/man/man3/* usr/share/man/man3 src/etc/munge.pc usr/lib/pkgconfig debian/munge.default0000664000000000000000000000062712234511344011655 0ustar ############################################################################### # $Id: munge.sysconfig 507 2006-05-11 20:28:55Z dun $ ############################################################################### ## # Pass additional command-line options to the daemon. ## # OPTIONS="--force --key-file /etc/munge/munged.key --num-threads 1" ## # Adjust the scheduling priority of the daemon. ## # NICE= debian/libmunge2.install0000664000000000000000000000004412234511344012441 0ustar debian/munge/usr/lib/*.so.* usr/lib debian/munge.docs0000664000000000000000000000013312234511344011151 0ustar NEWS README TODO AUTHORS DISCLAIMER.LLNS DISCLAIMER.UC HISTORY JARGON PLATFORMS QUICKSTART debian/libmunge2.dirs0000664000000000000000000000003412234511344011733 0ustar usr/share/lintian/overrides debian/copyright0000664000000000000000000001041312234511344011121 0ustar This package was debianized by Gennaro Oliva on Tue, 14 Mar 2006 22:25:03 +0100. It was downloaded from http://munge.googlecode.com/ Upstream Author: Chris Dunlap Copyright (C) 2007-2011 Lawrence Livermore National Security, LLC. Copyright (C) 2002-2007 The Regents of the University of California. libmissing/getopt1.c,libmissing/getopt.c,libmissing/getopt.h: Copyright (C) 1987-2002 Free Software Foundation, Inc libmissing/strlcat.c,libmissing/strlcpy.c: Copyright (c) 1998 Todd C. Miller Munge is distributed under this license: -------------------------------------------------------------------------------- Written by Chris Dunlap . Copyright (C) 2007-2011 Lawrence Livermore National Security, LLC. Copyright (C) 2002-2007 The Regents of the University of California. UCRL-CODE-155910. This file is part of the MUNGE Uid 'N' Gid Emporium (MUNGE). For details, see . MUNGE is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Additionally for the MUNGE library (libmunge), you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. MUNGE is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License and GNU Lesser General Public License for more details. You should have received a copy of the GNU General Public License and GNU Lesser General Public License along with MUNGE. If not, see . On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-3', and the complete text of the GNU Lesser General Public License can be found in `/usr/share/common-licenses/LGPL-3'. libmissing/strlcat.c and libmissing/strlcpy.c by Todd C. Miller are licensed as follow: -------------------------------------------------------------------------------- * Copyright (c) 1998 Todd C. Miller * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. libmissing/getopt1.c, libmissing/getopt.c, libmissing/getopt.h are licensed as follow: -------------------------------------------------------------------------------- Copyright (C) 1987-2002 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. On Debian systems, the complete text of the GNU Lesser General Public License can be found in `/usr/share/common-licenses/LGPL'. debian/source/0000775000000000000000000000000012234511344010467 5ustar debian/source/format0000664000000000000000000000001412234511344011675 0ustar 3.0 (quilt) debian/README.Debian0000664000000000000000000000116412234511344011232 0ustar To use munge, you need to create a secret key file /etc/munge/munge.key, you can run the create-munge-key script as root to generate a random key or follow the instructions in QUICKSTART. You need to securely propagate the secret key file (eg, via ssh) to other hosts within the same security realm. Credentials are valid only within a security realm (ie, on hosts sharing the same secret key). All munged daemons exchanging credentials need to share the same secret key. If the secret key file is created or copyed before the package is installed, the installation script will accept the key instead of generating a new one. debian/postinst0000664000000000000000000000306612234511344011002 0ustar #! /bin/sh # postinst script for munge # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package # case "$1" in configure) adduser --quiet --system --group --no-create-home munge chown munge:munge /var/log/munge chown munge:munge /etc/munge chown munge:munge /var/lib/munge if [ -e /etc/munge/munge.key ] ; then chown munge:munge /etc/munge/munge.key chmod 0400 /etc/munge/munge.key fi ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # Those using dependency based boot sequencing with sysv-rc and # installing munge before version 0.5.8-9 would miss the # runlevel 4 symlink and have wrong 2 symlink. # Recover from this. if [ "$1" = "configure" ] && dpkg --compare-versions "$2" le "0.5.8-10" \ && [ -f /etc/rc2.d/K[0-9][0-9]munge ] ; then update-rc.d -f munge remove fi # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/libmunge2.symbols0000664000000000000000000000057312234511344012472 0ustar libmunge.so.2 libmunge2 #MINVER# munge_ctx_copy@Base 0.5.8 munge_ctx_create@Base 0.5.8 munge_ctx_destroy@Base 0.5.8 munge_ctx_get@Base 0.5.8 munge_ctx_set@Base 0.5.8 munge_ctx_strerror@Base 0.5.8 munge_decode@Base 0.5.8 munge_encode@Base 0.5.8 munge_enum_int_to_str@Base 0.5.8 munge_enum_is_valid@Base 0.5.8 munge_enum_str_to_int@Base 0.5.8 munge_strerror@Base 0.5.8 debian/munge.install0000664000000000000000000000004112234704542011671 0ustar debian/create-munge-key usr/sbin debian/munge.dirs0000664000000000000000000000007112234514176011171 0ustar etc/munge var/log/munge var/lib/munge usr/lib/tmpfiles.d debian/libmunge-dev.docs0000664000000000000000000000012712234511344012417 0ustar doc/credential_v1_format.txt doc/credential_v2_format.txt doc/credential_v3_format.txt debian/libmunge-dev.dirs0000664000000000000000000000002212234514205012421 0ustar usr/lib/pkgconfig debian/munge.init0000664000000000000000000002071612234511344011175 0ustar #!/bin/sh ############################################################################### # $Id: munge.init.in 627 2006-09-26 23:17:05Z dun $ ############################################################################### # Copyright (C) 2002-2006 The Regents of the University of California. # Produced at Lawrence Livermore National Laboratory. # Written by Chris Dunlap . # UCRL-CODE-155910. ############################################################################### # chkconfig: 345 40 60 ############################################################################### ### BEGIN INIT INFO # Provides: munge # Required-Start: $remote_fs $time # Required-Stop: $remote_fs $time # Should-Start: $named $syslog # Should-Stop: $named $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start/Stop the MUNGE authentication service. # Description: Start/Stop the MUNGE authentication service. ### END INIT INFO ############################################################################### unset DESC DAEMON CONFIG OPTIONS PIDFILE NICE USER SIGHUP_RELOAD prefix="/usr" exec_prefix="${prefix}" sbindir="${exec_prefix}/sbin" sysconfdir="/etc" localstatedir="/var" DESC="MUNGE" DAEMON="$sbindir/munged" #CONFIG=#_NOT_SUPPORTED_# #OPTIONS= PIDFILE="$localstatedir/run/munge/munged.pid" #NICE= USER="munge" #SIGHUP_RELOAD=#_NOT_SUPPORTED_# ############################################################################### PATH=/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin DAEMON_NAME="`basename \"$DAEMON\"`" SERVICE_NAME="`basename \"$0\" .init`" SIGTERM_TIMEOUT="3" # Read configuration defaults to override variables: # $CONFIG, $OPTIONS, $PIDFILE, $USER, $NICE, $SIGHUP_RELOAD ## if [ -f /etc/default/munge ] ; then . /etc/default/munge fi if [ -f /lib/lsb/init-functions ] ; then . /lib/lsb/init-functions fi # Exit if the package has been removed. ## [ -x "$DAEMON" ] || exit 5 # program not installed # Exit if the configuration has been removed. ## [ -z "$CONFIG" -o -r "$CONFIG" ] || exit 6 # program not configured ############################################################################### service_init () { # Initialize the environment. # # Note that the shell positional parameters must be preserved when calling # this function in order for SuSE to initialize its environment properly. ## STATUS=0 [ -n "$SIGHUP_RELOAD" -a "$SIGHUP_RELOAD" != 0 ] \ && RELOAD=1 || unset RELOAD expr -- "$NICE" : '[0-9]*$' >/dev/null 2>&1 && NICE="+$NICE" [ "`id | sed 's/^uid=\([0-9]*\).*/\1/'`" -ne 0 ] && unset USER } check_key () { # Exit if the munge.key does not exist # if [ ! -f /etc/munge/munge.key ] ; then echo Not starting munge \(no keys found\). Please run /usr/sbin/create-munge-key exit 0 fi } service_fini () { # Return the exit status. ## exit $STATUS } service_start () { # Start the service. # Required by LSB. # # According to LSB, running "start" on a service already running should be # considered successful. ## PIDDIR=`dirname "$PIDFILE"` if [ ! -d "$PIDDIR" ]; then mkdir -m 755 -p "$PIDDIR" [ -n "$USER" ] && chown "$USER" "$PIDDIR" fi log_daemon_msg "Starting $DESC" "$DAEMON_NAME" if $0 status >/dev/null 2>&1; then STATUS=0 else ERROR=`start-stop-daemon --start --quiet \ ${NICE:+"--nicelevel"} ${NICE:+"$NICE"} \ ${USER:+"--chuid"} ${USER:+"$USER"} \ ${PIDFILE:+"--pidfile"} ${PIDFILE:+"$PIDFILE"} \ --exec "$DAEMON" -- $OPTIONS 2>&1` STATUS=$? fi log_end_msg $STATUS [ $STATUS -ne 0 -a -n "$ERROR" ] && echo "$ERROR" } service_stop () { # Stop the service. # Required by LSB. # # According to LSB, running "stop" on a service already stopped or not running # should be considered successful. ## log_daemon_msg "Stopping $DESC" "$DAEMON_NAME" if ! $0 status >/dev/null 2>&1; then STATUS=0 else start-stop-daemon --stop --quiet \ ${PIDFILE:+"--pidfile"} ${PIDFILE:+"$PIDFILE"} \ --name "$DAEMON_NAME" ${SIGTERM_TIMEOUT:+"--retry"} \ ${SIGTERM_TIMEOUT:+"$SIGTERM_TIMEOUT"} >/dev/null 2>&1 STATUS=$? fi log_end_msg $STATUS } service_restart () { # Stop and restart the service if it is already running; # otherwise, start the service. # Required by LSB. # # According to LSB, running "restart" on a service already stopped or not # running should be considered successful. ## if $0 status >/dev/null 2>&1; then $0 stop && $0 start else $0 start fi STATUS=$? } service_try_restart () { # Restart the service if it is already running. # Optional for LSB. Also known as "condrestart" by RedHat. # # According to LSB, running "try-restart" on a service already stopped or not # running should be considered successful. ## $0 status >/dev/null 2>&1 && $0 restart || : STATUS=$? } service_reload () { # Reload the configuration without stopping and restarting the service. # Optional for LSB. ## [ -z "$RELOAD" ] && STATUS=3 # unimplemented feature log_daemon_msg "Reloading $DESC" "$DAEMON_NAME" if [ -n "$RELOAD" ]; then start-stop-daemon --stop --quiet --signal HUP \ ${PIDFILE:+"--pidfile"} ${PIDFILE:+"$PIDFILE"} \ --name "$DAEMON_NAME" >/dev/null 2>&1 STATUS=$? fi log_end_msg $STATUS } service_force_reload () { # Reload the configuration if the service supports this; # otherwise, restart the service if it is already running. # Required by LSB. # # According to LSB, running "force-reload" on a service already stopped or # not running should be considered successful. ## if [ -n "$RELOAD" ]; then $0 reload else $0 try-restart fi STATUS=$? } service_status () { # Print the current status of the service. # Required by LSB. ## pids=`query_pids "$DAEMON" "$PIDFILE"` rc=$? if [ $rc -eq 0 -a -n "$pids" ]; then echo "$DAEMON_NAME (pid $pids) is running" STATUS=0 elif [ $rc -ne 0 ]; then echo "$DAEMON_NAME is stopped" STATUS=3 # program is not running else echo "$DAEMON_NAME status is unknown" STATUS=4 # program status unknown fi } query_pids () { # Writes the matching PIDs to stdout. # Returns 0 on success (ie, pids found). ## PROCNAME="$1" PIDFILE="$2" if query_exec pgrep; then pids=`pgrep -d ' ' -x "\`basename \"$PROCNAME\"\`" 2>/dev/null` rc=$? elif query_exec pidof; then pids=`pidof -o $$ -x "$PROCNAME" 2>/dev/null` rc=$? else pids=`(ps awx -o pid -o command || ps -e -f -o pid -o args) 2>/dev/null \ | tail +2 | egrep "( |/)$PROCNAME( |$)" | grep -v egrep \ | sed 's/ *\([0-9]*\).*/\1/' | sort -n | tr '\012' ' '` [ -n "$pids" ] && rc=0 || rc=1 fi unset pids_running if [ -n "$pids" -a -r "$PIDFILE" ]; then read pid_line < "$PIDFILE" for pid in $pid_line; do expr -- "$pid" : '[0-9]*$' >/dev/null 2>&1 \ && expr -- " $pids " : ".* $pid .*" >/dev/null 2>&1 \ && pids_running="$pids_running $pid" done [ -n "$pids_running" ] && pids=$pids_running fi echo $pids return $rc } query_exec () { # Returns 0 if EXECNAME is an executable file within the PATH. ## EXECNAME="$1" rc=1 IFS_BAK="$IFS" IFS=: for dir in $PATH; do [ -x "$dir/$EXECNAME" ] || continue rc=0 break done IFS="$IFS_BAK" return $rc } signal_process () { # Returns 0 on success, 1 if kill failed, 2 if PROCNAME is not running. ## PROCNAME="$1" SIGNUM="$2" pids=`query_pids "$DAEMON" "$PIDFILE"` [ $? -ne 0 -o -z "$pids" ] && return 2 kill ${SIGNUM:+"-$SIGNUM"} $pids >/dev/null 2>&1 [ $? -ne 0 ] && return 1 [ -n "$SIGNUM" ] && return 0 pids=`query_pids "$DAEMON" "$PIDFILE"` [ $? -ne 0 -o -z "$pids" ] && return 0 [ -z "$SIGTERM_TIMEOUT" ] && return 1 sleep "$SIGTERM_TIMEOUT" kill -KILL $pids >/dev/null 2>&1 pids=`query_pids "$DAEMON" "$PIDFILE"` [ $? -ne 0 -o -z "$pids" ] && return 0 return 1 } ############################################################################### service_init "$@" case "$1" in start) check_key service_start ;; stop) service_stop ;; restart) check_key service_restart ;; try-restart|condrestart) service_try_restart ;; reload) service_reload ;; force-reload) service_force_reload ;; status) service_status ;; *) COMMANDS="start|stop|restart|try-restart|reload|force-reload|status" echo "Usage: `basename \"$0\"` ($COMMANDS)" >&2 exit 2 # invalid or excess argument(s) ;; esac service_fini debian/control0000664000000000000000000000544112262152057010601 0ustar Source: munge Section: admin Priority: extra Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Gennaro Oliva Build-Depends: debhelper (>= 7.0.0), dh-autoreconf, po-debconf, dpkg-dev (>= 1.13.19), zlib1g-dev, libbz2-dev, libgcrypt11-dev Standards-Version: 3.9.4.0 Homepage: http://munge.googlecode.com/ Package: munge Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, adduser, libmunge2 (= ${binary:Version}) Description: authentication service to create and validate credentials MUNGE (MUNGE Uid 'N' Gid Emporium) is an authentication service for creating and validating credentials. 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. . A process creates a credential by requesting one from the local MUNGE service. The encoded credential contains the UID and GID of the originating process. This process sends the credential to another process within the security realm as a means of proving its identity. The receiving process validates the credential with the use of its local MUNGE service. The decoded credential provides the receiving process with a reliable means of ascertaining the UID and GID of the originating process, and this information can be used for accounting or access control decisions. . Clients can create and validate these credentials without the use of root privileges, reserved ports, or platform-specific methods. Package: libmunge-dev Section: libdevel Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, libmunge2 (= ${binary:Version}) Description: authentication service for credential -- development package MUNGE (MUNGE Uid 'N' Gid Emporium) is an authentication service for creating and validating credentials. 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. . This package contains the development files for compiling applications using MUNGE. Package: libmunge2 Section: libs Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: authentication service for credential -- library package MUNGE (MUNGE Uid 'N' Gid Emporium) is an authentication service for creating and validating credentials. 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. . This package contains the shared library required to run applications using MUNGE. debian/munge.logrotate0000664000000000000000000000024012234511344012220 0ustar /var/log/munge/*.log { rotate 12 weekly compress missingok postrotate /usr/sbin/invoke-rc.d --quiet munge force-reload >/dev/null endscript } debian/postrm0000664000000000000000000000212112234511344010432 0ustar #! /bin/sh # postrm script for munge # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `remove' # * `purge' # * `upgrade' # * `failed-upgrade' # * `abort-install' # * `abort-install' # * `abort-upgrade' # * `disappear' overwrit>r> # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in purge) rm -rf /etc/munge/munge.key rm -rf /var/lib/munge rm -rf /var/log/munge if (which deluser 1>/dev/null 2>&1); then deluser --quiet --system munge fi ;; remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; *) echo "postrm called with unknown argument \`$1'" >&2 exit 1 esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/patches/0000775000000000000000000000000012234514776010632 5ustar debian/patches/series0000664000000000000000000000001012234514770012030 0ustar service debian/patches/service0000664000000000000000000000120112234511344012173 0ustar Description: systemd service file modification The systemd service file use After=syslog.target that is unnecessary because syslog is socket-activated and will therefore be started when needed. Author: Gennaro Oliva Origin: maintainer Forwarded: https://code.google.com/p/munge/source/detail?r=d6c235bbc9e6f057ad23733ed4d248ee2c3f4362 Last-Update: <2013-10-24> --- munge-0.5.11.orig/src/etc/munge.service +++ munge-0.5.11/src/etc/munge.service @@ -2,7 +2,6 @@ Description=MUNGE authentication service Documentation=man:munged(8) After=network.target -After=syslog.target After=time-sync.target [Service]