Creating New Port
Greg Larkin
glarkin at FreeBSD.org
Thu Jan 8 08:38:36 PST 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jerry wrote:
> I am attempting to create my first port. I seem to have run into a
> problem thought.
>
> I want to create a port for a Perl module,
> 'Captcha-reCAPTCHA-Mailhide'. I created the test port
> in /usr/ports/local/p5-Captcha-reCAPTCHA-Mailhide. The port builds OK.
> The problem is when I try to create the pkg-plist. I followed (I think)
> the instructions in the "Porter's Handbook". Specifically this portion:
>
> # mkdir /var/tmp/$(make -V PORTNAME)
>
> When I run the line of above, this is what I get back:
>
> mkdir /var/tmp/$(make -V Captcha-reCAPTCHA-Mailhide)
> mkdir: /var/tmp/: File exists
>
> It never creates the desired directory. I have tried including the
> version number in the above; however, that doesn't work either. Since
> this is my first port, I am confused as to what I am doing wrong.
>
> I can supply the 'Makefile' if it is needed.
>
> Thanks!
>
Hi Jerry,
I see that some other folks have responded to your original question,
and I hope that everything is working now. I thought I would jump in
and suggest that you try out the ports-mgmt/genplist utility
(http://www.freshports.org/ports-mgmt/genplist/) as a way to create your
pkg-plist file.
In many cases, genplist creates a pkg-plist that's at least 80% complete
and requires some additional tweaking by hand. In some cases, the
percentage will be higher, particularly with p5- ports.
Best of luck, and thank you for contributing!
Cheers,
Greg
- --
Greg Larkin
http://www.FreeBSD.org/ - The Power To Serve
http://www.sourcehosting.net/ - Ready. Set. Code.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFJZiwg0sRouByUApARAsfjAKDDFWRinE98Ra6v9VMgOef1B2rwGACggbnm
yGcAnjojGUxnc0iDxOuLCss=
=Zesr
-----END PGP SIGNATURE-----
More information about the freebsd-ports
mailing list