ソースを参照

Add workaround for mencrypt, create Makefile for contrib directory.

Signed-off-by: Aoi Koizumi <novaburst@kalli.st>
master
コミット
18f95acf25
  1. 34
      contrib/Makefile
  2. 9
      contrib/mencrypt

34
contrib/Makefile

@ -0,0 +1,34 @@
DESTDIR ?=
PREFIX ?= /usr/local
BIN = malternative \
mblow \
mcount \
mencrypt \
menter \
mfillmid \
mgpg \
mhasatt \
mmailto \
mmairix \
mp7m \
mpeek \
mraw \
mrecode \
msearch \
msendmail \
msign \
msuck \
mtwoscan \
mverify \
mvi
MAN = msearch.1
install:
for bin in ${BIN}; do install -m0755 $$bin $(DESTDIR)$(PREFIX)/bin/$$bin; done
for man in ${MAN}; do install -m0644 $$man $(DESTDIR)$(PREFIX)/share/man/man1/$$man; done
uninstall:
for bin in ${BIN}; do rm -f $(DESTDIR)$(PREFIX)/bin/$$bin; done
for man in ${MAN}; do rm -f $(DESTDIR)$(PREFIX)/share/man/man1/$$man; done

9
contrib/mencrypt

@ -19,10 +19,9 @@ fi
TMPD=$(mktemp -d -t mencrypt.XXXXXX)
trap "rm -rf '$TMPD'" INT TERM EXIT
awk '/^$/,0' "$1" |
mmime |
$GPG "$key" --armor --encrypt --sign $FLAGS -o "$TMPD/msg.asc" ||
exit $?
export GPG_TTY=$(tty)
awk '/^$/,0' "$1" | mmime | $GPG "$key" --armor --encrypt --sign $FLAGS -o "$TMPD/msg.asc" || exit $?
unset GPG_TTY
printf 'Version: 1\n' >"$TMPD/version"
@ -30,5 +29,5 @@ printf 'Version: 1\n' >"$TMPD/version"
sed '/^$/q' "$1"
printf '#application/pgp-encrypted %s/version\n' "$TMPD"
printf '#application/octet-stream %s/msg.asc\n' "$TMPD"
} |
} |
mmime -t 'multipart/encrypted; protocol="application/pgp-encrypted"'

読み込み中…
キャンセル
保存