debian/0000755000000000000000000000000012065066242007171 5ustar debian/9base.lintian-overrides0000644000000000000000000000231612065066154013560 0ustar # We use the rc shipped with the package, not the separately packaged one. 9base: wrong-path-for-interpreter usr/*/troff/font/devutf/mkMAP (#!/usr/lib/plan9/bin/rc != /usr/bin/rc) 9base: missing-dep-for-interpreter rc => rc (usr/*/troff/font/devutf/mkMAP) 9base: wrong-path-for-interpreter usr/*/troff/tmac/sendcover (#!/usr/lib/plan9/bin/rc != /usr/bin/rc) 9base: missing-dep-for-interpreter rc => rc (usr/*/troff/tmac/sendcover) # pbd does not make use of any protected glibc routines 9base: hardening-no-fortify-functions usr/lib/plan9/bin/pbd # This is a startup script 9base: executable-not-elf-or-script usr/lib/plan9/etc/rcmain # Manual pages use the plan9 man macro package. # Therefore, they will not validate with Debian's man macros, or # groff. They render just fine with the appropriate macro package and # plan9-troff. 9base: manpage-has-errors-from-man usr/share/man/man*/* macro `L' not defined 9base: manpage-has-errors-from-man usr/share/man/man*/* macro `LR' not defined 9base: manpage-has-errors-from-man usr/share/man/man*/* macro `CT' not defined 9base: manpage-has-errors-from-man usr/share/man/man*/* macro `TF' not defined 9base: manpage-has-errors-from-man usr/share/man/man*/* macro `9' not defined debian/copyright0000644000000000000000000004421112065052714011125 0ustar Files: * Copyright: (C) 2005-2009 Anselm R. Garbe License: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Files: awk/* Copyright: (C) 1997 Lucent Technologies License: MIT Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that the copyright notice and this permission notice and warranty disclaimer appear in supporting documentation, and that the name Lucent Technologies or any of its entities not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. . LUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. Files: basename, bc, cat, cleanname, date, dc, echo, grep, rc, sed, seq, sleep, sort, tee, test, touch, tr, uniq, yacc Copyright: (C) 1997-2002 Lucent Technologies, Inc. License: other The Plan 9 software is provided under the terms of the Lucent Public License, Version 1.02, reproduced below, with the following notable exceptions: . 1. No right is granted to create derivative works of or to redistribute (other than with the Plan 9 Operating System) the screen imprinter fonts identified in subdirectory /lib/font/bit/lucida and printer fonts (Lucida Sans Unicode, Lucida Sans Italic, Lucida Sans Demibold, Lucida Typewriter, Lucida Sans Typewriter83), identified in subdirectory /sys/lib/postscript/font. These directories contain material copyrights by B&H Inc. and Y&Y Inc. . 2. The printer fonts identified in subdirectory /sys/lib/ghostscript/font are subject to the GNU GPL, reproduced in the file /LICENSE.gpl. . 3. The ghostscript program in the subdirectory /sys/src/cmd/gs is covered by the Aladdin Free Public License, reproduced in the file /LICENSE.afpl. . Other, less notable exceptions are marked in the file tree with COPYING, COPYRIGHT, or LICENSE files. . =================================================================== . Lucent Public License Version 1.02 . THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT. . 1. DEFINITIONS . "Contribution" means: . a. in the case of Lucent Technologies Inc. ("LUCENT"), the Original Program, and b. in the case of each Contributor, . i. changes to the Program, and ii. additions to the Program; . where such changes and/or additions to the Program were added to the Program by such Contributor itself or anyone acting on such Contributor's behalf, and the Contributor explicitly consents, in accordance with Section 3C, to characterization of the changes and/or additions as Contributions. . "Contributor" means LUCENT and any other entity that has Contributed a Contribution to the Program. . "Distributor" means a Recipient that distributes the Program, modifications to the Program, or any part thereof. . "Licensed Patents" mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program. . "Original Program" means the original version of the software accompanying this Agreement as released by LUCENT, including source code, object code and documentation, if any. . "Program" means the Original Program and Contributions or any part thereof . "Recipient" means anyone who receives the Program under this Agreement, including all Contributors. . 2. GRANT OF RIGHTS . a. Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source code and object code form. . b. Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form. The patent license granted by a Contributor shall also apply to the combination of the Contribution of that Contributor and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contribution causes such combination to be covered by the Licensed Patents. The patent license granted by a Contributor shall not apply to (i) any other combinations which include the Contribution, nor to (ii) Contributions of other Contributors. No hardware per se is licensed hereunder. . c. Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program. . d. Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement. . 3. REQUIREMENTS . A. Distributor may choose to distribute the Program in any form under this Agreement or under its own license agreement, provided that: . a. it complies with the terms and conditions of this Agreement; . b. if the Program is distributed in source code or other tangible form, a copy of this Agreement or Distributor's own license agreement is included with each copy of the Program; and . c. if distributed under Distributor's own license agreement, such license agreement: . i. effectively disclaims on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose; ii. effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits; and iii. states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party. . B. Each Distributor must include the following in a conspicuous location in the Program: . Copyright (C) 2003, Lucent Technologies Inc. and others. All Rights Reserved. . C. In addition, each Contributor must identify itself as the originator of its Contribution in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution. Also, each Contributor must agree that the additions and/or changes are intended to be a Contribution. Once a Contribution is contributed, it may not thereafter be revoked. . 4. COMMERCIAL DISTRIBUTION . Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Distributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for Contributors. Therefore, if a Distributor includes the Program in a commercial product offering, such Distributor ("Commercial Distributor") hereby agrees to defend and indemnify every Contributor ("Indemnified Contributor") against any losses, damages and costs (collectively"Losses") arising from claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Distributor in connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Distributor in writing of such claim, and b) allow the Commercial Distributor to control, and cooperate with the Commercial Distributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim at its own expense. . For example, a Distributor might include the Program in a commercial product offering, Product X. That Distributor is then a Commercial Distributor. If that Commercial Distributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Distributor's responsibility alone. Under this section, the Commercial Distributor would have to defend claims against the Contributors related to those performance claims and warranties, and if a court requires any Contributor to pay any damages as a result, the Commercial Distributor must pay those damages. . 5. NO WARRANTY . EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with its exercise of rights under this Agreement, including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and unavailability or interruption of operations. . 6. DISCLAIMER OF LIABILITY . EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. . 7. EXPORT CONTROL . Recipient agrees that Recipient alone is responsible for compliance with the United States export administration regulations (and the export control laws and regulation of any other countries). . 8. GENERAL . If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable. . If Recipient institutes patent litigation against a Contributor with respect to a patent applicable to software (including a cross-claim or counterclaim in a lawsuit), then any patent licenses granted by that Contributor to such Recipient under this Agreement shall terminate as of the date such litigation is filed. In addition, if Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed. . All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive. . LUCENT may publish new versions (including revisions) of this Agreement from time to time. Each new version of the Agreement will be given a distinguishing version number. The Program (including Contributions) may always be distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to distribute the Program (including its Contributions) under the new version. No one other than LUCENT has the right to modify this Agreement. Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved. . This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation. Files: lib9 Copyright: (C) 2002 Lucent Technologies. License: other Permission to use, copy, modify, and distribute this software for any purpose without fee is hereby granted, provided that this entire notice is included in all copies of any software which is or includes a copy or modification of this software and in all copies of the supporting documentation for such software. . THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED WARRANTY. IN PARTICULAR, NEITHER THE AUTHORS NOR LUCENT TECHNOLOGIES MAKE ANY REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE. Files: mk/* Copyright: (C) 2000-2002 Vita Nuova Holdings Limited (C) 1997-1999 Vita Nuova Limited (C) 1995-1997 C H Forsyth (C) 1994-1999 Lucent Technologies, Inc. License: GPL-2 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. . On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL-2 file. Files: debian/* Copyright: (C) 2005-2010 Daniel Baumann (C) 2010 Kai Hendry (C) 2011-2012 Gergely Nagy License: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/9base.links0000644000000000000000000000033212065061173011232 0ustar usr/share/man/man1/ascii.1plan9 usr/share/man/man1/unicode.1plan9 usr/share/man/man1/factor.1plan9 usr/share/man/man1/primes.1plan9 usr/share/man/man1/cat.1plan9 usr/share/man/man1/read.1plan9 debian/source/0000755000000000000000000000000012065051556010473 5ustar debian/source/format0000644000000000000000000000001412065051556011701 0ustar 3.0 (quilt) debian/source/options0000644000000000000000000000005112065051556012105 0ustar compression = gzip compression-level = 9 debian/watch0000644000000000000000000000007112065052714010217 0ustar version=3 http://dl.suckless.org/tools/9base-(.*).tar.gz debian/compat0000644000000000000000000000000212065061173010365 0ustar 9 debian/control0000644000000000000000000000122112065061173010566 0ustar Source: 9base Section: utils Priority: optional Build-Depends: debhelper (>= 9~) Maintainer: Gergely Nagy Standards-Version: 3.9.3 Homepage: http://tools.suckless.org/9base Vcs-Browser: http://git.madhouse-project.org/debian/9base/ Vcs-Git: git://git.madhouse-project.org/debian/9base.git Package: 9base Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Suggests: wmii2 Description: Plan 9 userland tools 9base is a port of following original Plan 9 userland tools to Unix: awk, basename, bc, cat, cleanname, date, dc, echo, grep, mk, rc, sed, seq, sleep, sort, strings, tee, test, touch, tr, uniq, and yacc. debian/9base.install0000644000000000000000000000004512065061173011561 0ustar lib9/regexp.7 /usr/share/man/man7/ debian/rules0000755000000000000000000000264712065064723010264 0ustar #!/usr/bin/make -f SHELL := sh -e PKGNAME = 9base PKGDIR = debian/$(PKGNAME) PREFIX = /usr/lib/plan9 DATADIR = /usr/share MANDIR = $(DATADIR)/man PKGDATA = $(DATADIR)/$(PKGNAME) TROFFDIR = $(PKGDATA)/troff MANEXT = plan9 CFLAGS += -c -I. -DPREFIX="\"$(PREFIX)\"" # CFLAGS for troff CFLAGS += -DUNICODE -DDWBHOME="\"$(TROFFDIR)\"" -DNTERMDIR="\"/term/tab.\"" \ -DTEXHYPHENS="\"/hyphen.tex\"" -DALTHYPHENS="\"/hyphen.tex\"" \ -DFONTDIR="\"/font\"" -DTDEVNAME="\"utf\"" -DTMACDIR="\"/tmac/tmac.\"" %: dh ${@} override_dh_auto_build: dh_auto_build -- \ CFLAGS='$(CFLAGS) $(CPPFLAGS)' LDFLAGS='$(LDFLAGS)' \ PREFIX=$(PREFIX) MANPREFIX=$(MANDIR) override_dh_auto_install: dh_auto_install -- \ PREFIX=$(PREFIX) MANPREFIX=$(MANDIR) TROFFDIR=$(TROFFDIR) # delete unnecessary man pages rm -f $(PKGDIR)$(MANDIR)/man1/du.1 # almost empty rm -f $(PKGDIR)$(MANDIR)/man1/read.1 # identical to cat.1 # delete empty man pages find debian/9base/usr/share/man -type f -size 0b | xargs rm -f # Patch man pages on the fly: # - Append plan9 to their extension & section # - .PD0 -> .PD 0 to make groff happy for MANPAGE in $(PKGDIR)$(MANDIR)/man*/*; do \ sed -i \ -e 's/^\.TH [^ ]* [1-8]/&$(MANEXT)/' \ -e 's/^\.PD0/\.PD 0/' \ $$MANPAGE; \ mv $$MANPAGE $${MANPAGE}$(MANEXT); \ done override_dh_fixperms: dh_fixperms chmod 0755 $(PKGDIR)$(TROFFDIR)/font/devutf/mkMAP chmod 0755 $(PKGDIR)$(TROFFDIR)/tmac/sendcover debian/patches/0000755000000000000000000000000012065066167010626 5ustar debian/patches/0001-troff-Replace-9-with-usr-share-9base-troff-in-the-va.patch0000644000000000000000000000417212065066167023655 0ustar From: Gergely Nagy Date: Fri, 21 Dec 2012 14:37:08 +0100 Subject: troff: Replace #9 with /usr/share/9base/troff in the various paths. Signed-off-by: Gergely Nagy --- troff/tmac/mmn | 2 +- troff/tmac/mmt | 2 +- troff/tmac/tmac.e | 2 +- troff/tmac/tmac.m | 4 ++-- troff/tmac/tmac.s | 2 +- troff/tmac/tmac.spe | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/troff/tmac/mmn b/troff/tmac/mmn index fab3973..bea2df4 100644 --- a/troff/tmac/mmn +++ b/troff/tmac/mmn @@ -24,7 +24,7 @@ .nr!8 0 .nr!9 0 .nr!M 0 -.so #9/tmac/strings.mm +.so /usr/share/9base/troff/tmac/strings.mm .if\*(]S .ds ]S \*(}Z .dsBU \(bu .dsEM \%-- diff --git a/troff/tmac/mmt b/troff/tmac/mmt index c3c9c7d..5ef32dd 100644 --- a/troff/tmac/mmt +++ b/troff/tmac/mmt @@ -23,7 +23,7 @@ .nr!8 0 .nr!9 0 .nr!M 0 -.so #9/tmac/strings.mm +.so /usr/share/9base/troff/tmac/strings.mm .if\*(]S .ds ]S \s14\f3\*(}Z\fP\s0 .dsBU \s-2\(bu\s0 .dsEM \(em diff --git a/troff/tmac/tmac.e b/troff/tmac/tmac.e index 8e52976..c79ce55 100644 --- a/troff/tmac/tmac.e +++ b/troff/tmac/tmac.e @@ -918,7 +918,7 @@ .nr ii 5n .nr $m 1 .nr $s 4n -.ds || #9/tmac/me +.ds || /usr/share/9base/troff/tmac/me .bd S B 3 .ds [ \u\x'-0.25v' .ds ] \d diff --git a/troff/tmac/tmac.m b/troff/tmac/tmac.m index 061b6d0..05c0ef3 100644 --- a/troff/tmac/tmac.m +++ b/troff/tmac/tmac.m @@ -1,3 +1,3 @@ '''\" TMAC.M @(#)tmacs.src 1.7 -.if n .so #9/tmac/mmn -.if t .so #9/tmac/mmt +.if n .so /usr/share/9base/troff/tmac/mmn +.if t .so /usr/share/9base/troff/tmac/mmt diff --git a/troff/tmac/tmac.s b/troff/tmac/tmac.s index 6f11186..c69aa49 100644 --- a/troff/tmac/tmac.s +++ b/troff/tmac/tmac.s @@ -1,5 +1,5 @@ .lg 0 -.ds sd #9/tmac +.ds sd /usr/share/9base/troff/tmac .\" RT - reset everything to normal state .de RT .if \\n(CS \{\ diff --git a/troff/tmac/tmac.spe b/troff/tmac/tmac.spe index ea77323..b8d4812 100644 --- a/troff/tmac/tmac.spe +++ b/troff/tmac/tmac.spe @@ -1,5 +1,5 @@ ..... July 1, 1991 -.so #9/tmac/tmac.pm +.so /usr/share/9base/troff/tmac/tmac.pm . .ig .nr VN 1 \" VN -- volume debian/patches/0007-troff-Make-the-9-macro-point-to-a-useful-location.patch0000644000000000000000000000145412065066167023351 0ustar From: Gergely Nagy Date: Fri, 21 Dec 2012 14:35:49 +0100 Subject: troff: Make the *9 macro point to a useful location The *9 macro, used to point to 9base sources was pointing to a local user's home. Instead, point it to swtch.com/usr/local/plan9 instead. Reported-by: Sergey Romanov Signed-off-by: Gergely Nagy --- troff/tmac/tmac.an | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/troff/tmac/tmac.an b/troff/tmac/tmac.an index fbd6198..0b41adb 100644 --- a/troff/tmac/tmac.an +++ b/troff/tmac/tmac.an @@ -3,7 +3,7 @@ .fp 3 B LuxiSans-Bold .fp 4 BI LuxiSans-BoldOblique .fp 5 L LuxiMono -.ds 9 /home/anselm/plan9port +.ds 9 http://swtch.com/usr/local/plan9 .if n .uf 4 .if n .bd 3 .if n .rm bd debian/patches/0006-getflags-Fix-the-manpage-section.patch0000644000000000000000000000140312065066167020376 0ustar From: Gergely Nagy Date: Fri, 21 Dec 2012 14:31:40 +0100 Subject: getflags: Fix the manpage section The manual page has an extension that indicates section one, yet the header puts it in 8. There's no reason for it to be there, so fix the header to indicate section 1 instead. Reported-by: Sergey Romanov Signed-off-by: Gergely Nagy --- getflags/getflags.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getflags/getflags.1 b/getflags/getflags.1 index 50274d4..1734787 100644 --- a/getflags/getflags.1 +++ b/getflags/getflags.1 @@ -1,4 +1,4 @@ -.TH GETFLAGS 8 +.TH GETFLAGS 1 .SH NAME getflags, usage \- command-line parsing for shell scripts .SH SYNOPSIS debian/patches/0005-troff-Mention-the-correct-macro-package-path-in-trof.patch0000644000000000000000000000126112065066167024173 0ustar From: Gergely Nagy Date: Fri, 21 Dec 2012 14:29:48 +0100 Subject: troff: Mention the correct macro package path in troff(1) In the Debian packaging, troff macro files are under /usr/share/9base/troff/tmac/. Signed-off-by: Gergely Nagy --- troff/troff.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/troff/troff.1 b/troff/troff.1 index 7af3f3c..e87868e 100644 --- a/troff/troff.1 +++ b/troff/troff.1 @@ -63,7 +63,7 @@ Number first generated page .TP .BI -m name Process the macro file -.BI /sys/lib/tmac/tmac. name +.BI /usr/share/9base/troff/tmac/tmac. name before the input .IR files . .TP debian/patches/0004-9base-Set-FD_CLOEXEC-correctly-using-F_SETFD-not-F_S.patch0000644000000000000000000000213312065066167023116 0ustar From: Guillem Jover Date: Tue, 18 Dec 2012 17:25:40 +0100 Subject: 9base: Set FD_CLOEXEC correctly using F_SETFD not F_SETFL Using that value on F_SETFL is just wrong, and might make the call fail on some systems, as it's requesting to set an undetermined flag. For example on GNU/* FD_CLOEXEC has value 1, which matches with O_WRONLY. This might cause the code to at least leak file descriptors, and at worst to terminate execution. --- lib9/create.c | 2 +- lib9/open.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib9/create.c b/lib9/create.c index e4e3c71..4d9ae10 100644 --- a/lib9/create.c +++ b/lib9/create.c @@ -67,7 +67,7 @@ out: } } if(cexec) - fcntl(fd, F_SETFL, FD_CLOEXEC); + fcntl(fd, F_SETFD, FD_CLOEXEC); if(rclose) remove(path); } diff --git a/lib9/open.c b/lib9/open.c index a0573ae..e21a5b4 100644 --- a/lib9/open.c +++ b/lib9/open.c @@ -54,7 +54,7 @@ p9open(char *name, int mode) } } if(cexec) - fcntl(fd, F_SETFL, FD_CLOEXEC); + fcntl(fd, F_SETFD, FD_CLOEXEC); if(rclose) remove(name); } debian/patches/0003-Use-usr-lib-plan9-bin-rc-instead-of-bin-rc.patch0000644000000000000000000000137512065066167021734 0ustar From: Kai Hendry Date: Thu, 15 Dec 2011 13:09:19 +0100 Subject: Use /usr/lib/plan9/bin/rc instead of /bin/rc --- troff/font/devutf/mkMAP | 2 +- troff/tmac/sendcover | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/troff/font/devutf/mkMAP b/troff/font/devutf/mkMAP index d7f0d5d..30d0246 100644 --- a/troff/font/devutf/mkMAP +++ b/troff/font/devutf/mkMAP @@ -1,4 +1,4 @@ -#!/bin/rc +#!/usr/lib/plan9/bin/rc grep ' ' $* | awk ' $2 != "\"" {last = $4} {printf("\t%s\t%s\n", $1, last)} diff --git a/troff/tmac/sendcover b/troff/tmac/sendcover index bb17c13..80de77c 100644 --- a/troff/tmac/sendcover +++ b/troff/tmac/sendcover @@ -1,4 +1,4 @@ -#!/bin/rc +#!/usr/lib/plan9/bin/rc T=/tmp/cs$pid cstrans $T $1 rc $T debian/patches/series0000644000000000000000000000063012065066167012042 0ustar 0001-troff-Replace-9-with-usr-share-9base-troff-in-the-va.patch 0002-Search-for-rcmain-in-usr-lib-plan9-etc-rcmain.patch 0003-Use-usr-lib-plan9-bin-rc-instead-of-bin-rc.patch 0004-9base-Set-FD_CLOEXEC-correctly-using-F_SETFD-not-F_S.patch 0005-troff-Mention-the-correct-macro-package-path-in-trof.patch 0006-getflags-Fix-the-manpage-section.patch 0007-troff-Make-the-9-macro-point-to-a-useful-location.patch debian/patches/0002-Search-for-rcmain-in-usr-lib-plan9-etc-rcmain.patch0000644000000000000000000000076112065066167022512 0ustar From: Kai Hendry Date: Thu, 15 Dec 2011 13:09:19 +0100 Subject: Search for rcmain in /usr/lib/plan9/etc/rcmain --- rc/plan9ish.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/plan9ish.c b/rc/plan9ish.c index 269d124..f9a43ef 100644 --- a/rc/plan9ish.c +++ b/rc/plan9ish.c @@ -27,7 +27,7 @@ char *syssigname[]={ char* Rcmain(void) { - return unsharp("#9/etc/rcmain"); + return unsharp("/usr/lib/plan9/etc/rcmain"); } char Fdprefix[]="/dev/fd/"; debian/9base.README.Debian0000644000000000000000000000043212065064733012236 0ustar 9base for Debian ---------------- Please note that all manpages have subsection extension plan9, and are typeset with the plan9 macro package, so you need to use: $ zcat /usr/share/man/man1/awk.1plan9.gz | /usr/lib/plan9/bin/troff -N -man to read the manpage of the plan9 awk. debian/9base.docs0000644000000000000000000000000712065051556011045 0ustar README debian/changelog0000644000000000000000000001672312065064733011057 0ustar 9base (1:6-6) unstable; urgency=low * Add a watch file, thanks to Andy Simpkins (Closes: #695163) * Use F_SETFD instead of F_SETFL to set FD_CLOEXEC, patch from Guillem Jover (Closes: #696247) * Based on work by Sergey Romanov : + Move troff data to /usr/share/9base/troff. + Various man page tweaks + Move to debhelper compat level 9. -- Gergely Nagy Fri, 21 Dec 2012 14:50:06 +0100 9base (1:6-5) unstable; urgency=low * New maintainer (Closes: #647092). * Include 'strings' in the long description (Closes: #622177). * Remove empty manual pages: better no manpages than an empty one. * Fix the troff macros to look for include files at the right location. * Update README.Debian, to show how to display the plan9 man pages properly. -- Gergely Nagy Thu, 15 Dec 2011 14:15:57 +0100 9base (1:6-4) unstable; urgency=low * New maintainer -- Kai Hendry Sun, 05 Dec 2010 15:51:57 +0000 9base (1:6-3) experimental; urgency=low * Updating package to debhelper 8. * Switching to source format 3.0 (quilt). * Updating variable handing in rules. -- Daniel Baumann Sat, 13 Nov 2010 09:57:39 +0100 9base (1:6-2) experimental; urgency=low * Updating standards version to 3.9.0. * Updating to standards version 3.9.1. * Building on all architectures again, appears to build on ia64 again (Closes: #599952). * Removing suggest to 9mount. -- Daniel Baumann Sun, 17 Oct 2010 21:51:20 +0200 9base (1:6-1) unstable; urgency=low * Adding Kai as co-maintainer. * Merging upstream version 6. -- Daniel Baumann Fri, 04 Jun 2010 17:22:03 +0200 9base (1:5-1) unstable; urgency=low [ Daniel Baumann ] * Adding explicit debian source version 1.0 until switch to 3.0. * Updating year in copyright file. * Updating to standards 3.8.4. * Sorting dh call in rules to more common order. * Updating README.source. * Updating lintian overrides. [ Kai Hendry ] * Merging upstream version 5. -- Kai Hendry Sun, 25 Apr 2010 14:35:21 +0100 9base (1:4-1) unstable; urgency=low * Adding maintainer homepage field to control. * Marking maintainer homepage field to be also included in binary packages and changelog. * Adding README.source. * Merging upstream version 4. * Adding sh4 to explicit architecture list (Closes: #545772). * Moving maintainer homepage field from control to copyright. * Updating README.source. * Updating homepage field in control. * Removing manpage patch, went upstream. * Removing kfreebsd.patch, went upstream. * Generalizing manpage moving in rules. * Moving base directory from /usr/lib/9base to /usr/lib/plan9 for consistency reasons. * Prefixing manpages with plan9 instead of 9base for consistency reasons. * Bumping versioned build-depends on debhelper. * Making internal mkMAP and sendcover scripts executable. * Adding patch to adjust shebang in newly included troff commands. * Updating lintian-overrides. * Making buildd-depends on quilt versioned. -- Daniel Baumann Sat, 07 Nov 2009 12:25:14 +0100 9base (1:3-3) unstable; urgency=low * Updating maintainer field. * Updating vcs fields. * Updating package to standards version 3.8.3. * Updatin variables writing in rules to consistent style. -- Daniel Baumann Thu, 20 Aug 2009 17:34:06 +0200 9base (1:3-2) unstable; urgency=low * Adding patch to adjust rc to debian specific filesystem location. -- Daniel Baumann Sat, 08 Aug 2009 18:13:08 +0200 9base (1:3-1) unstable; urgency=low * Upgrading package to standards version 3.8.2. * Updating year in copyright file. * Updating rules file to current state of the art. * Merging upstream version 3. * Updating year in copyright file. * Rediffing manpage.patch. * Removing architectures that debian dropped from the explicit architecture field. * Sorting depends. * Minimizing rules file. * Using correct rfc-2822 date formats in changelog. -- Daniel Baumann Wed, 05 Aug 2009 10:22:48 +0200 9base (1:2-10) unstable; urgency=low * Prefixing debhelper files with package name. * Updating suggests. * Updating make install call in rules. * Using quilt rather than dpatch. * Updating indenting in README.Debian. -- Daniel Baumann Wed, 17 Dec 2008 20:57:00 +0100 9base (1:2-9) unstable; urgency=low * Adding version 2+20071126-1 to debian changelog. * Upgrading package to debhelper 7. * Upgrading package to standards 3.8.0. * Adding vcs fields in control. * Replacing obsolete dh_clean -k with dh_prep. * Removing watch file. * Using lintian debhelper to install lintian overrides. * Reordering rules file. * Rewriting copyright file in machine-interpretable format. -- Daniel Baumann Sat, 08 Nov 2008 08:08:00 +0100 9base (1:2-8) unstable; urgency=low * Bumping to new policy. * Using new homepage field in control. * Don't hide make errors in clean target of rules. -- Daniel Baumann Sun, 23 Dec 2007 11:36:00 +0100 9base (1:2+20071126-1) experimental; urgency=low * Testing upstream snapshot (Closes: #421482). -- Daniel Baumann Mon, 26 Nov 2007 21:40:00 +0100 9base (1:2-7) unstable; urgency=low * Reverting to last know working version (Closes: #421482). -- Daniel Baumann Mon, 30 Jul 2007 08:41:00 +0200 9base (2+20070601-2) unstable; urgency=low * Temporarily remove s390 from architectures (Closes: #421482). -- Daniel Baumann Sun, 10 Jun 2007 23:23:00 +0200 9base (2+20070601-1) unstable; urgency=low * New upstream snapshot. -- Daniel Baumann Fri, 01 Jun 2007 18:59:00 +0200 9base (2+20070501-1) unstable; urgency=low * New upstream snapshot. -- Daniel Baumann Tue, 01 May 2007 08:52:00 +0200 9base (2+20070429-1) unstable; urgency=low * New upstream snapshot. -- Daniel Baumann Sun, 29 Apr 2007 12:01:00 +0200 9base (2-6) unstable; urgency=low * Added patch from Cyril Brulebois to fix FTBFS on kfreebsd (Closes: #414224). -- Daniel Baumann Sat, 10 Mar 2007 08:56:00 +0100 9base (2-5) unstable; urgency=low * Added armeb and armel to the explicit architecture list (Closes: #408765). -- Daniel Baumann Sun, 28 Jan 2007 13:12:00 +0100 9base (2-4) unstable; urgency=low * Minor cleanups. -- Daniel Baumann Fri, 19 Jan 2007 09:51:00 +0100 9base (2-3) unstable; urgency=medium * Excluding ia64 manually. -- Daniel Baumann Mon, 18 Sep 2006 12:08:00 +0200 9base (2-2) unstable; urgency=low * New email address. -- Daniel Baumann Tue, 04 Jul 2006 23:27:00 +0200 9base (2-1) unstable; urgency=low * New upstream release. -- Daniel Baumann Tue, 25 Jan 2006 15:33:00 +0100 9base (1+20060123-1) unstable; urgency=low * New upstream snapshot, should fix FTBFS on most !i386 architectures. -- Daniel Baumann Tue, 24 Jan 2006 15:26:00 +0100 9base (1-1) unstable; urgency=low * Initial release. -- Daniel Baumann Wed, 28 Dec 2005 13:32:00 +0100