1
#!/bin/sh /usr/share/dpatch/dpatch-run
2
## 02-example-cryptdir.dpatch by Mike Markley <mike@markley.org>
4
## DP: Checks for /usr/bin/crypt in cryptdir example (Closes: #67197).
8
diff -Naur expect-5.43.0.orig/example/cryptdir expect-5.43.0/example/cryptdir
9
--- expect-5.43.0.orig/example/cryptdir 2002-02-12 02:00:57.000000000 +0000
10
+++ expect-5.43.0/example/cryptdir 2006-07-10 14:39:35.000000000 +0000
13
# Encrypt or decrypts the current directory or named directory if given.
15
+if {![file exists /usr/bin/crypt]} {
16
+ puts "This example requires the mcrypt package."
20
if {[llength $argv] > 0} {
23
diff -Naur expect-5.43.0.orig/example/decryptdir expect-5.43.0/example/decryptdir
24
--- expect-5.43.0.orig/example/decryptdir 2002-02-12 02:00:57.000000000 +0000
25
+++ expect-5.43.0/example/decryptdir 2006-07-10 14:40:08.000000000 +0000
28
# Encrypt or decrypts the current directory or named directory if given.
30
+if {![file exists /usr/bin/crypt]} {
31
+ puts "This example requires the mcrypt package."
35
if {[llength $argv] > 0} {