From owner-freebsd-ports Fri Aug 24 9:14:18 2001 Delivered-To: freebsd-ports@freebsd.org Received: from tomts7-srv.bellnexxia.net (tomts7.bellnexxia.net [209.226.175.40]) by hub.freebsd.org (Postfix) with ESMTP id 18E4837B40A for ; Fri, 24 Aug 2001 09:14:04 -0700 (PDT) (envelope-from anarcat@anarcat.dyndns.org) Received: from khan.anarcat.dyndns.org ([65.92.160.216]) by tomts7-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20010824161403.HXCE3327.tomts7-srv.bellnexxia.net@khan.anarcat.dyndns.org> for ; Fri, 24 Aug 2001 12:14:03 -0400 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id 6EEBE1901 for ; Fri, 24 Aug 2001 12:13:57 -0400 (EDT) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id 29A4520B40; Fri, 24 Aug 2001 12:13:53 -0400 (EDT) Date: Fri, 24 Aug 2001 12:13:53 -0400 From: The Anarcat To: freebsd-ports@freebsd.org Subject: NOPORTDOCS and make package Message-ID: <20010824121353.A1047@shall.anarcat.dyndns.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6c2NcOVqGQ03X4Wi" Content-Disposition: inline User-Agent: Mutt/1.3.20i Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --6c2NcOVqGQ03X4Wi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi.=20 I think this might be a stupid question, it's just that I don't see a clear immediate answer to it. I am updating a port I maintain (audio/ecasound) to its version 2. I intend to make it install documentation in share/doc/ecasound. I followed the porters handbook suggestion of putting: post-install: =2Eif !defined(NOPORTDOCS) ${MKDIR} ${PREFIX}/share/doc/ecasound ${MKDIR} ${PREFIX}/share/doc/ecasound/programmers_guide ${MKDIR} ${PREFIX}/share/doc/ecasound/users_guide ${INSTALL_MAN} ${WRKSRC}/Documentation/*.html ${WRKSRC}/Documentation/*.txt \ ${PREFIX}/share/doc/ecasound ${INSTALL_MAN} ${WRKSRC}/Documentation/programmers_guide/*.html \ ${PREFIX}/share/doc/ecasound/programmers_guide ${INSTALL_MAN} ${WRKSRC}/Documentation/users_guide/*.html \ ${PREFIX}/share/doc/ecasound/users_guide =2Eendif in the Makefile. However, how can I tell the pkg-plist to behave accordingly to NOPORTDOCS? Eg.: # make install PREFIX=3D/var/tmp/ecasound2 package deinstall NOPORTDOCS=3Dy= es =2E.. =3D=3D=3D> Building package for ecasound-2.0.2 Creating package /usr/ports/packages/All/ecasound-2.0.2.tgz Registering depends:. Creating gzip'd tar ball in '/usr/ports/packages/All/ecasound-2.0.2.tgz' tar: can't add file share/doc/ecasound/ecasound-iam_manpage.html : No such file or directory tar: can't add file share/doc/ecasound/ecasound_faq.html : No such file or directory tar: can't add file share/doc/ecasound/ecasound_faq.txt : No such file or directory tar: can't add file share/doc/ecasound/ecasound_manpage.html : No such file or directory tar: can't add file share/doc/ecasound/ecasoundrc_manpage.html : No such file or directory tar: can't add file share/doc/ecasound/ecatools_manpage.html : No such file or directory tar: can't add file share/doc/ecasound/examples.html : No such file or directory tar: can't add file share/doc/ecasound/index.html : No such file or directory tar: can't add file share/doc/ecasound/programmers_guide/programmers_guide.html : No such file or directory tar: can't add file share/doc/ecasound/programmers_guide/eci_doc.html : No such file or directory tar: can't add file share/doc/ecasound/users_guide/users_guide.html : No such file or directory pkg_create: make_dist: tar command failed with code 256 *** Error code 1 Stop in /u/anarcat/src/ports/ecasound2. *** Error code 1 Stop in /u/anarcat/src/ports/ecasound2. *** Error code 1 Stop in /u/anarcat/src/ports/ecasound2. #=20 I think there might be a way to do this with PLIST_SUB, but I can't figure it out now... I will just send a diff with the doc commented for now. Also, another quick question... The make install target in WRKSRC calls ldconfig to configure the libs it installs, by itself (without me specifying INSTALL_SHLIBS). Can that be a problem? And the last: this port always installed shared libs named "lib/libecasound.so.7", for example. And this number (7, in this case) did not change since last upgrade. How can/should I make patches to make the build generate different file names? Is that where the "shared library version" comes from? Am I confused? :) Many thanks A. --6c2NcOVqGQ03X4Wi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEUEARECAAYFAjuGfUAACgkQttcWHAnWiGcJSACXd3oSeZwTnpJ+Y9pCk1GJ1CAz gACdEsgxmWVXEiuRx7fSTr4+Qn0LY9o= =s7X8 -----END PGP SIGNATURE----- --6c2NcOVqGQ03X4Wi-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message