--- xmotd-1.17.3b.orig/logo.c +++ xmotd-1.17.3b/logo.c @@ -29,6 +29,7 @@ /* $Id: logo.c,v 1.2 1997/07/18 01:23:55 elf Exp $ */ #include +#include #include #include --- xmotd-1.17.3b.orig/xmotd.8 +++ xmotd-1.17.3b/xmotd.8 @@ -5,17 +5,17 @@ VT100, etc.) .SH SYNOPSIS -.B /usr/local/bin/xmotd +.B /usr/bin/xmotd [\fBX-toolkit options\fP] [\fBxmotd-options\fP] \fIfile\fP [\fIfile2\fP ... ] -.B /usr/local/bin/xmotd +.B /usr/bin/xmotd [\fBX-toolkit options\fP] [\fBxmotd-options\fP] \fIdirectory\fP .PP or (in text-mode) -.B /usr/local/bin/xmotd +.B /usr/bin/xmotd [\fB-stampfile\fP \fIstamp-file\fP] [\fB-wakeup\fP \fIsleep-period\fP] \fIfile\fP [\fIfile2\fP ...] @@ -64,9 +64,11 @@ file in cases where they can also login via dialup. .LP +This version of .B xmotd -can display messages marked-up with HTML and xpm colour pixmap -logos. Support for these must be configured at compile-time. +cannot display messages marked-up with HTML and xpm colour pixmap +logos, because the code that provided that functionality does not +comply with Debian Free Software Guidelines. .SH OPERATION .LP @@ -151,13 +153,6 @@ NOTES for additional details. .TP 8 -.BI \-browser " web-browser" - -specifies the path and filename of a web-browser to be used when an -URL is clicked (HTML version only). By default, \fIweb-browser\fP is -\fI"/usr/local/bin/netscape"\fP. See NOTES for additional details. - -.TP 8 .BI \-help displays command-line options usage. @@ -297,7 +292,7 @@ .nf - /usr/local/bin/xmotd -always \\ + /usr/bin/xmotd -always \\ -xrm "*title.label: Top 10 Disk Hogs\\n As of midnight\\n " \\ -xrm "*title.foreground: yellow" \\ -xrm "*form.background: red" \\ @@ -458,26 +453,6 @@ indication that the user has logged out because \fBTakeConsole\fP has changed ownership of the console. -The \fB-browser\fP option was originally called \fB-netscape\fP; it -was renamed to be more generic. When initially run, the browser is -invoked as: - -.nf - /usr/local/bin/netscape %s - -.fi - -where \fB%s\fP is replaced by the selected URL. Subsequent URLs will -be displayed in the already running browser using the syntax: - -.nf - /usr/local/bin/netscape -remote openURL(%s) - -.fi - -You may substitute a browser of your choice for \fBnetscape\fP, if it -supports this syntax. - .SH BUGS There are no provisions for displaying embedded images in the HTML --- xmotd-1.17.3b.orig/xmotd.c +++ xmotd-1.17.3b/xmotd.c @@ -28,6 +28,7 @@ * */ #include +#include #include #include #include --- xmotd-1.17.3b.orig/debian/copyright +++ xmotd-1.17.3b/debian/copyright @@ -0,0 +1,32 @@ +This package was debianized by Richard Kaszeta on +Wed, 23 Oct 1996 13:03:02 -0500. + +The original sources can be found at: + http://www.ee.ryerson.ca/~elf/xmotd/ + +xmotd Copyright 1993 (as xbanner), 1994-97, 1999, 2001, 2003 Luis Fernandes + +Permission to use, copy, hack, and distribute this software and its +documentation for any purpose and without fee is hereby granted, +provided that the above copyright notice appear in all copies and +that both that copyright notice and this permission notice appear in +supporting documentation. + +xmotd IS PRESENTED AS IS, WITHOUT ANY IMPLIED OR WRITTEN WARRANTY. + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + +On Debian systems, the full text of the GNU General Public License can be +found in /usr/share/common-licenses/GPL. --- xmotd-1.17.3b.orig/debian/compat +++ xmotd-1.17.3b/debian/compat @@ -0,0 +1 @@ +5 --- xmotd-1.17.3b.orig/debian/xmotd.desktop +++ xmotd-1.17.3b/debian/xmotd.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Encoding=UTF-8 +Name=Message of the day +Name[pl]=Wiadomość dnia +GenericName=Message of the day display +GenericName[pl]=Wyświetla wiadomość dnia +Comment=A message of the day browser for X +Comment[pl]=Przeglądarka wiadomości dnia dla X +Icon=xmotd +Exec=xmotd /etc/motd +Categories=Utility; --- xmotd-1.17.3b.orig/debian/menu +++ xmotd-1.17.3b/debian/menu @@ -0,0 +1,6 @@ +?package(xmotd): needs="x11" \ + section="Applications/Viewers" \ + title="Xmotd" \ + command="xmotd /etc/motd" \ + icon="xmotd.xpm" \ + longtitle="Message of the day viewer for X" --- xmotd-1.17.3b.orig/debian/README.Debian +++ xmotd-1.17.3b/debian/README.Debian @@ -0,0 +1,23 @@ +xmotd for Debian +---------------- + +Xmotd is a message-of-the-day browser for X11 (with additional sysvnews-like +support for dumb terminals). It displays a customizable message box which +displays each message-of-the-day until the user has read them all, and +then creates a stamp-file. + +By calling xmotd from /etc/X11/Xsession, before the user's startup files are +called, xmotd can be used to ensure that users have read the motd's before +initiating the X session. + +Due to the large number of possible installation methods, this package does +not install itself. + + -- Richard Kaszeta , Wed, 23 Oct 1996 13:03:02 -0500 + + +This Debian package actually includes the "xmotd-lite" version of the program. +It only means it does not include the HTML rendering widget library, which does +not comply with Debian Free Software Guidelines. + + -- Marcin Owsiany , Sat, 13 Apr 2002 20:29:32 +0200 --- xmotd-1.17.3b.orig/debian/control +++ xmotd-1.17.3b/debian/control @@ -0,0 +1,16 @@ +Source: xmotd +Section: x11 +Priority: optional +Maintainer: Marcin Owsiany +Standards-Version: 3.7.3 +Build-Depends: debhelper (>= 5), libxaw7-dev, libxmu-dev, libxpm-dev, libxt-dev, xutils-dev +Homepage: http://www.ee.ryerson.ca/~elf/xmotd/ + +Package: xmotd +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: a message of the day browser for X + Xmotd is a message-of-the-day browser for X11 (with additional + sysvnews-like support for dumb terminals). It displays a customizable + message box which displays each message-of-the-day until the user has + read them all, and then creates a stamp-file. --- xmotd-1.17.3b.orig/debian/xmotd.xpm +++ xmotd-1.17.3b/debian/xmotd.xpm @@ -0,0 +1,158 @@ +/* XPM */ +static char *xmotd[] = { +/* columns rows colors chars-per-pixel */ +"32 32 120 2", +" c #00654687008A", +". c #04AB4A4105D7", +"X c #07054C3D08AD", +"o c #09874E870BCF", +"O c #0D114F6910E0", +"+ c #0C1B51980EAF", +"@ c #0F53544F129C", +"# c #1127556D1558", +"$ c #14A6551A1AA5", +"% c #14E959481969", +"& c #18B45C971E08", +"* c #1B755EF0220F", +"= c #1E6D618424FD", +"- c #208A635A278F", +"; c #23FC66552BBE", +": c #26CB68C42F29", +"> c #26EC6225322F", +", c #27926973314A", +"< c #29E863FE360C", +"1 c #2E0F67053B64", +"2 c #2B506CA834A6", +"3 c #2F006FDD3920", +"4 c #300470D53A51", +"5 c #3BFA7AA22146", +"6 c #35BB757C3205", +"7 c #32F6734B3E0C", +"8 c #38CC78313C26", +"9 c #3BFF7AE13831", +"0 c #3E117CA83A32", +"q c #35E9752841D2", +"w c #39AE778046CF", +"e c #3CDE71934ED9", +"r c #3DF07A1E4C75", +"t c #3FDC73A05257", +"y c #418D7F9A393F", +"u c #437B76175701", +"i c #46717F6357B8", +"p c #49B37AAF5F07", +"a c #4BE77C1E61DD", +"s c #440D81600911", +"d c #594993881787", +"f c #441881C337F3", +"g c #4AC287693571", +"h c #511A8CC83318", +"j c #5FDE994B2D8D", +"k c #575E921630BF", +"l c #6A01A03411B4", +"z c #63BC9C932C1C", +"x c #6B67A3142930", +"c c #70C9A7A1273D", +"v c #7A0FAF8123A6", +"b c #7DCAB2B321F1", +"n c #4B2D82535DFE", +"m c #4E92846D627C", +"M c #509185AA6520", +"N c #540784466B4B", +"B c #586A8A886F85", +"V c #5CA98D2A752D", +"C c #60168F4C79AD", +"Z c #634191427DDF", +"A c #73E1A15468D3", +"S c #67E994258408", +"D c #702399408EED", +"F c #706095BF90E2", +"G c #7176967D9249", +"H c #746E9BEB949D", +"J c #78099D2399D8", +"K c #7ABA9CF09E41", +"L c #7D3CA160A044", +"P c #7D98A19AA0BF", +"I c #82F7B7191FF3", +"U c #8B07BDE21D4D", +"Y c #8F0BC1471ADB", +"T c #970DC83C17F7", +"R c #91A3C38D1A50", +"E c #9C7FCCCD15E0", +"W c #A923D7B50FB3", +"Q c #AECDDC7C0DB7", +"! c #A4C5D3D71293", +"~ c #A9AAD8141013", +"^ c #B29ADFA70CB4", +"/ c #B65DE09F1BE2", +"( c #B741E0832288", +") c #B416DCAD2BD5", +"_ c #B2C4DA7F3446", +"` c #B26BD9433B68", +"' c #B638E2A30BEF", +"] c #B98EE5630BEF", +"[ c #B726E262136B", +"{ c #B6ACE0E11BCA", +"} c #AD89D0C15DF5", +"| c #B02AD5FE4674", +" . c #AF7ED4894D57", +".. c #AE79D2CD5438", +"X. c #AD74D0F45BFC", +"o. c #B0DED7044300", +"O. c #AC44CED664B9", +"+. c #ABDECDC26A9B", +"@. c #AA76CB55742B", +"#. c #A9C2C96A7E53", +"$. c #8167A2C5A655", +"%. c #8639A6B6AC48", +"&. c #8D1BAAC8B57C", +"*. c #8F8BAB7DB913", +"=. c #93C3AF3BBE27", +"-. c #93D6B208A281", +";. c #A39CBE5DAC59", +":. c #A25CBBFAB6C0", +">. c #A1BCBAC3BC19", +",. c #9729B187C292", +"<. c #9C15B4C7C6DE", +"1. c #9F95B6ADCDCF", +"2. c #9FD5B681D0E5", +"3. c #A10AB7A1CFAF", +"4. c #A11EB994C148", +"5. c #A22CB87ED117", +"6. c #A863C77B84A1", +"7. c #A769C5A38C96", +"8. c #A63BC361966F", +"9. c #A54BC1959E4B", +/* pixels */ +"V 7 7 7 7 7 7 8 U ' +.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.3.&.r 7 - ", +"=.n 7 7 7 7 7 7 g ! / 8.2.1.1.1.1.1.1.1.1.1.1.1.1.1.1.<.N 7 : X ", +"1.%.r 7 7 7 7 7 7 z Q _ >.3.3.1.1.1.1.1.1.1.1.1.1.1.<.Z 8 2 + X ", +"1.1.H q 7 7 7 7 7 7 v [ X.<.1.1.1.1.1.1.1.1.1.1.1.3.J q 4 @ . p ", +"1.1.<.C 7 7 7 7 7 7 8 R ' 6.2.1.1.3.1.1.1.1.1.1.5.$.w 7 * u <.", +"1.1.5.=.m 7 7 7 7 7 7 g ! ) ;.1.3.<.1.1.1.1.1.1.*.n 7 ; . < &.1.", +"1.1.1.5.%.r 7 7 7 7 7 3 j Q | >.1.1.1.1.1.1.1.<.N 7 , X $ $.5.1.", +"1.1.1.1.1.H 7 7 7 7 7 7 8 b ] O.3.1.1.1.1.3.1.S 7 3 o O F 2.1.1.", +"1.1.1.1.1.<.C 7 7 7 7 7 7 0 T { 8.2.1.1.1.1.J w 4 # . a 5.1.1.1.", +"1.1.1.1.1.5.=.m 7 7 7 7 7 7 h ~ _ ;.2.1.5.&.r 7 & . u <.5.1.1.1.", +"1.1.1.1.1.1.1.%.r 7 7 7 7 7 7 z ^ ..<.5.=.i 7 - . 1 *.1.1.1.1.1.", +"1.1.1.1.1.1.1.5.H q 7 7 7 7 7 8 b [ #.<.V 7 2 X # P 5.1.1.1.1.1.", +"1.1.1.1.1.1.1.1.<.C 7 7 7 7 7 7 y T ( A q 3 @ o F 5.1.1.1.1.1.1.", +"1.1.1.1.1.1.1.1.1.=.m 7 7 7 7 7 7 5 d y 6 # . N 1.1.1.1.1.1.1.1.", +"1.1.1.1.1.1.1.1.1.5.%.r 7 7 7 7 , # , 7 & . t <.1.1.1.1.1.1.1.1.", +"1.1.1.1.1.1.1.1.1.1.1.H q 7 7 3 # ; 7 6 5 l -.5.1.1.1.1.1.1.1.1.", +"1.1.1.1.1.3.1.1.1.1.1.<.m 7 7 % & 7 7 9 Y ] +.3.1.1.1.1.1.1.1.1.", +"1.1.1.1.1.3.<.1.1.1.1.L w 7 * + 4 7 7 7 f E [ 7.1.1.1.1.1.1.1.1.", +"1.1.1.1.1.1.1.1.1.1.&.r 7 ; o , 7 7 7 7 7 k Q ) ;.2.1.1.1.1.1.1.", +"3.1.1.1.1.1.1.1.5.=.m 7 2 o X 3 q 7 7 7 7 7 c ^ | >.1.1.1.1.1.1.", +"1.1.1.1.1.1.1.1.<.Z 7 3 @ < a 7 7 7 7 7 7 8 U ' +.1.1.1.1.1.1.", +"1.1.1.1.1.1.1.3.H q 7 % $ K ,.n 7 7 7 7 7 7 f ! / 8.2.1.1.1.1.", +"1.1.1.1.1.1.1.L w 7 * . O G 1.1.%.r 7 7 7 q 7 7 k ~ ) :.2.1.1.1.", +"1.1.1.1.1.3.*.i 7 ; . . N 1.1.1.1.H q 7 7 7 7 7 8 x ' .<.1.1.1.", +"1.1.3.3.3.<.m 7 , o a <.5.1.1.2.<.V 7 7 7 7 7 7 q I [ @.1.1.1.", +"1.1.<.3.<.Z 7 3 @ 1 =.5.1.1.1.1.5.=.m 7 7 7 7 7 7 0 T { 9.1.1.", +"1.1.1.1.J q 7 % > &.3.1.1.1.1.1.1.1.%.r 7 7 7 7 7 7 h ~ ` >.1.", +"1.1.3.%.r 7 * . $ J 5.1.1.1.1.1.1.1.1.2.H q 7 7 7 7 7 7 x ' X.<.", +"1.1.*.i 7 : X o F 5.1.1.1.1.3.1.1.1.1.1.<.V 8 7 7 7 7 7 8 I { @.", +"1.<.B 7 3 o . N 1.1.1.1.1.1.1.1.1.1.1.1.3.=.m 3 7 7 7 7 4 0 E { ", +"<.S 7 7 @ p 1.3.1.1.1.1.1.1.1.1.1.1.1.1.3.%.r 7 7 7 7 7 7 h ! ", +"J q 7 * > *.1.1.1.1.1.1.1.1.1.1.1.1.1.1.3.3.D q 7 7 7 7 7 7 x " +}; --- xmotd-1.17.3b.orig/debian/rules +++ xmotd-1.17.3b/debian/rules @@ -0,0 +1,73 @@ +#!/usr/bin/make -f +# xmotd package rules file + +#export DH_VERBOSE=1 + +######################################################################### +# +# Pay attention to $(DEB_BUILD_OPTIONS) +# +# By default use -g -Wall -O2 and strip binaries: +CDEBUGFLAGS = -g -Wall +# +# * if noopt is specified, use -O0 instead of -O2 +# +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CDEBUGFLAGS += -O0 +else + CDEBUGFLAGS += -O2 +endif +# +# * if nostrip is specified, don't strip +# (The upstream makefile doesn't strip, so dh_strip takes care of it +# appropriately) +# +######################################################################### + +build: build-stamp +build-stamp: + dh_testdir + xmkmf -a + $(MAKE) CDEBUGFLAGS="$(CDEBUGFLAGS)" + touch build-stamp + +clean: + dh_testdir + dh_testroot + [ ! -f Makefile ] || $(MAKE) clean + dh_clean build-stamp Makefile XMotd.ad + +install: build + dh_testdir + dh_testroot + dh_clean -k + ln -sf XMotd XMotd.ad + $(MAKE) install DESTDIR=debian/xmotd BINDIR=/usr/bin + install -d debian/xmotd/usr/share/applications + install -d debian/xmotd/usr/share/pixmaps + install -m 0644 debian/xmotd.desktop debian/xmotd/usr/share/applications + install -m 0644 debian/xmotd.xpm debian/xmotd/usr/share/pixmaps + rm -f XMotd.ad + +binary-indep: +# We have no architecture-independent packages here. + +binary-arch: build install + dh_testdir + dh_testroot + dh_installdocs README + dh_installman xmotd.8 + dh_installmenu + dh_installchangelogs + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_desktop + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- xmotd-1.17.3b.orig/debian/watch +++ xmotd-1.17.3b/debian/watch @@ -0,0 +1,3 @@ +version=3 +http://www.ee.ryerson.ca/~elf/xmotd/ \ + .*/xmotd-(.*)-lite\.tar\.gz --- xmotd-1.17.3b.orig/debian/changelog +++ xmotd-1.17.3b/debian/changelog @@ -0,0 +1,136 @@ +xmotd (1.17.3b-5) unstable; urgency=high + + * Patched to include necessary headers, which fixes segfault on x86_64, + which in turn closes: Bug#458703 + * Fixed some spelling errors in changelog + * Moved homepage URL from Description: to the new Homepage: field + * Updated the menu entry to conform to the new menu policy + * Bumped standards-version to 3.7.3 + * Updated years in debian/copyright + + -- Marcin Owsiany Sun, 20 Jan 2008 21:09:01 +0000 + +xmotd (1.17.3b-4) unstable; urgency=low + + * Install a resized xmotd.xpm in /usr/share/pixmaps and use it in the menu + and desktop file + * Removed libxaw-dev from alternative in build-deps as it does not exist any + more (left just libxaw7-dev) + * Tweaked the linking rule in Imakefile to get rid of dependencies we don't + really need, as detected by checklib. + * Turned on xpm support in Imakefile + * Added a uscan watch file, which closes: Bug#377336 + + -- Marcin Owsiany Tue, 3 Jul 2007 18:47:45 +0100 + +xmotd (1.17.3b-3) unstable; urgency=low + + * Added a .desktop file, which closes: Bug#368090 + * Quoted "X11" in menu file, added a longtitle to it + * Switched to dh compat level 5 (from deprecated 3) + * Added misc:Depends + * Added a Homepage: line to description + * Bumped Standards-Version to 3.7.2 (no changes needed) + * Updated FSF address in debian/copyright + * Changed dependency on xutils to xutils-dev, since the latter has imake now + + -- Marcin Owsiany Sat, 17 Jun 2006 13:17:30 +0100 + +xmotd (1.17.3b-2) unstable; urgency=low + + * Replaced build-dependency on xlibs-dev with libxmu-dev, libxpm-dev, + libxt-dev, as suggested by xlibs-split script, closes: Bug#346766 + + -- Marcin Owsiany Sat, 14 Jan 2006 14:34:11 +0100 + +xmotd (1.17.3b-1) unstable; urgency=low + + * New upstream version + + -- Marcin Owsiany Thu, 10 Jul 2003 13:19:08 +0200 + +xmotd (1.16.0.1-2) unstable; urgency=low + + * Workaround a bug in sbuild by specifying a non-pure-virtual package in + build depends, closes: Bug#169986 + * Upgrade to standards-version 3.5.8 (pay attention to DEB_BUILD_OPTIONS) + + -- Marcin Owsiany Fri, 24 Jan 2003 20:01:27 +0100 + +xmotd (1.16.0.1-1) unstable; urgency=high + + * Fixed paths in manpage, thanks to Guido Guenther, closes: Bug#142356 + * Removed the HTML widget library, which is non-free. It was a serious + policy violation (2.1.2), thus urgency=high. + The library was disabled in 1.16-1 anyway. + * Since libhtmlw is no longer included, and without it xmotd doesn't use any + browser, bug 142407 no longer makes sense, thus closes: Bug#142407 + * Noted in manpage and README.Debian that HTML widget is no longer included. + + -- Marcin Owsiany Sat, 13 Apr 2002 20:38:48 +0200 + +xmotd (1.16-4) unstable; urgency=low + + * Adopting this package, which closes: Bug#116505 + * Added missing backslashes in manpage, which closes: Bug#111678 + * Added a xmotd.man: target to Imakefile. This probably isn't the + best way to fix the build, but I have more pleasant things to do + than trying to parse several-thousand-lines-long imake template + + -- Marcin Owsiany Sat, 3 Nov 2001 21:31:42 +0100 + +xmotd (1.16-3) unstable; urgency=low + + * Added missing libxaw-dev to Build-Depends. + + -- Josip Rodin Mon, 16 Jul 2001 01:57:53 +0200 + +xmotd (1.16-2) unstable; urgency=low + + * Fixed Maintainer entry (doh!). + * Upped the priority to optional, to match the override file. + + -- Josip Rodin Sun, 15 Jul 2001 02:03:55 +0200 + +xmotd (1.16-1) unstable; urgency=low + + * "New" upstream version. It's not built with HTML support because + that part of the code is non-free. + * Alleviated the assumption that hppa is HP-UX, closes: #105084. + * Added a menu file, closes: #76973. + * Made XMotd.ad a symlink, not a copy of XMotd. + * Install the binary in /usr/bin. + * Added Build-Depends, other polishing. + + -- Josip Rodin Sat, 14 Jul 2001 13:58:51 +0200 + +xmotd (1.14b3-2) unstable; urgency=low + + * Fixed app-defaults location, Closes: #86319 + * Since the maintainer of the package made only one release, in 1996, + and there have been 2 NMU's since, it's orphaned. Set maintainer to + debian-qa. + * Converted to debhelper, since it was the quickest way to + get it to fully comply with current policy. + + -- Joey Hess Fri, 16 Mar 2001 21:56:33 -0800 + +xmotd (1.14b3-1.2) unstable; urgency=low + + * Correct placement of documentation + + -- Martin Mitchell Wed, 22 Oct 1997 13:01:19 +1000 + +xmotd (1.14b3-1.1) unstable; urgency=low + + * Non-maintainer release. + * Libc6 compile. + + -- Martin Mitchell Wed, 22 Oct 1997 13:00:36 +1000 + +xmotd (1.14b3-1) unstable; urgency=low + + * Initial Release. + + -- kaszeta Wed, 23 Oct 1996 13:03:02 -0500 + --- xmotd-1.17.3b.orig/textmode.c +++ xmotd-1.17.3b/textmode.c @@ -30,9 +30,12 @@ */ #include +#include #include #include #include +#include +#include #include #include --- xmotd-1.17.3b.orig/main.c +++ xmotd-1.17.3b/main.c @@ -44,8 +44,10 @@ */ #include +#include #include #include +#include #include #include --- xmotd-1.17.3b.orig/browser.c +++ xmotd-1.17.3b/browser.c @@ -32,6 +32,8 @@ #ifdef HAVE_HTML +#include +#include #include #include "maindefs.h" #include "libhtmlw/HTML.h" --- xmotd-1.17.3b.orig/usage.c +++ xmotd-1.17.3b/usage.c @@ -27,6 +27,7 @@ */ #include +#include #include "maindefs.h" #include "patchlevel.h" --- xmotd-1.17.3b.orig/Imakefile +++ xmotd-1.17.3b/Imakefile @@ -22,7 +22,7 @@ XCOMM If you wish to use colour xpm pixmaps for the icon and have the XCOMM Xpm library installed, then uncomment the following line: -XCOMM #define HAVE_XPM +#define HAVE_XPM XCOMM If you wish to build with Motif, then uncomment the following line: XCOMM #define MOTIF @@ -76,8 +76,10 @@ .PRECIOUS: distrib #ifdef HPArchitecture +#ifndef LinuxArchitecture CCOPTIONS = -Aa -D_HPUX_SOURCE #endif +#endif #ifdef HAVE_XPM XPM_LIB = -lXpm @@ -109,7 +111,7 @@ XCOMM This is what the final link looks like: XCOMM LOCAL_LIBRARIES = -lXm -lXmu -lXt -lXext -lX11 -lsocket -lgen -lucb -L/usr/ucblib -R/usr/ucblib -R/usr/X11R6/lib - LOCAL_LIBRARIES = $(MOTD_LIBRARIES) XawClientLibs + LOCAL_LIBRARIES = $(MOTD_LIBRARIES) $(XAWLIB) $(XMULIBONLY) $(XTOOLONLYLIB) $(XONLYLIB) DEPLIBS = $(HTML_DEP_LIB) ComplexProgramTarget(xmotd) @@ -133,6 +135,9 @@ rm -f xmotd-man.ps; troff -mansun xmotd.8 |dpost >xmotd-mansun.ps +xmotd.man: xmotd.8 + cp $< $@ + XCOMM This target builds the java distribution, Wed Sep 26 19:24:51 2001 java-distrib: tar zcvf jmotd-0.55.tar.gz jmotd/README jmotd/logo.gif jmotd/xmotd* jmotd/HistoryItem*