From owner-man-jp@jp.freebsd.org  Fri Dec 10 17:52:08 1999
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id RAA72860;
	Fri, 10 Dec 1999 17:52:08 +0900 (JST)
	(envelope-from owner-man-jp@jp.FreeBSD.org)
Received: from mailgw1.be.to (mailgw1.be.to [210.235.212.5])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id RAA72855
	for <man-jp@jp.freebsd.org>; Fri, 10 Dec 1999 17:52:07 +0900 (JST)
	(envelope-from okazaki@be.to)
Received: from mail1.be.to (point1.be.to [210.235.212.29])
	by mailgw1.be.to (8.9.3+3.2W/BETO.2.1-1999121003000035) with ESMTP id RAA29748
	for <man-jp@jp.freebsd.org>; Fri, 10 Dec 1999 17:52:07 +0900
Received: from acidrain (ppp06-Mobara1.mtci.ne.jp [210.172.1.208])
	by mail1.be.to (8.8.8+3.0Wbeta13/BETO.2.0-1999110714000000) with SMTP id RAA19107
	for <man-jp@jp.freebsd.org>; Fri, 10 Dec 1999 17:52:03 +0900
Received: (qmail 556 invoked from network); 10 Dec 1999 08:49:45 -0000
Received: from localhost (HELO acidrain.localnet) (127.0.0.1)
  by localhost with SMTP; 10 Dec 1999 08:49:45 -0000
Date: Fri, 10 Dec 1999 17:49:44 +0900
Message-ID: <86bt7zxjrr.wl@dolphin.be.to>
From: OKAZAKI Tetsurou <okazaki@be.to>
To: man-jp@jp.freebsd.org
User-Agent: Wanderlust/2.2.12 (Joyride) SEMI/1.13.7 (Awazu) CLIME/1.13.5
 (=?ISO-2022-JP?B?GyRCMkMybEohMiwbKEI=?=) Emacs/20.4 (i386--freebsd)
 MULE/4.0 (HANANOEN)
Organization: Unknown
MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu")
Content-Type: multipart/mixed;
 boundary="Multipart_Fri_Dec_10_17:49:43_1999-1"
Reply-To: man-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+990727
X-Sequence: man-jp 2055
Subject: [man-jp 2055] Bugs: pkg_create.1
Errors-To: owner-man-jp@jp.freebsd.org
Sender: owner-man-jp@jp.freebsd.org
X-Originator: okazaki@be.to

--Multipart_Fri_Dec_10_17:49:43_1999-1
Content-Type: text/plain; charset=ISO-2022-JP

$B2,:j$G$9!#(B

pkg_create.1 $B$K(B bug $B$r8+IU$1$?$N$GJs9p$7$^$9!#$^$?!"86J8$NJ}$G$b(B
bug fix $B$d5-=R$NDI2C$J$I!"HyL/$K99?7$5$l$F$$$?$N$GDI=>$7$F$_$^$7$?!#(B

[$B1QJ8(B]
.\" $FreeBSD: src/usr.sbin/pkg_install/create/pkg_create.1,v 1.31 1999/09/11 03:
52:24 max Exp $
[$BF|K\8l%^%K%e%"%k(B]
.\" %FreeBSD: src/usr.sbin/pkg_install/create/pkg_create.1,v 1.27.2.3 1999/08/29
 15:45:15 peter Exp $  
.\" jpman %Id: pkg_create.1,v 1.3 1997/06/09 10:11:56 jsakai Stab %

$B!NF|K\8lHG$N=$@5FbMF!O(B
 $B!&(B $B%[%o%$%H%9%Z!<%9(B    ==> $B6uGr(B
 $B!&(B .Op Fl s Ar rscript ==> .Op Fl s Ar srcdir
 $B!&(B -i, -k $B%*%W%7%g%s$NCm$G!"$=$l$>$l!"(B

if the
.Cm Fl I
option is not given, this script will serve as both the pre-install and the
post-install script for the package, 

  $B$,(B

.Cm Fl I
$B%*%W%7%g%s$,;XDj$5$l$k$H!"(B
$BK\%9%/%j%W%H$OEv3:%Q%C%1!<%8$N(B
 pre-install $B$*$h$S(B post-install $B$NN>J}$N%9%/%j%W%H$H$7$FF0:n$7$^$9!#(B

  $B$J$I$H$J$C$F$$$?!#(B( not $B$,Lu$5$l$F$$$J$+$C$?(B )

$B!&1Q8lHG$N99?7(B:
  ``packing list''               ==> .Dq packing list 
  ``one line description''       ==> .Dq one line description
  ``base''                       ==> .Dq base
  ``requirements''               ==> .Dq requirements
  ``basename''                   ==> .Dq basename
  ``filename''                   ==> filename  (.Dq $B$NIU$1K:$l(B?? *1)
  ``special sequence expansion'' ==> .Dq special sequence expansion

  -r $B%*%W%7%g%s$N5-=R$NDI2C(B
   To differentiate between installation and deinstallation, the keywords
   +.Ar INSTALL
   +and
   +.Ar DEINSTALL
   +are passed respectively, along with the package's name.
  
  $B$X$NDI=>!#(B[*1] $B$O(B .Dq filename $B$K$7$F$*$-$^$7$?!#(B


--Multipart_Fri_Dec_10_17:49:43_1999-1
Content-Type: text/plain; charset=ISO-2022-JP

--- /usr/doc/ja_JP.eucJP/man/man1/pkg_create.1	Mon Nov  1 08:13:09 1999
+++ pkg_create.1	Fri Dec 10 16:32:38 1999
@@ -41,7 +41,7 @@
 .Op Fl k Ar dscript
 .Op Fl K Ar pdscript
 .Op Fl r Ar rscript
-.Op Fl s Ar rscript
+.Op Fl s Ar srcdir
 .Op Fl t Ar template
 .Op Fl X Ar excludefile
 .Op Fl D Ar displayfile
@@ -73,13 +73,17 @@
 .Cm -
 ($B%@%C%7%e(B)$B$G$"$l$P(B
 .Cm stdin
-$B$+$i!"%Q%C%1!<%8MQ$N(B ``packing list'' $B$r<hF@$7$^$9!#(B
+$B$+$i!"%Q%C%1!<%8MQ$N(B
+.Dq packing list
+$B$r<hF@$7$^$9!#(B
 .It Fl c Ar [-]desc
 $B%U%!%$%k(B
 .Ar desc
 $B$+$i!"$b$7$/$O@hF,$,(B
 .Cm -
-$B$G;O$^$C$F$$$l$P0z?t<+?H$+$i!"%Q%C%1!<%8$N(B ``$B0l9T@bL@(B'' $B$r<hF@$7$^$9!#(B
+$B$G;O$^$C$F$$$l$P0z?t<+?H$+$i!"%Q%C%1!<%8$N(B
+.Dq $B0l9T@bL@(B
+$B$r<hF@$7$^$9!#(B
 $B$3$NJ8;zNs$O!"%Q%C%1!<%8$,Ds6!$9$k$b$N$N%P!<%8%g%s$rCN$k(B
 $B<j$,$+$j$H$J$k$Y$-$G$9!#(B
 .It Fl d Ar [-]desc
@@ -116,9 +120,9 @@
 
 .C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B
 .It Cm @mode Ar mode
 $B$3$N8e$GE83+$5$l$k$9$Y$F$N%U%!%$%k$N%G%U%)%k%H$N5v2DB0@-$r(B

--Multipart_Fri_Dec_10_17:49:43_1999-1
Content-Type: text/plain; charset=ISO-2022-JP


$B;29M$K$7$?1QJ8%^%K%e%"%k$N:9J,$b$D$1$F$*$-$^$9!#(B


--Multipart_Fri_Dec_10_17:49:43_1999-1
Content-Type: application/octet-stream
Content-Disposition: attachment; filename="pkg_create.1.diff-1.27.2.3-1.31"
Content-Transfer-Encoding: 7bit

===================================================================
RCS file: /home/ncvs/src/usr.sbin/pkg_install/create/pkg_create.1,v
retrieving revision 1.27.2.3
retrieving revision 1.31
diff -p -u -r1.27.2.3 -r1.31
--- src/usr.sbin/pkg_install/create/pkg_create.1	1999/08/29 15:45:15	1.27.2.3
+++ /home/ncvs/src/usr.sbin/pkg_install/create/pkg_create.1	1999/09/11 03:52:24	1.31
@@ -15,7 +15,7 @@
 .\"
 .\"
 .\"     @(#)pkg_create.1
-.\" $FreeBSD$	
+.\" $FreeBSD: src/usr.sbin/pkg_install/create/pkg_create.1,v 1.30 1999/09/01 10:04:44 jkh Exp $	
 .\"
 .\" hacked up by John Kohl for NetBSD--fixed a few bugs, extended keywords,
 .\" added dependency tracking, etc.
@@ -63,7 +63,9 @@ description of the input syntax is inclu
 The following command line options are supported:
 .Bl -tag -width indent
 .It Fl f Ar packinglist
-Fetch ``packing list'' for package from the file
+Fetch
+.Dq packing list
+for package from the file
 .Ar packinglist
 or
 .Cm stdin
@@ -73,7 +75,9 @@ is a
 .Cm -
 (dash).
 .It Fl c Ar [-]desc
-Fetch package ``one line description'' from file
+Fetch package
+.Dq one line description
+from file
 .Ar desc
 or, if preceded by
 .Cm - ,
@@ -136,7 +140,9 @@ directives in the packing list (see PACK
 .It Fl p Ar prefix
 Set
 .Ar prefix
-as the initial directory ``base'' to start from in selecting files for
+as the initial directory
+.Dq base
+to start from in selecting files for
 the package.
 .It Fl k Ar dscript
 Set
@@ -167,10 +173,17 @@ the first argument.
 .It Fl r Ar rscript
 Set
 .Ar rscript
-to be the ``requirements'' procedure for the package.  This can be any
+to be the
+.Dq requirements
+procedure for the package.  This can be any
 executable program (or shell script).  It will be invoked automatically
 at installation/deinstallation time to determine whether or not
 installation/deinstallation should proceed.
+To differentiate between installation and deinstallation, the keywords
+.Ar INSTALL
+and
+.Ar DEINSTALL
+are passed respectively, along with the package's name.
 .It Fl s Ar srcdir
 .Ar srcdir
 will override the value of
@@ -230,7 +243,9 @@ directive.
 .El
 .Pp
 .Sh PACKING LIST DETAILS
-The ``packing list'' format (see
+The
+.Dq packing list
+format (see
 .Fl f )
 is fairly simple, being
 nothing more than a single column of filenames to include in the
@@ -276,12 +291,16 @@ Expand to the current directory prefix, 
 in the example case
 .Pa /usr/local .
 .It Cm "%B"
-Expand to the ``basename'' of the fully qualified filename, that
+Expand to the
+.Dq basename
+of the fully qualified filename, that
 is the current directory prefix, plus the last filespec, minus
 the trailing filename.  In the example case, that would be
 .Pa /usr/local/bin .
 .It Cm "%f"
-Expand to the ``filename'' part of the fully qualified name, or
+Expand to the
+filename
+part of the fully qualified name, or
 the converse of
 .Cm %B ,
 being in the example case,
@@ -302,8 +321,9 @@ as a result of adding the package, but n
 the package's table of contents (and hence not automatically
 removable).  The advantage of using
 .Cm @unexec
-over a deinstallation script is that you can use the ``special
-sequence expansion'' to get at files regardless of where they've
+over a deinstallation script is that you can use the
+.Dq special sequence expansion
+to get at files regardless of where they've
 been potentially redirected (see
 .Fl p ) .
 .It Cm @mode Ar mode

--Multipart_Fri_Dec_10_17:49:43_1999-1
Content-Type: text/plain; charset=ISO-2022-JP

-- 
$B2,:j(B $BE/O/(B
--Multipart_Fri_Dec_10_17:49:43_1999-1--
