summaryrefslogtreecommitdiff
path: root/packaging/freebsd
diff options
context:
space:
mode:
authorJamie McClelland <jm@mayfirst.org>2008-09-16 10:01:58 -0400
committerJamie McClelland <jm@mayfirst.org>2008-09-16 10:01:58 -0400
commit52301633710bda1bd36fe405dedee386554894b2 (patch)
tree1cf478b7faeace8968527ba87a365d78edf29445 /packaging/freebsd
parent5ae4c1f6706c0de758b2e77e34bab1c2b2162c7d (diff)
parent86d072e02c75f1c0e84d4f5c51c2e034fa84de21 (diff)
Merge commit 'dkg/master'
Diffstat (limited to 'packaging/freebsd')
-rw-r--r--packaging/freebsd/distinfo6
-rwxr-xr-xpackaging/freebsd/pkg-install15
2 files changed, 15 insertions, 6 deletions
diff --git a/packaging/freebsd/distinfo b/packaging/freebsd/distinfo
index 1a3b6c5..b8ad49b 100644
--- a/packaging/freebsd/distinfo
+++ b/packaging/freebsd/distinfo
@@ -1,3 +1,3 @@
-MD5 (monkeysphere_0.16~pre.orig.tar.gz) = 7ec79824cf814c618b39e9bf33ff65b1
-SHA256 (monkeysphere_0.16~pre.orig.tar.gz) = bce97a2b2f90bc85b81af374cc0d32dfb23c6b2c1f1b2145f8a4d4a5bb00645b
-SIZE (monkeysphere_0.16~pre.orig.tar.gz) = 58595
+MD5 (monkeysphere_0.16~pre.orig.tar.gz) = c5c5211440e31d04df1f7904ec859fb9
+SHA256 (monkeysphere_0.16~pre.orig.tar.gz) = 77faf81cc51dff754ecb7122de26818b908e06ab4e0bdbd0320346dde53612cd
+SIZE (monkeysphere_0.16~pre.orig.tar.gz) = 59253
diff --git a/packaging/freebsd/pkg-install b/packaging/freebsd/pkg-install
index b832190..940b796 100755
--- a/packaging/freebsd/pkg-install
+++ b/packaging/freebsd/pkg-install
@@ -22,6 +22,7 @@ POST-INSTALL)
GROUP=${USER}
UID=641
GID=${UID}
+ SHELL=/usr/local/bin/bash
if pw group show "${GROUP}" 2>/dev/null; then
echo "You already have a group \"${GROUP}\", so I will use it."
@@ -34,11 +35,18 @@ POST-INSTALL)
fi
fi
- if pw user show "${USER}" 2>/dev/null; then
- echo "You already have a user \"${USER}\", so I will use it."
+ if oldshell=`pw user show "${USER}" 2>/dev/null`; then
+ 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 /bin/sh -c "monkeysphere authentication user,,,"
+ -d "$VARLIB" -s /usr/local/bin/bash -c "monkeysphere authentication user,,,"
then
echo "Added user \"${USER}\"."
else
@@ -63,5 +71,6 @@ keyring $VARLIB/gnupg-host/pubring.gpg
EOF
chown monkeysphere:monkeysphere "$VARLIB"/gnupg-authentication/gpg.conf
+ monkeysphere-server diagnostics
;;
esac