summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Paul Weber <singpolyma@singpolyma.net>2012-04-15 12:35:00 -0500
committerStephen Paul Weber <singpolyma@singpolyma.net>2012-04-15 12:35:00 -0500
commit051e4b171782df1a384c3fc5763c69e35d9f46ba (patch)
tree7b29fa98f830adbff57cf1610f04d6ba624e7f8c
parentb2801f2d422047a39a26e67fb218fe109c96dd9d (diff)
Debianize
-rw-r--r--.gitignore7
-rw-r--r--Makefile7
-rw-r--r--debian/changelog6
-rw-r--r--debian/compat1
-rw-r--r--debian/control124
-rw-r--r--debian/copyright13
-rwxr-xr-xdebian/rules7
7 files changed, 164 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 7a4ad60..2c349d7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,10 @@ sign
6keygen 6keygen
7dist/* 7dist/*
8report.html 8report.html
9dist-ghc/*
10build-*-stamp
11debian/files
12debian/hlibrary.setup
13debian/libghc*
14debian/tmp*
15debian/dh_*
diff --git a/Makefile b/Makefile
index b9bb082..60e88be 100644
--- a/Makefile
+++ b/Makefile
@@ -2,13 +2,15 @@ GHCFLAGS=-Wall -XNoCPP -fno-warn-name-shadowing -XHaskell98
2HLINTFLAGS=-XHaskell98 -XNoCPP -i 'Use camelCase' -i 'Use String' -i 'Use head' -i 'Use string literal' -i 'Use list comprehension' --utf8 2HLINTFLAGS=-XHaskell98 -XNoCPP -i 'Use camelCase' -i 'Use String' -i 'Use head' -i 'Use string literal' -i 'Use list comprehension' --utf8
3VERSION=0.3 3VERSION=0.3
4 4
5.PHONY: all clean doc install 5.PHONY: all clean doc install debian
6 6
7all: sign verify keygen report.html doc dist/build/libHSopenpgp-$(VERSION).a dist/openpgp-$(VERSION).tar.gz 7all: sign verify keygen report.html doc dist/build/libHSopenpgp-$(VERSION).a dist/openpgp-$(VERSION).tar.gz
8 8
9install: dist/build/libHSopenpgp-$(VERSION).a 9install: dist/build/libHSopenpgp-$(VERSION).a
10 cabal install 10 cabal install
11 11
12debian: debian/control
13
12sign: examples/sign.hs Data/*.hs Data/OpenPGP/*.hs 14sign: examples/sign.hs Data/*.hs Data/OpenPGP/*.hs
13 ghc --make $(GHCFLAGS) -o $@ $^ 15 ghc --make $(GHCFLAGS) -o $@ $^
14 16
@@ -40,6 +42,9 @@ clean:
40 $(RM) sign verify 42 $(RM) sign verify
41 $(RM) -r dist 43 $(RM) -r dist
42 44
45debian/control: openpgp.cabal
46 cabal-debian --update-debianization
47
43dist/build/libHSopenpgp-$(VERSION).a: openpgp.cabal dist/setup-config Data/BaseConvert.hs Data/OpenPGP.hs Data/OpenPGP/Crypto.hs 48dist/build/libHSopenpgp-$(VERSION).a: openpgp.cabal dist/setup-config Data/BaseConvert.hs Data/OpenPGP.hs Data/OpenPGP/Crypto.hs
44 cabal build 49 cabal build
45 50
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..31d5882
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
1haskell-openpgp (0.3-1~hackage1) unstable; urgency=low
2
3 * Debianization generated by cabal-debian
4
5 -- Stephen Paul Weber <singpolyma@singpolyma.net> Sun, 15 Apr 2012 12:22:30 -0500
6
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..c793025
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
7 \ No newline at end of file
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..a4b9165
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,124 @@
1Source: haskell-openpgp
2Priority: extra
3Section: haskell
4Maintainer: Stephen Paul Weber <singpolyma@singpolyma.net>
5Build-Depends: debhelper (>= 7.0),
6 haskell-devscripts (>= 0.8),
7 cdbs,
8 ghc,
9 ghc-prof,
10 libghc-crypto-dev,
11 libghc-crypto-prof,
12 libghc-binary-dev,
13 libghc-binary-prof,
14 libghc-bzlib-dev,
15 libghc-bzlib-prof,
16 libghc-utf8-string-dev,
17 libghc-utf8-string-prof,
18 libghc-zlib-dev,
19 libghc-zlib-prof
20Build-Depends-Indep: ghc-doc,
21 libghc-crypto-doc,
22 libghc-binary-doc,
23 libghc-bzlib-doc,
24 libghc-utf8-string-doc,
25 libghc-zlib-doc
26Standards-Version: 3.9.1
27Homepage: http://github.com/singpolyma/OpenPGP-Haskell
28
29Package: libghc-openpgp-dev
30Architecture: any
31Depends: ${shlibs:Depends},
32 ${haskell:Depends},
33 ${misc:Depends}
34Recommends: ${haskell:Recommends}
35Suggests: ${haskell:Suggests}
36Provides: ${haskell:Provides}
37Description: Implementation of the OpenPGP message format
38 This is an OpenPGP library inspired by my work on OpenPGP libraries in
39 Ruby <https://github.com/singpolyma/openpgp>,
40 PHP <http://github.com/singpolyma/openpgp-php>,
41 and Python <https://github.com/singpolyma/OpenPGP-Python>.
42 .
43 It defines types to represent OpenPGP messages as a series of packets
44 and then defines instances of Data.Binary for each to facilitate
45 encoding/decoding.
46 .
47 There is also a wrapper around <http://hackage.haskell.org/package/Crypto>
48 that currently does fingerprint generation, signature generation, and
49 signature verification (for RSA keys only).
50 .
51 It is intended that you use qualified imports with this library. If importing
52 both modules, something like this will do:
53 .
54 > import qualified Data.OpenPGP as OpenPGP
55 > import qualified Data.OpenPGP.Crypto as OpenPGP
56 .
57 Author: Stephen Paul Weber <singpolyma@singpolyma.net>
58 Upstream-Maintainer: Stephen Paul Weber <singpolyma@singpolyma.net>
59 .
60 This package contains the normal library files.
61
62Package: libghc-openpgp-prof
63Architecture: any
64Depends: ${haskell:Depends},
65 ${misc:Depends}
66Recommends: ${haskell:Recommends}
67Suggests: ${haskell:Suggests}
68Provides: ${haskell:Provides}
69Description: Implementation of the OpenPGP message format
70 This is an OpenPGP library inspired by my work on OpenPGP libraries in
71 Ruby <https://github.com/singpolyma/openpgp>,
72 PHP <http://github.com/singpolyma/openpgp-php>,
73 and Python <https://github.com/singpolyma/OpenPGP-Python>.
74 .
75 It defines types to represent OpenPGP messages as a series of packets
76 and then defines instances of Data.Binary for each to facilitate
77 encoding/decoding.
78 .
79 There is also a wrapper around <http://hackage.haskell.org/package/Crypto>
80 that currently does fingerprint generation, signature generation, and
81 signature verification (for RSA keys only).
82 .
83 It is intended that you use qualified imports with this library. If importing
84 both modules, something like this will do:
85 .
86 > import qualified Data.OpenPGP as OpenPGP
87 > import qualified Data.OpenPGP.Crypto as OpenPGP
88 .
89 Author: Stephen Paul Weber <singpolyma@singpolyma.net>
90 Upstream-Maintainer: Stephen Paul Weber <singpolyma@singpolyma.net>
91 .
92 This package contains the libraries compiled with profiling enabled.
93
94Package: libghc-openpgp-doc
95Architecture: all
96Section: doc
97Depends: ${haskell:Depends},
98 ${misc:Depends}
99Recommends: ${haskell:Recommends}
100Suggests: ${haskell:Suggests}
101Description: Implementation of the OpenPGP message format
102 This is an OpenPGP library inspired by my work on OpenPGP libraries in
103 Ruby <https://github.com/singpolyma/openpgp>,
104 PHP <http://github.com/singpolyma/openpgp-php>,
105 and Python <https://github.com/singpolyma/OpenPGP-Python>.
106 .
107 It defines types to represent OpenPGP messages as a series of packets
108 and then defines instances of Data.Binary for each to facilitate
109 encoding/decoding.
110 .
111 There is also a wrapper around <http://hackage.haskell.org/package/Crypto>
112 that currently does fingerprint generation, signature generation, and
113 signature verification (for RSA keys only).
114 .
115 It is intended that you use qualified imports with this library. If importing
116 both modules, something like this will do:
117 .
118 > import qualified Data.OpenPGP as OpenPGP
119 > import qualified Data.OpenPGP.Crypto as OpenPGP
120 .
121 Author: Stephen Paul Weber <singpolyma@singpolyma.net>
122 Upstream-Maintainer: Stephen Paul Weber <singpolyma@singpolyma.net>
123 .
124 This package contains the documentation files.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..55234e7
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,13 @@
1Copyright © 2011, Stephen Paul Weber <singpolyma.net>
2
3Permission to use, copy, modify, and/or distribute this software for any
4purpose with or without fee is hereby granted, provided that the above
5copyright notice and this permission notice appear in all copies.
6
7THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..cc204b3
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,7 @@
1#!/usr/bin/make -f
2include /usr/share/cdbs/1/rules/debhelper.mk
3include /usr/share/cdbs/1/class/hlibrary.mk
4
5# How to install an extra file into the documentation package
6#binary-fixup/libghc-openpgp-doc::
7# echo "Some informative text" > debian/libghc-openpgp-doc/usr/share/doc/libghc-openpgp-doc/AnExtraDocFile