/[gentoo-alt]/trunk/sys-libs/freebsd-lib/freebsd-lib-5.3.20050301.ebuild
Gentoo

Diff of /trunk/sys-libs/freebsd-lib/freebsd-lib-5.3.20050301.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 276 Revision 277
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header$ 3# $Header$
4 4
5inherit freebsd-utils flag-o-matic 5inherit freebsd-utils flag-o-matic
6 6
7BASE_PV=${PV} 7BASE_PV=5.3
8MY_PATCH=${PN}-${BASE_PV}_rc1
8 9
9USBIN="freebsd-usbin-${BASE_PV}" 10USBIN="freebsd-usbin-${PV}"
10CONTRIB="freebsd-contrib-${BASE_PV}" 11CONTRIB="freebsd-contrib-${PV}"
11CRYPTO="freebsd-crypto-${BASE_PV}" 12CRYPTO="freebsd-crypto-${PV}"
12LIBEXEC="freebsd-libexec-${BASE_PV}" 13LIBEXEC="freebsd-libexec-${PV}"
13
14MY_PATCH=${PN}-5.3_rc1
15 14
16DESCRIPTION="FreeBSD's base system libraries" 15DESCRIPTION="FreeBSD's base system libraries"
17SLOT="0" 16SLOT="0"
18IUSE="" 17IUSE=""
19SRC_URI="${SRC_URI} 18SRC_URI="${SRC_URI}
20 ${BASE_SRC_URI}${USBIN}.tar.bz2 19 ${BASE_SRC_URI}${USBIN}.tar.bz2
21 ${BASE_SRC_URI}${CONTRIB}.tar.bz2 20 ${BASE_SRC_URI}${CONTRIB}.tar.bz2
22 ${BASE_SRC_URI}${CRYPTO}.tar.bz2 21 ${BASE_SRC_URI}${CRYPTO}.tar.bz2
23 ${BASE_SRC_URI}${LIBEXEC}.tar.bz2" 22 ${BASE_SRC_URI}${LIBEXEC}.tar.bz2"
24 23
24# This should depend on com_err stuff asap if kerberos is requested.
25DEPEND="=sys-devel/freebsd-mk-defs-5.3* 25DEPEND="=sys-devel/freebsd-mk-defs-5.3*
26 =sys-kernel/freebsd-sources-5.3* 26 =sys-kernel/freebsd-sources-5.3*
27 =sys-kernel/freebsd-headers-${PV}" 27 =sys-kernel/freebsd-headers-5.3*
28 =sys-kernel/freebsd-headers-5.3*
29 ssl? ( || ( =sys-apps/freebsd-crypto-5.3* dev-libs/openssl ) )
30 ssh? ( =sys-apps/freebsd-crypto-5.3* )
31 kerberos? ( virtual/krb5 )"
32
28PROVIDE="virtual/glibc virtual/libc" 33PROVIDE="virtual/libc"
29 34
30S=${WORKDIR}/lib 35S=${WORKDIR}/lib
36IUSE="atm bind bluetooth sendmail ssl usb ipv6 kerberos ssh"
37
38+pkg_setup() {
39 if ! use ssl && use kerberos; then
40 eerror "If you want kerberos support you need to enable ssl sup$
41 fi
42
43 use atm || mymakeopts="${mymakeopts} NO_ATM= "
44 use bind || mymakeopts="${mymakeopts} NO_BIND= "
45 use bluetooth || mymakeopts="${mymakeopts} NO_BLUETOOTH= "
46 use bind || mymakeopts="${mymakeopts} NO_BIND= "
47 use bluetooth || mymakeopts="${mymakeopts} NO_BLUETOOTH= "
48 use sendmail || mymakeopts="${mymakeopts} NO_SENDMAIL= "
49 use ssl || mymakeopts="${mymakeopts} NO_OPENSSL= NOCRYPT= "
50 use usb || mymakeopts="${mymakeopts} NO_USB= "
51 use ipv6 || mymakeopts="${mymakeopts} NOINET6= "
52 use kerberos || mymakeopts="${mymakeopts} NO_KERBEROS= "
53
54 if use ssh; then
55 einfo "Note that ssh pam support is only usable with freebsd-cr$
56 einfo "ssh version."
57 sleep 5
58 else
59 mymakeopts="${mymakeopts} NO_OPENSSH= "
60 fi
61}
31 62
32src_unpack() { 63src_unpack() {
33 unpack ${P}.tar.bz2 || die "Unable to unpack ${P}.tar.bz2" 64 unpack ${A} || die "Unable to unpack ${P}.tar.bz2"
34 unpack ${USBIN}.tar.bz2 || die "Unable to unpack ${USBIN}.tar.bz2"
35 unpack ${CONTRIB}.tar.bz2 || die "Unable to unpack ${CONTRIB}.tar.bz2"
36 unpack ${CRYPTO}.tar.bz2 || die "Unable to unpack ${CRYPTO}.tar.bz2"
37 unpack ${LIBEXEC}.tar.bz2 || die "Unable to unpack ${LIBEXEC}.tar.bz2"
38 65
39 # Massive patching starts here 66 # Massive patching starts here
40 # Fixed locations 67 # Fixed locations
68 cd ${S}
69 epatch ${FILESDIR}/${PN}-${BASE_PV}-nocom_err.patch
41 cd ${S}/libkvm 70 cd ${S}/libkvm
42 epatch ${FILESDIR}/${MY_PATCH}-libkvm-makefile.patch 71 epatch ${FILESDIR}/${MY_PATCH}-libkvm-makefile.patch
43 cd ${S}/libsbuf 72 cd ${S}/libsbuf
44 epatch ${FILESDIR}/${MY_PATCH}-libsbuf-makefile.patch 73 epatch ${FILESDIR}/${MY_PATCH}-libsbuf-makefile.patch
45 cd ${S}/libypclnt 74 cd ${S}/libypclnt
63} 92}
64 93
65src_compile() { 94src_compile() {
66 filter-flags "-fomit-frame-pointer" 95 filter-flags "-fomit-frame-pointer"
67 replace-flags "-O?" -"O1" 96 replace-flags "-O?" -"O1"
68 emake || die "emake failed" 97 fmake || die "emake failed"
69} 98}
70 99
71src_install() { 100src_install() {
72 emake DESTDIR=${D} install || die "Install failed" 101 fmake DESTDIR=${D} install || die "Install failed"
73} 102}

Legend:
Removed from v.276  
changed lines
  Added in v.277

  ViewVC Help
Powered by ViewVC 1.1.20