diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /media-plugins/vdr-wapd/files | |
download | gentoo-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/files')
-rw-r--r-- | media-plugins/vdr-wapd/files/confd | 9 | ||||
-rw-r--r-- | media-plugins/vdr-wapd/files/rc-addon.sh | 10 | ||||
-rw-r--r-- | media-plugins/vdr-wapd/files/vdr-wapd-0.9-as-needed.patch | 16 | ||||
-rw-r--r-- | media-plugins/vdr-wapd/files/vdr-wapd-0.9-gentoo.diff | 14 | ||||
-rw-r--r-- | media-plugins/vdr-wapd/files/vdr-wapd-0.9_gcc-4.1.x.diff | 12 | ||||
-rw-r--r-- | media-plugins/vdr-wapd/files/wapaccess | 5 | ||||
-rw-r--r-- | media-plugins/vdr-wapd/files/wapd.mk | 109 | ||||
-rw-r--r-- | media-plugins/vdr-wapd/files/waphosts | 10 |
8 files changed, 185 insertions, 0 deletions
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 |