[Pkg-privacy-commits] [monkeysphere] 02/03: assuming that ports/GIDs and ports/UIDs will accept 641 as the monkeysphere user/group ID, this accepts the patch from eitan (PR/150230)

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 13:38:13 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch freebsd
in repository monkeysphere.

commit 69680e2fd3779f729b2bb89212f743243b48e820
Author: Daniel Kahn Gillmor <dkg at fifthhorseman.net>
Date:   Mon Sep 13 15:59:43 2010 -0400

    assuming that ports/GIDs and ports/UIDs will accept 641 as the monkeysphere user/group ID, this accepts the patch from eitan (PR/150230)
---
 freebsd/security/monkeysphere/Makefile      |  3 ++
 freebsd/security/monkeysphere/pkg-deinstall |  6 ---
 freebsd/security/monkeysphere/pkg-install   | 64 -----------------------------
 3 files changed, 3 insertions(+), 70 deletions(-)

diff --git a/freebsd/security/monkeysphere/Makefile b/freebsd/security/monkeysphere/Makefile
index 5f3c386..185dba8 100644
--- a/freebsd/security/monkeysphere/Makefile
+++ b/freebsd/security/monkeysphere/Makefile
@@ -26,6 +26,9 @@ MAN7=		monkeysphere.7
 MAN8=		monkeysphere-host.8 monkeysphere-authentication.8
 MANCOMPRESSED=	yes
 
+USERS=		monkeysphere
+GROUPS=		monkeysphere
+
 MAKE_ARGS=	ETCPREFIX=${PREFIX} MANPREFIX=${PREFIX}/man ETCSUFFIX=.sample
 
 # use proper system paths for FreeBSD instead of debian's:
diff --git a/freebsd/security/monkeysphere/pkg-deinstall b/freebsd/security/monkeysphere/pkg-deinstall
index 3e69eab..6e5ff14 100755
--- a/freebsd/security/monkeysphere/pkg-deinstall
+++ b/freebsd/security/monkeysphere/pkg-deinstall
@@ -13,15 +13,9 @@ VARLIB="/var/monkeysphere"
 
 case $2 in
 POST-DEINSTALL)
-        USER=monkeysphere
 # FIXME: This doesn't do anything!  Under what circumstances do we
 # want to actually automatically purge all of /var/monkeysphere?
 
-# (note: FreeBSD does not seem to want the package-specific user to be
-# purged at package removal)
-	if pw user show "${USER}" 2>/dev/null >/dev/null; then
-	    echo "Warning: If you will *NOT* use this package anymore, please remove the monkeysphere user manually."
-	fi
 	if [ -d "$VARLIB" ] ; then
 	    echo "Warning: You may want to remove monkeysphere's cached authentication data and keyrings in $VARLIB"
 	fi
diff --git a/freebsd/security/monkeysphere/pkg-install b/freebsd/security/monkeysphere/pkg-install
deleted file mode 100755
index 435c69a..0000000
--- a/freebsd/security/monkeysphere/pkg-install
+++ /dev/null
@@ -1,64 +0,0 @@
-#!/bin/sh
-
-# an installation script for monkeysphere (borrowing liberally from
-# postgresql and mysql pkg-install scripts, and from monkeysphere's
-# debian/monkeysphere.postinst)
-
-# Author: Daniel Kahn Gillmor <dkg at fifthhorseman.net>
-# Copyright 2008,2009
-
-# FIXME: is /var/monkeysphere the right place for this stuff on
-# FreeBSD?
-
-# PostgreSQL puts its data in /usr/local/pgsql/data
-
-# MySQL puts its data in /var/db/mysql
-
-VARLIB="/var/monkeysphere"
-ETCDIR="/usr/local/etc/monkeysphere"
-
-case $2 in
-POST-INSTALL)
-        USER=monkeysphere
-        GROUP=${USER}
-        UID=641
-        GID=${UID}
-        SHELL=/usr/local/bin/bash
-
-        if pw group show "${GROUP}" >/dev/null 2>&1; then
-                echo "You already have a group \"${GROUP}\", so I will use it."
-        else
-                if pw groupadd ${GROUP} -g ${GID}; then
-                        echo "Added group \"${GROUP}\"."
-                else
-                        echo "Adding group \"${GROUP}\" failed..."
-                        exit 1
-                fi
-        fi
-
-	if pw user show "${USER}" >/dev/null 2>&1; then
-            oldshell=`pw user show "${USER}" 2>/dev/null | cut -f10 -d:`
-	    if [ x"$oldshell" != x"$SHELL" ]; then
-		echo "You already have a \"${USER}\" user, but its shell is '$oldshell'."
-		echo "This package requires that \"${USER}\"'s shell be '$SHELL'."
-		echo "You should fix this by hand and then re-install the package."
-		echo "   hint: pw usermod '$USER' -s '$SHELL'"
-		exit 1
-	    fi
-            echo "You already have a user \"${USER}\" with the proper shell, so I will use it."
-        else
-                if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \
-                        -d "$VARLIB" -s /usr/local/bin/bash -c "monkeysphere authentication user,,,"
-                then
-                        echo "Added user \"${USER}\"."
-                else
-                        echo "Adding user \"${USER}\" failed..."
-                        exit 1
-                fi
-        fi
-
-	## set up the monkeysphere authentication cache directory:
-
-	monkeysphere-authentication setup
-        ;;
-esac

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/monkeysphere.git



More information about the Pkg-privacy-commits mailing list