Subject: Re[3]: Mail server questions.
To: CEBKA <CEBKA@smtp.ru>
From: Jeremy C. Reed <reed@reedmedia.net>
List: netbsd-help
Date: 12/02/2002 13:42:17
On Mon, 2 Dec 2002, CEBKA wrote:
> Yes I`ve ported it to NetBSD(1.5.2 i-386) but there is a need to
> modify headers in /usr/include/rpc(pmap_clnt.h, clnt.h) to make it
> works. But now it works well I think. But I don`t know how to make a
> pkgsrc(none of them is in my distribution), explain this to me please,
> because xinetd is really wonderful system!
You can learn about it by looking in the pkgsrc/Packages.txt
documentation. Scroll down to the "Part II: Package Constructor's Guide"
section.
The easiest thing to do, is look at some examples of some other simple
packages. Basically, you need a Makefile, a DESCR (paragraph or two)
description file, and a PLIST (which basically lists the files installed).
A basic Makefile has:
DISTNAME= (name of file with version but no extension)
CATEGORIES=
MASTER_SITES= (dowload URLs)
MAINTAINER= (email address -- maybe yours)
HOMEPAGE= (main website for xinetd)
COMMENT= (short, one-line description of this software)
and probably:
GNU_CONFIGURE= YES (use the autoconf'd ./configure script and gmake)
Then do "make extract" to download and extract.
Then do "make makesum" to generate checksum digest file.
Then do "make configure 2>&1 | tee LOG" and check that log to see if it
looks correct.
Then I go into work/ and the sub-directory and double-check the
config.status and config.log files.
Then try "make" (back in main directory not under work/) to see if it
builds.
I do "touch PLIST" and "make install" and then
"make print-PLIST | tee PLIST"
If you have technical questions regarding building pkgsrc Makefiles, you
can discuss via tech-pkg mailing list.
By the way, I am interested in xinetd, because I have packaged many
Linux-related softwares for runing under Linux kernel. And maybe someone
from xinetd experience but moving to a Linux using NetBSD pkgsrc would
like to continue using xinetd. (I already packaged netkit-base for inetd,
but haven't send-pr it to submit it yet.)
Good luck!
Jeremy C. Reed
http://www.reedmedia.net/