]> git.pld-linux.org Git - packages/epic4.git/blame - epic4-DESTDIR.patch
perl 5.38.0 rebuild
[packages/epic4.git] / epic4-DESTDIR.patch
CommitLineData
340d3e48
AM
1diff -urN epic4-1.2.9.org/bsdinstall epic4-1.2.9/bsdinstall
2--- epic4-1.2.9.org/bsdinstall 2004-06-13 22:24:06.122067584 +0200
3+++ epic4-1.2.9/bsdinstall 2004-06-13 22:24:14.876736672 +0200
4@@ -1,90 +1,251 @@
5-#! /bin/sh
6+#!/bin/sh
7 #
8-# @(#)install.sh 4.5 (Berkeley) 10/12/83
9+# install - install a program, script, or datafile
10+# This comes from X11R5 (mit/util/scripts/install.sh).
11 #
12-cmd=/bin/mv
13-strip=""
14-chmod="/bin/chmod 755"
15-chown=""
16-chgrp=""
17-while true ; do
18- case $1 in
19- -s ) strip="/bin/strip"
20- shift
21- ;;
22- -c ) cmd="/bin/cp -p"
23- shift
24- ;;
25- -m ) chmod="/bin/chmod $2"
26- shift
27- shift
28- ;;
29- -o ) chown="/etc/chown -f $2"
30- shift
31- shift
32- ;;
33- -g ) chgrp="/bin/chgrp -f $2"
34- shift
35- shift
36- ;;
37- -d ) cmd="/bin/mkdir"
38- shift
39- ;;
40- * ) break
41- ;;
42- esac
43+# Copyright 1991 by the Massachusetts Institute of Technology
44+#
45+# Permission to use, copy, modify, distribute, and sell this software and its
46+# documentation for any purpose is hereby granted without fee, provided that
47+# the above copyright notice appear in all copies and that both that
48+# copyright notice and this permission notice appear in supporting
49+# documentation, and that the name of M.I.T. not be used in advertising or
50+# publicity pertaining to distribution of the software without specific,
51+# written prior permission. M.I.T. makes no representations about the
52+# suitability of this software for any purpose. It is provided "as is"
53+# without express or implied warranty.
54+#
55+# Calling this script install-sh is preferred over install.sh, to prevent
56+# `make' implicit rules from creating a file called install from it
57+# when there is no Makefile.
58+#
59+# This script is compatible with the BSD install script, but was written
60+# from scratch. It can only install one file at a time, a restriction
61+# shared with many OS's install programs.
62+
63+
64+# set DOITPROG to echo to test this script
65+
66+# Don't use :- since 4.3BSD and earlier shells don't like it.
67+doit="${DOITPROG-}"
68+
69+
70+# put in absolute paths if you don't have them in your path; or use env. vars.
71+
72+mvprog="${MVPROG-mv}"
73+cpprog="${CPPROG-cp}"
74+chmodprog="${CHMODPROG-chmod}"
75+chownprog="${CHOWNPROG-chown}"
76+chgrpprog="${CHGRPPROG-chgrp}"
77+stripprog="${STRIPPROG-strip}"
78+rmprog="${RMPROG-rm}"
79+mkdirprog="${MKDIRPROG-mkdir}"
80+
81+transformbasename=""
82+transform_arg=""
83+instcmd="$mvprog"
84+chmodcmd="$chmodprog 0755"
85+chowncmd=""
86+chgrpcmd=""
87+stripcmd=""
88+rmcmd="$rmprog -f"
89+mvcmd="$mvprog"
90+src=""
91+dst=""
92+dir_arg=""
93+
94+while [ x"$1" != x ]; do
95+ case $1 in
96+ -c) instcmd="$cpprog"
97+ shift
98+ continue;;
99+
100+ -d) dir_arg=true
101+ shift
102+ continue;;
103+
104+ -m) chmodcmd="$chmodprog $2"
105+ shift
106+ shift
107+ continue;;
108+
109+ -o) chowncmd="$chownprog $2"
110+ shift
111+ shift
112+ continue;;
113+
114+ -g) chgrpcmd="$chgrpprog $2"
115+ shift
116+ shift
117+ continue;;
118+
119+ -s) stripcmd="$stripprog"
120+ shift
121+ continue;;
122+
123+ -t=*) transformarg=`echo $1 | sed 's/-t=//'`
124+ shift
125+ continue;;
126+
127+ -b=*) transformbasename=`echo $1 | sed 's/-b=//'`
128+ shift
129+ continue;;
130+
131+ *) if [ x"$src" = x ]
132+ then
133+ src=$1
134+ else
135+ # this colon is to work around a 386BSD /bin/sh bug
136+ :
137+ dst=$1
138+ fi
139+ shift
140+ continue;;
141+ esac
142 done
143
144-if test ! ${2-""}; then
145- echo "install: no destination specified"
146+if [ x"$src" = x ]
147+then
148+ echo "install: no input file specified"
149 exit 1
150+else
151+ true
152 fi
153-if test ${3-""}; then
154- echo "install: too many files specified -> $*"
155- exit 1
156-fi
157-if test $1 = $2 -o $2 = .; then
158- echo "install: can't move $1 onto itself"
159- exit 1
160-fi
161-case $cmd in
162-/bin/mkdir )
163- file=$2/$1
164- ;;
165-* )
166- if test '!' -f $1; then
167- echo "install: can't open $1"
168- exit 1
169+
170+if [ x"$dir_arg" != x ]; then
171+ dst=$src
172+ src=""
173+
174+ if [ -d $dst ]; then
175+ instcmd=:
176+ chmodcmd=""
177+ else
178+ instcmd=mkdir
179 fi
180- if test -d $2; then
181- file=$2/$1
182+else
183+
184+# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
185+# might cause directories to be created, which would be especially bad
186+# if $src (and thus $dsttmp) contains '*'.
187+
188+ if [ -f $src -o -d $src ]
189+ then
190+ true
191 else
192- file=$2
193+ echo "install: $src does not exist"
194+ exit 1
195 fi
196- /bin/rm -f $file
197- ;;
198-esac
199-
200-case $cmd in
201-/bin/mkdir )
202- if test ! -d "$file"; then
203- $cmd $file
204- fi
205- ;;
206-* )
207- $cmd $1 $file
208- if test -n "$strip"; then
209- $strip $file
210+
211+ if [ x"$dst" = x ]
212+ then
213+ echo "install: no destination specified"
214+ exit 1
215+ else
216+ true
217 fi
218- ;;
219-esac
220
221-if test -n "$chown"; then
222- $chown $file
223+# If destination is a directory, append the input filename; if your system
224+# does not like double slashes in filenames, you may need to add some logic
225+
226+ if [ -d $dst ]
227+ then
228+ dst="$dst"/`basename $src`
229+ else
230+ true
231+ fi
232 fi
233-if test -n "$chgrp"; then
234- $chgrp $file
235+
236+## this sed command emulates the dirname command
237+dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
238+
239+# Make sure that the destination directory exists.
240+# this part is taken from Noah Friedman's mkinstalldirs script
241+
242+# Skip lots of stat calls in the usual case.
243+if [ ! -d "$dstdir" ]; then
244+defaultIFS='
245+'
246+IFS="${IFS-${defaultIFS}}"
247+
248+oIFS="${IFS}"
249+# Some sh's can't handle IFS=/ for some reason.
250+IFS='%'
251+set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
252+IFS="${oIFS}"
253+
254+pathcomp=''
255+
256+while [ $# -ne 0 ] ; do
257+ pathcomp="${pathcomp}${1}"
258+ shift
259+
260+ if [ ! -d "${pathcomp}" ] ;
261+ then
262+ $mkdirprog "${pathcomp}"
263+ else
264+ true
265+ fi
266+
267+ pathcomp="${pathcomp}/"
268+done
269 fi
270-$chmod $file
271+
272+if [ x"$dir_arg" != x ]
273+then
274+ $doit $instcmd $dst &&
275+
276+ if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
277+ if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
278+ if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
279+ if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
280+else
281+
282+# If we're going to rename the final executable, determine the name now.
283+
284+ if [ x"$transformarg" = x ]
285+ then
286+ dstfile=`basename $dst`
287+ else
288+ dstfile=`basename $dst $transformbasename |
289+ sed $transformarg`$transformbasename
290+ fi
291+
292+# don't allow the sed command to completely eliminate the filename
293+
294+ if [ x"$dstfile" = x ]
295+ then
296+ dstfile=`basename $dst`
297+ else
298+ true
299+ fi
300+
301+# Make a temp file name in the proper directory.
302+
303+ dsttmp=$dstdir/#inst.$$#
304+
305+# Move or copy the file name to the temp name
306+
307+ $doit $instcmd $src $dsttmp &&
308+
309+ trap "rm -f ${dsttmp}" 0 &&
310+
311+# and set any options; do chmod last to preserve setuid bits
312+
313+# If any of these fail, we abort the whole thing. If we want to
314+# ignore errors from any of these, just make sure not to ignore
315+# errors from the above "$doit $instcmd $src $dsttmp" command.
316+
317+ if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
318+ if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
319+ if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
320+ if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
321+
322+# Now rename the file to the real destination.
323+
324+ $doit $rmcmd -f $dstdir/$dstfile &&
325+ $doit $mvcmd $dsttmp $dstdir/$dstfile
326+
327+fi &&
328+
329
330 exit 0
2b825649
AM
331
332--- epic4-2.10.6/Makefile.in~ 2016-01-30 17:32:30.000000000 +0100
333+++ epic4-2.10.6/Makefile.in 2018-09-23 12:42:48.273897491 +0200
334@@ -73,7 +73,7 @@ mandir = @mandir@
340d3e48
AM
335
336 epic = @epic@
2b825649 337 epic_exe = $(bindir)/$(epic)
340d3e48 338-wserv_exe = $(libexecdir)/wserv4
2b825649
AM
339+wserv_exe = $(libexecdir)/$(epic)/wserv4
340 epicdir = $(sharedir)/$(epic)
340d3e48
AM
341
342 ############ You ought not change anything below this line ###################
This page took 0.179187 seconds and 4 git commands to generate.