~ubuntu-branches/ubuntu/trusty/expect/trusty

« back to all changes in this revision

Viewing changes to debian/patches/02-example-cryptdir.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2009-08-03 12:00:29 UTC
  • Revision ID: james.westby@ubuntu.com-20090803120029-mdxnz1e7vyu06ji6
* Adding patch from Adam Tkac <atkac@redhat.com> to compile with
  tcl8.5, but not yet enabling it.
* Updating vcs fields in control file.
* Using patch-stamp rather than patch in rules file.
* Replacing obsolete dh_clean -k with dh_prep.
* Using correct rfc-2822 date formats in changelog.
* Updating package to standards version 3.8.2.
* Adding misc depends.
* Removing shlibs file.
* Using quilt rather than dpatch.
* Adding patch from fedora to fix header comments.
* Adding patch from fedora to fix permissions when accessing logfiles.
* Adding patch from Vitezslav Crhonek <vcrhonek@redhat.com> for tcl
  8.5.6, but not yet enabling it.
* Minimizing rules file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh /usr/share/dpatch/dpatch-run
2
 
## 02-example-cryptdir.dpatch by Mike Markley <mike@markley.org>
3
 
##
4
 
## DP: Checks for /usr/bin/crypt in cryptdir example (Closes: #67197).
5
 
 
6
 
@DPATCH@
7
 
 
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
11
 
@@ -8,6 +8,11 @@
12
 
 #
13
 
 # Encrypt or decrypts the current directory or named directory if given.
14
 
 
15
 
+if {![file exists /usr/bin/crypt]} {
16
 
+    puts "This example requires the mcrypt package."
17
 
+    exit
18
 
+}
19
 
+
20
 
 if {[llength $argv] > 0} {
21
 
     cd $argv
22
 
 }
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
26
 
@@ -8,6 +8,11 @@
27
 
 #
28
 
 # Encrypt or decrypts the current directory or named directory if given.
29
 
 
30
 
+if {![file exists /usr/bin/crypt]} {
31
 
+    puts "This example requires the mcrypt package."
32
 
+    exit
33
 
+}
34
 
+
35
 
 if {[llength $argv] > 0} {
36
 
     cd $argv
37
 
 }