MAKE_ARGS= ETCPREFIX=/usr/local MANPREFIX=/usr/local/man ETCSUFFIX=.sample
+# get rid of cruft after the patching:
+post-patch:
+ find . -iname '*.orig' -delete
+
post-install:
@if [ ! -f ${PREFIX}/etc/monkeysphere/monkeysphere.conf ]; then \
${CP} -p ${PREFIX}/etc/monkeysphere/monkeysphere.conf.sample ${PREFIX}/etc/monkeysphere/monkeysphere.conf ; \
-MD5 (monkeysphere_0.16~pre.orig.tar.gz) = f56a757c5191100565f7da4c30fca846
-SHA256 (monkeysphere_0.16~pre.orig.tar.gz) = e520dc44d8b4d9b9506cb7f2c99389b39a997c4372d6b7218237ec7baf2be1bb
-SIZE (monkeysphere_0.16~pre.orig.tar.gz) = 58193
+MD5 (monkeysphere_0.16~pre.orig.tar.gz) = 0dc82d6e81bf469326b6801147d93bbb
+SHA256 (monkeysphere_0.16~pre.orig.tar.gz) = e8147afaae0bef44dd659f0cfc47b12a90b23776b750a58756ca32c2c5605332
+SIZE (monkeysphere_0.16~pre.orig.tar.gz) = 58204
export VARLIB
# UTC date in ISO 8601 format if needed
-diff --git website/getting-started-admin.mdwn website/getting-started-admin.mdwn
+diff --git doc/getting-started-admin.mdwn doc/getting-started-admin.mdwn
index 6c8ad53..67fdda1 100644
---- website/getting-started-admin.mdwn
-+++ website/getting-started-admin.mdwn
+--- doc/getting-started-admin.mdwn
++++ doc/getting-started-admin.mdwn
@@ -30,7 +30,7 @@ To use the newly-generated host key for ssh connections, put the
following line in `/etc/ssh/sshd_config` (be sure to remove references
to any other keys):
case $2 in
POST-DEINSTALL)
-# FIXME: This needs to be filled in! Under what circumstances do we
-# want to actually purge all of /var/monkeysphere?
+ 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)
- echo "Warning: If you will *NOT* use this package anymore, please remove the monkeysphere user manually."
- echo " You may also want to remove the cached authentication data and keyrings in $VARLIB"
+ if pw user show "${USER}" 2>/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
;;
esac
## set up the cache directories:
- install --owner root --group monkeysphere --mode 750 -d "$VARLIB"/gnupg-host
+ install -d -o root -g monkeysphere -m 750 "$VARLIB"/gnupg-host
cat <<EOF > "$VARLIB"/gnupg-host/gpg.conf
list-options show-uid-validity
EOF
- install --owner monkeysphere --group monkeysphere --mode 700 -d "$VARLIB"/gnupg-authentication
+ install -d -o monkeysphere -g monkeysphere -m 700 "$VARLIB"/gnupg-authentication
# install authentication gpg.conf
cat <<EOF > "$VARLIB"/gnupg-authentication/gpg.conf
list-options show-uid-validity