New port problems
Danny Pansters
danny at ricin.com
Sat Jul 16 22:46:35 GMT 2005
On Friday 15 July 2005 23:28, Paul Schmehl wrote:
> I'm working on a new port. This port needs to grab a tar.gz file, unzip it
> and then copy two files to the right directories (one to /usr/local/bin,
> the other to /usr/local/etc) and put the docs in the right dir.
>
> So, I'm using NO_BUILD= yes
>
> But, when I try to install the port, I get the error "make: cannot open
> Makefile.
> *** Error code 2". Obviously, the port is still trying to compile from
> source, even though I've used NO_BUILD. Is there a trick I'm missing? Is
> there a specific order that NO_BUILD needs to appear in, in the Makefile?
It's likely a bit b0rken. How about adding an empty "do-build:" or/and a
"do-install" that does what now your post-install does?
Dan
> Here's the entire Makefile, if that helps. (The LIB_DEPENDS line is
> commented out because, right now, the tclX port doesn't build, so I have to
> test without it for now):
>
> # New ports collection makefile for: sguil-client
> # Date created: 13 Jul 2005
> # Whom: pauls
> #
> # $FreeBSD$
> #
>
> PORTNAME= sguil-client
> PORTVERSION= 0.5.3
> CATEGORIES= security
> MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
> MASTER_SITE_SUBDIR= sguil
>
> MAINTAINER= pauls at utdallas.edu
> COMMENT= A client for viewing events in Sguil
>
> RUN_DEPENDS= dtplite:${PORTSDIR}/devel/tcllib \
>
> ${LOCALBASE}/lib/iwidgets2.2.0:${PORTSDIR}/x11-toolkits/iwidgets
> #LIB_DEPENDS= tclx83:${PORTSDIR}/lang/tclX
>
> NO_BUILD= yes
> WRKSRC= ${WRKDIR}/sguil-${PORTVERSION}
>
> PORTDOCS= doc/CHANGES doc/INSTALL doc/INSTALL.openbsd doc/LICENSE.QPL
> \
> doc/OPENSSL.README doc/TODO doc/USAGE
> doc/sguildb.dia
>
> #INSTALL_WRKSRC= ${WRKSRC}/ \
> # ${WRKSRC}/client \
> # ${WRKSRC}/client/lib \
> # ${WRKSRC}/doc
>
> .include <bsd.port.pre.mk>
>
> post-install:
> ${INSTALL_SCRIPT} -m 751 ${WRKSRC}/client/sguil.tk
> ${PREFIX}/bin/sguil.tk
> .for f in lib/*.tcl lib/nessusheader.html
> ${INSTALL_DATA} ${WRKSRC}/lib/${f} ${PREFIX}/lib/${f}
> .endfor
> .for f in client/sguil.conf
> ${INSTALL_DATA} ${WRKSRC}/etc/${f} ${PREFIX}/etc/${f}-sample
> [ -f ${PREFIX}/etc/${f} ] || \
> ${INSTALL_DATA} ${WRKSRC}/etc/${f} ${PREFIX}/etc/${f}
> .endfor
> .if !defined(NOPORTDOCS)
> @${MKDIR} ${DOCSDIR}
> cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
> .endif
> @${CAT} ${PKGMESSAGE}
>
> .include <bsd.port.post.mk>
>
> Paul Schmehl (pauls at utdallas.edu)
> Adjunct Information Security Officer
> University of Texas at Dallas
> AVIEN Founding Member
> http://www.utdallas.edu/ir/security/
> _______________________________________________
> freebsd-ports at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"
More information about the freebsd-ports
mailing list