/[gentoo-alt]/trunk/sys-apps/freebsd-baselayout/freebsd-baselayout-0.1.ebuild
Gentoo

Diff of /trunk/sys-apps/freebsd-baselayout/freebsd-baselayout-0.1.ebuild

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

Revision 199 Revision 200
1# $Header$ 1# $Header$
2 2
3inherit flag-o-matic eutils 3inherit flag-o-matic eutils
4 4
5SV=0.3 5SV=0.6
6SVREV= 6SVREV=
7 7
8S="${WORKDIR}/freebsd-rcscripts-${SV}${SVREV}" 8S="${WORKDIR}/freebsd-rcscripts-${SV}${SVREV}"
9DESCRIPTION="Filesystem baselayout and init scripts" 9DESCRIPTION="Filesystem baselayout and init scripts"
10HOMEPAGE="http://gentoo-alt.gentoo.org" 10HOMEPAGE="http://gentoo-alt.gentoo.org"
11SRC_URI="http://www.srcf.ucam.org/~spb42/g-fbsd/freebsd-rcscripts-${SV}${SVREV}.tar.bz2" 11SRC_URI="http://dev.gentoo.org/~spb/fbsd/freebsd-rcscripts-${SV}${SVREV}.tar.bz2"
12 12
13KEYWORDS="~x86-fbsd" 13KEYWORDS="x86-fbsd"
14 14
15RDEPEND="sys-apps/freebsd-sbin 15RDEPEND="sys-apps/freebsd-sbin
16 >=sys-apps/gawk-3.1.1-r2 " 16 >=sys-apps/gawk-3.1.1-r2 "
17DEPEND="virtual/os-headers" 17DEPEND="virtual/os-headers"
18 18
32src_compile() { 32src_compile() {
33 use static && append-ldflags -static 33 use static && append-ldflags -static
34 34
35 make -C ${S}/src CC="${CC:-gcc}" LD="${CC:-gcc} ${LDFLAGS}" \ 35 make -C ${S}/src CC="${CC:-gcc}" LD="${CC:-gcc} ${LDFLAGS}" \
36 CFLAGS="${CFLAGS}" || die 36 CFLAGS="${CFLAGS}" || die
37 make -C ${S}/src/filefuncs CC="${CC:-gcc}" LD="${CC:-gcc} ${LDFLAGS}" \
38 CFLAGS="${CFLAGS}" || die
37} 39}
38 40
39src_install() { 41src_install() {
40 dodir /usr/share/baselayout 42 dodir /usr/share/baselayout
41 43
45 47
46 mv ${D}/etc/{passwd,group,fstab} ${D}/usr/share/baselayout 48 mv ${D}/etc/{passwd,group,fstab} ${D}/usr/share/baselayout
47 49
48 keepdir /etc/runlevels 50 keepdir /etc/runlevels
49 keepdir /etc/init.d 51 keepdir /etc/init.d
50 insinto /etc/init.d 52 exeinto /etc/init.d
51 doins ${S}/etc/init.d/* 53 doexe ${S}/etc/init.d/*
52 54
53 dodir /etc/conf.d 55 dodir /etc/conf.d
56 insinto /etc/conf.d
57 [ -d ${S}/etc/conf.d ] && doins ${S}/etc/conf.d/*
54 58
55 dodir /var/db/pkg 59 dodir /var/db/pkg
56 60
57 dodir /lib/rcscripts 61 dodir /lib/rcscripts
58 cp -r ${S}/lib/rcscripts/* ${D}/lib/rcscripts/ 62 cp -r ${S}/lib/rcscripts/* ${D}/lib/rcscripts/
59 cp -r ${S}/src/awk ${D}/lib/rcscripts/awk 63 cp -r ${S}/src/awk ${D}/lib/rcscripts/awk
64 cp ${S}/src/filefuncs/*.so ${D}/lib/rcscripts/
60 65
61 cp -r ${S}/rc-lists ${D}/usr/share/baselayout 66 cp -r ${S}/rc-lists ${D}/usr/share/baselayout
62 67
63 echo "Gentoo/FreeBSD: FreeBSD version $(uname -r); Gentoo base version ${SV}" >${D}/etc/gentoo-release 68 echo "Gentoo/FreeBSD: FreeBSD version $(uname -r); Gentoo base version ${SV}" >${D}/etc/gentoo-release
64 69
73 dosym ../../sbin/functions.sh /etc/init.d/functions.sh 78 dosym ../../sbin/functions.sh /etc/init.d/functions.sh
74 dosym ../../sbin/runscript.sh /etc/init.d/runscript.sh 79 dosym ../../sbin/runscript.sh /etc/init.d/runscript.sh
75 dosym ../../sbin/depscan.sh /etc/init.d/depscan.sh 80 dosym ../../sbin/depscan.sh /etc/init.d/depscan.sh
76 81
77 cd ${S}/src 82 cd ${S}/src
83 make DESTDIR="${D}" install || die
84 cd filefuncs
78 make DESTDIR="${D}" install || die 85 make DESTDIR="${D}" install || die
79} 86}
80 87
81pkg_postinst() { 88pkg_postinst() {
82 # Set up the default runlevels. 89 # Set up the default runlevels.

Legend:
Removed from v.199  
changed lines
  Added in v.200

  ViewVC Help
Powered by ViewVC 1.1.20