debian/ 0000755 0000000 0000000 00000000000 12146617566 007204 5 ustar debian/alpine.manpages 0000644 0000000 0000000 00000000027 12146256256 012163 0 ustar doc/alpine.1 doc/rp*.1 debian/source/ 0000755 0000000 0000000 00000000000 12146617566 010504 5 ustar debian/source/format 0000644 0000000 0000000 00000000014 12146256256 011705 0 ustar 3.0 (quilt) debian/alpine-pico.prerm 0000644 0000000 0000000 00000000176 12146256256 012452 0 ustar #!/bin/sh set -e if [ "$1" != "upgrade" ]; then update-alternatives --remove pico /usr/bin/pico.alpine fi #DEBHELPER# debian/README.Debian 0000644 0000000 0000000 00000004176 12146256256 011250 0 ustar This file provides notes for users of the Alpine package. == Sending email == By default, alpine doesn't know how to send email. If your system is configured with a working local mail transport agent, you can configure PINE to do SMTP to localhost by pressing these keys: M (Main screen) S (Setup) C (Configuration) Navigate to the smtp-server entry, press enter, and type "localhost". Press enter again. E (Exit setup) Y ("Yes" replaces settings) System administrators may want to set smtp-server in the /etc/pinerc. == Maildir == The package for pine in Debian provides a patch to let it read Maildir-style mail boxes. This package does not yet provide that functionality. I am looking for a moderately good solution for this, as per Debian bug #405762. == Passfile == The washington.edu developers of Alpine and Pine have a feature they implemented but don't like called "passfile". This lets users store their passwords in a file so they don't have to type it each time they run the mail program. This feature is similar to "Save password" features in Thunderbird, Icedove, Evolution, and other mail user agents that are or have been in Debian. In this package, the file ~/.pine-passfile is where Alpine stores its obfuscated password. NOTE: If you save your password here, and someone else can get a copy of this file, then that person has your password! == Bugs == If you have problems with this package and are using Debian, please submit a bug using the Debian bug reporting system. The easiest way to do this is to use the program "reportbug" as packaged in Debian. If you are using a Debian-derived distribution, you may have a modified package. For example, if you are using Ubuntu, and the alpine package version number contains the word "ubuntu" in it, then it is probably modified. Modified packages' bugs should be submitted with the bug tracker of the group that did the modifying. But if you have an unmodified package, even running on a non-Debian system, it should be okay to file bugs against the Debian bug tracker. Information on how to do that is available at http://www.debian.org/Bugs/Reporting - see the "Example" section. debian/alpine-pico.manpages 0000644 0000000 0000000 00000000022 12146256256 013106 0 ustar doc/pico.alpine.1 debian/compat 0000644 0000000 0000000 00000000002 12146256256 010375 0 ustar 5 debian/pilot.install 0000644 0000000 0000000 00000000023 12146256256 011711 0 ustar pico/pilot usr/bin debian/patches/ 0000755 0000000 0000000 00000000000 12146617566 010633 5 ustar debian/patches/10_fix_linking_order.patch 0000644 0000000 0000000 00000001323 12146256256 015642 0 ustar This patch fixes the issue that some libraries are mentioned at the wrong position in the Makefile. Attaching it to the end of all libs fixes the problem. --- a/configure.ac +++ b/configure.ac @@ -638,7 +638,7 @@ else dnl preload c-client default locations/options case $host in - *-linux-gnu) + *-linux-gnu*) if test -f /etc/fedora-release -o -f /etc/redhat-release -o -f /etc/redhat_version ; then alpine_SSLTYPE="nopwd" if test -d /etc/pki/tls ; then --- a/alpine/Makefile.in +++ b/alpine/Makefile.in @@ -202,7 +202,7 @@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ +LIBS = @LIBS@ -lpam -lkrb5 -lcrypto LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN = @LN@ debian/patches/10_config2etc.patch 0000644 0000000 0000000 00000033041 12146256256 014173 0 ustar This patch updates code and doc to move pine.conf from /usr/local/lib to /etc. Some more fixes in the doc according the move /usr/spool/news -> /var/spool/news. --- a/pith/filter.c +++ b/pith/filter.c @@ -7645,7 +7645,7 @@ } else if(!strcmp(s, "PINE_CONF_PATH")){ #if defined(_WINDOWS) || !defined(SYSTEM_PINERC) - p = "/usr/local/lib/pine.conf"; + p = "/etc/pine.conf"; #else p = SYSTEM_PINERC; #endif @@ -7654,7 +7654,7 @@ #ifdef SYSTEM_PINERC_FIXED p = SYSTEM_PINERC_FIXED; #else - p = "/usr/local/lib/pine.conf.fixed"; + p = "/etc/pine.conf.fixed"; #endif } else if(!strcmp(s, "PINE_INFO_PATH")){ --- a/doc/tech-notes.txt +++ b/doc/tech-notes.txt @@ -272,13 +272,13 @@ The selection of which MTA to use depends on the settings of smtp-server, sendmail-path, and compile-time options. The first MTA specified in the following list is used: - 1. _sendmail-path_ in /usr/local/lib/pine.conf.fixed + 1. _sendmail-path_ in /etc/pine.conf.fixed 2. _smtp-server_ in /usr/local/pine.conf.fixed 3. _sendmail-path_ specified on the command line. 4. _smtp-server_ specified on the command line. 5. _sendmail-path_ in the user's .pinerc file. 6. _smtp-server_ in the user's .pinerc file. - 7. _sendmail-path_ in /usr/local/lib/pine.conf + 7. _sendmail-path_ in /etc/pine.conf 8. _smtp-server_ in /usr/local/pine.conf 9. DF_SENDMAIL_PATH defined at compile time. 10. SENDMAIL and SENDMAILFLAGS defined at compile time. @@ -604,7 +604,7 @@ the binaries manually, you may use make install to install them. There are three optional auxiliary files: /usr/local/lib/pine.info, - /usr/local/lib/pine.conf, and /usr/local/lib/pine.conf.fixed. The file + /etc/pine.conf, and /etc/pine.conf.fixed. The file pine.info contains text on how to get further help on the local system. It is part of the help text for the main menu and should probably refer to the local help desk or the system administrator. If this file doesn't exist a @@ -677,9 +677,9 @@ This section lists the various files which _Alpine_ uses which are not email folders. All of these are the default names of files, they may vary based on _Alpine_'s configuration. - /usr/local/lib/pine.conf + /etc/pine.conf Pine's global configuration file. - /usr/local/lib/pine.conf.fixed + /etc/pine.conf.fixed Non-overridable global configuration file. /usr/local/lib/pine.info Local pointer to system administrator. @@ -875,10 +875,10 @@ Configuration: Prints a sample system configuration file to the screen or standard output. To generate an initial system configuration file, execute - alpine -conf > /usr/local/lib/pine.conf + alpine -conf > /etc/pine.conf To generate a system configuration file using settings from an old system configuration file, execute - alpine -P old-pine.conf -conf > /usr/local/lib/pine.conf + alpine -P old-pine.conf -conf > /etc/pine.conf A system configuration file is not required. -convert_sigs _-p pinerc_ Convert signatures contained in signature files into literal @@ -976,7 +976,7 @@ Pinerc may be either a local file or a remote configuration folder. -P _pinerc_ Uses the named file as the system wide configuration file instead of - _/usr/local/lib/pine.conf_ on UNIX, or nothing on _PC-Alpine_. Pinerc + _/etc/pine.conf_ on UNIX, or nothing on _PC-Alpine_. Pinerc may be either a local file or a remote configuration folder. -passfile _passfile_ This tells _Alpine_ what file should be used as the password file. @@ -1183,8 +1183,8 @@ configuration. In most cases, the compiled-in preferences will suit users and administrators just fine. When running _Alpine_ on a UNIX system, the default built-in configuration can be changed by setting variables in the - system configuration files, /usr/local/lib/pine.conf or - /usr/local/lib/pine.conf.fixed. (Actually, these files can be changed using + system configuration files, /etc/pine.conf or + /etc/pine.conf.fixed. (Actually, these files can be changed using the configure arguments --with-system-pinerc=VALUE or --with-system-fixed-pinerc=VALUE.) The location of the pine.conf file can be changed with the -P command line argument. Both _Alpine_ and _PC-Alpine_ @@ -2771,7 +2771,7 @@ _news-spool-directory_ This option tells _Alpine_ where to look for the "news spool" for newsgroups when accessing news locally, rather than via NNTP. The - default path is usually /usr/spool/news. + default path is usually /var/spool/news. _newsrc-path_ This option overrides the default name _Alpine_ uses for your "newsrc" news status and subscription file. If set, _Alpine_ will @@ -3679,7 +3679,7 @@ For Unix _Alpine_ the program _ispell_ works well as an alternate spell checker. If your Unix system has _ispell_ it is probably reasonable to make it the default speller by configuring it as the - default in the system configuration file, /usr/local/lib/pine.conf. + default in the system configuration file, /etc/pine.conf. If this option is not set, then the system's _spell_ command is used. The spell command does not work the same as the alternate speller. It produces a list of misspelled words on its standard output, instead, @@ -4073,12 +4073,12 @@ must exist as a full path or a path relative to your home directory). Now for an example: - url-viewers=_TEST("test -n '${DISPLAY}'")_ /usr/local/bin/netscape, - /usr/local/bin/lynx, C:\BIN\NETSCAPE.BAT + url-viewers=_TEST("test -n '${DISPLAY}'")_ /usr/bin/sensible-browser, + /usr/bin/lynx, C:\BIN\NETSCAPE.BAT This example shows that for the first browser in the list to be used the environment variable DISPLAY must be defined. If it is, then the - file /usr/local/bin/netscape must exist. If either condition is not - met, then the file /usr/local/bin/lynx must exist. If it doesn't, + file /usr/bin/sensible-browser must exist. If either condition is not + met, then the file /usr/bin/lynx must exist. If it doesn't, then the final path and file must exist. Note that the last entry is a DOS/Windows path. This is one way to support _Alpine_ running on more than one architecture with the same configuration file. @@ -10471,9 +10471,9 @@ 4. a command line argument 5. the system-wide _fixed_ configuration file (Unix _Alpine_ only) - The fixed configuration file is normally /usr/local/lib/pine.conf.fixed. + The fixed configuration file is normally /etc/pine.conf.fixed. - The system-wide configuration file is normally /usr/local/lib/pine.conf for + The system-wide configuration file is normally /etc/pine.conf for Unix _Alpine_ and is normally not set for _PC-Alpine_. For _PC-Alpine_, if the environment variable _$PINECONF_ is set, that is used for the system-wide configuration. This location can be set or changed on the @@ -10722,7 +10722,7 @@ * A program that implements the SMTP or ESMTP protocol via stdio. * An entry in /etc/services for the alternate service. * An entry in /etc/inetd.conf for the alternate service. - * An entry in /usr/local/lib/pine.conf, /usr/local/lib/pine.conf.fixed or + * An entry in /etc/pine.conf, /etc/pine.conf.fixed or ~/.pinerc. _________________________________________________________________ @@ -11688,7 +11688,7 @@ The second selection is the standard UNIX print command. The default is _lpr_, but it can be changed on a system basis to anything so desired in - /usr/local/lib/pine.conf. + /etc/pine.conf. The third selection is the user's personal choice for a UNIX print command. The text to be printed is piped into the command. _Enscript_ or _lpr_ with --- a/doc/tech-notes/background.html +++ b/doc/tech-notes/background.html @@ -129,7 +129,7 @@
/usr/local/lib/pine.conf.fixed
+/etc/pine.conf.fixed
/usr/local/pine.conf.fixed
@@ -141,9 +141,9 @@
.pinerc
file.
-/usr/local/lib/pine.conf
+/etc/pine.conf
-/usr/local/pine.conf
+/etc/pine.conf
DF_SENDMAIL_PATH
defined at compile time.
--- a/doc/tech-notes/config-notes.html
+++ b/doc/tech-notes/config-notes.html
@@ -931,10 +931,10 @@
The fixed configuration file is normally
-/usr/local/lib/pine.conf.fixed
.
+/etc/pine.conf.fixed
.
The system-wide configuration file is normally
-/usr/local/lib/pine.conf
for Unix Alpine and is normally not
+/etc/pine.conf
for Unix Alpine and is normally not
set for PC-Alpine.
For PC-Alpine, if the environment variable $PINECONF is set, that
is used for the system-wide configuration.
@@ -1252,8 +1252,8 @@
/etc/inetd.conf
for the alternate service.
-/usr/local/lib/pine.conf
,
-/usr/local/lib/pine.conf.fixed
or ~/.pinerc
.
+/etc/pine.conf
,
+/etc/pine.conf.fixed
or ~/.pinerc
.
--- a/doc/tech-notes/config.html
+++ b/doc/tech-notes/config.html
@@ -7,8 +7,8 @@
configuration. In most cases, the compiled-in preferences will suit users
and administrators just fine. When running Alpine on a UNIX system, the
default built-in configuration can be changed by setting variables in the
-system configuration files, /usr/local/lib/pine.conf
-or /usr/local/lib/pine.conf.fixed
.
+system configuration files, /etc/pine.conf
+or /etc/pine.conf.fixed
.
(Actually, these files can be changed using the configure arguments
--with-system-pinerc=VALUE or --with-system-fixed-pinerc=VALUE.)
The location of the pine.conf file can be changed with the -P command line
@@ -2326,7 +2326,7 @@
/usr/spool/news
.
+path is usually /var/spool/news
.
/usr/local/lib/pine.conf
.
+system configuration file, /etc/pine.conf
.
If this option is not set, then the system's spell command is used.
--- a/doc/tech-notes/installation.html
+++ b/doc/tech-notes/installation.html
@@ -227,8 +227,8 @@
There are three optional auxiliary files:
/usr/local/lib/pine.info
,
-/usr/local/lib/pine.conf
, and
-/usr/local/lib/pine.conf.fixed
. The file
+/etc/pine.conf
, and
+/etc/pine.conf.fixed
. The file
pine.info
contains text on how to get further help on the
local system. It is part of the help text for the
main menu and should probably refer to the local help desk or the system
@@ -318,11 +318,11 @@
/usr/local/lib/pine.conf
+Reading of /etc/pine.conf
/usr/local/lib/pine.conf.fixed
+Fixing variables and features in /etc/pine.conf.fixed
- alpine -conf > /usr/local/lib/pine.conf
+ alpine -conf > /etc/pine.conf
@@ -95,7 +95,7 @@ system configuration file, execute
- alpine -P old-pine.conf -conf > /usr/local/lib/pine.conf
+ alpine -P old-pine.conf -conf > /etc/pine.conf
A system configuration file is not required. @@ -258,7 +258,7 @@
--- a/doc/tech-notes/low-level.html
+++ b/doc/tech-notes/low-level.html
@@ -787,7 +787,7 @@
The second selection is the standard UNIX print command. The default is
lpr, but it can be changed on a system basis to anything so
-desired in /usr/local/lib/pine.conf
.
+desired in /etc/pine.conf
.
The third selection is
the user's personal choice for a UNIX print command. The text to be
debian/patches/20_barry_defreese_hurd_build_fix.patch 0000644 0000000 0000000 00000000375 12146256256 020205 0 ustar --- a/configure
+++ b/configure
@@ -18733,7 +18733,7 @@
case "$host" in
- *-linux-gnu*|*-k*bsd*-gnu*)
+ *-linux-gnu*|*-k*bsd*-gnu*|*-*-gnu*)
alpine_path_delim="/"
alpine_mode_readonly="(0600)"
if test -f /etc/fedora-release ; then
debian/patches/10_alpine_1.10_spooldir.patch 0000644 0000000 0000000 00000006362 12146256256 016000 0 ustar --- a/imap/docs/imaprc.txt
+++ b/imap/docs/imaprc.txt
@@ -168,8 +168,8 @@
Sets the directory in which the user's data can be found. A user's
folders can be found in a subdirectory of the black box directory
named with the user's username. For example, if the blackbox
- directory is /usr/spool/folders/, user jones' data can be found
- in /usr/spool/folders/jones/. The user's black-box directory is
+ directory is /var/spool/folders/, user jones' data can be found
+ in /var/spool/folders/jones/. The user's black-box directory is
the location of folders, .mminit, .imaprc, .newsrc, and all other
files used by c-client; internally, it sets c-client's idea of the
user's ``home directory'', overriding /etc/passwd.
@@ -411,14 +411,14 @@
If non-zero, a warning message is given if an attempt to create a
lock file fails. Otherwise, EACCES is treated as a "silent failure",
and it proceeds without trying to use the lock file. This is for
- the benefit of users on systems with paranoid /usr/spool/mail
- protections which don't let users create /usr/spool/mail/$(USER).lock
+ the benefit of users on systems with paranoid /var/spool/mail
+ protections which don't let users create /var/spool/mail/$(USER).lock
files; these unfortunate users would be harassed with a flood of
error messages otherwise. The problem is that on SVR4, if EACCES
remains disabled and fcntl() locking is also disabled, then there is
no locking at all which is doubleplus-ungood.
- If the site is paranoid on /usr/spool/mail protections AND if there
+ If the site is paranoid on /var/spool/mail protections AND if there
is no fcntl() locking (SVR4) or usable flock() locking (e.g. NFS),
then there is no way to win. Find a different system to use.
--- a/imap/docs/locking.txt
+++ b/imap/docs/locking.txt
@@ -255,7 +255,7 @@
timeout for this lock, after which it is broken on the presumption
that it is a stale lock. If it can not create the .lock file due to
an EACCES (protection failure) error, it once silently proceeded
-without this lock; this was for systems which protect /usr/spool/mail
+without this lock; this was for systems which protect /var/spool/mail
from unprivileged processes creating files. Today, c-client reports
an error unless it is built otherwise. The purpose of this lock is to
prevent against unfavorable interactions with mail delivery.
@@ -278,7 +278,7 @@
Mail delivery daemons use lock (1), (2), or both. Lock (1) works
over NFS; lock (2) is the only one that works on sites that protect
-/usr/spool/mail against unprivileged file creation. Prudent mail
+/var/spool/mail against unprivileged file creation. Prudent mail
delivery daemons use both forms of locking, and of course so does
c-client.
@@ -335,7 +335,7 @@
the mail file is NFS-mounted.
What this means is that there is *no* locking protection at all
-in the case of a client using an NFS-mounted /usr/spool/mail that does
+in the case of a client using an NFS-mounted /var/spool/mail that does
not permit file creation by unprivileged programs. It is impossible,
under these circumstances, for an unprivileged program to do anything
about it. Worse, if EACCES errors on .lock file creation are no-op'ed
debian/patches/60_fix_string_error.patch 0000644 0000000 0000000 00000003320 12146256256 015537 0 ustar Index: alpine-2.02/imap/src/osdep/unix/flocklnx.c
===================================================================
--- alpine-2.02.orig/imap/src/osdep/unix/flocklnx.c 2010-10-02 04:37:57.000000000 -0400
+++ alpine-2.02/imap/src/osdep/unix/flocklnx.c 2011-11-11 08:58:18.297338885 -0500
@@ -57,7 +57,7 @@
case ENOLCK: /* lock table is full */
sprintf (tmp,"File locking failure: %s",strerror (errno));
mm_log (tmp,WARN); /* give the user a warning of what happened */
- if (!logged++) syslog (LOG_ERR,tmp);
+ if (!logged++) syslog (LOG_ERR, "%s", tmp);
/* return failure if non-blocking lock */
if (op & LOCK_NB) return -1;
sleep (5); /* slow down in case it loops */
Index: alpine-2.02/alpine/mailcmd.c
===================================================================
--- alpine-2.02.orig/alpine/mailcmd.c 2010-10-02 04:37:57.000000000 -0400
+++ alpine-2.02/alpine/mailcmd.c 2011-11-11 09:02:29.357346728 -0500
@@ -7879,7 +7879,7 @@
case 13 : /* Match my addresses */
me++;
- snprintf(sstring, sizeof(sstring), not ? _(dont_match_me) : _(match_me));
+ snprintf(sstring, sizeof(sstring), "%s", not ? _(dont_match_me) : _(match_me));
continue;
case 14 : /* Subject: default */
Index: alpine-2.02/pith/ldap.c
===================================================================
--- alpine-2.02.orig/pith/ldap.c 2010-10-02 04:37:57.000000000 -0400
+++ alpine-2.02/pith/ldap.c 2011-11-11 09:02:03.401345919 -0500
@@ -777,7 +777,7 @@
*/
switch(args){
case 0:
- snprintf(filter, sizeof(filter), filt_format);
+ snprintf(filter, sizeof(filter), "%s", filt_format);
break;
case 1:
snprintf(filter, sizeof(filter), filt_format, scp);
debian/patches/80_remove_phone_home.patch 0000644 0000000 0000000 00000030154 12146277105 015653 0 ustar From 01674610679e4af4a6c6d890659573133609cec5 Mon Sep 17 00:00:00 2001
From: Geoffrey Thomas
-
-SPECIAL REQUEST:
-This software is made available as a public service of the
-University of Washington in Seattle. We are no longer actively developing
-the software, but it is still helpful to us to have an idea of how many
-people are using Alpine. Are you willing to be counted as an Alpine user? Pressing
-Return
-will send an anonymous (meaning, your real email address will not be revealed)
-message to the Alpine team at the University of Washington for purposes of tallying.
-
-
-
To Exit this screen and continue your Alpine session press "Return".
We hope you will explore Alpine's many capabilities. From the MAIN MENU,
select Setup/Config to see many of the options available to you. Also note
that all screens have context-sensitive help text available.