linux-f10-nss_ldap: my first port - be gentle :)
Alexander Leidinger
Alexander at Leidinger.net
Wed Jan 11 04:29:48 UTC 2012
On Wed, 11 Jan 2012 10:45:13 +1000 Da Rock
<freebsd-ports at herveybayaustralia.com.au> wrote:
> On 01/11/12 07:11, Alexander Leidinger wrote:
> > On Mon, 09 Jan 2012 15:55:48 +1000 Da Rock
> > <freebsd-ports at herveybayaustralia.com.au> wrote:
> >> CATEGORIES= net linux
> >> MASTER_SITES=
> >> ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/updates/testing/10/i386/
> >> \
> >>
> >> http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/10/Everything/i386/os/Packages/
> >> \
> >> http://herveybayaustralia.com.au/ports/distfiles/
> > 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.
> I'm not 100% sure about the fedora archives, but I don't think
> they're exactly right. I keep getting (in most linux ports) a hunt
> through the MASTER_SITES for the file, starting with the archives.
>
> The other pbone.net is definitely not in the sites list. I did check
> that file thoroughly using grep and by manual sighting.
If it is an official mirror, we should maybe add it to bsd.sites.mk.
> One thing to note though is that when I tried with MASTER_SITES set
> to the FEDORA_LINUX set it failed to find the files. Also the files I
> need are only on pbone.net- they are more recent than the original.
> Or can I set the rpm version to "float" a bit?
If they are only available on pbone, there's no need to include the
archives.
Keep the rpm version stable. It's the right thing to do, and making it
dynamic looks a little bit hard as a first port IMO.
> >> LINUX_DIST_VER= 10
> >> RPMVERSION= 6.fc10
> >> USE_LDCONFIG= yes
> >>
> >> PLIST_FILES= usr/lib/libnss_ldap.so.2 usr/lib/libnss_ldap.so
> >> usr/lib/libnss_ldap-264.so
> >> DOCSDIR=
> >> ${PREFIX}/usr/share/doc/${PKGNAMEPREFIX}-${PORTNAME}-${PORTVERSION}
> >> PORTDOCS= COPYING NEWS README THANKS TODO
> >> DESCR= ${.CURDIR}/../${PORTNAME}/pkg-descr
> >>
> >> post-extract:
> >> .if !defined(WITH_PAM)
The .if (and .else / .endif) needs to start at the first character of
the line. As soon as you indent it, it will be executed as a shell
command.
> Only one more thing: do I need USE_LDCONFIG?
Yes, for usr/lib/libnss_* it is needed.
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