summaryrefslogtreecommitdiff
path: root/mail/mailman/files/patch-Mailman::htmlformat.py
diff options
context:
space:
mode:
authorJohann Visagie <wjv@FreeBSD.org>2002-02-20 09:09:44 +0000
committerJohann Visagie <wjv@FreeBSD.org>2002-02-20 09:09:44 +0000
commit4eb62bb3aff1c500c99590c7b01e995a9e0628dd (patch)
tree8c48a0db3a4e67fd98a8c23b6208cb11b6a4574f /mail/mailman/files/patch-Mailman::htmlformat.py
parentUpdate to Vim 6.0 patchlevel 238 (diff)
- Add missing $CONFIGURE_ARGS. (Whoops again!)
- Actually install the images for Mailman's web front-end to ${PREFIX}/www/icons, instead of depending on the user to do this in a post-installation step. Add a new build-time variable to control the location where these images are intstalled. - Gratuitous change: Change the GNU logo and link in the footer of most pages in Mailman's web front-end to a "Powered by FreeBSD" logo, and a link to the FreeBSD home page. This was accomplished by: - Patching the source to allow for multiple footer bars based on a new configuration variable LOGO_OS. If LOGO_OS is set to 'FreeBSD', the FreeBSD footer will be displayed; otherwise, it reverts to the default GNU footer. - Set LOGO_OS to 'FreeBSD' in the installed Defaults.py (The user may override this in mm_cfg.py) - Bump $PORTREVISION again. (Sorry guys.)
Notes
Notes: svn path=/head/; revision=54964
Diffstat (limited to 'mail/mailman/files/patch-Mailman::htmlformat.py')
-rw-r--r--mail/mailman/files/patch-Mailman::htmlformat.py64
1 files changed, 64 insertions, 0 deletions
diff --git a/mail/mailman/files/patch-Mailman::htmlformat.py b/mail/mailman/files/patch-Mailman::htmlformat.py
new file mode 100644
index 000000000000..887d77441a92
--- /dev/null
+++ b/mail/mailman/files/patch-Mailman::htmlformat.py
@@ -0,0 +1,64 @@
+--- Mailman/htmlformat.py.orig Tue Sep 12 06:02:36 2000
++++ Mailman/htmlformat.py Tue Feb 19 17:12:53 2002
+@@ -503,15 +503,17 @@
+ # These are the URLs which the image logos link to. The Mailman home page now
+ # points at the gnu.org site instead of the www.list.org mirror.
+ #
+-from mm_cfg import MAILMAN_URL
++from mm_cfg import MAILMAN_URL, LOGO_OS
+ PYTHON_URL = 'http://www.python.org/'
+ GNU_URL = 'http://www.gnu.org/'
++FREEBSD_URL = 'http://www.freebsd.org/'
+
+ # The names of the image logo files. These are concatentated onto
+ # mm_cfg.IMAGE_LOGOS (not urljoined).
+ DELIVERED_BY = 'mailman.jpg'
+ PYTHON_POWERED = 'PythonPowered.png'
+ GNU_HEAD = 'gnu-head-tiny.jpg'
++FREEBSD_POWERED = 'powerlogo.gif'
+
+
+ def MailmanLogo():
+@@ -529,18 +531,34 @@
+ gnulink = Link(GNU_URL,
+ '<img src="%s" alt="GNU\'s Not Unix" border=0>' %
+ logo(GNU_HEAD))
+- text = Container(Link(MAILMAN_URL, 'Mailman home page'),
+- '<br>',
+- Link(PYTHON_URL, 'Python home page'),
+- '<br>',
+- Link(GNU_URL, 'GNU home page'),
+- )
+- t.AddRow([mmlink, pylink, gnulink, text])
++ freebsdlink = Link(FREEBSD_URL,
++ '<img src="%s" alt="Powered by FreeBSD" border=0>' %
++ logo(FREEBSD_POWERED))
++ if LOGO_OS == 'FreeBSD':
++ text = Container(Link(MAILMAN_URL, 'Mailman home page'),
++ '<br>',
++ Link(PYTHON_URL, 'Python home page'),
++ '<br>',
++ Link(FREEBSD_URL, 'FreeBSD home page'),
++ )
++ t.AddRow([mmlink, pylink, freebsdlink, text])
++ else:
++ text = Container(Link(MAILMAN_URL, 'Mailman home page'),
++ '<br>',
++ Link(PYTHON_URL, 'Python home page'),
++ '<br>',
++ Link(GNU_URL, 'GNU home page'),
++ )
++ t.AddRow([mmlink, pylink, gnulink, text])
+ else:
+ # use only textual links
+ mmlink = Link(MAILMAN_URL,
+ 'Delivered by Mailman<br>version %s' % mm_cfg.VERSION)
+ pylink = Link(PYTHON_URL, 'Python Powered')
+ gnulink = Link(GNU_URL, "Gnu's Not Unix")
+- t.AddRow([mmlink, pylink, gnulink])
++ freebsdlink = Link(FREEBSD_URL, "Powered by FreeBSD")
++ if LOGO_OS == 'FreeBSD':
++ t.AddRow([mmlink, pylink, freebsdlink])
++ else:
++ t.AddRow([mmlink, pylink, gnulink])
+ return t