ports/67900: New port: sysutils/jail Builds a chrooted environment
Oliver Eikemeier
eikemeier at fillmore-labs.com
Sun Jun 13 10:31:08 UTC 2004
The following reply was made to PR ports/67900; it has been noted by GNATS.
From: Oliver Eikemeier <eikemeier at fillmore-labs.com>
To: bugghy <bugghy at phenix.rootshell.be>
Cc: FreeBSD-gnats-submit at FreeBSD.org
Subject: Re: ports/67900: New port: sysutils/jail Builds a chrooted environment
Date: Sun, 13 Jun 2004 11:55:43 +0200
bugghy wrote:
>> Synopsis: New port: sysutils/jail Builds a chrooted environment
The term `jail' is already taken in FreeBSD, meaning something different.
You should choose a different name and patch the port accordingly.
> X INSTALL_DIR = /usr/local
> X PERL = /usr/bin/perl
Don't hard code these paths.
> X-mv /tmp/jail.conf.tmp /tmp/jail.conf
> X-install_file /tmp/jail.conf $4/etc $5 $6 $7
> X-rm /tmp/jail.conf
> X+mv /tmp/jail.conf.tmp /tmp/jail.conf.sample
> X+install_file /tmp/jail.conf.sample $4/etc $5 $6 $7
> X+rm /tmp/jail.conf.sample
Hard coded names in temporary file are often open to symlink attacks. Did
you check that there are no problems here?
> XMASTER_SITES=
> http://switch.dl.sourceforge.net/sourceforge/jail/
You should use MASTER_SITE_SOURCEFORGE_EXTENDED (or without _EXTENDED)
here.
> XNO_INSTALL_MANPAGES= yes
This does only make sense when you USE_IMAKE.
> Xpost-install:
> X.if !defined(NOPORTDOCS)
> X ${MKDIR} ${DOCSDIR}
> X ${INSTALL_MAN} ${WRKSRC}/../doc/CHANGELOG ${DOCSDIR}
> X ${INSTALL_MAN} [...]
These are not MAN pages, but DATA.
> X @${CAT} ${PKGMESSAGE}
> X.endif
This should not be conditionalized on NOPORTDOCS.
> Xbin/jail
See above. Please don't use `jail'.
> X###################################################################
> X# Installed additional documentation in: ${PREFIX}/share/doc/jail #
> X# Copy ${PREFIX}/etc/jail.conf.sample to ${PREFIX}/etc/jail.conf #
> X###################################################################
You could ${SED} %%PREFIX%% by its real value here.
Another not: it seems like this port needs perl, but I haven't seen any
USE_PERL5 here.
More information about the freebsd-ports-bugs
mailing list