forced stable for x86 because of older tilp version security problems
authorPatrick Kursawe <phosphan@gentoo.org>
Thu, 2 Dec 2004 08:47:19 +0000 (08:47 +0000)
committerPatrick Kursawe <phosphan@gentoo.org>
Thu, 2 Dec 2004 08:47:19 +0000 (08:47 +0000)
app-sci/tilp/ChangeLog
app-sci/tilp/Manifest
app-sci/tilp/files/6.76-makefile-desktop.patch [new file with mode: 0644]
app-sci/tilp/files/6.76-makefile.patch [new file with mode: 0644]
app-sci/tilp/files/digest-tilp-6.76 [new file with mode: 0644]
app-sci/tilp/tilp-6.76.ebuild [new file with mode: 0644]

index e91ddb2e52525fa05eea34ecea044c856fa4f46e..77fba15942f039831a6d554cf3157008abe107b3 100644 (file)
@@ -1,6 +1,14 @@
 # ChangeLog for app-sci/tilp
 # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-sci/tilp/ChangeLog,v 1.11 2004/09/03 15:28:15 dholm Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-sci/tilp/ChangeLog,v 1.12 2004/12/02 08:47:19 phosphan Exp $
+
+*tilp-6.76 (02 Dec 2004)
+
+  02 Dec 2004; Patrick Kursawe <phosphan@gentoo.org>
+  +files/6.76-makefile-desktop.patch, +files/6.76-makefile.patch,
+  +tilp-6.76.ebuild:
+  Version bump. Fixes a security problem of older versions (temporary file with
+  fixed name in /tmp)
 
   03 Sep 2004; David Holm <dholm@gentoo.org> tilp-6.74.ebuild:
   Added to ~ppc.
index 2dd4f785c1a33964b2b32893fa24dba8b5c1570b..8eef0850527364cb2d7f176f68412f09f6c60a00 100644 (file)
@@ -1,10 +1,14 @@
-MD5 67fb4a8f4862e9ec7fd956917f9f94cb ChangeLog 1943
-MD5 8c623e53daafa025137077c6b65815bd metadata.xml 156
-MD5 429ce8f7f9ec8520a8862b5feda45756 tilp-6.68-r2.ebuild 1377
 MD5 1cef7468aa785a6211ba6931363a06a4 tilp-6.74.ebuild 1361
-MD5 85eb0fa9a7b3fb2b8a27f8589b96dcaa files/digest-tilp-6.68-r2 62
+MD5 429ce8f7f9ec8520a8862b5feda45756 tilp-6.68-r2.ebuild 1377
+MD5 2383ac33fa372a286386ac69278fb65d tilp-6.76.ebuild 1402
+MD5 317afc597de6c31f62ac90971cd1d812 ChangeLog 2215
+MD5 8c623e53daafa025137077c6b65815bd metadata.xml 156
+MD5 19f22f6cd7f216bca36431149033c082 files/6.76-makefile.patch 2495
+MD5 06d7047c0e38a61469e836701cd8e0e4 files/keepdir.patch 384
 MD5 f235d3d15c4b0687241a0c4b3d0d9013 files/formatbug.patch 492
-MD5 bc48a68d03eb437fcd76f7bd8993fac8 files/6.74-makefile-desktop.patch 706
 MD5 19f22f6cd7f216bca36431149033c082 files/6.74-makefile.patch 2495
+MD5 bc48a68d03eb437fcd76f7bd8993fac8 files/6.76-makefile-desktop.patch 706
+MD5 85eb0fa9a7b3fb2b8a27f8589b96dcaa files/digest-tilp-6.68-r2 62
+MD5 bc48a68d03eb437fcd76f7bd8993fac8 files/6.74-makefile-desktop.patch 706
 MD5 41f9e0437c9b7230232d5cc7c5c6df59 files/digest-tilp-6.74 62
-MD5 06d7047c0e38a61469e836701cd8e0e4 files/keepdir.patch 384
+MD5 708836f6ae250add32825e8e7595d9b1 files/digest-tilp-6.76 62
diff --git a/app-sci/tilp/files/6.76-makefile-desktop.patch b/app-sci/tilp/files/6.76-makefile-desktop.patch
new file mode 100644 (file)
index 0000000..ce7c30c
--- /dev/null
@@ -0,0 +1,16 @@
+--- desktop/Makefile.in        2004-06-29 17:02:14.000000000 -0400
++++ desktop/Makefile.in.new    2004-08-22 00:25:48.029609736 -0400
+@@ -340,8 +340,11 @@
+       @echo "---";
+ 
+       @echo Installing Gnome VFS MIME magic patterns...
+-      @if ! grep "\*\*TI" /etc/gnome-vfs-mime-magic; then             \
+-              cat gnome/gnome-vfs-mime-magic >> /etc/gnome-vfs-mime-magic;    \
++      @if ! grep "\*\*TI" $(sysconfdir)/gnome-vfs-mime-magic; then            \
++              cp $(sysconfdir)/gnome-vfs-mime-magic .;        \
++              cat gnome/gnome-vfs-mime-magic >> gnome-vfs-mime-magic; \
++              cp gnome-vfs-mime-magic $(DESTDIR)$(sysconfdir)/gnome-vfs-mime-magic;   \
++              cp gnome-vfs-mime-magic $(DESTDIR)$(sysconfdir)/pokpok; \
+       fi;
+ 
+       @echo Installing application registry in Gnome...
diff --git a/app-sci/tilp/files/6.76-makefile.patch b/app-sci/tilp/files/6.76-makefile.patch
new file mode 100644 (file)
index 0000000..e139249
--- /dev/null
@@ -0,0 +1,65 @@
+--- /tmp/tilp-6.74/desktop/Makefile.in 2004-06-29 23:02:14.000000000 +0200
++++ ./desktop/Makefile.in      2004-08-14 14:20:51.929766560 +0200
+@@ -331,9 +331,15 @@
+ 
+ 
+ install: $(FILES)
++      @mkdir $(DESTDIR)$(sysconfdir);
+       @echo Installing magic local data for file\(1\) command...
+-      @if ! grep "\*\*TI85\*\*" /etc/magic; then      \
+-              cat others/magic >> /etc/magic;         \
++      @if ! grep "\*\*TI85\*\*" $(sysconfdir)/magic; \
++       then \
++        mkdir etc; \
++        rm etc/magic; \
++        cp $(sysconfdir)/magic etc/; \
++        cat others/magic >> etc/magic; \
++        $(INSTALL_DATA) etc/magic $(DESTDIR)$(sysconfdir)/magic; \
+       fi;
+       @echo Done.
+ 
+@@ -345,29 +351,35 @@
+       fi;
+ 
+       @echo Installing application registry in Gnome...
+-      @$(INSTALL) -m644 gnome/tilp.applications /usr/share/application-registry
++      @mkdir -p $(DESTDIR)/usr/share/application-registry/
++      @$(INSTALL) -m644 gnome/tilp.applications $(DESTDIR)/usr/share/application-registry
+ 
+       @echo Installing file and icons handling in Gnome...
+-      @$(INSTALL) -m644 gnome/tilp.keys /usr/share/mime-info
+-      @$(INSTALL) -m644 gnome/tilp.mime /usr/share/mime-info
++      @mkdir -p $(DESTDIR)/usr/share/mime-info;
++      @$(INSTALL) -m644 gnome/tilp.keys $(DESTDIR)/usr/share/mime-info
++      @$(INSTALL) -m644 gnome/tilp.mime $(DESTDIR)/usr/share/mime-info
+ 
+       @echo Installing TiLP menu entry in Gnome...
+-      @$(INSTALL) -m644 gnome/TiLP.desktop /usr/share/applications
++      @mkdir -p $(DESTDIR)/usr/share/applications
++      @$(INSTALL) -m644 gnome/TiLP.desktop $(DESTDIR)/usr/share/applications
+       @echo Done.
+ 
+       @echo "---";
+ 
+       @echo Installing KMimeMagic local data...
+-      @if ! grep "\*\*TI85" /usr/share/mimelnk/magic; then    \
+-              cat kde/magic >> /usr/share/mimelnk/magic;      \
++      
++#confusing kde mime type resolution
++#     @if ! grep "\*\*TI85" /usr/share/mimelnk/magic; then    \
++              cat kde/magic >> $(DESTDIR)/usr/share/mimelnk/magic;      \
+       fi;
+ 
+       @echo Installing TiLP menu entry in KDE...
+-      @$(INSTALL) -d /usr/share/applnk/Edutainment/Mathematics
+-      @$(INSTALL) -m644 kde/tilp.desktop /usr/share/applnk/Edutainment/Mathematics/
++      @$(INSTALL) -d $(DESTDIR)/usr/share/applnk/Edutainment/Mathematics
++      @$(INSTALL) -m644 kde/tilp.desktop $(DESTDIR)/usr/share/applnk/Edutainment/Mathematics/
+ 
+       @echo Installing file and icons handling in KDE...
+-      @$(INSTALL) -m644 kde/x-tilp.desktop /usr/share/mimelnk/application
++      @mkdir -p $(DESTDIR)/usr/share/mimelnk/application
++      @$(INSTALL) -m644 kde/x-tilp.desktop $(DESTDIR)/usr/share/mimelnk/application
+       @echo Done.
+ 
+ uninstall: $(FILES)
diff --git a/app-sci/tilp/files/digest-tilp-6.76 b/app-sci/tilp/files/digest-tilp-6.76
new file mode 100644 (file)
index 0000000..b21a644
--- /dev/null
@@ -0,0 +1 @@
+MD5 8519462a9d9b21c1bc9e76116ccd276f tilp-6.76.tar.gz 1187328
diff --git a/app-sci/tilp/tilp-6.76.ebuild b/app-sci/tilp/tilp-6.76.ebuild
new file mode 100644 (file)
index 0000000..2a44fe2
--- /dev/null
@@ -0,0 +1,54 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-sci/tilp/tilp-6.76.ebuild,v 1.1 2004/12/02 08:47:19 phosphan Exp $
+
+inherit eutils
+
+DESCRIPTION="TiLP - A linking program for Texas Instruments' graphing calculators"
+HOMEPAGE="http://tilp.info/"
+SRC_URI="mirror://sourceforge/tilp/${P}.tar.gz
+       mirror://gentoo/${P}.tar.gz"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="x86 ~ppc"
+IUSE="nls"
+
+DEPEND=">=dev-libs/libticables-3.8.6
+               >=dev-libs/libticalcs-4.5.5
+               >=dev-libs/libtifiles-0.6.1
+               app-text/dos2unix
+               >=x11-libs/gtk+-2
+               >=gnome-base/libglade-2
+               nls? sys-devel/gettext"
+
+src_unpack() {
+       unpack ${A}
+       cd ${S}
+       epatch ${FILESDIR}/${PV}-makefile.patch
+       epatch ${FILESDIR}/${PV}-makefile-desktop.patch
+       epatch ${FILESDIR}/keepdir.patch
+}
+
+src_compile() {
+       # Note the special option --with-fontpath-prefix below.
+       cd ${WORKDIR}/${P}/
+       ./configure \
+               $(use_enable nls) \
+               --host=${CHOST} \
+               --prefix=/usr \
+               --infodir=/usr/share/info \
+               --mandir=/usr/share/man \
+               --sysconfdir=/etc \
+               --with-fontpath-prefix=${D}/usr/X11R6/lib/X11/fonts \
+               --enable-exit-homedir || die
+
+       emake || die
+}
+
+src_install() {
+       # The SHARE_DIR is required since it isn't set properly in a makefile.
+       make DESTDIR=${D} install || die
+       dodoc AUTHORS ChangeLog NEWS README README.linux RELEASE THANKS TODO
+       keepdir /usr/lib/tilp
+}