summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Weiler <pylon@gentoo.org>2005-06-10 18:24:46 +0000
committerLars Weiler <pylon@gentoo.org>2005-06-10 18:24:46 +0000
commit15533249246c0fc939fd0caed8c21d680180b90b (patch)
tree56483abe4bc0c979629796412e9afc0ee98b7cf9 /app-cdr
parentNew revision with patch for Gentoo/FreeBSD (bump to avoid adding it in stable). (diff)
downloadhistorical-15533249246c0fc939fd0caed8c21d680180b90b.tar.gz
historical-15533249246c0fc939fd0caed8c21d680180b90b.tar.bz2
historical-15533249246c0fc939fd0caed8c21d680180b90b.zip
New ebuild from bug #8017 submitted by Francisco Javier.
Package-Manager: portage-2.0.51.22-r1
Diffstat (limited to 'app-cdr')
-rw-r--r--app-cdr/webcdwriter/ChangeLog11
-rw-r--r--app-cdr/webcdwriter/Manifest7
-rw-r--r--app-cdr/webcdwriter/files/config-root.patch10
-rw-r--r--app-cdr/webcdwriter/files/configure.patch16
-rw-r--r--app-cdr/webcdwriter/files/digest-webcdwriter-2.6.81
-rw-r--r--app-cdr/webcdwriter/files/webcdwriter.rc30
-rw-r--r--app-cdr/webcdwriter/metadata.xml12
-rw-r--r--app-cdr/webcdwriter/webcdwriter-2.6.8.ebuild129
8 files changed, 216 insertions, 0 deletions
diff --git a/app-cdr/webcdwriter/ChangeLog b/app-cdr/webcdwriter/ChangeLog
new file mode 100644
index 000000000000..313d8f6995cc
--- /dev/null
+++ b/app-cdr/webcdwriter/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for app-cdr/webcdwriter
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-cdr/webcdwriter/ChangeLog,v 1.1 2005/06/10 18:24:46 pylon Exp $
+
+*webcdwriter-2.6.8 (10 Jun 2005)
+
+ 10 Jun 2005; Lars Weiler <pylon@gentoo.org> +files/config-root.patch,
+ +files/configure.patch, +files/webcdwriter.rc, +metadata.xml,
+ +webcdwriter-2.6.8.ebuild:
+ New ebuild from bug #8017 submitted by Francisco Javier. Thanks!
+
diff --git a/app-cdr/webcdwriter/Manifest b/app-cdr/webcdwriter/Manifest
new file mode 100644
index 000000000000..38409f6d8195
--- /dev/null
+++ b/app-cdr/webcdwriter/Manifest
@@ -0,0 +1,7 @@
+MD5 4802892d5988ca1e36a50e5e8a2c7292 webcdwriter-2.6.8.ebuild 3029
+MD5 cfe975200ea41b14081dcb465baaf0c4 metadata.xml 656
+MD5 687847099199386d902212aee676eab6 ChangeLog 478
+MD5 8f8f44c42ee38330ea3a7b9e559aaab3 files/configure.patch 397
+MD5 825a17dfddef56176d77713efd969aec files/webcdwriter.rc 803
+MD5 5be299cc59fc9d258fe669c9f3ab8dc6 files/digest-webcdwriter-2.6.8 70
+MD5 de11fda53f812cf8a6bccc2f4df4cff5 files/config-root.patch 260
diff --git a/app-cdr/webcdwriter/files/config-root.patch b/app-cdr/webcdwriter/files/config-root.patch
new file mode 100644
index 000000000000..e13f5c8bc79a
--- /dev/null
+++ b/app-cdr/webcdwriter/files/config-root.patch
@@ -0,0 +1,10 @@
+--- CDWserver/config/config-root.old 2004-02-08 00:31:09.000000000 +0100
++++ CDWserver/config/config-root 2004-09-27 09:54:51.383252256 +0200
+@@ -3,5 +3,5 @@
+ # /etc/init.d/CDWserver restart
+ #
+
+-user=cdwserve
+-group=cdwserve
++#user=cdwserve
++#group=cdwserve
diff --git a/app-cdr/webcdwriter/files/configure.patch b/app-cdr/webcdwriter/files/configure.patch
new file mode 100644
index 000000000000..1ea64f7c28df
--- /dev/null
+++ b/app-cdr/webcdwriter/files/configure.patch
@@ -0,0 +1,16 @@
+--- configure.old 2004-05-01 20:45:25.000000000 +0200
++++ configure 2004-09-24 15:07:52.489668584 +0200
+@@ -202,11 +202,11 @@
+ MAKE=gmake
+ ;;
+ Linux)
+- cxxflags="-D_REENTRANT"
++ cxxflags="$CXXFLAGS -D_REENTRANT"
+ if [ "$DEBUG" = "yes" ]; then
+ cxxflags="-g $cxxflags"
+ else
+- cxxflags="-O2 $cxxflags"
++ cxxflags=" $cxxflags"
+ fi
+ lflags="-lcrypt -lpthread"
+ if [ "$PRO" = "yes" ]; then
diff --git a/app-cdr/webcdwriter/files/digest-webcdwriter-2.6.8 b/app-cdr/webcdwriter/files/digest-webcdwriter-2.6.8
new file mode 100644
index 000000000000..48983bb7bdc7
--- /dev/null
+++ b/app-cdr/webcdwriter/files/digest-webcdwriter-2.6.8
@@ -0,0 +1 @@
+MD5 fb17bcc03dcdcd720f771ea3909fbc33 webCDwriter-2.6.8.tar.bz2 539368
diff --git a/app-cdr/webcdwriter/files/webcdwriter.rc b/app-cdr/webcdwriter/files/webcdwriter.rc
new file mode 100644
index 000000000000..1a8d10455226
--- /dev/null
+++ b/app-cdr/webcdwriter/files/webcdwriter.rc
@@ -0,0 +1,30 @@
+#!/sbin/runscript
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-cdr/webcdwriter/files/webcdwriter.rc,v 1.1 2005/06/10 18:24:46 pylon Exp $
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting CDWserver"
+ for tool in cdrdao cdrecord mkisofs readcd
+ do
+ if [ -e /usr/bin/$tool ]
+ then
+ cp /usr/bin/$tool /var/CDWserver/bin
+ fi
+ done
+ start-stop-daemon --start --quiet --pidfile /var/run/CDWserver.pid \
+ --exec /usr/sbin/CDWserver
+ eend $?
+ touch /var/lock/subsys/CDWserver
+}
+
+stop() {
+ ebegin "Stopping CDWserver"
+ start-stop-daemon --stop --quiet --pidfile /var/run/CDWserver.pid
+ eend $?
+ rm -f /var/lock/subsys/CDWserver
+}
diff --git a/app-cdr/webcdwriter/metadata.xml b/app-cdr/webcdwriter/metadata.xml
new file mode 100644
index 000000000000..7d7f3e27203e
--- /dev/null
+++ b/app-cdr/webcdwriter/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>media-optical</herd>
+<longdescription>webCDwriter can be used to make the CD- and DVD-writer(s)
+ connected to a Linux box available to all users in your network. It consists
+ of the server CDWserver and the clients webCDcreator and rcdrecord.
+ CDWserver stores the files transmitted by the clients, reserves the
+ CD-writer and controls the CD-writer using cdrecord. webCDcreator is a Java
+ applet that runs within your browser, assists you when putting together a CD
+ and transmits the files.</longdescription>
+</pkgmetadata>
diff --git a/app-cdr/webcdwriter/webcdwriter-2.6.8.ebuild b/app-cdr/webcdwriter/webcdwriter-2.6.8.ebuild
new file mode 100644
index 000000000000..cee51f6ac832
--- /dev/null
+++ b/app-cdr/webcdwriter/webcdwriter-2.6.8.ebuild
@@ -0,0 +1,129 @@
+# Copyright 1999-2005 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-cdr/webcdwriter/webcdwriter-2.6.8.ebuild,v 1.1 2005/06/10 18:24:46 pylon Exp $
+
+inherit eutils java-pkg
+
+MY_P="${P/cd/CD}"
+DESCRIPTION="Make a single CD-writer available to the users in your network"
+HOMEPAGE="http://joerghaeger.de/webCDwriter/index.html"
+SRC_URI="http://joerghaeger.de/webCDwriter/download/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="java pam mp3 sox oggvorbis"
+
+DEPEND="java? ( virtual/jdk dev-java/jnlp-bin )"
+RDEPEND="
+ app-cdr/cdrdao
+ app-cdr/cdrtools
+ mp3? media-sound/mpg123
+ sox? media-sound/sox
+ oggvorbis? media-sound/vorbis-tools"
+
+S="${WORKDIR}/${MY_P}"
+
+src_compile() {
+ if use java
+ then
+ java-pkg_getjar jnlp-bin jnlp.jar
+ fi
+
+ epatch ${FILESDIR}/configure.patch
+ epatch ${FILESDIR}/config-root.patch
+
+ local myconf
+
+ use pam || myconf="--pam"
+ myconf="${myconf} --user=root --group=root"
+ ./configure ${myconf} || die "configure failed"
+ make || die "make failed"
+}
+
+src_install() {
+
+ exeinto /etc/init.d/
+ newexe ${FILESDIR}/${PN}.rc CDWserver
+
+ diropts -m700
+ dodir /etc/CDWserver
+ keepdir /var/CDWserver/bin
+ dodir /var/CDWserver/export/Server/tools
+ dodir /var/CDWserver/http/rcdrecord
+ keepdir /var/CDWserver/projects
+ keepdir /var/log/CDWserver
+ keepdir /var/spool/CDWserver
+
+ insinto /etc/CDWserver
+
+ mv ${S}/webCDcreator/start.html ${S}/webCDcreator/index.html
+
+ cd ${S}/CDWserver/config
+ for name in `find -name '[!M]*' -type f`
+ do
+ doins ${name}
+ done
+
+ cd ${S}/CDWserver/http
+ for dirname in `find -type d`
+ do
+ cd ${S}/CDWserver/http/${dirname}
+ dodir /var/CDWserver/http/${dirname}
+ insinto /var/CDWserver/http/${dirname}
+ for name in `find -name '[!M]*' -type f`
+ do
+ doins ${name}
+ done
+ done
+
+ insinto /var/CDWserver/http/rcdrecord
+
+ cd ${S}/rcdrecord
+ for name in `find -name '*.html'`
+ do
+ doins ${name}
+ done
+
+ cd ${S}/webCDcreator
+ for dirname in `find -type d`
+ do
+ cd ${S}/webCDcreator/${dirname}
+ dodir /var/CDWserver/http/webCDcreator/${dirname}
+ insinto /var/CDWserver/http/webCDcreator/${dirname}
+ for name in `find -name '[!Mak]*' -type f`
+ do
+ doins ${name}
+ done
+ done
+
+ cd ${S}
+
+ dosbin ${S}/CDWserver/CDWserver
+ dobin ${S}/CDWserver/CDWrootGate
+ dobin ${S}/CDWserver/CDWverify
+ dobin ${S}/CDWserver/setScheduler
+ dobin ${S}/rcdrecord/rcdrecord
+
+ dosym /usr/sbin/CDWserver /usr/sbin/CDWpasswd
+ dosym /usr/sbin/CDWserver /usr/sbin/CDWuseradd
+ dosym /usr/bin/rcdrecord /usr/bin/files2cd
+ dosym /usr/bin/rcdrecord /usr/bin/image2cd
+
+ insinto /var/CDWserver/export/Server/tools
+ doins ${S}/MD5Verify/MD5Verify.jar
+
+ dodoc COPYING ChangeLog README CREDITS
+ dohtml *.html
+}
+
+pkg_postinst() {
+ # ripped from the makefile
+ einfo "Now you can start CDWserver by"
+ einfo " /etc/init.d/CDWserver start"
+ einfo "Then visit"
+ einfo " http://localhost:12411"
+ einfo "or try rcdrecord or files2cd on the command line."
+ echo
+ ewarn "Remember to setup /etc/CDWserver/config"
+}