diff --git a/en/docproj/current.sgml b/en/docproj/current.sgml index 9120ce4aa2..b4c7b4be15 100644 --- a/en/docproj/current.sgml +++ b/en/docproj/current.sgml @@ -1,6 +1,6 @@ - + %includes; ]> @@ -126,67 +126,11 @@

Responsible: <doc@FreeBSD.org>, Wolfram Schneider <wosch@FreeBSD.org>

-

Synopsis:

- -

Here are some hints how to write the ports module

- -

A single line in /usr/ports/INDEX looks like

- -
-   xfig-3.2.2|/usr/ports/graphics/xfig|/usr/X11R6|A drawing program for X11|/usr/ports/graphics/xfig/pkg/DESCR|ports@FreeBSD.ORG|graphics x11|XFree86-3.3.2 Xaw3d-1.3 jpeg-6b xpm-3.4k|XFree86-3.3.2 Xaw3d-1.3 jpeg-6b netpbm-94.3.1 tiff-3.4 transfig-3.2 xpm-3.4k
-        
- -

The format is

- -
-   distribution-name|port-path|installation-prefix|comment| \
-       description-file|maintainer|categories|build deps|run deps
-       
- -

The above INDEX line parsed into an anonymous hash object

- -
-$port = {	
-	DISTRIBUTION_NAME   => 'xfig-3.2.2',
-	PORT_PATH           => '/usr/ports/graphics/xfig',
-	INSTALLATION_PREFIX => '/usr/X11R6',
-	COMMENT             => 'A drawing program for X11',
-	DESCRIPTION_FILE    => '/usr/ports/graphics/xfig/pkg/DESCR',
-	MAINTAINER          => 'ports@FreeBSD.ORG',
-	CATEGORIES          => ['graphics', 'x11'],
-	BUILD_DEPS          => ['XFree86-3.3.2', 'Xaw3d-1.3', 'jpeg-6b', 
-	                        'xpm-3.4k'],
-	RUN_DEPS            => ['XFree86-3.3.2',  'Xaw3d-1.3', 'jpeg-6b',
-				'netpbm-94.3.1', 'tiff-3.4', 'transfig-3.2',
-				'xpm-3.4k'] 
-};
-      
- -

Now we need some functions

- - - -

Finally

- -

Modify the cgi script url.cgi, ports.cgi , pds.cgi and the - script portindex to use this module.

- -

Contact Nik Clayton <nik@FreeBSD.ORG> for a - first snapshot - of the ports module.

+

Synopsis: Modify the CGI scripts url.cgi, ports.cgi, + pds.cgi and the script portindex to use the Perl FreeBSD::Ports + modules. These modules also need thorough testing.

Multilingual Web scripts