This last steps took time. Anyway here are my notes:
When we install a port, these are the steps that the process goes to:
|fetch |----> |extract| ----> |patch|----> |configure|---->|build|
Add to the recommendations: join mailing list freebsd-post. Whenever in need, there is a group of people that can help to adopt/update your port. Special note to Andrew Pantyukhin for his patience and time.
I made a tmp file in my home directory.
In it, I created a directory with the name of my port : imgseek
I copy from /usr/port/graphics/imgseek two files: Makefile and pkg-desc.
Then I started editing Makefile file.
PORTNAME= imgseek
There is no change
PORTREVISION=1
Andrew point out to the handbook to see if I should change this option. From it I read: "PORTREVISION should be increased each time a change is made to the port which significantly affects the content or structure of the derived package."
Therefore, no change
PORTVERSION=0.8.6
In my case, I just had to update the version from 0.8.4 to 0.8.6
Master_SITES=SFE
I didn't know what SFE meant.
I quick search on /usr/ports/Mk/bsd.sites.mk: "more bsd.sites.mk | grep SFE" made me understand that SFE stands for SourceForge Extended. In other words, the fetch process will look into a sourceforge/$portname site and get the file.
and that is all for Makefile
File pkg-desc
No change
To create the distinfo file, I copy the tar file imgseek-0.8.6.tar.bz2 to usr/ports/distfiles and then I went to my imgseek directory cd ~/tmp/imgseek and issued the command "make checksum". That created my distinfo file.
Last file to create is pkg-plist
The handbook section 7.5 mentions the "Automated package list creation"
I started by issuing this command: "mkdir /var/tmp/$(make -V imgseek)
I got following error: "illegal variable name" :(
I quick email to Andrew asking how he creates the pkg-plist file and he reponded me that depending on the application he uses "sed".
So far no pkg-plist created yet and I haven't tested if the port build up successfully.
More to come...
These are my steps and notes to adopt/update a FreeBSD port.
Subscribe to:
Post Comments (Atom)
About Me
- Alfredo
- I am a FreeBSD fan
No comments:
Post a Comment