Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump version to 1.3.1 Remove dependency on Digest::SHA1
- Loading branch information
1 parent
760ef18
commit 84ee28a
Showing
16 changed files
with
321 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
The Debian Package manitou-mdx | ||
---------------------------- | ||
|
||
This package contains manitou-mdx, the Mail Database eXchanger daemon | ||
for Manitou-Mail. | ||
|
||
-- Daniel Verite <daniel@manitou-mail.org> Sun, 23 Sep 2012 14:01:29 +0200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
manitou-mdx (1.3.1) unstable; urgency=low | ||
|
||
* New upstream release | ||
|
||
-- Daniel Verite <daniel@manitou-mail.org> Thu, 18 Oct 2012 14:09:12 +0200 | ||
|
||
manitou-mdx (1.3.0) unstable; urgency=low | ||
|
||
* Initial Release. | ||
|
||
-- Daniel Verite <daniel@manitou-mail.org> Sun, 23 Sep 2012 14:01:29 +0200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/sh -e | ||
|
||
. /usr/share/debconf/confmodule | ||
|
||
db_input high manitou-mdx/install-db || true | ||
db_go || true | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Source: manitou-mdx | ||
Section: mail | ||
Priority: optional | ||
Maintainer: Daniel Verite <daniel@manitou-mail.org> | ||
HomePage: http://www.manitou-mail.org | ||
Build-Depends: libdbd-pg-perl (>= 1.32), libmailtools-perl (>= 1.62), libmime-perl (>= 5.427), libbit-vector-perl (>= 6.4), libhtml-tree-perl (>=3.23), perl (>=5.10) | ||
|
||
Package: manitou-mdx | ||
Architecture: all | ||
Priority: optional | ||
HomePage: http://www.manitou-mail.org | ||
Depends: libdbd-pg-perl (>= 1.32), libmailtools-perl (>= 1.62), libmime-perl (>= 5.427), libbit-vector-perl (>= 6.4), libhtml-tree-perl (>=3.23), perl (>=5.10), adduser | ||
Description: mail-database exchanger script for the manitou-mail software | ||
Manitou is a database-driven mail user-agent and associated | ||
utilities. It provides a framework and tools for storing and | ||
exposing mail as organized data, accessible by SQL. It is aimed at | ||
handling seamlessly large mailboxes, possibly processed by multiple | ||
concurrent users. In addition to the features commonly found in | ||
traditional mail programs, its user interface comes with some more | ||
unique, database oriented ways to organize, retrieve and process mail | ||
messages. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
This work was packaged for Debian by: | ||
|
||
Daniel Verite <daniel@manitou-mail.org> on Sun, 23 Sep 2012 14:01:29 +0200 | ||
|
||
It was downloaded from: | ||
|
||
<http://www.manitou-mail.org> | ||
|
||
Upstream Author(s): | ||
|
||
<Daniel Verite daniel@manitou-mail.org> | ||
|
||
Copyright: | ||
|
||
<Copyright (C) 2012 Daniel Verite> | ||
|
||
License: | ||
|
||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, version 2. | ||
|
||
This package is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
|
||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
On Debian systems, the complete text of the GNU General | ||
Public License version 2 can be found in `/usr/share/common-licenses/GPL-2'. | ||
|
||
The Debian packaging is: | ||
|
||
Copyright (C) 2012 Daniel Verite <daniel@manitou-mail.org> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
README |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# enable/disable manitou-mdx start at boot | ||
ENABLED=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
#! /bin/sh | ||
# | ||
# manitou-mdx start/stop manitou-mdx daemon | ||
# | ||
### BEGIN INIT INFO | ||
# Provides: manitou-mdx | ||
# Required-Start: $syslog, $local_fs, $remote_fs | ||
# Required-Stop: $syslog, $local_fs, $remote_fs | ||
# Default-Start: 2 3 4 5 | ||
# Default-Stop: 0 1 6 | ||
# Short-Description: Start/stop the manitou-mdx daemon | ||
### END INIT INFO | ||
|
||
set -e | ||
|
||
PATH=/bin:/usr/bin:/usr/sbin:/sbin | ||
DAEMON=/usr/bin/manitou-mdx | ||
NAME=manitou-mdx | ||
DESC="manitou-mdx daemon" | ||
DUID=manitou | ||
PIDFILE=/var/run/manitou/$NAME.pid | ||
SCRIPTNAME=/etc/init.d/$NAME | ||
MANITOU_MDX_OPTS="--fork --pidfile=$PIDFILE $MANITOU_MDX_OPTS" | ||
ENABLED=1 | ||
|
||
# Gracefully exit if the package has been removed. | ||
test -x $DAEMON || exit 0 | ||
|
||
. /lib/lsb/init-functions | ||
|
||
# Read config file if it is present. | ||
if [ -r /etc/default/$NAME ] | ||
then | ||
. /etc/default/$NAME | ||
fi | ||
|
||
if [ "$ENABLED" = "0" ]; then | ||
echo "$DESC: disabled, see /etc/default/$NAME" | ||
exit 0 | ||
fi | ||
|
||
ret=0 | ||
case "$1" in | ||
start) | ||
log_daemon_msg "Starting $DESC" "$NAME" | ||
if start-stop-daemon --start --oknodo --quiet \ | ||
--pidfile $PIDFILE --chuid $DUID --name $NAME \ | ||
--startas $DAEMON -- $MANITOU_MDX_OPTS | ||
then | ||
log_end_msg 0 | ||
else | ||
ret=$? | ||
log_end_msg 1 | ||
fi | ||
;; | ||
stop) | ||
log_daemon_msg "Stopping $DESC" "$NAME" | ||
if start-stop-daemon --stop --oknodo --quiet \ | ||
--pidfile $PIDFILE --name $NAME | ||
then | ||
log_end_msg 0 | ||
else | ||
ret=$? | ||
log_end_msg 1 | ||
fi | ||
rm -f $PIDFILE | ||
;; | ||
reload|force-reload) | ||
log_action_begin_msg "Reloading $DESC configuration..." | ||
if start-stop-daemon --stop --signal 1 --quiet \ | ||
--pidfile $PIDFILE --name $NAME | ||
then | ||
log_action_end_msg 0 | ||
else | ||
ret=$? | ||
log_action_end_msg 1 | ||
fi | ||
;; | ||
restart) | ||
$0 stop | ||
$0 start | ||
ret=$? | ||
;; | ||
status) | ||
status_of_proc -p $PIDFILE $DAEMON "$NAME" 2>/dev/null | ||
ret=$? | ||
;; | ||
|
||
*) | ||
echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload|status}" >&2 | ||
exit 1 | ||
;; | ||
esac | ||
|
||
exit $ret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
'\" t | ||
.\" Title: manitou-spool | ||
.\" Author: [see the "AUTHOR" section] | ||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/> | ||
.\" Date: 09/27/2012 | ||
.\" Manual: \ \& | ||
.\" Source: \ \& | ||
.\" Language: English | ||
.\" | ||
.TH "MANITOU\-SPOOL" "1" "09/27/2012" "\ \&" "\ \&" | ||
.\" ----------------------------------------------------------------- | ||
.\" * Define some portability stuff | ||
.\" ----------------------------------------------------------------- | ||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
.\" http://bugs.debian.org/507673 | ||
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html | ||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
.ie \n(.g .ds Aq \(aq | ||
.el .ds Aq ' | ||
.\" ----------------------------------------------------------------- | ||
.\" * set default formatting | ||
.\" ----------------------------------------------------------------- | ||
.\" disable hyphenation | ||
.nh | ||
.\" disable justification (adjust text to left margin only) | ||
.ad l | ||
.\" ----------------------------------------------------------------- | ||
.\" * MAIN CONTENT STARTS HERE * | ||
.\" ----------------------------------------------------------------- | ||
.SH "NAME" | ||
manitou-spool \- drop a mail file into the spool for manitou\-mdx to import | ||
.SH "SYNOPSIS" | ||
.sp | ||
\fBmanitou\-spool\fR \fIDIRECTORY\fR | ||
.SH "DESCRIPTION" | ||
.sp | ||
manitou\-spool(1) is meant to be called as the right side of a pipe through an entry in \fI/etc/aliases\fR, or a \fIprocmailrc\fR file, or as a mail delivery agent for \fIfetchmail\fR, or any similar tool that passes a mail message to the standard input of a program for final delivery\&. | ||
.sp | ||
It copies the standard input into the spool directory in a new file uniquely named mail\-YYYMMDD\-HHMISS\-pid, where \fIYYYMMDD\-HHMISS\fR is the current date and time and \fIpid\fR is the current process ID\&. | ||
.SH "EXIT STATUS" | ||
.PP | ||
\fB0\fR | ||
.RS 4 | ||
Success | ||
.RE | ||
.PP | ||
\fB1\fR | ||
.RS 4 | ||
Failure | ||
.RE | ||
.SH "AUTHOR" | ||
.sp | ||
Daniel Verite | ||
.SH "RESOURCES" | ||
.sp | ||
Main web site: http://www\&.manitou\-mail\&.org/ | ||
.SH "COPYING" | ||
.sp | ||
Copyright (C) 2012 Daniel Verite\&. Licence: GNU General Public License (GPL) version 2\&. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#!/bin/sh -e | ||
. /usr/share/debconf/confmodule | ||
|
||
case "$1" in | ||
configure) | ||
if ! getent group manitou > /dev/null 2>&1 ; then | ||
addgroup --system --quiet manitou | ||
fi | ||
if ! getent passwd manitou > /dev/null 2>&1 ; then | ||
adduser --quiet --system --ingroup manitou \ | ||
--home /var/lib/manitou/ manitou | ||
fi | ||
chown manitou:manitou /etc/manitou-mdx.conf | ||
chmod 640 /etc/manitou-mdx.conf | ||
if [ ! -d /var/run/manitou ]; then | ||
mkdir -m 750 /var/run/manitou | ||
chown manitou:manitou /var/run/manitou | ||
fi | ||
db_get manitou-mdx/install-db | ||
if [ "$RET" = "true" ]; then | ||
if [ -z "$2" ]; then | ||
su postgres -c 'manitou-mgr --create-database' || ret=$? | ||
# if the db already exists, try to upgrade the schema | ||
if [ $ret -eq 2 ]; then | ||
su manitou -c 'manitou-mgr --upgrade-schema' | ||
elif [ $ret -ne 0 ]; then | ||
# if the db creation failed, don't autostart | ||
sed -i -e 's/^ENABLED=1/ENABLED=0/' /etc/default/manitou-mdx | ||
fi | ||
else | ||
su manitou -c 'manitou-mgr --upgrade-schema' | ||
fi | ||
else | ||
sed -i -e 's/^ENABLED=1/ENABLED=0/' /etc/default/manitou-mdx | ||
fi | ||
;; | ||
|
||
abort-upgrade|abort-remove|abort-deconfigure) | ||
|
||
;; | ||
|
||
*) | ||
echo "postinst called with unknown argument \`$1'" >&2 | ||
exit 1 | ||
;; | ||
esac | ||
|
||
#DEBHELPER# | ||
|
||
db_stop | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/make -f | ||
# -*- makefile -*- | ||
# Sample debian/rules that uses debhelper. | ||
# This file was originally written by Joey Hess and Craig Small. | ||
# As a special exception, when this file is copied by dh-make into a | ||
# dh-make output file, you may use that output file without restriction. | ||
# This special exception was added by Craig Small in version 0.37 of dh-make. | ||
|
||
# Uncomment this to turn on verbose mode. | ||
#export DH_VERBOSE=1 | ||
|
||
%: | ||
dh $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Template: manitou-mdx/install-db | ||
Type: boolean | ||
Description: Install the database? | ||
The database can be created automatically now, or later by running manitou-mgr manually. The automatic creation assumes that PostgreSQL runs on this host and that passwordless local connections are allowed with the peer method (which is the case with a default pg_hba.conf file). | ||
If this step fails, manitou-mdx will still be installed but the database will have to be created manually later and the db_connect_string section updated accordingly in /etc/manitou-mdx.conf | ||
Default: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters