summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2010-10-15 13:34:54 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2010-10-15 13:34:54 +0000
commit12924f5c51d4b7dd41907046e5ee798c34c50df0 (patch)
treea3bc466ccbd455b738b0aabc244e75bcce346c64 /sys-apps
parentstable ppc, bug 335565 (diff)
downloadhistorical-12924f5c51d4b7dd41907046e5ee798c34c50df0.tar.gz
historical-12924f5c51d4b7dd41907046e5ee798c34c50df0.tar.bz2
historical-12924f5c51d4b7dd41907046e5ee798c34c50df0.zip
Remove from portage.
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/gluelog/ChangeLog30
-rw-r--r--sys-apps/gluelog/Manifest10
-rw-r--r--sys-apps/gluelog/files/README52
-rw-r--r--sys-apps/gluelog/files/glueklog.c87
-rw-r--r--sys-apps/gluelog/files/gluelog.c91
-rwxr-xr-xsys-apps/gluelog/files/klog-run2
-rwxr-xr-xsys-apps/gluelog/files/svc-klog28
-rwxr-xr-xsys-apps/gluelog/files/svc-syslog28
-rwxr-xr-xsys-apps/gluelog/files/syslog-run2
-rw-r--r--sys-apps/gluelog/gluelog-1.0-r2.ebuild41
-rw-r--r--sys-apps/gluelog/metadata.xml5
11 files changed, 0 insertions, 376 deletions
diff --git a/sys-apps/gluelog/ChangeLog b/sys-apps/gluelog/ChangeLog
deleted file mode 100644
index 1b9c9e125b19..000000000000
--- a/sys-apps/gluelog/ChangeLog
+++ /dev/null
@@ -1,30 +0,0 @@
-# ChangeLog for sys-apps/gluelog
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/gluelog/ChangeLog,v 1.10 2009/09/23 20:23:53 patrick Exp $
-
- 23 Sep 2009; Patrick Lauer <patrick@gentoo.org> gluelog-1.0-r2.ebuild:
- Remove virtual/libc
-
- 09 Feb 2007; Diego Pettenò <flameeyes@gentoo.org> ChangeLog:
- Regenerate digest in Manifest2 format.
-
- 14 Jun 2004; Michael Sterrett <mr_bones_@gentoo.org> gluelog-1.0-r2.ebuild:
- don't assign default to S; IUSE; tidy
-
- 06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords
-
-*gluelog-1.0-r2 (1 Feb 2002)
-
- 21 Jul 2002; Mark Guertin <gerk@gentoo.org>:
- updated keywords (ppc)
-
- 14 Jul 2002; phoen][x <phoenix@gentoo.org> gluelog-1.0-r2.ebuild :
- Added LICENSE, KEYWORDS, SLOT.
-
- 1 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog :
-
- Added initial ChangeLog which should be updated whenever the package is
- updated in any way. This changelog is targetted to users. This means that the
- comments should well explained and written in clean English. The details about
- writing correct changelogs are explained in the skel.ChangeLog file which you
- can find in the root directory of the portage repository.
diff --git a/sys-apps/gluelog/Manifest b/sys-apps/gluelog/Manifest
deleted file mode 100644
index 10e8f8c72552..000000000000
--- a/sys-apps/gluelog/Manifest
+++ /dev/null
@@ -1,10 +0,0 @@
-AUX README 1891 RMD160 3edca693f15532f66179da399c0b39e4201ecee1 SHA1 9db8198b657e46c34f660407f495ac47adef54bc SHA256 ddc1ab4d830f9e467e95df0827a7e8157ee63d3921de1b8ad313cf00af9aedab
-AUX glueklog.c 1651 RMD160 84600c1d1d6f2340fa3f864e70257791f789abeb SHA1 4c390d879f9ebb39ee99b24978211c281f01afff SHA256 05e32a1a920d0f3c9a70205c8583a4e7cf435c5f084e6f78b7747312af1baac8
-AUX gluelog.c 1742 RMD160 4601eff974608ffa94a3a51501141063f5e41db6 SHA1 8993349760732e24cefb16da4862a6310f11a783 SHA256 3e48f37cbb22ec3a644faea827a1a2b69643311122ce8f97290b21ac6847351e
-AUX klog-run 70 RMD160 d8bf45b54ff3598d136187cefc10bf001c4e90eb SHA1 29b68e2ffb1e670e651cdf9fe5a00ec646b545da SHA256 778debdfd1281c98b9016c83c36e2a33bb911b75795bd7a9cd0aedf2a3174a85
-AUX svc-klog 487 RMD160 fbd10b1163d264d78c51b6a93cb7f140d4235f01 SHA1 32440b507a7b88e773aee67fc3a17d1f40caa49d SHA256 131e6fbc99b2bc0adc35e0701557f797d8a284163a820e9786e5b0101ab2b0d5
-AUX svc-syslog 489 RMD160 8bcc2d4d1eb02cfca28b96b13e42dc1418850f8b SHA1 cb7d9bfb93a5579e00f868148abda974b61602be SHA256 e0ad92a0e4c985877417709c2287b3935a2708e45fd27170248cfc762b1d18d9
-AUX syslog-run 71 RMD160 f5767b5b48a521a9f3bd40b7ae290fcc17f16eb3 SHA1 379c7ab67822ddecc414609cfbb6496486352ece SHA256 641d1150e45ca86b78a5f1a054181133d5583276bd58e8c52fea5d60e8cd5d2f
-EBUILD gluelog-1.0-r2.ebuild 912 RMD160 c590c59571851bdb9f9202e524c3c84ef49b45e2 SHA1 e5090a5f895530e641706ec8e7d4678c2b5a107a SHA256 62e189e0831c8220a6cdb109b189a995d99acf2516baf51ef99d4b79ee624fba
-MISC ChangeLog 1247 RMD160 9fea3b2f25f5029db970cec2c215092a195dc733 SHA1 d8eb59cdf8a22b418b5912b2149e4adc71b6ad04 SHA256 c2252a56f38a894ce3a2a3852e52de4e1d9b81c2bd4be2b21e24f74ef5d9146c
-MISC metadata.xml 164 RMD160 f43cbec30b7074319087c9acffdb9354b17b0db3 SHA1 9c213f5803676c56439df3716be07d6692588856 SHA256 f5f2891f2a4791cd31350bb2bb572131ad7235cd0eeb124c9912c187ac10ce92
diff --git a/sys-apps/gluelog/files/README b/sys-apps/gluelog/files/README
deleted file mode 100644
index 90a0bd401384..000000000000
--- a/sys-apps/gluelog/files/README
+++ /dev/null
@@ -1,52 +0,0 @@
-GLUELOG
-=======
-
-Gluelog is a small program for replacing syslogd. It is based on a program
-called sock-syslog and was originally intended for use with multilog from the
-daemontools package by D.J. Bernstein.
-
-Gluelog takes over /dev/log and writes anything sent to it to stdin of another
-process which is then responsible for logging.
-
-Gluelog also set its uid to "daemon" before it does anything useful. This can
-be configured in the source by changing the value of RUNUSER at the top of the
-source file.
-
-Gluelog takes only one argument: The command line of another program which
-reads from Stdin.
-
-You can use gluelog to log to anything that has the ability to read from stdin.
-
-Example
-=======
-
-Send all system logs to the multilog program:
- gluelog multilog t /var/log/messages
-
-Install
-=======
-
-Typing just "make" should compile it just fine. Afterwards, copy the file to a
-convenient spot in your path (I use /usr/local/sbin), and modify the bootup scripts to call
-that instead of the usual syslogd (On Redhat Linux, you need to edit
-/etc/rc.d/init.d/syslog).
-
-Advantages and disadvantages
-============================
-
-Using gluelog with multilog has the advantage that no log rotation needs to be done. Multilog
-auto-rotates logs as it goes along, therefore releaving you from running a cron daemon
-on a box which doesn't need it for anything else but log rotation.
-
-Neither gluelog nor multilog (to the best of my knowledge) calls sync() after text
-is logged. This means that if the box goes down or crashes due to some problem and the
-logged text was not written to the disk yet, you may loose it. It does however provide
-a performance advantage.
-
-The Code
-========
-
-The code consists of one file with one huge main() in it. If you can think of any reason
-to split it up into more procedures, feel free to do so :)
-
-In the meantime, you can mail me at gpf@linuxuser.co.za
diff --git a/sys-apps/gluelog/files/glueklog.c b/sys-apps/gluelog/files/glueklog.c
deleted file mode 100644
index 00e993ddc71b..000000000000
--- a/sys-apps/gluelog/files/glueklog.c
+++ /dev/null
@@ -1,87 +0,0 @@
-/* Syslog listener for systems where /dev/log is a Unix domain socket. */
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <sys/time.h>
-#include <pwd.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <sys/un.h>
-#include <errno.h>
-
-#define SIZE 1024
-#define SOCKNAME "/dev/log"
-#define RUNUSER "daemon"
-
-int main(int argc, char **argv){
- char buf[SIZE];
- ssize_t r, w;
- struct sockaddr_un sa1;
- int s1;
- fd_set fs;
- int fd[2];
- pid_t child;
- struct passwd *userinfo;
-
- if(argc<2){
- fprintf(stderr, "No logger specified\n");
- exit(1);
- }
-
- /* Assume that it's ok to grab /dev/log. */
- if ((s1 = open("/proc/kmsg",O_RDONLY)) == -1) {
- perror("/proc/kmsg");
- exit(1);
- }
- /* Dropping privileges here
- userinfo=getpwnam(RUNUSER);
- if(userinfo){
- setuid(userinfo->pw_uid);
- seteuid(userinfo->pw_uid);
- } else {
- fprintf(stderr, "No such user: %s\n", RUNUSER);
- exit(1);
- }
-*/
- if(pipe(fd)==-1){
- perror("pipe");
- exit(1);
- }
- if((child=fork())==-1){
- perror("fork");
- exit(1);
- }
- if(child==0){ /* We are the child */
- close(fd[1]); /* Child will only be reading from, not writing to parent */
- dup2(fd[0], 0);
- /* Execute logger */
- //execlp("multilog", "multilog", "/tmp/test", NULL);
- argv++;
- execvp(argv[0], argv);
- }
-
- /* We are Parent */
- close(fd[0]); /* Write to the child */
-
- for(;;) {
- r = read(s1, buf, SIZE);
- if (r < 0) {
- if (errno!=EINTR)
- perror("read");
- continue;
- }
- while (r) {
- w = write(fd[1], buf, r);
- if (w < 0) {
- if (errno!=EINTR)
- perror("write");
- exit(1);
- }
- r -= w;
- }
- }
-}
diff --git a/sys-apps/gluelog/files/gluelog.c b/sys-apps/gluelog/files/gluelog.c
deleted file mode 100644
index 5762c8f59c57..000000000000
--- a/sys-apps/gluelog/files/gluelog.c
+++ /dev/null
@@ -1,91 +0,0 @@
-/* Syslog listener for systems where /dev/log is a Unix domain socket. */
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <sys/time.h>
-#include <pwd.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <sys/un.h>
-
-#define SIZE 1024
-#define SOCKNAME "/dev/log"
-#define RUNUSER "daemon"
-
-int main(int argc, char **argv){
- char buf[SIZE];
- ssize_t r, w;
- struct sockaddr_un sa1;
- int s1;
- fd_set fs;
- int fd[2];
- pid_t child;
- struct passwd *userinfo;
-
- if(argc<2){
- fprintf(stderr, "No logger specified\n");
- exit(1);
- }
-
- /* Assume that it's ok to grab /dev/log. */
- if ((s1 = socket(AF_UNIX, SOCK_DGRAM, 0)) == -1) {
- perror("socket");
- exit(1);
- }
- sa1.sun_family = AF_UNIX;
- strcpy(sa1.sun_path, SOCKNAME);
- unlink(SOCKNAME);
- if (bind(s1, &sa1, sizeof(sa1)) == -1) {
- perror("bind");
- exit(1);
- }
-
- /* Dropping privileges here */
- userinfo=getpwnam(RUNUSER);
- if(userinfo){
- setuid(userinfo->pw_uid);
- seteuid(userinfo->pw_uid);
- } else {
- fprintf(stderr, "No such user: %s\n", RUNUSER);
- exit(1);
- }
-
- if(pipe(fd)==-1){
- perror("pipe");
- exit(1);
- }
- if((child=fork())==-1){
- perror("fork");
- exit(1);
- }
- if(child==0){ /* We are the child */
- close(fd[1]); /* Child will only be reading from, not writing to parent */
- dup2(fd[0], 0);
- /* Execute logger */
- //execlp("multilog", "multilog", "/tmp/test", NULL);
- argv++;
- execvp(argv[0], argv);
- }
-
- /* We are Parent */
- close(fd[0]); /* Write to the child */
-
- for(;;) {
- r = recvfrom(s1, buf, SIZE, 0, 0, 0);
- if (r < 0) {
- perror("recvfrom");
- continue;
- }
- while (r) {
- w = write(fd[1], buf, r);
- if (w < 0) {
- perror("write");
- exit(1);
- }
- r -= w;
- }
- write(fd[1], "\n", 1);
- }
-}
diff --git a/sys-apps/gluelog/files/klog-run b/sys-apps/gluelog/files/klog-run
deleted file mode 100755
index 499183ce2f89..000000000000
--- a/sys-apps/gluelog/files/klog-run
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-exec /usr/sbin/glueklog /usr/bin/multilog t /var/log/klog.d
diff --git a/sys-apps/gluelog/files/svc-klog b/sys-apps/gluelog/files/svc-klog
deleted file mode 100755
index 129ed7c0af4a..000000000000
--- a/sys-apps/gluelog/files/svc-klog
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/sh
-#RCUPDATE:1 2 3 4 5:19:This line is required for script management
-
-. /etc/rc.d/config/functions
-
-SERVICE=klog
-opts="start stop"
-
-start() {
- ebegin "Starting supervised ${SERVICE}"
- ln -sf ../services/${SERVICE} ${SVCDIR}/control/${SERVICE}
- eend $?
-}
-
-stop() {
- ebegin "Stopping supervised ${SERVICE}"
- if [ -e ${SVCDIR}/control/${SERVICE} ]
- then
- /usr/bin/svc -dx ${SVCDIR}/control/${SERVICE}
- rm ${SVCDIR}/control/${SERVICE}
- fi
- eend $?
-}
-
-doservice ${@}
-
-
-
diff --git a/sys-apps/gluelog/files/svc-syslog b/sys-apps/gluelog/files/svc-syslog
deleted file mode 100755
index 3329fcbdfdc7..000000000000
--- a/sys-apps/gluelog/files/svc-syslog
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/sh
-#RCUPDATE:1 2 3 4 5:19:This line is required for script management
-
-. /etc/rc.d/config/functions
-
-SERVICE=syslog
-opts="start stop"
-
-start() {
- ebegin "Starting supervised ${SERVICE}"
- ln -sf ../services/${SERVICE} ${SVCDIR}/control/${SERVICE}
- eend $?
-}
-
-stop() {
- ebegin "Stopping supervised ${SERVICE}"
- if [ -e ${SVCDIR}/control/${SERVICE} ]
- then
- /usr/bin/svc -dx ${SVCDIR}/control/${SERVICE}
- rm ${SVCDIR}/control/${SERVICE}
- fi
- eend $?
-}
-
-doservice ${@}
-
-
-
diff --git a/sys-apps/gluelog/files/syslog-run b/sys-apps/gluelog/files/syslog-run
deleted file mode 100755
index fda7b3111c3d..000000000000
--- a/sys-apps/gluelog/files/syslog-run
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-exec /usr/sbin/gluelog /usr/bin/multilog t /var/log/syslog.d
diff --git a/sys-apps/gluelog/gluelog-1.0-r2.ebuild b/sys-apps/gluelog/gluelog-1.0-r2.ebuild
deleted file mode 100644
index 4bf85763aeaf..000000000000
--- a/sys-apps/gluelog/gluelog-1.0-r2.ebuild
+++ /dev/null
@@ -1,41 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/gluelog/gluelog-1.0-r2.ebuild,v 1.16 2009/09/23 20:23:53 patrick Exp $
-
-DESCRIPTION="Pipe and socket fittings for the system and kernel logs"
-HOMEPAGE="http://www.linuxuser.co.za/projects.php3"
-SRC_URI=""
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="x86 ppc sparc amd64"
-IUSE=""
-
-DEPEND=""
-
-S=${WORKDIR}
-
-src_unpack() {
- cp ${FILESDIR}/{gluelog,glueklog}.c . || die
-}
-
-src_compile() {
- emake gluelog glueklog || die
-}
-
-src_install() {
- dosbin gluelog glueklog || die
- exeopts -m0750 -g wheel
- dodir /var/log
- local x
- for x in syslog klog
- do
- exeinto /var/lib/supervise/services/${x}
- newexe ${FILESDIR}/${x}-run run
- install -d -m0750 -o daemon -g wheel ${D}/var/log/${x}.d
- exeinto /etc/rc.d/init.d
- doexe ${FILESDIR}/svc-${x}
- done
-
- dodoc ${FILESDIR}/README
-}
diff --git a/sys-apps/gluelog/metadata.xml b/sys-apps/gluelog/metadata.xml
deleted file mode 100644
index 96a2d586367d..000000000000
--- a/sys-apps/gluelog/metadata.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-<herd>base-system</herd>
-</pkgmetadata>