Date: Sat, 17 Jul 2010 19:26:51 +0800 From: Joe <joeb_722@comclark.com> To: Anonymous <swell.k@gmail.com> Cc: freebsd-ports@freebsd.org Subject: Re: Cant get new port Makefile to work Message-ID: <4C41937B.8070303@comclark.com> In-Reply-To: <86fwzjsgfx.fsf@gmail.com> References: <4C400CBB.5010404@comclark.com> <86fwzjsgfx.fsf@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Anonymous wrote: > Joe <joeb_722@comclark.com> writes: > > [...] >> 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 >> post-install: >> ${CAT} ${PKGMESSAGE} >> >> .include <bsd.port.mk> >> >> This is patterned after the bsdstats port Makefile. > > sysutils/bsdstats is a bad example[1]. It uses cp(1) over install(1), > sets mode to a constant rather than BINMODE and installs into LOCALBASE, > not PREFIX. > > [1] I tried to fix some in ports/146257. > The above is my port source in a net shell. What i really want is to have just the scripts sources to be fetched from remote site on "make install" of the port. Can anyone recommend, based on the above Makefile, some ports I should look at as being a good example of a port makefile for small amount of files that require no compiling, that I could use as a template?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C41937B.8070303>