summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Ahlberg <aliz@gentoo.org>2003-06-28 19:29:42 +0000
committerDaniel Ahlberg <aliz@gentoo.org>2003-06-28 19:29:42 +0000
commitd20ea3399219bebcb938a945b088ec2e0568b36a (patch)
tree47d3c1c0aaf4106e593d91fc705a3a50caf2b99f /app-text
parentcleanup (diff)
downloadhistorical-d20ea3399219bebcb938a945b088ec2e0568b36a.tar.gz
historical-d20ea3399219bebcb938a945b088ec2e0568b36a.tar.bz2
historical-d20ea3399219bebcb938a945b088ec2e0568b36a.zip
security update
Diffstat (limited to 'app-text')
-rw-r--r--app-text/noweb/ChangeLog7
-rw-r--r--app-text/noweb/Manifest6
-rw-r--r--app-text/noweb/files/digest-noweb-2.9-r31
-rw-r--r--app-text/noweb/files/noweb-2.9-gentoo.diff245
-rw-r--r--app-text/noweb/files/noweb-2.9-security.patch123
-rw-r--r--app-text/noweb/noweb-2.9-r3.ebuild47
6 files changed, 427 insertions, 2 deletions
diff --git a/app-text/noweb/ChangeLog b/app-text/noweb/ChangeLog
index d23dfc76fcc9..8f7971aff9cc 100644
--- a/app-text/noweb/ChangeLog
+++ b/app-text/noweb/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-text/noweb
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/noweb/ChangeLog,v 1.9 2003/03/10 22:42:19 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/noweb/ChangeLog,v 1.10 2003/06/28 19:29:42 aliz Exp $
+
+*noweb-2.9-r3 (28 Jun 2003)
+
+ 28 Jun 2003; Daniel Ahlberg <aliz@gentoo.org> :
+ Security update. Added Debian patch.
06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords
diff --git a/app-text/noweb/Manifest b/app-text/noweb/Manifest
index 8584d0bd263b..e3e73866a5bd 100644
--- a/app-text/noweb/Manifest
+++ b/app-text/noweb/Manifest
@@ -1,5 +1,9 @@
-MD5 7a6d6c2ab4a5351df3d4b0576b1aefdb ChangeLog 1222
+MD5 7d3df398fb343f7578ebbe0fe9a9d820 ChangeLog 1341
MD5 f25077708a650d2c3c71735d7846b591 noweb-2.9-r2.ebuild 1158
+MD5 986c5de87013fe81effde2cc956dccb3 noweb-2.9-r3.ebuild 1170
MD5 813fb3ed94d03e89220c6e9b9a77a5f3 files/digest-noweb-2.9-r2 65
MD5 b3a7b0efb9b48c6e01ed90cf70437b35 files/noweb-2.9-r1-gentoo.diff 14016
MD5 b3a7b0efb9b48c6e01ed90cf70437b35 files/noweb-2.9-r2-gentoo.diff 14016
+MD5 02040e5c05a1b7bc5339a3dd35e9bd84 files/noweb-2.9-security.patch 3624
+MD5 813fb3ed94d03e89220c6e9b9a77a5f3 files/digest-noweb-2.9-r3 65
+MD5 b3a7b0efb9b48c6e01ed90cf70437b35 files/noweb-2.9-gentoo.diff 14016
diff --git a/app-text/noweb/files/digest-noweb-2.9-r3 b/app-text/noweb/files/digest-noweb-2.9-r3
new file mode 100644
index 000000000000..4dbe3957e8a8
--- /dev/null
+++ b/app-text/noweb/files/digest-noweb-2.9-r3
@@ -0,0 +1 @@
+MD5 fd88e1b4746661ebbdb1a558ab8510e7 noweb-src-2.9.tar.gz 457749
diff --git a/app-text/noweb/files/noweb-2.9-gentoo.diff b/app-text/noweb/files/noweb-2.9-gentoo.diff
new file mode 100644
index 000000000000..c3170db70ab6
--- /dev/null
+++ b/app-text/noweb/files/noweb-2.9-gentoo.diff
@@ -0,0 +1,245 @@
+diff -ur src-new/Makefile src/Makefile
+--- Makefile Wed Mar 28 15:40:00 2001
++++ Makefile Thu Mar 21 12:22:47 2002
+@@ -3,12 +3,12 @@
+ #
+ # Adjust these two lines for your ANSI C compiler
+ CC=gcc -ansi -pedantic
+-CFLAGS=
++#CFLAGS=
+ # If you have Icon, you should use the Icon versions of the noweb pipeline.
+ # Set LIBSRC=icon
+ LIBSRC=awk
+ # If you have no Icon compiler, but do have icont, make ICONC=icont
+-ICONC=iconc
++ICONC=icont
+ ICONT=icont
+
+ # BIN is where the commands (notangle, noweave, nountangle, noroots) land
+@@ -18,12 +18,12 @@
+ # MAN7EXT is the extension for the nowebstyle man page (usually 7)
+ # TEXINPUTS is the directory for TeX macro files
+ # ELISP is the directory for emacs lisp files, or /dev/null not to install
+-BIN=/usr/local/noweb
+-LIB=/usr/local/noweb/lib
+-MAN=/usr/local/noweb/man
++BIN=/usr/bin
++LIB=/usr/lib
++MAN=/usr/man
+ MANEXT=1
+ MAN7EXT=7
+-TEXINPUTS=/usr/local/tex/inputs
++TEXINPUTS=/usr/share/texmf/tex/inputs
+ ELISP=/dev/null
+
+ # change WEAVE if you want a different version of noweave to be installed
+@@ -53,79 +53,79 @@
+ /bin/cp $(HOME)/www/noweb/FAQ.html FAQ.html
+ chmod -w FAQ.html
+
+-install: install-code install-man install-tex install-elisp
++install: install-code install-gzipped-man install-tex install-elisp
+
+ install-shell:
+- -mkdir $(BIN) $(LIB) 2>/dev/null
+- sed "s@|LIBDIR|@$(LIBNAME)@" shell/noweb > $(BIN)/noweb
+- chmod +x $(BIN)/noweb
+- sed "s@|LIBDIR|@$(LIBNAME)@" shell/notangle > $(BIN)/notangle
+- chmod +x $(BIN)/notangle
+- sed "s@|LIBDIR|@$(LIBNAME)@" shell/$(WEAVE) > $(BIN)/$(WEAVE)
+- chmod +x $(BIN)/$(WEAVE)
+- sed "s@|LIBDIR|@$(LIBNAME)@" shell/nountangle > $(BIN)/nountangle
+- chmod +x $(BIN)/nountangle
+- sed "s@|LIBDIR|@$(LIBNAME)@" shell/nodefs > $(BIN)/nodefs
+- chmod +x $(BIN)/nodefs
+- sed "s@|LIBDIR|@$(LIBNAME)@" shell/noroots > $(BIN)/noroots
+- chmod +x $(BIN)/noroots
+- sed "s@|LIBDIR|@$(LIBNAME)@" shell/nuweb2noweb > $(BIN)/nuweb2noweb
+- chmod +x $(BIN)/nuweb2noweb
+- sed "s@|LIBDIR|@$(LIBNAME)@" shell/cpif > $(BIN)/cpif
+- chmod +x $(BIN)/cpif
+- sed "s@|LIBDIR|@$(LIBNAME)@" shell/htmltoc > $(BIN)/htmltoc
+- chmod +x $(BIN)/htmltoc
+- sed "s@|LIBDIR|@$(LIBNAME)@" shell/noroff > $(BIN)/noroff
+- chmod +x $(BIN)/noroff
+- sed "s@|LIBDIR|@$(LIBNAME)@" shell/toroff > $(LIB)/toroff
+- chmod +x $(LIB)/toroff
+- cp shell/tmac.w $(LIB)
++ -mkdir -p ${DESTDIR}/$(BIN) ${DESTDIR}/$(LIB) 2>/dev/null
++ sed "s@|LIBDIR|@$(LIBNAME)@" shell/noweb > ${DESTDIR}/$(BIN)/noweb
++ chmod +x ${DESTDIR}/$(BIN)/noweb
++ sed "s@|LIBDIR|@$(LIBNAME)@" shell/notangle > ${DESTDIR}/$(BIN)/notangle
++ chmod +x ${DESTDIR}/$(BIN)/notangle
++ sed "s@|LIBDIR|@$(LIBNAME)@" shell/$(WEAVE) > ${DESTDIR}/$(BIN)/$(WEAVE)
++ chmod +x ${DESTDIR}/$(BIN)/$(WEAVE)
++ sed "s@|LIBDIR|@$(LIBNAME)@" shell/nountangle > ${DESTDIR}/$(BIN)/nountangle
++ chmod +x ${DESTDIR}/$(BIN)/nountangle
++ sed "s@|LIBDIR|@$(LIBNAME)@" shell/nodefs > ${DESTDIR}/$(BIN)/nodefs
++ chmod +x ${DESTDIR}/$(BIN)/nodefs
++ sed "s@|LIBDIR|@$(LIBNAME)@" shell/noroots > ${DESTDIR}/$(BIN)/noroots
++ chmod +x ${DESTDIR}/$(BIN)/noroots
++ sed "s@|LIBDIR|@$(LIBNAME)@" shell/nuweb2noweb > ${DESTDIR}/$(BIN)/nuweb2noweb
++ chmod +x ${DESTDIR}/$(BIN)/nuweb2noweb
++ sed "s@|LIBDIR|@$(LIBNAME)@" shell/cpif > ${DESTDIR}/$(BIN)/cpif
++ chmod +x ${DESTDIR}/$(BIN)/cpif
++ sed "s@|LIBDIR|@$(LIBNAME)@" shell/htmltoc > ${DESTDIR}/$(BIN)/htmltoc
++ chmod +x ${DESTDIR}/$(BIN)/htmltoc
++ sed "s@|LIBDIR|@$(LIBNAME)@" shell/noroff > ${DESTDIR}/$(BIN)/noroff
++ chmod +x ${DESTDIR}/$(BIN)/noroff
++ sed "s@|LIBDIR|@$(LIBNAME)@" shell/toroff > ${DESTDIR}/$(LIB)/toroff
++ chmod +x ${DESTDIR}/$(LIB)/toroff
++ cp shell/tmac.w ${DESTDIR}/$(LIB)
+
+ install-code: install-shell
+- -mkdir $(BIN) $(LIB) 2>/dev/null
++ -mkdir -p ${DESTDIR}/$(BIN) ${DESTDIR}/$(LIB) 2>/dev/null
+ strip c/nt c/markup c/mnt c/finduses
+- cp c/nt c/markup c/mnt c/finduses $(LIB)
+- cd $(LIBSRC); make ICONT=$(ICONT) ICONC=$(ICONC) LIB=$(LIB) BIN=$(BIN) install
+- cd lib; make LIB=$(LIB) install
++ cp c/nt c/markup c/mnt c/finduses ${DESTDIR}/$(LIB)
++ cd $(LIBSRC); make ICONT=$(ICONT) ICONC=$(ICONC) LIB=$(LIB) BIN=$(BIN) DESTDIR=$(DESTDIR) install
++ cd lib; make LIB=$(LIB) DESTDIR=$(DESTDIR) install
+ install-man:
+- -mkdir $(MAN) $(MANDIR) $(MAN7DIR) 2>/dev/null
+- sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/cpif.1 > $(MANDIR)/cpif.$(MANEXT)
+- sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/nodefs.1 > $(MANDIR)/nodefs.$(MANEXT)
+- sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/noroots.1 > $(MANDIR)/noroots.$(MANEXT)
+- sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/noweb.1 > $(MANDIR)/noweb.$(MANEXT)
+- sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/noindex.1 > $(MANDIR)/noindex.$(MANEXT)
+- sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/nuweb2noweb.1 > $(MANDIR)/nuweb2noweb.$(MANEXT)
+- sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/notangle.1 > $(MANDIR)/notangle.$(MANEXT)
+- sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/noroff.1 > $(MANDIR)/noroff.$(MANEXT)
+- sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/sl2h.1 > $(MANDIR)/sl2h.$(MANEXT)
+- sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/htmltoc.1 > $(MANDIR)/htmltoc.$(MANEXT)
+- sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/nowebstyle.7 > $(MAN7DIR)/nowebstyle.$(MAN7EXT)
+- sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/nowebfilters.7 > $(MAN7DIR)/nowebfilters.$(MAN7EXT)
+- rm -f $(MANDIR)/noweave.$(MANEXT)
+- (cd $(MANDIR); ln notangle.$(MANEXT) noweave.$(MANEXT))
+- rm -f $(MANDIR)/nountangle.$(MANEXT)
+- (cd $(MANDIR); ln notangle.$(MANEXT) nountangle.$(MANEXT))
++ -mkdir -p ${DESTDIR}/$(MAN) ${DESTDIR}/$(MANDIR) ${DESTDIR}/$(MAN7DIR) 2>/dev/null
++ sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/cpif.1 > ${DESTDIR}/$(MANDIR)/cpif.$(MANEXT)
++ sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/nodefs.1 > ${DESTDIR}/$(MANDIR)/nodefs.$(MANEXT)
++ sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/noroots.1 > ${DESTDIR}/$(MANDIR)/noroots.$(MANEXT)
++ sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/noweb.1 > ${DESTDIR}/$(MANDIR)/noweb.$(MANEXT)
++ sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/noindex.1 > ${DESTDIR}/$(MANDIR)/noindex.$(MANEXT)
++ sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/nuweb2noweb.1 > ${DESTDIR}/$(MANDIR)/nuweb2noweb.$(MANEXT)
++ sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/notangle.1 > ${DESTDIR}/$(MANDIR)/notangle.$(MANEXT)
++ sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/noroff.1 > ${DESTDIR}/$(MANDIR)/noroff.$(MANEXT)
++ sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/sl2h.1 > ${DESTDIR}/$(MANDIR)/sl2h.$(MANEXT)
++ sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/htmltoc.1 > ${DESTDIR}/$(MANDIR)/htmltoc.$(MANEXT)
++ sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/nowebstyle.7 > ${DESTDIR}/$(MAN7DIR)/nowebstyle.$(MAN7EXT)
++ sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/nowebfilters.7 > ${DESTDIR}/$(MAN7DIR)/nowebfilters.$(MAN7EXT)
++ rm -f ${DESTDIR}/$(MANDIR)/noweave.$(MANEXT)
++ (cd ${DESTDIR}/$(MANDIR); ln notangle.$(MANEXT) noweave.$(MANEXT))
++ rm -f ${DESTDIR}/$(MANDIR)/nountangle.$(MANEXT)
++ (cd ${DESTDIR}/$(MANDIR); ln notangle.$(MANEXT) nountangle.$(MANEXT))
+ install-gzipped-man:
+- -mkdir $(MAN) $(MANDIR) $(MAN7DIR) 2>/dev/null
+- sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/cpif.1 | gzip -9 > $(MANDIR)/cpif.$(MANEXT).gz
+- sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/nodefs.1 | gzip -9 > $(MANDIR)/nodefs.$(MANEXT).gz
+- sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/noroots.1 | gzip -9 > $(MANDIR)/noroots.$(MANEXT).gz
+- sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/noweb.1 | gzip -9 > $(MANDIR)/noweb.$(MANEXT).gz
+- sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/noindex.1 | gzip -9 > $(MANDIR)/noindex.$(MANEXT).gz
+- sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/nuweb2noweb.1 | gzip -9 > $(MANDIR)/nuweb2noweb.$(MANEXT).gz
+- sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/notangle.1 | gzip -9 > $(MANDIR)/notangle.$(MANEXT).gz
+- sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/noroff.1 | gzip -9 > $(MANDIR)/noroff.$(MANEXT).gz
+- sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/sl2h.1 | gzip -9 > $(MANDIR)/sl2h.$(MANEXT).gz
+- sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/htmltoc.1 | gzip -9 > $(MANDIR)/htmltoc.$(MANEXT).gz
+- sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/nowebstyle.7 | gzip -9 > $(MAN7DIR)/nowebstyle.$(MAN7EXT).gz
+- sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/nowebfilters.7 | gzip -9 > $(MAN7DIR)/nowebfilters.$(MAN7EXT).gz
+- rm -f $(MANDIR)/noweave.$(MANEXT).gz
+- (cd $(MANDIR); ln notangle.$(MANEXT).gz noweave.$(MANEXT).gz)
+- rm -f $(MANDIR)/nountangle.$(MANEXT).gz
+- (cd $(MANDIR); ln notangle.$(MANEXT).gz nountangle.$(MANEXT).gz)
++ -mkdir -p ${DESTDIR}/$(MAN) ${DESTDIR}/$(MANDIR) ${DESTDIR}/$(MAN7DIR) 2>/dev/null
++ sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/cpif.1 | gzip -9 > ${DESTDIR}/$(MANDIR)/cpif.$(MANEXT).gz
++ sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/nodefs.1 | gzip -9 > ${DESTDIR}/$(MANDIR)/nodefs.$(MANEXT).gz
++ sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/noroots.1 | gzip -9 > ${DESTDIR}/$(MANDIR)/noroots.$(MANEXT).gz
++ sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/noweb.1 | gzip -9 > ${DESTDIR}/$(MANDIR)/noweb.$(MANEXT).gz
++ sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/noindex.1 | gzip -9 > ${DESTDIR}/$(MANDIR)/noindex.$(MANEXT).gz
++ sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/nuweb2noweb.1 | gzip -9 > ${DESTDIR}/$(MANDIR)/nuweb2noweb.$(MANEXT).gz
++ sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/notangle.1 | gzip -9 > ${DESTDIR}/$(MANDIR)/notangle.$(MANEXT).gz
++ sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/noroff.1 | gzip -9 > ${DESTDIR}/$(MANDIR)/noroff.$(MANEXT).gz
++ sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/sl2h.1 | gzip -9 > ${DESTDIR}/$(MANDIR)/sl2h.$(MANEXT).gz
++ sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/htmltoc.1 | gzip -9 > ${DESTDIR}/$(MANDIR)/htmltoc.$(MANEXT).gz
++ sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/nowebstyle.7 | gzip -9 > ${DESTDIR}/$(MAN7DIR)/nowebstyle.$(MAN7EXT).gz
++ sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/nowebfilters.7 | gzip -9 > ${DESTDIR}/$(MAN7DIR)/nowebfilters.$(MAN7EXT).gz
++ rm -f ${DESTDIR}/$(MANDIR)/noweave.$(MANEXT).gz
++ (cd ${DESTDIR}/$(MANDIR); ln notangle.$(MANEXT).gz noweave.$(MANEXT).gz)
++ rm -f ${DESTDIR}/$(MANDIR)/nountangle.$(MANEXT).gz
++ (cd ${DESTDIR}/$(MANDIR); ln notangle.$(MANEXT).gz nountangle.$(MANEXT).gz)
+ install-preformat-man:
+ -echo "Warning: install-preformat-man is obsolete, even on Slackware systems" 1>&2
+- -mkdir $(MAN) $(CATDIR) $(CAT7DIR) 2>/dev/null
++ -mkdir -p $(MAN) $(CATDIR) $(CAT7DIR) 2>/dev/null
+ sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/cpif.txt | gzip > $(CATDIR)/cpif.$(MANEXT).gz
+ sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/nodefs.txt | gzip > $(CATDIR)/nodefs.$(MANEXT).gz
+ sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/noroots.txt | gzip > $(CATDIR)/noroots.$(MANEXT).gz
+@@ -143,13 +143,14 @@
+ rm -f $(CATDIR)/nountangle.$(MANEXT).gz
+ (cd $(CATDIR); ln notangle.$(MANEXT).gz nountangle.$(MANEXT).gz)
+ install-tex:
+- -mkdir $(TEXINPUTS) 2>/dev/null
+- cp tex/nwmac.tex tex/noweb.sty $(TEXINPUTS)
+- -texhash || echo "Program texhash not found or failed"
++ -mkdir -p ${DESTDIR}/$(TEXINPUTS) 2>/dev/null
++ cp tex/nwmac.tex tex/noweb.sty ${DESTDIR}/$(TEXINPUTS)
++ #-texhash || echo "Program texhash not found or failed"
+
+ install-elisp:
+- -mkdir $(ELISP) 2>/dev/null
+- cp elisp/noweb-mode.el $(ELISP)
++ # right now $ELISP is /dev/null so don't mess with it
++ #-mkdir -p $(DESTDIR)/$(ELISP) 2>/dev/null
++ #cp elisp/noweb-mode.el $(DESTDIR)$(ELISP)
+
+ checkin:
+ for i in lib tex xdoc; do (cd $$i; make "CINAME=$(CINAME)" "CIMSG=$(CIMSG)" checkin); done
+diff -ur src-new/awk/Makefile src/awk/Makefile
+--- awk/Makefile Mon Mar 27 02:00:00 2000
++++ awk/Makefile Thu Mar 21 12:09:35 2002
+@@ -16,8 +16,8 @@
+ touch $(EXECS)
+
+ install: all
+- cp $(LIBEXECS) $(LIB)
+- cp $(BINEXECS) $(BIN)
++ cp $(LIBEXECS) $(DESTDIR)/$(LIB)
++ cp $(BINEXECS) $(DESTDIR)/$(BIN)
+
+ source: $(EXECS)
+
+diff -ur src-new/icon/Makefile src/icon/Makefile
+--- icon/Makefile Thu Sep 14 03:00:00 2000
++++ icon/Makefile Thu Mar 21 12:08:58 2002
+@@ -32,9 +32,9 @@
+ touch $(SRCS)
+
+ install: $(EXECS)
+- cp $(LIBEXECS) $(LIB)
+- cp $(BINEXECS) $(BIN)
+- cp $(LIBSPECIAL) $(LIB)/autodefs.c
++ cp $(LIBEXECS) ${DESTDIR}/$(LIB)
++ cp $(BINEXECS) ${DESTDIR}/$(BIN)
++ cp $(LIBSPECIAL) ${DESTDIR}/$(LIB)/autodefs.c
+
+ clean:
+ /bin/rm -f *.tex *.dvi *.aux *.log *.blg *.bbl *~ *.toc *.html *.u1 *.u2
+diff -ur src-new/lib/Makefile src/lib/Makefile
+--- lib/Makefile Fri Jun 23 13:56:00 2000
++++ lib/Makefile Thu Mar 21 12:08:58 2002
+@@ -11,9 +11,9 @@
+ chmod +x unmarkup emptydefn toascii nwmtime pipedocs h2a btdefn
+
+ install: all
+- cp unmarkup emptydefn toascii nwmtime h2a btdefn $(LIB)
+- sed 's@|LIBDIR|@$(LIB)@g' pipedocs > $(LIB)/pipedocs
+- chmod +x $(LIB)/pipedocs
++ cp unmarkup emptydefn toascii nwmtime h2a btdefn ${DESTDIR}/$(LIB)
++ sed 's@|LIBDIR|@$(LIB)@g' pipedocs > ${DESTDIR}/$(LIB)/pipedocs
++ chmod +x ${DESTDIR}/$(LIB)/pipedocs
+
+ checkin:
+ ci -l $(CINAME) $(CIMSG) $(RCSFILES)
diff --git a/app-text/noweb/files/noweb-2.9-security.patch b/app-text/noweb/files/noweb-2.9-security.patch
new file mode 100644
index 000000000000..a07445ea9f7b
--- /dev/null
+++ b/app-text/noweb/files/noweb-2.9-security.patch
@@ -0,0 +1,123 @@
+--- noweb-2.9a.orig/src/awkname
++++ noweb-2.9a/src/awkname
+@@ -5,7 +5,7 @@
+ esac
+
+ rc=0
+-new=/tmp/$$.new; old=/tmp/$$.old
++new=$(tempfile -p new); old=$(tempfile -p old)
+
+ for file in lib/emptydefn lib/unmarkup lib/toascii \
+ awk/noidx awk/totex awk/tohtml awk/noindex \
+--- noweb-2.9a.orig/src/awk/totex.nw
++++ noweb-2.9a/src/awk/totex.nw
+@@ -24,7 +24,7 @@
+ @
+ On an ugly system, we have to put it in a file.
+ <<invoke awk program using file>>=
+-awkfile=/tmp/totex$$.awk
++awkfile=$(tempfile -p totex)
+ trap 'rm -f $awkfile; exit 1' 0 1 2 15 # clean up files
+ cat > $awkfile << 'EOF'
+ <<awk program for conversion to {\TeX}>>
+--- noweb-2.9a.orig/src/lib/toascii
++++ noweb-2.9a/src/lib/toascii
+@@ -7,9 +7,9 @@
+ *) echo "This can't happen -- $i passed to toascii" 1>&2 ; exit 1 ;;
+ esac
+ done
+-awkfile="tmp/awk$$.tmp"
+-textfile="/tmp/text$$.tmp"
+-tagsfile="/tmp/tags$$.tmp"
++awkfile=$(tempfile -p awk -s .tmp)
++textfile=$(tempfile -p text -s .tmp)
++tagsfile=$(tempfile -p tags -s .tmp)
+ export awkfile textfile tagsfile
+ trap 'rm -f $awkfile $textfile $tagsfile' 0 1 2 10 14 15
+ nawk 'BEGIN { textfile=ENVIRON["textfile"]
+--- noweb-2.9a.orig/src/shell/cpif
++++ noweb-2.9a/src/shell/cpif
+@@ -17,7 +17,7 @@
+ 0) echo 'Usage: '`basename $0`' [ -eq -ne ] file...' 1>&2; exit 2
+ esac
+
+-new=/tmp/$$
++new=$(tempfile)
+ trap 'rm -f $new; exit 1' 1 2 15 # clean up files
+
+ cat >$new
+--- noweb-2.9a.orig/src/shell/nonu
++++ noweb-2.9a/src/shell/nonu
+@@ -2,7 +2,7 @@
+ LIB=/usr/public/pkg/noweb/lib
+ # attempt to convert nuweb to noweb using sam
+
+-tmp=/tmp/nonu$$
++tmp=$(tempfile -p nonu)
+ trap '/bin/rm -f $tmp; exit 1' 1 2 15 # clean up files
+ cp $1 $tmp || exit 1
+
+--- noweb-2.9a.orig/src/shell/roff.nw
++++ noweb-2.9a/src/shell/roff.nw
+@@ -80,7 +80,7 @@
+ other, and quoting each quote is ugly. The pragmatic solution is to
+ copy the awk program into a temporary file, using a shell here-document.
+ <<invoke awk program>>=
+-awkfile="/tmp/noweb$$.awk"
++awkfile=$(tempfile -p noweb -s .awk)
+ trap 'rm -f $awkfile' 0 1 2 10 14 15
+ cat > $awkfile << 'EOF'
+ <<awk program>>
+@@ -662,12 +662,13 @@
+
+ base="`basename $1 | sed '/\./s/\.[^.]*$//'`"
+ tagsfile="$base.nwt"
++tmpfile=$(tempfile -p tags)
+ (echo ".so $macrodir/tmac.w"
+ if [ -r "$tagsfile" ]; then
+- cp $tagsfile /tmp/tags.$$
++ cp $tagsfile $tmpfile
+ $AWK '<<action for [[tags]] line>>
+- <<functions>>' /tmp/tags.$$
+- rm -f /tmp/tags.$$
++ <<functions>>' $tmpfile
++ rm -f $tmpfile
+ fi
+ cat "$@") |
+ ($ROFF $opts 2>$tagsfile)
+--- noweb-2.9a.orig/src/shell/noroff
++++ noweb-2.9a/src/shell/noroff
+@@ -35,9 +35,10 @@
+
+ base="`basename $1 | sed '/\./s/\.[^.]*$//'`"
+ tagsfile="$base.nwt"
++tmpfile=$(tempfile -p tags)
+ (echo ".so $macrodir/tmac.w"
+ if [ -r "$tagsfile" ]; then
+- cp $tagsfile /tmp/tags.$$
++ cp $tagsfile $tmpfile
+ $AWK '{
+ if (sub(/^###TAG### / , "")) tags[$1] = $2
+ else if (sub(/^###BEGINCHUNKS###/, "")) printf ".de CLIST\n.CLISTBEGIN\n"
+@@ -88,8 +89,8 @@
+ # print str3
+ # print convquote(str3)
+ # }
+- function tag(s) { if (s in tags) return tags[s]; else return "???" }' /tmp/tags.$$
+- rm -f /tmp/tags.$$
++ function tag(s) { if (s in tags) return tags[s]; else return "???" }' $tmpfile
++ rm -f $tmpfile
+ fi
+ cat "$@") |
+ ($ROFF $opts 2>$tagsfile)
+--- noweb-2.9a.orig/src/shell/toroff
++++ noweb-2.9a/src/shell/toroff
+@@ -9,7 +9,7 @@
+ exit 1;;
+ esac
+ done
+-awkfile="/tmp/noweb$$.awk"
++awkfile=$(tempfile -p noweb -s .awk)
+ trap 'rm -f $awkfile' 0 1 2 10 14 15
+ cat > $awkfile << 'EOF'
+ /^@begin docs 0$/ { if (delay) next }
diff --git a/app-text/noweb/noweb-2.9-r3.ebuild b/app-text/noweb/noweb-2.9-r3.ebuild
new file mode 100644
index 000000000000..b5552af33921
--- /dev/null
+++ b/app-text/noweb/noweb-2.9-r3.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/noweb/noweb-2.9-r3.ebuild,v 1.1 2003/06/28 19:29:42 aliz Exp $
+
+inherit eutils
+
+S=${WORKDIR}/src
+#SRC_URI="ftp://ftp.dante.de/tex-archive/web/noweb/src.tar.gz"
+SRC_URI="http://www.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/noweb-src-${PV}.tar.gz"
+
+HOMEPAGE="http://www.eecs.harvard.edu/~nr/noweb/"
+SLOT="0"
+LICENSE="freedist"
+DESCRIPTION="a literate programming tool, lighter than web"
+
+DEPEND="sys-devel/gcc
+ app-text/tetex
+ sys-apps/gawk
+ sys-apps/debianutils"
+KEYWORDS="x86 ppc sparc alpha"
+
+src_unpack() {
+ unpack ${A} ; cd ${S}
+
+ epatch ${FILESDIR}/${P}-security.patch
+ epatch ${FILESDIR}/${P}-gentoo.diff
+}
+
+src_compile() {
+ emake || die
+}
+
+src_install () {
+ make DESTDIR=${D} install || die
+ [ -x /usr/bin/nawk ] || dosym /usr/bin/gawk /usr/bin/nawk
+
+ # fix man pages to be LFH compliant
+ mv ${D}/usr/man ${D}/usr/share
+}
+
+pkg_postinst() {
+ einfo "Running texhash to complete installation.."
+ addwrite "/var/lib/texmf"
+ addwrite "/usr/share/texmf"
+ addwrite "/var/cache/fonts"
+ texhash
+}