Chapter 12. A simple example of a package: bison

I checked to find a piece of software that isn't in the FreeBSD ports collection, and picked GNU bison. Quite why someone would want to have bison when Berkeley yacc is already present in the tree is beyond me, but it's useful for the purposes of this exercise.

12.1. Files

The file contents in this section must be used verbatime.

12.1.1. Makefile

	# $NetBSD$
 
	DISTNAME=       bison-1.25
	CATEGORIES=     devel
	MASTER_SITES=   ${MASTER_SITE_GNU}

	MAINTAINER=     thorpej@netbsd.org
	HOMEPAGE=       http://www.gnu.org/software/bison/bison.html
 
	GNU_CONFIGURE=  yes
	INFO_FILES=     bison.info
 
	.include "../../mk/bsd.pkg.mk"

12.1.2. pkg/COMMENT

	GNU yacc clone.

12.1.3. pkg/DESCR

	GNU version of yacc.  Can make re-entrant parsers, and numerous other
	improvements.  Why you would want this when Berkeley yacc(1) is part
	of the NetBSD source tree is beyond me.

12.1.4. pkg/PLIST

	@comment $NetBSD$
	bin/bison
	man/man1/bison.1.gz
	@unexec install-info --delete %D/info/bison.info %D/info/dir
	info/bison.info
	info/bison.info-1
	info/bison.info-2
	info/bison.info-3
	info/bison.info-4
	info/bison.info-5
	@exec install-info %D/info/bison.info %D/info/dir
	share/bison.simple
	share/bison.hairy