Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 May 2001 15:52:15 -0700
From:      Danny Howard <dannyman@tellme.com>
To:        freebsd-ports@freebsd.org
Subject:   automated package list creation for perl modules?
Message-ID:  <20010530155215.P79218@tellme.com>

next in thread | raw e-mail | index | archive | help
I'm running 4-STABLE.

I'm trying to do
http://www.freebsd.org/porters-handbook/book.html#PORTING-AUTOPLIST

So, I write a script to do this.  The catch is ...

I'm not installing the perl modules in PREFIX so I can't get any mtree
lovin'. :(

I base Makefile on p5-Net-Whois.  So, I do PERL_CONFIGURE=YES.

0-15:42 dannyman@noneedto ~/work/ports/p5-Net-XWhois> make clean
===>  Cleaning for p5-Net-XWhois-0.72
0-15:45 dannyman@noneedto ~/work/ports/p5-Net-XWhois> make PREFIX=/tmp
[...]
0-15:45 dannyman@noneedto ~/work/ports/p5-Net-XWhois> grep 'usr/local' work/Net-XWhois-0.72/Makefile
INSTALLSITELIB = /usr/local/lib/perl5/site_perl/5.005
INSTALLSITEARCH = /usr/local/lib/perl5/site_perl/5.005/i386-freebsd
SITELIBEXP = /usr/local/lib/perl5/site_perl/5.005
SITEARCHEXP = /usr/local/lib/perl5/site_perl/5.005/i386-freebsd
INSTALLMAN1DIR = /usr/local/man/man1
INSTALLMAN3DIR = /usr/local/lib/perl5/5.00503/man/man3
0-15:45 dannyman@noneedto ~/work/ports/p5-Net-XWhois> cat Makefile 
# New ports collection makefile for:    p5-Net-XWhois
# Date created:                         30 May 2001
# Whom:                                 Danny Howard <dannyman@tellme.com>
#
# $FreeBSD$
#

PORTNAME=       Net-XWhois
PORTVERSION=    0.72
CATEGORIES=     net perl5
MASTER_SITES=   ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR=     Net
PKGNAMEPREFIX=  p5-

MAINTAINER=     dannyman@tellme.com

PERL_CONFIGURE= YES

MANPREFIX=      ${PREFIX}/lib/perl5/${PERL_VERSION}
MAN3=           Net::XWhois.3

.include <bsd.port.mk>
0-15:48 dannyman@noneedto ~/work/ports/p5-Net-XWhois> grep ^PREFIX work/Net-XWhois-0.72/Makefile
PREFIX = /tmp

YAGH!  Ideas?

-danny

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010530155215.P79218>