Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Aug 2014 14:36:46 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 192878] comms/pr [maintainer] new source location
Message-ID:  <bug-192878-13-iPmeWh6ZFF@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-192878-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-192878-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D192878

--- Comment #14 from C Hutchinson <portmaster@bsdforge.com> ---
(In reply to John Marino from comment #13)
> (In reply to C Hutchinson from comment #12)
> > Well. I'm stumped.
> > Using your example verbatim, and in every other possible variance,
> > the build fails with:
> >=20
> > "Makefile", line 33: Missing dependency operator
>=20
> attach your working version of the makefile so I can see it (not shar, ju=
st
> upload it as it is)
>=20
>=20
> >=20
> > for all three lines (33, 34, 35).
> > I've also copied blocks that use your same technique, out of other
> > ports. But same results. I've also used examples out of the porters
> > handbook. Same results. Altho, you will probably be happy to know
> > I've changed the DOC install block to something you'd probably
> > approve of:
> >=20
> > .if !defined(NOPORTDOCS)
> > 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
> > 	cd ${WRKSRC}/share/doc/pr && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCS=
DIR}
> > .endif
>=20
>=20
>=20
> unfortunately NOPORTDOCS is deprecated.  portlint should complain.
> Just define OPTIONS_DEFINE=3DDOCS and use PORT_OPTIONS:MDOCS, there a tho=
usand
> examples in ports
Yep, and a couple of them are mine. :)
>=20
>=20
> >=20
> > There are no problems with that, at least. But that's all that
> > works.
> >=20
> > FWIW I tried this, and several variations:
> >=20
> > (cd ${WRKSRC}/sbin && ${INSTALL_SCRIPT} ${PROGRAMS} ${STAGEDIR}${PREFIX=
})
> >=20
> > I had to use INSTALL_SCRIPT to avoid strip(1) being called against
> > ${PROGRAMS}. Which are simply Perl scripts.
>=20
> INSTALL_SCRIPT is correct in this case
I also tried COPYTREE_BIN
>=20
>=20
> >=20
> > I used:
> >=20
> > (cd ${WRKSRC}/etc && ${INSTALL_DATA} ${ETCFILES} ${STAGEDIR}${PREFIX})
> >=20
> > for the .conf, and rc(8) files. But same results.
> > OH well.
>=20
> I suspect the error message you get isn't for these lines, but something
> else.  I don't see anything wrong them them.

Here goes...

PORTNAME=3D    pr
PORTVERSION=3D    1.1
CATEGORIES=3D    comms net
MASTER_SITES=3D    http://bsdforge.com/projects/source/comms/pr/
DISTNAME=3D    pr-${PORTVERSION}

MAINTAINER=3D    portmaster@bsdforge.com
COMMENT=3D    Daemon that connects local terminal device to a terminal serv=
er

LICENSE=3D    ARTPERL10

USE_XZ=3D        yes

OPTIONS_DEFINE=3D    DOCS
DOCS=3D        PR.html

WRKSRC=3D        ${WRKDIR}/${PORTNAME}

PROGRAMS=3D    PortRedirector PortTest

ETCFLS=3D        PortRedirector.conf.sample

RCDFILES=3D    pr.sh.sample

NO_BUILD=3D    YES

# doesn't work
do-install:
(cd ${WRKSRC}/sbin && ${INSTALL_SCRIPT} ${PROGRAMS} ${STAGEDIR}${PREFIX})
(cd ${WRKSRC}/etc/rc.d && ${INSTALL_DATA} ${RCDFILES} ${STAGEDIR}${PREFIX})
(cd ${WRKSRC}/etc && ${INSTALL_DATA} ${ETCFLS} ${STAGEDIR}${PREFIX})
# does work
.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    cd ${WRKSRC}/share/doc/pr && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSD=
IR}
.endif

.include <bsd.port.mk>

Thanks for your reply, John. :)

--Chris

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-192878-13-iPmeWh6ZFF>