source: trunk/debathena/third/nmh/debathenify-nmh @ 25884

Revision 25884, 1.3 KB checked in by jdreed, 11 years ago (diff)
Handle nmh 1.5
  • Property svn:executable set to *
Line 
1#!/bin/sh
2set -e
3
4name=nmh
5daversionappend=debathena3
6
7dir=$(cd "$(dirname "$0")"; pwd)
8
9hack_package () {
10    if [ -s "debian/patches/00list" ] && \
11       [ -n "$(tail -c 1 debian/patches/00list)" ]; then
12        # Upstream sometimes doesn't end in a newline
13        echo >> debian/patches/00list
14    fi
15    if dpkg --compare-versions "$version" lt 1.5~; then
16        cp -a "$dir/nmh-mbx_close.dpatch" debian/patches/
17        echo nmh-mbx_close.dpatch >> debian/patches/00list
18    fi
19    cp -a "$dir/nmh-mhshow_pager.dpatch" debian/patches/
20    echo nmh-mhshow_pager.dpatch >> debian/patches/00list
21    if [ -f "debian/patches/nmh-mbx_close.dpatch" ]; then
22        append_description <<EOF
23 .
24 This package was rebuilt for the Debathena project. It adds a patch
25 to to avoid losing mail if close() fails (as it can in AFS if you run
26 over quota) when writing mailbox files, and a patch to wrap output
27 from MIME mail in a pager.
28EOF
29        add_changelog 'Avoid losing mail if close() fails, as it can in AFS.'
30    else
31        append_description <<EOF
32 .
33 This package was rebuilt for the Debathena project. It adds a patch
34 to wrap output from MIME mail in a pager.
35EOF
36    fi
37    add_changelog 'Wrap as much output from MIME mail in the moreproc as possible.'
38    add_debathena_provides
39    munge_sections
40}
41
42. ../common/debathenificator.sh
Note: See TracBrowser for help on using the repository browser.