initial import
authorMike Frysinger <vapier@gentoo.org>
Sat, 4 Dec 2004 03:07:36 +0000 (03:07 +0000)
committerMike Frysinger <vapier@gentoo.org>
Sat, 4 Dec 2004 03:07:36 +0000 (03:07 +0000)
sys-apps/showconsole/ChangeLog [new file with mode: 0644]
sys-apps/showconsole/Manifest [new file with mode: 0644]
sys-apps/showconsole/files/1.07-no-TIOCGDEV.patch [new file with mode: 0644]
sys-apps/showconsole/files/digest-showconsole-1.07 [new file with mode: 0644]
sys-apps/showconsole/metadata.xml [new file with mode: 0644]
sys-apps/showconsole/showconsole-1.07.ebuild [new file with mode: 0644]

diff --git a/sys-apps/showconsole/ChangeLog b/sys-apps/showconsole/ChangeLog
new file mode 100644 (file)
index 0000000..607057d
--- /dev/null
@@ -0,0 +1,8 @@
+# ChangeLog for sys-apps/showconsole
+# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/showconsole/ChangeLog,v 1.1 2004/12/04 03:07:36 vapier Exp $
+
+*showconsole-1.07 (03 Dec 2004)
+
+  03 Dec 2004; Mike Frysinger <vapier@gentoo.org> :
+  Initial import.  Ebuild submitted by me.
diff --git a/sys-apps/showconsole/Manifest b/sys-apps/showconsole/Manifest
new file mode 100644 (file)
index 0000000..354755a
--- /dev/null
@@ -0,0 +1,15 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164
+MD5 1a235702a7ce6eba062e7dbea5b78aa6 ChangeLog 341
+MD5 6ebd7f2e8ea9fe64f3b19cf8f2193b66 showconsole-1.07.ebuild 899
+MD5 a081c5c8650672deda68728c8437c846 files/digest-showconsole-1.07 149
+MD5 34f6358be961e4385337135c2de859ef files/1.07-no-TIOCGDEV.patch 819
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.9.10 (GNU/Linux)
+
+iD8DBQFBsSoNroRuSHgZdywRAvPNAJ954YQTp0hUp8mn9BerCsXRFZLJoACfa5Nl
+mEcaNqAEAq2VqxC/WLNJvz8=
+=oo9l
+-----END PGP SIGNATURE-----
diff --git a/sys-apps/showconsole/files/1.07-no-TIOCGDEV.patch b/sys-apps/showconsole/files/1.07-no-TIOCGDEV.patch
new file mode 100644 (file)
index 0000000..49a09ce
--- /dev/null
@@ -0,0 +1,27 @@
+--- showconsole-1.07/libconsole.c.orig 2004-12-03 21:57:24.507411240 -0500
++++ showconsole-1.07/libconsole.c      2004-12-03 21:59:26.820816776 -0500
+@@ -1021,13 +1021,8 @@
+     char * name = NULL;
+     DIR * dev;
+ 
+-#ifdef TIOCGDEV
++#define TIOCGDEV       _IOR('T',0x32, unsigned int)
+     if (ioctl (0, TIOCGDEV, &tty) < 0) {
+-      if (errno == EINVAL && !getenv("NOTIOCGDEV"))
+-          warn("Warning: the ioctl TIOCGDEV is not known by the kernel\n");
+-#else
+-#       error The ioctl TIOCGDEV is not defined (SuSE TIOCGDEV patch is missed)
+-#endif
+       if (!(name = ttyname(0)) || !strcmp(name, "/dev/console"))
+           tty = fallback(pid, ppid);
+       else {
+@@ -1036,9 +1031,7 @@
+           name = lnk;
+           goto out;
+       }
+-#ifdef TIOCGDEV
+     }
+-#endif
+ 
+     if (!(dev = opendir("/dev")))
+       error("can not opendir(/dev): %s\n", STRERR);
diff --git a/sys-apps/showconsole/files/digest-showconsole-1.07 b/sys-apps/showconsole/files/digest-showconsole-1.07
new file mode 100644 (file)
index 0000000..623cf85
--- /dev/null
@@ -0,0 +1,2 @@
+MD5 4714f68db6690e44462865f5d8708352 showconsole-1.07.tar.bz2 20180
+MD5 754c55c9ceab69eb67c3211ad0335764 showconsole-1.07-suse-update.patch.bz2 3574
diff --git a/sys-apps/showconsole/metadata.xml b/sys-apps/showconsole/metadata.xml
new file mode 100644 (file)
index 0000000..96a2d58
--- /dev/null
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>base-system</herd>
+</pkgmetadata>
diff --git a/sys-apps/showconsole/showconsole-1.07.ebuild b/sys-apps/showconsole/showconsole-1.07.ebuild
new file mode 100644 (file)
index 0000000..694aed6
--- /dev/null
@@ -0,0 +1,37 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/showconsole/showconsole-1.07.ebuild,v 1.1 2004/12/04 03:07:36 vapier Exp $
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="small daemon for logging console output during boot"
+HOMEPAGE="http://www.novell.com/linux/suse/"
+SRC_URI="mirror://gentoo/${P}.tar.bz2
+       mirror://gentoo/${P}-suse-update.patch.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND=""
+#RDEPEND=""
+
+S=${WORKDIR}/${P}
+
+src_unpack() {
+       unpack ${P}.tar.bz2
+       cd ${S}
+       epatch ${DISTDIR}/${P}-suse-update.patch.bz2
+       epatch ${FILESDIR}/${PV}-no-TIOCGDEV.patch
+}
+
+src_compile() {
+       emake COPTS="${CFLAGS}" CC="$(tc-getCC)" || die "emake failed"
+}
+
+src_install() {
+       make install DESTDIR="${D}" || die "install failed"
+       rmdir "${D}"/usr/lib/lsb
+       dodoc showconsole-1.07.lsm README
+}