Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 May 2005 14:38:19 +0200
From:      Roman Neuhauser <neuhauser@sigpipe.cz>
To:        Scot Hetzel <swhetzel@gmail.com>
Cc:        bv@wjv.com, ports@freebsd.org, Kris Kennaway <kris@obsecurity.org>
Subject:   Re: file://localhost/usr/ports/misc/mmv/README.html
Message-ID:  <20050526123819.GC95875@isis.sigpipe.cz>
In-Reply-To: <790a9fff05052508441f0444c8@mail.gmail.com>
References:  <200505180256.j4I2uuR1007388@bilver.wjv.com> <20050518051153.GA92754@xor.obsecurity.org> <20050522014713.GA41935@wjv.com> <20050522030853.GA60445@xor.obsecurity.org> <20050522035314.GA42806@wjv.com> <790a9fff05052508441f0444c8@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
# swhetzel@gmail.com / 2005-05-25 10:44:15 -0500:
> On 5/21/05, Bill Vermillion <bv@wjv.com> wrote:
> > > P.S. The reason this distfile is not available on ftp.freebsd.org is
> > > because the port is marked NO_PACKAGE.
> > 
> > In that case why does the 'make' in /usr/ports/misc/mmv try to find
> > one when it can't get the one from wustl.edu?
> 
> Maybe we should change bsd.port.mk, so that _MASTER_SITE_BACKUP is
> empty when NO_PACKAGE is set on a port.  Since the file won't be
> available from ftp.freebsd.org web site.

    There's a wee bit more to it. Mk/bsd.port.mk:

    146 # RESTRICTED    - Prevent the distribution of distfiles and packages to
    147 #                 the FTP sites or on CDROM (e.g. forbidden by license
    148 #                 considerations).
    149 # NO_CDROM      - Packages and distfiles may not go on CDROM (e.g. must
    150 #                 not be re-sold) but can go on FTP sites.
    151 # NO_PACKAGE    - Port should not be packaged for ftp sites or CDROMs,
    152 #                 but distfiles can be put on ftp sites and CDROMs.

    If NO_PACKAGE prevents distfiles from being put on ftp.freebsd.org then
    there's a bug.

    Other than that, this should fix the double checking for RESTRICTED
    ports (untested):

--- Mk/bsd.port.mk      17 Mar 2005 23:22:07 -0000      1.511
+++ Mk/bsd.port.mk      26 May 2005 12:25:00 -0000
@@ -2317,8 +2317,12 @@
 _MASTER_SITE_BACKUP:=  # empty
 .else
 _MASTER_SITE_OVERRIDE= ${MASTER_SITE_OVERRIDE}
+.if defined(RESTRICTED)
+_MASTER_SITE_BACKUP:=  # empty
+.else
 _MASTER_SITE_BACKUP=   ${MASTER_SITE_BACKUP}
 .endif
+.endif
 
 # Search CDROM first if mounted, symlink instead of copy if
 # FETCH_SYMLINK_DISTFILES is set

-- 
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man.  You don't KNOW.
Cause you weren't THERE.             http://bash.org/?255991



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