4 %define gpgdirlibdir
%_libdir/%name
6 ### get the first @INC directory that includes the string "linux".
7 ### This may be 'i386-linux', or 'i686-linux-thread-multi', etc.
8 %define gpgdirmoddir `perl
-e '$path
='i386
-linux'
; for (@INC
) { if($_
=~ m|.
*/(.
*linux.
*)|
) {$path
= $
1; last
; }} print $path'`
10 Summary: Gpgdir recursively encrypts
/decrypts directories with GnuPG.
15 Group: Applications
/Cryptography
16 Url
: http
://www.cipherdyne.org
/gpgdir
/
17 Source: %name-%version.tar.gz
18 BuildRoot: %_tmppath/%{name}-buildroot
22 gpgdir is a perl script that uses the CPAN GnuPG
::Interface perl module to encrypt
23 and decrypt directories using a gpg key specified
in ~
/.gpgdirrc. gpgdir recursively
24 descends through a directory
in order to
make sure it encrypts or decrypts every file
25 in a directory and all of its subdirectories. By default the mtime and atime values
26 of all files will be preserved upon encryption and decryption
(this can be disabled
27 with the
--no
-preserve
-times option
). Note that
in --encrypt mode
, gpgdir will
28 delete the original files that it successfully encrypts
(unless the
--no
-delete
29 option is given
). However
, upon startup gpgdir first asks
for a the decryption pass
-
30 word to be sure that a dummy file can successfully be encrypted and decrypted. The
31 initial
test can be disabled with the
--skip
-test option so that a directory can eas
-
32 ily be encrypted without having to also specify a password
(this is consistent with
33 gpg behavior
). Also
, note that gpgdir is careful not encrypt hidden files and direc
-
34 tories. After all
, you probably don't want your ~
/.gnupg directory or ~
/.bashrc file
38 [ "$RPM_BUILD_ROOT"
!= "
/"
] && rm -rf $RPM_BUILD_ROOT
41 for i
in $
(grep
-r "use lib" . | cut
-d
: -f1
); do
42 awk '
/use lib
/ { sub
("
/usr
/lib
/gpgdir"
, "
%_libdir/%name"
) } { print
}' $i
> $i.tmp
47 cd Class
-MethodMaker
&& perl Makefile.PL PREFIX
=%gpgdirlibdir LIB
=%gpgdirlibdir
49 cd GnuPG
-Interface
&& perl Makefile.PL PREFIX
=%gpgdirlibdir LIB
=%gpgdirlibdir
51 cd TermReadKey
&& perl Makefile.PL PREFIX
=%gpgdirlibdir LIB
=%gpgdirlibdir
56 ### build perl modules used by gpgdir
58 make OPTS
="$RPM_OPT_FLAGS"
-C Class
-MethodMaker
59 make OPTS
="$RPM_OPT_FLAGS"
-C GnuPG
-Interface
60 make OPTS
="$RPM_OPT_FLAGS"
-C TermReadKey
65 ### gpgdir module dirs
67 mkdir -p $RPM_BUILD_ROOT
%gpgdirlibdir/%gpgdirmoddir/auto
/Term
/ReadKey
68 mkdir -p $RPM_BUILD_ROOT
%gpgdirlibdir/%gpgdirmoddir/auto
/Class
/MethodMaker
/array
69 mkdir -p $RPM_BUILD_ROOT
%gpgdirlibdir/%gpgdirmoddir/auto
/Class
/MethodMaker
/Engine
70 mkdir -p $RPM_BUILD_ROOT
%gpgdirlibdir/%gpgdirmoddir/auto
/Class
/MethodMaker
/hash
71 mkdir -p $RPM_BUILD_ROOT
%gpgdirlibdir/%gpgdirmoddir/auto
/Class
/MethodMaker
/scalar
72 mkdir -p $RPM_BUILD_ROOT
%gpgdirlibdir/%gpgdirmoddir/Class
/MethodMaker
73 mkdir -p $RPM_BUILD_ROOT
%gpgdirlibdir/%gpgdirmoddir/Term
74 mkdir -p $RPM_BUILD_ROOT
%gpgdirlibdir/auto
/GnuPG
/Interface
75 mkdir -p $RPM_BUILD_ROOT
%gpgdirlibdir/GnuPG
76 mkdir -p $RPM_BUILD_ROOT
%_bindir
77 mkdir -p $RPM_BUILD_ROOT
%{_mandir}/man1
78 mkdir -p $RPM_BUILD_ROOT
%_sbindir
81 install -m
755 gpgdir $RPM_BUILD_ROOT
%_bindir/
82 install -m
644 gpgdir
.1 $RPM_BUILD_ROOT
%{_mandir}/man1
/
84 ### install perl modules used by gpgdir
86 install -m
444 Class
-MethodMaker
/blib
/lib
/auto
/Class
/MethodMaker
/array
/*.
* $RPM_BUILD_ROOT
%gpgdirlibdir/%gpgdirmoddir/auto
/Class
/MethodMaker
/array
/
87 install -m
444 Class
-MethodMaker
/blib
/lib
/auto
/Class
/MethodMaker
/scalar
/*.
* $RPM_BUILD_ROOT
%gpgdirlibdir/%gpgdirmoddir/auto
/Class
/MethodMaker
/scalar
/
88 install -m
444 Class
-MethodMaker
/blib
/lib
/auto
/Class
/MethodMaker
/hash/*.
* $RPM_BUILD_ROOT
%gpgdirlibdir/%gpgdirmoddir/auto
/Class
/MethodMaker
/hash/
89 install -m
444 Class
-MethodMaker
/blib
/lib
/auto
/Class
/MethodMaker
/Engine
/*.
* $RPM_BUILD_ROOT
%gpgdirlibdir/%gpgdirmoddir/auto
/Class
/MethodMaker
/Engine
/
90 install -m
444 Class
-MethodMaker
/blib
/arch
/auto
/Class
/MethodMaker
/MethodMaker.bs $RPM_BUILD_ROOT
%gpgdirlibdir/%gpgdirmoddir/auto
/Class
/MethodMaker
/MethodMaker.bs
91 install -m
444 Class
-MethodMaker
/blib
/arch
/auto
/Class
/MethodMaker
/MethodMaker.so $RPM_BUILD_ROOT
%gpgdirlibdir/%gpgdirmoddir/auto
/Class
/MethodMaker
/MethodMaker.so
92 install -m
444 Class
-MethodMaker
/blib
/lib
/Class
/MethodMaker.pm $RPM_BUILD_ROOT
%gpgdirlibdir/%gpgdirmoddir/Class
/MethodMaker.pm
93 install -m
444 Class
-MethodMaker
/blib
/lib
/Class
/MethodMaker
/*.pm $RPM_BUILD_ROOT
%gpgdirlibdir/%gpgdirmoddir/Class
/MethodMaker
94 install -m
444 GnuPG
-Interface
/blib
/lib
/auto
/GnuPG
/Interface
/*.
* $RPM_BUILD_ROOT
%gpgdirlibdir/auto
/GnuPG
/Interface
/
95 install -m
444 GnuPG
-Interface
/blib
/lib
/GnuPG
/*.pm $RPM_BUILD_ROOT
%gpgdirlibdir/GnuPG
/
96 install -m
444 TermReadKey
/blib
/lib
/Term
/ReadKey.pm $RPM_BUILD_ROOT
%gpgdirlibdir/%gpgdirmoddir/Term
/ReadKey.pm
97 install -m
444 TermReadKey
/blib
/lib
/auto
/Term
/ReadKey
/autosplit.ix $RPM_BUILD_ROOT
%gpgdirlibdir/%gpgdirmoddir/auto
/Term
/ReadKey
/autosplit.ix
98 install -m
444 TermReadKey
/blib
/arch
/auto
/Term
/ReadKey
/ReadKey.bs $RPM_BUILD_ROOT
%gpgdirlibdir/%gpgdirmoddir/auto
/Term
/ReadKey
/ReadKey.bs
99 install -m
444 TermReadKey
/blib
/arch
/auto
/Term
/ReadKey
/ReadKey.so $RPM_BUILD_ROOT
%gpgdirlibdir/%gpgdirmoddir/auto
/Term
/ReadKey
/ReadKey.so
103 [ "$RPM_BUILD_ROOT"
!= "
/"
] && rm -rf $RPM_BUILD_ROOT
112 %defattr(-,root
,root
)
118 * Sat Sep
05 2009 Michael Rash
<mbr@cipherdyne.org
>
119 - gpgdir
-1.9.5 release
121 * Thu Feb
12 2009 Michael Rash
<mbr@cipherdyne.org
>
122 - gpgdir
-1.9.4 release
124 * Wed Nov
11 2008 Michael Rash
<mbr@cipherdyne.org
>
125 - gpgdir
-1.9.3 release
127 * Sun Aug
31 2008 Michael Rash
<mbr@cipherdyne.org
>
128 - Updated to use the deps
/ directory
for all perl module sources.
129 - gpgdir
-1.9.2 release
131 * Sat Jun
07 2008 Michael Rash
<mbr@cipherdyne.org
>
132 - gpgdir
-1.9.1 release
134 * Sat May
31 2008 Michael Rash
<mbr@cipherdyne.org
>
137 * Mon Feb
18 2008 Michael Rash
<mbr@cipherdyne.org
>
140 * Mon Feb
18 2008 Michael Rash
<mbr@cipherdyne.org
>
143 * Sun Feb
17 2008 Michael Rash
<mbr@cipherdyne.org
>
146 * Fri Aug
31 2007 Michael Rash
<mbr@cipherdyne.org
>
149 * Sat Jul
20 2007 Michael Rash
<mbr@cipherdyne.org
>
152 * Sat Jun
09 2007 Michael Rash
<mbr@cipherdyne.org
>
155 * Mon May
28 2007 Michael Rash
<mbr@cipherdyne.org
>
158 * Mon May
21 2007 Michael Rash
<mbr@cipherdyne.org
>
161 * Sun Sep
17 2006 Michael Rash
<mbr@cipherdyne.org
>
162 - gpgdir
-1.0.3 release
(1.0.2 was skipped accidentally
).
164 * Sat Sep
16 2006 Michael Rash
<mbr@cipherdyne.org
>
166 - Removed iptables as a prerequisite.
167 - gpgdir
-1.0.1 release
169 * Wed Sep
13 2006 Michael Rash
<mbr@cipherdyne.org
>
172 * Thu Sep
09 2006 Michael Rash
<mbr@cipherdyne.org
>
173 - Initial RPM release of gpgdir
-0.9.9