Anonymous wrote:
Joe <joeb_...@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?

_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to