diff options
author | 2010-01-31 06:21:08 +0000 | |
---|---|---|
committer | 2010-01-31 06:21:08 +0000 | |
commit | 60a912f8a20dd147227cb6fe2e4373df67e1ea59 (patch) | |
tree | d78a1b39a9bca1ab6d06462162a5d93e891e2afd /net-dialup/xc | |
parent | Revision bump. 5.0.90-r1 includes the Percona 5.0.87-b20 patchset directly. P... (diff) | |
download | historical-60a912f8a20dd147227cb6fe2e4373df67e1ea59.tar.gz historical-60a912f8a20dd147227cb6fe2e4373df67e1ea59.tar.bz2 historical-60a912f8a20dd147227cb6fe2e4373df67e1ea59.zip |
Fix multilib handling, more implicit decls, and improve crc output.
Package-Manager: portage-2.2_rc61/cvs/Linux x86_64
Diffstat (limited to 'net-dialup/xc')
-rw-r--r-- | net-dialup/xc/ChangeLog | 11 | ||||
-rw-r--r-- | net-dialup/xc/Manifest | 19 | ||||
-rw-r--r-- | net-dialup/xc/files/xc-4.3.2-add-115200.patch | 8 | ||||
-rw-r--r-- | net-dialup/xc/files/xc-4.3.2-gentoo.patch | 70 | ||||
-rw-r--r-- | net-dialup/xc/files/xc-4.3.2-implicit-decl.patch | 13 | ||||
-rw-r--r-- | net-dialup/xc/xc-4.3.2-r2.ebuild | 41 |
6 files changed, 110 insertions, 52 deletions
diff --git a/net-dialup/xc/ChangeLog b/net-dialup/xc/ChangeLog index 2f92864bc826..7aac519fc503 100644 --- a/net-dialup/xc/ChangeLog +++ b/net-dialup/xc/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-dialup/xc -# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-dialup/xc/ChangeLog,v 1.21 2008/10/18 09:15:32 mrness Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/xc/ChangeLog,v 1.22 2010/01/31 06:21:08 vapier Exp $ + +*xc-4.3.2-r2 (31 Jan 2010) + + 31 Jan 2010; Mike Frysinger <vapier@gentoo.org> +xc-4.3.2-r2.ebuild, + files/xc-4.3.2-add-115200.patch, files/xc-4.3.2-gentoo.patch, + files/xc-4.3.2-implicit-decl.patch: + Fix multilib handling, more implicit decls, and improve crc output. 18 Oct 2008; Alin Năstac <mrness@gentoo.org> -files/xc-4.3.2-gentoo.diff, +files/xc-4.3.2-gentoo.patch, xc-4.3.2-r1.ebuild: diff --git a/net-dialup/xc/Manifest b/net-dialup/xc/Manifest index 28e7e6b76b58..625ee808a13f 100644 --- a/net-dialup/xc/Manifest +++ b/net-dialup/xc/Manifest @@ -1,17 +1,18 @@ -----BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 +Hash: SHA256 -AUX xc-4.3.2-add-115200.patch 246 RMD160 a9c1c7baff2e40b56443600e01b04ec217333e38 SHA1 04d3a8a470904c4b1f6bb11993decdb388539121 SHA256 306e701a73fe677c2c254280fe1f186bc41341615e7810e0c94884b397095087 -AUX xc-4.3.2-gentoo.patch 2903 RMD160 65b83a17cebdbd379ea9d692a902f16b98e0a8ca SHA1 313841c1616ea11932a48ca13ded849223540439 SHA256 1423c7902bf236db1ba6099144da71a2934ee16ad2df2c697a218b78a9f5634c -AUX xc-4.3.2-implicit-decl.patch 663 RMD160 3f9bb6d8a6783468f84497bbcba9747ce7e34bbb SHA1 1b7bf333caa44bb2f15b630b97c4d173db54c570 SHA256 094bef02705892cbca73d4eecfbd11e6d722087ee8a394547110b807d17c0c7d +AUX xc-4.3.2-add-115200.patch 200 RMD160 48bb17221c83cbeb79ee712112a62470542a2e08 SHA1 9fa33553052a1d8a4d46da3c5f43a552ad107ff4 SHA256 27a3c936fb4e76f390214d8ab77998c3c7509ca04486bb62e08dc9a8bb0f20eb +AUX xc-4.3.2-gentoo.patch 2812 RMD160 3852b42601f1f08858cdc27c81a37f266413058a SHA1 a85ec5c562ef49677d00fcc3c8ea9da84674762b SHA256 81f753c969f289dc7695f1b9b29eb7f362727134824e09911d8a0fccf7558ed1 +AUX xc-4.3.2-implicit-decl.patch 434 RMD160 0ba6d6d96c76c4b07033c12ec26f1725975cb8d7 SHA1 c2d60d90539e75907aefef7e4e954b8af4f3a12d SHA256 685889f442b68bbd59aa04173635d15c7685c3e261aaca16e12a6fa4c2ed6168 DIST xc-4.3.2.tar.gz 162098 RMD160 7fb7206c1f78a00bbee736e405402d8bae90f59a SHA1 fccfb07d7bf18d652de4aa07bf023a45ebc39af9 SHA256 7e90ff0b89b646e1c8625fc675e6b33d244ab332a052ddd2daed825719e59461 EBUILD xc-4.3.2-r1.ebuild 1034 RMD160 89b37499b4aeb8fd020c272f0b88c7f62399ee21 SHA1 b7cf53b4f69fad5ab05e66681eb8e8b17f81da8e SHA256 284e128ae23aa67ec184740496df315f98f4bd4dd6510748fb613ec6d72014a0 -MISC ChangeLog 2702 RMD160 e5d19935e5e32dbe4673a43bcd09514cd4696f12 SHA1 7fc7d2b9e755325f225d00ef73fd4dc245ab8bcf SHA256 438be3cb49fe39b933fcfcedfda0e2a3d87aed694fdc74fd565f6e2a69ff7b87 +EBUILD xc-4.3.2-r2.ebuild 990 RMD160 8f6af229056779414566e745bd54be268f1c39b9 SHA1 9f4d003981e61c8195f79a32a1b431db4bd18d79 SHA256 1c5ff03c73831bc6219041f4b0c3dc9d84928f1e118c0540d238b18b64dc12ec +MISC ChangeLog 2974 RMD160 15bc6a3127bd354e7b67bf5dd8895149bb427f6b SHA1 eff3eb65085b9f78955134e8cdf1bb4b9d134d1b SHA256 144037f48cdc9375f193ae0495e2a58faff8c8cbb9a5e10453f0a56d29fb5915 MISC metadata.xml 163 RMD160 df94c60cc0bb7abe5913b464a33966b142b2fe1e SHA1 d8332605fd22c32f15438bbdf24aa622c3d2738a SHA256 1137a0fd866641cf719b0c2e9e77ca9fa4541a42f2cc851fe4659cf2677acca3 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.9 (GNU/Linux) +Version: GnuPG v2.0.14 (GNU/Linux) -iEYEARECAAYFAkj5qUAACgkQPrHvTlXvhtvkyACfYliFhuEn0c0WLk+qjHNF6FZN -jcwAn36PPXNeUQFyrU2isdYFmdgt+5LA -=SrZ6 +iF4EAREIAAYFAktlIVkACgkQTwhj9JtAlp6s6wEAjY2BOEy4PlesXMO0dgsQ6tqF +JUluB4he22qjqb9wf5IBAI7lNkIjBN0HP+VR21aEpp1dFKeXpsZUzVwf5St7gBB8 +=/Zrf -----END PGP SIGNATURE----- diff --git a/net-dialup/xc/files/xc-4.3.2-add-115200.patch b/net-dialup/xc/files/xc-4.3.2-add-115200.patch index 3d879ce1bc7b..c8238565ac0b 100644 --- a/net-dialup/xc/files/xc-4.3.2-add-115200.patch +++ b/net-dialup/xc/files/xc-4.3.2-add-115200.patch @@ -1,6 +1,8 @@ ---- xcport.c.orig 2004-01-16 05:11:34.131877776 -0500 -+++ xcport.c 2004-01-16 05:13:52.459848728 -0500 -@@ -107,6 +107,7 @@ static struct { +add support for 115200 baud + +--- xc-4.3.2/xcport.c ++++ xc-4.3.2/xcport.c +@@ -107,6 +107,7 @@ {"38400",38400,B38400}, {"57600",57600,B50}, #endif diff --git a/net-dialup/xc/files/xc-4.3.2-gentoo.patch b/net-dialup/xc/files/xc-4.3.2-gentoo.patch index 7503c5b33382..8eb366059a62 100644 --- a/net-dialup/xc/files/xc-4.3.2-gentoo.patch +++ b/net-dialup/xc/files/xc-4.3.2-gentoo.patch @@ -1,7 +1,6 @@ -diff -ur xc-4.3.2.orig/Makefile xc-4.3.2/Makefile ---- xc-4.3.2.orig/Makefile 1996-11-24 06:56:14.000000000 +0000 -+++ xc-4.3.2/Makefile 2008-10-18 09:06:12.000000000 +0000 -@@ -5,21 +5,23 @@ +--- xc-4.3.2/Makefile ++++ xc-4.3.2/Makefile +@@ -5,21 +5,24 @@ SHELL = /bin/sh @@ -15,7 +14,8 @@ diff -ur xc-4.3.2.orig/Makefile xc-4.3.2/Makefile +#CC = gcc +GCCOPT = -fno-strength-reduce #GCCOPT = -O -g - CDEFS = -D_POSIX_SOURCE=1 +-CDEFS = -D_POSIX_SOURCE=1 ++CDEFS = -D_XOPEN_SOURCE -CFLAGS = $(WARN) $(CDEFS) $(GCCOPT) +CFLAGS += $(WARN) $(CDEFS) $(GCCOPT) @@ -25,6 +25,7 @@ diff -ur xc-4.3.2.orig/Makefile xc-4.3.2/Makefile libdir = $(prefix)/lib/xc -mandir = /usr/man/man1 +mandir = /usr/share/man ++man1dir = $(mandir)/man1 catdir = /var/catman/cat1 -manown = -o root -g man +manown = -o root -g root @@ -45,11 +46,11 @@ diff -ur xc-4.3.2.orig/Makefile xc-4.3.2/Makefile xc: $(OBJS) eline - $(CC) $(CFLAGS) $(OBJS) -o xc $(LDFLAGS) -+ $(CC) $(LDFLAGS) $(OBJS) -o xc $(LIBS) ++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o xc $(LIBS) uninstall: rm -f $(bindir)/xc $(mandir)/xc.1 $(catdir)/xc.1.* -@@ -64,10 +66,10 @@ +@@ -64,10 +66,9 @@ install: ./bin/xc ./bin/crc xc.1 crc.1 @echo " " @@ -57,39 +58,46 @@ diff -ur xc-4.3.2.orig/Makefile xc-4.3.2/Makefile - $(INSTALL) $(binown) -m 755 -s ./bin/crc $(bindir) - $(INSTALL) $(manown) -m 644 xc.1 $(mandir) - $(INSTALL) $(manown) -m 644 crc.1 $(mandir) -+ $(INSTALL) $(binown) -m 755 ./bin/xc $(DESTDIR)$(bindir) -+ $(INSTALL) $(binown) -m 755 ./bin/crc $(DESTDIR)$(bindir) -+ $(INSTALL) $(manown) -m 644 xc.1 $(DESTDIR)$(mandir)/man1 -+ $(INSTALL) $(manown) -m 644 crc.1 $(DESTDIR)$(mandir)/man1 ++ $(INSTALL) -d -m755 $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir) ++ $(INSTALL) $(binown) -m 755 xc crc $(DESTDIR)$(bindir) ++ $(INSTALL) $(manown) -m 644 xc.1 crc.1 $(DESTDIR)$(man1dir) @echo " " @echo " " @echo "You will want to manually install 'phonelist' and" -@@ -113,7 +115,6 @@ - bin: xc crc - cp ./xc ./bin - cp ./crc ./bin -- strip ./bin/xc ./bin/crc - - ######################################### - ## mostly unused stuff below here ... ## -diff -ur xc-4.3.2.orig/xcsubs.c xc-4.3.2/xcsubs.c ---- xc-4.3.2.orig/xcsubs.c 1996-09-21 08:22:17.000000000 +0000 -+++ xc-4.3.2/xcsubs.c 2008-10-18 09:04:32.000000000 +0000 -@@ -23,7 +23,7 @@ +--- xc-4.3.2/xcsubs.c ++++ xc-4.3.2/xcsubs.c +@@ -23,7 +23,6 @@ *tgetstr(), *tgoto(); int LI, /* One less than screen length in termcap entry */ CO; /* Screen width */ -speed_t ospeed; /* Used by termcap lib */ -+//speed_t ospeed; /* Used by termcap lib */ static char tc[LG_BUFF]; /* termcap buffer */ static char tbuf[LG_BUFF], *CD, *CF, *CL, *CM, *CN, *AE, *SE, *SO, *ME; char *CE, PC; /* used by termcap -- padding character */ -@@ -410,7 +410,7 @@ + +limit the 32bit crc to 32bits + +add simple usage + +--- xc-4.3.2/crc.c ++++ xc-4.3.2/crc.c +@@ -152,7 +152,7 @@ char *name; + } + crc32 = oldcrc32; oldcrc = oldcrc32 = ~oldcrc32; + +- printf("%08lx %7ld ", oldcrc, charcnt); ++ printf("%08lx %7ld ", oldcrc & 0xffffffff, charcnt); + if (Block == 128) + printf("%5ld+%3ld ", charcnt/Block, charcnt%Block); + if (Block == 1024) +@@ -170,6 +170,10 @@ char **argv; { - struct stat statbuf; + register errors = 0; -- if (stat(pathname,&statbuf) || (statbuf.st_mode & S_IFMT) != S_IFREG) -+ if (stat(pathname,&statbuf) || (statbuf.st_mode & __S_IFMT) != __S_IFREG) - return NIL(FILE); - return fopen(pathname, "r"); - } ++ if (argc == 1) { ++ puts("Usage: crc [-x|-k] <files>\n -x pad to 128 bytes\n -k pad to 1024 bytes"); ++ exit(0); ++ } + if (argc > 1) { + if (!strcmp(argv[1], "-x")) { + Block = 128; diff --git a/net-dialup/xc/files/xc-4.3.2-implicit-decl.patch b/net-dialup/xc/files/xc-4.3.2-implicit-decl.patch index 545299b04186..556392d8b189 100644 --- a/net-dialup/xc/files/xc-4.3.2-implicit-decl.patch +++ b/net-dialup/xc/files/xc-4.3.2-implicit-decl.patch @@ -1,17 +1,16 @@ -diff -Nru xc-4.3.2.orig/crc.c xc-4.3.2/crc.c ---- xc-4.3.2.orig/crc.c 1996-09-27 05:47:17.000000000 +0300 -+++ xc-4.3.2/crc.c 2007-04-15 14:34:09.000000000 +0300 -@@ -5,6 +5,7 @@ +--- xc-4.3.2/crc.c ++++ xc-4.3.2/crc.c +@@ -5,6 +5,8 @@ * Crc - 32 BIT ANSI X3.66 CRC checksum files */ #include <stdio.h> +#include <stdlib.h> ++#include <string.h> #define OK 0 #define ERROR (-1) #define LINT_ARGS -diff -Nru xc-4.3.2.orig/xcterm.c xc-4.3.2/xcterm.c ---- xc-4.3.2.orig/xcterm.c 1996-09-25 06:58:31.000000000 +0300 -+++ xc-4.3.2/xcterm.c 2007-04-15 14:33:46.000000000 +0300 +--- xc-4.3.2/xcterm.c ++++ xc-4.3.2/xcterm.c @@ -4,6 +4,8 @@ #define XCTERM_C 1 diff --git a/net-dialup/xc/xc-4.3.2-r2.ebuild b/net-dialup/xc/xc-4.3.2-r2.ebuild new file mode 100644 index 000000000000..3eec28c63c55 --- /dev/null +++ b/net-dialup/xc/xc-4.3.2-r2.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/xc/xc-4.3.2-r2.ebuild,v 1.1 2010/01/31 06:21:08 vapier Exp $ + +inherit eutils toolchain-funcs multilib + +DESCRIPTION="unix dialout program" +HOMEPAGE="http://www.ibiblio.org/pub/Linux/apps/serialcomm/dialout/" +SRC_URI="http://www.ibiblio.org/pub/Linux/apps/serialcomm/dialout/${P}.tar.gz" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="~amd64 ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="" + +DEPEND="sys-libs/ncurses" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${P}-gentoo.patch + epatch "${FILESDIR}"/${P}-implicit-decl.patch + epatch "${FILESDIR}"/${P}-add-115200.patch + + sed -i \ + -e "/^libdir/s:/lib/:/$(get_libdir)/:" \ + Makefile || die +} + +src_compile() { + tc-export CC + emake WARN="" all || die +} + +src_install() { + emake DESTDIR="${D}" install || die + + insinto /usr/$(get_libdir)/xc + doins phonelist xc.init dotfiles/.[a-z]* || die +} |