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

Contents of /trunk/sys-apps/freebsd-usbin/freebsd-usbin-5.2.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 25 - (show annotations) (download)
Wed Sep 15 20:18:51 2004 UTC (10 years ago) by angusyoung
File size: 5799 byte(s)
Initial Release

1 # Copyright 1999-2004 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header$
4
5 inherit flag-o-matic
6 filter-flags "-O2"
7
8 AMD=freebsd-amd-${PV}
9 BSNMP=freebsd-bsnmp-${PV}
10 CKSUM=freebsd-cksum-${PV}
11 TCPD=freebsd-tcpdump-${PV}
12 NTP=freebsd-ntp-${PV}
13 WALL=freebsd-wall-${PV}
14 TCPW=freebsd-tcp_wrappers-${PV}
15 BT=freebsd-bluetooth-${PV}
16 PNPI=freebsd-pnpinfo-${PV}
17
18 DESCRIPTION="FreeBSD /usr/sbin tools"
19 HOMEPAGE="http://www.freebsd.org/"
20 SRC_URI="http://angusyoung.no-ip.com:8080/distfiles/${P}.tar.bz2
21 http://angusyoung.no-ip.com:8080/distfiles/${AMD}.tar.bz2
22 http://angusyoung.no-ip.com:8080/distfiles/${BSNMP}.tar.bz2
23 http://angusyoung.no-ip.com:8080/distfiles/${CKSUM}.tar.bz2
24 http://angusyoung.no-ip.com:8080/distfiles/${TCPD}.tar.bz2
25 http://angusyoung.no-ip.com:8080/distfiles/${NTP}.tar.bz2
26 http://angusyoung.no-ip.com:8080/distfiles/${WALL}.tar.bz2
27 http://angusyoung.no-ip.com:8080/distfiles/${TCPW}.tar.bz2
28 http://angusyoung.no-ip.com:8080/distfiles/${BT}.tar.bz2
29 http://angusyoung.no-ip.com:8080/distfiles/${PNPI}.tar.bz2"
30
31 LICENSE="BSD
32 AS-IS"
33 SLOT="0"
34 KEYWORDS="~x86-fbsd"
35 IUSE=""
36 DEPEND="sys-libs/freebsd-libc
37 sys-kernel/freebsd-headers
38 sys-kernel/freebsd-sources
39 sys-libs/readline"
40
41 #RDEPEND=""
42
43 S=${WORKDIR}/usr.sbin
44
45 pkg_setup() {
46 ewarn
47 ewarn "Portage is going to change flags of some files"
48 ewarn "on your REAL filesystem"
49 if [ -f /usr/bin/crontab ]
50 then
51 chflags noschg /usr/bin/crontab || die "Unable to change flags"
52 fi
53 if [ -f /usr/sbin/sliplogin ]
54 then
55 chflags noschg /usr/sbin/sliplogin || die "Unable to change flags"
56 fi
57 ewarn "Done"
58 ewarn
59 }
60
61
62 src_unpack() {
63 # Ugly hack. Patch didn't worked
64 mkdir contrib
65 cd contrib
66 unpack ${AMD}.tar.bz2
67 unpack ${BSNMP}.tar.bz2
68 unpack ${TCPD}.tar.bz2
69 unpack ${NTP}.tar.bz2
70 unpack ${TCPW}.tar.bz2
71 unpack ${PNPI}.tar.bz2
72
73 cd ${WORKDIR}
74 mkdir usr.bin
75 cd usr.bin
76 unpack ${CKSUM}.tar.bz2
77 unpack ${WALL}.tar.bz2
78 unpack ${BT}.tar.bz2
79
80 cd ${WORKDIR}
81 unpack ${A}
82
83 ####################
84 # PATCHES AREA
85 ###################
86
87 # Disable compilation of kernbb, pwd_mkdb.
88 # Kernbb is built in another package.
89 # mount* are built in another package
90 # Pwd_mkdb is built in another package
91 # rpc* packages are built in another package
92 # setkey is built in another package
93 # sysinstall is built in another package
94 # traceroute is built in another package
95 # yp* packages are built in another package
96 # zic package is built in another package
97 # ipv6tools: mld6query, route6d, traceroute6 are built in another pkg
98 # ipfilter: ipftest, ipresend, ipsend, iptest are built in another pkg
99 # dnstools: named*, ndc, nslookup, nsupdate are built in another pkg
100 # sendmail: editmap, mailstats, makemap, praliases, sendmail are
101 # built in another package
102 # mounttools: mountd, mount_smbfs, mount_portalfs, mount_nwfs are
103 # built in another package
104 cd ${S}
105 epatch ${FILESDIR}/${P}-makefile.patch
106 epatch ${FILESDIR}/${P}-noipv6.patch
107 epatch ${FILESDIR}/${P}-noipfilter.patch
108 epatch ${FILESDIR}/${P}-nobind.patch
109 epatch ${FILESDIR}/${P}-nosendmail.patch
110 epatch ${FILESDIR}/${P}-nomount.patch
111 epatch ${FILESDIR}/${P}-noacpi.patch
112
113 cd ${S}/amd/include
114 # Fixed location to /usr/src
115 epatch ${FILESDIR}/amd-include-makefile-${PV}.patch
116
117 # Fixed location to /usr/src
118 cd ${S}/dconschat
119 epatch ${FILESDIR}/dconschat-makefile-${PV}.patch
120
121 # Fixed location to /usr/src
122 cd ${S}/fwcontrol
123 epatch ${FILESDIR}/fwcontrol-makefile-${PV}.patch
124
125 # Fixed locations to /usr/src
126 cd ${S}/mlxcontrol
127 epatch ${FILESDIR}/mlxcontrol-makefile-${PV}.patch
128
129 cd ${S}/pciconf
130 epatch ${FILESDIR}/pciconf-makefile-${PV}.patch
131
132 cd ${S}/raycontrol
133 epatch ${FILESDIR}/raycontrol-makefile-${PV}.patch
134
135 cd ${S}/pnpinfo
136 epatch ${FILESDIR}/pnpinfo-makefile-${PV}.patch
137
138 cd ${S}/sicontrol
139 epatch ${FILESDIR}/sicontrol-makefile-${PV}.patch
140
141 cd ${S}/mailwrapper
142 epatch ${FILESDIR}/mailwrapper-makefile-${PV}.patch
143 }
144
145
146 src_compile() {
147 cd ${S}
148 emake || die "emake failed"
149 }
150
151 src_install() {
152 mkdir ${D}/etc
153 mkdir ${D}/mail
154 # mkdir ${D}/usr
155 mkdir ${D}/usr
156 mkdir ${D}/usr/{libexec,libdata}
157 mkdir ${D}/usr/libexec/lpr
158 mkdir ${D}/usr/libexec/lpr/ru
159 mkdir ${D}/usr/{bin,lib,sbin,share}
160 # mkdir ${D}/usr/sbin
161 # mkdir ${D}/usr/share
162 mkdir ${D}/usr/share/{doc,misc}
163 mkdir ${D}/usr/share/doc/{ntp,smm}
164 mkdir ${D}/usr/share/{man,misc}
165 mkdir ${D}/usr/share/man/man1
166 mkdir ${D}/usr/share/man/man2
167 mkdir ${D}/usr/share/man/man3
168 mkdir ${D}/usr/share/man/man4
169 mkdir ${D}/usr/share/man/man4/i386
170 mkdir ${D}/usr/share/man/man5
171 mkdir ${D}/usr/share/man/man6
172 mkdir ${D}/usr/share/man/man7
173 mkdir ${D}/usr/share/man/man8
174 mkdir ${D}/usr/share/info
175 mkdir ${D}/usr/share/bsnmp
176 mkdir ${D}/usr/share/bsnmp/defs
177 mkdir ${D}/usr/share/bsnmp/mibs
178 mkdir ${D}/usr/share/misc/pcvtfonts
179 mkdir ${D}/usr/share/pcvt
180 mkdir ${D}/usr/share/pcvt/{Doc,Etc}
181 mkdir ${D}/usr/libdata/stallion
182
183 mkdir ${D}/usr/portage
184 mkdir ${D}/${PORTDIR}
185 mkdir ${D}/${PORTDIR}/local
186 mkdir ${D}/${PORTDIR}/local/${CATEGORY}
187 mkdir ${D}/${PORTDIR}/local/${CATEGORY}/${PN}/
188 mkdir ${D}/${PORTDIR}/local/${CATEGORY}/${PN}/files
189 emake DESTDIR=${D} install || die "Install failed"
190 # emake install || die "Install failed"
191
192 }
193
194 pkg_preinst() {
195 echo "Executing last operations on live-filesystem"
196 chflags noschg ${D}/usr/bin/crontab || die "Unable to chage flags"
197 chflags noschg ${D}/usr/sbin/sliplogin || die "Unable to change flags"
198 echo "Done"
199 }
200
201
202 pkg_postinst() {
203 ewarn
204 ewarn "Portage is going to change flags of some files on"
205 ewarn "your REAL filesystem"
206
207 if [ -f /usr/bin/crontab ]
208 then
209 chflags schg /usr/bin/crontab || die "Unable do change flags"
210 fi
211 if [ -f /usr/sbin/sliplogin ]
212 then
213 chflags schg /usr/sbin/sliplogin || die "Unable to change flags"
214 fi
215
216 ewarn "Done"
217 ewarn
218 }

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.20