diff options
author | Miroslav Šulc <fordfrog@gentoo.org> | 2011-09-08 11:59:40 +0000 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2011-09-08 11:59:40 +0000 |
commit | 855a31a2a3c65e150572ddc951703aacd5ea1b1f (patch) | |
tree | a242f810a907032d3957ed20f023355c440797b1 /app-cdr | |
parent | Add Oracle-BCLA-JavaSE to @EULA group. (diff) | |
download | historical-855a31a2a3c65e150572ddc951703aacd5ea1b1f.tar.gz historical-855a31a2a3c65e150572ddc951703aacd5ea1b1f.tar.bz2 historical-855a31a2a3c65e150572ddc951703aacd5ea1b1f.zip |
app-cdr/webcdwriter: switched from app-misc/openjnlp to dev-java/netx
Package-Manager: portage-2.1.10.14/cvs/Linux x86_64
Diffstat (limited to 'app-cdr')
-rw-r--r-- | app-cdr/webcdwriter/ChangeLog | 12 | ||||
-rw-r--r-- | app-cdr/webcdwriter/Manifest | 3 | ||||
-rw-r--r-- | app-cdr/webcdwriter/webcdwriter-2.8.2-r1.ebuild | 186 |
3 files changed, 198 insertions, 3 deletions
diff --git a/app-cdr/webcdwriter/ChangeLog b/app-cdr/webcdwriter/ChangeLog index ecc7e16df509..1b5d027dd8e9 100644 --- a/app-cdr/webcdwriter/ChangeLog +++ b/app-cdr/webcdwriter/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for app-cdr/webcdwriter -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-cdr/webcdwriter/ChangeLog,v 1.17 2009/03/28 18:12:03 serkan Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-cdr/webcdwriter/ChangeLog,v 1.18 2011/09/08 11:59:40 fordfrog Exp $ + +*webcdwriter-2.8.2-r1 (08 Sep 2011) + + 08 Sep 2011; Miroslav Šulc <fordfrog@gentoo.org> + +webcdwriter-2.8.2-r1.ebuild: + Switched from app-misc/openjnlp to dev-java/netx to be able to remove + dev-java/jnlp-bin. Had to drop ~ppc from archs as dev-java/netx does + not have ppc keyword yet. 28 Mar 2009; Serkan Kaba <serkan@gentoo.org> webcdwriter-2.8.2: Add openjnlp to DEPEND as well. Fixes bug #264069 reported by Diego E. diff --git a/app-cdr/webcdwriter/Manifest b/app-cdr/webcdwriter/Manifest index d362c9fc740a..f9665e9b5d65 100644 --- a/app-cdr/webcdwriter/Manifest +++ b/app-cdr/webcdwriter/Manifest @@ -2,6 +2,7 @@ AUX 2.8.2-javac-flags.patch 1990 RMD160 98a8c755d0e423451b2161502cfc0f19194c8b7a AUX configure.patch 397 RMD160 ff252dd9b2caad21b6d15351e8ca78de975a2160 SHA1 8f75acda959ac7dfb14308f28ab0dc54f200c8ef SHA256 09c4be09edbb2fa43d6c2e821b88b920e7235d7bf78092336ab88c088f111c72 AUX webcdwriter.rc 803 RMD160 e9d997a1f030a3c97f90dfed04287efea8b3337d SHA1 110a0acd496eb4b479815d2bc58454cf17f10b47 SHA256 7e7933349d7bf5d6655476cdd94da715b17d28d80a59511ac535c882f4effe71 DIST webCDwriter-2.8.2.tar.bz2 619761 RMD160 d932d7bdfccd1ff8047bf02bef495e7c5956ca10 SHA1 3c1785c83f018c0c61e97ae0cbab9ffbb983f2ad SHA256 52dd4792ec80b3bd8b6c96e42a00c43d0f73bda5c4277cd065333d279f3f5cf3 +EBUILD webcdwriter-2.8.2-r1.ebuild 4380 RMD160 419979192623cec6c859886065d7c47faa77e389 SHA1 a993b8a59ed622f7c152f95f7891b4a99325b0c5 SHA256 21335208a4880881ff3e2c14e2e402070647512d70049a08016a1c398502deb1 EBUILD webcdwriter-2.8.2.ebuild 4403 RMD160 3e55de357766e4fade6c054cbe6aceed9be489eb SHA1 22ad9158c04147bb4e49ead3af60cb7cf519acc2 SHA256 1bd4805fc5e7edca4fcb3566358a77c46bba464aeef68fc085e1255b19d98102 -MISC ChangeLog 3379 RMD160 6e5ead41d075e820f62947bd231fbbec8aeec7cb SHA1 7178f0e655ddc4f3c25c029aee27055d7472982a SHA256 7ae1b55c9ad2c01c29f9de06f9968c443427c222828b00c60165d6a438a8d0a1 +MISC ChangeLog 3674 RMD160 bf85ed40f07436023a1ff56be5ebcc4111ae90c7 SHA1 bfb10b2b95a8ee8a744ea0379961c15f85930c7c SHA256 a99fd6680fb3ba3fec29e9d0025901f446ee59ac3a83dc12215af790c7954224 MISC metadata.xml 676 RMD160 ce6924d943ccda47e4ee1743b17c2105656a7466 SHA1 bdaaa7be79c0be5c71d07454a3fa6a54b57744ae SHA256 fe2246e40a0513506f9fefb071243f844159ee9519cdb7d5b68d561451e9aa9e diff --git a/app-cdr/webcdwriter/webcdwriter-2.8.2-r1.ebuild b/app-cdr/webcdwriter/webcdwriter-2.8.2-r1.ebuild new file mode 100644 index 000000000000..87c8cc10096f --- /dev/null +++ b/app-cdr/webcdwriter/webcdwriter-2.8.2-r1.ebuild @@ -0,0 +1,186 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-cdr/webcdwriter/webcdwriter-2.8.2-r1.ebuild,v 1.1 2011/09/08 11:59:40 fordfrog Exp $ + +inherit eutils java-pkg-2 pam + +MY_P=${P/cd/CD} + +DESCRIPTION="Make CD-writer(s) available to all 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="~amd64 ~x86" +IUSE="pam mp3 sox vorbis" + +DEPEND=">=virtual/jdk-1.6 + dev-java/netx" +RDEPEND="${DEPEND} + app-cdr/cdrdao + virtual/cdrtools + mp3? ( media-sound/mpg123 ) + sox? ( media-sound/sox ) + vorbis? ( media-sound/vorbis-tools ) + >=virtual/jre-1.4 + dev-java/netx" + +S=${WORKDIR}/${MY_P} + +src_unpack() { + unpack ${A} + rm -v "${S}"/MD5Verify/*.jar "${S}"/webCDcreator/4plugin/*.jar || die +} + +src_compile() { + epatch "${FILESDIR}/configure.patch" "${FILESDIR}"/${PV}-javac-flags.patch + + local myconf + + local java_conf="$(java-pkg_javac-args) -classpath $(java-pkg_getjars netx)" + java_conf="${java_conf} -encoding ISO-8859-1" + use pam || myconf="--pam" + myconf="${myconf} --user=root --group=root" + ./configure ${myconf} --javac-flags="${java_conf}" || die "configure failed" + make || die "make failed" +} + +src_install() { + newinitd "${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 + + PORT="12411" + if use mp3 + then + MP3="on" + else + MP3="off" + fi + if use vorbis + then + OGG="on" + else + OGG="off" + fi + if use sox + then + AUDIO="on" + else + AUDIO="off" + fi + + cd "${S}"/CDWserver/config + cat config.default \ + | sed s*#portNo=12411*portNo=${PORT}*g \ + | sed s*#MP3decoding=on*MP3decoding=${MP3}*g \ + | sed s*"# ogg123"*oggDecoding=${OGG}*g \ + | sed s*#audioCDSupport=on*audioCDSupport=${AUDIO}*g \ + > 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 + + cd "${S}"/CDWserver/test + make || die "make -C CDWserver/test failed" + for name in `find -type f -perm -111` + do + dobin ${name} + done + + insinto /var/CDWserver/http/rcdrecord + + cd "${S}"/rcdrecord + for name in `find -name '*.html'` + do + doins ${name} + done + + cd "${S}"/webCDcreator + cp start.html index.html + 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 -type f` + do + if test "${name}" != Makefile + then + doins ${name} + fi + done + done + + cd "${S}"/tools + make || die "make -C tools failed" + mv CDWconfig.sh.tmp "${S}"/CDWserver/CDWconfig.sh + + cd "${S}" + + dosbin "${S}"/CDWserver/CDWconfig.sh + 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 + + # back to defaults from -m700 + diropts -m755 + java-pkg_regjar "${D}"/var/CDWserver/http/webCDcreator/*.jar + + java-pkg_jarinto /var/CDWserver/export/Server/tools + java-pkg_dojar "${S}/MD5Verify/MD5Verify.jar" + + dodoc ChangeLog README CREDITS || die + dohtml *.html || die + + use pam && pamd_mimic system-auth cdwserver auth account password session +} + +pkg_postinst() { + # ripped from the makefile + local PORTEXT + if [ "${PORT}" == "80" ] + then + PORTEXT="" + else + PORTEXT=":${PORT}" + fi + elog "To do:" + elog "1. Enter \"/etc/init.d/CDWserver start\" to start your webCDwriter" + elog "2. Open your web browser and try" + elog " \"http://127.0.0.1${PORTEXT}\" or \"http://`hostname`${PORTEXT}\"" + elog "to check the status of your webCDwriter" +# elog "3. Run \"/usr/sbin/CDWconfig.sh\" to set the rights of CDWserver" + echo + ewarn "Remember to setup /etc/CDWserver/config" +} |