linux-f10-nss_ldap: my first port - be gentle :)

Alexander Leidinger Alexander at Leidinger.net
Wed Jan 11 04:14:41 UTC 2012


On Tue, 10 Jan 2012 15:30:53 -0600 Paul Schmehl
<pschmehl_lists at tx.rr.com> wrote:

> --On January 10, 2012 10:11:15 PM +0100 Alexander Leidinger 
> <Alexander at Leidinger.net> wrote:

> > I can't remember if we have the fedora archives in bsd.sites.mk (if
> > not, it would be worth to add it), and I'm too lazy ATM to search
> > for it. If we have them (and they are OK), it would be better to
> > use the bsd.sites.mk shortcodes for them. This would change
> > automatically the master sites for this port if they are
> > changed/improved in bsd.sites.mk.
> 
> Too lazy to do this?
> 
> # grep FEDORA /usr/ports/Mk/bsd.*
> /usr/ports/Mk/bsd.linux-rpm.mk:MASTER_SITES=
> ${MASTER_SITE_FEDORA_LINUX} /usr/ports/Mk/bsd.sites.mk:.if !defined(IGNORE_MASTER_SITE_FEDORA_LINUX)
> /usr/ports/Mk/bsd.sites.mk:MASTER_SITE_FEDORA_LINUX+= \

After a working day debugging an obscure performance issue, I was too
lazy to login into a FreeBSD machine and to do something like the
following in a linux-port directory:
---snip---
% for i in $(make -V MASTER_SITE_FEDORA_LINUX ); do; echo $i ; done |
grep archives
http://archives.fedoraproject.org/pub/archive/fedora/linux/core/%SUBDIR%/
---snip---

So we have the fedora archives inside, but the path is different. This
means either the MASTER_SITE stays at it is, or it can be changed to
include MASTER_SITE_FEDORA_LINUX with a suitable setting for SUBDIR
(SUBDIR=../releases/10/Everything/i386/os/Packages/). Setting SUBDIR
means that all listed master sites need to have the distfile in the
same location. As the pbone-one has a different path than the fedora
archive one, this is either not possible, or one of them should be
changed to point to the same subdir (in this case it only depends upon
Da Rock's own mirror).

> >> PKGNAMEPREFIX=    linux-f10-
> >> DISTNAME=        ${PORTNAME}-${NSS_LDAP_VERSION}-${RPMVERSION}
> >>
> >> MAINTAINER=        port_maintainer at herveybayaustralia.com.au
> >> COMMENT=        RFC 2307 NSS Module (Linux Fedora 10)
> >>
> >> LICENSE=        GPLv2
> >>
> >> NSS_LDAP_VERSION=264
> >>
> >> USE_LINUX_RPM=  yes
> >> USE_LINUX_PREFIX=yes
> >
> > Hmmm... I would expect that USE_LINUX_RPM automatically sets
> > USE_LINUX_PREFIX... to be verified.
> >
> 
> USE_LINUX_RPM implies the inclusion of bsd.linux-rpm.mk.
> bsd.linux-rpm.mk includes USE_LINUX= yes and USE_LINUX_PREFIX= yes.
> So putting USE_LINUX_PREFIX in the Makefile is redundant.

Thanks for verifying.

Bye,
Alexander.

-- 
http://www.Leidinger.net    Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org       netchild @ FreeBSD.org  : PGP ID = 72077137


More information about the freebsd-ports mailing list