/[gentoo-alt]/trunk/sys-apps/freebsd-usbin/freebsd-usbin-5.3.20050301.ebuild
Gentoo

Diff of /trunk/sys-apps/freebsd-usbin/freebsd-usbin-5.3.20050301.ebuild

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

Revision 440 Revision 441
7BASE_VER=5.3 7BASE_VER=5.3
8MY_PATCH=${PN}-${BASE_VER}_rc1 8MY_PATCH=${PN}-${BASE_VER}_rc1
9 9
10DESCRIPTION="FreeBSD /usr/sbin tools" 10DESCRIPTION="FreeBSD /usr/sbin tools"
11HOMEPAGE="http://www.freebsd.org/" 11HOMEPAGE="http://www.freebsd.org/"
12SRC_URI="${BASE_SRC_URI}${P}.tar.bz2 12SRC_URI="mirror://gentoo/${P}.tar.bz2
13 ${BASE_SRC_URI}${CONTRIB}.tar.bz2 13 mirror://gentoo/${CONTRIB}.tar.bz2
14 ${BASE_SRC_URI}${UBIN}.tar.bz2 14 mirror://gentoo/${UBIN}.tar.bz2
15 ${BASE_SRC_URI}${LIB}.tar.bz2 15 mirror://gentoo/${LIB}.tar.bz2
16 ${BASE_SRC_URI}${SBIN}.tar.bz2 16 mirror://gentoo/${SBIN}.tar.bz2
17 ${BASE_SRC_URI}${LIBEXEC}.tar.bz2 17 mirror://gentoo/${LIBEXEC}.tar.bz2
18 ${BASE_SRC_URI}${GNU}.tar.bz2" 18 mirror://gentoo/${GNU}.tar.bz2"
19 19
20LICENSE="BSD" 20LICENSE="BSD"
21SLOT="0" 21SLOT="0"
22KEYWORDS="~x86-fbsd" 22KEYWORDS="~x86-fbsd"
23IUSE="atm bluetooth crypt ssl sendmail usb bind named dnssec bind-utils ipv6 23IUSE="atm bluetooth crypt ssl sendmail usb bind named dnssec bind-utils ipv6
39S=${WORKDIR}/usr.sbin 39S=${WORKDIR}/usr.sbin
40 40
41pkg_setup() { 41pkg_setup() {
42 if ! use bind && ( use named || use dnssec || use bind-utils ); then 42 if ! use bind && ( use named || use dnssec || use bind-utils ); then
43 eerror "Please enable bind if you want to use named, dnssec or bind-utils" 43 eerror "Please enable bind if you want to use named, dnssec or bind-utils"
44 fi 44 fi
45 45
46 # Release crunch is something like minimal. It seems to remove everything 46 # Release crunch is something like minimal. It seems to remove everything
47 # which is not needed to work. 47 # which is not needed to work.
48 use minimal && mymakeopts="${mymakeopts} RELEASE_CRUNCH= " 48 use minimal && mymakeopts="${mymakeopts} RELEASE_CRUNCH= "
49 49
50 use atm || mymakeopts="${mymakeopts} NO_ATM= " 50 use atm || mymakeopts="${mymakeopts} NO_ATM= "
51 use bluetooth || mymakeopts="${mymakeopts} NO_BLUETOOTH= " 51 use bluetooth || mymakeopts="${mymakeopts} NO_BLUETOOTH= "
52 use bind || mymakeopts="${mymakeopts} NO_BIND= " 52 use bind || mymakeopts="${mymakeopts} NO_BIND= "
53 use dnssec || mymakeopts="${mymakeopts} NO_BIND_DNSSEC= " 53 use dnssec || mymakeopts="${mymakeopts} NO_BIND_DNSSEC= "
54 use named || mymakeopts="${mymakeopts} NO_BIND_NAMED= " 54 use named || mymakeopts="${mymakeopts} NO_BIND_NAMED= "
117 # Do not intall mailwrapper configuration file 117 # Do not intall mailwrapper configuration file
118 # (would, probably, be a problem when working w/ 118 # (would, probably, be a problem when working w/
119 # sandbox) 119 # sandbox)
120 cd ${S}/mailwrapper 120 cd ${S}/mailwrapper
121 epatch ${FILESDIR}/${MY_PATCH}-mailwrapper-makefile.patch 121 epatch ${FILESDIR}/${MY_PATCH}-mailwrapper-makefile.patch
122 122
123 cd ${S}/pcvt/keycap 123 cd ${S}/pcvt/keycap
124 epatch ${FILESDIR}/${MY_PATCH}-pcvt_keycap-makefile.patch 124 epatch ${FILESDIR}/${MY_PATCH}-pcvt_keycap-makefile.patch
125 125
126 cd ${S} 126 cd ${S}
127 epatch ${FILESDIR}/${PN}-${BASE_VER}-r1-makefile-docpaths.patch 127 epatch ${FILESDIR}/${PN}-${BASE_VER}-r1-makefile-docpaths.patch
139 einfo "Building library dependencies for this package" 139 einfo "Building library dependencies for this package"
140 if use bind; then 140 if use bind; then
141 cd ${WORKDIR}/lib/bind 141 cd ${WORKDIR}/lib/bind
142 fmake || die "fmake libbind failed" 142 fmake || die "fmake libbind failed"
143 fi 143 fi
144 144
145 if use sendmail; then 145 if use sendmail; then
146 cd ${WORKDIR}/lib/libsm 146 cd ${WORKDIR}/lib/libsm
147 fmake || die "fmake libsm failed" 147 fmake || die "fmake libsm failed"
148 cd ${WORKDIR}/lib/libsmdb 148 cd ${WORKDIR}/lib/libsmdb
149 fmake || die "fmake libsmdb failed" 149 fmake || die "fmake libsmdb failed"
150 cd ${WORKDIR}/lib/libsmutil 150 cd ${WORKDIR}/lib/libsmutil
151 fmake || die "fmake libsmdb failed" 151 fmake || die "fmake libsmdb failed"
152 fi 152 fi
153 153
154 einfo "Building package now" 154 einfo "Building package now"
155 cd ${S} 155 cd ${S}
156 fmake || die "fmake failed" 156 fmake || die "fmake failed"
157} 157}
158 158
159src_install() { 159src_install() {
160 docrondir -m0750 160 docrondir -m0750
161 newinitd ${FILESDIR}/vixie-cron.rc6 freebsd-cron 161 newinitd ${FILESDIR}/vixie-cron.rc6 freebsd-cron
162 insinto /etc; doins ${FILESDIR}/crontab 162 insinto /etc; doins ${FILESDIR}/crontab
163 163
164 # By creating these two directories we avoid having to do a 164 # By creating these two directories we avoid having to do a
165 # more complex hack inside lpr/SMM.doc and nologin makefiles. 165 # more complex hack inside lpr/SMM.doc and nologin makefiles.
166 dodir /usr/share/doc 166 dodir /usr/share/doc
167 dodir /sbin 167 dodir /sbin
168 dodir /usr/libexec 168 dodir /usr/libexec
169 169

Legend:
Removed from v.440  
changed lines
  Added in v.441

  ViewVC Help
Powered by ViewVC 1.1.20