/[gentoo-x86]/sys-kernel/linux-extras/linux-extras-2.4.4-r5.ebuild
Gentoo

Diff of /sys-kernel/linux-extras/linux-extras-2.4.4-r5.ebuild

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

Revision 1.2 Revision 1.4
276 276
277 if [ "`use xfs`" ] 277 if [ "`use xfs`" ]
278 then 278 then
279 cd ${S}/extras/xfs-${XFSV}/acl 279 cd ${S}/extras/xfs-${XFSV}/acl
280 try make distclean 280 try make distclean
281 rm -f include/builddefs
281 try make \ 282 try make \
282 CPPFLAGS=\""-I${S}/include"\" \ 283 CPPFLAGS=\""-I${S}/include"\" \
283 configure 284 configure
284 try make \ 285 try make \
285 PKG_SBIN_DIR=/sbin \ 286 PKG_SBIN_DIR=/sbin \
290 OPTIMIZER=\""${CFLAGS}"\" \ 291 OPTIMIZER=\""${CFLAGS}"\" \
291 DEBUG=\"\" 292 DEBUG=\"\"
292 293
293 cd ${S}/extras/xfs-${XFSV}/attr 294 cd ${S}/extras/xfs-${XFSV}/attr
294 try make distclean 295 try make distclean
296 rm -f include/builddefs
295 try make \ 297 try make \
296 CPPFLAGS=\""-I${S}/include"\" \ 298 CPPFLAGS=\""-I${S}/include"\" \
297 configure 299 configure
298 try make \ 300 try make \
299 PKG_SBIN_DIR=/bin \ 301 PKG_SBIN_DIR=/bin \
304 OPTIMIZER=\""${CFLAGS}"\" \ 306 OPTIMIZER=\""${CFLAGS}"\" \
305 DEBUG=\"\" 307 DEBUG=\"\"
306 308
307 cd ${S}/extras/xfs-${XFSV}/xfsprogs 309 cd ${S}/extras/xfs-${XFSV}/xfsprogs
308 try make distclean 310 try make distclean
311 rm -f include/builddefs
309 try make \ 312 try make \
310 CPPFLAGS=\""-I${S}/include"\" \ 313 CPPFLAGS=\""-I${S}/include"\" \
311 configure 314 configure
312 try make \ 315 try make \
313 PKG_SBIN_DIR=/sbin \ 316 PKG_SBIN_DIR=/sbin \
321 324
322 # dmapi and xfsdump must be built last, cuz they depend on libattr (in attr) and libxfs (in xfsprogs) 325 # dmapi and xfsdump must be built last, cuz they depend on libattr (in attr) and libxfs (in xfsprogs)
323 cd ${S}/extras/xfs-${XFSV}/dmapi 326 cd ${S}/extras/xfs-${XFSV}/dmapi
324 ln -sf ../../xfsprogs/include include/xfs 327 ln -sf ../../xfsprogs/include include/xfs
325 try make distclean 328 try make distclean
329 rm -f include/builddefs
326 try make \ 330 try make \
327 CPPFLAGS=\""-I${S}/include -I${S}/extras/xfs-${XFSV}/dmapi/include"\" \ 331 CPPFLAGS=\""-I${S}/include -I${S}/extras/xfs-${XFSV}/dmapi/include"\" \
328 configure 332 configure
329 try make \ 333 try make \
330 PKG_INC_DIR=/usr/include/dmapi \ 334 PKG_INC_DIR=/usr/include/dmapi \
336 340
337 cd ${S}/extras/xfs-${XFSV}/xfsdump 341 cd ${S}/extras/xfs-${XFSV}/xfsdump
338 ln -sf ../../xfsprogs/include include/xfs 342 ln -sf ../../xfsprogs/include include/xfs
339 ln -sf ../../attr/include include/attr 343 ln -sf ../../attr/include include/attr
340 try make distclean 344 try make distclean
345 rm -f include/builddefs
341 try make \ 346 try make \
342 CPPFLAGS=\""-I${S}/include -I${S}/extras/xfs-${XFSV}/xfsdump/include -I${S}/extras/xfs-${XFSV}/xfsprogs/include -I${S}/extras/xfs-${XFSV}/attr/include"\" \ 347 CPPFLAGS=\""-I${S}/include -I${S}/extras/xfs-${XFSV}/xfsdump/include -I${S}/extras/xfs-${XFSV}/xfsprogs/include -I${S}/extras/xfs-${XFSV}/attr/include"\" \
343 LDFLAGS=\""-L${S}/extras/xfs-${XFSV}/attr/libattr -L${S}/extras/xfs-${XFSV}/xfsprogs/libxfs -L${S}/extras/xfs-${XFSV}/xfsprogs/libhandle -lhandle"\" \ 348 LDFLAGS=\""-L${S}/extras/xfs-${XFSV}/attr/libattr -L${S}/extras/xfs-${XFSV}/xfsprogs/libxfs -L${S}/extras/xfs-${XFSV}/xfsprogs/libhandle -lhandle"\" \
344 configure 349 configure
345 try make \ 350 try make \
371 then 376 then
372 cd ${S}/extras/alsa-driver-${AV} 377 cd ${S}/extras/alsa-driver-${AV}
373 # This is needed for linux-extras 378 # This is needed for linux-extras
374 if [ -f "Makefile.conf" ] 379 if [ -f "Makefile.conf" ]
375 then 380 then
376 try make distclean 381 try make mrproper
377 fi 382 fi
378 try ./configure --with-kernel=\"${S}\" --with-isapnp=yes --with-sequencer=yes --with-oss=yes --with-cards=all 383 try ./configure --with-kernel=\"${S}\" --with-isapnp=yes --with-sequencer=yes --with-oss=yes --with-cards=all
379 try make 384 try make
380 fi 385 fi
381 if [ "`use pcmcia-cs`" ] 386 if [ "`use pcmcia-cs`" ]
416 try CFLAGS=\""${CFLAGS} -I${S}/include"\" make install -e prefix=${D} mandir=${D}/usr/share/man \ 421 try CFLAGS=\""${CFLAGS} -I${S}/include"\" make install -e prefix=${D} mandir=${D}/usr/share/man \
417 sbindir=${D}/sbin libdir=${D}/lib 422 sbindir=${D}/sbin libdir=${D}/lib
418 #no need for a static library in /lib 423 #no need for a static library in /lib
419 mv ${D}/lib/*.a ${D}/usr/lib 424 mv ${D}/lib/*.a ${D}/usr/lib
420 425
426 cd ${S}/extras/LVM/${LVMV}
421 docinto LVM-${LVMV} 427 docinto LVM-${LVMV}
422 dodoc ABSTRACT CHANGELOG CONTRIBUTORS COPYING COPYING.LIB FAQ KNOWN_BUGS LVM-HOWTO 428 dodoc ABSTRACT CHANGELOG CONTRIBUTORS COPYING COPYING.LIB FAQ KNOWN_BUGS LVM-HOWTO
423 dodoc README TODO WHATSNEW 429 dodoc README TODO WHATSNEW
424 fi 430 fi
425 431
434 fi 440 fi
435 441
436 if [ "`use xfs`" ] 442 if [ "`use xfs`" ]
437 then 443 then
438 cd ${S}/extras/xfs-${XFSV}/acl 444 cd ${S}/extras/xfs-${XFSV}/acl
439 chmod +x install.sh 445 chmod +x install-sh
440 try make \ 446 try make \
441 PKG_SBIN_DIR=${D}/sbin \ 447 PKG_SBIN_DIR=${D}/sbin \
442 PKG_INC_DIR=${D}/usr/include/acl \ 448 PKG_INC_DIR=${D}/usr/include/acl \
443 PKG_LIB_DIR=${D}/usr/lib \ 449 PKG_LIB_DIR=${D}/usr/lib \
444 PKG_MAN_DIR=${D}/usr/share/man \ 450 PKG_MAN_DIR=${D}/usr/share/man \
446 rm -rf ${D}/usr/share/doc/acl 452 rm -rf ${D}/usr/share/doc/acl
447 docinto xfs-${XFSV}/acl 453 docinto xfs-${XFSV}/acl
448 dodoc README doc/CHANGES doc/COPYING doc/PORTING 454 dodoc README doc/CHANGES doc/COPYING doc/PORTING
449 455
450 cd ${S}/extras/xfs-${XFSV}/attr 456 cd ${S}/extras/xfs-${XFSV}/attr
451 chmod +x install.sh 457 chmod +x install-sh
452 try make \ 458 try make \
453 PKG_SBIN_DIR=${D}/bin \ 459 PKG_SBIN_DIR=${D}/bin \
454 PKG_INC_DIR=${D}/usr/include/acl \ 460 PKG_INC_DIR=${D}/usr/include/acl \
455 PKG_LIB_DIR=${D}/usr/lib \ 461 PKG_LIB_DIR=${D}/usr/lib \
456 PKG_MAN_DIR=${D}/usr/share/man \ 462 PKG_MAN_DIR=${D}/usr/share/man \
458 rm -rf ${D}/usr/share/doc/attr 464 rm -rf ${D}/usr/share/doc/attr
459 docinto xfs-${XFSV}/attr 465 docinto xfs-${XFSV}/attr
460 dodoc README doc/CHANGES doc/COPYING doc/PORTING 466 dodoc README doc/CHANGES doc/COPYING doc/PORTING
461 467
462 cd ${S}/extras/xfs-${XFSV}/xfsprogs 468 cd ${S}/extras/xfs-${XFSV}/xfsprogs
463 chmod +x install.sh 469 chmod +x install-sh
464 try make \ 470 try make \
465 PKG_SBIN_DIR=${D}/sbin \ 471 PKG_SBIN_DIR=${D}/sbin \
466 PKG_BIN_DIR=${D}/usr/sbin \ 472 PKG_BIN_DIR=${D}/usr/sbin \
467 PKG_INC_DIR=${D}/usr/include/xfs \ 473 PKG_INC_DIR=${D}/usr/include/xfs \
468 PKG_LIB_DIR=${D}/usr/lib \ 474 PKG_LIB_DIR=${D}/usr/lib \
471 rm -rf ${D}/usr/share/doc/xfsprogs 477 rm -rf ${D}/usr/share/doc/xfsprogs
472 docinto xfs-${XFSV}/xfsprogs 478 docinto xfs-${XFSV}/xfsprogs
473 dodoc README doc/CHANGES doc/COPYING docs/CREDITS doc/PORTING doc/README.LVM doc/README.quota 479 dodoc README doc/CHANGES doc/COPYING docs/CREDITS doc/PORTING doc/README.LVM doc/README.quota
474 480
475 cd ${S}/extras/xfs-${XFSV}/dmapi 481 cd ${S}/extras/xfs-${XFSV}/dmapi
476 chmod +x install.sh 482 chmod +x install-sh
477 try make \ 483 try make \
478 PKG_INC_DIR=${D}/usr/include/dmapi \ 484 PKG_INC_DIR=${D}/usr/include/dmapi \
479 PKG_LIB_DIR=${D}/usr/lib \ 485 PKG_LIB_DIR=${D}/usr/lib \
480 PKG_MAN_DIR=${D}/usr/share/man \ 486 PKG_MAN_DIR=${D}/usr/share/man \
481 install install-dev 487 install install-dev
482 rm -rf ${D}/usr/share/doc/dmapi 488 rm -rf ${D}/usr/share/doc/dmapi
483 docinto xfs-${XFSV}/dmapi 489 docinto xfs-${XFSV}/dmapi
484 dodoc README doc/CHANGES doc/COPYING doc/PORTING 490 dodoc README doc/CHANGES doc/COPYING doc/PORTING
485 491
486 cd ${S}/extras/xfs-${XFSV}/xfsdump 492 cd ${S}/extras/xfs-${XFSV}/xfsdump
487 chmod +x install.sh 493 chmod +x install-sh
488 try make \ 494 try make \
489 PKG_BIN_DIR=${D}/usr/sbin \ 495 PKG_BIN_DIR=${D}/usr/sbin \
490 PKG_LIB_DIR=${D}/usr/lib \ 496 PKG_LIB_DIR=${D}/usr/lib \
491 PKG_MAN_DIR=${D}/usr/share/man \ 497 PKG_MAN_DIR=${D}/usr/share/man \
492 install install-dev 498 install install-dev
532 cd ${S}/extras/alsa-driver-${AV} 538 cd ${S}/extras/alsa-driver-${AV}
533 docinto alsa-${AV} 539 docinto alsa-${AV}
534 dodoc COPYING INSTALL FAQ README WARNING 540 dodoc COPYING INSTALL FAQ README WARNING
535 docinto alsa-${AV}/doc 541 docinto alsa-${AV}/doc
536 dodoc doc/README.1st doc/SOUNDCARDS 542 dodoc doc/README.1st doc/SOUNDCARDS
543 mkdir -p ${D}/lib/modules/${KV}/misc
537 cp modules/*.o ${D}/lib/modules/${KV}/misc 544 cp modules/*.o ${D}/lib/modules/${KV}/misc
538 fi 545 fi
539 if [ "`use pcmcia-cs`" ] 546 if [ "`use pcmcia-cs`" ]
540 then 547 then
541 #install PCMCIA modules and utilities 548 #install PCMCIA modules and utilities
595 if [ "${PN}" = "linux-sources" ] && [ -e .config.eg ] && [ ! -e .config ] 602 if [ "${PN}" = "linux-sources" ] && [ -e .config.eg ] && [ ! -e .config ]
596 then 603 then
597 cp -a .config.eg .config 604 cp -a .config.eg .config
598 fi 605 fi
599} 606}
600
601#pkg_postrm() {
602#
603# rm -f ${ROOT}/usr/src/linux
604# rm -rf ${ROOT}/usr/src/linux-${KV}
605#}

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20