Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Jul 1997 02:10:07 -0700 (PDT)
From:      Masafumi NAKANE/=?ISO-2022-JP?B?GyRCQ2Y6LDJtSjgbKEI=?= <max@wide.ad.jp>
To:        freebsd-ports
Subject:   Re: ports/3990: port japanese/prn: bugfix
Message-ID:  <199707010910.CAA20292@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/3990; it has been noted by GNATS.

From: Masafumi NAKANE/=?ISO-2022-JP?B?GyRCQ2Y6LDJtSjgbKEI=?= <max@wide.ad.jp>
To: taoka@infonets.hiroshima-u.ac.jp
Cc: freebsd-gnats-submit@FreeBSD.ORG, max@wide.ad.jp
Subject: Re: ports/3990: port japanese/prn: bugfix
Date: Tue, 01 Jul 1997 18:04:23 +0900

      > If you make this package in setting PREFIX to '/usr/local',
      > then the tarboll is the following.  lrwxr-xr-x bin/bin 0 Jul 1
      > 08:54 1997 bin/cprn -> /usr/local/bin/prn
 
      > 'bin/cprn' is a symbolic link to '/usr/local/bin/prn'. If you
      > install by executing 'pkg_add -p /share jp-prn-1.0.tar.gz' for
      > such the package, /share/bin/cprn is a link to '
      > /usr/local/bin/prn'.  Note that PREFIX is '/share'.
 
 Ok, I see your point.  However, I would rather solve this by making
 bin/cprn point to prn, i.e., following modification to patch-aa.
 
 The advantage of this method is that we can keep the PLIST simple and
 we don't have to execute ln when doing pkg_{add,install}.
 
 Index: patches/patch-aa
 ===================================================================
 RCS file: /home/ncvs/ports/japanese/prn/patches/patch-aa,v
 retrieving revision 1.1.1.1
 diff -u -r1.1.1.1 patch-aa
 --- patch-aa	1997/06/23 14:31:12	1.1.1.1
 +++ patch-aa	1997/07/01 08:55:01
 @@ -1,5 +1,5 @@
  *** Makefile.orig	Wed May 11 17:00:58 1994
 ---- Makefile	Mon Jun 23 23:15:39 1997
 +--- Makefile	Tue Jul  1 17:44:49 1997
  ***************
  *** 25,35 ****
    #	@(#)Makefile 2.3 (Y.Tonooka) 5/11/94
 @@ -51,8 +51,28 @@
                 TAGS = ctags
                ETAGS = etags
  ***************
 -*** 98,103 ****
 ---- 102,108 ----
 +*** 91,103 ****
 +  
 +  $(BINPATH)/cprn: $(BINPATH)/prn
 +  	if [ $@ ]; then $(RM) $@; fi
 +! 	$(LN) $(BINPATH)/prn $@
 +  
 +  $(BINPATH)/cmt: cmt.c defs.c euc.c reg.y
 +  	$(MAKE) cmt
 +  	$(INSTALL) -s cmt $(BINPATH)
 +  
 +  $(LIBPATH)/cmtdefs: cmtdefs
 +  	$(CP) cmtdefs $@; chmod 644 $@
 +  
 +  $(BINPATH)/psconv: psconv.c
 +--- 95,108 ----
 +  
 +  $(BINPATH)/cprn: $(BINPATH)/prn
 +  	if [ $@ ]; then $(RM) $@; fi
 +! 	$(LN) prn $@
 +  
 +  $(BINPATH)/cmt: cmt.c defs.c euc.c reg.y
 +  	$(MAKE) cmt
    	$(INSTALL) -s cmt $(BINPATH)
    
    $(LIBPATH)/cmtdefs: cmtdefs
 
 
 Thoughts?
 
      Cheers,
 Max



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199707010910.CAA20292>