aboutsummaryrefslogtreecommitdiffstats
path: root/print/lout
diff options
context:
space:
mode:
authormax <max@FreeBSD.org>1996-12-19 19:11:48 +0800
committermax <max@FreeBSD.org>1996-12-19 19:11:48 +0800
commit8a76e3215291b990ec216f33bee2d829cf094f23 (patch)
tree5bd0d2d6d3fb5f32efb8f41f71019178867b752f /print/lout
parentc7af321ed633ca9b78b34c551418850f97612a4d (diff)
downloadfreebsd-ports-gnome-8a76e3215291b990ec216f33bee2d829cf094f23.tar.gz
freebsd-ports-gnome-8a76e3215291b990ec216f33bee2d829cf094f23.tar.zst
freebsd-ports-gnome-8a76e3215291b990ec216f33bee2d829cf094f23.zip
Modify this patch to change the original makefile's installdoc target
`make reinstall' won't install docs into wrong place. Noticed by: obrien (Closing PR #2132.) Also some modification to change the makefile's install* targets to do chown bin.bin on installed files.
Diffstat (limited to 'print/lout')
-rw-r--r--print/lout/files/patch-0146
1 files changed, 40 insertions, 6 deletions
diff --git a/print/lout/files/patch-01 b/print/lout/files/patch-01
index 4b47de5c9ea8..9910e9c7c6f3 100644
--- a/print/lout/files/patch-01
+++ b/print/lout/files/patch-01
@@ -1,6 +1,6 @@
---- makefile.orig Wed May 8 03:33:44 1996
-+++ makefile Fri Nov 8 02:10:41 1996
-@@ -203,15 +203,15 @@
+--- makefile.orig Wed May 8 19:33:44 1996
++++ makefile Thu Dec 19 19:57:02 1996
+@@ -203,15 +203,16 @@
USESTAT = 1
@@ -8,6 +8,7 @@
-LIBDIR = /u12/staff/jeff/lout.lib
-DOCDIR = /u12/staff/jeff/lout.doc
-MANDIR = /u12/staff/jeff/lout.man
++PREFIX ?= /usr/local
+BINDIR = $(PREFIX)/bin
+LIBDIR = $(PREFIX)/share/lout
+DOCDIR = $(PREFIX)/share/doc/lout
@@ -21,8 +22,14 @@
LOC_FR = fr
LOC_DE = de
-@@ -263,35 +263,35 @@
+@@ -259,39 +260,41 @@
+ @echo "(a) Installing Lout and c2lout binaries into BINDIR $(BINDIR)"
+ cp lout $(BINDIR)/lout
+ chmod 755 $(BINDIR)/lout
++ chown bin.bin $(BINDIR)/lout
+ cp c2lout $(BINDIR)/c2lout
chmod 755 $(BINDIR)/c2lout
++ chown bin.bin $(BINDIR)/c2lout
@echo ""
@echo "(b) Installing library files into LIBDIR $(LIBDIR)"
- mkdir $(LIBDIR)
@@ -64,7 +71,34 @@
chmod 755 $(LIBDIR)/locale
@echo ""
@echo "(c) Initializing run (should be silent, no errors expected)"
-@@ -322,9 +322,9 @@
+@@ -300,6 +303,7 @@
+ @echo "(d) Changing mode of files just created by initializing run"
+ chmod 644 $(LIBDIR)/data/*
+ chmod 644 $(LIBDIR)/hyph/*
++ chown -R bin.bin $(LIBDIR)
+
+ installman:
+ @echo ""
+@@ -308,23 +312,27 @@
+ -e "s@<DOCDIR>@$(DOCDIR)@" -e "s@<MANDIR>@$(MANDIR)@" \
+ man/lout.1 > $(MANDIR)/lout.1
+ chmod 644 $(MANDIR)/lout.1
++ chown bin.bin $(MANDIR)/lout.1
+ cp man/c2lout.1 $(MANDIR)/c2lout.1
+ chmod 644 $(MANDIR)/c2lout.1
++ chown bin.bin $(MANDIR)/c2lout.1
+
+ installdoc:
+ @echo ""
+ @echo "Creating DOCDIR $(DOCDIR) and copying documentation into it"
+- cp -r doc $(DOCDIR)
++ -mkdir $(DOCDIR)
++ cp -r doc/* $(DOCDIR)
+ chmod 755 $(DOCDIR)
+ chmod 755 $(DOCDIR)/*
+ chmod 644 $(DOCDIR)/*/*
++ chown -R bin.bin $(DOCDIR)
+
installfr:
@echo ""
@echo "Installing French error messages into $(LIBDIR)/locale/$(LOC_FR)"
@@ -76,7 +110,7 @@
chmod 755 $(LIBDIR)/locale/$(LOC_FR)/LC_MESSAGES
cp locale/msgs.fr $(LIBDIR)/locale/$(LOC_FR)/LC_MESSAGES/msgs.$(LOC_FR)
gencat $(LIBDIR)/locale/$(LOC_FR)/LC_MESSAGES/errors.$(LOC_FR) \
-@@ -334,9 +334,9 @@
+@@ -334,9 +342,9 @@
installde:
@echo ""
@echo "Installing German error messages into $(LIBDIR)/locale/$(LOC_DE)"