OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 18-Feb-2005 16:53:12
Branch: HEAD Handle: 2005021815531100
Added files:
openpkg-src/gale gale.patch gale.spec
Log:
new package: gale 0.99 (Instant Messaging System)
Summary:
Revision Changes Path
1.1 +48 -0 openpkg-src/gale/gale.patch
1.1 +102 -0 openpkg-src/gale/gale.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/gale/gale.patch
============================================================================
$ cvs diff -u -r0 -r1.1 gale.patch
--- /dev/null 2005-02-18 16:45:06 +0100
+++ gale.patch 2005-02-18 16:53:11 +0100
@@ -0,0 +1,48 @@
+Index: libgale/misc_terminal.c
+--- libgale/misc_terminal.c.orig 2000-09-18 04:11:58 +0200
++++ libgale/misc_terminal.c 2005-02-18 15:48:22 +0100
+@@ -19,7 +19,7 @@
+ /* This needs to be here for Solaris. */
+ #include <termios.h>
+
+-extern int wcwidth(wchar_t);
++extern int gale_wcwidth(wchar_t);
+
+ static FILE *out_fp = NULL;
+ static int term_cols = 0;
+@@ -86,7 +86,7 @@
+ const wch *ptr = out.p,*end = out.l + out.p;
+ int count = 0;
+ for (; end != ptr; ++ptr)
+- switch (wcwidth(*ptr)) {
++ switch (gale_wcwidth(*ptr)) {
+ case -1:
+ case 0: break;
+ case 2: ++count;
+Index: libgale/wcwidth.c
+--- libgale/wcwidth.c.orig 2002-12-31 06:08:50 +0100
++++ libgale/wcwidth.c 2005-02-18 15:47:54 +0100
+@@ -32,7 +32,7 @@
+ * in ISO 10646.
+ */
+
+-int wcwidth(wchar_t ucs)
++int gale_wcwidth(wchar_t ucs)
+ {
+ /* sorted list of non-overlapping intervals of non-spacing characters */
+ static const struct interval {
+Index: Makefile.in
+--- Makefile.in.orig 2003-01-12 16:19:09 +0100
++++ Makefile.in 2005-02-18 16:16:22 +0100
+@@ -421,11 +421,6 @@
+ @echo "*** now run $(DESTDIR)$(bindir)/gale-install ... even for an
upgrade ***"
+
+ install-exec-local:
+- $(PROG_LDCONFIG) || true
+- test "x$(DESTDIR)$(bindir)" != "x$(DESTDIR)$(sbindir)" && \
+- ln -s "$(DESTDIR)$(sbindir)/gksign" \
+- "$(DESTDIR)$(bindir)/gksign.tmp.$$$$" && \
+- mv "$(DESTDIR)$(bindir)/gksign.tmp.$$$$" "$(DESTDIR)$(bindir)/gksign"
+
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/gale/gale.spec
============================================================================
$ cvs diff -u -r0 -r1.1 gale.spec
--- /dev/null 2005-02-18 16:45:06 +0100
+++ gale.spec 2005-02-18 16:53:12 +0100
@@ -0,0 +1,102 @@
+##
+## gale.spec -- OpenPKG RPM Specification
+## Copyright (c) 2000-2005 The OpenPKG Project <http://www.openpkg.org/>
+## Copyright (c) 2000-2005 Ralf S. Engelschall <[EMAIL PROTECTED]>
+## Copyright (c) 2000-2005 Cable & Wireless <http://www.cw.com/>
+##
+## Permission to use, copy, modify, and distribute this software for
+## any purpose with or without fee is hereby granted, provided that
+## the above copyright notice and this permission notice appear in all
+## copies.
+##
+## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+## SUCH DAMAGE.
+##
+
+# package version
+%define V_opkg 0.99
+%define V_dist 0.99fruit
+
+# package information
+Name: gale
+Summary: Instant Messaging System
+URL: http://www.gale.org/
+Vendor: Dan
+Packager: The OpenPKG Project
+Distribution: OpenPKG
+Class: EVAL
+Group: Network
+License: GPL
+Version: %{V_opkg}
+Release: 20050218
+
+# list of sources
+Source0: http://download.ofb.net/gale/gale-%{V_dist}.tar.bz2
+Patch0: gale.patch
+
+# build information
+Prefix: %{l_prefix}
+BuildRoot: %{l_buildroot}
+BuildPreReq: OpenPKG, openpkg >= 20040130
+PreReq: OpenPKG, openpkg >= 20040130
+BuildPreReq: gc, openssl, libiconv, liboop
+PreReq: gc, openssl, libiconv, liboop
+AutoReq: no
+AutoReqProv: no
+
+%description
+ Gale is an Instant Messaging system, allowing users to communicate
+ with each other in "near real time".
+
+%track
+ prog gale = {
+ version = %{V_dist}
+ url = http://download.ofb.net/gale/
+ regex = gale-(__VER__)\.tar\.bz2
+ }
+
+%prep
+ %setup -q -n gale-%{V_dist}
+ %patch -p0
+
+%build
+ rm -rf liboop
+ CC="%{l_cc}" \
+ CFLAGS="%{l_cflags -O}" \
+ CPPFLAGS="%{l_cppflags}" \
+ LDFLAGS="%{l_ldflags}" \
+ ./configure \
+ --prefix=%{l_prefix} \
+ --sbindir=%{l_prefix}/bin \
+ --disable-adns \
+ --disable-shared
+ mkdir liboop
+ touch liboop/oop.h
+ touch liboop/oop-adns.h
+ %{l_make} %{l_mflags}
+
+%install
+ rm -rf $RPM_BUILD_ROOT
+ %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
+ strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
+ rm -f $RPM_BUILD_ROOT%{l_prefix}/etc/gale/COPYING
+ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
+ %{l_files_std} \
+ '%config %{l_prefix}/etc/gale/auth/trusted/ROOT' \
+ '%attr(4755,%{l_musr},%{l_mgrp}) %{l_prefix}/bin/gksign'
+
+%files -f files
+
+%clean
+ rm -rf $RPM_BUILD_ROOT
+
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [email protected]