summaryrefslogtreecommitdiff
path: root/net-mail/mailbox-count
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-mail/mailbox-count
reinit the tree, so we can have metadata
Diffstat (limited to 'net-mail/mailbox-count')
-rw-r--r--net-mail/mailbox-count/Manifest4
-rw-r--r--net-mail/mailbox-count/mailbox-count-0.0.2-r1.ebuild34
-rw-r--r--net-mail/mailbox-count/metadata.xml144
3 files changed, 182 insertions, 0 deletions
diff --git a/net-mail/mailbox-count/Manifest b/net-mail/mailbox-count/Manifest
new file mode 100644
index 000000000000..b390fb79db69
--- /dev/null
+++ b/net-mail/mailbox-count/Manifest
@@ -0,0 +1,4 @@
+DIST mailbox-count-0.0.2.tar.gz 20644 SHA256 6eef4b2300a8a5a53bb44ec8c192324025ebddcdc81c2ba145f812a941dba3fd SHA512 98e39927382719295260c64bd5888244000dbbb3fbd7f6405dcffe78a4fc5f1dea7f8236542e58eb0118bb421c19225a8be0560b92c7688c0701418c7221d569 WHIRLPOOL e8a01030415a3be24926d9b0f6ba812a706d361f065c3b8a7622ab532f31282f4d506e976f1fefdf208039ddc95e1e9b8002e27e01d67ca3648cb85cf7cff7e8
+EBUILD mailbox-count-0.0.2-r1.ebuild 829 SHA256 87c8712f7eb3e845bd5d65974a29f8b1a03f477392bfee4a91dd2a570ecf777c SHA512 d3b85760e190f0d098dd16220a19bcd6de3338a8b0f7b340951045a454efd2c451688146c4409fcc292c33cda4d2411b91f29262dfd08be6590b034665bb3f0e WHIRLPOOL de5e7c569e1b82a49f79cd9e581238ed7a1af063c77c832b526b35632be73a9c450fb6ef7e007d926f61e862169add727f0294d383af9f3a62ab45409abd2664
+MISC ChangeLog 353 SHA256 ac74aef35ec35f20d5e2866cac5768dc6b7ab2af0792be667605520bc0d2b639 SHA512 b161b232e8092ebda6f32cde587bd02beb6c736ad560e15e4fc8073a50767d100fa831b716b55da1a66fc2e4751b2dbcf0e253b4640de29ac2d06cbb4ba52e45 WHIRLPOOL 00e734a3a057eed5fe575fe18952bff7dabbbdace30568f7fbd85d3bd1ce64bdd021ee2ee64d0e2598631a938ac91c2cdde6802e060b9f6ba8b208255ef1340f
+MISC metadata.xml 3362 SHA256 bd7a3f229fdc2a01989936a4113c4498368d0c76e507f671d2fac968e2d5aef1 SHA512 5f2021684ece017c676578ec2508e69cf3f4769cfed9282276e962f98ca9114fa67cb197875f45266cca1d77aced83a5af1d08daa33957f5c7661c75949e164c WHIRLPOOL e31d3cc3fc5a693008cbf9cfe1fb9c2b4a7cab9467be95f3798ee5fd92dcf33e548d4a4233d7586a52df5ae202f5445cca9e9738907dfdc9a481157f11ac41d6
diff --git a/net-mail/mailbox-count/mailbox-count-0.0.2-r1.ebuild b/net-mail/mailbox-count/mailbox-count-0.0.2-r1.ebuild
new file mode 100644
index 000000000000..cd5c14db95a4
--- /dev/null
+++ b/net-mail/mailbox-count/mailbox-count-0.0.2-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+# ebuild generated by hackport 0.4.2
+
+CABAL_FEATURES="bin test-suite"
+inherit haskell-cabal
+
+DESCRIPTION="Count mailboxes in a SQL database"
+HOMEPAGE="http://hackage.haskell.org/package/mailbox-count"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.16.0
+ >=dev-haskell/cmdargs-0.10
+ >=dev-haskell/configurator-0.2
+ >=dev-haskell/hdbc-2.4
+ >=dev-haskell/hdbc-postgresql-2.3
+ >=dev-haskell/hdbc-sqlite3-2.3
+ >=dev-haskell/missingh-1.2
+ >=dev-haskell/tasty-0.8
+ >=dev-haskell/tasty-hunit-0.8
+ >=dev-lang/ghc-7.6.1
+ test? ( >=dev-haskell/doctest-0.9
+ >=dev-haskell/filemanip-0.3.6 )
+"
diff --git a/net-mail/mailbox-count/metadata.xml b/net-mail/mailbox-count/metadata.xml
new file mode 100644
index 000000000000..fb7f98befbe3
--- /dev/null
+++ b/net-mail/mailbox-count/metadata.xml
@@ -0,0 +1,144 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mjo@gentoo.org</email>
+ <name>Michael Orlitzky</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>haskell@gentoo.org</email>
+ <name>Gentoo Haskell</name>
+ </maintainer>
+ <longdescription>
+ /Usage/:
+
+ @
+ mailbox-count [OPTIONS]
+ @
+
+ Mailbox-count produces a simple count of mailboxes that exist
+ per-domain in some SQL database. The default queries are compatible
+ with the schema used by PostfixAdmin &lt;http://postfixadmin.sourceforge.net/&gt;,
+ but it is possible to supply your own queries via the @--summary-query@
+ and @--detail-query@ options.
+
+ 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.
+
+ /Input/:
+
+ None.
+
+ /Output/:
+
+ Either a summary, or detailed report (with @--detail@) of the
+ number of mailboxes per-domain contained in the database.
+
+ /Options/:
+
+ @
+ \--database
+ @
+
+ The name of the database (or file, if SQLite) to which we should
+ connect.
+
+ Default: The name of the current user (Postgres only).
+
+ @
+ \--detail
+ @
+
+ Produce a detailed report listing all mailboxes by domain.
+
+ @
+ \--detail-query
+ @
+
+ SQL query used to produce the detail report. This should return the
+ set of all (domain, username) pairs. See the default value for an
+ example.
+
+ Default: \"SELECT domain,username FROM mailbox ORDER BY domain;\"
+
+ @
+ \--host
+ @
+
+ Hostname where the database is located (Postgres-only).
+
+ Default: None, a UNIX domain socket connection is attempted (Postgres only)
+
+ @
+ \--password
+ @
+
+ Password used to connect to the database (Postgres-only).
+
+ Default: None (assumes passwordless authentication)
+
+ @
+ \--port
+ @
+ Port number used to connect to the database (Postgres-only).
+
+ Default: None, a UNIX domain socket connection is attempted (Postgres only)
+
+ @
+ \--summary-query
+ @
+
+ SQL query used to produce the summary report. This should return
+ (domain, user count) pairs. See the default value for an
+ example.
+
+ Default: \"SELECT domain,COUNT(username) FROM mailbox GROUP BY domain
+ ORDER BY domain;\"
+
+ @
+ \--username
+ @
+
+ Username used to connect to the database (Postgres-only).
+
+ Default: The current user
+
+ /Examples/:
+
+ The default summary report:
+
+ @
+ $ mailbox-count --database=postfixadmin.sqlite3
+ Summary (number of mailboxes per domain)
+ \----------------------------------------
+ example.com: 3
+ example.invalid: 1
+ example.net: 2
+ example.org: 1
+ @
+
+ The more detailed report:
+
+ @
+ $ mailbox-count --detail --database=postfixadmin.sqlite3
+ Detail (list of all mailboxes by domain)
+ \----------------------------------------
+ example.com (3):
+ &amp;#x20; user1
+ &amp;#x20; user3
+ &amp;#x20; user5
+ example.invalid (1):
+ &amp;#x20; user7
+ example.net (2):
+ &amp;#x20; user2
+ &amp;#x20; user4
+ example.org (1):
+ &amp;#x20; user6
+ @
+ </longdescription>
+</pkgmetadata>