/[gentoo-alt]/trunk/overlay/sys-freebsd/freebsd-sources/freebsd-sources-6.0.ebuild
Gentoo

Diff of /trunk/overlay/sys-freebsd/freebsd-sources/freebsd-sources-6.0.ebuild

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

Revision 1098 Revision 1099
18PROVIDE="virtual/os-sources" 18PROVIDE="virtual/os-sources"
19RESTRICT="nostrip" 19RESTRICT="nostrip"
20 20
21S=${WORKDIR}/sys 21S=${WORKDIR}/sys
22 22
23MY_PVR="${PVR}"
24
25[[ ${MY_PVR} == "${RV}" ]] && MY_PVR="${MY_PVR}-r0"
26
23src_unpack() { 27src_unpack() {
24 unpack ${A} 28 unpack ${A}
25 cd ${S} 29 cd ${S}
26 epatch "${FILESDIR}/${PN}-gentoo.patch" 30 epatch "${FILESDIR}/${PN}-gentoo.patch"
27 epatch "${FILESDIR}/${P}-flex-2.5.31.patch" 31 epatch "${FILESDIR}/${P}-flex-2.5.31.patch"
32src_compile() { 36src_compile() {
33 einfo "Nothing to compile.." 37 einfo "Nothing to compile.."
34} 38}
35 39
36src_install() { 40src_install() {
37 insinto /usr/src/sys-${PVR} 41 insinto /usr/src/sys-${MY_PVR}
38 doins -r ${S}/* 42 doins -r ${S}/*
39} 43}
40 44
41pkg_postinst() { 45pkg_postinst() {
42 if [[ ! -L ${ROOT}usr/src/sys ]]; then 46 if [[ ! -L ${ROOT}usr/src/sys ]]; then
43 einfo "/usr/src/sys symlink doesn't exist; creating..." 47 einfo "/usr/src/sys symlink doesn't exist; creating..."
44 ln -sf sys-${PVR} ${ROOT}/usr/src/sys || \ 48 ln -sf sys-${MY_PVR} ${ROOT}/usr/src/sys || \
45 eerror "Couldn't create ${ROOT}/usr/src/sys symlink." 49 eerror "Couldn't create ${ROOT}/usr/src/sys symlink."
46 [[ ${PVR} != ${RV} ]] && ln -sf sys-${PVR} ${ROOT}/usr/src/sys-${RV} || \ 50 ln -sf sys-${MY_PVR} ${ROOT}/usr/src/sys-${RV} || \
47 eerror "Couldn't create ${ROOT}/usr/src/sys-${RV} symlink." 51 eerror "Couldn't create ${ROOT}/usr/src/sys-${RV} symlink."
48 elif use symlink; then 52 elif use symlink; then
49 einfo "Updating /usr/src/sys symlink..." 53 einfo "Updating /usr/src/sys symlink..."
50 rm ${ROOT}/usr/src/sys 54 rm ${ROOT}/usr/src/sys
51 ln -sf sys-${PVR} ${ROOT}/usr/src/sys || \ 55 ln -sf sys-${MY_PVR} ${ROOT}/usr/src/sys || \
52 eerror "Couldn't create ${ROOT}/usr/src/sys symlink." 56 eerror "Couldn't create ${ROOT}/usr/src/sys symlink."
53 [[ ${PVR} != ${RV} ]] && ln -sf sys-${PVR} ${ROOT}/usr/src/sys-${RV} || \ 57 ln -sf sys-${MY_PVR} ${ROOT}/usr/src/sys-${RV} || \
54 eerror "Couldn't create ${ROOT}/usr/src/sys-${RV} symlink." 58 eerror "Couldn't create ${ROOT}/usr/src/sys-${RV} symlink."
55 fi 59 fi
56} 60}

Legend:
Removed from v.1098  
changed lines
  Added in v.1099

  ViewVC Help
Powered by ViewVC 1.1.20