summaryrefslogtreecommitdiff
path: root/src/platform/freebsd.sh
diff options
context:
space:
mode:
authorJonathan Chu <milki@rescomp.berkeley.edu>2012-09-23 09:22:16 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2012-09-23 09:22:16 +0200
commit2e53d994cd2c9e870f0c13be4769fd4ef9510aa8 (patch)
tree10685c61f052fa39f4ba75ee896437659e449409 /src/platform/freebsd.sh
parent454c810c9a480a436ea3e73f49b126b59cef8703 (diff)
downloadpass-2e53d994cd2c9e870f0c13be4769fd4ef9510aa8.tar.gz
pass-2e53d994cd2c9e870f0c13be4769fd4ef9510aa8.tar.bz2
pass-2e53d994cd2c9e870f0c13be4769fd4ef9510aa8.zip
Add FreeBSD platform file
Redefine GNUPG and GETOPT for port paths Redefine tmpdir() for a different ramdisk path
Diffstat (limited to 'src/platform/freebsd.sh')
-rw-r--r--src/platform/freebsd.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/platform/freebsd.sh b/src/platform/freebsd.sh
new file mode 100644
index 0000000..3900f10
--- /dev/null
+++ b/src/platform/freebsd.sh
@@ -0,0 +1,21 @@
+tmpdir() {
+ ramdisk="/var/tmp/password-store.ramdisk"
+ if [[ -d $ramdisk && -d $ramdisk && -d $ramdisk ]]; then
+ tmp_dir="$(TMPDIR=$ramdisk mktemp -t "$template" -d)"
+ else
+ yesno "$(cat <<PROMPT
+A ramdisk does not exist at
+
+ $ramdisk
+
+which means that it may be difficult to entirely erase
+the temporary non-encrypted password file after editing.
+Are you sure you would like to continue?
+PROMPT
+)"
+ tmp_dir="$(mktemp -t "$template" -d)"
+ fi
+}
+
+GPG="gpg2"
+GETOPT="/usr/local/bin/getopt"
to.git/commit/portato/gui/qt/windows.py?h=0.13&id=ad74f5cfcda1e740e007f750f242bea33047920d&follow=1'>added ebuild window for Qt-Frontendnecoro4-2/+229 2007-04-16added preferences for Qt-Frontendnecoro9-279/+710 2007-04-13Improved masking display and made most of the Qt-Frontend worknecoro7-35/+334 2007-04-10Some more functionality for the Qt-Frontend (complete emerge)necoro8-217/+347 2007-04-07Some more functionality for the Qt-Frontendnecoro11-88/+463 2007-04-07Added Qt-Terminalnecoro4-4/+213 2007-04-06First qt draftnecoro6-1/+796 2007-04-04showed masked packages unmasked by the user similar to stable marked testing ↵necoro5-13/+40 packages 2007-03-31changed changelognecoro1-1/+2 2007-03-31Some small changes for etcproposals 1.1necoro1-2/+2 2007-03-31Some small changes for etcproposals 1.1necoro2-3/+3 2007-03-31Some small changes for etcproposals 1.1necoro1-6/+13 2007-03-31Allowed Plugins to have a menunecoro7-201/+315 2007-03-15Added etc-proposals pluginnecoro7-28/+121 2007-03-10Added USE_EXPAND-supportnecoro5-11/+63 2007-03-10Added plugin-data to about-dialognecoro3-197/+264