f508
![]() |
|
|
|
|
|||||||
| Installation and Maintenance of FreeBSD Ports or Packages Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software). |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Question: What is the preferred method of modifying the sources of a given third party package before its installed? Allow me to clarify.
After installing Midnight Commander: sudo pkg_add -r mcI found the package suffered from an ftp issue I sought to fix. I next removed mc, installed its port sources and after some wrestling with make patched the sources and installed the modified version successfully. (Please bear with me here, I'm new to FreeBSD and am attempting to describe the problem using proper nomenclature). If one needs to edit the sources of a port, yet one can only invoke make (that I'm currently aware of) to start the build process, how is it possible to first edit, then build a port's sources? If my case to solve this, I invoked make followed by CTRL-C to disrupt the build process, edited the necessary file, then ran make again. But I'm thinking I've approached things the hard way when a better, more streamlined solution likely exists. Last edited by DutchDaemon; February 1st, 2012 at 22:56. Reason: Formatting & Style: http://forums.freebsd.org/showthread.php?t=8816 / http://forums.freebsd.org/showthread.php?t=18043 |
|
#2
|
||||
|
||||
|
See the TARGETS in ports(7). There's much more you can do with make other than starting the build.
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki Before you post: How to ask questions the smart way If you must know .. So, what does an Adminstrator/Moderator do? ---> Do not PM me with FreeBSD questions. I do not work here. <--- |
| The Following User Says Thank You to DutchDaemon For This Useful Post: | ||
Michael-Sanders (February 1st, 2012) | ||
|
#3
|
|||
|
|||
|
Yes, I see now under section TARGETS of ports(7): fetch & extract apply (thank you DutchDaemon).
I'll study this now. |
|
#4
|
||||
|
||||
|
|
| The Following User Says Thank You to phoenix For This Useful Post: | ||
Michael-Sanders (February 1st, 2012) | ||
|
#5
|
||||
|
||||
|
You basically want to do these:
Code:
make fetch # fetches the distfile make extract # extracts the distfile into the work directory make patch # applies any specific FreeBSD patches make configure # runs ./configure
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
| The Following 2 Users Say Thank You to SirDice For This Useful Post: | ||
drhowarddrfine (February 2nd, 2012), Michael-Sanders (February 2nd, 2012) | ||
![]() |
| Tags |
| modify, ports |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| installation through port question | alfchung | Installation and Maintenance of FreeBSD Ports or Packages | 3 | June 30th, 2011 17:13 |
| How to abort a frozen port installation | itslikethat | Installation and Maintenance of FreeBSD Ports or Packages | 1 | January 21st, 2011 04:33 |
| [Solved] Port installation progress. | DreamWave | Installation and Maintenance of FreeBSD Ports or Packages | 3 | March 20th, 2010 14:17 |
| Port installation failing | trybeingarun | Installation and Maintenance of FreeBSD Ports or Packages | 4 | February 21st, 2010 03:30 |
| Editing with vi | misfitxnet | General | 5 | March 9th, 2009 05:10 |