summaryrefslogtreecommitdiff
path: root/app-cdr/xcdroast
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 /app-cdr/xcdroast
reinit the tree, so we can have metadata
Diffstat (limited to 'app-cdr/xcdroast')
-rw-r--r--app-cdr/xcdroast/Manifest12
-rw-r--r--app-cdr/xcdroast/files/cdda2wav_version.patch54
-rw-r--r--app-cdr/xcdroast/files/disable_version_check.patch11
-rw-r--r--app-cdr/xcdroast/files/fix_cddb_hidden_tracks.patch45
-rw-r--r--app-cdr/xcdroast/files/format-security.patch11
-rw-r--r--app-cdr/xcdroast/files/io_compile.patch21
-rw-r--r--app-cdr/xcdroast/files/io_progressbar_fix.patch39
-rw-r--r--app-cdr/xcdroast/files/suid-perms.patch36
-rw-r--r--app-cdr/xcdroast/metadata.xml12
-rw-r--r--app-cdr/xcdroast/xcdroast-0.98_alpha16-r3.ebuild77
10 files changed, 318 insertions, 0 deletions
diff --git a/app-cdr/xcdroast/Manifest b/app-cdr/xcdroast/Manifest
new file mode 100644
index 000000000000..1a59993e17b2
--- /dev/null
+++ b/app-cdr/xcdroast/Manifest
@@ -0,0 +1,12 @@
+AUX cdda2wav_version.patch 1494 SHA256 95b071ce347dd71cdb083d42cb10db7423adcc077a6251754ccd62ee66753ccb SHA512 d792b4b348441f7f07c84e9bb6a533956f3a132b5b9a39cf65c76bc71f4308809f425aa1f447339530c19efb015e10990197248ff85c4a2d88b3a3bb12a2df51 WHIRLPOOL 77efca95ebc021a165894e8f9c3951067b4851c4ff4ecdc5a4b6d271392ec96b97effa6e2d8a5b316e214ea56a8e8888c0e2195f2a866c17c0b5a01f7990dbcc
+AUX disable_version_check.patch 296 SHA256 a6c71b9ed42625e2de34ee1013fcf65eddac5d0aa8482cefb090149b353d6fc6 SHA512 97cc36e91cb997b577700c97e29b89780095df043dc5739e51b67a9741991504b4a8f7bde9697c1bff478b39dfdf222b7dfcaf8684ab98861136fd7eb0b97bac WHIRLPOOL b9d316a2b78f9875d7df749a948e3b69d3fe283212d4be571a7c5015dad49bb40195a2452f2c26c92a4ebc5a7d7a4d31b0e312e15a48b8ce7a20cd05f129b58e
+AUX fix_cddb_hidden_tracks.patch 1256 SHA256 38c3469c51906012e1c806021cf68a89253b467072e5e0976847b04c9ba00087 SHA512 8aa10b3bbe65e1c56ef1b6fb47ff4de9af4e7cfe323fb1588d25a288818b569a8a6efff340b5f16c26f5f199379325f6779f4fd69465ddbe332c4c72068ad332 WHIRLPOOL 6b873d580d36fc1bd91245d457c750e1f5aa05702ac479a56600131da66246c1bc1acf96a57718408be9a7815d76e86ab11f026e4caf7969527f4c88fdc5e3d3
+AUX format-security.patch 316 SHA256 951ead3e7542c67ed27b2fa64f5d102d1d9b31ed8d6969cc5d5bfc10e70bbc95 SHA512 8c9aca33910ae791f5a5e5d7ed99329df1925b28f38f7ee71287cd9ef40cda231b26fc207c68931b830f7ea67f131045a23b296d55e009935120a1fb48908da4 WHIRLPOOL da342b0ebf04730d318aea099f47bf58ae982f67e5aa2750dc8b3ba07fad3db31548194b6143cbd93f572569aa7d4d729f387b919e10a219773d5ff2ef76dd1a
+AUX io_compile.patch 625 SHA256 f47f4e450b5f36c3539e859e9c8808948d402d8dc2e1fa910be471193f4952bc SHA512 823b26a63729ae1f87a0ce156708cc49bdf5d699de73a42be97e21488f5ca5efb0ea6d6285aea49a5b00d3f6fc0d5f2017493aa6ebef4a70748806e6ad7cf2a0 WHIRLPOOL 3b1994c0099cba79dd4ae7d79d6861d20f79ef1da53061a170e253227eef31d56384034aa5eafb4789ec551f25a21c2702af16208e94fbd1c7c4c56cc1ed377e
+AUX io_progressbar_fix.patch 806 SHA256 4ffe9760b175567be7cd3c767acc62a1eee1d4bfa8c45aaece72659a0287b160 SHA512 7ac76062e49c7480157b16ad11d45ca81e6394515ad897fe59be8a6af938ac7d11e4d1160b21447c83e6aaed0147d29b3260a001d52eac1e806608e3b027d579 WHIRLPOOL d5fbe47b193a96cd0a83a9d6456886561a53c2748bbe1f0d23a247419fd0319fb305c970cfe0b41044435525ef595c845aef241e433e2406b84a995ee2b0aca9
+AUX suid-perms.patch 1362 SHA256 37767a4c5b701aba5a83294e83cf593b04ffb57225b7d9681556f384816fa1a9 SHA512 ca96f168cff8fe4052de92ac58451d39532d959be428284da7dc6307f0cd36e661e760b8dd5f5902260cc3a953b51e894b4b87ca4f0340f98f079da5c97c4a7a WHIRLPOOL c068ec34a315367e0137b87cd9f5b93ecece772980140e39b7ed93996f5e02be13a3ce43b8e08aeb5d5edaa1215b27eda256df2a9482b3e5d8b879cd2de8d3ed
+DIST xcdroast-0.98alpha16.tar.gz 3563666 SHA256 a2b96bb9799b5880befe2d01c5e6a0b63110dd61f59384935b750e72bc73984d SHA512 dec789955eb70a14f6bcb7c0895a6ca4b7c471cc5ee7ab12af1e671c8586c481c4a05e20eb42724d686d561a551809d9437dafadd3cd081079cefc28e0b94df7 WHIRLPOOL 06536da5dd32001ac71d9e6c9ef66869f2a14660b272cf9e711556a74d6e1bbbcb9eb6508a51a74e2f366933e5f43ca6fc5cea582fe0e96e459a66a9ec3c199d
+EBUILD xcdroast-0.98_alpha16-r3.ebuild 1542 SHA256 3f0808f1731425f79b49066a3799bb939860b2d4fd7fba9f25a80b68afb11165 SHA512 3ec73df2b8272826258ed8de2cfbec87f4f94b131b746386f13a8191be46f7a908e6e199e047e0667e0c482de065758622a4f5fbb208aadfb89c379b788fbb54 WHIRLPOOL ec1960be26ffd563ce5c1c382221f4c7064fdf498481a1c5bb04e301e5647ccb916676fb3a4b1d1646244415513685e50db5d84e450ca0eab813ecd1c7a2f7f4
+MISC ChangeLog 5654 SHA256 b5ab5b5a1d2db20eb4fc0fc21150abc74736aca858f7515f46a60c534d9e2858 SHA512 c32568263c63a2e867e572eca2c48f8113cc0263176fe95d5c7be1d5f5d43644f6d5be794ecbac364e4cb32dc7986f7322e4a11bab42ab8afc9f93594d5cbd22 WHIRLPOOL 8d24e56389dcb510b71787cc5920ab0424d2d2d45af5824313e146a49a13d0b87f7d14ce8ccfbc17f99d81c71d6cf010207cae93cbd8fd21dc820d64f80b9430
+MISC ChangeLog-2015 12009 SHA256 9c705713df6d84ed3ed67b7f11d28ce60d4dc6766e55d24b92423e7930c7b200 SHA512 9a365a64739ace1ba18816ec111a85b5760d5da6f42ae3a7683e54ccfe3821040c9892f6696b828d83a560664541499d19b14d7293db991056b16253c374c1f9 WHIRLPOOL 5b8d256e20e97356e9f59d13e20042606ba74a683449c8f377485dd5ee810c0e1fe7c5d72eddf1563cf9c749a577693ff2006d677f1363846d48ac233c1e195e
+MISC metadata.xml 409 SHA256 23b926073a54d0cd3a38b10ab1cba5a7dff81a9f4d9d3ad439721a90f1142ae7 SHA512 647dd37debb84ca815b0b8785739af072b02f37bf8007fbe53d6ebfac332fbc81c554821bba295ab10ef1b541510a21f2f19e59fe910e871a0596f83900f7ba9 WHIRLPOOL fff325e69de0c185cc967b50dbf49344ca5b574cea34914b2066b371c65f65f07308b5c63c956a18400d645af8cf95331792ca1b0e30c2fbdd926166765140aa
diff --git a/app-cdr/xcdroast/files/cdda2wav_version.patch b/app-cdr/xcdroast/files/cdda2wav_version.patch
new file mode 100644
index 000000000000..cd001e0ee7bf
--- /dev/null
+++ b/app-cdr/xcdroast/files/cdda2wav_version.patch
@@ -0,0 +1,54 @@
+diff -urNad xcdroast-0.98+0alpha16~/src/io.c xcdroast-0.98+0alpha16/src/io.c
+--- xcdroast-0.98+0alpha16~/src/io.c 2008-08-21 15:11:40.000000000 +0200
++++ xcdroast-0.98+0alpha16/src/io.c 2009-12-29 22:54:08.571188849 +0100
+@@ -10062,6 +10062,7 @@
+
+ gint check_version_cdda2wav(gchar *match, gchar *found) {
+ gchar line[MAXLINE];
++gchar vline[MAXLINE];
+ gchar ver[MAXLINE];
+ FILE *fpin;
+ gchar *p;
+@@ -10076,32 +10077,38 @@
+ }
+
+ strcpy(line,"");
++ strcpy(vline,"");
+ for (;;) {
+ if (fgets(line,MAXLINE,fpin) == NULL)
+ break;
+ dodebug(10,"got: %s",line);
++
++ /* only get first line */
++ if (strcmp(vline,"") == 0) {
++ strncpy(vline, line, MAXLINE);
++ }
+ }
+
+ if (pclose(fpin) == -1) {
+ g_error("pclose error\n");
+ }
+
+- if (strcmp(line,"") == 0 || strstr(line,"sh:") != NULL) {
++ if (strcmp(vline,"") == 0 || strstr(vline,"sh:") != NULL) {
+ /* failed to open - permission denied */
+ return 2;
+ }
+
+- /* now line contains the version string of cdda2wav */
++ /* now vline contains the version string of cdda2wav */
+ /* try to extract the version number */
+
+- p = strstr(line,"version");
++ p = strstr(vline,"version");
+ if (p != NULL) {
+ p = strtok(p+8, " _");
+ if (p != NULL) {
+ strcpy(ver,p);
+ }
+ } else {
+- p = strstr(line,"cdda2wav");
++ p = strstr(vline,"cdda2wav");
+ if (p != NULL) {
+ p = strtok(p+9, " ");
+ if (p != NULL) {
diff --git a/app-cdr/xcdroast/files/disable_version_check.patch b/app-cdr/xcdroast/files/disable_version_check.patch
new file mode 100644
index 000000000000..e72c4d0ddb36
--- /dev/null
+++ b/app-cdr/xcdroast/files/disable_version_check.patch
@@ -0,0 +1,11 @@
+--- a/src/init.c 2016-07-08 12:00:17.705356781 +0200
++++ b/src/init.c 2016-07-08 12:02:35.914358133 +0200
+@@ -790,7 +790,7 @@
+ debug = 0;
+ oldfontcode = 0;
+ *altdevscan = 1;
+- no_versioncheck = 0;
++ no_versioncheck = 1;
+ support_ontheflyaudio = 0;
+ c_locale_is_utf8 = 0;
+ ignoreProDVD = 0;
diff --git a/app-cdr/xcdroast/files/fix_cddb_hidden_tracks.patch b/app-cdr/xcdroast/files/fix_cddb_hidden_tracks.patch
new file mode 100644
index 000000000000..ca532f20d359
--- /dev/null
+++ b/app-cdr/xcdroast/files/fix_cddb_hidden_tracks.patch
@@ -0,0 +1,45 @@
+--- a/src/io.c
++++ b/src/io.c
+@@ -2665,6 +2665,8 @@
+ g_error("Unexpected output in cdda2wav toc-output\n");
+ }
+ trackinfo[tocnr]->track_nr = atoi(p1);
++ if (trackinfo[tocnr]->track_nr == 0)
++ cdinfo.nr_tracks++;
+ trackinfo[tocnr]->isosize = -1;
+
+ /* reststring into tmp2 - strip to remove leading spaces */
+@@ -8401,6 +8403,9 @@
+ if (extract_quoted(tmp) != 0)
+ return;
+
++ if (matchnr == 0 && trackinfo[matchnr]->track_nr == 0)
++ matchnr++;
++
+ if (mode == 0) {
+ if (matchnr >= cdinfo.nr_tracks) {
+ g_warning("invalid track count from cddb-server\n");
+@@ -8482,14 +8487,20 @@
+
+ /* build of command line */
+ if (mode == 0 || mode == 2) {
++ gint ntr = cdinfo.nr_tracks;
++
++ if (ntr > 0 && trackinfo[0]->track_nr == 0)
++ ntr--;
+ g_snprintf(tmp,MAXLINE,"cddb query %s %d ",
+- cdinfo.cddb_discid, cdinfo.nr_tracks);
++ cdinfo.cddb_discid, ntr);
+ for (i = 0; i < cdinfo.nr_tracks; i++) {
++ if (trackinfo[i]->track_nr == 0)
++ continue;
+ g_snprintf(tmp2,MAXLINE,"%d ",
+ trackinfo[i]->start_sec + 150);
+ strcat(tmp,tmp2);
+ }
+- g_snprintf(tmp2,MAXLINE,"%d",cdinfo.total_size / 75);
++ g_snprintf(tmp2,MAXLINE,"%d",(cdinfo.leadout + 150) / 75);
+ strcat(tmp,tmp2);
+ } else {
+ /* get data from toc file */
+
diff --git a/app-cdr/xcdroast/files/format-security.patch b/app-cdr/xcdroast/files/format-security.patch
new file mode 100644
index 000000000000..9d01cf4f7758
--- /dev/null
+++ b/app-cdr/xcdroast/files/format-security.patch
@@ -0,0 +1,11 @@
+--- xcdroast-0.98alpha16/src/setup.c.orig 2008-08-21 12:07:18.000000000 +0400
++++ xcdroast-0.98alpha16/src/setup.c 2016-07-09 11:26:54.724084818 +0300
+@@ -4468,7 +4468,7 @@
+ if (!textonly) {
+ show_dialog(ICO_ERROR,tmp, T_OK, NULL, NULL, 0);
+ } else {
+- g_warning(tmp);
++ g_warning("%s",tmp);
+ }
+ }
+ }
diff --git a/app-cdr/xcdroast/files/io_compile.patch b/app-cdr/xcdroast/files/io_compile.patch
new file mode 100644
index 000000000000..339523d42f75
--- /dev/null
+++ b/app-cdr/xcdroast/files/io_compile.patch
@@ -0,0 +1,21 @@
+--- a/src/io.c.org 2009-02-24 09:38:27.000000000 +0100
++++ b/src/io.c 2009-02-24 09:45:18.000000000 +0100
+@@ -1903,7 +1903,8 @@
+ }
+
+ strcpy(str,"");
+- fgets(str,MAXLINE,fpin);
++ if (fgets(str,MAXLINE,fpin) == NULL)
++ g_error("fgets error\n");
+
+ if (pclose(fpin) == -1) {
+ g_error("pclose error\n");
+@@ -4720,7 +4721,7 @@
+ dolog(3, "Saving extended output to %s\n", fname);
+
+ /* write to file */
+- fd = open(fname,O_WRONLY | O_CREAT);
++ fd = open(fname, O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR);
+ if (fd < 0) {
+ g_warning("Can't open file %s for writing\n",fname);
+ return 1;
diff --git a/app-cdr/xcdroast/files/io_progressbar_fix.patch b/app-cdr/xcdroast/files/io_progressbar_fix.patch
new file mode 100644
index 000000000000..745af45d7e73
--- /dev/null
+++ b/app-cdr/xcdroast/files/io_progressbar_fix.patch
@@ -0,0 +1,39 @@
+--- a/src/io.c.last So. Jan 24 19:18:45 2010
++++ b/src/io.c Fr. Jul 16 10:59:32 2010
+@@ -3202,6 +3202,8 @@
+ close(fd2[1]);
+ }
+
++ g_setenv("LC_ALL", "C", TRUE);
++
+ /* startup child */
+ if (execl("/bin/sh", "sh", "-c", cmd ,(void *)NULL) < 0) {
+ g_error("execl error\n");
+@@ -3402,6 +3404,8 @@
+ close(fd3[1]);
+ }
+
++ g_setenv("LC_ALL", "C", TRUE);
++
+ /* startup child */
+ if (execv(callpath,arglist) < 0) {
+ g_error("execv error\n");
+@@ -3506,6 +3510,8 @@
+ close(pipefd[1]);
+ }
+
++ g_setenv("LC_ALL", "C", TRUE);
++
+ /* startup first child */
+ if (execv(callpath,arglist) < 0) {
+ g_error("execv error\n");
+@@ -3568,6 +3574,8 @@
+ close(fd3[1]);
+ }
+
++ g_setenv("LC_ALL", "C", TRUE);
++
+ /* startup second child */
+ if (execv(callpath2,arglist2) < 0) {
+ g_error("execv error\n");
+
diff --git a/app-cdr/xcdroast/files/suid-perms.patch b/app-cdr/xcdroast/files/suid-perms.patch
new file mode 100644
index 000000000000..1c804bc1775c
--- /dev/null
+++ b/app-cdr/xcdroast/files/suid-perms.patch
@@ -0,0 +1,36 @@
+diff -Naurd xcdroast-0.98alpha16.orig/doc/README.nonroot xcdroast-0.98alpha16/doc/README.nonroot
+--- xcdroast-0.98alpha16.orig/doc/README.nonroot 2003-10-27 23:37:40.000000000 +0300
++++ xcdroast-0.98alpha16/doc/README.nonroot 2016-07-07 21:32:35.006587826 +0300
+@@ -72,7 +72,7 @@
+ Please change now to the corresponding directory and enter:
+
+ chown root xcdrwrap
+- chmod 4755 xcdrwrap
++ chmod 4711 xcdrwrap
+
+
+ Usage of the non-root-mode
+diff -Naurd xcdroast-0.98alpha16.orig/src/init.c xcdroast-0.98alpha16/src/init.c
+--- xcdroast-0.98alpha16.orig/src/init.c 2008-08-20 20:20:23.000000000 +0400
++++ xcdroast-0.98alpha16/src/init.c 2016-07-07 21:32:35.006587826 +0300
+@@ -670,7 +670,7 @@
+
+ /* check file mode of wrapper */
+ if (stat(tmp,&buf) == 0) {
+- if (buf.st_mode != 0104755) {
++ if (buf.st_mode != 0104711) {
+ dodebug(3,"Note: %s wrong modes set (0%o)\n", tmp, buf.st_mode);
+ nofail = 0;
+ }
+diff -Naurd xcdroast-0.98alpha16.orig/src/io.c xcdroast-0.98alpha16/src/io.c
+--- xcdroast-0.98alpha16.orig/src/io.c 2008-08-21 17:11:40.000000000 +0400
++++ xcdroast-0.98alpha16/src/io.c 2016-07-07 21:32:35.003587931 +0300
+@@ -10380,7 +10380,7 @@
+ strcat(ret,tmp);
+ #endif
+ /* old nonroot mode - 2755 */
+- g_snprintf(tmp,MAXLINE,"%s 4755 %s\n", cmd_chmod, bin);
++ g_snprintf(tmp,MAXLINE,"%s 4711 %s\n", cmd_chmod, bin);
+ strcat(ret,tmp);
+
+
diff --git a/app-cdr/xcdroast/metadata.xml b/app-cdr/xcdroast/metadata.xml
new file mode 100644
index 000000000000..fc37d15c7ade
--- /dev/null
+++ b/app-cdr/xcdroast/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>bircoph@gentoo.org</email>
+ <name>Andrew Savchenko</name>
+ </maintainer>
+ <longdescription>Menu based front-end to mkisofs and cdrecord</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">xcdroast</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-cdr/xcdroast/xcdroast-0.98_alpha16-r3.ebuild b/app-cdr/xcdroast/xcdroast-0.98_alpha16-r3.ebuild
new file mode 100644
index 000000000000..1f9180da2e72
--- /dev/null
+++ b/app-cdr/xcdroast/xcdroast-0.98_alpha16-r3.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit gnome2-utils
+
+DESCRIPTION="Lightweight cdrtools front-end for CD and DVD writing"
+HOMEPAGE="http://www.xcdroast.org/"
+SRC_URI="mirror://sourceforge/xcdroast/${P/_/}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc sparc x86"
+IUSE="nls suid"
+
+RDEPEND=">=x11-libs/gtk+-2:2
+ app-cdr/cdrtools"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ virtual/pkgconfig"
+
+S=${WORKDIR}/${P/_/}
+
+PATCHES=(
+ "${FILESDIR}"/cdda2wav_version.patch
+ "${FILESDIR}"/fix_cddb_hidden_tracks.patch
+ "${FILESDIR}"/io_compile.patch
+ "${FILESDIR}"/io_progressbar_fix.patch
+ "${FILESDIR}"/suid-perms.patch
+ "${FILESDIR}"/disable_version_check.patch
+ "${FILESDIR}"/format-security.patch
+)
+
+src_prepare() {
+ default
+
+ # fix Norwegian locales
+ mv po/{no,nb}.po || die
+ mv po/{no,nb}.gmo || die
+ sed -i -e 's/no/nb/' po/LINGUAS || die
+}
+
+src_configure() {
+ econf \
+ $(use_enable nls) \
+ $(use_enable suid nonrootmode) \
+ --enable-gtk2 \
+ --disable-dependency-tracking \
+ --mandir=/usr/share/man \
+ --sysconfdir=/etc
+}
+
+src_compile() {
+ emake PREFIX=/usr
+}
+
+src_install() {
+ emake PREFIX=/usr DESTDIR="${D}" install
+ dodoc -r AUTHORS ChangeLog README doc/*
+
+ insinto /usr/share/icons/hicolor/48x48/apps
+ newins xpms/xcdricon.xpm xcdroast.xpm
+
+ make_desktop_entry xcdroast "X-CD-Roast" xcdroast "AudioVideo;DiscBurning"
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}