From owner-freebsd-ports Tue Jul 1 02:10:12 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id CAA20316 for ports-outgoing; Tue, 1 Jul 1997 02:10:12 -0700 (PDT) Received: (from gnats@localhost) by hub.freebsd.org (8.8.5/8.8.5) id CAA20292; Tue, 1 Jul 1997 02:10:07 -0700 (PDT) Date: Tue, 1 Jul 1997 02:10:07 -0700 (PDT) Message-Id: <199707010910.CAA20292@hub.freebsd.org> To: freebsd-ports Cc: From: Masafumi NAKANE/=?ISO-2022-JP?B?GyRCQ2Y6LDJtSjgbKEI=?= Subject: Re: ports/3990: port japanese/prn: bugfix Reply-To: Masafumi NAKANE/=?ISO-2022-JP?B?GyRCQ2Y6LDJtSjgbKEI=?= Sender: owner-ports@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR ports/3990; it has been noted by GNATS. From: Masafumi NAKANE/=?ISO-2022-JP?B?GyRCQ2Y6LDJtSjgbKEI=?= 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