]> gitweb.michael.orlitzky.com - mailbox-count.git/blobdiff - mailbox-count.cabal
mailbox-count.cabal: bump to version 0.0.8
[mailbox-count.git] / mailbox-count.cabal
index f80f2b7e90fbe3fdbefb0ee82ced228b3bb5bc86..5ca9b541af99bd2844c2c882c07c6763ceb1ceed 100644 (file)
@@ -1,36 +1,55 @@
+cabal-version:  3.0
 name:           mailbox-count
-version:        0.1.0
-cabal-version:  >= 1.8
+version:        0.0.8
 author:         Michael Orlitzky
-maintainer:    Michael Orlitzky <michael@orlitzky.com>
-license:        GPL-3
+maintainer:     Michael Orlitzky <michael@orlitzky.com>
+license:        AGPL-3.0-or-later
 license-file:   doc/LICENSE
-homepage:       http://michael.orlitzky.com/code/mailbox-count.php
+homepage:       https://michael.orlitzky.com/code/mailbox-count.xhtml
 bug-reports:    mailto:michael@orlitzky.com
 category:       Mail, Utils
 build-type:     Simple
 extra-source-files:
+  doc/COPYING
+  doc/mailbox-countrc.example
   doc/man1/mailbox-count.1
   test/fixtures/postfixadmin.sqlite3
 synopsis:
-  Count mailboxes in a SQL database.
+  Count mailboxes in a SQL database
 description:
-  Count mailboxes in a SQL database.
+  mailbox-count produces a simple count of mailboxes that exist
+  per-domain in some SQL database. The default queries are compatible
+  with the [PostfixAdmin](https://postfixadmin.sourceforge.net/)
+  schema, but it is possible to supply your own queries.
+
+  The summary report lists each domain, along with the number of
+  mailboxes owned by that domain. The order is determined by the
+  summary query, which lists the domains alphabetically by
+  default. The default detail report shows the same, but also contains
+  a list of each individual mailbox (again in alphabetical order)
+  belonging to the domains.
+
+  A full set of options and examples can be found in the man page.
+
 
 executable mailbox-count
   build-depends:
-    base                        == 4.*,
-    cmdargs                     == 0.10.*,
-    configurator                == 0.2.*,
-    containers                  == 0.5.*,
-    directory                   == 1.2.*,
-    filepath                    == 1.3.*,
-    HDBC                        == 2.4.*,
-    HDBC-postgresql             == 2.3.*,
-    HDBC-sqlite3                == 2.3.*,
-    MissingH                    == 1.2.*,
-    tasty                       == 0.8.*,
-    tasty-hunit                 == 0.8.*
+    base                        >= 4.15 && < 5,
+    cmdargs                     >= 0.10,
+    configurator                >= 0.2,
+    containers                  >= 0.5,
+    directory                   >= 1.2,
+    filepath                    >= 1.3,
+    HDBC                        >= 2.4,
+    HDBC-postgresql             >= 2.3,
+    HDBC-sqlite3                >= 2.3,
+    MissingH                    >= 1.2,
+    tasty                       >= 0.8,
+    tasty-hunit                 >= 0.8
+
+  default-language:
+    Haskell2010
+
   main-is:
     Main.hs
 
@@ -41,87 +60,55 @@ executable mailbox-count
     Configuration
     CommandLine
     OptionalConfiguration
+    Paths_mailbox_count
     Report
 
-  ghc-options:
-    -Wall
-    -fwarn-hi-shadowing
-    -fwarn-missing-signatures
-    -fwarn-name-shadowing
-    -fwarn-orphans
-    -fwarn-type-defaults
-    -fwarn-tabs
-    -fwarn-incomplete-record-updates
-    -fwarn-monomorphism-restriction
-    -fwarn-unused-do-bind
-    -rtsopts
-    -threaded
-    -optc-O3
-    -optc-march=native
-
+  autogen-modules:
+    Paths_mailbox_count
 
 test-suite testsuite
   type: exitcode-stdio-1.0
   hs-source-dirs: src test
+  default-language: Haskell2010
   main-is: TestSuite.hs
+
+  other-modules:
+    Configuration
+    OptionalConfiguration
+    Paths_mailbox_count
+    Report
+
+  autogen-modules:
+    Paths_mailbox_count
+
   build-depends:
-    base                        == 4.*,
-    cmdargs                     == 0.10.*,
-    configurator                == 0.2.*,
-    containers                  == 0.5.*,
-    directory                   == 1.2.*,
-    filepath                    == 1.3.*,
-    HDBC                        == 2.4.*,
-    HDBC-postgresql             == 2.3.*,
-    HDBC-sqlite3                == 2.3.*,
-    MissingH                    == 1.2.*,
-    tasty                       == 0.8.*,
-    tasty-hunit                 == 0.8.*
-
-  -- It's not entirely clear to me why I have to reproduce all of this.
-  ghc-options:
-    -Wall
-    -fwarn-hi-shadowing
-    -fwarn-missing-signatures
-    -fwarn-name-shadowing
-    -fwarn-orphans
-    -fwarn-type-defaults
-    -fwarn-tabs
-    -fwarn-incomplete-record-updates
-    -fwarn-monomorphism-restriction
-    -fwarn-unused-do-bind
-    -O2
+    base                        >= 4.15 && < 5,
+    cmdargs                     >= 0.10,
+    configurator                >= 0.2,
+    containers                  >= 0.5,
+    directory                   >= 1.2,
+    filepath                    >= 1.3,
+    HDBC                        >= 2.4,
+    HDBC-sqlite3                >= 2.3,
+    MissingH                    >= 1.2,
+    tasty                       >= 0.8,
+    tasty-hunit                 >= 0.8
 
 
 test-suite doctests
   type: exitcode-stdio-1.0
   hs-source-dirs: test
+  default-language: Haskell2010
   main-is: Doctests.hs
   build-depends:
-    base      == 4.*,
+    base      >= 4.15 && < 5,
     -- Additional test dependencies.
-    doctest   == 0.9.*,
-    filemanip == 0.3.6.*
-
-  -- It's not entirely clear to me why I have to reproduce all of this.
-  ghc-options:
-    -Wall
-    -fwarn-hi-shadowing
-    -fwarn-missing-signatures
-    -fwarn-name-shadowing
-    -fwarn-orphans
-    -fwarn-type-defaults
-    -fwarn-tabs
-    -fwarn-incomplete-record-updates
-    -fwarn-monomorphism-restriction
-    -fwarn-unused-do-bind
-    -rtsopts
-    -threaded
-    -optc-O3
-    -optc-march=native
+    doctest   >= 0.9,
+    filemanip >= 0.3.6
+
 
 
 source-repository head
   type: git
-  location: http://michael.orlitzky.com/git/mailbox-count.git
+  location: https://gitweb.michael.orlitzky.com/mailbox-count.git
   branch: master