summaryrefslogtreecommitdiff
path: root/net-misc/shout
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-misc/shout
reinit the tree, so we can have metadata
Diffstat (limited to 'net-misc/shout')
-rw-r--r--net-misc/shout/Manifest9
-rw-r--r--net-misc/shout/files/implicitdecls.patch12
-rw-r--r--net-misc/shout/files/ldflags.patch21
-rw-r--r--net-misc/shout/files/shout-0.8.0-overflow.patch26
-rw-r--r--net-misc/shout/files/variables.diff45
-rw-r--r--net-misc/shout/metadata.xml8
-rw-r--r--net-misc/shout/shout-0.8.0-r2.ebuild41
7 files changed, 162 insertions, 0 deletions
diff --git a/net-misc/shout/Manifest b/net-misc/shout/Manifest
new file mode 100644
index 000000000000..1bceaa90a3c2
--- /dev/null
+++ b/net-misc/shout/Manifest
@@ -0,0 +1,9 @@
+AUX implicitdecls.patch 294 SHA256 d6682eb4eae810502736dc56d5bd6f9eb1d12a1eada0bd8ae1ef25c2ae268e35 SHA512 e2f18ef4dd46725d8d023121045c25214b777b6ad699027fda8d0af84e284cb53f72b877a562935d056e7321523e9e65ed3d1dddd9491160ca5c8ee68831a70a WHIRLPOOL 1e9e413e22e0a0045e79f4034f87706b87b8af0e20ef5baf8754c72ce7b745e5c3f171bb8bca105239889dcad414146f37d221aa15c12eadfc2fa9a2b13611cc
+AUX ldflags.patch 653 SHA256 9318a544d3606c07107f30edbe44409aac9e0f8a7038aa024cd95b021882f34f SHA512 33a91c02e2b8dd9c1f2e44e6dc6f9bf3264a159ffb33451a5f800a2b15ba47dac0744a73cf5a18be8fe33531ad4cecb2149a2c765a8d9abb8cd07be549855a2e WHIRLPOOL 628d24d050cc694b86de56b945c63728f158f9410a97a375e4d2397679797be19fd60adc990faa0c31d72fd68d9c66086563c1ac824400764fcc2276bdc2e927
+AUX shout-0.8.0-overflow.patch 705 SHA256 87d74ca4f7bf82e3110a087f2111002afe23796ed60736db8c7ea40f1f1e45ef SHA512 ab1dde236c3edd4b17550511277762dbdc6cce05830a67429d958176ac4e494c3c16f88f15bb897714f37bb4979295c27353fed8c11681616d027c6c40b1609b WHIRLPOOL 7774a0993ce49611a9c7af4e2e34daf3f516b2b3edbe1f06e8fbcf8a3cd402ab112f59ec48cd3258f1f4df8f1f787ffc7f3a8b455f433f5aa2aa282f7168e68b
+AUX variables.diff 1142 SHA256 45b05676eb7f85040111d0f4778e15648ba0b54b6812482a8336eab84707536d SHA512 abe393346b791fcc4cdb57a17c4410bbc967777c1f6d5bf0339618b6592e615000f49262ac907e5d83ea7c0837074923f719089d5a35f4aa0a1bf90dab9b6e36 WHIRLPOOL 572211aaf81134295c44fe2832e049136010609c5ef531e0df773b13df969640c1bdfe28ddda2b14e04aedb6a37f044fdeb446be565d618ae8bcbb01dc4c61cc
+DIST shout-0.8.0.tar.gz 66394 SHA256 7b36712730c370f7d25271ca93291f9055bb90ee3052e7aec33b5dae205d8227 SHA512 95ee62071ce4dc7f624213d4eaf10d029b0a2e3ff030e7236656fc5387045be34a6f08ee778c4e8e77fed9b4ee8f60c191a369921b3079c3183cc650b77b3565 WHIRLPOOL 60129ebc7a9080b6ed6c12bbbc6cf16980c5c2c6b3a7a240bd2a7f45c2ef44a90624619c2c1ee47e8a36d8cfbba7261d40c3c377c88988cba444edc7310d41fd
+EBUILD shout-0.8.0-r2.ebuild 1001 SHA256 822427b18cddd5f991f09addc284ec40b14cfbe0753b8b975b505b4493f473f0 SHA512 03e730ffb5cb8d33dfbc8029be18f058b3d1ef1d62c0de4db6f3ada08a5665c4b72552b6195288bec902f5828978cf8485ba4b9fbe8b9512f4880187e2d54fbb WHIRLPOOL d9c3c65223de2218aa0ee2f2bb8f43d6b5691931895338db5357f770585ef1237dc7a70a0f0952083d09357bb1d8422706a2ad87d58684689fbba7de76203fcd
+MISC ChangeLog 2539 SHA256 0e09c22fa2605dcd34282bd57a86395cf9917c82c1ef0c18f9b41e819a382847 SHA512 283608db1e8424f9c8a40a86a826b3f89d1c095fc94349821f278ba44590377013243240067dc775907ed6a47d6286d4bc2982a6ad1db23f3f207365ecd236b7 WHIRLPOOL 331c981efe3707d559eaf1dbb821e558516427f7ccd14578ad5de74580c72a9380f1182b5b28a3df92533dbea6d3a347736730f74d41dba20ec167edf448f668
+MISC ChangeLog-2015 2675 SHA256 e9ec1f6db89472c2b043c125be11e747454a83f055cf34f4fe62b723398cb6ce SHA512 7be91e5cb5d67b9bab9446df9195099b09a081f08a6d85d3e8f0444ac907a104349255453568e0567a0d30874ad0029cb5b745c827eba142b91aa398fa300e75 WHIRLPOOL 31d9f8448d7e2c4ccd7c8cb1194fa159e8b320423c8143902fb53654f39c2401b2ae951a7df30b4bb479e763f0d3abfb401239d21570829c9db9fa6d1fbcddcb
+MISC metadata.xml 249 SHA256 a591aa91a9c413e7f7e24fd25b924ce2dfef686da8b4ce38bebb088ebfdba9db SHA512 9a100fb26586365eda99724330a03a512f4d0be18d39c3a195ba02c2fc841edeee99d22512acf5a058a3b978d3a74f4d963a5aff9aa343b6cb4086cdfefe6343 WHIRLPOOL ae5b0c583f3a07ed1ccf651b5b9c8d6c8c637fba2d505fc4b028ea60239fc0a84e37a169b5114f879712ae74f7f41960a2cc6b59e67cacc7f964b105b5fb8723
diff --git a/net-misc/shout/files/implicitdecls.patch b/net-misc/shout/files/implicitdecls.patch
new file mode 100644
index 000000000000..b7a6999f121e
--- /dev/null
+++ b/net-misc/shout/files/implicitdecls.patch
@@ -0,0 +1,12 @@
+Index: shout-0.8.0/sock.c
+===================================================================
+--- shout-0.8.0.orig/sock.c
++++ shout-0.8.0/sock.c
+@@ -25,6 +25,7 @@
+ #include <arpa/inet.h>
+ #include <sys/time.h>
+ #include <unistd.h>
++#include <string.h>
+ #endif /* !win32 */
+
+ #include "sock.h"
diff --git a/net-misc/shout/files/ldflags.patch b/net-misc/shout/files/ldflags.patch
new file mode 100644
index 000000000000..3d049d98d318
--- /dev/null
+++ b/net-misc/shout/files/ldflags.patch
@@ -0,0 +1,21 @@
+Index: shout-0.8.0/Makefile.in
+===================================================================
+--- shout-0.8.0.orig/Makefile.in
++++ shout-0.8.0/Makefile.in
+@@ -2,7 +2,6 @@
+
+ CC = @CC@
+ CFLAGS = @CFLAGS@
+-LDFLAGS = @LIBS@
+
+ SHELL=/bin/sh
+
+@@ -26,7 +25,7 @@ COMPILE_CFLAGS=$(CFLAGS) $(DEFS)
+ all: shout
+
+ shout: shout.c rand.o mpeg.o configfile.o sock.o util.o
+- $(CC) $(COMPILE_CFLAGS) -o shout shout.c rand.o mpeg.o configfile.o sock.o util.o $(LDFLAGS)
++ $(CC) $(COMPILE_CFLAGS) $(LDFLAGS) -o shout shout.c rand.o mpeg.o configfile.o sock.o util.o @LIBS@
+
+ configfile.o: configfile.c
+ $(CC) $(COMPILE_CFLAGS) -c -o configfile.o configfile.c
diff --git a/net-misc/shout/files/shout-0.8.0-overflow.patch b/net-misc/shout/files/shout-0.8.0-overflow.patch
new file mode 100644
index 000000000000..a1292423ce4b
--- /dev/null
+++ b/net-misc/shout/files/shout-0.8.0-overflow.patch
@@ -0,0 +1,26 @@
+diff --git a/shout.c b/shout.c
+index 0a1bded..00bae8d 100644
+--- a/shout.c
++++ b/shout.c
+@@ -441,7 +441,7 @@ post_config ()
+ perror ("fopen");
+ px_shutdown (44);
+ }
+- my_snprintf (pid, BUFSIZE, "%d\n", (int) getpid ());
++ my_snprintf (pid, 30, "%d\n", (int) getpid ());
+ fputs (pid, fp);
+ fclose (fp);
+ }
+diff --git a/sock.c b/sock.c
+index 4a67c00..3b4e539 100644
+--- a/sock.c
++++ b/sock.c
+@@ -81,7 +81,7 @@ sock_connect (char *hostname, int port)
+ sock_close (sockfd);
+ return -1;
+ }
+- memcpy (&server.sin_addr, &sin.sin_addr, sizeof (sin));
++ memcpy (&server.sin_addr, &sin.sin_addr, sizeof (sin.sin_addr));
+ } else {
+ host = gethostbyname (hostname);
+ if (host == NULL) {
diff --git a/net-misc/shout/files/variables.diff b/net-misc/shout/files/variables.diff
new file mode 100644
index 000000000000..afaefbcb2cad
--- /dev/null
+++ b/net-misc/shout/files/variables.diff
@@ -0,0 +1,45 @@
+diff -urN shout-0.8.0/Makefile.in shout-0.8.0-modified/Makefile.in
+--- shout-0.8.0/Makefile.in Thu Apr 20 02:31:50 2000
++++ shout-0.8.0-modified/Makefile.in Tue Jul 23 19:14:36 2002
+@@ -9,11 +9,11 @@
+ srcdir = @srcdir@
+ VPATH = @srcdir@
+
+-prefix = @prefix@/icecast
+-exec_prefix = @prefix@
+-bindir = @BINDIR@
+-etcdir = @ETCDIR@
+-logdir = @LOGDIR@
++prefix = /usr
++exec_prefix = /usr
++bindir = /usr/bin
++etcdir = /etc/shout
++logdir = /var/log/shout
+
+ DEFS = -I. @DEFS@
+
+--- shout-0.8.0/configure 2000-04-20 09:41:45.000000000 +0200
++++ shout-0.8.0/configure 2004-07-17 17:17:40.000000000 +0200
+@@ -532,20 +532,10 @@
+ prefix=$prefix
+ fi
+
+-if test "x$enable_fsstd" = "xyes"; then
+ echo "FSSTD ENABLED"
+ BINDIR="/usr/bin"
+- ETCDIR="/etc/icecast"
+- LOGDIR="/var/log/icecast"
+-else
+- echo "FSSTD DISABLED"
+- BINDIR="${prefix}/icecast/bin"
+- ETCDIR="${prefix}/icecast/etc"
+- LOGDIR="${prefix}/icecast/log"
+-fi
+-
+-
+-
++ ETCDIR="/etc/shout"
++ LOGDIR="/var/log/shout"
+
+ # Extract the first word of "gcc", so it can be a program name with args.
+ set dummy gcc; ac_word=$2
diff --git a/net-misc/shout/metadata.xml b/net-misc/shout/metadata.xml
new file mode 100644
index 000000000000..c870d0eef0ab
--- /dev/null
+++ b/net-misc/shout/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>sound@gentoo.org</email>
+ <name>Gentoo Sound project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-misc/shout/shout-0.8.0-r2.ebuild b/net-misc/shout/shout-0.8.0-r2.ebuild
new file mode 100644
index 000000000000..d41c78ca8166
--- /dev/null
+++ b/net-misc/shout/shout-0.8.0-r2.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Shout is a program for creating mp3 stream for use with icecast or shoutcast"
+HOMEPAGE="http://www.icecast.org"
+SRC_URI="http://icecast.org/releases/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha ~ppc sparc x86"
+IUSE=""
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/variables.diff \
+ "${FILESDIR}"/ldflags.patch \
+ "${FILESDIR}"/implicitdecls.patch \
+ "${FILESDIR}"/${P}-overflow.patch
+ rm -f sock.o
+ sed -i -e "s/-ansi//" configure
+}
+
+src_compile() {
+ tc-export CC
+ econf --sysconfdir=/etc/shout \
+ --localstatedir=/var
+ emake || die "emake failed."
+}
+
+src_install () {
+ emake DESTDIR="${D}" install || die "emake install failed."
+ keepdir /var/log/shout
+ fowners root:audio /var/log/shout
+ fperms 775 /var/log/shout
+ fperms 755 /etc/shout
+ fperms 644 /etc/shout/shout.conf.dist
+ dodoc BUGS CREDITS README.shout TODO
+}