summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /media-plugins/vdr-wapd
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'media-plugins/vdr-wapd')
-rw-r--r--media-plugins/vdr-wapd/Manifest2
-rw-r--r--media-plugins/vdr-wapd/files/confd9
-rw-r--r--media-plugins/vdr-wapd/files/rc-addon.sh10
-rw-r--r--media-plugins/vdr-wapd/files/vdr-wapd-0.9-as-needed.patch16
-rw-r--r--media-plugins/vdr-wapd/files/vdr-wapd-0.9-gentoo.diff14
-rw-r--r--media-plugins/vdr-wapd/files/vdr-wapd-0.9_gcc-4.1.x.diff12
-rw-r--r--media-plugins/vdr-wapd/files/wapaccess5
-rw-r--r--media-plugins/vdr-wapd/files/wapd.mk109
-rw-r--r--media-plugins/vdr-wapd/files/waphosts10
-rw-r--r--media-plugins/vdr-wapd/metadata.xml10
-rw-r--r--media-plugins/vdr-wapd/vdr-wapd-0.9.ebuild30
-rw-r--r--media-plugins/vdr-wapd/vdr-wapd-0.9_p1-r1.ebuild45
-rw-r--r--media-plugins/vdr-wapd/vdr-wapd-0.9_p1.ebuild37
13 files changed, 309 insertions, 0 deletions
diff --git a/media-plugins/vdr-wapd/Manifest b/media-plugins/vdr-wapd/Manifest
new file mode 100644
index 000000000000..0dc4b442b7bb
--- /dev/null
+++ b/media-plugins/vdr-wapd/Manifest
@@ -0,0 +1,2 @@
+DIST vdr-wapd-0.9.tgz 31975 SHA256 6d901dd352f2eb142dd070e11726cd74b05bb66f70b169e612b181dde738145e SHA512 787bc433896e01efb482507251f4a6cb878ce40b869625ff5b7177f64f4dba4b4dcffa648c39d1d8c1930da5fb98db9155ebc40ed349bf2093a5e10f7314f1dd WHIRLPOOL 71cbc3269ceddd582ac62207ff3a48d8df6a824da4fb3300aec4894278f75d41bcea9103be1f27a1f352ce06478b4b1a4f481524775ee0734e05b5b41f097fbe
+DIST wapd-0.9-patch1.diff.gz 3091 SHA256 e54d67c5090a40fcf1acc6ee4b4999950ecee8714c8db9823af1be59fcbd1931 SHA512 16dd9225bd0f40f668317ee8a957c0b113a261fe779931b546634fa8e09de3431359d7b8d3846b4781021438bcc660fc714bf17699dacc94af1fd16885a00450 WHIRLPOOL 613a0cabd994c1d38b3f0dde848543cdddeb65b895e856a93daf647ad9a7737498f6fe89ed3af9fe699acf8b6f39ace3be5aac6d82de6c03e44a831cbfbd1289
diff --git a/media-plugins/vdr-wapd/files/confd b/media-plugins/vdr-wapd/files/confd
new file mode 100644
index 000000000000..3521d7f590b9
--- /dev/null
+++ b/media-plugins/vdr-wapd/files/confd
@@ -0,0 +1,9 @@
+# Global config file for vdr wapd plugin
+# $Id$
+
+# Set the port where the plugin is listen on
+# allowed values: port number
+# default: 8888
+#
+#WAPD_PORT="8888"
+
diff --git a/media-plugins/vdr-wapd/files/rc-addon.sh b/media-plugins/vdr-wapd/files/rc-addon.sh
new file mode 100644
index 000000000000..95401bee6138
--- /dev/null
+++ b/media-plugins/vdr-wapd/files/rc-addon.sh
@@ -0,0 +1,10 @@
+# $Id$
+#
+# rc-addon-script for plugin wapd
+#
+# Joerg Bornkessel hd_brummy@gentoo.org
+
+plugin_pre_vdr_start() {
+
+ add_plugin_param "-p ${WAPD_PORT:=8888}"
+}
diff --git a/media-plugins/vdr-wapd/files/vdr-wapd-0.9-as-needed.patch b/media-plugins/vdr-wapd/files/vdr-wapd-0.9-as-needed.patch
new file mode 100644
index 000000000000..f37032064ab6
--- /dev/null
+++ b/media-plugins/vdr-wapd/files/vdr-wapd-0.9-as-needed.patch
@@ -0,0 +1,16 @@
+--- wapd-0.9.orig/Makefile 2008-01-16 16:29:10.000000000 +0100
++++ wapd-0.9/Makefile 2009-10-20 11:32:24.494591965 +0200
+@@ -76,11 +76,11 @@
+ all: libvdr-$(PLUGIN).so wappasswd
+
+ libvdr-$(PLUGIN).so: $(OBJS)
+- $(CXX) $(CXXFLAGS) -shared $(OBJS) $(LIBS) -o $@
++ $(CXX) $(CXXFLAGS) -shared $(OBJS) -o $@ $(LIBS)
+ @cp $@ $(LIBDIR)/$@.$(APIVERSION)
+
+ wappasswd: wappasswd.c
+- $(CXX) $(CXXFLAGS) $(LIBS) -o wappasswd wappasswd.c
++ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o wappasswd wappasswd.c $(LIBS)
+
+ dist: clean
+ @-rm -rf $(TMPDIR)/$(ARCHIVE)
diff --git a/media-plugins/vdr-wapd/files/vdr-wapd-0.9-gentoo.diff b/media-plugins/vdr-wapd/files/vdr-wapd-0.9-gentoo.diff
new file mode 100644
index 000000000000..70f7d733f045
--- /dev/null
+++ b/media-plugins/vdr-wapd/files/vdr-wapd-0.9-gentoo.diff
@@ -0,0 +1,14 @@
+diff -Naur wapd-0.9.orig/wapd.c wapd-0.9/wapd.c
+--- wapd-0.9.orig/wapd.c 2008-01-27 17:38:18.000000000 +0100
++++ wapd-0.9/wapd.c 2008-01-27 17:40:45.000000000 +0100
+@@ -85,8 +85,8 @@
+ bool cPluginWapd::Start(void)
+ {
+ RegisterI18n(Phrases);
+- if (WapHosts.Load(AddDirectory(ConfigDirectory(), "waphosts"), true)
+- && WapAccess.Load(AddDirectory(ConfigDirectory(), "wapaccess"), true)
++ if (WapHosts.Load(AddDirectory(ConfigDirectory( "wapd" ), "waphosts"), true)
++ && WapAccess.Load(AddDirectory(ConfigDirectory( "wapd" ), "wapaccess"), true)
+ && (server = new cWapServer(tcpport)))
+ return true;
+ return false;
diff --git a/media-plugins/vdr-wapd/files/vdr-wapd-0.9_gcc-4.1.x.diff b/media-plugins/vdr-wapd/files/vdr-wapd-0.9_gcc-4.1.x.diff
new file mode 100644
index 000000000000..1fe4e9245061
--- /dev/null
+++ b/media-plugins/vdr-wapd/files/vdr-wapd-0.9_gcc-4.1.x.diff
@@ -0,0 +1,12 @@
+diff -Naur wapd-0.9.orig/wappasswd.c wapd-0.9/wappasswd.c
+--- wapd-0.9.orig/wappasswd.c 2008-01-27 16:09:43.000000000 +0100
++++ wapd-0.9/wappasswd.c 2008-01-27 16:12:11.000000000 +0100
+@@ -30,7 +30,7 @@
+ {
+ if (argc != 3) exit(EXIT_FAILURE);
+
+- char *sset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789./";
++ const char *sset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789./";
+ char salt[3] = "AA";
+
+ srand((int) time((time_t *) NULL)); \ No newline at end of file
diff --git a/media-plugins/vdr-wapd/files/wapaccess b/media-plugins/vdr-wapd/files/wapaccess
new file mode 100644
index 000000000000..ca53653a9a5f
--- /dev/null
+++ b/media-plugins/vdr-wapd/files/wapaccess
@@ -0,0 +1,5 @@
+# To create a new ''wapaccess'' file with a new user simply type:
+# wappasswd username password >> /etc/vdr/plugins/wapd/wapaccess
+
+# To delete a user from ''wapaccess'' use your favourite text editor
+# and remove the line ''username:passwordhash''.
diff --git a/media-plugins/vdr-wapd/files/wapd.mk b/media-plugins/vdr-wapd/files/wapd.mk
new file mode 100644
index 000000000000..7e8d21301417
--- /dev/null
+++ b/media-plugins/vdr-wapd/files/wapd.mk
@@ -0,0 +1,109 @@
+#
+# Makefile for a Video Disk Recorder plugin
+#
+# $Id$
+
+# The official name of this plugin.
+# This name will be used in the '-P...' option of VDR to load the plugin.
+# By default the main source file also carries this name.
+
+PLUGIN = wapd
+
+### The version number of this plugin (taken from the main source file):
+
+VERSION = $(shell grep 'static const char \*VERSION *=' $(PLUGIN).c | awk '{ print $$6 }' | sed -e 's/[";]//g')
+
+### The directory environment:
+
+# Use package data if installed...otherwise assume we're under the VDR source directory:
+PKGCFG = $(if $(VDRDIR),$(shell pkg-config --variable=$(1) $(VDRDIR)/vdr.pc),$(shell pkg-config --variable=$(1) vdr || pkg-config --variable=$(1) ../../../vdr.pc))
+LIBDIR = $(call PKGCFG,libdir)
+LOCDIR = $(call PKGCFG,locdir)
+PLGCFG = $(call PKGCFG,plgcfg)
+#
+TMPDIR ?= /tmp
+
+### The compiler options:
+
+export CFLAGS = $(call PKGCFG,cflags)
+export CXXFLAGS = $(call PKGCFG,cxxflags)
+
+### The version number of VDR's plugin API:
+
+APIVERSION = $(call PKGCFG,apiversion)
+
+### Allow user defined options to overwrite defaults:
+
+-include $(PLGCFG)
+
+### The name of the distribution archive:
+
+ARCHIVE = $(PLUGIN)-$(VERSION)
+PACKAGE = vdr-$(ARCHIVE)
+
+### The name of the shared object file:
+
+SOFILE = libvdr-$(PLUGIN).so
+
+### Includes and Defines (add further entries here):
+
+INCLUDES +=
+
+DEFINES += -DPLUGIN_NAME_I18N='"$(PLUGIN)"'
+
+### Enable this for debugging
+
+# DEFINES += -DWAPD_DEBUG
+
+### Enable this to replace WML output with HTML
+
+# DEFINES += -DWAPD_HTML
+
+### The object files (add further files here):
+
+OBJS = $(PLUGIN).o server.o tools.o access.o
+
+LIBS += -lcrypt
+
+### The main target:
+
+all: $(SOFILE) wappasswd
+
+### Implicit rules:
+
+%.o: %.c
+ $(CXX) $(CXXFLAGS) -c $(DEFINES) $(INCLUDES) -o $@ $<
+
+### Dependencies:
+
+MAKEDEP = $(CXX) -MM -MG
+DEPFILE = .dependencies
+$(DEPFILE): Makefile
+ @$(MAKEDEP) $(CXXFLAGS) $(DEFINES) $(INCLUDES) $(OBJS:%.o=%.c) > $@
+
+-include $(DEPFILE)
+
+### Targets:
+
+$(SOFILE): $(OBJS)
+ $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared $(OBJS) -o $@ $(LIBS)
+
+wappasswd: wappasswd.c
+ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o wappasswd wappasswd.c $(LIBS)
+
+install-lib: $(SOFILE)
+ install -D $^ $(DESTDIR)$(LIBDIR)/$^.$(APIVERSION)
+
+install: install-lib
+
+dist: $(I18Npo) clean
+ @-rm -rf $(TMPDIR)/$(ARCHIVE)
+ @mkdir $(TMPDIR)/$(ARCHIVE)
+ @cp -a * $(TMPDIR)/$(ARCHIVE)
+ @tar czf $(PACKAGE).tgz -C $(TMPDIR) $(ARCHIVE)
+ @-rm -rf $(TMPDIR)/$(ARCHIVE)
+ @echo Distribution package created as $(PACKAGE).tgz
+
+clean:
+ @-rm -f $(PODIR)/*.mo $(PODIR)/*.pot
+ @-rm -f $(OBJS) $(DEPFILE) *.so *.tgz core* *~ wappasswd
diff --git a/media-plugins/vdr-wapd/files/waphosts b/media-plugins/vdr-wapd/files/waphosts
new file mode 100644
index 000000000000..9fea92a0f571
--- /dev/null
+++ b/media-plugins/vdr-wapd/files/waphosts
@@ -0,0 +1,10 @@
+#
+# waphosts This file describes a number of host addresses that
+# are allowed to connect to the port of the vdr-wapd
+# plugin running on this system.
+# Syntax:
+#
+# IP-Address[/Netmask]
+#
+
+127.0.0.1 # always accept localhost
diff --git a/media-plugins/vdr-wapd/metadata.xml b/media-plugins/vdr-wapd/metadata.xml
new file mode 100644
index 000000000000..5f9f14619db8
--- /dev/null
+++ b/media-plugins/vdr-wapd/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>media-tv</herd>
+<maintainer>
+<email>vdr@gentoo.org</email>
+<name>Gentoo VDR Project</name>
+</maintainer>
+</pkgmetadata>
+
diff --git a/media-plugins/vdr-wapd/vdr-wapd-0.9.ebuild b/media-plugins/vdr-wapd/vdr-wapd-0.9.ebuild
new file mode 100644
index 000000000000..1854ed314923
--- /dev/null
+++ b/media-plugins/vdr-wapd/vdr-wapd-0.9.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit vdr-plugin-2
+
+DESCRIPTION="VDR plugin: lets VDR listen to WAP requests to allow remote control by WML enabled browsers"
+HOMEPAGE="http://www.heiligenmann.de/vdr/vdr/plugins/wapd.html"
+SRC_URI="http://www.heiligenmann.de/vdr/download/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+DEPEND=">=media-video/vdr-1.3.44"
+
+PATCHES=("${FILESDIR}/${P}_gcc-4.1.x.diff"
+ "${FILESDIR}/${P}-gentoo.diff")
+
+src_install() {
+ vdr-plugin-2_src_install
+
+ dobin "${S}/wappasswd"
+
+ insinto /etc/vdr/plugins/wapd
+ doins "${FILESDIR}"/{waphosts,wapaccess}
+}
diff --git a/media-plugins/vdr-wapd/vdr-wapd-0.9_p1-r1.ebuild b/media-plugins/vdr-wapd/vdr-wapd-0.9_p1-r1.ebuild
new file mode 100644
index 000000000000..2d76d72a3fdd
--- /dev/null
+++ b/media-plugins/vdr-wapd/vdr-wapd-0.9_p1-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit vdr-plugin-2
+
+MY_P="${PN}-${PV%_p*}"
+
+DESCRIPTION="VDR plugin: lets VDR listen to WAP requests to allow remote control by WML enabled browsers"
+HOMEPAGE="http://www.heiligenmann.de/vdr/vdr/plugins/wapd.html"
+SRC_URI="http://www.heiligenmann.de/vdr/download/${MY_P}.tgz
+ http://www.heiligenmann.de/vdr/download/${MY_P#vdr-}-patch1.diff.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+DEPEND=">=media-video/vdr-1.3.44"
+
+PATCHES=("${FILESDIR}/${MY_P}_gcc-4.1.x.diff"
+ "${FILESDIR}/${MY_P}-gentoo.diff"
+ "${WORKDIR}/${MY_P#vdr-}-patch1.diff")
+
+S="${WORKDIR}/${MY_P#vdr-}"
+
+src_prepare() {
+ cp "${FILESDIR}/wapd.mk" "${S}/Makefile"
+
+ vdr-plugin-2_src_prepare
+
+ sed -e "s:RegisterI18n://RegisterI18n:" -i wapd.c
+ remove_i18n_include server.c wapd.c
+}
+
+src_install() {
+ vdr-plugin-2_src_install
+
+ dobin "${S}/wappasswd"
+
+ insinto /etc/vdr/plugins/wapd
+ doins "${FILESDIR}"/{waphosts,wapaccess}
+}
diff --git a/media-plugins/vdr-wapd/vdr-wapd-0.9_p1.ebuild b/media-plugins/vdr-wapd/vdr-wapd-0.9_p1.ebuild
new file mode 100644
index 000000000000..81b43d533435
--- /dev/null
+++ b/media-plugins/vdr-wapd/vdr-wapd-0.9_p1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit vdr-plugin-2
+
+MY_P="${PN}-${PV%_p*}"
+
+DESCRIPTION="VDR plugin: lets VDR listen to WAP requests to allow remote control by WML enabled browsers"
+HOMEPAGE="http://www.heiligenmann.de/vdr/vdr/plugins/wapd.html"
+SRC_URI="http://www.heiligenmann.de/vdr/download/${MY_P}.tgz
+ http://www.heiligenmann.de/vdr/download/${MY_P#vdr-}-patch1.diff.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+DEPEND=">=media-video/vdr-1.3.44"
+
+PATCHES=("${FILESDIR}/${MY_P}_gcc-4.1.x.diff"
+ "${FILESDIR}/${MY_P}-gentoo.diff"
+ "${WORKDIR}/${MY_P#vdr-}-patch1.diff"
+ "${FILESDIR}/${MY_P}-as-needed.patch")
+
+S="${WORKDIR}/${MY_P#vdr-}"
+
+src_install() {
+ vdr-plugin-2_src_install
+
+ dobin "${S}/wappasswd"
+
+ insinto /etc/vdr/plugins/wapd
+ doins "${FILESDIR}"/{waphosts,wapaccess}
+}