--- slrnface-2.1.1.orig/Makefile +++ slrnface-2.1.1/Makefile @@ -7,7 +7,7 @@ # called, so you might want to use lazy loading for Xt if your OS supports it. X_LIBS = -lXt -lX11 # X libs -XF_LIB = -L/usr/local/lib -lcompface # compface library +XF_LIB = -L/usr/X11R6/lib -lcompface # compface library C_FLAGS = -O prefix = /usr/local @@ -25,8 +25,8 @@ install: slrnface mkdir -p $(prefix)/bin - mkdir -p $(prefix)/man/man1 + mkdir -p $(prefix)/share/man/man1 mkdir -p $(prefix)/share/slrn/macros cp slrnface $(prefix)/bin - cp slrnface.1 $(prefix)/man/man1 + cp slrnface.1 $(prefix)/share/man/man1 cp slrnface.sl $(prefix)/share/slrn/macros --- slrnface-2.1.1.orig/slrnface.c +++ slrnface-2.1.1/slrnface.c @@ -37,6 +37,9 @@ #include #include #include +#elif defined(__FreeBSD_kernel__) +#include +#include #else #include #endif @@ -511,6 +514,10 @@ else cmap = DefaultColormap (d, DefaultScreen (d)); + /* allocate the move cursor -- moving this call to later causes segfaults - dunno why + * Fix for http://bugs.debian.org/423479 by Jasen */ + cursor_move = XCreateFontCursor (d, XC_fleur); + /* X Resources stuff. Suggested by a user's demented mind. */ winchild = get_class_hint (winid, &terminal); @@ -634,7 +641,6 @@ /* And the last piece of crap. */ - cursor_move = XCreateFontCursor (d, XC_fleur); XGrabButton (d, Button1, AnyModifier, win, False, ButtonPressMask | ButtonReleaseMask | Button1MotionMask, GrabModeSync, GrabModeAsync, win, cursor_move); --- slrnface-2.1.1.orig/debian/README.Debian +++ slrnface-2.1.1/debian/README.Debian @@ -0,0 +1,13 @@ +slrnface for Debian +------------------- + +You will have to add a line like the following to your .slrnrc file: + +interpret /usr/share/slrn/macros/slrnface.sl + + There is also a patch to enable mutt to use slrnface to display X-Face: +Header data. The reason for why this patch is needed is that there is no way +to remove the faces correctly (there is no message_undisplay_hook or such). You +will have to rebuild mutt yourself. + + -- Gerfried Fuchs Tue, 27 Aug 2002 17:08:02 +0200 --- slrnface-2.1.1.orig/debian/changelog +++ slrnface-2.1.1/debian/changelog @@ -0,0 +1,71 @@ +slrnface (2.1.1-6) unstable; urgency=low + + * Applied patch from Jasen which fixes a segfault (closes: #423479) + * Applied patch from Cyril Brolebois for kFreeBSD build problem + (closes: #414173) + * Bumped Standards-Version to 3.7.2, no changes needed. + + -- Gerfried Fuchs Tue, 29 May 2007 15:36:30 +0200 + +slrnface (2.1.1-5) unstable; urgency=low + + * The "get rid of xlibs-dev" release. Build-Depend on libxt-dev now instead. + * Lowercased synopsis. + * Cleaned copyright file a bit. + * Updated to policy 3.6.2, no changes needed. + + -- Gerfried Fuchs Mon, 04 Jul 2005 12:34:59 +0200 + +slrnface (2.1.1-4) unstable; urgency=low + + * Fumbled with upload... Sorry for the inconvenience. This upload still has + the alternate dependency on tin which closes: #193746 + + -- Gerfried Fuchs Fri, 19 Sep 2003 21:22:25 +0000 + +slrnface (2.1.1-3) unstable; urgency=low + + * Updated to policy 3.6.1, no changes needed. + * Made alternate dependency on tin (closes: #193746) + + -- Gerfried Fuchs Fri, 19 Sep 2003 21:03:16 +0000 + +slrnface (2.1.1-2) unstable; urgency=low + + * Updated to policy 3.5.7, added DEB_BUILD_OPTIONS support. + * Removed Build-Depends on debhelper, was unneeded anyway. + * Dependency on slrn had wrong version number (slrn upstream changelog is + written... will say, strangely). + + -- Gerfried Fuchs Sun, 08 Sep 2002 22:32:49 +0200 + +slrnface (2.1.1-1) unstable; urgency=low + + * New upstream release: slrnface.sl was almost completely rewritten and + incorporated the debian changes/sugguestions. Sweet :) + * I've rewritten README.Debian -- there's no need to pester the mutt + maintainer about incorporating this patch, it's too huge to have a real + chance to have it included. + * Installed doc/{Problems,Protocol} into the doc directory -- might be + useful information. + + -- Gerfried Fuchs Wed, 28 Aug 2002 10:05:40 +0200 + +slrnface (2.0-3) unstable; urgency=low + + * Fixed description wording -- thanks to Meinolf Sander (closes: #142376) + + -- Gerfried Fuchs Thu, 11 Apr 2002 17:22:04 +0200 + +slrnface (2.0-2) unstable; urgency=low + + * Fixed the hide/unhide script which displayed a bogus image if there is no + X-Face header on unhide. + + -- Gerfried Fuchs Fri, 29 Mar 2002 10:32:53 +0100 + +slrnface (2.0-1) unstable; urgency=low + + * Initial Release (closes: #139032). + + -- Gerfried Fuchs Fri, 22 Mar 2002 11:22:12 +0100 --- slrnface-2.1.1.orig/debian/control +++ slrnface-2.1.1/debian/control @@ -0,0 +1,14 @@ +Source: slrnface +Section: news +Priority: optional +Maintainer: Gerfried Fuchs +Build-Depends: libcompfaceg1-dev, libxt-dev +Standards-Version: 3.7.2 + +Package: slrnface +Architecture: any +Depends: ${shlibs:Depends}, slrn (>= 0.9.7.3) | tin (>= 1:1.6.1-1) +Description: shows X-Faces from a newsposting on an X11 terminal emulator + The slrnface helper utility can be used from the slrn and the tin news reader + to show X-Faces in Usenet articles when they are run from an X11 terminal + emulator. It is not intended to be run directly from the command line. --- slrnface-2.1.1.orig/debian/rules +++ slrnface-2.1.1/debian/rules @@ -0,0 +1,92 @@ +#!/usr/bin/make -f +# rules file for slrnface + +PACKAGE = slrnface +TMP = $(CURDIR)/debian/$(PACKAGE) + +C_FLAGS = -g +INSTALL = install +INSTALL_FILE = $(INSTALL) -p -oroot -groot -m644 +INSTALL_PROGRAM = $(INSTALL) -p -oroot -groot -m755 +INSTALL_SCRIPT = $(INSTALL) -p -oroot -groot -m755 +INSTALL_DIR = $(INSTALL) -p -d -oroot -groot -m755 + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + C_FLAGS += -O0 +else + C_FLAGS += -O +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s + STRIP = true +endif + + +clean: + $(checkdir) + $(checkroot) + -rm -rf $(TMP) debian/files debian/substvars build-stamp + -$(MAKE) clean + + +build: build-stamp +build-stamp: + $(checkdir) + $(MAKE) C_FLAGS="$(C_FLAGS)" + touch build-stamp + + +install: build + $(checkdir) + $(checkroot) + -rm -rf $(TMP) debian/substvars + $(INSTALL_DIR) $(TMP) + cd $(TMP) && $(INSTALL_DIR) usr/share/doc/$(PACKAGE)/examples + $(MAKE) install prefix=$(TMP)/usr + -test "$(STRIP)" = "true" && \ + strip --remove-section=.comment --remove-section=.note \ + --strip-unneeded $(TMP)/usr/bin/slrnface + $(INSTALL_FILE) README doc/Problems doc/Protocol \ + $(TMP)/usr/share/doc/$(PACKAGE) + $(INSTALL_FILE) mutt.patch \ + $(TMP)/usr/share/doc/$(PACKAGE)/examples + gzip -9 $(TMP)/usr/share/man/man1/slrnface.1 \ + $(TMP)/usr/share/doc/$(PACKAGE)/Problems \ + $(TMP)/usr/share/doc/$(PACKAGE)/examples/mutt.patch + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + + +# Build architecture-dependent files here. +binary-arch: build install + $(checkdir) + $(checkroot) + $(INSTALL_DIR) $(TMP)/DEBIAN + $(INSTALL_FILE) debian/copyright debian/README.Debian \ + $(TMP)/usr/share/doc/$(PACKAGE) + $(INSTALL_FILE) debian/changelog \ + $(TMP)/usr/share/doc/$(PACKAGE)/changelog.Debian + gzip -9 $(TMP)/usr/share/doc/$(PACKAGE)/changelog.Debian + dpkg-shlibdeps -Tdebian/substvars -dDepends \ + $(TMP)/usr/bin/slrnface + dpkg-gencontrol -ldebian/changelog -isp -Tdebian/substvars -pslrnface \ + -P$(TMP) + cd $(TMP) && find * -type f ! -regex '^DEBIAN/.*' -print0 | \ + xargs -r0 md5sum > DEBIAN/md5sums + dpkg --build $(TMP) .. + + +binary: binary-indep binary-arch + +define checkdir + test -f debian/rules +endef + +define checkroot + test root = "`whoami`" +endef + +.PHONY: clean build install binary-indep binary-arch binary --- slrnface-2.1.1.orig/debian/copyright +++ slrnface-2.1.1/debian/copyright @@ -0,0 +1,28 @@ +This package was debianized by Gerfried Fuchs on +Tue, 19 Mar 2002 10:41:45 +0100. + +It was downloaded from + +Upstream Author: +================ + Drazen Kacar + +Copyright: +========== + + This package 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; version 2 dated June, 1991. + + This package 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 package; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + 02111-1307, USA. + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. --- slrnface-2.1.1.orig/debian/watch +++ slrnface-2.1.1/debian/watch @@ -0,0 +1,3 @@ +version=2 +# Site/Directory Pattern Version Script +http://dave.willfork.com/slrnface/ slrnface-([\d\.]+)\.tar\.gz debian uupdate