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

Revision 25884, 1.3 KB checked in by jdreed, 12 years ago (diff)
Handle nmh 1.5
  • Property svn:executable set to *
RevLine 
[24698]1#!/bin/sh
2set -e
3
4name=nmh
[25884]5daversionappend=debathena3
[24698]6
7dir=$(cd "$(dirname "$0")"; pwd)
8
9hack_package () {
[25884]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
[24782]19    cp -a "$dir/nmh-mhshow_pager.dpatch" debian/patches/
20    echo nmh-mhshow_pager.dpatch >> debian/patches/00list
[25884]21    if [ -f "debian/patches/nmh-mbx_close.dpatch" ]; then
22        append_description <<EOF
[24698]23 .
[24782]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.
[24698]28EOF
[25884]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
[24783]37    add_changelog 'Wrap as much output from MIME mail in the moreproc as possible.'
[24698]38    add_debathena_provides
39    munge_sections
40}
41
42. ../common/debathenificator.sh
Note: See TracBrowser for help on using the repository browser.