Debian Codegraph @

PPM-HowTo

raw
1 From [email protected] Mon, 09 Nov 1998 19:04:54 +0100
2 Return-Path: <[email protected]>
3 Received: from alfred.itg.ti.com by tiuk.ti.com (SMI-8.6/SMI-SVR4)
4 id SAA14673; Mon, 9 Nov 1998 18:07:04 GMT
5 Received: from gatekeep.ti.com (ti.com [192.94.93.61] (may be forged))
6 by alfred.itg.ti.com (8.8.8/8.8.8) with ESMTP id MAA12465;
7 Mon, 9 Nov 1998 12:07:02 -0600 (CST)
8 Received: from lists.Stanford.EDU (lists.Stanford.EDU [171.64.14.232]) by gatekeep.ti.com (8.8.8) with ESMTP id MAA21574; Mon, 9 Nov 1998 12:06:59 -0600 (CST)
9 Received: (from daemon@localhost) by lists.Stanford.EDU (8.8.5/8.7.1) id KAA28797 for ptk-out271740; Mon, 9 Nov 1998 10:05:29 -0800 (PST)
10 Received: from o05.xray.mpe.mpg.de (o05.xray.mpe.mpg.de [130.183.72.185]) by lists.Stanford.EDU (8.8.5/8.7.1) with SMTP id KAA28776 for <[email protected]>; Mon, 9 Nov 1998 10:05:04 -0800 (PST)
11 Received: (qmail 5764 invoked from network); 9 Nov 1998 18:04:54 -0000
12 Received: from o09.xray.mpe.mpg.de (130.183.72.189)
13 by o05.xray.mpe.mpg.de with SMTP; 9 Nov 1998 18:04:54 -0000
14 Received: by o09.xray.mpe.mpg.de (5.65v4.0) id AA02416; Mon, 9 Nov 1998 19:04:54 +0100
15 Message-Id: <[email protected]>
16 X-Mailer: exmh version 2.0.2 2/24/98
17 X-Uri: http://www.xray.mpe.mpg.de/~ach/
18 X-Face: #9R9$}Qu$q4/+(Y7T(Qfo8cup>^yR8B0wY4IH1)}*1E49K8~;Wi0PXITA"<<pYILk<cuT&8
19 )fK)zd6!$t\$BYyV>Pi3$mxf36$b1V'u?%-72[ax;U+^t~XCiBWd5:1aDjts)QDu@{p)e@Nou\8b}Z
20 @`+y-uk-i_7EhtDuv`v$vB0-\83`_-f{aXn%olFdX'UC\9Bl)_U-_,.UPZ9C?Q:E-r@(8/h#OJF8n+
21 OuC0Rl&[^vWU#enrm$xh&
22 From: Achim Bohnet <[email protected]>
23 To: [email protected]
24 Cc: Murray Nesbitt <[email protected]>
25 Subject: FYI: PPM recipe for module authors
26 Mime-Version: 1.0
27 Content-Type: text/plain; charset=us-ascii
28 Date: Mon, 09 Nov 1998 19:04:54 +0100
29 Sender: [email protected]
30 Precedence: bulk
31 X-UIDL: d0376b9e195a09450d52590466dca4ba
32 X-Netscape-Folder: Ptk
33 X-Mozilla-Status: 0005
34
35 Due to the explanations of Murray Nesbitt I was able to produce a
36 PPM compliant distribution of Tk-Pod that can be installed with
37 ActiveStates ppm.pl tool.
38
39 I know it's a bit of topic but several people on the list had their
40 fights with this subject...
41
42 I've tried/verified the procedure below on Digitial Unix with perl 5.005_01
43 so some of the pitfalls may not be present using ActivePerl on Win*
44
45 1) Add to WriteMakefile() call in Makefile.PL the attributes
46
47 ABSTRACT => 'A description of your module',
48 AUTHOR => 'Author Name (email@addr)',
49
50 Pitfall:
51
52 o '<' and '>' are not escaped in generated ppd file
53 so one better used above format instead of a
54 proper email address like: Author Name <email@addr)
55
56 o ABSTRACT should not be one line because embedded
57 \n are not escaped properly resulting in a buggy Makefile
58
59 o To ensure that Makefile.PL run without complains with
60 older perl version I would suggested to wrap the two
61 attributes between $] < 5.005 ? () : ( AUTHOR => ..., ...)
62
63 o There seems to be some confusion about modules versus
64 distributions in the PPM business because PREREQ_PM =>
65 { This::Module => $min_version, ... }
66 that is used to track module dependencies, is translated
67 into a 'distribution like' dependency in the PPD file
68 <DEPENDENCY NAME="This-Module" />
69
70 2) run 'perl Makefile.pl BINARY_LOCATION=x86/Dist-Name.tar.gz'
71 where Dist-Name is the name of the distribution, e.g., Tk-Pod
72 in my case.
73
74 3) run 'make ppd'. This will create a Dist-Name.ppd file, e.g.,
75 Tk-Pod.ppd in my case.
76
77 Pitfall:
78
79 o if you are not on Win* system you have to replace
80 the <OS NAME="my_os" /> with <OS NAME="MSWin32" />
81 (of course this fix only works for pure perl
82 distributions)
83
84 4) run 'make'
85
86 Pitfall:
87
88 o I assume that on Win* scripts listed in EXE_FILES
89 would be wrapped into a .bat. Generation
90 on Unix does not do it of course.
91
92 5) tar and gzip the resulting blib directory
93
94 'tar cvf module.tar blib'
95 'gzip module.tar'
96
97 6) Create a directory that is accessible via WWW and copy
98 the ppd file into it. Place the tar ball of the blib
99 directory relative to the ppd file with the relative path
100 used in step 2)
101
102 /path/to/ppm/Dist-Name.ppd
103 /path/to/ppm/x86/Dist-Name.tar.gz
104
105 7) Now one sould be able to install it with ppm.pl from an
106 Win* box running ActivePerl with ppm.pl
107
108 ppm> install http://www.our.server/my/ppd/Dist-Name.ppd
109
110 Pitfall:
111
112 o Look like at least 'search' command uses some more
113 magic. Setting the ppm.pl repository to the URL
114 of the direcotory with the just created .ppd file
115 returns HTML 'code' of the direcotory listing, generated
116 by apache, instead of a list of (one) PPM
117 distribution.
118
119
120 That's it. If someone is adventuresome enough, try with ppm.pl
121
122 install http://www.xray.mpe.mpg.de/~ach/ptk/ppm/Tk-Pod.ppd
123
124 or
125
126 set repository ACH http://www.xray.mpe.mpg.de/~ach/ptk/ppm
127 install Tk-Pod
128
129 Worked for my on NT 4.03 with ActivePerl build 504.
130
131 One can of course inspect http://www.xray.mpe.mpg.de/~ach/ptk/ppm
132 with a WWW browser to check the input used by ppm.pl
133
134 Hope this helps to create one's own PPM distribution,
135 Achim
136 ==========================================================================
137 This message was posted through the Stanford campus mailing list
138 server. If you wish to unsubscribe from this mailing list, send the
139 message body of "unsubscribe ptk" to [email protected]
140