Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jun 2008 01:36:41 +0200
From:      Pietro Cerutti <gahr@FreeBSD.org>
To:        Schiz0 <schiz0phrenic21@gmail.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Creating New Port - Question about Installation
Message-ID:  <48642809.7080709@FreeBSD.org>
In-Reply-To: <8d23ec860806261452v4b7f8abp7faf21258380982@mail.gmail.com>
References:  <8d23ec860806261452v4b7f8abp7faf21258380982@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Schiz0 wrote:
| Hey,
|
| I'm attempting to create a new port for btsh:
| http://btsh.sourceforge.net/
| The website isn't finished yet, but it's a command-line interface for
| torrent websites.
|
| Anyway, the original .tar.bz2 that the author wrote has no configure
| script or makefile. All it has is an "INSTALL" script. The INSTALL
| script prompts for a directory to install to, then copies the proper
| files over and sets some permissions.
|
| I'm wondering how I can create a port out of this. I read the porters
| handbook and developed a Makefile so far:
|
| --------------------
| # Ports Makefile for:  btsh
| # Date created:        June 26 2008
| # Whom:                Schiz0
| #
| # $FreeBSD$
| #
| PORTNAME=btsh
| PORTVERSION=0.1.1
| CATEGORIES=net-p2p shells
| # Eventually the project is moving over to sourceforge
| MASTER_SITES=http://labgecko.com/btsh/
| MAINTAINER=Schiz0phrenic21@gmail.com
| COMMENT=BitTorrent SHell
| BUILD_DEPENDS=bash:${PORTSDIR}/shells/bash
| BUILD_DEPENDS=wget:${PORTSDIR}/ftp/wget

The second BUILD_DEPENDS definition will overwrite the first one. Use:

BUILD_DEPENDS=	bash:${PORTSDIR}/shells/bash \
		wget:${PORTSDIR}}/ftp/wget

Moreover, sure they're not RUN_DEPENDS as well?

| USE_BZIP2=yes
| NO_INSTALL_MANPAGES=yes
| .include <bsd.port.mk>
| --------------------
|
| Basically, I'm wondering how I can do this. Should I set NO_BUILD and
| HAS_CONFIGURE to prevent FreeBSD from trying to build and configure it
| itself?
|
| Also, is this port in the correct cateorgies? This is not a BitTorrent
| client, it's just a cli interface to the torrent websites. It lets
| users read the forums, search for torrents, reply to inbox PMs, etc.
|
| This is my first attempt at building a port, so any
| pointers/suggestions/etc will be extremely helpful.
|
| Thank you!
| _______________________________________________
| freebsd-ports@freebsd.org mailing list
| http://lists.freebsd.org/mailman/listinfo/freebsd-ports
| To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"


- --
Pietro Cerutti
gahr@FreeBSD.org

PGP Public Key:
http://gahr.ch/pgp

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkhkKAgACgkQwMJqmJVx944hLQCeOBx5OTW1axIuMyKBVS+HpKbw
CucAni42lJp9SPlffVaZAue43qx/agZq
=A5nu
-----END PGP SIGNATURE-----



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