Cant get new port Makefile to work

Ashish SHUKLA ashish at FreeBSD.org
Fri Jul 16 08:45:53 UTC 2010


Joe  writes:
> Very simple port. All the files are in the port's files directory.
> When I do "make install" i get message "Need an operator"

> The Makefile follows

> PORTNAME=	qjail
> PORTVERSION=	1.0
> CATEGORIES=	sysutils
> MASTER_SITES=   # none, All the files are in this ports files directory
> DISTFILES=      # none

> MAINTAINER=	qjail at a1poweruser.com
> COMMENT=	A jail utility to deploy large numbers of jails quickly.

> LICENSE=        BSD

> NO_BUILD=       yes

> do-install:
> ${CP} /etc/rc.d/jail          /etc/rc.d/jail.original
> ${CP} ${FILESDIR}jail         /etc/rc.d/
> ${CP} ${FILESDIR}/qjail       ${LOCALBASE}/usr/local/bin/
> ${CP} ${FILESDIR}/qjail.sh    ${LOCALBASE}/usr/local/etc/rc.d/
> ${CP} ${FILESDIR}/qjail-conf.sample  ${LOCALBASE}/usr/local/etc/
> ${CP} ${FILESDIR}/qjail.8     ${LOCALBASE}/usr/local/man/man8/
> ${CP} ${FILESDIR}/qjail-intro.8 ${LOCALBASE}/usr/local/man/man8/
> ${CP} ${FILESDIR}/qjail-conf.8  ${LOCALBASE}/usr/local/man/man8/
> ${MKDIR} ${LOCALBASE}/usr/local/share/examples/qjail

> ${CP} -R -p ${FILESDIR}/examples
> ${LOCALBASE}/usr/local/share/examples/qjail/

> ${CHMOD} 0755 ${LOCALBASE}/etc/rc.d/jail
> ${CHMOD} 0755 ${LOCALBASE}/usr/local/bin/qjail
> ${CHMOD} 0755 ${LOCALBASE}/usr/local/etc/rc.d/qjail.sh

You need TAB characters before before '$' character in above lines. Read the
manual page of 'make' for details on its syntax, and also read Porters
Handbook[1].

And when sending Makefiles for review, its better to attach them instead of
copy-pasting inline.

References:
[1]  http://www.freebsd.org/doc/en/books/porters-handbook/

HTH
-- 
Ashish SHUKLA      | GPG: F682 CDCC 39DC 0FEA E116  20B6 C746 CFA9 E74F A4B0
freebsd.org!ashish | http://people.freebsd.org/~ashish/

“The future is not google-able.” (William Gibson, 2004-02-05)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20100716/a11beb7f/attachment.pgp


More information about the freebsd-ports mailing list