From 61a80f26047844968367590c767037c72b835f34 Mon Sep 17 00:00:00 2001 From: Alin Năstac Date: Tue, 29 Jan 2008 22:16:59 +0000 Subject: Version bump (#208053). Package-Manager: portage-2.1.3.19 --- net-dialup/mingetty/ChangeLog | 10 +- net-dialup/mingetty/Manifest | 28 ++-- net-dialup/mingetty/files/digest-mingetty-1.08 | 3 + net-dialup/mingetty/files/mingetty-1.08-utf8.patch | 156 +++++++++++++++++++++ net-dialup/mingetty/mingetty-1.08.ebuild | 29 ++++ 5 files changed, 216 insertions(+), 10 deletions(-) create mode 100644 net-dialup/mingetty/files/digest-mingetty-1.08 create mode 100644 net-dialup/mingetty/files/mingetty-1.08-utf8.patch create mode 100644 net-dialup/mingetty/mingetty-1.08.ebuild (limited to 'net-dialup/mingetty') diff --git a/net-dialup/mingetty/ChangeLog b/net-dialup/mingetty/ChangeLog index 8bb275269b6f..cbeeb1f5c976 100644 --- a/net-dialup/mingetty/ChangeLog +++ b/net-dialup/mingetty/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-dialup/mingetty -# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-dialup/mingetty/ChangeLog,v 1.48 2007/08/25 15:35:06 mrness Exp $ +# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/mingetty/ChangeLog,v 1.49 2008/01/29 22:16:58 mrness Exp $ + +*mingetty-1.08 (29 Jan 2008) + + 29 Jan 2008; Alin Năstac + +files/mingetty-1.08-utf8.patch, +mingetty-1.08.ebuild: + Version bump (#208053). 25 Aug 2007; Alin Năstac -mingetty-1.07.ebuild: Remove old revision. diff --git a/net-dialup/mingetty/Manifest b/net-dialup/mingetty/Manifest index 3deb9004acba..9ee1596842c4 100644 --- a/net-dialup/mingetty/Manifest +++ b/net-dialup/mingetty/Manifest @@ -5,15 +5,24 @@ AUX mingetty-1.07-utf8.patch 4181 RMD160 20ce4ba325f79260eb2de521130bbf4a461dbfa MD5 23f659887c21005ab5da75041bf872d6 files/mingetty-1.07-utf8.patch 4181 RMD160 20ce4ba325f79260eb2de521130bbf4a461dbfac files/mingetty-1.07-utf8.patch 4181 SHA256 3d81e4e4cf5645e3e3e89728c0df1f1b628e91873edc993a03d958dd5e10bbed files/mingetty-1.07-utf8.patch 4181 +AUX mingetty-1.08-utf8.patch 4203 RMD160 c055d4657072021a2ba2a890a5ddc6f6966ff936 SHA1 00f983b86d97634a0e9aebac844eede965df5571 SHA256 690f5c2587de5f63a52fc2d61a8af8660773eefdba7e1a0f05cbb97740338938 +MD5 094457ec258a7cd4b50b92cf555e95a3 files/mingetty-1.08-utf8.patch 4203 +RMD160 c055d4657072021a2ba2a890a5ddc6f6966ff936 files/mingetty-1.08-utf8.patch 4203 +SHA256 690f5c2587de5f63a52fc2d61a8af8660773eefdba7e1a0f05cbb97740338938 files/mingetty-1.08-utf8.patch 4203 DIST mingetty-1.07.tar.gz 13435 RMD160 91d03c8a704af754137a6b61260c9925e602a121 SHA1 20e67224870b480813d5624cc67d5d19a633bd55 SHA256 f84dff06f1b0f449794c7b59be81128624f233dec049b48668457875935f871d +DIST mingetty-1.08.tar.gz 13476 RMD160 f88f284a517a70d75274935da4152c09299cb31b SHA1 283acd3dc9da2c9eb71d5d7cc01d1bd178254523 SHA256 0f55c90ba4faa913d91ef99cbf5cb2eb4dbe2780314c3bb17953f849c8cddd17 EBUILD mingetty-1.07-r1.ebuild 837 RMD160 1fc25960ade99323f94e092bcd446605e4eb325f SHA1 b5d8236631e9f9fa8ccd82c25d248f327888eb39 SHA256 488c4038d577ad1859004e101982ec21288e95b6f6d112692911fc17944ecf96 MD5 88d8fd833a0bb2a240cf3ebdf5684cec mingetty-1.07-r1.ebuild 837 RMD160 1fc25960ade99323f94e092bcd446605e4eb325f mingetty-1.07-r1.ebuild 837 SHA256 488c4038d577ad1859004e101982ec21288e95b6f6d112692911fc17944ecf96 mingetty-1.07-r1.ebuild 837 -MISC ChangeLog 5933 RMD160 d3ef2f4a8e5370b3b12b233a3a31da39f823ea78 SHA1 5331a527f257e3d979de4542c32652d5966cf9e3 SHA256 b71ce1509cb3c9704493e8d355fc26a574e846cb66142b365013e8e6db32f97f -MD5 d7dc1794a7ed0bebc720b8d2f044a18b ChangeLog 5933 -RMD160 d3ef2f4a8e5370b3b12b233a3a31da39f823ea78 ChangeLog 5933 -SHA256 b71ce1509cb3c9704493e8d355fc26a574e846cb66142b365013e8e6db32f97f ChangeLog 5933 +EBUILD mingetty-1.08.ebuild 847 RMD160 1aab6b1138b06d2bb589c35d0ed99cfc352fe04b SHA1 5f7da41b009e49254beac35d62c0e1802a7b6fa4 SHA256 b5787d1480b1dc53c64fe0909a90a74ab9b4e02bc96f2d6cf9ae2bfcb0a346e3 +MD5 676c4bb2742fbf7a89b480686162a583 mingetty-1.08.ebuild 847 +RMD160 1aab6b1138b06d2bb589c35d0ed99cfc352fe04b mingetty-1.08.ebuild 847 +SHA256 b5787d1480b1dc53c64fe0909a90a74ab9b4e02bc96f2d6cf9ae2bfcb0a346e3 mingetty-1.08.ebuild 847 +MISC ChangeLog 6096 RMD160 4413531f077f927eabb9cc542343b5713b2ca4c7 SHA1 8568a94d7059643996e2c402f1da841913522a3a SHA256 4b431e618d6ab0dffd2a03e773bdef366d5b24c8393a226d4bb227e81303fcb8 +MD5 9d010fffb7f0aba5d846b1c56f967cf5 ChangeLog 6096 +RMD160 4413531f077f927eabb9cc542343b5713b2ca4c7 ChangeLog 6096 +SHA256 4b431e618d6ab0dffd2a03e773bdef366d5b24c8393a226d4bb227e81303fcb8 ChangeLog 6096 MISC metadata.xml 389 RMD160 bfaa697a02d5ddbee8311d4bef068463b0438fc6 SHA1 5cda19fc7e05fa86e0f1cfada887749265f358e3 SHA256 b74ffab9c3e426a61783e39c7250102761fa842ebba3e182ba82be5113ae293f MD5 acdb7765fc8608543c8f2b6812f1f061 metadata.xml 389 RMD160 bfaa697a02d5ddbee8311d4bef068463b0438fc6 metadata.xml 389 @@ -21,10 +30,13 @@ SHA256 b74ffab9c3e426a61783e39c7250102761fa842ebba3e182ba82be5113ae293f metadata MD5 61d05c95fff576534e4004b1af8c7a7d files/digest-mingetty-1.07-r1 238 RMD160 6a0d61789728e2a078303090d68c37bc67951958 files/digest-mingetty-1.07-r1 238 SHA256 fd3f8dda5fdd0dfb6601091a597d6718a1d872b282a459c2afc669b3d44e2d88 files/digest-mingetty-1.07-r1 238 +MD5 d3ee3c18c630e2899e4bf8694cc6bdad files/digest-mingetty-1.08 238 +RMD160 9e41daca3047bd3fe8c15cfa53cba247e3729f80 files/digest-mingetty-1.08 238 +SHA256 22682ae5acde2e44c353f838fe2c3bb798049b4b4244342f0422651306c9b87c files/digest-mingetty-1.08 238 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.6 (GNU/Linux) +Version: GnuPG v2.0.8 (GNU/Linux) -iD8DBQFG0Ew0VSA5X31g7/gRAuI7AJoDdLT54n/6u3RF0LAmzr2l/YPSOACfWuII -h63KESQ3uw3oJE1LEdEEP04= -=7DGa +iEYEARECAAYFAkefpeQACgkQ+fWpoTWIA9G3JQCggWSygzizpxoTrFG9umiPpBTk +buoAn050YDVTJ6mi84HoEN0hW+p8pDdW +=7VUm -----END PGP SIGNATURE----- diff --git a/net-dialup/mingetty/files/digest-mingetty-1.08 b/net-dialup/mingetty/files/digest-mingetty-1.08 new file mode 100644 index 000000000000..c5465382c31e --- /dev/null +++ b/net-dialup/mingetty/files/digest-mingetty-1.08 @@ -0,0 +1,3 @@ +MD5 2a75ad6487ff271424ffc00a64420990 mingetty-1.08.tar.gz 13476 +RMD160 f88f284a517a70d75274935da4152c09299cb31b mingetty-1.08.tar.gz 13476 +SHA256 0f55c90ba4faa913d91ef99cbf5cb2eb4dbe2780314c3bb17953f849c8cddd17 mingetty-1.08.tar.gz 13476 diff --git a/net-dialup/mingetty/files/mingetty-1.08-utf8.patch b/net-dialup/mingetty/files/mingetty-1.08-utf8.patch new file mode 100644 index 000000000000..c57bc0b6ad4e --- /dev/null +++ b/net-dialup/mingetty/files/mingetty-1.08-utf8.patch @@ -0,0 +1,156 @@ +diff -Nru mingetty-1.08.orig/mingetty.c mingetty-1.08/mingetty.c +--- mingetty-1.08.orig/mingetty.c 2008-01-18 13:13:07.000000000 +0200 ++++ mingetty-1.08/mingetty.c 2008-01-30 00:14:25.000000000 +0200 +@@ -16,10 +16,15 @@ + * - autologin only at first login + * - /etc/mingetty.conf that can be used instead of /etc/inittab for + * command line options +- * - Can UTF-8 setup be done within mingetty? ++ * - Can UTF-8 setup be done within mingetty? Let's try now :-) (VinzC) + * - Also add /bin/login-type functionality in here? + */ + ++/* Additional comments: Vincent Cadet (2006-11-21) ++ * - Attempt to make mingetty support UTF-8. Modifications were imported ++ * from Suse migetty.c 0.9.6s. ++ */ ++ + #include + #include + #include +@@ -39,6 +44,19 @@ + #include + #include + #include ++#include ++#include ++#include ++#include ++#include ++ ++#ifndef IUTF8 ++# ifndef ASM_IUTF8 ++# error ASM_IUTF8 input flag not defined - Cannot define IUTF8 ++# else ++# define IUTF8 ASM_IUTF8 ++# endif ++#endif + + /* name of this program (argv[0]) */ + static char *progname; +@@ -76,6 +94,8 @@ + static char *autologin = NULL; + /* try to read a char before dropping to login prompt */ + static int loginpause = 0; ++/* terminal mode */ ++static int mode = K_RAW; + + /* error() - output error messages */ + static void error (const char *fmt, ...) +@@ -189,10 +209,21 @@ + if (fd > 2) + close (fd); + ++ /* Detect mode of current keyboard setup, e.g. for UTF-8 */ ++ if (ioctl(0, KDGKBMODE, &mode) < 0) ++ mode = K_RAW; ++ + /* Write a reset string to the terminal. This is very linux-specific + and should be checked for other systems. */ + if (noclear == 0) +- write (0, "\033c", 2); ++ /* don't write a full reset (ESC c) because this leaves the ++ unicode mode again if the terminal was in unicode mode ++ and also undos the ESC sequences in CONSOLE_MAGIC which ++ are needed for some languages/console-fonts. ++ Just put the cursor to the home position (ESC [ H), ++ erase everything below the cursor (ESC [ J), and set the ++ scrolling region to the full window (ESC [ r) */ ++ write (0, "\033[r\033[H\033[J", 9); + + sigaction (SIGHUP, &sa_old, NULL); + } +@@ -298,32 +329,75 @@ + + static char *get_logname (void) + { +- static char logname[40]; ++ static char logname[4*UT_NAMESIZE]; + char *bp; + unsigned char c; ++ int ascii; ++ iconv_t ic; + + tcflush (0, TCIFLUSH); /* flush pending input */ ++ ++ /* Check for UTF-8 mode */ ++ switch(mode) { ++ case K_UNICODE: ++ ascii = 0; ++ setlocale(LC_CTYPE, "en_US.UTF-8"); ++ break; ++ case K_RAW: ++ case K_MEDIUMRAW: ++ case K_XLATE: ++ default: ++ ascii = 1; ++ setlocale(LC_CTYPE, "POSIX"); ++ break; ++ } ++ + for (*logname = 0; *logname == 0;) { + do_prompt (1); + for (bp = logname;;) { + if (read (0, &c, 1) < 1) { +- if (errno == EINTR || errno == EIO +- || errno == ENOENT) ++ if (errno == EINTR || errno == EAGAIN) { ++ usleep(1000); ++ continue; ++ } ++ if (errno == EIO || errno == ENOENT) + exit (EXIT_SUCCESS); + error ("%s: read: %s", tty, strerror (errno)); + } + if (c == '\n' || c == '\r') { + *bp = 0; + break; +- } else if (!isprint (c)) +- error ("%s: invalid character 0x%x in login" +- " name", tty, c); ++ } ++ ++ if (ascii && !isprint (c)) ++ error ("%s: invalid character 0x%x in login name", tty, c); + else if ((size_t)(bp - logname) >= sizeof (logname) - 1) + error ("%s: too long login name", tty); +- else +- *bp++ = c; ++ ++ *bp++ = c; + } + } ++ ++ if (!ascii && (ic = iconv_open("WCHAR_T", "UTF-8"))) { ++ char tmpbuf[4*sizeof(logname)], *op, *lp; ++ size_t len = bp - logname; ++ size_t out = sizeof(tmpbuf) - 1; ++ size_t wcl; ++ wint_t *wcp; ++ ++ op = tmpbuf; ++ lp = logname; ++ if ((wcl = iconv(ic , &lp, &len, &op, &out)) == (size_t)-1) ++ error ("%s: invalid character conversion for login name", tty); ++ iconv_close(ic); ++ ++ wcp = (wint_t*)tmpbuf; ++ wcp[wcl] = (wint_t)0; ++ while (*wcp) { ++ if (!iswprint(*wcp++)) ++ error ("%s: invalid character for login name found", tty); ++ } ++ } + return logname; + } + diff --git a/net-dialup/mingetty/mingetty-1.08.ebuild b/net-dialup/mingetty/mingetty-1.08.ebuild new file mode 100644 index 000000000000..15058212dda6 --- /dev/null +++ b/net-dialup/mingetty/mingetty-1.08.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/mingetty/mingetty-1.08.ebuild,v 1.1 2008/01/29 22:16:58 mrness Exp $ + +inherit toolchain-funcs eutils + +DESCRIPTION="A compact getty program for virtual consoles only." +HOMEPAGE="http://sourceforge.net/projects/mingetty" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" +IUSE="unicode" + +src_unpack() { + unpack ${A} + + use unicode && epatch "${FILESDIR}"/${P}-utf8.patch +} + +src_compile() { + emake CFLAGS="${CFLAGS} -Wall -W -pipe -D_GNU_SOURCE" CC="$(tc-getCC)" || die "compile failed" +} + +src_install () { + dodir /sbin /usr/share/man/man8 + emake DESTDIR="${D}" install || die "install failed" +} -- cgit v1.2.3-65-gdbad