]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Don't overwrite pre existing faxcover.ps when package is installed again.
authorTim Rice <tim@multitalents.net>
Thu, 23 Jan 2003 20:02:18 +0000 (20:02 +0000)
committerTim Rice <tim@multitalents.net>
Thu, 23 Jan 2003 20:02:18 +0000 (20:02 +0000)
Add missing faxcover_example_sgi.ps to cproto.stub.in and sproto.stub.in

pkg/cproto.stub.in
pkg/postinstall.in
pkg/sproto.stub.in

index 46cd90046efcfbc566baa5d1e0c3863f6be63a98..b20ae438b732c82e77021af7440677340ddd3619 100644 (file)
@@ -7,7 +7,8 @@ f none @BIN@/faxstat=../faxstat/faxstat 0755 @SYSUID@ @SYSGID@
 f none @BIN@/sendfax=../sendfax/sendfax 0755 @SYSUID@ @SYSGID@
 f none @BIN@/sendpage=../sendpage/sendpage 0755 @SYSUID@ @SYSGID@
 d none @LIBDATA@ ? ? ?
-f none @LIBDATA@/faxcover.ps=../@SRCDIR@/faxcover/faxcover.ps 0644 @SYSUID@ @SYSGID@
+f none @LIBDATA@/faxcover.ps.dist=../@SRCDIR@/faxcover/faxcover.ps 0644 @SYSUID@ @SYSGID@
+f none @LIBDATA@/faxcover_example_sgi.ps=../@SRCDIR@/faxcover/faxcover_example_sgi.ps 0644 @SYSUID@ @SYSGID@
 f none @LIBDATA@/faxmail.ps=../@SRCDIR@/faxmail/faxmail.ps 0444 @SYSUID@ @SYSGID@
 f none @LIBDATA@/pagesizes=../util/pagesizes 0444 @SYSUID@ @SYSGID@
 f none @LIBDATA@/typerules=../@SRCDIR@/util/typerules 0444 @SYSUID@ @SYSGID@
index 8243c2885b870d379f45c8f375995f2c38b5468e..201c923bd7863bb5dd23975abb0e173cd1303a99 100644 (file)
@@ -7,6 +7,16 @@
 #cd /usr/local/HylaFAX-v4.0
 #sh make.links
 
+if test -f @LIBDATA@/faxcover.ps
+then
+       mv @LIBDATA@/faxcover.ps.dist @LIBDATA@/faxcover.ps.N
+       installf HylaFAX @LIBDATA@/faxcover.ps.N 0644 @SYSUID@ @SYSGID@
+else
+       mv @LIBDATA@/faxcover.ps.dist @LIBDATA@/faxcover.ps
+       installf HylaFAX @LIBDATA@/faxcover.ps 0644 @SYSUID@ @SYSGID@
+fi
+removef HylaFAX @LIBDATA@/faxcover.ps.dist
+
 if test -d @SPOOL@/recvq
 then
        echo "\n\nRun @SBIN@/faxsetup\n"
@@ -32,4 +42,8 @@ else
        echo "\n\nRun @SBIN@/faxsetup -client\n"
 fi
 
+# update software database
+installf -f HylaFAX
+removef -f HylaFAX
+
 exit 0
index ef310d431c3b943d0c3942515cb1bf139e100353..6c23945c24f3861ab9d3efb7a7192670f1b858c0 100644 (file)
@@ -9,7 +9,8 @@ f none @BIN@/sendpage=../sendpage/sendpage 0755 @SYSUID@ @SYSGID@
 d none @LIBDATA@ ? ? ?
 f none @LIBDATA@/pagesizes=../util/pagesizes 0444 @SYSUID@ @SYSGID@
 f none @LIBDATA@/typerules=../@SRCDIR@/util/typerules 0444 @SYSUID@ @SYSGID@
-f none @LIBDATA@/faxcover.ps=../@SRCDIR@/faxcover/faxcover.ps 0644 @SYSUID@ @SYSGID@
+f none @LIBDATA@/faxcover.ps.dist=../@SRCDIR@/faxcover/faxcover.ps 0644 @SYSUID@ @SYSGID@
+f none @LIBDATA@/faxcover_example_sgi.ps=../@SRCDIR@/faxcover/faxcover_example_sgi.ps 0644 @SYSUID@ @SYSGID@
 f none @LIBDATA@/faxmail.ps=../@SRCDIR@/faxmail/faxmail.ps 0444 @SYSUID@ @SYSGID@
 f none @LIBDATA@/hfaxd.conf=../@SRCDIR@/hfaxd/hfaxd.conf 0644 @SYSUID@ @SYSGID@
 d none @LIBEXEC@ ? ? ?