From 097c7bf65e0780d4ee7ae3415d59e34b74e1cf3f Mon Sep 17 00:00:00 2001 From: Ivan Rako Date: Tue, 29 Apr 2008 15:48:28 +0200 Subject: [PATCH] ovisnost o alpine, sredjuje alternatives, itd... --- README.CARNet | 7 +++---- debian/changelog | 7 +++++++ debian/control | 24 ++++++++++-------------- debian/postinst | 14 ++++++++++++-- debian/prerm | 2 +- 5 files changed, 33 insertions(+), 21 deletions(-) diff --git a/README.CARNet b/README.CARNet index a63a54b..aca5187 100644 --- a/README.CARNet +++ b/README.CARNet @@ -1,9 +1,8 @@ pine-cn ~~~~~~~ -Ovaj paket donosi dodatnu konfiguraciju za pine paket pripremljen iz Debian -source paketa, i povlaci instalaciju "nano" paketa, editora vrlo slicnog -pico, ali je za razliku od njega dio standardne Debian distribucije. +Ovaj paket povlaci instalaciju paketa "alpine", zamjene za paket "pine" +koji zbog svoje licence nije standardni dio Debian distribucije. -- Zoran Dzelajlija Tue, 21 Oct 2003 21:40:37 +0200 - -- Ivan Rako Tue, 30 Oct 2007 00:53:45 +0100 + -- Ivan Rako Sun, 27 Jan 2008 15:12:40 +0100 diff --git a/debian/changelog b/debian/changelog index 5874f5d..42d944e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +pine-cn (3:1.0) stable; urgency=low + + * Paket povlaci paket alpine, koji je zamjena za pine + * Dodaje u /etc/pine.conf direktivu smtp-server=localhost, ako ne postoji + + -- Ivan Rako Sun, 27 Jan 2008 15:14:04 +0100 + pine-cn (2:4.64-1) stable; urgency=low * Prva verzija za Etch diff --git a/debian/control b/debian/control index bf2ef22..f2485a3 100644 --- a/debian/control +++ b/debian/control @@ -7,19 +7,15 @@ Standards-Version: 3.6.1 Package: pine-cn Architecture: all -Depends: pine (>= 4.64), nano -Provides: mail-reader -Description: An e-mail reader with MIME and IMAP support - Pine is a mail-user-agent that provides features for viewing e-mail. +Depends: alpine (>= 1.0), alpine-pico (>= 1.0) +Conflicts: pine +Provides: mail-reader, alpine-cn +Description: Text-based email client, friendly for novices but powerful + Alpine is an upgrade of the well-known PINE email client. Alpine is currently + in alpha. Its name derives from the use of the Apache License and its ties to + PINE. . - Some form of mail-transport-agent is desirable for obtaining mail. However - fetchmail is sufficient in some cases to deal with the delivery. There are - several mail-transport-agents available, including smail, sendmail and others. + It features a full suite of support for mail protocols like IMAP and SMTP and + security protocols like TLS. It uses curses for its interface. . - Pine needs no mail-transport-agent for sending mail, as it provides SMTP for - this purpose. - . - In addition to mail viewing, Pine provides features for viewing and creating - news group postings. - . - This is a metapackage depending on pine and nano packages. + This is a metapackage depending on alpine and alpine-pine packages. diff --git a/debian/postinst b/debian/postinst index e653912..68fa9f1 100755 --- a/debian/postinst +++ b/debian/postinst @@ -1,6 +1,16 @@ #!/bin/sh -e if [ "$1" = "configure" ]; then - update-alternatives --install /usr/bin/pico pico /usr/bin/nano 50 \ - --slave /usr/share/man/man1/pico.1.gz pico.1.gz /usr/share/man/man1/nano.1.gz + update-alternatives --install /usr/bin/pine pine /usr/bin/alpine 50 \ + --slave /usr/share/man/man1/pine.1.gz pine.1.gz /usr/share/man/man1/alpine.1.gz +fi + +if [ ! -f /etc/pine.conf ]; then + echo "CN: Creating configuration file /etc/pine.conf..." + touch /etc/pine.conf +fi + +if ! grep -q ^smtp-server /etc/pine.conf; then + echo "CN: Adding smtp-server to /etc/pine.conf..." + echo smtp-server=localhost >> /etc/pine.conf fi diff --git a/debian/prerm b/debian/prerm index 13a1b1c..64c0256 100755 --- a/debian/prerm +++ b/debian/prerm @@ -1,5 +1,5 @@ #!/bin/sh -e if [ "$1" != "upgrade" ]; then - update-alternatives --remove pico /usr/bin/nano + update-alternatives --remove pine /usr/bin/alpine fi -- 1.7.10.4