freebsd-ports/comms/gfax/files/patch-gfax
Pav Lucistnik d9b8543491 - Update to 0.6.4
PR:		ports/69119
Submitted by:	John Merryweather Cooper <johnmary@adelphia.net> (maintainer)
2004-07-17 14:18:29 +00:00

31 lines
764 B
Text

--- gfax.orig Thu Jul 8 22:56:38 2004
+++ gfax Thu Jul 8 23:48:36 2004
@@ -11,24 +11,20 @@
# CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECT-
# ION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
-RNAME=G$$
# don't change this spool directory, gfax uses it.
SPOOL_DIR=/var/spool/gfax
+RNAME=`mktemp -q $SPOOL_DIR/D.XXXXXX` || exit 1
MYPATH=/usr/bin
STD=no
if [ -s /dev/stdin ]; then
- cat > $SPOOL_DIR/D.$RNAME
+ cat > $RNAME
STD=yes
fi
-if [ "$(pwd)" = "/home/george/Projects/gfax" ]; then
- MYPATH=/home/george/Projects/gfax
-fi
-
if [ $STD = "yes" ]; then
- mono $MYPATH/mono-gfax.exe -f $SPOOL_DIR/D.$RNAME
- #rm -f $SPOOL_DIR/D.$RNAME
+ mono $MYPATH/mono-gfax.exe -f $RNAME
+ #rm -f $RNAME
exit 0
fi